<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://susanzhang233.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://susanzhang233.github.io/" rel="alternate" type="text/html" /><updated>2021-12-12T06:09:55+00:00</updated><id>https://susanzhang233.github.io/feed.xml</id><title type="html">Shuchen Zhang’s Personal Blog</title><subtitle>Pocket Wallflower</subtitle><entry><title type="html">Graphic Neural Network Model for Screening of Novel Inhibitors for SARS CoV 3C-like Protease</title><link href="https://susanzhang233.github.io/mollykill2.0/" rel="alternate" type="text/html" title="Graphic Neural Network Model for Screening of Novel Inhibitors for SARS CoV 3C-like Protease" /><published>2021-12-11T00:00:00+00:00</published><updated>2021-12-11T00:00:00+00:00</updated><id>https://susanzhang233.github.io/mollykill2.0</id><content type="html" xml:base="https://susanzhang233.github.io/mollykill2.0/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;This project aims to build a model that would aid novel drug design processes and is hosted here: &lt;a href=&quot;https://github.com/susanzhang233/mollykill_2.0&quot;&gt;https://github.com/susanzhang233/mollykill_2.0&lt;/a&gt;. Somewhat related to &lt;a href=&quot;https://github.com/susanzhang233/mollykill&quot;&gt;this&lt;/a&gt; mollykill 1.0, this project hopes to simplify limitations of the generator and decoder by disregarding GAN’s over-complicated generative structure. In this 2.0 version, we’ll be more focused on employing the accuracy and efficiency of the discriminator. Then, instead of letting the generator to come up with new molecules starting from zero. We’ll be applying a larger real world molecule datasets(ie. Zinc15), to mimic the traditional virtual/actual screening process to come up with potential inhibitors.&lt;/p&gt;

&lt;h2 id=&quot;model-structure&quot;&gt;Model Structure&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/132131090-3829f4d7-97d4-43c2-a5c7-fe4c4f95ed19.png&quot; alt=&quot;Screen Shot 2021-09-05 at 10 47 40 PM&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;featurizer&quot;&gt;Featurizer&lt;/h2&gt;
&lt;p&gt;To represent the molecules in computer understandable format, this project uses the MolGraphConvFeaturizer from deepchem package that could be referred from &lt;a href=&quot;https://deepchem.readthedocs.io/en/latest/api_reference/featurizers.html#deepchem.feat.MolGraphConvFeaturizer&quot;&gt;here&lt;/a&gt;.
This featurizer concatenates each molecule’s multiple features into two arrays: nodes array and edges array. Within each of the two arrays, there are then numbers of one-hot encoded arrays corresponding to numbers of atoms in each molecules, i.e. each atom and each bond is represented by one array.&lt;/p&gt;

&lt;p&gt;To ensure that the size of the molecule representations are the same(i.e. to standardize input size), this project went one step further to sum up the atom and bond arrays along each column, therefore ending up with node arrays of length 30 and edges array of 11 for each molecule.&lt;/p&gt;

&lt;h2 id=&quot;dataset&quot;&gt;Dataset&lt;/h2&gt;
&lt;p&gt;The example dataset used for demonstration of this model is originally from &lt;a href=&quot;https://pubchem.ncbi.nlm.nih.gov/bioassay/1706&quot;&gt;PubChem AID1706&lt;/a&gt;, previously handled by &lt;a href=&quot;https://www.aicures.mit.edu/&quot;&gt;JClinic AIcure&lt;/a&gt; team at MIT into this &lt;a href=&quot;https://github.com/yangkevin2/coronavirus_data/blob/master/data/AID1706_binarized_sars.csv&quot;&gt;binarized label form&lt;/a&gt;.
The dataset is also hosted in the &lt;a href=&quot;https://github.com/susanzhang233/mollykill_2.0/blob/main/data&quot;&gt;data folder&lt;/a&gt; of this project.&lt;/p&gt;

&lt;h2 id=&quot;repository-explanation&quot;&gt;Repository Explanation&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/susanzhang233/mollykill_2.0/blob/main/FancyModule.py&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;FancyModule.py&lt;/code&gt;&lt;/a&gt; contains the major functions of this project&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/susanzhang233/mollykill_2.0/blob/main/example.ipynb&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;example.ipynb&lt;/code&gt;&lt;/a&gt; is an example usage in the model pipeline&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;setup&quot;&gt;Setup&lt;/h2&gt;

&lt;p&gt;If you are running locally(i.e. in a jupyter notebook in conda, just make sure you installed:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;RDKit&lt;/li&gt;
  &lt;li&gt;DeepChem 2.5.0 &amp;amp; above&lt;/li&gt;
  &lt;li&gt;Tensorflow 2.4.0 &amp;amp; above&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then, please skip the following part and continue from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Data Preparations&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To increase efficiency, we recommend running in Colab.&lt;/p&gt;

&lt;p&gt;Then, we’ll first need to run the following lines of code, these will download conda with the deepchem environment in colab.&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;#!curl -Lo conda_installer.py https://raw.githubusercontent.com/deepchem/deepchem/master/scripts/colab_install.py
#import conda_installer
#conda_installer.install()
#!/root/miniconda/bin/conda info -e
&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;#!pip install --pre deepchem
#import deepchem
#deepchem.__version__
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;data-preparations&quot;&gt;Data Preparations&lt;/h1&gt;

&lt;p&gt;Now we are ready to import some useful functions/packages, along with our model.&lt;/p&gt;

&lt;h3 id=&quot;import-data&quot;&gt;Import Data&lt;/h3&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;FancyModule&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;##our model
&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;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;rdkit&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;rdkit.Chem&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;AllChem&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;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;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;/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;deepchem&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;select-subset-for-training&quot;&gt;Select subset for training&lt;/h3&gt;

&lt;p&gt;Here, for demonstration, we’ll be selecting a subset of size $2405$ from this in-vitro assay that detects inhibition of SARS-CoV 3CL protease via fluorescence.&lt;/p&gt;

&lt;p&gt;The dataset is originally from &lt;a href=&quot;https://pubchem.ncbi.nlm.nih.gov/bioassay/1706&quot;&gt;PubChem AID1706&lt;/a&gt;, previously handled by &lt;a href=&quot;https://www.aicures.mit.edu/&quot;&gt;JClinic AIcure&lt;/a&gt; team at MIT into this &lt;a href=&quot;https://github.com/yangkevin2/coronavirus_data/blob/master/data/AID1706_binarized_sars.csv&quot;&gt;binarized label form&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;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;s&quot;&gt;'AID1706_binarized_sars.csv'&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;df_false&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;'activity'&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;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&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;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;replace&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;#s
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df_true&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;'activity'&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;n&quot;&gt;df_subset&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;concat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df_false&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df_true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ignore_index&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;/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;df_subset&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;smiles&lt;/th&gt;
      &lt;th&gt;activity&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;C1=CC=C(C(=C1)C(=O)O)N=NC2=C(NC3=C2C=C(C=C3)[N...&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;COC1=CC=CC=C1C2=NN(C(=O)C=C2)CC(=O)NC3CCC4=CC=...&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;CN(C)C(=S)NC1=CC=C(C=C1)CC2=CC=NC=C2&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;CC1=CC(=NC2=CC=CC=C12)SCC(=O)C3=C(N(C(=C3)C)C)C&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;CN(CC1=CC(=NN1)COC)C(=O)C2CCC(=O)N(C2)CC3=CC(=...&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2400&lt;/th&gt;
      &lt;td&gt;C1COC2=C(O1)C=CC(=C2)NC(=O)C3=C(OC=N3)C4=CC=CC=C4&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2401&lt;/th&gt;
      &lt;td&gt;COC(=O)C1=CC=CC=C1NC(=O)C2=CC3=C(C=C2)OCCCO3&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2402&lt;/th&gt;
      &lt;td&gt;COC1=CC=CC=C1CCNC(=O)C(=O)NCC2N(CCO2)S(=O)(=O)...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2403&lt;/th&gt;
      &lt;td&gt;CN(C)CCNC(=O)C(=O)NCC1N(CCO1)S(=O)(=O)C2=CC=C(...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2404&lt;/th&gt;
      &lt;td&gt;C1COC(N1S(=O)(=O)C2=CC3=C(C=C2)OCCO3)CNC(=O)C(...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;2405 rows × 2 columns&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Observe the dataframe above, it contains a ‘smiles’ column, which stands for the smiles representation of the molecules. There is also an ‘activity’ column, in which it is the label specifying whether that molecule is considered as hit for the protein.&lt;/p&gt;

&lt;h3 id=&quot;set-minimum-length-for-molecules&quot;&gt;Set Minimum Length for molecules&lt;/h3&gt;

&lt;p&gt;Since we’ll be using graphic representation for each molecules, we’ll first need to cast the molecules into one universal length to fit into our training model. Our module contains a preparation function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;prepare_data&lt;/code&gt; that eliminates molecules shorter than the desired size.&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;df_minlength&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;FancyModule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prepare_data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df_subset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;12&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;h3 id=&quot;featurization&quot;&gt;Featurization&lt;/h3&gt;

&lt;p&gt;Our module also have a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;featurize&lt;/code&gt; function that represents the molecules in graphic format that is supported by our model. The main structure of the featurizer could be referred from &lt;a href=&quot;https://deepchem.readthedocs.io/en/latest/api_reference/featurizers.html#deepchem.feat.MolGraphConvFeaturizer&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: the original featurizer was modified for usage in this project.&lt;/p&gt;

&lt;p&gt;Supported with &lt;strong&gt;input_df&lt;/strong&gt;, the function would return featurized &lt;strong&gt;node&lt;/strong&gt; and &lt;strong&gt;edges&lt;/strong&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;nodes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;edges&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;FancyModule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;featurize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df_minlength&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'smiles'&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;training&quot;&gt;Training&lt;/h1&gt;

&lt;p&gt;Now, we’re finally ready for training. We’ll first import some necessary functions from tensorflow.&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;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&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;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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here we’ll first initiate a  model with the corresponding &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make_model&lt;/code&gt; functions in the package.&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;model&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;FancyModule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_model&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 we’ll train the model with the above subset and plot out the training curve.&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;model&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;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;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;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;nodes&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;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;edges&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;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;80&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;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;c1&quot;&gt;#class_weight=class_weights
&lt;/span&gt;                    &lt;span class=&quot;c1&quot;&gt;#steps_per_epoch = 100,
&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;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;history&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;history&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;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;gca&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;xlabel&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;epoch&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ylabel&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;training 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-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;[Text(0.5, 0, 'epoch'), Text(0, 0.5, 'training accuracy')]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/145702235-88d7bb81-338a-4397-8df0-bb1d52973941.png&quot; alt=&quot;example_31_1&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Observe the training curve, the accuracy has a steady growing trend, and the model ultimately achieved an accuracy of around 86 percent.&lt;/p&gt;

&lt;h1 id=&quot;testing-payoff&quot;&gt;Testing (Payoff)&lt;/h1&gt;

&lt;p&gt;Finally, we’ll demonstrate the testing phase(thoroughput screening) with a newly random selected subset from the above mentioned SARS-CoV 3CL protease assay.&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;df_false&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;'activity'&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;sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&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;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;replace&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;#s
&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;df_test_subset&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;concat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df_false&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df_true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ignore_index&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The testing function accepts three parameters: the testing column of molecules in smiles format, trained model, and True/False statement of whether to save the result in the directory(default False).&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;FancyModule&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;df_test_subset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'smiles'&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;/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;smiles&lt;/th&gt;
      &lt;th&gt;prediction&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;1756&lt;/th&gt;
      &lt;td&gt;C([C@@H]1[C@H]([C@@H]([C@H]([C@H](O1)O[C@H]([C...&lt;/td&gt;
      &lt;td&gt;0.999190&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2055&lt;/th&gt;
      &lt;td&gt;C1=CC=C2C(=C1)C(=CC(=C2N)C(C(F)(F)F)(C(F)(F)F)...&lt;/td&gt;
      &lt;td&gt;0.998951&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2093&lt;/th&gt;
      &lt;td&gt;C1=CC(=CC(=C1)NC(=O)NCCNC(=O)C2=C(C=CC(=C2)OCC...&lt;/td&gt;
      &lt;td&gt;0.995320&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2234&lt;/th&gt;
      &lt;td&gt;C1=CC(=CC=C1/C(=N/S(=O)(=O)C2=CC(=CC(=C2)C(F)(...&lt;/td&gt;
      &lt;td&gt;0.993566&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1713&lt;/th&gt;
      &lt;td&gt;CC(C)CC(COCC1=CC=C(C=C1)C(F)(F)F)N2CCN(CCC2=O)...&lt;/td&gt;
      &lt;td&gt;0.991890&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;202&lt;/th&gt;
      &lt;td&gt;CC1CC2C3CCC4CC(CCC4(C3=CCC2(C1(C(=O)C)O)C)C)O&lt;/td&gt;
      &lt;td&gt;0.000008&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;125&lt;/th&gt;
      &lt;td&gt;CC#CC[N+](C)(CC#CC)CC(=O)C1=CC=CC=C1.[Br-]&lt;/td&gt;
      &lt;td&gt;0.000004&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;501&lt;/th&gt;
      &lt;td&gt;CCOC(=O)N1CCN(CC1)C(=O)C2CCC(CC2)C(=O)N3CCN(CC...&lt;/td&gt;
      &lt;td&gt;0.000003&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;540&lt;/th&gt;
      &lt;td&gt;CC(=O)OC1C2CCC1C(CC2)[N+]3(CCCCC3)C.[I-]&lt;/td&gt;
      &lt;td&gt;0.000002&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;454&lt;/th&gt;
      &lt;td&gt;CC1(CC(CC(N1)(C)C)N2CN(CC2=O)C3CCCCC3)C&lt;/td&gt;
      &lt;td&gt;0.000002&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;2405 rows × 2 columns&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Yay, now we have our output data table. It has two columns, smiles format of molecules, and their corresponding prediction of inhibition score to the protein target, as estimated by our model.&lt;/p&gt;

&lt;h2 id=&quot;limitationsfuture-work&quot;&gt;Limitations(Future work)&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Currently, the model accuracy is around 86-88%. More attempts with different model structure might be tested for possible improvements.&lt;/li&gt;
  &lt;li&gt;The efficiency of the featurization and training process might be improved.&lt;/li&gt;
  &lt;li&gt;Future wet-lab experiments could be done for confirmation from another aspect.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;acknowledgements&quot;&gt;Acknowledgements&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Featurizer https://deepchem.readthedocs.io/en/latest/api_reference/featurizers.html#deepchem.feat.MolGraphConvFeaturizer&lt;/li&gt;
  &lt;li&gt;Featurizer paper https://arxiv.org/pdf/1603.00856.pdf&lt;/li&gt;
&lt;/ul&gt;</content><author><name></name></author><summary type="html">Introduction This project aims to build a model that would aid novel drug design processes and is hosted here: https://github.com/susanzhang233/mollykill_2.0. Somewhat related to this mollykill 1.0, this project hopes to simplify limitations of the generator and decoder by disregarding GAN’s over-complicated generative structure. In this 2.0 version, we’ll be more focused on employing the accuracy and efficiency of the discriminator. Then, instead of letting the generator to come up with new molecules starting from zero. We’ll be applying a larger real world molecule datasets(ie. Zinc15), to mimic the traditional virtual/actual screening process to come up with potential inhibitors.</summary></entry><entry><title type="html">Generative Model of Novel Inhibitor for SARS CoV 3C-like Protease</title><link href="https://susanzhang233.github.io/mollykill1.0/" rel="alternate" type="text/html" title="Generative Model of Novel Inhibitor for SARS CoV 3C-like Protease" /><published>2021-12-09T00:00:00+00:00</published><updated>2021-12-09T00:00:00+00:00</updated><id>https://susanzhang233.github.io/mollykill1.0</id><content type="html" xml:base="https://susanzhang233.github.io/mollykill1.0/">&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;This project is aimed to build a Graphic GAN model that would aid drug design processes. The project is also hosted on github in the following link: &lt;a href=&quot;https://github.com/susanzhang233/mollykill&quot;&gt;https://github.com/susanzhang233/mollykill&lt;/a&gt;. For demonstration, the project is expected to learn graphical features of the molecules that are experimentally tested with inhibition effect for the specific protein SARS coronavirus 3C-like Protease (3CLPro) . Then, the model would develop a reasonable way to generate potential novel molecules inhibitors’ graphically representations. After that, with a defeaturizer, the graphical representations would be converted into visualizable molecule formats.&lt;/p&gt;

&lt;h4 id=&quot;intro-to-gan&quot;&gt;Intro to GAN&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/121478869-0a7f7980-c9fc-11eb-99b0-b5ab283cd386.png&quot; alt=&quot;Screen Shot 2021-06-08 at 7 40 49 PM&quot; /&gt;&lt;/p&gt;

&lt;p&gt;GAN, standing for Generative Adversarial Network, is commonly used in graphic works and more, such as generation of faces, music pieces. Here’s a great &lt;a href=&quot;https://machinelearningmastery.com/what-are-generative-adversarial-networks-gans/&quot;&gt;introduction&lt;/a&gt;. In this project, we’ll be building a GAN model that ultilizes the mathematical concepts of graphs in the chemical world.&lt;/p&gt;

&lt;h2 id=&quot;dataset&quot;&gt;Dataset&lt;/h2&gt;
&lt;p&gt;The dataset used for demonstration of this model is originally from &lt;a href=&quot;https://pubchem.ncbi.nlm.nih.gov/bioassay/1706&quot;&gt;PubChem AID1706&lt;/a&gt;, previously handled by &lt;a href=&quot;https://www.aicures.mit.edu/&quot;&gt;JClinic AIcure&lt;/a&gt; team at MIT into this &lt;a href=&quot;https://github.com/yangkevin2/coronavirus_data/blob/master/data/AID1706_binarized_sars.csv&quot;&gt;binarized label form&lt;/a&gt;.
The dataset is also hosted &lt;a href=&quot;https://github.com/susanzhang233/mollykill/blob/main/AID1706_binarized_sars.csv&quot;&gt;here&lt;/a&gt; within this project.&lt;/p&gt;

&lt;h2 id=&quot;repository-explaination&quot;&gt;Repository Explaination&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/susanzhang233/mollykill/blob/main/model.py&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;model.py&lt;/code&gt;&lt;/a&gt; contains the source codes for the GAN model created&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/susanzhang233/mollykill/blob/main/example.ipynb&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;example.ipynb&lt;/code&gt;&lt;/a&gt; exemplifies the model usage&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;demonstration&quot;&gt;Demonstration:&lt;/h2&gt;

&lt;h2 id=&quot;setup&quot;&gt;Setup&lt;/h2&gt;

&lt;p&gt;If you are running this generator locally(i.e. in a jupyter notebook in conda, just make sure you installed:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;RDKit&lt;/li&gt;
  &lt;li&gt;DeepChem 2.5.0 &amp;amp; above&lt;/li&gt;
  &lt;li&gt;Tensorflow 2.4.0 &amp;amp; above&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then, please skip the following part and continue from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Data Preparations&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To increase efficiency, we recommend running this molecule generator in Colab.&lt;/p&gt;

&lt;p&gt;Then, we’ll first need to run the following lines of code, these will download conda with the deepchem environment in colab.&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;#!curl -Lo conda_installer.py https://raw.githubusercontent.com/deepchem/deepchem/master/scripts/colab_install.py
#import conda_installer
#conda_installer.install()
#!/root/miniconda/bin/conda info -e
&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;#!pip install --pre deepchem
#import deepchem
#deepchem.__version__
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;data-preparations&quot;&gt;Data Preparations&lt;/h2&gt;

&lt;p&gt;Now we are ready to import some useful functions/packages, along with our model.&lt;/p&gt;

&lt;h3 id=&quot;import-data&quot;&gt;Import Data&lt;/h3&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;model&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;##our model
&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;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;rdkit&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;rdkit.Chem&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;AllChem&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;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;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;/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;deepchem&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dc&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, we are ready to import our dataset for training.&lt;/p&gt;

&lt;p&gt;Here, for demonstration, we’ll be using this dataset of in-vitro assay that detects inhibition of SARS-CoV 3CL protease via fluorescence.&lt;/p&gt;

&lt;p&gt;The dataset is originally from &lt;a href=&quot;https://pubchem.ncbi.nlm.nih.gov/bioassay/1706&quot;&gt;PubChem AID1706&lt;/a&gt;, previously handled by &lt;a href=&quot;https://www.aicures.mit.edu/&quot;&gt;JClinic AIcure&lt;/a&gt; team at MIT into this &lt;a href=&quot;https://github.com/yangkevin2/coronavirus_data/blob/master/data/AID1706_binarized_sars.csv&quot;&gt;binarized label form&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;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;s&quot;&gt;'AID1706_binarized_sars.csv'&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;Observe the data above, it contains a ‘smiles’ column, which stands for the smiles representation of the molecules. There is also an ‘activity’ column, in which it is the label specifying whether that molecule is considered as hit for the protein.&lt;/p&gt;

&lt;p&gt;Here, we only need those 405 molecules considered as hits, and we’ll be extracting features from them to generate new molecules that may as well be hits.&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;true&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;'activity'&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;set-minimum-length-for-molecules&quot;&gt;Set Minimum Length for molecules&lt;/h3&gt;

&lt;p&gt;Since we’ll be using graphic neural network, it might be more helpful and efficient if our graph data are of the same size, thus, we’ll eliminate the molecules from the training set that are shorter(i.e. lacking enough atoms) than our desired minimum size.&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;num_atoms&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#here the minimum length of molecules is 6
&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;input_df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'smiles'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;df_length&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;k&quot;&gt;for&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;input_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;df_length&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;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolFromSmiles&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;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GetNumAtoms&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;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'length'&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_length&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#create a new column containing each molecule's length
&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;true&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'length'&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;num_atoms&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#Here we leave only the ones longer than 6
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;input_df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'smiles'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;input_df_smiles&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_df&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;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolFromSmiles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#convert the smiles representations into rdkit molecules
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, we are ready to apply the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;featurizer&lt;/code&gt; function to our molecules to convert them into graphs with nodes and edges for training.
&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/145701178-48e6a5f6-a03b-4579-830e-a5841c56b245.png&quot; alt=&quot;image&quot; /&gt;
The logic behind the featurizer is to convert each molecule into an &lt;em&gt;adjacency&lt;/em&gt; &lt;em&gt;matrix&lt;/em&gt; storing bond informations and a &lt;em&gt;node&lt;/em&gt; &lt;em&gt;array&lt;/em&gt; with each atom’s features(here we only included atomic number).&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;#input_df = input_df.apply(Chem.MolFromSmiles) 
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_set&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_df_smiles&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;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;featurizer&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;max_length&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;num_atoms&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;train_set&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      ([6, 6, 6, 6, 6, 8], [[0, 1, 0, 0, 0, 0], [1, ...
1      ([6, 6, 6, 6, 6, 6], [[0, 1, 0, 0, 0, 0], [1, ...
2      ([6, 6, 6, 6, 6, 6], [[0, 1, 0, 0, 0, 0], [1, ...
3      ([6, 6, 6, 6, 6, 6], [[0, 1, 0, 0, 0, 0], [1, ...
4      ([6, 6, 7, 6, 7, 6], [[0, 1, 0, 0, 0, 0], [1, ...
                             ...                        
400    ([6, 6, 8, 6, 6, 8], [[0, 1, 0, 0, 0, 1], [1, ...
401    ([6, 8, 6, 8, 6, 6], [[0, 1, 0, 0, 0, 0], [1, ...
402    ([6, 8, 6, 6, 6, 6], [[0, 1, 0, 0, 0, 0], [1, ...
403    ([6, 7, 6, 6, 6, 7], [[0, 1, 0, 0, 0, 0], [1, ...
404    ([6, 6, 8, 6, 7, 16], [[0, 1, 0, 0, 1, 0], [1,...
Name: smiles, Length: 405, dtype: object
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We’ll take one more step to make the train_set into separate nodes and edges, which fits the format later to supply to the model for training&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;nodes_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;edges_train&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;nb&quot;&gt;zip&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;train_set&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;h2 id=&quot;training&quot;&gt;Training&lt;/h2&gt;

&lt;p&gt;Now, we’re finally ready for generating new molecules. We’ll first import some necessay functions from tensorflow.&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;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&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;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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here we’ll first initiate a discriminator and a generator model with the corresponding functions in the package.&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;disc&lt;/span&gt; &lt;span class=&quot;o&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;make_discriminator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&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 pipeline of the discriminator is shown below:
&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/145700895-96d7e07b-114d-42da-b82a-01c0bf35d0e0.png&quot; alt=&quot;image&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;gene&lt;/span&gt; &lt;span class=&quot;o&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;make_generator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;noise_input_shape&lt;/span&gt; &lt;span class=&quot;o&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The pipeline of the generator is shown below:
&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/145700879-808fa554-c0fe-4bcf-a0f3-74b00d3b4e42.png&quot; alt=&quot;image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then, with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;train_batch&lt;/code&gt; function, we’ll supply the necessary inputs and train our network. Upon some experimentations, an epoch of around 160 would be nice for this 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;generator_trained&lt;/span&gt; &lt;span class=&quot;o&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;train_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
                                &lt;span class=&quot;n&quot;&gt;disc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;gene&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;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nodes_train&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;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;edges_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; 
                                &lt;span class=&quot;n&quot;&gt;noise_input_shape&lt;/span&gt; &lt;span class=&quot;o&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;n&quot;&gt;EPOCH&lt;/span&gt; &lt;span class=&quot;o&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;n&quot;&gt;BATCHSIZE&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;plot_hist&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;temp_result&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/145700754-1a8c564d-df61-4bbb-a743-6469edcd914f.png&quot; alt=&quot;example_35_1&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There are two possible kind of failures regarding a GAN model: model collapse and failure of convergence. Model collapse would often mean that the generative part of the model wouldn’t be able to generate diverse outcomes. Failure of convergence between the generative and the discriminative model could likely way be identified as that the loss for the discriminator has gone to zero or close to zero.&lt;/p&gt;

&lt;p&gt;Observe the above generated plot, in the upper plot, the loss of discriminator has not gone to zero/close to zero, indicating that the model has possibily find a balance between the generator and the discriminator. In the lower plot, the accuracy is fluctuating between 1 and 0, indicating possible variability within the data generated.&lt;/p&gt;

&lt;p&gt;Therefore, it is reasonable to conclude that within the possible range of epoch and other parameters, the model has successfully avoided the two common types of failures associated with GAN.&lt;/p&gt;

&lt;h2 id=&quot;rewarding-phase&quot;&gt;Rewarding Phase&lt;/h2&gt;

&lt;p&gt;The above &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;train_batch&lt;/code&gt; function is set to return a trained generator. Thus, we could use that function directly and observe the possible molecules we could get from that 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;n&quot;&gt;no&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ed&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;generator_trained&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;random&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;randint&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;20&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;1&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;#generated nodes and edges
&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;nb&quot;&gt;abs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;no&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;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reshape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&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;ed&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;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reshape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&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;(array([6, 9, 5, 7, 8, 6]),
 array([[0, 0, 0, 0, 0, 0],
        [1, 0, 2, 0, 0, 0],
        [0, 2, 0, 2, 0, 0],
        [0, 0, 2, 0, 2, 0],
        [0, 0, 0, 2, 0, 3],
        [2, 0, 0, 0, 3, 0]]))
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;de_featurizer&lt;/code&gt;, we could convert the generated matrix into a smiles molecule and plot it out=)&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;cat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dog&lt;/span&gt; &lt;span class=&quot;o&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;de_featurizer&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;no&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;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reshape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&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;ed&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;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reshape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;num_atoms&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;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolToSmiles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat&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;'C#O=N=B=FC'
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here are some examples of molecules generated by the model. Though some molecules may appear to be not legit, a similar trend among these molecules preliminarily demonstrates that we have get the model working.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/67823308/145700902-fb56103d-38f2-4727-a8a7-b5622e2c963b.png&quot; alt=&quot;image&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;brief-result-analysis&quot;&gt;Brief Result Analysis&lt;/h2&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;rdkit&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DataStructs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With the rdkit function of comparing similarities, here we’ll demonstrate a preliminary analysis of the molecule we’ve generated. With “CCO” molecule as a control, we could observe that the new molecule we’ve generated is more similar to a random selected molecule(the fourth molecule) from the initial training set.&lt;/p&gt;

&lt;p&gt;This may indicate that our model has indeed extracted some features from our original dataset and generated a new molecule that is relevant.&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;DataStructs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;FingerprintSimilarity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RDKFingerprint&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolFromSmiles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;[Li]NBBC=N&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RDKFingerprint&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolFromSmiles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;CCO&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)))&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# compare with the control
&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.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;c1&quot;&gt;#compare with one from the original data
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DataStructs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;FingerprintSimilarity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RDKFingerprint&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolFromSmiles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;[Li]NBBC=N&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RDKFingerprint&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Chem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MolFromSmiles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;CCN1C2=NC(=O)N(C(=O)C2=NC(=N1)C3=CC=CC=C3)C&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-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;0.017079419299743808
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;limitationsfuture-work&quot;&gt;Limitations(Future work)&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Currently, the generation of molecules is limited to a specific length that is shorter than most molecules in the real world. Future work involving some concepts of Conditional GAN might be employed.&lt;/li&gt;
  &lt;li&gt;The dimension of the discriminator might be improved by adding more features of the molecules(ie. hybridization, stereochemistry, etc)&lt;/li&gt;
  &lt;li&gt;The efficiency of the featurizer in treating edges informations might be improved(viable representation of rings, etc)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;acknowledgements&quot;&gt;Acknowledgements&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Where I’ve obtained my dataset: &lt;a href=&quot;https://github.com/yangkevin2/coronavirus_data/tree/master/data&quot;&gt;https://github.com/yangkevin2/coronavirus_data/tree/master/data&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;A nice introduction video of GAN structure: &lt;a href=&quot;https://github.com/whoIsTheGingerBreadMan/YoutubeVideos&quot;&gt;https://github.com/whoIsTheGingerBreadMan/YoutubeVideos&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;A nice introduction blogpost: &lt;a href=&quot;https://machinelearningmastery.com/how-to-develop-a-conditional-generative-adversarial-network-from-scratch/&quot;&gt;https://machinelearningmastery.com/how-to-develop-a-conditional-generative-adversarial-network-from-scratch/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;MolGAN, a great previous work of related field: &lt;a href=&quot;https://machinelearningmastery.com/how-to-develop-a-conditional-generative-adversarial-network-from-scratch/&quot;&gt;https://arxiv.org/pdf/1805.11973.pdf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><author><name></name></author><summary type="html">Introduction This project is aimed to build a Graphic GAN model that would aid drug design processes. The project is also hosted on github in the following link: https://github.com/susanzhang233/mollykill. For demonstration, the project is expected to learn graphical features of the molecules that are experimentally tested with inhibition effect for the specific protein SARS coronavirus 3C-like Protease (3CLPro) . Then, the model would develop a reasonable way to generate potential novel molecules inhibitors’ graphically representations. After that, with a defeaturizer, the graphical representations would be converted into visualizable molecule formats.</summary></entry><entry><title type="html">Project Reflection</title><link href="https://susanzhang233.github.io/project-reflection/" rel="alternate" type="text/html" title="Project Reflection" /><published>2021-06-11T00:00:00+00:00</published><updated>2021-06-11T00:00:00+00:00</updated><id>https://susanzhang233.github.io/project-reflection</id><content type="html" xml:base="https://susanzhang233.github.io/project-reflection/">&lt;h3 id=&quot;overview&quot;&gt;Overview&lt;/h3&gt;
&lt;p&gt;My project, &lt;a href=&quot;https://github.com/susanzhang233/mollykill&quot;&gt;Mollykill&lt;/a&gt;, aims to comprehensively apply the informations regarding PIC16B and beyond in crafting a basic generative molecular model and providing a basic idea for computational methodologies in the process of drug design.&lt;/p&gt;

&lt;h3 id=&quot;project-achievements&quot;&gt;Project Achievements&lt;/h3&gt;
&lt;p&gt;Currently, my project provides a basic pipeline of the process of generating new molecules that possibly possess similar features with the original dataset.&lt;/p&gt;

&lt;p&gt;The two specific aspects I like about my project is first how it managed to get the structure of a GAN that seems to be successful, and is able to generate molecules that at least looks viable. Secondly, the featurizer for the model is able to give out a some what reasonable graph representation of the molecules. Generally, I enjoy observing that computational approaches could be intervened with the world of other subjects to generate great outcomes.&lt;/p&gt;

&lt;h3 id=&quot;future-work&quot;&gt;Future work&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Currently, the generation of molecules is still limited to a specific length that is shorter than most molecules in the real world. If users want to generate longer molecules, the generated molecule would not be syntactically recognizable by the defeaturizer. Future work involving some concepts of Conditional GAN that ensures the viability of the generated molecules might be employed.&lt;/li&gt;
  &lt;li&gt;The dimension of the discriminator might be improved by adding more features of the molecules(ie. hybridization, stereochemistry, etc)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;proposed--outcome&quot;&gt;Proposed &amp;amp; Outcome&lt;/h3&gt;
&lt;p&gt;Indeed, the rationale of the project has changed a bit through time compared to that in the original proposal. Initially, I’ve thought of making a classification model and applying a larger database. In other words, creating a pipeline of computational virtual screening process. However, generating actual novel molecules with preliminary wet-lab assy informations is indeed very important in drug discovery, the molecules generated by computer might even have better effect than those from the initial molecule database. Thus, I ultimately decided to build a generative model for molecules. Other technical details, such as the final present format, has not changed too much.&lt;/p&gt;

&lt;h3 id=&quot;lessons-learned&quot;&gt;Lessons Learned!&lt;/h3&gt;
&lt;p&gt;Thanks to the help from Professor and Erin, I’ve learned a lot about github, including how to fork other’s repository, git clone, etc. When building my deep learning model, I’ve also gained more understanding about the math concepts when trying to understand what those layers of tensorflow do. Furthermore, I’ve also gotten more used to referring to the API of all sort of functions when making use of them.&lt;/p&gt;

&lt;h3 id=&quot;beyond-and-above&quot;&gt;Beyond and Above&lt;/h3&gt;
&lt;p&gt;Regarding the specific skills, such as tensorflow and git, learned during doing this project, the experience would definitely help me to adapt more efficiently when encountering related topics in the future. Moreover, an important skill that Sthis course is taught me is to self-learn. I’ve gradually got use to browsing youtube videos, tutorial blogposts, github source codes, and function APIs for stuffs I need. Most importantly, through crafting this project, I’ve somehow determined my future career interest, in which I would like to examine to what extend could computational methods aid the development in the field of traditional health science discoveries.&lt;/p&gt;

&lt;p&gt;Overall, special thanks to Professor Chodrow and TA Erin for supporting us emotionally and technically during this quarter about this project, this course, and more beyond. Even though I don’t have a groupmate, I would also like to thank all my classmates, for that I would always be motivated when thinking that we are progressing as a whole team.&lt;/p&gt;</content><author><name></name></author><summary type="html">Overview My project, Mollykill, aims to comprehensively apply the informations regarding PIC16B and beyond in crafting a basic generative molecular model and providing a basic idea for computational methodologies in the process of drug design.</summary></entry><entry><title type="html">Blog Post 3 - Fake News Classifier</title><link href="https://susanzhang233.github.io/blogpost3/" rel="alternate" type="text/html" title="Blog Post 3 - Fake News Classifier" /><published>2021-05-18T00:00:00+00:00</published><updated>2021-05-18T00:00:00+00:00</updated><id>https://susanzhang233.github.io/blogpost3</id><content type="html" xml:base="https://susanzhang233.github.io/blogpost3/">&lt;p&gt;In this blog, we’ll build a machine learning model with Tensorflow that helps us to classify fake news.&lt;/p&gt;

&lt;p&gt;First, we’ll import some of the needed packages our dataset to feed 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;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;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;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;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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Both the training and testing datasets are accessed from &lt;a href=&quot;https://www.kaggle.com/clmentbisaillon/fake-and-real-news-dataset&quot;&gt;Kaggle&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;c1&quot;&gt;#train_url = &quot;https://github.com/PhilChodrow/PIC16b/blob/master/datasets/fake_news_train.csv?raw=true&quot;
&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_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'fake_news_train.csv'&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;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;/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;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;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;p&gt;Apart from the indices column, the dataframe contains three more informative columns: title column, the titles of the news; text column, the content of that news; the fake column, label indicating whether the news is 0(real), or 1(fake).&lt;/p&gt;

&lt;h2 id=&quot;make-dataset&quot;&gt;Make Dataset&lt;/h2&gt;

&lt;p&gt;Before we actually start the training process, transforming the dataset into decent forms for training are also very important. Here, we’ll create a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make_dataset&lt;/code&gt; function that’ll do two things:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;remove stop words from the article text and title columns(&lt;em&gt;stop words&lt;/em&gt; refers to those most common words in a language, which could be filtered out for training. Some common stop words are a, the, as, at, by, to, etc)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;construct a tensorflow dataset with inputs (title, text) and output fake column labels. Dataset format of enables the input to be smoothly handled by tensorflow  (tensorflow &lt;a href=&quot;https://www.tensorflow.org/guide/data&quot;&gt;&lt;em&gt;dataset&lt;/em&gt;&lt;/a&gt; is a specific class containing many useful functions to keep you organized)&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To remove stop words, we’ll first import some extra packages and functions.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stop words&lt;/code&gt; function gives you a list of common stop words of specified language;&lt;/li&gt;
  &lt;li&gt;the  &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;word_tokenize&lt;/code&gt; function breaks a string into single words and punctuations of a 1d array form;&lt;/li&gt;
  &lt;li&gt;the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TreebankWordDetokenizer&lt;/code&gt; function detokenizes a 1d array of words, combining it back into one individual string.&lt;/li&gt;
&lt;/ul&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;c1&quot;&gt;#nltk.download('stopwords') #only need to be downloaded once
#nltk.download('punkt')  #only need to be downloaded once as well
&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;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;word_tokenize&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;/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;nltk.tokenize.treebank&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TreebankWordDetokenizer&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;make_dataset&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;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#remove stopwords for the dataframe
&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;'title'&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;s&quot;&gt;'title'&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;word_tokenize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# split a string into separate tokens
&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;'title'&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;s&quot;&gt;'title'&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;w&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&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;ow&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&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;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#remove stopwords
&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;'text'&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;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;n&quot;&gt;word_tokenize&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;'text'&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;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;w&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&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;ow&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;w&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;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;'text'&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;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;n&quot;&gt;TreebankWordDetokenizer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;detokenize&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;c1&quot;&gt;#combine the tokens back to a complete sentence
&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;'title'&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;s&quot;&gt;'title'&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;n&quot;&gt;TreebankWordDetokenizer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;detokenize&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;c1&quot;&gt;#create tensorflow dataset with inputs (title, text) and output fake column labels and return it
&lt;/span&gt;    &lt;span class=&quot;k&quot;&gt;return&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;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;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;&quot;text&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;'text'&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;'fake'&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 apply the function to our training and testing datasets:&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;dataset&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;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;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_dataset&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;h3 id=&quot;train-validation-split-create-batches&quot;&gt;Train Validation Split, Create Batches&lt;/h3&gt;

&lt;p&gt;Now we are ready to construct some train &amp;amp; validation split inside our training set. Along with that, we’ll also set batches for training set, as training with the original dataset volume might be too inefficient for demonstration purposes.&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;#shuffle the complete training set
&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;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;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#specify training and validation size: 0.7 &amp;amp; 0.2, respectively
&lt;/span&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.7&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;dataset&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;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#pick out first 0.7 as training set, with a batch of 100
&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;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;train_size&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;#pick out the next 0.2 as validation set, with a batch of 100
&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;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;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;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;#test  = dataset.skip(train_size + val_size).batch(100) #last 0.1 of data
&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#check for the length of the two sets
&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;span class=&quot;c1&quot;&gt;#, len(test)
&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;(158, 45)
&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;test_ds&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;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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;create-models&quot;&gt;Create Models&lt;/h2&gt;

&lt;p&gt;We are now ready to make our models. While our data contains informative columns of both news title and news text, we would like to know whether titles only, text only, or both, would be more effective for detection of fake news. Therefore, we’ll be creating three models, with similar strategies, and comparing their accuracies.&lt;/p&gt;

&lt;h3 id=&quot;vectorization-layer&quot;&gt;Vectorization layer&lt;/h3&gt;

&lt;p&gt;No matter which combination we’ll be using, we all need to first &lt;em&gt;vectorize&lt;/em&gt; the input strings. Vectorization refers to processing of the strings into computer readable format, which is, numbers. There are multiple ways of vectorization of strings, such as the &lt;a href=&quot;https://nbviewer.jupyter.org/github/PhilChodrow/PIC16A/blob/master/content/NLP/NLP_1.ipynb&quot;&gt;term-document matrix&lt;/a&gt;, etc. Here, we’ll be using the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TextVectorization&lt;/code&gt; function provided by tensorflow. This function would represent each of the words by its rank of frequency in the whole dataset. First, we’ll need to define a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;standardization&lt;/code&gt; function to supply to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TextVectorization&lt;/code&gt; function.&lt;/p&gt;

&lt;p&gt;Here, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;standardization&lt;/code&gt; function would convert all words to lowercases and remove all punctuations.&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;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;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;p&gt;Then, with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TextVectorization&lt;/code&gt; function, we’ll make a &lt;em&gt;vectorize_layer&lt;/em&gt; that transforms each words in the training set, after standardization treatment, into tensors with the words’ corresponding &lt;em&gt;frequency rank&lt;/em&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;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.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;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;/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;# only the first 2000 distinct words in the whole set will be tracked
&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;mi&quot;&gt;2000&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# only the first 20 words of each headline will be considered
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sequence_length&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;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;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;max_tokens&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;n&quot;&gt;output_sequence_length&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sequence_length&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;After creating the layers, we would still need to adapt the layer to our set. By adapting it, we will ensure that the vectorization layer have the words’ corresponding frequency ranks fixed. Thus whenever we are training or testing with that layer, each distinct word would have that one and only ranking.&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;p&gt;Then, we’ll specify two input layers for 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;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;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;/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;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;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;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;h3 id=&quot;model-trains-with-titles-only&quot;&gt;Model trains with titles only&lt;/h3&gt;
&lt;p&gt;Since we have two kinds of inputs, title and text, we’ll be using the keras &lt;em&gt;functional&lt;/em&gt; API, instead of &lt;em&gt;sequential&lt;/em&gt; API. The &lt;em&gt;functional&lt;/em&gt; API can create layers that have more flexible sequences, therefore suitable for building a model with multiple inputs. First, we’ll build a model that learns the news titles only.&lt;/p&gt;

&lt;p&gt;Our first layer would be the vectorize_layer we just built. In each of the following layers, we supply the input as the result obtained from the preceding layer in &lt;em&gt;()&lt;/em&gt;. 
With &lt;a href=&quot;https://www.tensorflow.org/api_docs/python/tf/keras/layers/Dropout&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Dropout&lt;/code&gt;&lt;/a&gt;, the input units in that layer will be set to 0 with a frequency of &lt;em&gt;rate&lt;/em&gt; at each step during training time, which helps prevent overfitting.
The &lt;a href=&quot;https://www.tensorflow.org/api_docs/python/tf/keras/layers/Embedding&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Embedding&lt;/code&gt;&lt;/a&gt; layer creates a vocabulary space, giving each word its own unique spot in that space. Furthermore, the spots of the words are set in a way that the distance and direction between words would indicate relatedness and relationships. We’ll give this layer a name “embedding_tl” to ease the process of examining it later.&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;x&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;n&quot;&gt;x&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;max_tokens&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;5&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_tl&quot;&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;x&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;x&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;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;x&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;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;x&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;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;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&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;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;p&gt;Now, we are finally ready to build the model. Only specifying the initial input, tensorflow will be able to extract all that information we’ve provided of the 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;model_tl&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;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;model_tl&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 (TextVect (None, 20)                0         
_________________________________________________________________
embedding_tl (Embedding)     (None, 20, 5)             10000     
_________________________________________________________________
dropout (Dropout)            (None, 20, 5)             0         
_________________________________________________________________
global_average_pooling1d (Gl (None, 5)                 0         
_________________________________________________________________
dropout_1 (Dropout)          (None, 5)                 0         
_________________________________________________________________
dense (Dense)                (None, 32)                192       
_________________________________________________________________
fake (Dense)                 (None, 2)                 66        
=================================================================
Total params: 10,258
Trainable params: 10,258
Non-trainable params: 0
_________________________________________________________________
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As always, we’ll compile the model and fit it to the training set.&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;model_tl&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;'accuracy'&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;history&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model_tl&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;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;bp&quot;&gt;False&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 we’ll plot out the accuracy curve.&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;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;history&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;history&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;span class=&quot;n&quot;&gt;label&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;training&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;plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;history&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;history&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;val_accuracy&quot;&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;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;validation&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;gca&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;xlabel&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;epoch&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ylabel&lt;/span&gt; &lt;span class=&quot;o&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;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;legend&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/blogpost3_files/blogpost3_31_1.png&quot; alt=&quot;blogpost3_31_1.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;model_tl&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 [==============================] - 0s 1ms/step - loss: 0.0840 - accuracy: 0.9752





[0.08402662724256516, 0.9751881957054138]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Evaluating the model with only titles with out test set, we could see that the accuracy is actually pretty high: 0.97! Let’s see if the other two models could do better.S&lt;/p&gt;

&lt;h3 id=&quot;model-trains-with-text-only&quot;&gt;Model trains with text only&lt;/h3&gt;

&lt;p&gt;Training with text would have a similar process: specify each layers, make the model, compile it, fit it, evaluate and observe.&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;x_&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;n&quot;&gt;x_&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;max_tokens&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;5&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_tx&quot;&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;x_&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;x_&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;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;x_&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;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;x_&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;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;x_&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&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;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;model_tx&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;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;model_tx&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;'accuracy'&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;model_tx&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;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;bp&quot;&gt;False&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;model_tx&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 [==============================] - 1s 6ms/step - loss: 0.1612 - accuracy: 0.9463





[0.16124901175498962, 0.9462782144546509]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The accuracy for the model trained with the text only has a lower accuracy. Somehow reasonable, as the text is longer, and a fake news might also possess some sentences that &lt;em&gt;sounds&lt;/em&gt; true.&lt;/p&gt;

&lt;h3 id=&quot;model-trained-with-both-text-and-title&quot;&gt;Model trained with both text and title&lt;/h3&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;both&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;x&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;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;output_both&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;both&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;model_both&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_both&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;model_both&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_2&quot;
__________________________________________________________________________________________________
Layer (type)                    Output Shape         Param #     Connected to                     
==================================================================================================
title (InputLayer)              [(None, 1)]          0                                            
__________________________________________________________________________________________________
text (InputLayer)               [(None, 1)]          0                                            
__________________________________________________________________________________________________
text_vectorization (TextVectori (None, 20)           0           title[0][0]                      
                                                                 text[0][0]                       
__________________________________________________________________________________________________
embedding_tl (Embedding)        (None, 20, 5)        10000       text_vectorization[0][0]         
__________________________________________________________________________________________________
embedding_tx (Embedding)        (None, 20, 5)        10000       text_vectorization[1][0]         
__________________________________________________________________________________________________
dropout (Dropout)               (None, 20, 5)        0           embedding_tl[0][0]               
__________________________________________________________________________________________________
dropout_2 (Dropout)             (None, 20, 5)        0           embedding_tx[0][0]               
__________________________________________________________________________________________________
global_average_pooling1d (Globa (None, 5)            0           dropout[0][0]                    
__________________________________________________________________________________________________
global_average_pooling1d_1 (Glo (None, 5)            0           dropout_2[0][0]                  
__________________________________________________________________________________________________
dropout_1 (Dropout)             (None, 5)            0           global_average_pooling1d[0][0]   
__________________________________________________________________________________________________
dropout_3 (Dropout)             (None, 5)            0           global_average_pooling1d_1[0][0] 
__________________________________________________________________________________________________
dense (Dense)                   (None, 32)           192         dropout_1[0][0]                  
__________________________________________________________________________________________________
dense_1 (Dense)                 (None, 32)           192         dropout_3[0][0]                  
__________________________________________________________________________________________________
concatenate (Concatenate)       (None, 64)           0           dense[0][0]                      
                                                                 dense_1[0][0]                    
__________________________________________________________________________________________________
fake (Dense)                    (None, 2)            130         concatenate[0][0]                
==================================================================================================
Total params: 20,514
Trainable params: 20,514
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;model_both&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;'accuracy'&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;model_both&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;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;bp&quot;&gt;False&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;tensorflow.python.keras.callbacks.History at 0x7f84c388e910&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;n&quot;&gt;model_both&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 [==============================] - 1s 6ms/step - loss: 0.0371 - accuracy: 0.9913





[0.037129346281290054, 0.991313636302948]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here, we could observe that training with both text and title yields an accuracy of 0.9913!&lt;/p&gt;

&lt;h2 id=&quot;embedding-analysis&quot;&gt;Embedding Analysis&lt;/h2&gt;
&lt;p&gt;In the next stage, we’ll extract the previous &lt;em&gt;Embedding&lt;/em&gt; layer, do some visualization of it to demonstrate how the words are learned by the model. We’ll plot out each word’s spot in the whole 2d vocabulary space. Since our embedding layer has an output of 5 dimensions, we’ll first need to conduct principle component analysis to transform it into 2d representations. Sci-kit learn has that function created for us.&lt;/p&gt;

&lt;p&gt;First, we’ll get the vocabularies and weights corresponding to the words in the two embedding layers of title/text out:&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_tl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model_both&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_tl'&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;n&quot;&gt;weights_tx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model_both&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_tx'&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;/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;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;/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;weights_tl&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;array([[ 0.10268341,  0.09916885, -0.11284392,  0.12111397, -0.10344727],
       [-0.10890676, -0.13384679,  0.10487777, -0.12676527,  0.13442   ],
       [ 0.05327572,  0.05760193, -0.11840718, -0.00806848, -0.11700375],
       ...,
       [ 0.02861674,  0.02574723,  0.04686182,  0.09227268, -0.03490727],
       [ 0.15639482,  0.09743544, -0.06591856,  0.02370312, -0.01798774],
       [ 0.00066107, -0.01369754, -0.06120993,  0.03191474, -0.09007049]],
      dtype=float32)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Next, we perform PCA to the weights to convert them into 2d arrays:&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.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;/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;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_tl&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_tl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;weights_tx&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_tx&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;nb&quot;&gt;len&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;/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;2000
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, we’ll create a data frame containing the embedding of words in titles.&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;embedding_tl&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_tl&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_tl&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;embedding_tl&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;word&lt;/th&gt;
      &lt;th&gt;x0&lt;/th&gt;
      &lt;th&gt;x1&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;&lt;/td&gt;
      &lt;td&gt;-0.195497&lt;/td&gt;
      &lt;td&gt;0.003443&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;[UNK]&lt;/td&gt;
      &lt;td&gt;0.317627&lt;/td&gt;
      &lt;td&gt;0.025609&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;said&lt;/td&gt;
      &lt;td&gt;-0.105505&lt;/td&gt;
      &lt;td&gt;-0.010339&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;trump&lt;/td&gt;
      &lt;td&gt;0.100054&lt;/td&gt;
      &lt;td&gt;-0.045148&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;the&lt;/td&gt;
      &lt;td&gt;1.743519&lt;/td&gt;
      &lt;td&gt;-0.003649&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1995&lt;/th&gt;
      &lt;td&gt;tonight&lt;/td&gt;
      &lt;td&gt;0.910266&lt;/td&gt;
      &lt;td&gt;0.059968&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1996&lt;/th&gt;
      &lt;td&gt;repeated&lt;/td&gt;
      &lt;td&gt;0.170522&lt;/td&gt;
      &lt;td&gt;0.024102&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1997&lt;/th&gt;
      &lt;td&gt;projects&lt;/td&gt;
      &lt;td&gt;-0.014011&lt;/td&gt;
      &lt;td&gt;-0.052086&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1998&lt;/th&gt;
      &lt;td&gt;outcome&lt;/td&gt;
      &lt;td&gt;-0.117215&lt;/td&gt;
      &lt;td&gt;0.046006&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1999&lt;/th&gt;
      &lt;td&gt;launch&lt;/td&gt;
      &lt;td&gt;-0.029681&lt;/td&gt;
      &lt;td&gt;-0.028275&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;2000 rows × 3 columns&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;We’ll do the same thing with the embedding of words in the news 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;embedding_tx&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_tx&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_tx&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;p&gt;Now, we are finally ready to plot the words and their embeddings out！We’ll be using plotly express 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;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;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;/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;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_tl&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;nb&quot;&gt;list&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;ones&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;embedding_tl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))),&lt;/span&gt;
                 &lt;span class=&quot;n&quot;&gt;size_max&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;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 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;c810cdef-f8c4-4704-8bfe-01cd56bb6177&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;c810cdef-f8c4-4704-8bfe-01cd56bb6177&quot;)) {                    Plotly.newPlot(                        &quot;c810cdef-f8c4-4704-8bfe-01cd56bb6177&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;said&quot;, &quot;trump&quot;, &quot;the&quot;, &quot;us&quot;, &quot;i&quot;, &quot;would&quot;, &quot;president&quot;, &quot;people&quot;, &quot;one&quot;, &quot;also&quot;, &quot;state&quot;, &quot;new&quot;, &quot;donald&quot;, &quot;states&quot;, &quot;house&quot;, &quot;government&quot;, &quot;it&quot;, &quot;he&quot;, &quot;clinton&quot;, &quot;obama&quot;, &quot;republican&quot;, &quot;could&quot;, &quot;united&quot;, &quot;told&quot;, &quot;like&quot;, &quot;white&quot;, &quot;in&quot;, &quot;campaign&quot;, &quot;we&quot;, &quot;last&quot;, &quot;two&quot;, &quot;time&quot;, &quot;election&quot;, &quot;news&quot;, &quot;party&quot;, &quot;first&quot;, &quot;even&quot;, &quot;a&quot;, &quot;former&quot;, &quot;year&quot;, &quot;country&quot;, &quot;many&quot;, &quot;years&quot;, &quot;but&quot;, &quot;hillary&quot;, &quot;security&quot;, &quot;may&quot;, &quot;this&quot;, &quot;media&quot;, &quot;political&quot;, &quot;say&quot;, &quot;national&quot;, &quot;get&quot;, &quot;made&quot;, &quot;police&quot;, &quot;make&quot;, &quot;since&quot;, &quot;court&quot;, &quot;american&quot;, &quot;law&quot;, &quot;republicans&quot;, &quot;going&quot;, &quot;presidential&quot;, &quot;percent&quot;, &quot;back&quot;, &quot;democratic&quot;, &quot;bill&quot;, &quot;support&quot;, &quot;administration&quot;, &quot;week&quot;, &quot;including&quot;, &quot;know&quot;, &quot;according&quot;, &quot;america&quot;, &quot;north&quot;, &quot;vote&quot;, &quot;senate&quot;, &quot;officials&quot;, &quot;way&quot;, &quot;trumps&quot;, &quot;public&quot;, &quot;russia&quot;, &quot;take&quot;, &quot;office&quot;, &quot;think&quot;, &quot;group&quot;, &quot;right&quot;, &quot;world&quot;, &quot;million&quot;, &quot;called&quot;, &quot;military&quot;, &quot;statement&quot;, &quot;federal&quot;, &quot;they&quot;, &quot;and&quot;, &quot;foreign&quot;, &quot;want&quot;, &quot;department&quot;, &quot;saying&quot;, &quot;washington&quot;, &quot;well&quot;, &quot;see&quot;, &quot;tuesday&quot;, &quot;much&quot;, &quot;says&quot;, &quot;2016&quot;, &quot;still&quot;, &quot;congress&quot;, &quot;tax&quot;, &quot;another&quot;, &quot;part&quot;, &quot;friday&quot;, &quot;wednesday&quot;, &quot;day&quot;, &quot;work&quot;, &quot;thursday&quot;, &quot;russian&quot;, &quot;minister&quot;, &quot;women&quot;, &quot;democrats&quot;, &quot;go&quot;, &quot;asked&quot;, &quot;if&quot;, &quot;that&quot;, &quot;city&quot;, &quot;policy&quot;, &quot;monday&quot;, &quot;black&quot;, &quot;deal&quot;, &quot;rights&quot;, &quot;need&quot;, &quot;secretary&quot;, &quot;committee&quot;, &quot;next&quot;, &quot;americans&quot;, &quot;china&quot;, &quot;war&quot;, &quot;three&quot;, &quot;help&quot;, &quot;general&quot;, &quot;official&quot;, &quot;whether&quot;, &quot;never&quot;, &quot;man&quot;, &quot;show&quot;, &quot;leader&quot;, &quot;around&quot;, &quot;case&quot;, &quot;york&quot;, &quot;you&quot;, &quot;use&quot;, &quot;korea&quot;, &quot;took&quot;, &quot;come&quot;, &quot;members&quot;, &quot;candidate&quot;, &quot;countries&quot;, &quot;without&quot;, &quot;left&quot;, &quot;good&quot;, &quot;order&quot;, &quot;report&quot;, &quot;put&quot;, &quot;senator&quot;, &quot;times&quot;, &quot;every&quot;, &quot;trade&quot;, &quot;meeting&quot;, &quot;really&quot;, &quot;power&quot;, &quot;end&quot;, &quot;she&quot;, &quot;there&quot;, &quot;intelligence&quot;, &quot;attack&quot;, &quot;fbi&quot;, &quot;used&quot;, &quot;top&quot;, &quot;month&quot;, &quot;reported&quot;, &quot;money&quot;, &quot;information&quot;, &quot;investigation&quot;, &quot;fact&quot;, &quot;justice&quot;, &quot;decision&quot;, &quot;twitter&quot;, &quot;syria&quot;, &quot;leaders&quot;, &quot;business&quot;, &quot;already&quot;, &quot;iran&quot;, &quot;long&quot;, &quot;change&quot;, &quot;voters&quot;, &quot;family&quot;, &quot;plan&quot;, &quot;far&quot;, &quot;days&quot;, &quot;story&quot;, &quot;groups&quot;, &quot;nuclear&quot;, &quot;interview&quot;, &quot;conservative&quot;, &quot;several&quot;, &quot;international&quot;, &quot;speech&quot;, &quot;place&quot;, &quot;children&quot;, &quot;fox&quot;, &quot;likely&quot;, &quot;months&quot;, &quot;south&quot;, &quot;among&quot;, &quot;as&quot;, &quot;director&quot;, &quot;believe&quot;, &quot;got&quot;, &quot;clear&quot;, &quot;press&quot;, &quot;came&quot;, &quot;on&quot;, &quot;however&quot;, &quot;must&quot;, &quot;something&quot;, &quot;program&quot;, &quot;recent&quot;, &quot;chief&quot;, &quot;health&quot;, &quot;agency&quot;, &quot;social&quot;, &quot;call&quot;, &quot;least&quot;, &quot;barack&quot;, &quot;move&quot;, &quot;immigration&quot;, &quot;islamic&quot;, &quot;john&quot;, &quot;control&quot;, &quot;billion&quot;, &quot;might&quot;, &quot;seen&quot;, &quot;things&quot;, &quot;number&quot;, &quot;killed&quot;, &quot;home&quot;, &quot;post&quot;, &quot;major&quot;, &quot;issue&quot;, &quot;border&quot;, &quot;went&quot;, &quot;act&quot;, &quot;earlier&quot;, &quot;trying&quot;, &quot;matter&quot;, &quot;though&quot;, &quot;supporters&quot;, &quot;found&quot;, &quot;actually&quot;, &quot;point&quot;, &quot;sunday&quot;, &quot;reporters&quot;, &quot;yet&quot;, &quot;today&quot;, &quot;2017&quot;, &quot;march&quot;, &quot;school&quot;, &quot;great&quot;, &quot;spokesman&quot;, &quot;sanders&quot;, &quot;past&quot;, &quot;look&quot;, &quot;thing&quot;, &quot;nation&quot;, &quot;become&quot;, &quot;give&quot;, &quot;later&quot;, &quot;executive&quot;, &quot;real&quot;, &quot;let&quot;, &quot;away&quot;, &quot;at&quot;, &quot;added&quot;, &quot;keep&quot;, &quot;set&quot;, &quot;system&quot;, &quot;democrat&quot;, &quot;free&quot;, &quot;four&quot;, &quot;making&quot;, &quot;win&quot;, &quot;senior&quot;, &quot;working&quot;, &quot;muslim&quot;, &quot;legal&quot;, &quot;ever&quot;, &quot;economic&quot;, &quot;violence&quot;, &quot;july&quot;, &quot;defense&quot;, &quot;little&quot;, &quot;forces&quot;, &quot;member&quot;, &quot;attacks&quot;, &quot;nations&quot;, &quot;comment&quot;, &quot;stop&quot;, &quot;following&quot;, &quot;big&quot;, &quot;january&quot;, &quot;companies&quot;, &quot;nothing&quot;, &quot;prime&quot;, &quot;issues&quot;, &quot;european&quot;, &quot;eu&quot;, &quot;taking&quot;, &quot;sanctions&quot;, &quot;head&quot;, &quot;local&quot;, &quot;enough&quot;, &quot;given&quot;, &quot;human&quot;, &quot;so&quot;, &quot;talks&quot;, &quot;2015&quot;, &quot;across&quot;, &quot;un&quot;, &quot;held&quot;, &quot;continue&quot;, &quot;action&quot;, &quot;reports&quot;, &quot;person&quot;, &quot;night&quot;, &quot;expected&quot;, &quot;woman&quot;, &quot;what&quot;, &quot;known&quot;, &quot;opposition&quot;, &quot;better&quot;, &quot;nominee&quot;, &quot;company&quot;, &quot;force&quot;, &quot;care&quot;, &quot;lawmakers&quot;, &quot;possible&quot;, &quot;gun&quot;, &quot;watch&quot;, &quot;1&quot;, &quot;lot&quot;, &quot;illegal&quot;, &quot;legislation&quot;, &quot;high&quot;, &quot;wall&quot;, &quot;community&quot;, &quot;men&quot;, &quot;when&quot;, &quot;job&quot;, &quot;cruz&quot;, &quot;wrote&quot;, &quot;financial&quot;, &quot;governor&quot;, &quot;syrian&quot;, &quot;refugees&quot;, &quot;close&quot;, &quot;history&quot;, &quot;life&quot;, &quot;supreme&quot;, &quot;pay&quot;, &quot;source&quot;, &quot;open&quot;, &quot;gop&quot;, &quot;others&quot;, &quot;taken&quot;, &quot;team&quot;, &quot;process&quot;, &quot;course&quot;, &quot;released&quot;, &quot;anyone&quot;, &quot;private&quot;, &quot;important&quot;, &quot;face&quot;, &quot;attorney&quot;, &quot;union&quot;, &quot;judge&quot;, &quot;question&quot;, &quot;done&quot;, &quot;november&quot;, &quot;june&quot;, &quot;budget&quot;, &quot;10&quot;, &quot;run&quot;, &quot;wants&quot;, &quot;no&quot;, &quot;20&quot;, &quot;realdonaldtrump&quot;, &quot;mexico&quot;, &quot;majority&quot;, &quot;second&quot;, &quot;conference&quot;, &quot;ago&quot;, &quot;ban&quot;, &quot;response&quot;, &quot;fight&quot;, &quot;staff&quot;, &quot;for&quot;, &quot;evidence&quot;, &quot;https&quot;, &quot;find&quot;, &quot;air&quot;, &quot;plans&quot;, &quot;mr&quot;, &quot;university&quot;, &quot;lives&quot;, &quot;able&quot;, &quot;efforts&quot;, &quot;anything&quot;, &quot;saturday&quot;, &quot;special&quot;, &quot;debate&quot;, &quot;best&quot;, &quot;despite&quot;, &quot;using&quot;, &quot;accused&quot;, &quot;early&quot;, &quot;behind&quot;, &quot;comments&quot;, &quot;email&quot;, &quot;agreement&quot;, &quot;race&quot;, &quot;announced&quot;, &quot;future&quot;, &quot;council&quot;, &quot;someone&quot;, &quot;letter&quot;, &quot;crisis&quot;, &quot;calling&quot;, &quot;while&quot;, &quot;death&quot;, &quot;role&quot;, &quot;iraq&quot;, &quot;along&quot;, &quot;within&quot;, &quot;less&quot;, &quot;instead&quot;, &quot;five&quot;, &quot;full&quot;, &quot;comes&quot;, &quot;sure&quot;, &quot;due&quot;, &quot;students&quot;, &quot;service&quot;, &quot;region&quot;, &quot;coalition&quot;, &quot;event&quot;, &quot;current&quot;, &quot;after&quot;, &quot;ryan&quot;, &quot;saudi&quot;, &quot;here&quot;, &quot;weeks&quot;, &quot;coming&quot;, &quot;visit&quot;, &quot;economy&quot;, &quot;getting&quot;, &quot;civil&quot;, &quot;name&quot;, &quot;lead&quot;, &quot;putin&quot;, &quot;israel&quot;, &quot;jobs&quot;, &quot;live&quot;, &quot;8&quot;, &quot;young&quot;, &quot;december&quot;, &quot;hard&quot;, &quot;effort&quot;, &quot;sent&quot;, &quot;elections&quot;, &quot;running&quot;, &quot;rules&quot;, &quot;florida&quot;, &quot;britain&quot;, &quot;congressional&quot;, &quot;nearly&quot;, &quot;september&quot;, &quot;votes&quot;, &quot;sources&quot;, &quot;his&quot;, &quot;global&quot;, &quot;street&quot;, &quot;muslims&quot;, &quot;allow&quot;, &quot;comey&quot;, &quot;citizens&quot;, &quot;ties&quot;, &quot;candidates&quot;, &quot;line&quot;, &quot;center&quot;, &quot;officers&quot;, &quot;texas&quot;, &quot;thousands&quot;, &quot;position&quot;, &quot;needs&quot;, &quot;emails&quot;, &quot;daily&quot;, &quot;leave&quot;, &quot;october&quot;, &quot;problem&quot;, &quot;chairman&quot;, &quot;army&quot;, &quot;facebook&quot;, &quot;2014&quot;, &quot;wanted&quot;, &quot;led&quot;, &quot;late&quot;, &quot;began&quot;, &quot;representatives&quot;, &quot;politics&quot;, &quot;paul&quot;, &quot;immediately&quot;, &quot;april&quot;, &quot;15&quot;, &quot;weapons&quot;, &quot;talk&quot;, &quot;2&quot;, &quot;middle&quot;, &quot;authorities&quot;, &quot;together&quot;, &quot;outside&quot;, &quot;central&quot;, &quot;failed&quot;, &quot;workers&quot;, &quot;ruling&quot;, &quot;hold&quot;, &quot;tell&quot;, &quot;east&quot;, &quot;everyone&quot;, &quot;gave&quot;, &quot;thought&quot;, &quot;healthcare&quot;, &quot;claims&quot;, &quot;start&quot;, &quot;message&quot;, &quot;relations&quot;, &quot;county&quot;, &quot;whose&quot;, &quot;showed&quot;, &quot;reform&quot;, &quot;capital&quot;, &quot;criminal&quot;, &quot;peace&quot;, &quot;means&quot;, &quot;immigrants&quot;, &quot;services&quot;, &quot;different&quot;, &quot;try&quot;, &quot;read&quot;, &quot;lost&quot;, &quot;district&quot;, &quot;latest&quot;, &quot;list&quot;, &quot;threat&quot;, &quot;obamacare&quot;, &quot;based&quot;, &quot;august&quot;, &quot;access&quot;, &quot;speaking&quot;, &quot;liberal&quot;, &quot;to&quot;, &quot;millions&quot;, &quot;rule&quot;, &quot;words&quot;, &quot;bush&quot;, &quot;spending&quot;, &quot;tried&quot;, &quot;february&quot;, &quot;some&quot;, &quot;racist&quot;, &quot;always&quot;, &quot;climate&quot;, &quot;agencies&quot;, &quot;voting&quot;, &quot;involved&quot;, &quot;hope&quot;, &quot;conservatives&quot;, &quot;ministry&quot;, &quot;rather&quot;, &quot;europe&quot;, &quot;bad&quot;, &quot;strong&quot;, &quot;morning&quot;, &quot;received&quot;, &quot;george&quot;, &quot;recently&quot;, &quot;six&quot;, &quot;concerns&quot;, &quot;questions&quot;, &quot;germany&quot;, &quot;policies&quot;, &quot;everything&quot;, &quot;parliament&quot;, &quot;stand&quot;, &quot;allowed&quot;, &quot;elected&quot;, &quot;cut&quot;, &quot;almost&quot;, &quot;idea&quot;, &quot;officer&quot;, &quot;organization&quot;, &quot;turkey&quot;, &quot;shot&quot;, &quot;rally&quot;, &quot;reason&quot;, &quot;bring&quot;, &quot;decided&quot;, &quot;ahead&quot;, &quot;often&quot;, &quot;poll&quot;, &quot;funding&quot;, &quot;situation&quot;, &quot;kind&quot;, &quot;allies&quot;, &quot;planned&quot;, &quot;meet&quot;, &quot;makes&quot;, &quot;bank&quot;, &quot;hate&quot;, &quot;return&quot;, &quot;laws&quot;, &quot;fire&quot;, &quot;side&quot;, &quot;protect&quot;, &quot;entire&quot;, &quot;shooting&quot;, &quot;missile&quot;, &quot;talking&quot;, &quot;happened&quot;, &quot;enforcement&quot;, &quot;sexual&quot;, &quot;met&quot;, &quot;looking&quot;, &quot;allegations&quot;, &quot;needed&quot;, &quot;charges&quot;, &quot;30&quot;, &quot;3&quot;, &quot;seems&quot;, &quot;include&quot;, &quot;freedom&quot;, &quot;provide&quot;, &quot;denied&quot;, &quot;parties&quot;, &quot;century&quot;, &quot;more&quot;, &quot;not&quot;, &quot;movement&quot;, &quot;especially&quot;, &quot;key&quot;, &quot;release&quot;, &quot;personal&quot;, &quot;nomination&quot;, &quot;voted&quot;, &quot;vice&quot;, &quot;energy&quot;, &quot;agreed&quot;, &quot;adding&quot;, &quot;market&quot;, &quot;fake&quot;, &quot;near&quot;, &quot;small&quot;, &quot;industry&quot;, &quot;calls&quot;, &quot;although&quot;, &quot;either&quot;, &quot;large&quot;, &quot;west&quot;, &quot;host&quot;, &quot;oil&quot;, &quot;area&quot;, &quot;hours&quot;, &quot;old&quot;, &quot;chinese&quot;, &quot;room&quot;, &quot;tweet&quot;, &quot;presidency&quot;, &quot;actions&quot;, &quot;12&quot;, &quot;fighting&quot;, &quot;confirmed&quot;, &quot;clearly&quot;, &quot;james&quot;, &quot;shows&quot;, &quot;true&quot;, &quot;hit&quot;, &quot;quot&quot;, &quot;data&quot;, &quot;2012&quot;, &quot;western&quot;, &quot;request&quot;, &quot;cases&quot;, &quot;spoke&quot;, &quot;polls&quot;, &quot;address&quot;, &quot;now&quot;, &quot;serious&quot;, &quot;j&quot;, &quot;claim&quot;, &quot;terrorist&quot;, &quot;step&quot;, &quot;decades&quot;, &quot;feel&quot;, &quot;fired&quot;, &quot;11&quot;, &quot;potential&quot;, &quot;insurance&quot;, &quot;california&quot;, &quot;representative&quot;, &quot;arrested&quot;, &quot;alleged&quot;, &quot;claimed&quot;, &quot;worked&quot;, &quot;biggest&quot;, &quot;commission&quot;, &quot;term&quot;, &quot;wrong&quot;, &quot;forward&quot;, &quot;british&quot;, &quot;terrorism&quot;, &quot;protesters&quot;, &quot;front&quot;, &quot;interest&quot;, &quot;all&quot;, &quot;water&quot;, &quot;pressure&quot;, &quot;adviser&quot;, &quot;with&quot;, &quot;result&quot;, &quot;foundation&quot;, &quot;documents&quot;, &quot;leading&quot;, &quot;hearing&quot;, &quot;relationship&quot;, &quot;appeared&quot;, &quot;main&quot;, &quot;continued&quot;, &quot;board&quot;, &quot;probably&quot;, &quot;wife&quot;, &quot;soon&quot;, &quot;25&quot;, &quot;declined&quot;, &quot;building&quot;, &quot;tillerson&quot;, &quot;korean&quot;, &quot;david&quot;, &quot;crime&quot;, &quot;travel&quot;, &quot;college&quot;, &quot;record&quot;, &quot;families&quot;, &quot;started&quot;, &quot;food&quot;, &quot;featured&quot;, &quot;5&quot;, &quot;mean&quot;, &quot;paid&quot;, &quot;mark&quot;, &quot;moscow&quot;, &quot;turned&quot;, &quot;leadership&quot;, &quot;is&quot;, &quot;forced&quot;, &quot;toward&quot;, &quot;dollars&quot;, &quot;truth&quot;, &quot;pretty&quot;, &quot;passed&quot;, &quot;included&quot;, &quot;myanmar&quot;, &quot;merkel&quot;, &quot;taxes&quot;, &quot;became&quot;, &quot;michael&quot;, &quot;brought&quot;, &quot;spent&quot;, &quot;signed&quot;, &quot;attempt&quot;, &quot;aid&quot;, &quot;review&quot;, &quot;network&quot;, &quot;father&quot;, &quot;simply&quot;, &quot;posted&quot;, &quot;nov&quot;, &quot;primary&quot;, &quot;previously&quot;, &quot;love&quot;, &quot;influence&quot;, &quot;details&quot;, &quot;independence&quot;, &quot;short&quot;, &quot;victory&quot;, &quot;friends&quot;, &quot;saw&quot;, &quot;popular&quot;, &quot;issued&quot;, &quot;total&quot;, &quot;pence&quot;, &quot;level&quot;, &quot;child&quot;, &quot;mike&quot;, &quot;article&quot;, &quot;town&quot;, &quot;view&quot;, &quot;guy&quot;, &quot;seeking&quot;, &quot;conflict&quot;, &quot;4&quot;, &quot;2013&quot;, &quot;these&quot;, &quot;hand&quot;, &quot;areas&quot;, &quot;raised&quot;, &quot;pass&quot;, &quot;incident&quot;, &quot;turn&quot;, &quot;rubio&quot;, &quot;proposed&quot;, &quot;violent&quot;, &quot;arabia&quot;, &quot;half&quot;, &quot;clintons&quot;, &quot;final&quot;, &quot;mccain&quot;, &quot;obamas&quot;, &quot;our&quot;, &quot;longer&quot;, &quot;else&quot;, &quot;points&quot;, &quot;deputy&quot;, &quot;son&quot;, &quot;whole&quot;, &quot;giving&quot;, &quot;mayor&quot;, &quot;21st&quot;, &quot;criticized&quot;, &quot;regional&quot;, &quot;account&quot;, &quot;independent&quot;, &quot;living&quot;, &quot;religious&quot;, &quot;lawyer&quot;, &quot;hundreds&quot;, &quot;largest&quot;, &quot;debt&quot;, &quot;agenda&quot;, &quot;remarks&quot;, &quot;protest&quot;, &quot;firm&quot;, &quot;of&quot;, &quot;push&quot;, &quot;constitution&quot;, &quot;protests&quot;, &quot;cia&quot;, &quot;bernie&quot;, &quot;ambassador&quot;, &quot;created&quot;, &quot;reality&quot;, &quot;currently&quot;, &quot;photo&quot;, &quot;described&quot;, &quot;absolutely&quot;, &quot;iraqi&quot;, &quot;hands&quot;, &quot;sign&quot;, &quot;programs&quot;, &quot;helped&quot;, &quot;similar&quot;, &quot;fear&quot;, &quot;respond&quot;, &quot;education&quot;, &quot;robert&quot;, &quot;repeatedly&quot;, &quot;heard&quot;, &quot;crowd&quot;, &quot;voter&quot;, &quot;third&quot;, &quot;employees&quot;, &quot;convention&quot;, &quot;ask&quot;, &quot;refugee&quot;, &quot;san&quot;, &quot;website&quot;, &quot;published&quot;, &quot;remain&quot;, &quot;fund&quot;, &quot;secret&quot;, &quot;example&quot;, &quot;armed&quot;, &quot;build&quot;, &quot;phone&quot;, &quot;german&quot;, &quot;funds&quot;, &quot;ted&quot;, &quot;speak&quot;, &quot;mass&quot;, &quot;apparently&quot;, &quot;changes&quot;, &quot;tweeted&quot;, &quot;increase&quot;, &quot;risk&quot;, &quot;single&quot;, &quot;militants&quot;, &quot;how&quot;, &quot;sessions&quot;, &quot;goes&quot;, &quot;100&quot;, &quot;flag&quot;, &quot;urged&quot;, &quot;telling&quot;, &quot;criticism&quot;, &quot;warned&quot;, &quot;discuss&quot;, &quot;student&quot;, &quot;speaker&quot;, &quot;al&quot;, &quot;18&quot;, &quot;flynn&quot;, &quot;seven&quot;, &quot;inside&quot;, &quot;victims&quot;, &quot;joe&quot;, &quot;spokeswoman&quot;, &quot;appears&quot;, &quot;research&quot;, &quot;an&quot;, &quot;dangerous&quot;, &quot;carolina&quot;, &quot;base&quot;, &quot;exactly&quot;, &quot;northern&quot;, &quot;king&quot;, &quot;form&quot;, &quot;cost&quot;, &quot;understand&quot;, &quot;happen&quot;, &quot;tv&quot;, &quot;experts&quot;, &quot;church&quot;, &quot;television&quot;, &quot;safety&quot;, &quot;businesses&quot;, &quot;lower&quot;, &quot;results&quot;, &quot;transition&quot;, &quot;individuals&quot;, &quot;6&quot;, &quot;previous&quot;, &quot;isis&quot;, &quot;share&quot;, &quot;online&quot;, &quot;threats&quot;, &quot;events&quot;, &quot;seek&quot;, &quot;measures&quot;, &quot;stay&quot;, &quot;opinion&quot;, &quot;france&quot;, &quot;died&quot;, &quot;brexit&quot;, &quot;quickly&quot;, &quot;medical&quot;, &quot;leaving&quot;, &quot;johnson&quot;, &quot;interests&quot;, &quot;asking&quot;, &quot;7&quot;, &quot;radio&quot;, &quot;problems&quot;, &quot;completely&quot;, &quot;book&quot;, &quot;9&quot;, &quot;troops&quot;, &quot;page&quot;, &quot;thinks&quot;, &quot;numbers&quot;, &quot;24&quot;, &quot;presidentelect&quot;, &quot;focus&quot;, &quot;mainstream&quot;, &quot;proposal&quot;, &quot;gets&quot;, &quot;consider&quot;, &quot;create&quot;, &quot;50&quot;, &quot;certain&quot;, &quot;16&quot;, &quot;project&quot;, &quot;attention&quot;, &quot;safe&quot;, &quot;respect&quot;, &quot;fellow&quot;, &quot;christian&quot;, &quot;southern&quot;, &quot;13&quot;, &quot;by&quot;, &quot;concerned&quot;, &quot;land&quot;, &quot;kurdish&quot;, &quot;development&quot;, &quot;choice&quot;, &quot;cause&quot;, &quot;internet&quot;, &quot;ground&quot;, &quot;served&quot;, &quot;responsible&quot;, &quot;prevent&quot;, &quot;investment&quot;, &quot;drug&quot;, &quot;kelly&quot;, &quot;committed&quot;, &quot;yes&quot;, &quot;responded&quot;, &quot;parents&quot;, &quot;knows&quot;, &quot;presidents&quot;, &quot;powerful&quot;, &quot;fraud&quot;, &quot;concern&quot;, &quot;trip&quot;, &quot;reporter&quot;, &quot;charged&quot;, &quot;named&quot;, &quot;rep&quot;, &quot;operations&quot;, &quot;senators&quot;, &quot;nato&quot;, &quot;provided&quot;, &quot;certainly&quot;, &quot;moment&quot;, &quot;japan&quot;, &quot;referendum&quot;, &quot;its&quot;, &quot;coverage&quot;, &quot;ready&quot;, &quot;politicians&quot;, &quot;knew&quot;, &quot;french&quot;, &quot;rhetoric&quot;, &quot;rate&quot;, &quot;filed&quot;, &quot;poor&quot;, &quot;terms&quot;, &quot;hear&quot;, &quot;favor&quot;, &quot;critical&quot;, &quot;considered&quot;, &quot;governments&quot;, &quot;mother&quot;, &quot;moore&quot;, &quot;island&quot;, &quot;false&quot;, &quot;backed&quot;, &quot;prison&quot;, &quot;eight&quot;, &quot;diplomatic&quot;, &quot;answer&quot;, &quot;residents&quot;, &quot;threatened&quot;, &quot;takes&quot;, &quot;impact&quot;, &quot;society&quot;, &quot;w&quot;, &quot;organizations&quot;, &quot;series&quot;, &quot;views&quot;, &quot;schools&quot;, &quot;expressed&quot;, &quot;expect&quot;, &quot;measure&quot;, &quot;holding&quot;, &quot;worst&quot;, &quot;terrorists&quot;, &quot;parts&quot;, &quot;behavior&quot;, &quot;serve&quot;, &quot;repeal&quot;, &quot;virginia&quot;, &quot;sean&quot;, &quot;negotiations&quot;, &quot;growing&quot;, &quot;charge&quot;, &quot;play&quot;, &quot;ensure&quot;, &quot;chance&quot;, &quot;terror&quot;, &quot;direct&quot;, &quot;corruption&quot;, &quot;17&quot;, &quot;records&quot;, &quot;believed&quot;, &quot;sides&quot;, &quot;reached&quot;, &quot;husband&quot;, &quot;class&quot;, &quot;affairs&quot;, &quot;cuts&quot;, &quot;cities&quot;, &quot;car&quot;, &quot;why&quot;, &quot;body&quot;, &quot;believes&quot;, &quot;assault&quot;, &quot;approved&quot;, &quot;standing&quot;, &quot;panel&quot;, &quot;refused&quot;, &quot;target&quot;, &quot;god&quot;, &quot;amendment&quot;, &quot;mcconnell&quot;, &quot;democracy&quot;, &quot;activists&quot;, &quot;ability&quot;, &quot;send&quot;, &quot;agree&quot;, &quot;22&quot;, &quot;massive&quot;, &quot;huge&quot;, &quot;sought&quot;, &quot;difficult&quot;, &quot;protection&quot;, &quot;exchange&quot;, &quot;14&quot;, &quot;complete&quot;, &quot;offered&quot;, &quot;suggested&quot;, &quot;defend&quot;, &quot;s&quot;, &quot;london&quot;, &quot;statements&quot;, &quot;labor&quot;, &quot;iranian&quot;, &quot;just&quot;, &quot;beyond&quot;, &quot;ordered&quot;, &quot;crimes&quot;, &quot;counsel&quot;, &quot;o&quot;, &quot;includes&quot;, &quot;guns&quot;, &quot;paris&quot;, &quot;remains&quot;, &quot;offer&quot;, &quot;low&quot;, &quot;2011&quot;, &quot;rest&quot;, &quot;radical&quot;, &quot;killing&quot;, &quot;common&quot;, &quot;lack&quot;, &quot;dead&quot;, &quot;courts&quot;, &quot;screen&quot;, &quot;perhaps&quot;, &quot;macron&quot;, &quot;spicer&quot;, &quot;rohingya&quot;, &quot;chris&quot;, &quot;sen&quot;, &quot;test&quot;, &quot;opportunity&quot;, &quot;my&quot;, &quot;continues&quot;, &quot;red&quot;, &quot;reach&quot;, &quot;weekend&quot;, &quot;lose&quot;, &quot;cabinet&quot;, &quot;word&quot;, &quot;effect&quot;, &quot;caused&quot;, &quot;related&quot;, &quot;operation&quot;, &quot;mexican&quot;, &quot;gone&quot;, &quot;during&quot;, &quot;27&quot;, &quot;supporting&quot;, &quot;progress&quot;, &quot;period&quot;, &quot;newspaper&quot;, &quot;2018&quot;, &quot;population&quot;, &quot;gas&quot;, &quot;significant&quot;, &quot;avoid&quot;, &quot;willing&quot;, &quot;maybe&quot;, &quot;looks&quot;, &quot;authority&quot;, &quot;21&quot;, &quot;ways&quot;, &quot;fiscal&quot;, &quot;finally&quot;, &quot;worth&quot;, &quot;supported&quot;, &quot;strategy&quot;, &quot;rich&quot;, &quot;daughter&quot;, &quot;regarding&quot;, &quot;raise&quot;, &quot;chicago&quot;, &quot;showing&quot;, &quot;buy&quot;, &quot;becoming&quot;, &quot;gay&quot;, &quot;fair&quot;, &quot;considering&quot;, &quot;arms&quot;, &quot;additional&quot;, &quot;michigan&quot;, &quot;eastern&quot;, &quot;joint&quot;, &quot;multiple&quot;, &quot;income&quot;, &quot;dnc&quot;, &quot;particularly&quot;, &quot;friend&quot;, &quot;f&quot;, &quot;2008&quot;, &quot;status&quot;, &quot;socalled&quot;, &quot;sense&quot;, &quot;migrants&quot;, &quot;lies&quot;, &quot;canada&quot;, &quot;appear&quot;, &quot;agents&quot;, &quot;28&quot;, &quot;quite&quot;, &quot;promised&quot;, &quot;noted&quot;, &quot;block&quot;, &quot;announcement&quot;, &quot;costs&quot;, &quot;accept&quot;, &quot;facts&quot;, &quot;critics&quot;, &quot;arab&quot;, &quot;regulations&quot;, &quot;domestic&quot;, &quot;capture&quot;, &quot;abortion&quot;, &quot;inc&quot;, &quot;cover&quot;, &quot;summit&quot;, &quot;scandal&quot;, &quot;attacked&quot;, &quot;jr&quot;, &quot;xi&quot;, &quot;join&quot;, &quot;corporate&quot;, &quot;citing&quot;, &quot;2010&quot;, &quot;star&quot;, &quot;individual&quot;, &quot;decide&quot;, &quot;worse&quot;, &quot;mind&quot;, &quot;electoral&quot;, &quot;towards&quot;, &quot;opposed&quot;, &quot;jerusalem&quot;, &quot;necessary&quot;, &quot;per&quot;, &quot;dc&quot;, &quot;replace&quot;, &quot;lawsuit&quot;, &quot;remember&quot;, &quot;puerto&quot;, &quot;cooperation&quot;, &quot;afghanistan&quot;, &quot;referring&quot;, &quot;finance&quot;, &quot;declared&quot;, &quot;mostly&quot;, &quot;steve&quot;, &quot;kids&quot;, &quot;israeli&quot;, &quot;probe&quot;, &quot;challenge&quot;, &quot;19&quot;, &quot;upon&quot;, &quot;sept&quot;, &quot;putting&quot;, &quot;minority&quot;, &quot;because&quot;, &quot;publicly&quot;, &quot;seem&quot;, &quot;regime&quot;, &quot;lawyers&quot;, &quot;environmental&quot;, &quot;directly&quot;, &quot;alabama&quot;, &quot;supporter&quot;, &quot;oct&quot;, &quot;higher&quot;, &quot;establishment&quot;, &quot;rise&quot;, &quot;reporting&quot;, &quot;price&quot;, &quot;jan&quot;, &quot;followed&quot;, &quot;cuba&quot;, &quot;turkish&quot;, &quot;trust&quot;, &quot;aimed&quot;, &quot;shut&quot;, &quot;communications&quot;, &quot;approval&quot;, &quot;seriously&quot;, &quot;responsibility&quot;, &quot;subject&quot;, &quot;soldiers&quot;, &quot;revealed&quot;, &quot;ohio&quot;, &quot;facing&quot;, &quot;ended&quot;, &quot;yemen&quot;, &quot;cast&quot;, &quot;begin&quot;, &quot;battle&quot;, &quot;23&quot;, &quot;beijing&quot;, &quot;rival&quot;, &quot;credit&quot;, &quot;accusations&quot;, &quot;vladimir&quot;, &quot;26&quot;, &quot;language&quot;, &quot;wikileaks&quot;, &quot;deep&quot;, &quot;kim&quot;, &quot;green&quot;, &quot;scott&quot;, &quot;manager&quot;, &quot;largely&quot;, &quot;association&quot;, &quot;trial&quot;, &quot;briefing&quot;, &quot;legislative&quot;, &quot;launched&quot;, &quot;various&quot;, &quot;emergency&quot;, &quot;blame&quot;, &quot;hollywood&quot;, &quot;available&quot;, &quot;arrest&quot;, &quot;helping&quot;, &quot;experience&quot;, &quot;classified&quot;, &quot;stage&quot;, &quot;positions&quot;, &quot;caught&quot;, &quot;ran&quot;, &quot;conspiracy&quot;, &quot;sea&quot;, &quot;sex&quot;, &quot;de&quot;, &quot;transgender&quot;, &quot;growth&quot;, &quot;deals&quot;, &quot;meetings&quot;, &quot;jeff&quot;, &quot;investigating&quot;, &quot;ally&quot;, &quot;pyongyang&quot;, &quot;decisions&quot;, &quot;constitutional&quot;, &quot;amp&quot;, &quot;alliance&quot;, &quot;journalists&quot;, &quot;required&quot;, &quot;communities&quot;, &quot;winning&quot;, &quot;joined&quot;, &quot;technology&quot;, &quot;guilty&quot;, &quot;accounts&quot;, &quot;estate&quot;, &quot;msnbc&quot;, &quot;follow&quot;, &quot;tough&quot;, &quot;separate&quot;, &quot;powers&quot;, &quot;bureau&quot;, &quot;site&quot;, &quot;scheduled&quot;, &quot;resolution&quot;, &quot;delegates&quot;, &quot;cyber&quot;, &quot;african&quot;, &quot;tensions&quot;, &quot;moved&quot;, &quot;warning&quot;, &quot;property&quot;, &quot;infrastructure&quot;, &quot;homeland&quot;, &quot;moving&quot;, &quot;hill&quot;, &quot;goal&quot;, &quot;break&quot;, &quot;29&quot;, &quot;prosecutors&quot;, &quot;stated&quot;, &quot;ruled&quot;, &quot;acting&quot;, &quot;meant&quot;, &quot;nbc&quot;, &quot;carry&quot;, &quot;amount&quot;, &quot;light&quot;, &quot;fully&quot;, &quot;document&quot;, &quot;couple&quot;, &quot;propaganda&quot;, &quot;professor&quot;, &quot;rejected&quot;, &quot;pm&quot;, &quot;investigations&quot;, &quot;discussed&quot;, &quot;racism&quot;, &quot;damage&quot;, &quot;controversial&quot;, &quot;voice&quot;, &quot;hurt&quot;, &quot;billionaire&quot;, &quot;bannon&quot;, &quot;condition&quot;, &quot;piece&quot;, &quot;lie&quot;, &quot;heart&quot;, &quot;values&quot;, &quot;reasons&quot;, &quot;kill&quot;, &quot;conversation&quot;, &quot;version&quot;, &quot;shared&quot;, &quot;tweets&quot;, &quot;treasury&quot;, &quot;supposed&quot;, &quot;from&quot;, &quot;aides&quot;, &quot;seat&quot;, &quot;played&quot;, &quot;game&quot;, &quot;faced&quot;, &quot;career&quot;, &quot;born&quot;, &quot;mission&quot;, &quot;islam&quot;, &quot;bit&quot;, &quot;banks&quot;, &quot;murder&quot;, &quot;familiar&quot;, &quot;argued&quot;, &quot;appeals&quot;, &quot;libya&quot;, &quot;rightwing&quot;, &quot;appeal&quot;, &quot;amid&quot;, &quot;benefits&quot;, &quot;sort&quot;, &quot;paying&quot;, &quot;partner&quot;, &quot;angry&quot;, &quot;solution&quot;, &quot;approach&quot;, &quot;please&quot;, &quot;alone&quot;, &quot;40&quot;, &quot;present&quot;, &quot;compared&quot;, &quot;broke&quot;, &quot;removed&quot;, &quot;hopes&quot;, &quot;felt&quot;, &quot;demand&quot;, &quot;abc&quot;, &quot;60&quot;, &quot;jail&quot;, &quot;ukraine&quot;, &quot;throughout&quot;, &quot;targeted&quot;, &quot;lying&quot;, &quot;pushed&quot;, &quot;opponents&quot;, &quot;internal&quot;, &quot;bid&quot;, &quot;annual&quot;, &quot;stopped&quot;, &quot;arizona&quot;, &quot;addition&quot;, &quot;strike&quot;, &quot;steps&quot;, &quot;minutes&quot;, &quot;doubt&quot;, &quot;russians&quot;, &quot;im&quot;, &quot;claiming&quot;, &quot;planning&quot;, &quot;borders&quot;, &quot;allowing&quot;, &quot;africa&quot;, &quot;pick&quot;, &quot;hannity&quot;, &quot;those&quot;, &quot;pentagon&quot;, &quot;mattis&quot;, &quot;fall&quot;, &quot;embassy&quot;, &quot;works&quot;, &quot;mueller&quot;, &quot;explain&quot;, &quot;ceo&quot;, &quot;victim&quot;, &quot;promise&quot;, &quot;designed&quot;, &quot;youtube&quot;, &quot;figure&quot;, &quot;written&quot;, &quot;starting&quot;, &quot;pointed&quot;, &quot;jones&quot;, &quot;cited&quot;, &quot;changed&quot;, &quot;romney&quot;, &quot;positive&quot;, &quot;carried&quot;, &quot;who&quot;, &quot;warren&quot;, &quot;uk&quot;, &quot;matters&quot;, &quot;identified&quot;, &quot;investors&quot;, &quot;markets&quot;, &quot;drew&quot;, &quot;happy&quot;, &quot;asia&quot;, &quot;totally&quot;, &quot;allegedly&quot;, &quot;server&quot;, &quot;inauguration&quot;, &quot;highly&quot;, &quot;closed&quot;, &quot;bills&quot;, &quot;veterans&quot;, &quot;judges&quot;, &quot;reduce&quot;, &quot;hotel&quot;, &quot;dropped&quot;, &quot;activities&quot;, &quot;surprise&quot;, &quot;coal&quot;, &quot;campus&quot;, &quot;2009&quot;, &quot;bloc&quot;, &quot;literally&quot;, &quot;iowa&quot;, &quot;sentence&quot;, &quot;picture&quot;, &quot;b&quot;, &quot;territory&quot;, &quot;require&quot;, &quot;possibly&quot;, &quot;management&quot;, &quot;focused&quot;, &quot;female&quot;, &quot;dozens&quot;, &quot;bangladesh&quot;, &quot;particular&quot;, &quot;none&quot;, &quot;frontrunner&quot;, &quot;campaigns&quot;, &quot;affordable&quot;, &quot;treatment&quot;, &quot;rico&quot;, &quot;do&quot;, &quot;beginning&quot;, &quot;australia&quot;, &quot;analysis&quot;, &quot;save&quot;, &quot;opened&quot;, &quot;losing&quot;, &quot;hospital&quot;, &quot;entering&quot;, &quot;basis&quot;, &quot;age&quot;, &quot;whatever&quot;, &quot;thank&quot;, &quot;partners&quot;, &quot;detroit&quot;, &quot;conditions&quot;, &quot;audience&quot;, &quot;playing&quot;, &quot;increased&quot;, &quot;ad&quot;, &quot;under&quot;, &quot;flint&quot;, &quot;conduct&quot;, &quot;note&quot;, &quot;kept&quot;, &quot;girl&quot;, &quot;behalf&quot;, &quot;average&quot;, &quot;aide&quot;, &quot;zone&quot;, &quot;requests&quot;, &quot;receive&quot;, &quot;leftist&quot;, &quot;possibility&quot;, &quot;humanitarian&quot;, &quot;her&quot;, &quot;watching&quot;, &quot;pushing&quot;, &quot;martin&quot;, &quot;bringing&quot;, &quot;bomb&quot;, &quot;systems&quot;, &quot;prior&quot;, &quot;lady&quot;, &quot;brown&quot;, &quot;streets&quot;, &quot;scene&quot;, &quot;conducted&quot;, &quot;stories&quot;, &quot;most&quot;, &quot;don&quot;, &quot;park&quot;, &quot;defeat&quot;, &quot;admitted&quot;, &quot;secure&quot;, &quot;resources&quot;, &quot;ones&quot;, &quot;marriage&quot;, &quot;arrived&quot;, &quot;specific&quot;, &quot;religion&quot;, &quot;reforms&quot;, &quot;province&quot;, &quot;prepared&quot;, &quot;erdogan&quot;, &quot;polling&quot;, &quot;numerous&quot;, &quot;highest&quot;, &quot;discussion&quot;, &quot;then&quot;, &quot;prosecutor&quot;, &quot;decade&quot;, &quot;confirmation&quot;, &quot;collusion&quot;, &quot;both&quot;, &quot;nine&quot;, &quot;militant&quot;, &quot;miles&quot;, &quot;islamist&quot;, &quot;unless&quot;, &quot;study&quot;, &quot;loss&quot;, &quot;faces&quot;, &quot;lebanon&quot;, &quot;involvement&quot;, &quot;door&quot;, &quot;republic&quot;, &quot;judiciary&quot;, &quot;suspected&quot;, &quot;search&quot;, &quot;restrictions&quot;, &quot;field&quot;, &quot;biden&quot;, &quot;worried&quot;, &quot;taiwan&quot;, &quot;sales&quot;, &quot;racial&quot;, &quot;names&quot;, &quot;missiles&quot;, &quot;extremely&quot;, &quot;\u2018&quot;, &quot;levels&quot;, &quot;judicial&quot;, &quot;hell&quot;, &quot;dec&quot;, &quot;brussels&quot;, &quot;benefit&quot;, &quot;signs&quot;, &quot;ultimately&quot;, &quot;spain&quot;, &quot;reportedly&quot;, &quot;ongoing&quot;, &quot;evening&quot;, &quot;training&quot;, &quot;thanks&quot;, &quot;payments&quot;, &quot;seemed&quot;, &quot;illegally&quot;, &quot;happens&quot;, &quot;institute&quot;, &quot;seats&quot;, &quot;prove&quot;, &quot;listen&quot;, &quot;hacking&quot;, &quot;getty&quot;, &quot;disaster&quot;, &quot;31&quot;, &quot;eric&quot;, &quot;assembly&quot;, &quot;standards&quot;, &quot;sometimes&quot;, &quot;sarah&quot;, &quot;richard&quot;, &quot;keeping&quot;, &quot;jim&quot;, &quot;greater&quot;, &quot;eventually&quot;, &quot;negative&quot;, &quot;abuse&quot;, &quot;wait&quot;, &quot;tehran&quot;, &quot;path&quot;, &quot;offensive&quot;, &quot;intended&quot;, &quot;carson&quot;, &quot;paper&quot;, &quot;kushner&quot;, &quot;drive&quot;, &quot;built&quot;, &quot;stance&quot;, &quot;sheriff&quot;, &quot;jersey&quot;, &quot;associated&quot;, &quot;nobody&quot;, &quot;capitol&quot;, &quot;ben&quot;, &quot;assistance&quot;, &quot;administrations&quot;, &quot;t&quot;, &quot;stood&quot;, &quot;remove&quot;, &quot;asylum&quot;, &quot;advance&quot;, &quot;donors&quot;, &quot;cash&quot;, &quot;fighters&quot;, &quot;wisconsin&quot;, &quot;strikes&quot;, &quot;camp&quot;, &quot;agent&quot;, &quot;testimony&quot;, &quot;relief&quot;, &quot;parenthood&quot;, &quot;opening&quot;, &quot;clean&quot;, &quot;ballistic&quot;, &quot;alternative&quot;, &quot;increasingly&quot;, &quot;happening&quot;, &quot;check&quot;, &quot;treated&quot;, &quot;prince&quot;, &quot;otherwise&quot;, &quot;innocent&quot;, &quot;assad&quot;, &quot;vowed&quot;, &quot;truly&quot;, &quot;immediate&quot;, &quot;grand&quot;, &quot;diplomats&quot;, &quot;detained&quot;, &quot;destroy&quot;, &quot;correct&quot;, &quot;citizen&quot;, &quot;boost&quot;, &quot;airport&quot;, &quot;progressive&quot;, &quot;failure&quot;, &quot;blamed&quot;, &quot;vehicle&quot;, &quot;learned&quot;, &quot;lines&quot;, &quot;liberals&quot;, &quot;dialogue&quot;, &quot;activist&quot;, &quot;vietnam&quot;, &quot;tom&quot;, &quot;tells&quot;, &quot;explained&quot;, &quot;backing&quot;, &quot;sitting&quot;, &quot;politically&quot;, &quot;palestinian&quot;, &quot;thinking&quot;, &quot;housing&quot;, &quot;gives&quot;, &quot;estimated&quot;, &quot;space&quot;, &quot;shown&quot;, &quot;retired&quot;, &quot;platform&quot;, &quot;blocked&quot;, &quot;aware&quot;, &quot;attempted&quot;, &quot;hall&quot;, &quot;easy&quot;, &quot;attend&quot;, &quot;wounded&quot;, &quot;pennsylvania&quot;, &quot;kremlin&quot;, &quot;institutions&quot;, &quot;hurricane&quot;, &quot;culture&quot;, &quot;appointed&quot;, &quot;serving&quot;, &quot;players&quot;, &quot;places&quot;, &quot;int&quot;, &quot;ethnic&quot;, &quot;broadcast&quot;, &quot;st&quot;, &quot;ross&quot;, &quot;road&quot;, &quot;providing&quot;, &quot;potentially&quot;, &quot;christmas&quot;, &quot;actual&quot;, &quot;21wire&quot;, &quot;film&quot;, &quot;date&quot;, &quot;suspect&quot;, &quot;obvious&quot;, &quot;mention&quot;, &quot;limited&quot;, &quot;injured&quot;, &quot;attended&quot;, &quot;35&quot;, &quot;yesterday&quot;, &quot;oh&quot;, &quot;firms&quot;, &quot;commitment&quot;, &quot;visa&quot;, &quot;orders&quot;, &quot;natural&quot;, &quot;interior&quot;, &quot;rates&quot;, &quot;civilians&quot;, &quot;successful&quot;, &quot;strongly&quot;, &quot;sending&quot;, &quot;investigators&quot;, &quot;interference&quot;, &quot;failing&quot;, &quot;choose&quot;, &quot;chancellor&quot;, &quot;looked&quot;, &quot;involving&quot;, &quot;gender&quot;, &quot;drugs&quot;, &quot;dr&quot;, &quot;denies&quot;, &quot;contact&quot;, &quot;ballot&quot;, &quot;wealthy&quot;, &quot;temporary&quot;, &quot;proposals&quot;, &quot;fuel&quot;, &quot;attempts&quot;, &quot;linked&quot;, &quot;investigate&quot;, &quot;id&quot;, &quot;dismissed&quot;, &quot;raising&quot;, &quot;prices&quot;, &quot;lee&quot;, &quot;identity&quot;, &quot;fine&quot;, &quot;d&quot;, &quot;screenshot&quot;, &quot;priebus&quot;, &quot;hour&quot;, &quot;seeing&quot;, &quot;schumer&quot;, &quot;overseas&quot;, &quot;neither&quot;, &quot;floor&quot;, &quot;communist&quot;, &quot;catalonia&quot;, &quot;spend&quot;, &quot;manafort&quot;, &quot;girls&quot;, &quot;convicted&quot;, &quot;grant&quot;, &quot;chair&quot;, &quot;wonder&quot;, &quot;veteran&quot;, &quot;simple&quot;, &quot;range&quot;, &quot;benghazi&quot;, &quot;appearance&quot;, &quot;andrew&quot;, &quot;soros&quot;, &quot;sell&quot;, &quot;material&quot;, &quot;magazine&quot;, &quot;homes&quot;, &quot;code&quot;, &quot;activity&quot;, &quot;unclear&quot;, &quot;station&quot;, &quot;resign&quot;, &quot;venezuela&quot;, &quot;closer&quot;, &quot;businessman&quot;, &quot;banned&quot;, &quot;unlikely&quot;, &quot;strategic&quot;, &quot;posts&quot;, &quot;ivanka&quot;, &quot;faith&quot;, &quot;deeply&quot;, &quot;taxpayers&quot;, &quot;products&quot;, &quot;georgia&quot;, &quot;discrimination&quot;, &quot;carrying&quot;, &quot;c&quot;, &quot;session&quot;, &quot;obviously&quot;, &quot;ethics&quot;, &quot;christie&quot;, &quot;zero&quot;, &quot;widely&quot;, &quot;outlets&quot;, &quot;limit&quot;, &quot;boy&quot;, &quot;table&quot;, &quot;narrative&quot;, &quot;recognize&quot;, &quot;waiting&quot;, &quot;resignation&quot;, &quot;politico&quot;, &quot;links&quot;, &quot;determined&quot;, &quot;promote&quot;, &quot;pledged&quot;, &quot;ministers&quot;, &quot;illinois&quot;, &quot;environment&quot;, &quot;committees&quot;, &quot;sick&quot;, &quot;google&quot;, &quot;birth&quot;, &quot;reference&quot;, &quot;proof&quot;, &quot;praised&quot;, &quot;improve&quot;, &quot;heads&quot;, &quot;golf&quot;, &quot;controversy&quot;, &quot;club&quot;, &quot;background&quot;, &quot;wearing&quot;, &quot;stupid&quot;, &quot;shortly&quot;, &quot;production&quot;, &quot;ideas&quot;, &quot;figures&quot;, &quot;abe&quot;, &quot;super&quot;, &quot;sector&quot;, &quot;consequences&quot;, &quot;chuck&quot;, &quot;analysts&quot;, &quot;ridiculous&quot;, &quot;rex&quot;, &quot;returned&quot;, &quot;orlando&quot;, &quot;confidence&quot;, &quot;cbs&quot;, &quot;catalan&quot;, &quot;basically&quot;, &quot;waters&quot;, &quot;usa&quot;, &quot;tonight&quot;, &quot;repeated&quot;, &quot;projects&quot;, &quot;outcome&quot;, &quot;launch&quot;], &quot;legendgroup&quot;: &quot;&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;size&quot;: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], &quot;sizemode&quot;: &quot;area&quot;, &quot;sizeref&quot;: 0.25, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [-0.19549722969532013, 0.3176269233226776, -0.10550487786531448, 0.10005353391170502, 1.7435188293457031, -0.2909717857837677, 0.3793013393878937, -0.4059208333492279, 0.5042393803596497, 0.5919833183288574, 0.07893142104148865, -0.09926072508096695, 0.049642231315374374, 0.1406525820493698, 0.701732337474823, -0.020155247300863266, -0.19656400382518768, 0.2679184079170227, 2.3131916522979736, 2.2503585815429688, -0.1997414380311966, 0.6250131130218506, 0.17501075565814972, -0.24002452194690704, 1.0590122938156128, -0.5430115461349487, 0.7188607454299927, -0.2512297034263611, 1.229374647140503, -0.07201675325632095, 1.6012943983078003, -0.0687912106513977, 0.2056885063648224, 0.05603180080652237, -0.37147581577301025, 0.6759721040725708, -0.17572911083698273, -0.07218525558710098, 0.6406248211860657, 0.928936779499054, -0.09192749112844467, -0.4169182777404785, -0.06152782961726189, -0.9837333559989929, -0.39969953894615173, 1.7812423706054688, 1.7412500381469727, 0.49111101031303406, -0.787380039691925, 1.627565860748291, -0.4786016643047333, -0.3495321571826935, -1.2980235815048218, 0.11904111504554749, -0.4363683760166168, -0.24238041043281555, -0.34765344858169556, 0.24669988453388214, 0.4905608594417572, -0.23019950091838837, 0.8689863681793213, -0.24560417234897614, 0.5955668687820435, 0.4635012745857239, -0.5478957891464233, -0.5607207417488098, 0.33478274941444397, -0.22426168620586395, 0.15529873967170715, 0.18797597289085388, -0.308219313621521, 0.5320174098014832, -0.33367615938186646, 0.10319490730762482, 0.2157304286956787, 0.5343970060348511, -0.533440113067627, -0.9309942722320557, -0.2316097766160965, -0.36924779415130615, 0.28706449270248413, -1.9815717935562134, -0.5227633118629456, 0.18498937785625458, 0.5274268984794617, 0.3421938717365265, 1.2322998046875, -0.29111817479133606, 1.4434797763824463, 0.3945634067058563, -0.2568609118461609, -0.013488203287124634, 0.07194945961236954, -0.1283268928527832, 0.8312901854515076, 2.440192222595215, 3.074367046356201, 0.1872393935918808, 0.06871230900287628, -0.23581168055534363, 0.5169281959533691, 0.06141648814082146, 0.21877600252628326, -0.8922245502471924, -0.5458866953849792, 0.5545288324356079, -1.0723785161972046, 0.5010473132133484, -0.44081759452819824, -0.050203315913677216, -0.4925304651260376, 1.115871548652649, -0.11607276648283005, 0.1552678495645523, -0.9162248373031616, 0.45530563592910767, -0.6129952669143677, -0.5786363482475281, 0.2193591594696045, -0.5391393303871155, -0.12769071757793427, -0.1058293804526329, -0.24411360919475555, -0.03396604582667351, 0.4465741515159607, 2.569676637649536, -0.8518317341804504, 0.13988544046878815, -0.012155726552009583, 0.9207537174224854, -0.4887392222881317, -0.8487672805786133, 0.21552620828151703, -0.3461061716079712, -0.1835491955280304, 0.41561833024024963, -0.09391000866889954, -1.3848240375518799, 0.3610409200191498, -0.020424222573637962, -0.37685537338256836, 0.1499451845884323, -0.38845258951187134, -0.8388347029685974, 0.20596839487552643, 0.09375239908695221, 0.28290316462516785, 0.03801272064447403, -0.1350596845149994, -0.5091602802276611, -0.20239678025245667, 1.496646523475647, -0.0011550294002518058, 0.28111881017684937, 0.7525988221168518, 0.42505645751953125, 0.7658839821815491, 0.09613984823226929, -0.6135970950126648, 0.07985111325979233, 0.9762476086616516, 0.5951874256134033, -0.448373407125473, 0.2046937197446823, -0.22269541025161743, -0.46966707706451416, 0.2022978514432907, 0.5815205574035645, -1.4443756341934204, 0.1747806966304779, 0.4939848780632019, -0.779822587966919, -0.39119428396224976, 1.7591941356658936, 0.7093946933746338, 0.5000634789466858, 0.26519906520843506, 0.23032741248607635, 0.09994437545537949, 0.5461164712905884, 0.29737022519111633, -0.21931514143943787, -0.13983154296875, -1.3611342906951904, 0.5027456879615784, 1.2376755475997925, 0.35562437772750854, -0.2504539489746094, 0.23796509206295013, 0.3487921953201294, -0.2213256061077118, 0.04892944544553757, 0.7298942804336548, 0.29732799530029297, 0.6307380795478821, -0.2844020128250122, -0.25637373328208923, -0.7581334710121155, 0.2957100570201874, -0.7165474891662598, -0.40396133065223694, -0.5878123044967651, -0.738922119140625, -0.5256880521774292, -0.09522297978401184, 0.3547218441963196, 0.3783920109272003, 0.6032394170761108, -0.18722596764564514, 0.1852843016386032, 0.11710239946842194, -0.044862568378448486, -0.022082669660449028, -0.0385156124830246, -2.004558801651001, 0.5068424940109253, 1.5119194984436035, -0.14505009353160858, -0.5221931338310242, 0.19700583815574646, -0.38011085987091064, 0.37321943044662476, 0.32973727583885193, 2.0715272426605225, 0.015435334295034409, -0.09539040923118591, 1.1002569198608398, 0.3723810911178589, 0.5554472804069519, -0.4419010579586029, 0.2565954029560089, 0.16096477210521698, -0.34525954723358154, -0.8317563533782959, -1.573491096496582, 1.0203131437301636, 0.4918572008609772, -0.26466235518455505, -0.9503488540649414, 1.0234103202819824, 0.1254853755235672, -0.6457610130310059, 0.5436607599258423, -1.2238504886627197, -0.13127562403678894, 0.45501595735549927, -0.15917250514030457, -0.5226976871490479, -0.13337291777133942, 0.44345924258232117, -0.43676528334617615, -0.07231031358242035, -0.16932550072669983, 0.9278514385223389, -0.10556052625179291, -0.36067238450050354, 1.0190203189849854, -0.4490411579608917, 0.8888742327690125, 0.5714880228042603, 1.6332523822784424, -0.03310175612568855, 1.4626446962356567, 0.2713095545768738, 0.08081815391778946, -0.5534195899963379, 1.6704906225204468, 0.2726617455482483, 0.23020817339420319, 0.23491701483726501, -0.9271121025085449, 0.519406259059906, -0.31270864605903625, 0.21636778116226196, 0.521373450756073, -0.05686742812395096, 0.5811610221862793, -0.19862698018550873, -0.6489913463592529, 0.722218930721283, 1.2815085649490356, 0.910712480545044, -0.27296093106269836, 1.3200169801712036, 0.26949939131736755, -0.9926836490631104, -0.5274255871772766, -0.7442891001701355, 0.6645694971084595, -0.09279466420412064, -1.102564811706543, 0.5987244248390198, 0.17188972234725952, -0.6357008814811707, -0.41045957803726196, 1.2670938968658447, -0.6340028047561646, 1.325553297996521, -0.4930819869041443, 0.44780561327934265, -0.1496104598045349, -0.5459232926368713, -0.3620813190937042, -0.4141997992992401, 0.3199334144592285, 0.028310038149356842, 0.45106908679008484, -0.009828740730881691, -0.2125011682510376, 0.09920113533735275, -0.07909345626831055, -0.4730011224746704, 0.37456879019737244, 0.5217725038528442, 0.026402758434414864, 0.43919438123703003, -0.33081817626953125, -1.0807042121887207, 0.9970159530639648, -0.22577489912509918, -0.6860845685005188, 0.05420774593949318, 0.28929710388183594, 0.10406198352575302, -0.16965197026729584, 1.3803656101226807, -1.7758605480194092, 1.2704814672470093, -0.03884847089648247, -0.31056758761405945, 0.0474478155374527, 0.13532258570194244, -0.20425580441951752, -0.0721760168671608, -0.2697465419769287, 1.1903172731399536, -1.0818676948547363, -0.21136924624443054, 0.436713308095932, 0.782569408416748, -1.891795039176941, 0.4307491183280945, 0.15937671065330505, 0.5336953401565552, 0.21853308379650116, 0.7770036458969116, -0.8380418419837952, -0.3014165163040161, 0.3840142488479614, 1.6932330131530762, 0.20357391238212585, 0.5201816558837891, 0.730076789855957, -0.7860916256904602, 0.40451809763908386, 0.22044429183006287, 0.4786625802516937, 0.03714504465460777, 1.6153597831726074, 0.38315296173095703, -0.3052808940410614, -0.06908848881721497, -0.361269474029541, -0.21985460817813873, 0.10849963128566742, -0.19941000640392303, -0.2224961519241333, 0.7285747528076172, -0.014118616469204426, 0.24322202801704407, -0.24210064113140106, -0.8548769354820251, -0.20646394789218903, 2.2073190212249756, -1.293678879737854, 0.10363196581602097, -0.8697466850280762, -0.061100903898477554, -0.3980870842933655, 0.6799919009208679, 0.8152397274971008, -0.13697198033332825, 0.6249642372131348, 0.04140479862689972, -0.6345348954200745, -0.1489095240831375, 0.23410306870937347, -0.11786241829395294, 0.32526281476020813, -0.3604567050933838, -0.3690166473388672, -0.3507171869277954, 0.9017049670219421, -0.3778647184371948, 0.5262187123298645, 0.7214763164520264, 0.7507928609848022, 0.019288716837763786, 0.0901293009519577, -0.558455228805542, -0.06409008055925369, 0.16661180555820465, 1.0407871007919312, -0.14766421914100647, -0.2385956197977066, -0.4401947259902954, -0.8997411727905273, 2.5288970470428467, 1.109336018562317, 1.9780973196029663, -0.8388258218765259, -0.647230863571167, -0.056526217609643936, 0.3866632580757141, 0.12717337906360626, 0.7396406531333923, -0.022016583010554314, -0.7038223743438721, 0.5344703793525696, -0.08824338018894196, -0.645380437374115, -0.3899881839752197, 0.798683762550354, -0.0888064056634903, 0.6199144721031189, -0.294907808303833, -0.8884621262550354, 0.27656152844429016, -1.3620458841323853, -0.357042133808136, 0.20921622216701508, -0.3074381649494171, 0.4471898376941681, -0.07322271913290024, 0.43609756231307983, 0.2141595333814621, -0.2271634191274643, -0.5979036688804626, 1.2198481559753418, 1.2480143308639526, -0.3391426205635071, -0.6906968951225281, 0.2726367115974426, -0.3651282489299774, 0.09257784485816956, 0.7502135038375854, 0.8076303005218506, 0.23957586288452148, 0.8754664063453674, 1.0500388145446777, 0.26500818133354187, -1.1263452768325806, 0.5342428684234619, -0.25205639004707336, -0.9264131188392639, 0.11570149660110474, -0.5390922427177429, 0.31030815839767456, 1.4617993831634521, -0.26730456948280334, 0.07897002249956131, 1.5113314390182495, -0.57062828540802, 0.23311260342597961, 0.2981375455856323, -0.7373733520507812, 0.34431755542755127, 0.04275030642747879, 0.5848242044448853, -0.06533636152744293, -0.1612257957458496, -0.11091317236423492, 0.35144346952438354, 0.8676697611808777, 0.27624431252479553, -0.3791283369064331, -0.9168593883514404, -0.011509716510772705, -0.5399376749992371, -0.32943975925445557, 0.09519997239112854, 0.7468242645263672, 0.3040488362312317, 0.2896096408367157, -1.1295580863952637, -0.11447496712207794, -0.6435847282409668, -0.9608517289161682, 0.1514892876148224, -1.2660938501358032, 2.784193277359009, 0.4291488230228424, -0.05846739560365677, 0.031518079340457916, 0.16524124145507812, 0.07185082137584686, 0.6967217326164246, -0.214752659201622, -0.042781732976436615, 0.7733429670333862, -0.5897718667984009, 1.1618918180465698, 0.329312264919281, -0.5950990915298462, 0.3457354009151459, 0.10116390138864517, 0.28052008152008057, -0.12392423301935196, -0.5235353708267212, 0.5010935664176941, 0.6507874131202698, -0.016377193853259087, -0.6425027847290039, -0.11894433200359344, 0.40137502551078796, -0.7005214095115662, -0.43994832038879395, -0.8306036591529846, -0.34240055084228516, -0.43395039439201355, -0.5063885450363159, 0.8815999031066895, -0.02540508843958378, -0.8956450819969177, 0.35473936796188354, -0.3473964333534241, -0.32075613737106323, -0.012744939886033535, 0.19437876343727112, 0.410040944814682, 0.16432222723960876, -0.050868649035692215, -0.3782424330711365, 0.11933989822864532, 0.3037875294685364, -1.7243906259536743, 0.2913893461227417, -0.08073147386312485, -0.3047976791858673, 0.6554747223854065, 0.2973429262638092, 1.177628993988037, -0.5742279887199402, 0.5490530133247375, -0.3508133888244629, -0.5490061640739441, 0.15243679285049438, 0.3917471170425415, 0.4501709043979645, 0.515591025352478, 0.25684237480163574, -1.4404395818710327, 0.5254893898963928, -0.01160504948347807, 0.03053225390613079, -0.23690859973430634, -0.056868720799684525, -0.12441690266132355, -0.8818138241767883, 1.43584406375885, 0.04505317285656929, -0.9875655174255371, 0.7097227573394775, 0.24148136377334595, -0.9197327494621277, 0.17293192446231842, 0.08259173482656479, -0.587935745716095, 0.7193817496299744, 0.2817091643810272, 1.6693370342254639, 3.112274408340454, 0.09212962538003922, -0.8223416209220886, 0.7733258605003357, -0.07171943783760071, -0.06031852960586548, 0.6130792498588562, -0.653286874294281, -0.11708436906337738, 1.2205274105072021, 0.4829697608947754, 0.4095537066459656, -1.3181828260421753, -0.03373602405190468, 0.6699001789093018, -0.3313980996608734, 0.5124463438987732, -0.9431593418121338, 0.1413225382566452, -0.19600500166416168, 0.1022283136844635, -0.9770370125770569, 0.7250728607177734, 0.033187832683324814, -0.22918252646923065, 0.0668860375881195, -1.126856803894043, -0.3362893760204315, -0.11189202964305878, -0.5406643748283386, -1.2929904460906982, 0.722793459892273, -1.4524670839309692, 0.704032301902771, 0.5267272591590881, -0.2228163182735443, 0.18143096566200256, 0.3637394309043884, 0.3301783800125122, 0.31148555874824524, -0.014013595879077911, -1.4564218521118164, -0.5316905379295349, -0.30335456132888794, 0.031506191939115524, 0.006555492524057627, -0.3008875548839569, -0.07136917114257812, -0.8284748792648315, -0.20565073192119598, -0.5140018463134766, -0.8227392435073853, 0.6477774381637573, -1.4207836389541626, 0.47753235697746277, 0.046402353793382645, 0.9444737434387207, -1.1671191453933716, 0.20035125315189362, -0.44364890456199646, 0.16419154405593872, -1.1086100339889526, -0.2269512563943863, -0.5871458649635315, 0.40843862295150757, 0.4152745306491852, -0.15204058587551117, 1.1770763397216797, -0.06834360957145691, -0.7040895223617554, 0.7247058153152466, -0.20028114318847656, 0.10126814991235733, -0.36588069796562195, -0.8523170351982117, -0.4101569652557373, 0.24525362253189087, 0.1547686755657196, 0.15806590020656586, -1.0211539268493652, 1.129477858543396, -0.8163779377937317, 0.25567376613616943, -0.6740390062332153, -0.43548136949539185, 1.1383589506149292, 0.6342683434486389, 0.25681307911872864, 0.14547769725322723, 0.08669392019510269, 0.4119110703468323, -0.9019672274589539, -0.7827373743057251, 0.6408435702323914, -0.6602151393890381, -0.6024467945098877, -0.4466988444328308, -0.31641146540641785, -1.1068757772445679, -0.012643393129110336, -0.16278572380542755, -0.3345232605934143, -0.7703115344047546, -0.44488725066185, 0.06201127916574478, -0.11208131164312363, 0.43988001346588135, -0.20481641590595245, 1.1485586166381836, -0.8299639225006104, -0.4946945011615753, -0.8361883759498596, 0.16303642094135284, -0.4667498469352722, 1.2349662780761719, 0.11416802555322647, -0.10282432287931442, 0.13995398581027985, -0.33884164690971375, 0.21124817430973053, 0.8187323808670044, 0.6449417471885681, 1.3834575414657593, 0.49805960059165955, -0.2934505343437195, 0.004484348930418491, 0.04746297001838684, -0.33169883489608765, -0.23529089987277985, 0.14960047602653503, -0.030711961910128593, -0.19055750966072083, -0.7171393036842346, -0.017450429499149323, -0.5258838534355164, 1.1592278480529785, 0.5205498337745667, -0.45157957077026367, -0.21163077652454376, 0.1876782923936844, -0.4904172122478485, -0.6839411854743958, -0.45372673869132996, 0.4789719581604004, -0.8475670218467712, -0.3241111934185028, -0.3797617554664612, 0.1521555781364441, -0.9956055879592896, 0.17921391129493713, -0.2979142367839813, 0.13647489249706268, -0.2609476149082184, -0.06535568833351135, 0.3329591453075409, -0.5690934658050537, -0.28430262207984924, 0.5563458204269409, -0.3737601041793823, 0.3651539385318756, 0.9374651908874512, -0.11164319515228271, -1.1005581617355347, 1.0977742671966553, -0.11069727689027786, -1.0591567754745483, -0.9894680380821228, 1.5838351249694824, -0.0082860067486763, -0.18080364167690277, 0.6041170954704285, 0.15068954229354858, -0.1488899290561676, 0.22842006385326385, -0.35318243503570557, -0.8625067472457886, 0.18362197279930115, -0.5957905650138855, -0.31214526295661926, -0.6382409334182739, -0.3913833796977997, -0.6067171096801758, -0.27800220251083374, -0.26272326707839966, -1.0341827869415283, -0.7999715209007263, 1.077878475189209, 0.3718034327030182, -0.2841017544269562, 0.7972346544265747, -0.09290309995412827, -0.911716878414154, 0.408270925283432, -0.4958477020263672, -0.00875383336097002, 0.9743950366973877, 1.21293044090271, 0.6924201846122742, 0.1638212352991104, -1.1206727027893066, -0.5563752055168152, 0.03596331179141998, 2.1544857025146484, -0.31094011664390564, -0.5782848000526428, 0.4956744611263275, -0.10050121694803238, 0.149351105093956, 0.40122589468955994, 1.1858386993408203, -1.5130643844604492, -0.9910840392112732, -0.9401962161064148, -0.4883801341056824, 0.20856952667236328, -0.25674524903297424, 0.6339360475540161, -0.311618447303772, 0.24701867997646332, -0.3910488784313202, -0.7520760297775269, 0.5986337065696716, 0.3733358085155487, 0.38308143615722656, 0.33297261595726013, -0.7885124087333679, 0.43362903594970703, -0.1519397646188736, 0.39657464623451233, 0.06900440156459808, 1.1726561784744263, -0.06163056194782257, -0.6744049191474915, 0.09831521660089493, -0.30735641717910767, 0.7362757921218872, -0.1906488984823227, 0.3214317262172699, 0.8198952674865723, -0.7746804356575012, 0.8992292881011963, 0.41019195318222046, -0.21305207908153534, 0.5702880620956421, -0.4110218286514282, -0.2638757526874542, -0.1216922253370285, -0.847084641456604, 0.5952934622764587, 0.28239428997039795, -0.17525526881217957, 1.5777764320373535, -0.446394681930542, -0.6644319891929626, -0.6836536526679993, -0.7171332240104675, -0.672637403011322, 0.07670576870441437, 0.04290620610117912, -0.5088550448417664, 1.429699420928955, 0.1623612642288208, -0.05487727373838425, -0.786958634853363, -0.1668325960636139, 0.2894740700721741, -1.1208453178405762, 1.975157618522644, -0.08090703934431076, 0.019181691110134125, -0.4375174045562744, -0.47439470887184143, -0.44163674116134644, 0.3519778251647949, 0.014444266445934772, -0.2977563142776489, 0.05701102316379547, -0.6751150488853455, -0.749594509601593, -0.41763556003570557, 0.3948735296726227, -0.4721434414386749, -0.8892315030097961, 0.14849260449409485, 0.03199981525540352, -0.39214619994163513, -0.1919095367193222, -0.21080811321735382, -0.8974145650863647, -0.36527547240257263, -0.2921564280986786, 3.7843515872955322, -1.0042338371276855, -0.07650717347860336, -0.05955908074975014, 1.1809958219528198, 1.330180048942566, 0.07947978377342224, 0.8263518810272217, 0.12321261316537857, -0.434811532497406, 0.21816672384738922, 0.050526123493909836, 0.8834036588668823, -1.5977773666381836, 0.08495281636714935, -0.1529984176158905, -0.6185693144798279, -0.7502997517585754, -0.3144349455833435, 0.2609962522983551, 0.06903927028179169, 0.6790799498558044, 1.152777075767517, 0.9558302760124207, -0.8028373718261719, 0.5212500095367432, 0.02718970738351345, 0.10086183249950409, 0.31544309854507446, -0.03808174282312393, -0.8601917028427124, -0.08913657814264297, 0.38326650857925415, 0.7337672710418701, 0.11110682040452957, -1.1075589656829834, 0.10944829136133194, 0.7465945482254028, 0.27502286434173584, 0.1387728899717331, -0.3321799635887146, -0.20778599381446838, -0.8025755286216736, -0.4364292323589325, 1.3646820783615112, 0.05837174504995346, 0.24672847986221313, 0.5985130071640015, -0.8102893233299255, -0.4612095355987549, -0.17992345988750458, -0.7244951128959656, 0.13917994499206543, -1.0737608671188354, 0.7519498467445374, 0.02512173354625702, 0.9978377819061279, 0.21128225326538086, 1.1608303785324097, -0.9884058237075806, 0.8421409130096436, -0.8606252074241638, -0.3666505813598633, -0.3197462856769562, 0.037266314029693604, -0.013522632420063019, 0.9168948531150818, -0.07524367421865463, -0.2293356955051422, -0.9032616019248962, -0.7426514625549316, 0.3844907283782959, 1.1417547464370728, -0.45268863439559937, -0.6721565127372742, -0.6759302616119385, 0.6955416202545166, -0.1599847674369812, 0.5283536314964294, 0.40902701020240784, 0.8523081541061401, -0.5917485952377319, -0.47530806064605713, 0.0028844207990914583, -0.6468931436538696, 0.5473384261131287, 0.5104097723960876, -0.7272453308105469, -0.5418391823768616, -0.07097660005092621, 0.23684893548488617, -0.1742883175611496, 0.11582715809345245, -0.6457725167274475, -0.05751005932688713, 0.25846627354621887, -0.6761589646339417, -0.21341584622859955, 0.24286454916000366, 0.9596936106681824, -0.5290746688842773, -1.1032549142837524, 0.5845289826393127, 1.0550909042358398, -2.0386316776275635, -1.0634194612503052, -0.27519723773002625, 0.38007012009620667, -0.837506890296936, -0.41286179423332214, -1.4228242635726929, -0.33473196625709534, 0.002512261038646102, -0.5023801326751709, -0.18006671965122223, -0.4804781675338745, -0.2788403034210205, 0.009266536682844162, -0.20461247861385345, 0.29075008630752563, 0.8730453848838806, 0.16256292164325714, 0.3365313708782196, 0.5804453492164612, 0.3475883901119232, 0.6445837616920471, 0.6624091267585754, 0.10863476991653442, -0.08076269179582596, -0.776914119720459, 1.1100246906280518, -0.29026514291763306, 0.07475566118955612, -1.1375844478607178, 0.36878857016563416, 0.4428814649581909, -0.7359446883201599, -0.4801614582538605, 0.03385799005627632, 0.308426171541214, -0.3059903085231781, -0.5820185542106628, -0.15674808621406555, 1.5534052848815918, -0.8047056198120117, 0.32789433002471924, 3.13714861869812, -0.840137243270874, -0.40250036120414734, -1.0705772638320923, -0.45040956139564514, 0.41566526889801025, 0.09210344403982162, 0.6689388751983643, 0.3980456292629242, 0.18662799894809723, 0.8314499855041504, 0.19538260996341705, -0.8579311966896057, -0.15375064313411713, 0.43841004371643066, -0.6109918355941772, 0.7976140379905701, 0.21430577337741852, 0.029173245653510094, 0.702256977558136, -0.2523232400417328, 0.007658594753593206, 0.4291349947452545, -0.8391169905662537, -0.702268123626709, 0.8226503133773804, 0.053638629615306854, 0.19018971920013428, 0.429561048746109, -0.6833158135414124, 0.49642303586006165, -0.6636212468147278, 0.7907008528709412, 0.05858732387423515, 0.13065099716186523, -1.2880488634109497, -1.1320255994796753, -0.10273341834545135, 0.2823377847671509, 0.01152346283197403, 0.5112906098365784, 0.2948264181613922, -0.5468199253082275, -0.7143556475639343, -0.5962865352630615, 0.40772169828414917, 0.05936947464942932, -0.9167447090148926, 0.05351172015070915, -0.5426305532455444, 0.31719109416007996, -0.6349921226501465, -0.46022456884384155, 0.5591577887535095, -0.013585874810814857, 0.17473204433918, 0.8328481912612915, -0.47381630539894104, -0.0340915247797966, -0.8308040499687195, -1.112962007522583, 0.7610272765159607, -0.6941652894020081, 0.29079169034957886, -0.0050838422030210495, 0.10928097367286682, -0.1813856065273285, 0.10613775998353958, 0.0975932627916336, -0.34313419461250305, -0.7256461977958679, 0.13507568836212158, 0.3695537745952606, -0.5786437392234802, -0.9428296089172363, -0.12126526236534119, -0.3395804464817047, 1.235062599182129, -0.9244981408119202, -0.19374163448810577, -0.7875604033470154, -0.07851170748472214, 0.42865118384361267, 1.2203030586242676, -1.078488826751709, -0.813668966293335, -0.7590112686157227, 0.4461178779602051, -0.626528263092041, -0.2374517172574997, 1.06691312789917, 0.14615826308727264, -0.5383581519126892, -0.7825826406478882, 0.7457358837127686, 0.4302041530609131, -0.7671135067939758, 0.4466244578361511, -0.16912302374839783, -0.5205264687538147, 0.5659705996513367, -0.42179903388023376, -0.3586665391921997, -0.15378959476947784, 0.6114166975021362, -0.946129560470581, -0.4373701214790344, 0.3014027178287506, 0.1548437774181366, 0.7968609929084778, -1.3446314334869385, 0.2653399705886841, -0.10972895473241806, 0.7201939821243286, 0.5413420796394348, -0.22664377093315125, -0.14549817144870758, -0.3531743288040161, -0.22137662768363953, -0.24221089482307434, -0.5260292887687683, -0.2559848725795746, 1.0919580459594727, 1.7016464471817017, -0.7582749128341675, -1.0067654848098755, -0.7183006405830383, -0.5785331130027771, -0.09002411365509033, 0.25501033663749695, -0.46768802404403687, -0.4890720546245575, 0.06539294123649597, 0.8212921023368835, 0.17032764852046967, 1.078336477279663, -0.116049624979496, -0.14567479491233826, 3.036372184753418, -0.6867992877960205, 0.06392154097557068, -1.2621393203735352, -0.05173635110259056, 0.9379321336746216, 0.20139801502227783, 0.04939429089426994, -0.6836875677108765, -1.135500192642212, -0.7241150140762329, 1.1251270771026611, -0.36433595418930054, 0.5177786350250244, 1.351287603378296, 0.11603621393442154, -0.3932269513607025, -0.6196734309196472, 0.19249595701694489, -0.7941390872001648, 0.7126392126083374, 0.05785879120230675, -1.1229805946350098, 0.9704799056053162, -1.5396053791046143, 1.1437671184539795, -0.49168550968170166, -0.8551626801490784, -0.8156951069831848, 1.0560474395751953, 1.0684601068496704, 0.1274920403957367, -1.2409096956253052, -0.306538462638855, 0.4891902804374695, 0.1982685923576355, 0.7381960153579712, -0.09850043058395386, 0.2501159906387329, 0.6732421517372131, 0.7998045086860657, -0.7691732048988342, 1.3190675973892212, 2.54618501663208, -0.5644054412841797, 0.6528271436691284, -1.1480050086975098, -0.622584342956543, 0.44232919812202454, -1.4179205894470215, -0.0036107066553086042, -0.46897566318511963, 0.17541508376598358, -0.18620847165584564, -0.8834991455078125, 0.1489800065755844, -0.11820235848426819, -0.6691681146621704, -0.409982830286026, 1.30445396900177, -0.9998362064361572, 1.8806363344192505, 0.7876880764961243, 0.39910951256752014, -0.49461689591407776, 0.7647042274475098, 0.09076660871505737, 1.1684571504592896, -0.4994271397590637, 0.06569410860538483, 0.567659318447113, -0.8649072647094727, 0.6427235007286072, 0.6110261678695679, -0.3300853669643402, 0.06287134438753128, 0.5682637691497803, -0.6940847039222717, 0.5823060274124146, -1.1096950769424438, -0.6474940180778503, 1.116307020187378, -0.2886818051338196, 1.232223629951477, 0.26404711604118347, -0.7410727739334106, 0.962839663028717, 0.5336694717407227, 0.2508481740951538, 0.11954203248023987, -0.6208941340446472, -0.5863240957260132, 1.492470145225525, -0.07899700850248337, -0.6379520893096924, 0.6902614235877991, -0.17643305659294128, -0.726584792137146, 0.5727531313896179, 0.05672624707221985, 0.3503720760345459, 0.9325914978981018, 0.03231968358159065, -0.11764165759086609, 0.19822095334529877, -1.0235849618911743, 0.6090357303619385, -1.3922983407974243, 0.1310683935880661, -0.41259270906448364, 0.505832850933075, -0.11012612283229828, 0.3287551701068878, -1.6021533012390137, -0.08651415258646011, 0.5913642644882202, -0.46664372086524963, -1.9384102821350098, -0.05140693113207817, -0.4768523573875427, -0.7886054515838623, 1.0170135498046875, 0.19036118686199188, -0.07683221250772476, 0.1664818525314331, 0.6900407671928406, 0.40259531140327454, 0.35966309905052185, 0.2675616443157196, 0.798077404499054, -0.324586421251297, 0.0739816278219223, -0.28698045015335083, 0.5815198421478271, -0.5074678063392639, 0.31901803612709045, 0.75654536485672, -0.3508066236972809, -0.6631518602371216, -0.10403253883123398, 0.03194953128695488, -0.743291437625885, -0.5341590642929077, -0.5528507828712463, 0.37649795413017273, 0.5641345977783203, 0.6437358856201172, -1.328376293182373, -0.37553903460502625, -0.5067744851112366, 0.13029912114143372, -0.10354465246200562, -0.45493945479393005, 0.05971812084317207, 1.410065770149231, 0.835547685623169, 0.11861839890480042, 0.51267409324646, -1.0001115798950195, -0.7414342164993286, 1.0645722150802612, 0.08386065065860748, 1.4693523645401, -0.8761695027351379, -0.004531412851065397, 0.7286627888679504, -1.0237058401107788, -0.280316025018692, -0.9789104461669922, -1.2422027587890625, 0.33174219727516174, -0.008997018449008465, -1.2646046876907349, 0.28334102034568787, -0.07285715639591217, 0.8356902599334717, -0.2328028678894043, -0.06090526282787323, -0.10551556944847107, -0.5712509751319885, -0.8299717307090759, -0.5562818050384521, 1.0048434734344482, 0.007646471727639437, -0.16752979159355164, -0.050371065735816956, -0.8123232126235962, -0.09557469934225082, -0.6038205623626709, -0.6507716774940491, -0.2734641432762146, -1.093804121017456, -1.091805338859558, -0.49660778045654297, -1.1803739070892334, 0.5473896861076355, -0.7684007287025452, -0.5691418647766113, 0.9137631058692932, 0.9218317866325378, -0.3349872827529907, -0.17249880731105804, 0.4260713756084442, 0.7803623080253601, -0.6767569780349731, -0.11691063642501831, -0.32727518677711487, 1.0054881572723389, -1.209908366203308, 0.5214736461639404, 0.020211664959788322, -0.8825312852859497, 0.38410845398902893, 1.712699294090271, -0.10348206013441086, 0.07602487504482269, 0.05175917223095894, -0.4510127007961273, 0.9207010269165039, 0.014132753014564514, -0.08501365035772324, 0.7570794224739075, 0.18936707079410553, 1.3508118391036987, -0.3626026213169098, 0.06847634166479111, 0.4751187562942505, 0.46000078320503235, -0.9133821725845337, -0.027519747614860535, 0.5273265838623047, 1.2773734331130981, -0.17151504755020142, -1.1278076171875, -0.9066063165664673, -0.7286295294761658, 0.354367196559906, 0.017412574961781502, -0.1789626032114029, -0.27339261770248413, 0.2038218379020691, 0.35093218088150024, 0.7550824284553528, 0.11191171407699585, -0.3100365102291107, -0.4448031783103943, 0.7816665172576904, -0.029550647363066673, 0.017325839027762413, 0.914780855178833, -0.5925711393356323, 0.003410165896639228, -0.31956207752227783, -0.1607532799243927, 0.2860730290412903, -0.1672517955303192, 0.11890395730733871, -0.7086266279220581, -0.9188089370727539, -0.6198757290840149, -1.2944622039794922, -0.6104044318199158, 0.5372592210769653, 0.45391562581062317, -0.7340161800384521, -0.3726749122142792, 0.6084235310554504, -0.19847111403942108, -0.3333166241645813, 0.05546790361404419, -0.6565918922424316, -0.8127312660217285, 0.04405270144343376, 0.6008748412132263, -0.6165815591812134, -0.5543616414070129, -0.4339613616466522, 0.07678811997175217, 0.5546126961708069, -0.7100459933280945, -0.5716466307640076, -0.8429473042488098, 0.8654729723930359, 1.1772557497024536, 0.21758036315441132, 0.507802426815033, -1.2585452795028687, 0.3353925049304962, -1.2152057886123657, 0.4920370280742645, -0.4956786632537842, 0.06315231323242188, 0.4607190787792206, -0.6544163823127747, -0.12732726335525513, -0.1926448494195938, -0.24517610669136047, 0.4382542073726654, 0.9880368113517761, -0.7167264819145203, -0.6612356901168823, 0.17241650819778442, 0.4675081968307495, 0.43268024921417236, 0.14926312863826752, -0.4472986161708832, 0.31885814666748047, -0.8856108784675598, 0.14386622607707977, 1.920724630355835, -0.7331774234771729, -0.6235816478729248, 0.25151827931404114, 0.4988565146923065, -0.13770924508571625, -0.23711246252059937, 1.1675329208374023, -0.4945342540740967, -0.3849789500236511, -0.8818413019180298, 0.651260495185852, 0.19065730273723602, 0.1640271097421646, 0.13845789432525635, -0.3306102454662323, -0.3370507061481476, 1.1979504823684692, -0.9892541170120239, -0.8859553337097168, -0.2783477306365967, -0.30976682901382446, 0.597482442855835, 0.06935379654169083, 1.3381518125534058, -0.1879418045282364, -0.4263819754123688, 0.259052038192749, 0.18272629380226135, 1.0121091604232788, 0.36533915996551514, -0.3207220733165741, -0.03928026184439659, 0.41635921597480774, -0.5167668461799622, -0.5906908512115479, -0.40032288432121277, -0.26038050651550293, -0.0515664704144001, -0.20672762393951416, -1.0468002557754517, 0.20030052959918976, -0.29153233766555786, 0.8498876690864563, 0.19429439306259155, -0.666283905506134, -0.6803642511367798, -1.2328786849975586, -1.0401352643966675, 0.5047517418861389, -0.28959688544273376, 0.033443864434957504, -0.5968801379203796, -0.4028800129890442, 0.11328227818012238, -0.6661614179611206, 0.4911963939666748, -1.216961145401001, 0.7216306924819946, -0.2617707848548889, 0.23157215118408203, -0.27521613240242004, -0.7666795253753662, -0.15287838876247406, 0.6452521681785583, 0.4929973781108856, 0.32529810070991516, -0.8214072585105896, 0.703029215335846, 0.9657816886901855, -0.5655742287635803, 0.40199151635169983, 0.5587103366851807, 0.13215091824531555, 0.4422858953475952, -0.14976663887500763, 0.2921866178512573, 0.0321461521089077, 0.49901917576789856, 0.2822685241699219, 0.515780508518219, 0.1201644092798233, -0.2983625829219818, -0.9245489239692688, 0.9873355627059937, 0.05853584408760071, -0.4316803514957428, 0.2135305404663086, 1.3360421657562256, 0.12076633423566818, -0.3134363889694214, 0.24927303194999695, 0.8538586497306824, -0.5059805512428284, 0.1809205412864685, -0.4548819363117218, 0.2798213064670563, -1.474459171295166, 0.5673152208328247, 0.46821385622024536, -0.3962654769420624, -0.18789510428905487, 0.7243772745132446, 0.11764126271009445, -0.6653928160667419, 0.46606406569480896, -1.062329649925232, -0.6578851342201233, -0.07893306016921997, -0.3077998161315918, 0.5060663223266602, 0.2536822259426117, -0.0012430535862222314, 1.0937795639038086, 0.9047102332115173, -0.10684825479984283, 1.0418057441711426, 0.05482493340969086, 0.3281867802143097, 0.5808586478233337, 0.3565177917480469, -0.5681783556938171, -0.04880731180310249, 0.05872504040598869, -0.8019141554832458, 0.1658853143453598, 0.4901406764984131, -0.34016087651252747, -1.1500325202941895, 0.0004626283189281821, -0.19011470675468445, -0.7681426405906677, -0.03116103634238243, 0.3575366735458374, 0.5609610676765442, -0.33547884225845337, 1.6968821287155151, -0.06199290230870247, -0.8121677041053772, -0.311367392539978, -0.18404510617256165, 0.41791674494743347, 0.4978620707988739, -0.017049448564648628, -0.7854027152061462, -0.2459818720817566, 0.8579131960868835, 0.025893060490489006, -0.6589064598083496, 0.4575326144695282, 0.5699847340583801, -0.4881786108016968, -0.39084869623184204, 0.4641396105289459, -0.37948742508888245, 0.7773026823997498, 0.43581271171569824, 0.6905528903007507, -0.7810849547386169, -0.6723161935806274, -0.5264877676963806, 0.2196348011493683, 0.042917340993881226, 0.082612544298172, -1.1589958667755127, -0.6875954270362854, -0.8077113032341003, -0.8788096904754639, 1.018990397453308, -0.393793523311615, -1.0261797904968262, 1.9911797046661377, 0.3196987211704254, 1.3327690362930298, 0.3007868230342865, 0.6226208209991455, -0.5985027551651001, 0.1839233934879303, -0.6210858225822449, 0.028411762788891792, 0.7324676513671875, -0.2796975076198578, -0.1628398448228836, -0.18574564158916473, -0.005281463731080294, 0.8883843421936035, 1.553782343864441, 0.28202706575393677, -0.3559679388999939, 0.7183545827865601, -0.26405519247055054, -0.16336849331855774, 0.14462876319885254, 0.18945126235485077, 0.270683228969574, -0.4387473464012146, -0.7128083109855652, -1.1332651376724243, -0.39720991253852844, -0.11903494596481323, 0.5944965481758118, -0.1991310864686966, 0.3497699201107025, -0.08567556738853455, 0.6884849071502686, 1.3628833293914795, -0.5571728944778442, 0.8970404863357544, -0.48292720317840576, 0.7395890951156616, 0.8743846416473389, -0.48319482803344727, -1.0805500745773315, 0.1139736995100975, -0.18069054186344147, -0.05904906988143921, 0.6767618060112, 0.13794979453086853, 0.3042202889919281, 0.36648470163345337, 0.18787765502929688, -0.1371142715215683, -0.44492584466934204, 0.35204237699508667, -1.384013295173645, -0.7823298573493958, 0.40814444422721863, -0.41474398970603943, -0.027581701055169106, 0.6569176316261292, -0.737932026386261, -0.2364230751991272, -0.44495365023612976, -0.5356656908988953, 0.20798490941524506, 0.8075916171073914, 2.58016037940979, 0.11185458302497864, -0.9509759545326233, 0.4505177438259125, -0.9898858666419983, -0.5247892141342163, 0.46120232343673706, 0.7088130712509155, 0.0888858288526535, -1.151989221572876, 1.4021860361099243, 0.13395629823207855, 0.02960786782205105, 0.0676865428686142, 0.9227116107940674, -1.1256622076034546, 0.06345081329345703, 0.5742899179458618, 0.05605839192867279, 0.7729384899139404, 0.7459872364997864, 0.1950838714838028, 0.7206336855888367, 0.07218685746192932, 0.04283326864242554, 0.48603931069374084, -0.701272189617157, 0.7609280943870544, -0.6307600736618042, 0.2771602272987366, 0.2881031036376953, 1.1416743993759155, -0.09832550585269928, -1.0782142877578735, 0.7683455348014832, -0.33737364411354065, 0.04667573794722557, -0.24402955174446106, 0.31243637204170227, -0.4911802113056183, -0.5415140986442566, -1.5299144983291626, -0.012513523921370506, -0.7395175695419312, 0.7898695468902588, -0.35400211811065674, 0.6799138188362122, -0.5840623378753662, -0.5796256065368652, -0.26289114356040955, 1.0145915746688843, -0.6472283005714417, 0.7380242943763733, 0.3621424436569214, 1.3962655067443848, 1.0279167890548706, 0.14511065185070038, -0.8563700914382935, 0.3397197425365448, 0.017798645421862602, -0.16774336993694305, -0.6990542411804199, -0.7941493988037109, -0.7685362100601196, -0.5390113592147827, -0.722439706325531, 0.585708498954773, 0.07499606162309647, 0.007694275584071875, 0.01682121306657791, 0.19094990193843842, -0.0792049989104271, 0.5280404686927795, 0.06606031954288483, -0.026505323126912117, 0.9380038976669312, -0.3392450511455536, -0.6366179585456848, 0.4053340554237366, -0.11312273889780045, 0.7604817748069763, -1.2308655977249146, 0.25003618001937866, 0.5658840537071228, -0.5374192595481873, -0.3934764266014099, 0.7222676277160645, -0.5602524876594543, -0.5586495399475098, -0.10700884461402893, -0.8383802175521851, 0.19037674367427826, 0.29159975051879883, -0.22704367339611053, -1.4328984022140503, -0.4363556504249573, 0.14870166778564453, -0.1338389813899994, 0.46207746863365173, -0.8401979804039001, -0.05623776465654373, 0.14304885268211365, -0.05827097222208977, -0.9095427393913269, -0.021146051585674286, -1.2209858894348145, 1.0059964656829834, -0.4636324942111969, 1.119857907295227, -0.21556273102760315, 0.2422545701265335, 0.4791090786457062, 0.4061259627342224, -0.6763085722923279, 0.14449499547481537, 0.48161110281944275, 0.05953142046928406, 0.6043611168861389, -0.6450341939926147, -0.6573179364204407, 1.1259955167770386, -0.02838626317679882, -0.323871910572052, -0.7119049429893494, 0.23068556189537048, 1.5753823518753052, -0.835808277130127, 0.018476806581020355, 0.3240353763103485, -1.0007879734039307, 0.11644825339317322, -0.7760038375854492, -0.5606709122657776, -0.19470582902431488, 0.254377543926239, 0.11941681057214737, -0.5099418759346008, -0.8013456463813782, -0.6686109900474548, 0.11023250222206116, 0.019788427278399467, -0.4654155969619751, -0.7012956142425537, -0.19369545578956604, 1.5825852155685425, 0.10219420492649078, 0.787527322769165, 0.13461832702159882, 0.0072401585057377815, -0.7365925908088684, 0.21459321677684784, 0.13463981449604034, -0.6839847564697266, -0.10570718348026276, -0.20587411522865295, 0.14099223911762238, 0.4836871027946472, 0.21044252812862396, 0.9984360337257385, -1.207767128944397, -0.5539757609367371, -1.10724937915802, -0.630216658115387, -0.22026105225086212, -0.9669866561889648, -0.3545311689376831, -1.0280799865722656, -0.2821291387081146, -0.14304158091545105, 0.01826229691505432, 0.27919623255729675, -0.08070803433656693, 0.11273206770420074, 0.27653154730796814, 0.315843790769577, 0.21763481199741364, 0.4902009963989258, -0.42690956592559814, -1.2405502796173096, 0.7819446921348572, -0.484867125749588, -0.8566495180130005, -0.27739742398262024, -0.475605309009552, -0.5998795628547668, -0.689696192741394, -1.2354381084442139, 0.694222092628479, -0.3707975447177887, 0.18924158811569214, -0.9710974097251892, -0.6397621631622314, -0.4977317750453949, -0.14525683224201202, 0.099434994161129, -0.12732966244220734, -0.3337751626968384, 0.45982784032821655, 0.2394935041666031, 0.5932075381278992, -0.48636651039123535, 0.09916187077760696, -0.3245731592178345, 0.026574252173304558, -0.95509272813797, 0.28969666361808777, 0.3210940659046173, -1.4280394315719604, -0.46896204352378845, -0.5559250712394714, -0.17567603290081024, 0.5209240317344666, -0.6361032724380493, -0.19841185212135315, 0.33714067935943604, -0.0010077017359435558, 0.5707202553749084, -0.7195029854774475, -0.2697002589702606, -0.9583954215049744, 0.6492803692817688, 1.0129079818725586, -0.355691134929657, -0.7217169404029846, -0.5425596833229065, -1.0648597478866577, -0.6461705565452576, 0.2380632907152176, -0.3980855941772461, 0.07278749346733093, 0.15174832940101624, 0.28156188130378723, -1.0591399669647217, -0.5933742523193359, 0.17048810422420502, -0.40380582213401794, 0.4976084530353546, -0.1917778104543686, 0.7009402513504028, -0.28118661046028137, -0.23747240006923676, 0.2891695499420166, -0.8514096140861511, 0.21406465768814087, 0.18557971715927124, 0.5805099606513977, 0.1686350554227829, 0.06295664608478546, 0.026923179626464844, 0.127022385597229, 0.13158823549747467, 0.5484099984169006, 0.003370650578290224, -1.1749353408813477, -1.1218565702438354, 0.2884463369846344, -0.7902747392654419, 0.27576541900634766, -0.15304690599441528, 0.8260642290115356, -0.34150266647338867, -1.2115966081619263, -0.8615480661392212, 0.7998384237289429, 0.06242435798048973, 0.043731458485126495, -0.8364554047584534, -1.4587445259094238, -0.6160518527030945, -0.46016350388526917, -0.22415900230407715, -0.07547835260629654, -0.054964579641819, -0.1348668485879898, 0.979042649269104, -0.3039902448654175, -0.9035984873771667, -0.5256526470184326, 0.19047702848911285, 0.9165658354759216, 0.444336861371994, -0.1519116461277008, 1.1791263818740845, 0.9750727415084839, 0.09166927635669708, -0.5139462351799011, -0.7796860933303833, -0.35719531774520874, -1.2609951496124268, 0.5449296236038208, 0.009295536205172539, 0.3227604925632477, 0.7066755890846252, -0.6693372130393982, 1.301234245300293, 0.7116974592208862, -0.35909542441368103, 0.5969653725624084, -0.7071603536605835, -0.8126481175422668, -1.5084859132766724, 0.18312250077724457, 0.21968278288841248, 1.1010663509368896, 0.9102659225463867, 0.17052172124385834, -0.014011410996317863, -0.11721465736627579, -0.029680980369448662], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [0.0034425496123731136, 0.025609133765101433, -0.010338710620999336, -0.0451480932533741, -0.003648755606263876, -0.0028168298304080963, 0.07523225992918015, 0.05168195441365242, -0.010014696978032589, 0.013684006407856941, 0.03805561363697052, 0.04483060538768768, 0.005162924062460661, 0.010500852949917316, -0.13980643451213837, 0.03490101173520088, -0.03012513741850853, -0.05292325094342232, -0.09710507839918137, -0.07736264169216156, 0.07941483706235886, 0.024513311684131622, 0.11924618482589722, -0.015556626953184605, 0.021052733063697815, -0.005167169496417046, -0.0017496626824140549, -0.03781050816178322, 0.036050450056791306, -0.09161978214979172, 0.0064196051098406315, 0.04162399098277092, -0.012041016481816769, 0.07711122184991837, 0.06732000410556793, -0.01009383425116539, -0.05110955238342285, 0.01550160814076662, 0.004168964456766844, -0.057753194123506546, -0.0334489606320858, 0.034758228808641434, -0.024818072095513344, 0.11962351202964783, -0.05829734727740288, 0.028041455894708633, -0.07751693576574326, 0.01306688878685236, 0.006149970460683107, -0.07230003923177719, -0.07043847441673279, -0.04656917601823807, 0.021018164232373238, 0.026791809126734734, 0.011552032083272934, 0.0192862581461668, 0.054872747510671616, 0.04781561717391014, 0.058897119015455246, 0.053383853286504745, -0.06353054940700531, -0.059954315423965454, -0.0452449768781662, 0.12552404403686523, 0.05387072637677193, -0.02034173160791397, 0.08885588496923447, -0.10322283208370209, 0.025095904245972633, -0.02106599323451519, -0.06571105122566223, -0.0015445855678990483, -0.030921148136258125, 0.14318716526031494, -0.026228252798318863, 0.013345923274755478, 0.06901800632476807, 0.052958063781261444, -0.006604133173823357, 0.026120541617274284, -0.04832414165139198, 0.11308369785547256, -0.06655623763799667, 0.04285035654902458, -0.017939619719982147, 0.12927894294261932, 0.00032928813016042113, 0.07317889481782913, 0.027383847162127495, 0.07616930454969406, -0.0073165493085980415, -0.04326159134507179, 0.08729548007249832, -0.1211741641163826, 0.02057192288339138, -0.0014553440269082785, -0.029330547899007797, -0.01046239584684372, -0.025676265358924866, -0.036513395607471466, -0.1060832142829895, 0.06316832453012466, -0.003838146338239312, -0.007067197002470493, -0.08862914890050888, 0.06335270404815674, -0.05744941532611847, -0.0831199511885643, -0.14400483667850494, 0.04319532588124275, -0.06502916663885117, 0.0795063003897667, -0.013221485540270805, -0.10854887962341309, -0.03513244166970253, -0.06720346212387085, -0.05527934059500694, -0.0852099135518074, -0.017451804131269455, 0.010174787603318691, -0.09817498922348022, 0.05792585760354996, -0.003116551786661148, -0.05697543919086456, -0.0010120994411408901, -0.012129142880439758, 0.05340525507926941, -0.01087452657520771, -0.04272406920790672, -0.0013776952400803566, -0.010762590914964676, 0.011297688819468021, 0.06222011148929596, 0.06199413537979126, -0.10783880203962326, -0.008724627085030079, 0.03236895054578781, 0.03873341158032417, -0.02130846492946148, -0.07940533012151718, -0.036972369998693466, 0.055390313267707825, 0.056222595274448395, 0.03731943666934967, 0.05296305939555168, 0.011655147187411785, -0.036519285291433334, 0.02527458593249321, -0.07914567738771439, -0.020120764151215553, 0.050382524728775024, 0.00669772457331419, -0.03553440421819687, 0.02977241948246956, -0.046463724225759506, -0.06831146776676178, 0.0654701218008995, 0.006751620210707188, 0.015246562659740448, -0.021067844703793526, 0.015278294682502747, 0.06297499686479568, 0.05850626900792122, -0.042793676257133484, -0.12528641521930695, -0.11412584036588669, -0.0973743200302124, -0.007346779108047485, -0.02371831052005291, -0.03329155594110489, -0.07962949573993683, -0.0017542036948725581, -0.1260199397802353, -0.005483404267579317, 0.05513288825750351, 0.013535118661820889, -0.0016475209267809987, 0.009412325918674469, -0.05953349173069, -0.015707874670624733, -0.04748758673667908, 0.016485434025526047, -0.03692952170968056, -0.09815802425146103, 0.02047024667263031, -0.05120311304926872, -0.016034400090575218, -0.03931032121181488, 0.00357863400131464, -0.0012654609745368361, -0.01630384847521782, -0.0001874857407528907, 0.03812684863805771, 0.0029405534733086824, -0.017623858526349068, -0.05159355327486992, 0.00812558364123106, 0.03908248990774155, 0.01171297300606966, -0.09177921712398529, -0.08953893184661865, -0.04962717741727829, -0.03982279822230339, 0.04811612144112587, 0.022113975137472153, 0.005713410675525665, 0.008196632377803326, -0.002727483632043004, 0.040738675743341446, 0.05119507387280464, -0.04695507511496544, -0.017983248457312584, 0.012345279566943645, -0.0595327727496624, -0.10655402392148972, 0.004971164744347334, -0.030313048511743546, 0.04440116137266159, -0.02958407998085022, 0.040830209851264954, -0.1141977459192276, 0.045331329107284546, 0.005490509327501059, 0.0005799318896606565, -0.017868243157863617, 0.01880047470331192, -0.04567946121096611, -0.0634332075715065, 0.0502144880592823, 0.02668997086584568, 0.07728467136621475, 0.006495240610092878, -0.05355769768357277, 0.05469045042991638, -0.08269789814949036, -0.006599793676286936, 0.02136252447962761, -0.014379676431417465, 0.03377692028880119, 0.07600955665111542, -0.01775728352367878, -0.02829536236822605, -0.05002418905496597, 0.010392885655164719, 0.06335172057151794, -0.061148662120103836, 0.04501092806458473, -0.07789941132068634, -0.02676365152001381, 0.04219399765133858, 0.09393133968114853, -0.0496586374938488, -0.026601698249578476, 0.10703346878290176, 0.0556977316737175, 0.015501230023801327, 0.0744316428899765, -0.040144748985767365, -0.02065432444214821, -0.017003286629915237, 0.028938665986061096, 0.009626689366996288, -0.055446870625019073, -0.0826820358633995, 0.022958947345614433, 0.007843444123864174, 0.05534634366631508, 0.05463128164410591, -0.03563337400555611, -0.0008016236824914813, -0.016904471442103386, 0.03643559664487839, -0.031856805086135864, 0.002428353065624833, -0.024062443524599075, -0.0449962355196476, -0.06324896961450577, 0.1253444254398346, -0.061644960194826126, -0.06626052409410477, 0.05472231283783913, 0.010003346018493176, -0.10580811649560928, 0.019279008731245995, 0.01732436940073967, 0.1253480762243271, 0.08855744451284409, -0.04042463377118111, 0.09063105285167694, 0.06960126757621765, 0.04852667450904846, 0.011964390054345131, -0.0017457406502217054, -0.09084850549697876, -0.07433713227510452, 0.05080000311136246, 0.041702624410390854, 0.012560521252453327, 0.12001924216747284, 0.0586935319006443, 0.062209490686655045, 0.024031979963183403, 0.07469654828310013, -0.10014767199754715, 0.005917503032833338, -0.09942591190338135, 0.04341963678598404, 0.016894029453396797, 0.08110211044549942, 0.015807917341589928, -0.005214636214077473, 0.00285611255094409, 0.03029012307524681, 0.028105493634939194, 0.0014533351641148329, 0.051978446543216705, 0.049338165670633316, 0.0369679294526577, 0.08496269583702087, 0.06467878818511963, 0.001060196664184332, -0.08129297941923141, 0.11572882533073425, 0.05125731974840164, 0.015328163281083107, 0.04552670195698738, 0.037798866629600525, 0.06584439426660538, 0.029749512672424316, -0.006522007752209902, 0.03540365397930145, 0.032710470259189606, -0.010018742643296719, 0.07524154335260391, 0.022971125319600105, 0.05421807989478111, 0.10458396375179291, -0.04659394174814224, 0.07933030277490616, 0.013974228873848915, 0.02908431552350521, -0.04309382662177086, -0.05057961121201515, -0.01957428827881813, -0.014319141395390034, -0.0647071972489357, -0.09456517547369003, 0.03970348834991455, 0.004597181919962168, -0.06602364033460617, 0.03864666447043419, -0.017169754952192307, -0.014047442004084587, 0.03562605008482933, -0.018722113221883774, -0.030862463638186455, -0.009405380114912987, -0.0650266781449318, 0.05523437261581421, 0.03556518256664276, 0.05678620561957359, 0.13705536723136902, 0.01725943200290203, -0.05311378836631775, -0.037250712513923645, -0.0102915707975626, -0.036806620657444, 0.1396072506904602, 0.015939975157380104, 0.004353889264166355, 0.010553127154707909, -0.02001594752073288, 0.041604433208703995, -0.03386376053094864, 0.07488515973091125, -0.052150364965200424, -0.017092552036046982, 0.04167792573571205, -0.027994045987725258, 0.033610519021749496, -0.0006517726578749716, 0.03838782757520676, 0.12152047455310822, -0.02923012338578701, 0.09171652048826218, -0.04521412402391434, 0.061276838183403015, -0.0836876630783081, 0.04507017508149147, -0.042464643716812134, -0.0128896189853549, -0.11031855642795563, -0.027815748006105423, -0.010371563956141472, 0.026535900309681892, 0.02161385864019394, 0.015446214005351067, 0.03985977545380592, 0.04281604290008545, 0.040064066648483276, 0.03401537984609604, 0.0015076670097187161, -0.03373038023710251, -0.004723592195659876, 0.020504849031567574, -0.05632231384515762, -0.007257094141095877, -0.03133709728717804, -0.0035052308812737465, -0.05752330273389816, 0.11053334176540375, 0.008436355739831924, 0.01515586581081152, -0.025669801980257034, -0.014446966350078583, -0.04216751828789711, -0.12019120156764984, 0.07555724680423737, 0.05536738783121109, -0.06581155955791473, -0.011037284508347511, 0.03054666519165039, 0.017677733674645424, -0.043804414570331573, 0.1094110906124115, -0.0970580205321312, -0.04024793952703476, -0.01445857621729374, 0.00454516289755702, 0.008478875271975994, -0.08265984058380127, 0.010047324001789093, 0.016185350716114044, 0.020570360124111176, 0.007383755873888731, -0.04701511561870575, 0.03025413304567337, -0.027807455509901047, -0.010575022548437119, 0.012918381951749325, -0.0421132892370224, -0.06599993258714676, -0.1075737476348877, -0.1048995852470398, -0.011423886753618717, -0.02606615237891674, -0.05402650311589241, 0.06469650566577911, 0.027993127703666687, -0.010647510178387165, 0.043473757803440094, 0.038191936910152435, -0.010035679675638676, -0.10441149771213531, 0.03769109398126602, 0.009839371778070927, 0.11409307271242142, -0.008594171144068241, 0.012359913438558578, -0.03212859109044075, 0.017187681049108505, 0.06181055307388306, -0.014640013687312603, 0.10008928924798965, -0.07931138575077057, -0.030084101483225822, -0.013874469324946404, -0.023632215335965157, -0.03485030308365822, 0.0635123923420906, -0.053254954516887665, -0.15327702462673187, -0.02777557261288166, 0.052201878279447556, -0.013092204928398132, 0.024713575839996338, -0.010909409262239933, 0.0005252632545307279, 0.06311424821615219, 0.014792337082326412, 0.018927529454231262, 0.05877174437046051, 0.02246404066681862, 0.08210518211126328, 0.05889471247792244, -0.06547152996063232, 0.01677054725587368, 0.03111044317483902, -0.14075976610183716, -0.007240615785121918, 0.06067528575658798, 0.06099877879023552, 0.036890659481287, 0.15763254463672638, -0.09050854295492172, 0.003948865458369255, 0.002850863616913557, -0.05990216135978699, 0.028798241168260574, 0.016466813161969185, -0.031614188104867935, -0.015845218673348427, -0.03997557982802391, 0.016861269250512123, 0.024055801331996918, -0.09694602340459824, 0.08250905573368073, -0.0036252958234399557, -0.03546006232500076, -0.0007103853276930749, -0.06999076157808304, 0.009697536937892437, 0.012619850225746632, 0.0011999555863440037, -0.048008766025304794, 0.0938381552696228, -0.002219031099230051, -0.043987300246953964, -0.010531872510910034, 2.164680336136371e-05, 0.12561443448066711, 0.009948881343007088, -0.023390786722302437, 0.1463426947593689, -0.0819728747010231, 0.025681743398308754, -0.04310700669884682, 0.1681712418794632, 0.02817973867058754, -0.008036854676902294, -0.045956652611494064, 0.036318812519311905, -0.06372512876987457, -0.00019197656365577132, 0.03259095549583435, 0.025538593530654907, 0.011493634432554245, 0.06183449923992157, -0.007562702987343073, -0.019127625972032547, 0.11713393032550812, 0.08241463452577591, -0.05534260347485542, -0.03253764286637306, 0.13439738750457764, 0.042896922677755356, 0.00948168896138668, -0.0006694611511193216, 0.020634472370147705, 0.010729138739407063, 0.1470051109790802, 0.041611265391111374, -0.07063008844852448, -0.09603606909513474, -0.030329629778862, -0.016151700168848038, -0.020113283768296242, 0.07649710029363632, -0.05834582448005676, -0.08974920958280563, 0.014400336891412735, 0.02509528025984764, -0.028879286721348763, 0.005856302101165056, -0.0045768944546580315, -0.0015509899239987135, 0.04082987830042839, 0.014372767880558968, 0.04630645364522934, 0.005526414141058922, 0.0730419009923935, 0.0020524440333247185, -0.07695803046226501, -0.02603394351899624, 0.046800632029771805, 0.027136998251080513, -0.023998862132430077, 0.05277901887893677, -0.02095850370824337, -0.02012593112885952, 0.06623214483261108, -0.022234823554754257, -0.006965694949030876, -0.03818287327885628, 0.004128482658416033, 0.0032850936986505985, -0.025611022487282753, 0.07757429033517838, 0.05793432518839836, -0.007238960824906826, -0.0764094889163971, 0.08567973971366882, -0.000989657361060381, 0.06999237090349197, 0.032304611057043076, -0.0026170057244598866, 0.027851469814777374, -0.06306441128253937, 0.011353475041687489, -0.023546840995550156, 0.06105176731944084, 0.03171716257929802, 0.00538630923256278, 0.0311548113822937, -0.005077396519482136, -0.024863390251994133, -0.014399448409676552, 0.030559241771697998, 0.10047569125890732, -0.03300738334655762, 0.02663876675069332, 0.027527762576937675, -0.0413210354745388, -0.025637097656726837, 0.05369146168231964, -0.02823130041360855, -0.05827780440449715, -0.019965656101703644, 0.02706812508404255, -0.023032085970044136, -0.04493311420083046, -0.029476745054125786, 0.017525669187307358, 0.006601268425583839, 0.011797231622040272, 0.11239991337060928, -0.13837631046772003, 0.08535393327474594, 0.01468396931886673, 0.04730909690260887, -0.03662813454866409, -0.024076281115412712, -0.05737968906760216, 0.0425247922539711, -0.07633406668901443, -0.010856122709810734, 0.05878084897994995, -0.10817316919565201, 0.012475552037358284, -0.006048357579857111, -0.05134717375040054, 0.0070133088156580925, 0.05434669181704521, 0.0550832636654377, 0.045261140912771225, -0.02502543292939663, -0.016298780217766762, 0.04399900883436203, -0.1122652068734169, 0.033004097640514374, -5.38517051609233e-05, -0.06529543548822403, -0.035483818501234055, -0.039901748299598694, -0.012876837514340878, -0.07357306778430939, -0.11289771646261215, 0.027067266404628754, -0.09939569234848022, 0.0616861917078495, -0.053403403609991074, -0.05217631533741951, -0.10968799889087677, 0.0005649091326631606, 0.06929860264062881, 0.00702785374596715, -0.0098335649818182, -0.058541398495435715, 0.01970856450498104, -0.05548693239688873, 0.11252930015325546, -0.057545192539691925, 0.022884609177708626, 0.07678604125976562, 0.07959869503974915, 0.04348304122686386, -0.0009481346351094544, 0.06778711825609207, 0.05426105856895447, -0.03946980834007263, 0.01801113411784172, 0.07632506638765335, -0.08641402423381805, 0.019635217264294624, -0.03138260170817375, -0.07297654449939728, 0.02912997081875801, 0.026196956634521484, -0.10452534258365631, 0.0337483286857605, 0.05068311467766762, 0.0018332519102841616, -0.02554423362016678, -0.0004582070105243474, 0.01764795556664467, -0.037443142384290695, 0.011716153472661972, 0.022128678858280182, -0.0946655124425888, 0.05962652713060379, -0.05269065126776695, -0.09049821645021439, 0.05421185493469238, 0.048384811729192734, 0.03670685738325119, 0.009662538766860962, 0.04020848125219345, 0.1049206331372261, 0.03357962146401405, -0.02256016619503498, -0.1238839253783226, 0.011238768696784973, 0.05358360707759857, -0.0050817616283893585, 0.03389652818441391, 0.033180586993694305, -0.04269486293196678, 0.06260065734386444, -0.0639512836933136, -0.07748275250196457, -0.0031571723520755768, -0.035463009029626846, 0.05186662822961807, -0.03470872342586517, -0.07716991007328033, 0.08023183047771454, 0.005869307555258274, -0.06991235911846161, -0.03101770393550396, -0.03366439789533615, 0.001511063426733017, -0.037446942180395126, 0.0074624852277338505, -0.08538021892309189, -0.013356685638427734, -0.06104505434632301, 0.13374687731266022, -0.06174732744693756, 0.06866584718227386, -0.010852568782866001, -0.0157623291015625, 0.10560629516839981, -0.0058396500535309315, 0.016225550323724747, -0.009822454303503036, -0.007866051979362965, -0.013690920546650887, 0.04864417016506195, -0.02015444077551365, 0.027936935424804688, 0.03497176989912987, 0.04089413583278656, 0.009255479089915752, 0.011389599181711674, 0.025408603250980377, 0.04217931628227234, 0.06029864400625229, 0.0007192812627181411, -0.06006345897912979, -0.0511365607380867, -0.040869537740945816, 0.026785025373101234, 0.0591995008289814, -0.016605287790298462, -0.16354943811893463, -0.009372999891638756, -0.0401029959321022, -0.004379853140562773, 0.02706565521657467, 0.03921850770711899, 0.07969160377979279, -0.06061593443155289, -0.07179045677185059, -0.008245228789746761, 0.03520624339580536, 0.04890671744942665, -0.02062406577169895, 0.041774943470954895, 0.07769857347011566, -0.11570999771356583, 0.008595027029514313, 0.06094491481781006, 0.06350391358137131, -0.021008208394050598, -0.011555126868188381, -0.024670042097568512, 0.03228423744440079, 0.051326677203178406, 0.05202213302254677, 0.008502812124788761, 0.05868969112634659, 0.0110698863863945, -0.03423672169446945, 0.02787451259791851, -0.06616093218326569, -0.025822129100561142, -0.0013986012199893594, 0.014443616382777691, -0.07581885159015656, -0.015947306528687477, 0.025900036096572876, 0.011552445590496063, -0.011111359111964703, -0.08327358216047287, 0.037159260362386703, 0.17154093086719513, -0.009921870194375515, 0.08542560786008835, 0.021993916481733322, 0.007974836975336075, -0.03261684998869896, -0.030685724690556526, -0.001664857380092144, 0.0023350107949227095, 0.012919165194034576, 0.07810001075267792, 0.07952563464641571, -0.05841229483485222, 0.01522937323898077, -0.03530817851424217, 0.012874078936874866, -0.060656096786260605, -0.022337554022669792, 0.014337442815303802, 0.08818317204713821, -0.09816072136163712, 0.035525452345609665, -0.06159475818276405, -0.0730937123298645, -0.04186016321182251, 0.08316726237535477, 0.0841272696852684, -0.05500636622309685, 0.009203018620610237, -0.03218542039394379, -0.05785262957215309, -0.08348110318183899, 0.0007007258245721459, 0.012861225754022598, -0.040740132331848145, -0.04904334247112274, -0.09242258965969086, -0.027219345793128014, -0.056727174669504166, -0.008816471323370934, -0.17406421899795532, -0.03233407810330391, -0.028098784387111664, 0.06866779178380966, 0.03831132501363754, 0.10536329448223114, 0.05540384352207184, 0.020820410922169685, -0.08184017986059189, 0.05138976499438286, 0.03157883882522583, 0.004840654321014881, -0.08069266378879547, -0.04020761698484421, -0.034132253378629684, 0.039712633937597275, 0.03789327293634415, -0.01624065451323986, -0.01603160984814167, -0.19694916903972626, 0.0295121967792511, -0.09133008867502213, 0.03162512555718422, 0.09515731036663055, -0.03291218355298042, -0.013151343911886215, 0.00017303376807831228, -0.037534892559051514, -0.053131476044654846, 0.02035214565694332, -0.011793781071901321, 0.0037783535663038492, 0.02463557757437229, 0.054047390818595886, -0.0708576962351799, -0.05895613133907318, -0.030241437256336212, 0.03693300113081932, 0.03933331370353699, -0.0612865574657917, 0.09209438413381577, 0.019888289272785187, 0.0013842552434653044, 0.015712538734078407, 0.09267406910657883, 0.058503538370132446, 0.05682361125946045, 0.00736815994605422, 0.1626867800951004, -0.023480411618947983, -0.012260770425200462, -0.05196220427751541, -0.008683498948812485, -0.014886260032653809, 0.018609024584293365, 0.012217920273542404, 0.0010027330135926604, -0.033169522881507874, 0.03272486478090286, -0.03669390827417374, 0.023006681352853775, -0.03926475718617439, 0.03743007406592369, -0.08603458106517792, 0.06803444772958755, 0.03803599625825882, 0.008492054417729378, 0.04849163070321083, 0.030046246945858, 0.010803134180605412, 0.05136898532509804, -0.028358012437820435, -0.11766060441732407, 0.023692984133958817, -0.1017354279756546, -0.048883259296417236, 0.023863423615694046, -0.04827608913183212, 0.032786641269922256, -0.09632536768913269, -0.00490524573251605, 0.034374088048934937, -0.039653927087783813, -0.0415349155664444, -0.09395390748977661, 0.08471525460481644, -0.01588471792638302, 0.048481959849596024, -0.026715025305747986, 0.0573686845600605, -0.006852130405604839, -0.12746058404445648, 0.0882895365357399, -0.0011945057194679976, -0.03236833214759827, -0.09997641295194626, 0.03233107179403305, 0.0005226198118180037, -0.03191575035452843, 0.03304585441946983, 0.05446840077638626, -0.09208493679761887, 0.0020301612094044685, 0.01589735597372055, -0.023706821724772453, 0.0622066929936409, 0.04612646624445915, 0.018959350883960724, -0.009160719811916351, 0.05134671553969383, 0.03293278068304062, 0.013963132165372372, 0.06685352325439453, -0.0019403124460950494, 0.06611707806587219, 0.044984620064496994, 0.021284442394971848, -0.05606730654835701, -0.008013557642698288, 0.018578404560685158, -0.018296388909220695, -0.03636163845658302, -0.04027247801423073, 0.057586997747421265, -0.03405405953526497, 0.019213145598769188, -0.012845287099480629, -0.03752492368221283, 0.15865041315555573, 0.02239699847996235, -0.014507945626974106, 0.030292484909296036, 0.044145144522190094, 0.0200507752597332, 0.04703632369637489, 0.05227196216583252, 0.043163977563381195, -0.01841692440211773, -0.04253782704472542, 0.043161023408174515, -0.07126383483409882, -0.04624269902706146, -0.018427230417728424, 0.025415068492293358, 0.0331842340528965, -0.022321633994579315, 0.0037341099232435226, -0.03503263741731644, -0.023412534967064857, 0.035077642649412155, -0.028671279549598694, 0.002991079818457365, -0.024402674287557602, 0.04403045028448105, 0.01733754388988018, 0.015175067819654942, 0.0763842836022377, 0.002829384757205844, -0.03742941468954086, 0.043892521411180496, -0.07783903181552887, 0.008855611085891724, 0.12267925590276718, 0.029529741033911705, -0.012156574055552483, -0.12933889031410217, 0.03024921379983425, 0.016805550083518028, -0.08076538145542145, -0.04625561833381653, -0.06173848733305931, -0.07869196683168411, 0.05477911978960037, 0.03991800546646118, 0.04152428358793259, 0.008631329983472824, -0.045045915991067886, 0.045389123260974884, -0.04591416195034981, 0.037133246660232544, -0.0012689572758972645, -0.060699496418237686, -0.009839959442615509, -0.031505975872278214, 0.018804898485541344, -0.018350834026932716, 0.02769150212407112, -0.1069052591919899, 0.01428314670920372, -0.012165479362010956, 0.02265850454568863, -0.004865117836743593, -0.022974003106355667, -0.05473492667078972, 0.09267839044332504, 0.008745974861085415, 0.008638666942715645, -0.031842850148677826, 0.04001976177096367, 0.043340377509593964, -0.012338160537183285, -0.07055831700563431, 0.10270434617996216, -0.016168296337127686, 0.017488377168774605, 0.04054919630289078, 0.029163090512156487, 0.08480819314718246, -0.050573766231536865, 0.017014244571328163, -0.0037715083453804255, -0.0908956304192543, 0.03356526419520378, 0.027858916670084, -0.03152269124984741, 0.0413934662938118, 0.04862850531935692, -0.10910387337207794, 0.04340489208698273, 0.011476346291601658, 0.0319826565682888, 0.04597347229719162, 0.007369385566562414, 0.012701506726443768, -0.025855256244540215, 0.04135032370686531, -0.023468490689992905, -0.06332867592573166, -0.0645807534456253, 0.018819956108927727, 0.010265818797051907, 0.008128361776471138, 0.05604410171508789, -0.012544339522719383, 0.04851648584008217, -0.05997636914253235, 0.003498357953503728, -0.0005023658741265535, -0.057601891458034515, -0.10306384414434433, -0.013482398353517056, -0.04144654795527458, 0.06795275956392288, -0.007726701907813549, -0.0007461338536813855, 0.002116349758580327, -0.08204249292612076, -0.05866137892007828, -0.06520943343639374, 0.010176955722272396, 0.03485897555947304, -0.06985591351985931, -0.03153885900974274, 0.01606575772166252, 0.028805771842598915, -0.1420658975839615, -0.010478410869836807, -0.03908934071660042, 0.011498779989778996, -0.0030882416758686304, -0.000846991955768317, -0.020293783396482468, -0.014269152656197548, 0.013344311155378819, 0.05975780636072159, 0.036698777228593826, -0.0523749403655529, 0.06447315961122513, 0.032219767570495605, 0.07879748940467834, 0.023959677666425705, 0.057171259075403214, -0.05054334178566933, 0.015794197097420692, -0.06443393230438232, 0.03736776113510132, -0.03343760222196579, 0.03796512261033058, -0.03043576516211033, -0.016952896490693092, -0.05344787612557411, 0.035152651369571686, 0.009277353063225746, 0.018914230167865753, 0.013015984557569027, 0.04502810910344124, -0.030704567208886147, 0.016026850789785385, 0.008149339817464352, -0.07338448613882065, -0.01801590621471405, 0.050596028566360474, 0.1913118213415146, -0.005559516604989767, 0.05308135598897934, 0.028169672936201096, 0.01857243850827217, 0.045965395867824554, 0.034972820430994034, -0.04097365587949753, 0.022780463099479675, -0.015037700533866882, -0.0671813115477562, -0.022354573011398315, 0.018658816814422607, 0.02220875211060047, -0.04561178758740425, 0.017841584980487823, -0.01017944049090147, -0.041680049151182175, 0.01395460031926632, 0.06676767021417618, 0.02632187306880951, 0.038970254361629486, 0.051882512867450714, -0.016776982694864273, 0.219607874751091, 0.06392103433609009, -0.05605265870690346, 0.008049323223531246, 0.012721896171569824, -0.07825952023267746, 0.028831833973526955, 0.11583667993545532, -0.05210350453853607, 0.08193206042051315, 0.06929106265306473, -0.02049223706126213, -0.014622439630329609, -0.03736830875277519, -0.06552816927433014, 0.0101280203089118, -0.036321498453617096, 0.03817523270845413, 0.01485526654869318, -0.200212761759758, 0.02640167810022831, -0.004413638263940811, -0.034623969346284866, -0.06349029392004013, -0.06475455313920975, 0.04685484990477562, -0.05994053930044174, 0.03297192230820656, 0.016970155760645866, -0.041215330362319946, -0.0412893109023571, -0.0015737148933112621, -0.09191521257162094, -0.025971248745918274, -0.005646458361297846, 0.012924132868647575, 0.009153492748737335, -0.015191533602774143, -0.0986102744936943, 0.027731740847229958, 0.01349190715700388, -0.06348982453346252, -0.02426108717918396, -0.014464743435382843, -0.00428008334711194, 0.005479198880493641, -0.015677165240049362, -0.09549932181835175, 0.08912600576877594, 0.06555554270744324, -0.010241838172078133, 0.0026674880646169186, -0.05778023228049278, 0.015291689895093441, 0.04636422172188759, 0.026048066094517708, -0.03002866357564926, -0.13464966416358948, -0.11233197152614594, -0.004082608036696911, 0.006829434540122747, 0.01734250970184803, -0.021957118064165115, 0.04262759909033775, 0.02016381174325943, 0.008530708029866219, 0.037659674882888794, -0.08235819637775421, 0.032856229692697525, -0.03876349702477455, 0.007088969927281141, 0.05238943547010422, -0.007131622172892094, -0.08081811666488647, -0.000948803557548672, 0.0057333894073963165, -0.04518915340304375, 0.01376781240105629, -0.0039361389353871346, 0.0696602389216423, -0.07419851422309875, 0.05698780342936516, 0.047882094979286194, -0.02571147121489048, -0.004239318892359734, 0.06635209172964096, -0.06577242165803909, -0.0436231791973114, -0.03816895931959152, -0.0862741470336914, 0.013382245786488056, 0.02140563540160656, -0.047142405062913895, 0.0011020576348528266, -0.03942926228046417, -0.03686956688761711, 0.025983385741710663, -0.008044669404625893, 0.0070815980434417725, 0.09183840453624725, -0.01249260175973177, -0.0014445935375988483, -0.06389908492565155, -0.0826868936419487, 0.0020472384057939053, -0.04277469962835312, -0.01755959913134575, -0.045513518154621124, -0.00715809827670455, -0.07487186044454575, 0.07766342163085938, 0.037251975387334824, -0.09519848227500916, 0.047379739582538605, 0.0966184139251709, -0.02796040289103985, -0.028858713805675507, 0.004109233617782593, -0.018533414229750633, 0.022097283974289894, 0.006594845559448004, 0.018649712204933167, 0.0062509458512067795, 0.07277939468622208, -0.0893959328532219, 0.0040068053640425205, 0.04140852764248848, 0.04545622691512108, -0.006395863834768534, -0.10164452344179153, -0.07330380380153656, 0.03695660084486008, 0.06838963180780411, 0.031105492264032364, -0.0011629461077973247, 0.020830819383263588, 0.014586430042982101, -0.027436545118689537, 0.08742135763168335, -0.036054834723472595, -0.0023813697043806314, -0.055174123495817184, 0.024687262251973152, -0.04236859455704689, -0.0009749230812303722, 0.020180903375148773, -0.09001590311527252, 0.02781982161104679, 0.053144969046115875, -0.06154044717550278, -0.06570672243833542, -0.0020037004724144936, -0.05152282491326332, -0.06242112070322037, 0.034838590770959854, 0.024078482761979103, -0.053831975907087326, -0.021932123228907585, -0.11739262193441391, 0.08386607468128204, -0.01482309028506279, -0.04271817207336426, -0.049230609089136124, 0.005323800258338451, -0.024913936853408813, 0.048020921647548676, -0.03135437145829201, 0.030778860673308372, 0.06710667163133621, -0.025914590805768967, 0.06030494347214699, 0.08119097352027893, -0.038382455706596375, 0.00693517504259944, 0.06505795568227768, 0.124716617166996, -0.10316005349159241, -0.07738236337900162, 0.047239843755960464, -0.03621973097324371, 0.06378515064716339, -0.03799646720290184, 0.003881336422637105, 0.004859119653701782, -0.0072311293333768845, 0.046042826026678085, 0.1348474770784378, -0.008303315378725529, -0.08760629594326019, -0.036599937826395035, 0.025165967643260956, 0.09841696918010712, -0.09722921252250671, -0.04414152354001999, 0.03235114738345146, -0.0332675464451313, 0.021009795367717743, -0.07757832854986191, 0.008135881274938583, -0.0028710337355732918, -0.09998738765716553, 0.0042902627028524876, 0.006692320574074984, 0.11592312902212143, -0.030190957710146904, 0.006292043719440699, -0.058889664709568024, -0.016899704933166504, -0.002350730122998357, 0.04951653629541397, 0.05334186926484108, 0.04100582376122475, 0.09115400165319443, -0.002016172045841813, 0.05956653878092766, 0.05038538947701454, -0.11587395519018173, 0.020405901595950127, -0.023575933650135994, 0.07445460557937622, -0.003581337397918105, 0.013952190056443214, 0.0013573840260505676, -0.0947292372584343, -0.0975172147154808, 0.07488758116960526, -0.0931127741932869, 0.06648830324411392, -0.003868532832711935, 0.014425373636186123, 0.05438883602619171, -0.008675635792315006, 0.021267244592308998, -0.07106491178274155, -0.05613167956471443, 0.01734536699950695, 0.11933594197034836, 0.06975836306810379, 0.002000227104872465, -0.05123012885451317, 0.05500597506761551, -0.09284428507089615, -0.13276049494743347, 0.03467854857444763, -0.031517595052719116, -0.03951459005475044, 0.02642141468822956, 0.05551225692033768, -0.03536469489336014, 0.041129037737846375, 0.03964638337492943, -0.02043100818991661, 0.0647071897983551, -0.03583516925573349, 0.06280611455440521, 0.05673879384994507, -0.06924985349178314, 0.0143356341868639, 0.0805523693561554, -0.08483804762363434, 0.057804789394140244, 0.02919769659638405, -0.02322579361498356, -0.04116634652018547, -0.12562084197998047, -0.009513027966022491, -0.025471219792962074, 0.0503704771399498, 0.07262356579303741, -0.049516405910253525, 0.022822009399533272, 0.006417903583496809, -0.011758978478610516, 0.0009889312786981463, 0.012803537771105766, -0.008887747302651405, -0.02194501832127571, -0.005837219301611185, 0.035599369555711746, 0.027596352621912956, 0.008986061438918114, -0.08134302496910095, -0.014400498010218143, -0.013415546156466007, -0.0006965847569517791, 0.00048522354336455464, 0.02908260002732277, 0.01931239478290081, 0.07325761765241623, -0.015340350568294525, 0.005424540024250746, -0.016355369240045547, 0.005136754829436541, 0.0303838811814785, 0.03810049593448639, -0.013598926365375519, -0.045398008078336716, 0.017838940024375916, -0.013631866313517094, -0.06379109621047974, -0.035935621708631516, 0.06916340440511703, -0.025550255551934242, -0.022912688553333282, -0.019042836502194405, -0.08200790733098984, 0.05150263383984566, -0.06241988018155098, -0.009898126125335693, 0.0030416755471378565, 0.0663876160979271, -0.01088003721088171, -0.024039238691329956, -0.09295191615819931, -0.06456559151411057, 0.020643291994929314, -0.03896025940775871, -0.05577236786484718, 0.021418586373329163, 0.05443524196743965, 0.05767480283975601, -0.029894940555095673, 0.034964825958013535, -0.021859556436538696, -0.012087945826351643, -0.049723491072654724, -0.04046478867530823, -0.1619342416524887, 0.04296685382723808, 0.041158463805913925, 0.03346911072731018, 0.05942479893565178, 0.03722084313631058, 0.0004977318458259106, -0.0071905385702848434, 0.013500744476914406, 0.0025035433936864138, 0.03734957054257393, 0.08794226497411728, -0.0556812584400177, 0.029553767293691635, 0.06313901394605637, 0.06056731939315796, -0.04359164461493492, -0.025178544223308563, 0.017851345241069794, 0.0801805928349495, 0.06928302347660065, -0.07508658617734909, 0.07066892832517624, -0.055109210312366486, -0.042563121765851974, -0.02593005634844303, 0.017795570194721222, -0.010169320739805698, -0.09320010244846344, 0.001958106178790331, 0.03402002900838852, 0.017461055889725685, -0.02038460597395897, 0.02055751532316208, -0.030075736343860626, 0.1247594878077507, -0.0432434007525444, -0.014573505148291588, 0.012964836321771145, 0.007511434610933065, 0.16550320386886597, 0.07217167317867279, -0.0806482657790184, 0.03477786108851433, -0.043848760426044464, -0.056973643600940704, 0.048340097069740295, -0.006277617532759905, 0.0422530397772789, -0.02401839755475521, -0.03579583019018173, 0.09972955286502838, 0.05730421468615532, 0.01113294716924429, -0.11265650391578674, -0.02940043807029724, 0.08809776604175568, 0.05265987291932106, 0.04096108302474022, -0.0378480926156044, -0.07746118307113647, 0.013654705137014389, -0.08097980916500092, -0.07246634364128113, -0.04240114614367485, -0.04538842290639877, 0.0463472418487072, -0.025339609012007713, -0.07022484391927719, 0.06232762709259987, 0.04775077849626541, 0.05278214439749718, -0.023353267461061478, 0.011292495764791965, 0.05370275676250458, -0.06388851255178452, -0.057540908455848694, -0.027797628194093704, -0.0028113683219999075, 0.020199861377477646, -0.005470519885420799, -0.016666250303387642, 0.007536935154348612, -0.00574087630957365, -0.02887800522148609, 0.1951933205127716, -0.031663477420806885, 0.0077091786079108715, -0.009038719348609447, 0.029774153605103493, -0.0631052553653717, -0.007945871911942959, 0.020421436056494713, 0.00447803782299161, 0.01103563979268074, 0.03676319494843483, -0.014020423404872417, 0.04490511864423752, -0.0119776064530015, 0.03728121891617775, 0.12826907634735107, -0.009439049288630486, 0.1136639267206192, 0.09174204617738724, -0.014759334735572338, -0.04385482519865036, -0.07167267054319382, 0.011966029182076454, -0.06474003940820694, -0.029984811320900917, 0.003044963115826249, -0.02379194274544716, 0.011787716299295425, -0.10747797787189484, -0.021010035648941994, 0.02033328451216221, -0.008674352429807186, -0.07294446229934692, 0.0707831159234047, -0.008871536701917648, -0.038136422634124756, 0.02990008145570755, 0.020609689876437187, 0.03189349174499512, 0.047825925052165985, 0.03166190907359123, 0.023557133972644806, -0.04708040878176689, 0.058706410229206085, 0.026213202625513077, -0.0047135730274021626, 0.05482257902622223, 0.12017745524644852, -0.08086565881967545, -0.06554192304611206, 0.07541944831609726, -0.047032810747623444, -0.052243564277887344, -0.05841803550720215, -0.046910595148801804, 0.011682895943522453, 0.06409235298633575, 0.05115062743425369, -0.003496419405564666, 0.08954732865095139, -0.06784539669752121, 0.014563099481165409, -0.04336513951420784, -0.04134805127978325, -0.02799155004322529, -0.08776106685400009, -0.04603465273976326, 0.09044474363327026, -0.042977817356586456, -0.023938070982694626, 0.05706419050693512, 0.03464317321777344, -0.026113588362932205, 0.0015830725897103548, -0.017359279096126556, -0.011490743607282639, -0.018535884097218513, -0.053435999900102615, 0.00426875427365303, -0.08440376818180084, 0.011909178458154202, 0.016512777656316757, -0.023773755878210068, 0.026172004640102386, -0.010328806936740875, 0.056803181767463684, -0.11607731878757477, -0.02525942213833332, 0.03389527648687363, 0.008754291571676731, -0.05641062185168266, 0.022682301700115204, 0.06774861365556717, -0.010388940572738647, -0.023031653836369514, 0.00907718576490879, -0.10247863829135895, 0.034422777593135834, 0.0878210961818695, -0.02626088075339794, 0.07899456471204758, -0.09144812822341919, 0.03293457627296448, -0.022619642317295074, 0.02769176848232746, 0.043944649398326874, -0.07302768528461456, 0.09500277787446976, -0.0054540676064789295, -0.008791103959083557, -0.12150578200817108, 0.034137945622205734, 0.05860073119401932, 0.009392623789608479, -0.04864485189318657, 0.10622049123048782, -0.028105810284614563, -0.0956236943602562, 0.013701713643968105, -0.09443745017051697, 0.013883342035114765, -0.013491932302713394, -0.007411250378936529, -0.03501106798648834, 0.07405174523591995, -0.08828875422477722, -0.01896912232041359, -0.014207428321242332, 0.06210954859852791, -0.0009737641084939241, -0.007293970324099064, 0.06754428148269653, 0.02851293236017227, 0.03231315687298775, 0.0384671613574028, 0.10969347506761551, 0.013604207895696163, 0.09369102120399475, -0.047845181077718735, 0.04828429967164993, 0.022268949076533318, 0.02586805820465088, -0.01253579743206501, 0.07024867832660675, 0.09580224007368088, 0.14575126767158508, -0.016142725944519043, 0.028494348749518394, -0.025698808953166008, -0.047260385006666183, -0.07708718627691269, 0.033304642885923386, 0.031962182372808456, 0.05970098450779915, -0.05975671112537384, 0.02369225025177002, -0.03044607676565647, -0.06784325838088989, -0.009356007911264896, -0.03878287598490715, -0.07077810913324356, -0.0407758392393589, -0.04154568910598755, -0.004402858205139637, -0.007217569276690483, -0.05349463224411011, 0.021920492872595787, 0.07164893299341202, -0.012358317151665688, 0.0010017427848652005, -0.05953066423535347, -0.002775470493361354, -0.06392479687929153, -0.1233929842710495, 0.027614347636699677, 0.03865303471684456, 0.024110378697514534, -0.007718124892562628, 0.05289012938737869, 0.11383868008852005, -0.0068656885996460915, -0.053749166429042816, 0.05497059226036072, -0.047568995505571365, 0.04774713143706322, -0.043910689651966095, -0.07646627724170685, 0.0475417785346508, 0.03756394982337952, 0.038228146731853485, 0.13104839622974396, -0.03917927294969559, -0.06281023472547531, -0.024051662534475327, 0.020320840179920197, 0.02089778333902359, 0.009604105725884438, -0.06717151403427124, -0.02644256316125393, 0.006851068697869778, 0.004997423384338617, -0.0755806565284729, -0.1226600632071495, -0.045140381902456284, -0.08025504648685455, 0.02128407545387745, -0.0028852978721261024, 0.05510438606142998, 0.04089510813355446, 0.100749172270298, 0.0229682307690382, 0.035406023263931274, -0.02282717265188694, 0.008255736902356148, 0.026834387332201004, -0.00290703889913857, -0.09123487770557404, -0.01027609407901764, 0.000445572251919657, 0.018106158822774887, -0.07461432367563248, 0.0003592807042878121, -0.07724682241678238, -0.030238410457968712, -0.05659913271665573, 0.02825256623327732, -0.011418328620493412, -0.060324229300022125, -0.004988440312445164, 0.07549432665109634, -0.12052476406097412, -0.02650314010679722, 0.05720758065581322, 0.004613436758518219, 0.03921272233128548, 0.0057859839871525764, 0.017681367695331573, -0.006809265818446875, 0.003043496748432517, 0.017133481800556183, 0.08578527718782425, 0.005842794664204121, -0.052849095314741135, -0.02486841380596161, -0.11661937087774277, -0.03382861614227295, -0.03964520990848541, 0.005913351196795702, -0.028560800477862358, 0.024850379675626755, -0.08255565911531448, -0.11255129426717758, 0.004051562398672104, -0.011425978504121304, -0.005912334192544222, 0.08856582641601562, 0.053827326744794846, 0.07018989324569702, -0.01503575500100851, 0.03444409742951393, 0.04340171813964844, 0.02454250678420067, -0.08989240974187851, 0.08179395645856857, -0.058938391506671906, -0.012465128675103188, -0.03590304031968117, -0.08798866719007492, -0.017751328647136688, -0.02929503098130226, 0.0213314238935709, 0.03235083073377609, -0.0011303048813715577, 0.03808498755097389, -0.03353529050946236, 0.021533502265810966, 0.027840612456202507, -0.03690212219953537, -0.01491372101008892, 0.05459044501185417, 0.06650529056787491, 0.0010919527849182487, -0.029567675665020943, -0.012312976643443108, -0.013716057874262333, 0.008949382230639458, 0.06426069140434265, -0.0922590047121048, 0.09361149370670319, 0.015446729026734829, 0.003863496473059058, -0.035661228001117706, 0.06777150183916092, -0.029707172885537148, 0.007601334247738123, 0.0331442728638649, 0.062161386013031006, -0.0038824535440653563, 0.025943513959646225, -0.00823404174298048, -0.03497432917356491, -0.07250580936670303, 0.029327845200896263, -0.07559583336114883, -0.008365963585674763, 0.08234089612960815, -0.0955200344324112, -0.0017174253007397056, -0.004835134372115135, -0.0004521174414549023, 0.004434250760823488, 0.13316231966018677, -0.06101007014513016, 0.008550837635993958, -0.05767231062054634, 0.06398173421621323, -0.0334019809961319, 0.025941111147403717, 0.08626660704612732, -0.026485413312911987, 0.032565969973802567, -0.035933271050453186, 0.055504195392131805, 0.03888282924890518, -0.001446294947527349, 0.04466129466891289, 0.011308148503303528, 0.041971445083618164, 0.0018198181642219424, 0.03226816654205322, -0.06308764964342117, -0.12376216053962708, 0.012124664150178432, 0.02335405722260475, -0.002999298507347703, -0.029013916850090027, -0.06313171982765198, -0.06132699176669121, -0.05324111878871918, 0.08576720952987671, -0.0027482209261506796, 0.05619322881102562, 0.018456919118762016, -0.006090131122618914, 0.054622501134872437, -0.0753563642501831, 0.02566247619688511, -0.09049375355243683, 0.07004056870937347, 0.04698284715414047, -0.01741725578904152, -0.006291274446994066, 0.0012375925434753299, 0.0584767609834671, -0.006293748505413532, -0.015331292524933815, -0.0388859286904335, -0.018916737288236618, -0.027254724875092506, -0.04222772642970085, 0.035222455859184265, 0.05764087662100792, -0.03975025564432144, 0.060510408133268356, -0.04192875698208809, 0.01432861853390932, 0.02085120417177677, -0.09889845550060272, -0.04461842030286789, -0.03001912496984005, -0.01336789969354868, -0.019191181287169456, -0.049913983792066574, 0.13939668238162994, 0.05022051930427551, 0.025181272998452187, 0.04566625878214836, 0.026357335969805717, 0.045851320028305054, 0.017305050045251846, 0.082158662378788, -0.05959145352244377, 0.01469862274825573, -0.013288701884448528, -0.006471994332969189, -0.07505803555250168, -0.055179446935653687, -0.031849030405282974, 0.1361992359161377, -0.06599987298250198, -0.04559497907757759, 0.05079708993434906, 0.021420031785964966, -0.004423398990184069, 0.04274257645010948, 0.09169349819421768, 0.06997125595808029, 0.05809180811047554, 0.10222232341766357, -0.01766243949532509, -0.03540225699543953, -0.037058375775814056, 0.03141225129365921, 0.031152350828051567, -0.0052941045723855495, -0.0031986923422664404, -0.024625085294246674, -0.03389152139425278, -0.009536059573292732, -0.03948831558227539, -0.07482725381851196, -0.012249546125531197, 0.00208278838545084, -0.017456738278269768, -0.005021226592361927, -0.10364659875631332, -0.008710874244570732, 0.03004147857427597, 0.03309755399823189, -0.04076473414897919, -0.050190310925245285, 0.1421191543340683, 0.059967897832393646, 0.02410176582634449, -0.05208626762032509, 0.04600568488240242, -0.02827462926506996], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;itemsizing&quot;: &quot;constant&quot;, &quot;tracegroupgap&quot;: 0}, &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;white&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;white&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;#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;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;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;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;Here, the graph demonstrates each words’ spot in the vocabulary space.&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;plotly.io&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;write_html&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;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;emb_tx.html&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name></name></author><summary type="html">In this blog, we’ll build a machine learning model with Tensorflow that helps us to classify fake news.</summary></entry><entry><title type="html">Blog Post 2 - Spectral Clustering</title><link href="https://susanzhang233.github.io/blogpost2/" rel="alternate" type="text/html" title="Blog Post 2 - Spectral Clustering" /><published>2021-04-30T00:00:00+00:00</published><updated>2021-04-30T00:00:00+00:00</updated><id>https://susanzhang233.github.io/blogpost2</id><content type="html" xml:base="https://susanzhang233.github.io/blogpost2/">&lt;p&gt;In this blog post, I’ll write a tutorial on a simple version of the &lt;em&gt;spectral clustering&lt;/em&gt; algorithm for clustering data points.&lt;/p&gt;

&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Spectral clustering is an important tool for identifying meaningful parts of data sets with complex structure. According to wikipedia, “spectral clustering techniques make use of the spectrum (eigenvalues) of the similarity matrix of the data to perform dimensionality reduction before clustering in fewer dimensions”.&lt;/p&gt;

&lt;p&gt;In this blog, we’ll build similarity matrix, generate labels(spectrum) for points, incorporate eigenvalues for creating labels, and ultimately plot out data points into clusters that resemble the pattern on Gary’s shell.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_0.png&quot; alt=&quot;spectral-clustering_0.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;To start, we’ll look at some examples where kmeans are enough for clustering and we &lt;em&gt;don’t&lt;/em&gt; need spectral clustering.&lt;/p&gt;

&lt;h3 id=&quot;notation&quot;&gt;Notation&lt;/h3&gt;

&lt;p&gt;In all the math below:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Boldface capital letters like \(\mathbf{A}\) refer to matrices (2d arrays of numbers).&lt;/li&gt;
  &lt;li&gt;Boldface lowercase letters like \(\mathbf{v}\) refer to vectors (1d arrays of numbers).&lt;/li&gt;
  &lt;li&gt;\(\mathbf{A}\mathbf{B}\) refers to a matrix-matrix product (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A@B&lt;/code&gt;). \(\mathbf{A}\mathbf{v}\) refers to a matrix-vector product (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A@v&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&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;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sklearn&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;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;/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;n&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;200&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;random&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1111&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;o&quot;&gt;=&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;make_blobs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&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;random_state&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;centers&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;cluster_std&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;2.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;scatter&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;mi&quot;&gt;0&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;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/spectral-clustering_files/spectral-clustering_3_1.png&quot; alt=&quot;spectral-clustering_3_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make_blobs&lt;/code&gt; function from sklearn would generate to random natural blobs. The output matrix &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;X&lt;/code&gt; contains coordinates of the data points, while &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; contains the labels of each point.  &lt;a href=&quot;https://en.wikipedia.org/wiki/K-means_clustering&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;K-means&lt;/code&gt;&lt;/a&gt; is a very common way to achieve clustering task, which has good performance on circular-ish blobs like these:&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.cluster&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;KMeans&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;km&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;KMeans&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_clusters&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;km&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;km&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predict&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;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_5_1.png&quot; alt=&quot;spectral-clustering_5_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;It seems like the kmeans function performs well on blob like datasets. However, what if the datasets have clusters that are apparent by human eye, but could not be clustered out by kmeans?&lt;/p&gt;

&lt;h3 id=&quot;harder-clustering&quot;&gt;Harder Clustering&lt;/h3&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;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;random&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1234&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;200&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;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_moons&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&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;noise&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.05&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;bp&quot;&gt;None&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;scatter&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;mi&quot;&gt;0&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;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/spectral-clustering_files/spectral-clustering_8_1.png&quot; alt=&quot;spectral-clustering_8_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make_moons&lt;/code&gt; function would make out two crescent shape datasets. K-means won’t work so well here, because k-means is designated to optimize clusters with the nearest mean, therefore it would look for circular clusters.&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;km&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;KMeans&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_clusters&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;km&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;km&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predict&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;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_10_1.png&quot; alt=&quot;spectral-clustering_10_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;It seems that kmeans won’t work well with crescents.&lt;/p&gt;

&lt;p&gt;As we’ll see, spectral clustering are nice in clustering data points that could not be separated by locating centers and spreads.&lt;/p&gt;

&lt;h2 id=&quot;part-a-similarity-matrix&quot;&gt;Part A: Similarity matrix&lt;/h2&gt;

&lt;p&gt;The first step of spectral clustering would involve constructing the &lt;em&gt;similarity matrix&lt;/em&gt; \(\mathbf{A}\). Similarity matrix should be of shape &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(n, n)&lt;/code&gt;, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n&lt;/code&gt; being the number of total data points. Specifically, the similarity matrix contains information about whether the distance between each pair of the data points is under the specified  &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;epsilon&lt;/code&gt; threshold.&lt;/p&gt;

&lt;p&gt;Entry &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A[i,j]&lt;/code&gt; should be equal to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; if the distance between the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;i&lt;/code&gt;th and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;j&lt;/code&gt;th data points is within distance &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;epsilon&lt;/code&gt;, and would be equal to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0&lt;/code&gt; if otherwise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The diagonal entries &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A[i,i]&lt;/code&gt; of the matrix is intentionally made to be all be equal to zero.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To calculate the distance between each pair of data points(with their coordinates), we’ll be using the &lt;a href=&quot;https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise_distances.html&quot;&gt;pairwise_distances&lt;/a&gt; function from scikit learn. This function does the exact job as mentioned above: given a matrix with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n&lt;/code&gt; data points with coordinates, the function outputs an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n*n&lt;/code&gt; matrix containing the distance calculated from the coordinates for each pair of data points.&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.metrics.pairwise&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pairwise_distances&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;A&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pairwise_distances&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;p&gt;Then, with the generated pairwise distance matrix, we’ll check if each of the values is within the specified &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;epsilon&lt;/code&gt; threshold. If the pairwise distance matrix’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[i,j]&lt;/code&gt; entry is within the threshold, then this indicates that the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;i&lt;/code&gt;th data point and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;j&lt;/code&gt;th data point is close enough to be considered into one cluster, this closeness would thus be represented by a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; in the similarity matrix \(\mathbf{A}\). Vice versa for points that are not so close, and the far-awayness would be represented by a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0&lt;/code&gt; in the similarity matrix \(\mathbf{A}\).&lt;/p&gt;

&lt;p&gt;For this part, we’ll use an epsilon of 0.4.&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;epsilon&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;/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;A&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;where&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;o&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;epsilon&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;1.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#set close pairs of i,js as 1s in the similarity matrix, 0 otherwise
&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;fill_diagonal&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;mi&quot;&gt;0&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;#draft version:
#epsilon = 0.4
#A[A&amp;lt;=epsilon] = 1 
#A[A !=1 ] = 0 #vice versa
#the diagonal line of A should all be zeros
&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;A&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;array([[0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 1., 0.],
       ...,
       [0., 0., 0., ..., 0., 1., 1.],
       [0., 0., 1., ..., 1., 0., 1.],
       [0., 0., 0., ..., 1., 1., 0.]])
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, our similarity matrix is expected to indicate whether the each pair of points in the dataset is close to each other.&lt;/p&gt;

&lt;h2 id=&quot;part-b-binary-norm-cut-objective&quot;&gt;Part B: Binary Norm Cut Objective&lt;/h2&gt;

&lt;p&gt;Now, we have the similarity matrix ready, but we still need some extra tasks to cluster the points into groups.&lt;/p&gt;

&lt;p&gt;Let \(C_0\) and \(C_1\) be two clusters of the data points. We’ll define the &lt;em&gt;binary norm cut objective&lt;/em&gt; of a matrix \(\mathbf{A}\) for the two clusters, which is the function:&lt;/p&gt;

\[N_{\mathbf{A}}(C_0, C_1)\equiv \mathbf{cut}(C_0, C_1)\left(\frac{1}{\mathbf{vol}(C_0)} + \frac{1}{\mathbf{vol}(C_1)}\right)\;.\]

&lt;p&gt;The normalized cut criterion measures both the total dissimilarity between the different groups as well as the total similarity within the groups. The similarity is measured as the distance between data points. Thus combining the inter-group dissimilarity and the intra-group similarity as a &lt;em&gt;binary norm cut&lt;/em&gt; term gives a new objective way for clustering.&lt;/p&gt;

&lt;p&gt;From the similarity matrix obtained above, let \(d_i = \sum_{j = 1}^n a_{ij}\) be the \(i\)th row-sum of \(\mathbf{A}\), which is also called the &lt;em&gt;degree&lt;/em&gt; of \(i\). The degree of \(i\) is thus how many data points, from our similarity matrix, is believed to be in the same cluster as the \(i\)th data point. \(C_0\) and \(C_1\) is still the two only possible clusters of the data points. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; contains information of the cluster label for the data points: if &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y[i] = 1&lt;/code&gt;, then point &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;i&lt;/code&gt; (and therefore row \(i\) of \(\mathbf{A}\)) is an element of cluster \(C_1\), vice versa.&lt;/p&gt;

&lt;p&gt;In the binary norm cut objective function,&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;\(\mathbf{cut}(C_0, C_1) \equiv \sum_{i \in C_0, j \in C_1} a_{ij}\) is the &lt;em&gt;cut&lt;/em&gt; of the clusters \(C_0\) and \(C_1\):  the &lt;em&gt;cut&lt;/em&gt; term is the number of entries in \(\mathbf{A}\) that relate points in cluster \(C_0\) to points in cluster \(C_1\). The smaller the value, the more dissimilar the two groups.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;\(\mathbf{vol}(C_0) \equiv \sum_{i \in C_0}d_i\), where \(d_i = \sum_{j = 1}^n a_{ij}\) is the &lt;em&gt;degree&lt;/em&gt; of row \(i\) (the total number of all other rows related to row \(i\) through \(A\)). The &lt;em&gt;volume&lt;/em&gt; of clusters measure the size of them.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A pair of clusters \(C_0\) and \(C_1\) is considered to be a “good” partition of the data when \(N_{\mathbf{A}}(C_0, C_1)\) is small, as it indicates that there is decent dissimilarity between the two groups, and neither group has significantly small size.&lt;/p&gt;

&lt;p&gt;Now, let’s look at how to calculate each of the two factors in this objective function separately.&lt;/p&gt;

&lt;h4 id=&quot;b1-the-cut-term&quot;&gt;B.1 The Cut Term&lt;/h4&gt;

&lt;p&gt;First, as mentioned above, the cut term \(\mathbf{cut}(C_0, C_1)\) is the number of nonzero entries in \(\mathbf{A}\) that relate points in cluster \(C_0\) to points in cluster \(C_1\). In general, the smaller the value, the more dissimilar the two groups.&lt;/p&gt;

&lt;p&gt;Here, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cut(A,y)&lt;/code&gt; function would compute the cut term. It would sum up the entries &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A[i,j]&lt;/code&gt; for each pair of points &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(i,j)&lt;/code&gt; that are indicated to be in different clusters from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; label container. We could simply sum up the entries to obtain the cut term because the similarity matrix &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A&lt;/code&gt; only contains 0 or 1, with 1 indicating the corresponding &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;i&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;j&lt;/code&gt; data points are close enough to be considered &lt;em&gt;related&lt;/em&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;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;cut&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;cut&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;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;y&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;j&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;y&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;y&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;n&quot;&gt;y&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;c1&quot;&gt;# if y array indicate that i &amp;amp; j shouldn't be in one cluster
&lt;/span&gt;                &lt;span class=&quot;n&quot;&gt;cut&lt;/span&gt; &lt;span class=&quot;o&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;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;p&quot;&gt;]&lt;/span&gt; 
                &lt;span class=&quot;c1&quot;&gt;#print('yeah')
&lt;/span&gt;    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cut&lt;/span&gt;
            
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, we’ll compare the cut objective we’ve calculated for the true clusters &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; with some random labels we’ll generate of the same length &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n&lt;/code&gt;. It is expected that the cut objective for the true labels is &lt;em&gt;much&lt;/em&gt; smaller than the cut objective for the random labels, since the true clusters is expected to be internally more closely related than the random ones.&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;randv&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;random&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;randint&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;2&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;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;cut&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cut&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;randv&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;(26.0, 2232.0)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A cut objective of 26 for the true cluster is indeed small enough to be considered legit.&lt;/p&gt;

&lt;h4 id=&quot;b2-the-volume-term&quot;&gt;B.2 The Volume Term&lt;/h4&gt;

&lt;p&gt;Now take a look at the second factor in the norm cut objective. This is the &lt;em&gt;volume term&lt;/em&gt;. As mentioned above, the &lt;em&gt;volume&lt;/em&gt; of clusters measure how “big” they are. If we choose cluster \(C_0\) to be small, then \(\mathbf{vol}(C_0)\) will be small and \(\frac{1}{\mathbf{vol}(C_0)}\) will be large, leading to an undesirable higher objective value.&lt;/p&gt;

&lt;p&gt;Mathematically, \(\mathbf{vol}(C_0) \equiv \sum_{i \in C_0}d_i\), where \(d_i = \sum_{j = 1}^n a_{ij}\) is the &lt;em&gt;degree&lt;/em&gt; of row \(i\) (the total number of all other rows related to row \(i\) through \(A\)). Then the volume for the two clusters are thus the sum of the &lt;em&gt;degree&lt;/em&gt;s for each row in that cluster.&lt;/p&gt;

&lt;p&gt;For the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vols(A,y)&lt;/code&gt; function, it computes the volumes of \(C_0\) and \(C_1\), returning them as a tuple. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A&lt;/code&gt; is the similiarity matrix to be calculated, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; is the label for each row(or column). For example, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;v0, v1 = vols(A,y)&lt;/code&gt; should result in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;v0&lt;/code&gt; holding the volume of cluster &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;v1&lt;/code&gt; holding the volume of cluster &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&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;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;vols&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;v1&lt;/span&gt; &lt;span class=&quot;o&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;y&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;sum&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#degree sum for rows corresponding points in C1
&lt;/span&gt;    
    &lt;span class=&quot;n&quot;&gt;v0&lt;/span&gt; &lt;span class=&quot;o&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;y&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;nb&quot;&gt;sum&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#that of C0
&lt;/span&gt;    
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, we’ll ultimately develop the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;normcut(A,y)&lt;/code&gt; function. This function is expected to integrate &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cut(A,y)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vols(A,y)&lt;/code&gt; to compute the binary normalized cut objective of a matrix &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A&lt;/code&gt; with clustering vector &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&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;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;normcut&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;v0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;vols&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;y&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;cut&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;y&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;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v0&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;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v1&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;As mentioned above, for two ‘good’ clusters, the binary normcut objective is expected to be small enough so that:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;it minimizes number of entries in the similarity matrix &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A&lt;/code&gt; that indicates relatedness for points in different clusters: small cut term&lt;/li&gt;
  &lt;li&gt;neither clusters should be too small: small volume term&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, we’ll use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;normcut&lt;/code&gt; function to check that the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;normcut&lt;/code&gt; objective of the true labels &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; is indeed small, at least smaller than that from generated random fake 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;n&quot;&gt;normcut&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;normcut&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;randv&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.02303682466323045, 1.991672673470162)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The normcut for the true labels are indeed smaller than that from the fake labels! This demonstrates that the true clusters are ideal clusters that meets the bi-normcut criterions above.&lt;/p&gt;

&lt;h2 id=&quot;part-c-z-vector-as-representation-for-vol-terms&quot;&gt;Part C: \(z\) vector as representation for vol terms&lt;/h2&gt;

&lt;p&gt;The above part demonstrated the binary normcut criterion for clustering tasks. In other words, the process of clustering is actually a process of looking for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt; labels that minimizes the normcut objective value. However, this minimization process might require too much computational work with calculating the actual &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vol&lt;/code&gt; term. In fact, there is a way to make the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vol&lt;/code&gt; term calculation more efficient.&lt;/p&gt;

&lt;p&gt;Here’s a mathematic trick:&lt;/p&gt;

&lt;p&gt;we’ll define a new vector \(\mathbf{z} \in \mathbb{R}^n\) such that:&lt;/p&gt;

\[z_i = 
\begin{cases}
    \frac{1}{\mathbf{vol}(C_0)} &amp;amp;\quad \text{if } y_i = 0 \\ 
    -\frac{1}{\mathbf{vol}(C_1)} &amp;amp;\quad \text{if } y_i = 1 \\ 
\end{cases}\]

&lt;p&gt;In the above function, \(y_i\) is the cluster identity of point i, therefore, if \(i\) is in cluster \(C_0\), \(z_i &amp;gt; 0\) and vice versa. Instead of having multiple values that are hard to comprehend, this \(z\) vector contains all the informations needed in signs: positive z and negative z corresponding to the two clusters.&lt;/p&gt;

&lt;p&gt;Now, we create a transform function that takes in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;y&lt;/code&gt;, returning a corresponding \(z\) vector that contains the volume term informations, with clusters indicated by signs, as mentioned above.&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;transform&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;v0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;vols&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;y&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;n&quot;&gt;np&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;y&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;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v1&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;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v0&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;z&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;#D = np.ndarray((n,n) )
#np.fill_diagonal(D, np.sum(A,axis=1) )
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;D&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;diag&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;nb&quot;&gt;sum&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;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;z&lt;/span&gt; &lt;span class=&quot;o&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;A&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Take a look at the \(z\) vector we’ve obtained. Yup, it indeed is a vector with only two unique values of different signs.&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;z&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;array([-0.00045106, -0.00045106,  0.00043497,  0.00043497,  0.00043497,
        0.00043497,  0.00043497,  0.00043497, -0.00045106, -0.00045106,
       -0.00045106,  0.00043497, -0.00045106, -0.00045106, -0.00045106,
       -0.00045106, -0.00045106,  0.00043497,  0.00043497,  0.00043497,
       -0.00045106, -0.00045106, -0.00045106,  0.00043497,  0.00043497,
       -0.00045106,  0.00043497, -0.00045106, -0.00045106,  0.00043497,
        0.00043497, -0.00045106, -0.00045106, -0.00045106, -0.00045106,
       -0.00045106,  0.00043497, -0.00045106, -0.00045106,  0.00043497,
       -0.00045106,  0.00043497,  0.00043497,  0.00043497,  0.00043497,
        0.00043497,  0.00043497, -0.00045106, -0.00045106, -0.00045106,
        0.00043497,  0.00043497, -0.00045106, -0.00045106,  0.00043497,
        0.00043497, -0.00045106, -0.00045106, -0.00045106,  0.00043497,
        0.00043497,  0.00043497, -0.00045106,  0.00043497, -0.00045106,
        0.00043497,  0.00043497,  0.00043497,  0.00043497, -0.00045106,
       -0.00045106, -0.00045106, -0.00045106,  0.00043497,  0.00043497,
        0.00043497, -0.00045106,  0.00043497, -0.00045106,  0.00043497,
        0.00043497,  0.00043497,  0.00043497, -0.00045106, -0.00045106,
       -0.00045106, -0.00045106,  0.00043497,  0.00043497,  0.00043497,
        0.00043497, -0.00045106,  0.00043497,  0.00043497, -0.00045106,
       -0.00045106, -0.00045106, -0.00045106,  0.00043497,  0.00043497,
       -0.00045106, -0.00045106, -0.00045106,  0.00043497, -0.00045106,
       -0.00045106,  0.00043497,  0.00043497, -0.00045106, -0.00045106,
        0.00043497,  0.00043497,  0.00043497, -0.00045106,  0.00043497,
        0.00043497,  0.00043497,  0.00043497, -0.00045106, -0.00045106,
       -0.00045106,  0.00043497, -0.00045106, -0.00045106, -0.00045106,
        0.00043497, -0.00045106,  0.00043497, -0.00045106, -0.00045106,
        0.00043497,  0.00043497,  0.00043497,  0.00043497, -0.00045106,
       -0.00045106, -0.00045106, -0.00045106, -0.00045106, -0.00045106,
       -0.00045106, -0.00045106,  0.00043497,  0.00043497, -0.00045106,
        0.00043497,  0.00043497,  0.00043497,  0.00043497,  0.00043497,
        0.00043497,  0.00043497,  0.00043497, -0.00045106, -0.00045106,
        0.00043497, -0.00045106,  0.00043497,  0.00043497,  0.00043497,
       -0.00045106, -0.00045106,  0.00043497,  0.00043497, -0.00045106,
       -0.00045106, -0.00045106,  0.00043497,  0.00043497,  0.00043497,
       -0.00045106,  0.00043497, -0.00045106, -0.00045106, -0.00045106,
        0.00043497,  0.00043497,  0.00043497,  0.00043497, -0.00045106,
       -0.00045106,  0.00043497,  0.00043497, -0.00045106, -0.00045106,
       -0.00045106,  0.00043497, -0.00045106, -0.00045106, -0.00045106,
        0.00043497, -0.00045106,  0.00043497, -0.00045106, -0.00045106,
       -0.00045106, -0.00045106,  0.00043497,  0.00043497,  0.00043497])
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We’ll now check our \(z\) vector with this formula obtained by linear algebra:&lt;/p&gt;

\[\mathbf{N}_{\mathbf{A}}(C_0, C_1) = 2\frac{\mathbf{z}^T (\mathbf{D} - \mathbf{A})\mathbf{z}}{\mathbf{z}^T\mathbf{D}\mathbf{z}}\;,\]

&lt;p&gt;where \(\mathbf{D}\) is the diagonal matrix with nonzero entries \(d_{ii} = d_i\), and  where \(d_i = \sum_{j = 1}^n a_i\) is the degree (row-sum) from before.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: A diagonal matrix is a matrix with sequential values filled in a diagonal line form.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Another note&lt;/em&gt;: We can compute \(\mathbf{z}^T\mathbf{D}\mathbf{z}\) as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;z@D@z&lt;/code&gt; since matrix multiplication by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@&lt;/code&gt; will warmly handle the transpose part for us.&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;mi&quot;&gt;2&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;z&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;T&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;D&lt;/span&gt;&lt;span class=&quot;o&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;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z&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;z&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# the right hand side of the above formula
&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.02303682466323018
&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;normcut&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;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#left hand side
&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.02303682466323045
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Computer arithmetic is not exact, therefore we’ll use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;np.isclose(a,b)&lt;/code&gt; to check if the left-hand side of the formula as calculated above is “close” to the right-hand side. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;np.isclose&lt;/code&gt; will return true if a &amp;amp; b differ by less than the smallest amount that the computer is (by default) able to quantify.&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;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;isclose&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;o&quot;&gt;*&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;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&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;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z&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;z&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z&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;normcut&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;y&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-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;True
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Yay, this proves(at least endorsed by our computer) that our \(z\) vector generated followed the correct logic.&lt;/p&gt;

&lt;p&gt;Furthermore, we’ll check the identity \(\mathbf{z}^T\mathbf{D}\mathbb{1} = 0\), where \(\mathbb{1}\) is the vector of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n&lt;/code&gt; ones (i.e. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;np.ones(n)&lt;/code&gt;). From linear algebra, this identity effectively says that \(\mathbf{z}\) should contain roughly as many positive as negative entries.&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;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;isclose&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;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;D&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;ones&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&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;0&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;True
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;=)&lt;/p&gt;

&lt;h2 id=&quot;part-d-minimizing-for-labels&quot;&gt;Part D: Minimizing for labels&lt;/h2&gt;

&lt;p&gt;From previous parts, we demonstrates that minimizing the normcut objective is mathematically representable by minimizing the function&lt;/p&gt;

\[R_\mathbf{A}(\mathbf{z})\equiv \frac{\mathbf{z}^T (\mathbf{D} - \mathbf{A})\mathbf{z}}{\mathbf{z}^T\mathbf{D}\mathbf{z}}\]

&lt;p&gt;subject to the condition \(\mathbf{z}^T\mathbf{D}\mathbb{1} = 0\).&lt;/p&gt;

&lt;p&gt;We could actually utilize this condition into an optimization process that looks for minimized normcut objective value. This could be achieved by substituting for \(\mathbf{z}\) the orthogonal complement of \(\mathbf{z}\) relative to \(\mathbf{D}\mathbf{1}\). In the code below, Professor Chodrow kindly defined &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;orth&lt;/code&gt; &amp;amp; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;orth_obj&lt;/code&gt; functions that complete this substitution.&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;orth&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;u&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&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;u&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&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;v&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&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;v&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;e&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;ones&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 

&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;D&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;e&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;orth_obj&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;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;z_o&lt;/span&gt; &lt;span class=&quot;o&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;n&quot;&gt;orth&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;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;d&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;z_o&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;D&lt;/span&gt; &lt;span class=&quot;o&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;o&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z_o&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;z_o&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;D&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;@&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z_o&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 complete the optimization process, we’ll use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;minimize&lt;/code&gt; function from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;scipy.optimize&lt;/code&gt; to minimize the function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;orth_obj&lt;/code&gt; with respect to \(\mathbf{z}\).&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;scipy&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;z_&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;scipy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;minimize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;orth_obj&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;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;(informatively supplied by Professor Chodrow): even though we originally specified that the entries of \(\mathbf{z}\) should take only one of two values (back in Part C), now we’re allowing the entries to have &lt;em&gt;any&lt;/em&gt; value! This means that we are no longer exactly optimizing the normcut objective, but making an approximation for the normcut objectives. This approximation is so common that deserves a name: it is called the &lt;em&gt;continuous relaxation&lt;/em&gt; of the normcut problem.&lt;/p&gt;

&lt;h2 id=&quot;part-e-label-try-outs&quot;&gt;Part E: Label try-outs&lt;/h2&gt;

&lt;p&gt;Now we finally come to the rewarding stage(&lt;em&gt;maybe&lt;/em&gt;?). We’ll plot the original data, using one color for points in each clusters, with cluster labels indicated by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;z&lt;/code&gt; after the minimization process.&lt;/p&gt;

&lt;p&gt;Recall that, by design, only the sign of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;z_min[i]&lt;/code&gt; actually contains information about the cluster label of data point &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;i&lt;/code&gt;, therefore we’ve plot the two clusters such that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;z_min[i] &amp;lt; 0&lt;/code&gt; points would be one color and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;z_min[i] &amp;gt;= 0&lt;/code&gt; points would be of another color.&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;z_min&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z_&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;/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;z_min&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;array([-1.83361539e-03, -2.41707713e-03, -1.20223581e-03, -1.41756048e-03,
       -9.85622975e-04, -1.23088037e-03, -5.85675934e-04, -8.67496960e-04,
       -2.13361420e-03, -1.82273293e-03, -2.18408485e-03, -1.18180088e-03,
       -1.12571802e-03, -2.27571021e-03, -2.49842678e-03, -2.32675841e-03,
       -2.03866514e-03, -1.27313405e-03, -1.24223543e-03, -1.14285562e-03,
       -2.24035201e-03, -1.12829756e-03, -2.25938841e-03, -1.41894540e-03,
       -8.52851723e-04, -1.94377166e-03, -1.07878975e-03, -2.00283825e-03,
       -2.16755796e-03, -1.20010944e-03, -1.00745048e-03, -2.04780986e-03,
       -2.38493148e-03, -2.15586171e-03, -2.15344467e-03, -2.30815289e-03,
       -8.52851722e-04, -2.46826459e-03, -2.33962319e-03, -1.16168659e-03,
       -2.22250862e-03, -1.27170854e-03, -1.12819775e-03, -3.46845024e-04,
       -9.25870218e-04, -1.41518825e-03, -1.27239325e-03, -2.31477585e-03,
       -2.35163056e-03, -1.11528434e-03, -1.13552224e-03, -1.14959713e-03,
       -2.25938841e-03, -2.21233002e-03, -7.09452178e-04, -1.15742561e-03,
       -2.38251231e-03, -1.43648944e-03, -2.25740441e-03, -1.34601796e-03,
       -4.20119656e-04, -1.11089880e-03, -2.05790493e-03, -1.25854568e-03,
       -2.04522774e-03, -1.08285522e-03, -4.20118168e-04, -8.54346306e-04,
       -1.42139819e-03, -2.33031155e-03, -2.03788189e-03, -2.38895514e-03,
       -2.18988631e-03, -1.34297240e-03, -1.14331384e-03, -1.65978620e-03,
       -1.93559196e-03, -1.27236116e-03, -2.39843567e-03, -1.09191667e-03,
       -1.44541220e-03, -1.05104574e-03, -1.22163705e-03, -2.26389022e-03,
       -2.25746809e-03, -2.33473810e-03, -2.15586172e-03, -1.35429746e-03,
       -1.13226591e-03, -1.27209320e-03, -7.25757633e-04, -2.05790493e-03,
       -1.17091313e-03, -1.13552224e-03, -1.43648929e-03, -1.82273293e-03,
       -2.46826459e-03, -2.40311127e-03, -9.53937518e-04, -1.14959713e-03,
       -2.47020993e-03, -2.35163056e-03, -2.31356026e-03, -6.55833303e-04,
       -2.22990351e-03, -2.33805840e-03, -9.04959941e-04, -1.34572400e-03,
       -2.35517742e-03, -2.26937167e-03, -9.81118485e-04, -1.23223078e-03,
       -1.20421123e-03, -2.33198293e-03, -1.12899408e-03, -7.78419079e-04,
        8.23514120e-05, -5.85676197e-04, -1.43648913e-03, -2.39009494e-03,
       -2.60603228e-03, -1.20840790e-03, -2.22126162e-03, -2.30544890e-03,
       -2.11886140e-03, -1.15349564e-03, -2.37700578e-03, -1.35923756e-03,
       -2.04780986e-03, -1.43648903e-03, -1.00401711e-03, -5.85676206e-04,
       -1.34601796e-03, -1.07243287e-03, -2.38604090e-03, -2.47180654e-03,
       -2.32141254e-03, -2.07607414e-03, -2.22255786e-03, -1.55195808e-03,
       -1.84562840e-03, -2.37809012e-03, -1.21763051e-03, -1.27594801e-03,
       -1.62201813e-03, -1.21530839e-03, -1.03799988e-03, -1.23444647e-03,
       -1.12847078e-03, -1.20801053e-03, -1.12819775e-03, -1.00401711e-03,
       -1.14331384e-03, -1.94377166e-03, -2.50547228e-03, -4.20119634e-04,
       -1.97569024e-03, -1.14959713e-03, -1.21530839e-03, -1.22163704e-03,
       -2.42206590e-03, -2.24462222e-03, -1.08617371e-03, -1.35429746e-03,
       -1.51459820e-03, -1.94377166e-03, -2.33805840e-03, -1.27594801e-03,
       -5.85676488e-04, -4.45263122e-04, -2.53380182e-03, -1.16190211e-03,
       -2.26937167e-03, -2.32107330e-03, -2.33473810e-03, -1.20102129e-03,
       -1.20031166e-03, -1.23444647e-03, -1.41548264e-03, -2.30544890e-03,
       -2.03866514e-03, -1.15082515e-03, -1.11089881e-03, -1.99745921e-03,
       -2.13361420e-03, -2.05046978e-03, -9.86876319e-04, -2.15344467e-03,
       -2.38251231e-03, -2.35163056e-03, -1.20102129e-03, -2.42206590e-03,
       -9.86876318e-04, -2.52233659e-03, -2.27501974e-03, -2.32675841e-03,
       -2.09437495e-03, -1.33506934e-03, -1.49826442e-03, -1.33644062e-03])
&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z_min&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_60_1.png&quot; alt=&quot;spectral-clustering_60_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Whoops, it seems like something is wrong with either the minimization process or even older processes. That one lonely purple point still gives us some hope, so we’ll try altering the threshold of z_min for clustering.&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z_min&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&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;0015&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/spectral-clustering_files/spectral-clustering_62_1.png&quot; alt=&quot;spectral-clustering_62_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now, the clustering seems to be working. The below plot also demonstrates that there might indeed are some issue with our optimization process.&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_64_1.png&quot; alt=&quot;spectral-clustering_64_1.png&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;part-f-eigen-and-labels&quot;&gt;Part F: Eigen and Labels&lt;/h2&gt;

&lt;p&gt;Explicitly optimizing the orthogonal objective is &lt;em&gt;way&lt;/em&gt; too slow to be practical. Here’s another high-light for eigenvector and eigenvalues. The significance of &lt;em&gt;spectral clustering&lt;/em&gt;, and indeed the reason that spectral clustering is called &lt;em&gt;spectral&lt;/em&gt; clustering, is that we can actually solve the problem from Part E using eigenvalues and eigenvectors of matrices.&lt;/p&gt;

&lt;p&gt;Eigenvalue-eigenvector decomposition is a way of representing a matrix with more radical characteristics(basically, other matrices).&lt;/p&gt;

&lt;p&gt;Recall that what we would like to do is minimize the function&lt;/p&gt;

\[R_\mathbf{A}(\mathbf{z})\equiv \frac{\mathbf{z}^T (\mathbf{D} - \mathbf{A})\mathbf{z}}{\mathbf{z}^T\mathbf{D}\mathbf{z}}\]

&lt;p&gt;with respect to \(\mathbf{z}\), subject to the condition \(\mathbf{z}^T\mathbf{D}\mathbb{1} = 0\).&lt;/p&gt;

&lt;p&gt;The Rayleigh-Ritz Theorem states that the minimizing \(\mathbf{z}\) is actually to find the solution with smallest eigenvalue of the generalized eigenvalue problem&lt;/p&gt;

\[(\mathbf{D} - \mathbf{A}) \mathbf{z} = \lambda \mathbf{D}\mathbf{z}\;, \quad \mathbf{z}^T\mathbf{D}\mathbb{1} = 0\]

&lt;p&gt;which is equivalent to the standard eigenvalue problem&lt;/p&gt;

\[\mathbf{D}^{-1}(\mathbf{D} - \mathbf{A}) \mathbf{z} = \lambda \mathbf{z}\;, \quad \mathbf{z}^T\mathbb{1} = 0\;.\]

&lt;p&gt;Thus, the optimizing process is now left to finding the eigenvector \(\mathbf{z}\) with the &lt;em&gt;second&lt;/em&gt;-smallest eigenvalue.&lt;/p&gt;

&lt;p&gt;Why is it specifically the &lt;em&gt;second&lt;/em&gt;? Indeed,  \(\mathbb{1}\) is actually the eigenvector with smallest eigenvalue of the matrix \(\mathbf{D}^{-1}(\mathbf{D} - \mathbf{A})\), which is the identity matrix. So, the vector \(\mathbf{z}\) that we want must be the eigenvector with the &lt;em&gt;second&lt;/em&gt;-smallest eigenvalue.&lt;/p&gt;

&lt;p&gt;To find the eigenvector \(z\) with the &lt;em&gt;second&lt;/em&gt;-smallest eigenvalue, we first construct the matrix \(\mathbf{L} = \mathbf{D}^{-1}(\mathbf{D} - \mathbf{A})\), which is often called the &lt;em&gt;Laplacian&lt;/em&gt; matrix of the similarity matrix \(\mathbf{A}\). Then, with the handy &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;eig&lt;/code&gt; function from numpy, we obtain an array of eigenvalues as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Lam&lt;/code&gt;, and their corresponding eigen values as a matrix form, stored in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;U&lt;/code&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;L&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;linalg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;D&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;D&lt;/span&gt;&lt;span class=&quot;o&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;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&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;linalg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;eig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;L&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 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;argsort&lt;/code&gt; function sorts an array and return the index array in order. We use this function to find the second-smallest eigen value, and extracts the corresponding eigen vector from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;U&lt;/code&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;ix&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;argsort&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ix&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[:,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ix&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#reform LAM and U in sorted manner
&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#Lam[1], U[:,1]
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z_eig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&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;#extract the eigenvector z with the *second*-smallest eigenvalue
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, we plot out the clustering result by using eigenvector \(z\) and observe how 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;n&quot;&gt;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z_eig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_71_1.png&quot; alt=&quot;spectral-clustering_71_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Great!&lt;/p&gt;

&lt;h2 id=&quot;part-g-combination-spectral-clustering&quot;&gt;Part G: Combination: Spectral Clustering&lt;/h2&gt;

&lt;p&gt;So far, we’ve demonstrated how bi-normcut objective is calculated, how normcut is used in creating clustering labels, optimizing the labels, and how eigenvalue and vectors could be used for clustering. We’re finally ready to synthesize our work into an overall function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; that clusters data points base off from some eigen calculation.&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;spectral_clustering&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;epsilon&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;'''
    conducts spectral clustering to a set of data points 
    based on the eigenvector of the second-smallest eigenvalue of the Laplacian matrix.
    
    parameter X: a 2d n*2 array with n data points to be clustered, 
                with each entry storing the Euclidean coordinates of that point
    parameter epsilon: the threshold within which two points would be considered into one cluster
    
    return: a numpy array of size n, with entry of 1 indicating one cluster, entry of 0 indicating another,
            the nth entry corresponds to the nth data-points in the supplied X array.
    '''&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;A&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pairwise_distances&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;A&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;where&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;o&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;epsilon&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;1.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#set close pairs of i,js as 1s in the similarity matrix, 0 otherwise
&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;fill_diagonal&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;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 
    
    &lt;span class=&quot;c1&quot;&gt;#compute laplacian matrix
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;L&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;linalg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inv&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;diag&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;nb&quot;&gt;sum&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;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;o&quot;&gt;@&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;diag&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;nb&quot;&gt;sum&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;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;o&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;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&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;linalg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;eig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#get the eigen value &amp;amp; vector of the laplacian matrix
&lt;/span&gt;    
    &lt;span class=&quot;c1&quot;&gt;#extract the eigenvector with second-smallest eigenvalue of the Laplacian matrix
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;ix&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;argsort&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Lam&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ix&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[:,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ix&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;z_eig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;U&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;return&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;where&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z_eig&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&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;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#returns a binary label as indicated by the eigenvector
&lt;/span&gt;                           
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We now try out our 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;n&quot;&gt;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;epsilon&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/spectral-clustering_files/spectral-clustering_76_1.png&quot; alt=&quot;spectral-clustering_76_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Fantastic!&lt;/p&gt;

&lt;h2 id=&quot;part-h-exploratory-of-clustering-ability&quot;&gt;Part H: exploratory of clustering ability&lt;/h2&gt;

&lt;p&gt;Now we’ll run a few more experiments with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; function. We’ll observe how varying the sample size and the noise value would influence the function’s clustering performance.&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;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;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_moons&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;300&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;noise&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.05&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;bp&quot;&gt;None&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;scatter&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;mi&quot;&gt;0&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;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;epsilon&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/spectral-clustering_files/spectral-clustering_79_1.png&quot; alt=&quot;spectral-clustering_79_1.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;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;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_moons&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;600&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;noise&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.05&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;bp&quot;&gt;None&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;scatter&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;mi&quot;&gt;0&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;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;epsilon&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/spectral-clustering_files/spectral-clustering_80_1.png&quot; alt=&quot;spectral-clustering_80_1.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;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;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_moons&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;600&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;noise&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.1&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;bp&quot;&gt;None&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;scatter&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;mi&quot;&gt;0&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;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;epsilon&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/spectral-clustering_files/spectral-clustering_81_1.png&quot; alt=&quot;spectral-clustering_81_1.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;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;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_moons&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;600&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;noise&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.15&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;bp&quot;&gt;None&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;scatter&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;mi&quot;&gt;0&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;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;epsilon&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/spectral-clustering_files/spectral-clustering_82_1.png&quot; alt=&quot;spectral-clustering_82_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;While only the sample size increases, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; maintains its ability. However, when the noise increases, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; shows tiredness in doing its job. This is because increasing sample size won’t affect how precise the two groups are internally, only increasing the noise would influence how the data points are spreaded, and spreadiness would involve more contact with the other cluster.&lt;/p&gt;

&lt;h2 id=&quot;part-i-bulls-eye-demonstration&quot;&gt;Part I: Bull’s eye demonstration&lt;/h2&gt;

&lt;p&gt;Now, we’ll try &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; on another data set – the bull’s eye!&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;n&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;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;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;make_circles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_samples&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&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;noise&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.05&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;bp&quot;&gt;None&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;plt&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;X&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;X&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_85_1.png&quot; alt=&quot;spectral-clustering_85_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There are two concentric circles. As before k-means can’t handle this.&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;km&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;KMeans&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_clusters&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;km&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;km&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predict&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;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_87_1.png&quot; alt=&quot;spectral-clustering_87_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Let’s see if our &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; 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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;mf&quot;&gt;0.4&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/spectral-clustering_files/spectral-clustering_89_1.png&quot; alt=&quot;spectral-clustering_89_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;It works! Let’s sound it on its boundary of threshold.&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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;mf&quot;&gt;0.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;p&gt;&lt;img src=&quot;/images/spectral-clustering_files/spectral-clustering_91_1.png&quot; alt=&quot;spectral-clustering_91_1.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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;mf&quot;&gt;0.6&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/spectral-clustering_files/spectral-clustering_92_1.png&quot; alt=&quot;spectral-clustering_92_1.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;plt&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;X&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;X&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;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;spectral_clustering&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;mf&quot;&gt;0.7&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/spectral-clustering_files/spectral-clustering_93_1.png&quot; alt=&quot;spectral-clustering_93_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;It seem like a threshold of 0.5 as the epsilon should be maintained for the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectral_clustering&lt;/code&gt; function to segregate the bull’s eye. Indeed reasonable, since larger epsilon would confuse the model of the intragroup closiness threshold.&lt;/p&gt;

&lt;p&gt;=）&lt;/p&gt;

&lt;div class=&quot;got-help&quot;&gt;
  &lt;p&gt;Optimized cut function&lt;/p&gt;

  &lt;p&gt;Similarity matrix shortened with np.where()&lt;/p&gt;

  &lt;p&gt;Included more explanatory text&lt;/p&gt;
&lt;/div&gt;

&lt;div class=&quot;gave-help&quot;&gt;
  &lt;ul&gt;
    &lt;li&gt;I gave an advice regarding having more descriptive part titles&lt;/li&gt;
    &lt;li&gt;advice regarding better \(Latex\) readability&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;</content><author><name></name></author><summary type="html">In this blog post, I’ll write a tutorial on a simple version of the spectral clustering algorithm for clustering data points.</summary></entry><entry><title type="html">Assignment - Blog Post 1</title><link href="https://susanzhang233.github.io/blogpost1/" rel="alternate" type="text/html" title="Assignment - Blog Post 1" /><published>2021-04-21T00:00:00+00:00</published><updated>2021-04-21T00:00:00+00:00</updated><id>https://susanzhang233.github.io/blogpost1</id><content type="html" xml:base="https://susanzhang233.github.io/blogpost1/">&lt;p&gt;In this blog, we’ll demonstrate the basic utilization of the &lt;a href=&quot;https://plotly.com/python/plotly-express/&quot;&gt;plotly&lt;/a&gt; pacakge, and some basic database usage with &lt;a href=&quot;https://www.oracle.com/database/what-is-database/&quot;&gt;sql(Structured Query Language)&lt;/a&gt;. Databases increases the efficiency for treating large datasets. We will be using the &lt;a href=&quot;https://www.ncdc.noaa.gov/data-access/land-based-station-data/land-based-datasets/global-historical-climatology-network-monthly-version-4&quot;&gt;National Oceanic and Atmospheric Admistration’s (NOAA) climate data set&lt;/a&gt;, together with temperature stations and country codes, to create some interactive geographically representative plots corresponding to temperatures.&lt;/p&gt;

&lt;p&gt;First, we would like to import some needed packages, make sure you have installed them properly. Despite pandas and numpy that we are aready familiarized with, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sqlite3&lt;/code&gt; is new package that enables us to work with databases using Python commands.&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;sqlite3&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;h1 id=&quot;part-1-introducing-database--data-prehandling&quot;&gt;Part 1 Introducing database &amp;amp; data prehandling&lt;/h1&gt;

&lt;p&gt;Inspecting the temperature dataset &lt;a href=&quot;https://www.ncdc.noaa.gov/data-access/land-based-station-data/land-based-datasets/global-historical-climatology-network-monthly-version-4&quot;&gt;here&lt;/a&gt;, you might discover that it contains more than ten thousands of rows. Therefore, when only a subset of the complete dataset is need, it is possible to first store the complete dataset into a &lt;strong&gt;database&lt;/strong&gt; and query out specific rows or columns in need.&lt;/p&gt;

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

&lt;p&gt;The following line would create a database in the current directory. For future usage of the database, the same line could be used.&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;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;# create a database in current directory called temps.db
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, we would like to read in the dataset files to prepare to populate the &lt;em&gt;temps&lt;/em&gt; database that we’ve just created. The lastline just creates a new column in the stations dataset that extracts the country codes in the original station id. The abbreviation would be used for future merging.&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;#temperatures = pd.read_csv('temps.csv')
&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;s&quot;&gt;'station-metadata.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;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;stations&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'ID_'&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;stations&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'ID'&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;mi&quot;&gt;0&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Take a look at the countries and stations table. The countries table contains corresponding station codes for countries, while stations table has the stations’ ID, name, their latitude and longitde, their elevation, and new abbreviation code column we’ve just created.&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;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;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&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;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;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;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&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;th&gt;ID_&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;td&gt;AC&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;td&gt;AE&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;td&gt;AE&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;td&gt;AE&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;td&gt;AE&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Have a look of the original temperature dataset. Currently, it contains the monthly average temperature values at specific stations for certain years.&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;temperatures&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;'temps.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#temperatures = prepare_df(temperatures)
&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;temperatures&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;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&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;VALUE1&lt;/th&gt;
      &lt;th&gt;VALUE2&lt;/th&gt;
      &lt;th&gt;VALUE3&lt;/th&gt;
      &lt;th&gt;VALUE4&lt;/th&gt;
      &lt;th&gt;VALUE5&lt;/th&gt;
      &lt;th&gt;VALUE6&lt;/th&gt;
      &lt;th&gt;VALUE7&lt;/th&gt;
      &lt;th&gt;VALUE8&lt;/th&gt;
      &lt;th&gt;VALUE9&lt;/th&gt;
      &lt;th&gt;VALUE10&lt;/th&gt;
      &lt;th&gt;VALUE11&lt;/th&gt;
      &lt;th&gt;VALUE12&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;-89.0&lt;/td&gt;
      &lt;td&gt;236.0&lt;/td&gt;
      &lt;td&gt;472.0&lt;/td&gt;
      &lt;td&gt;773.0&lt;/td&gt;
      &lt;td&gt;1128.0&lt;/td&gt;
      &lt;td&gt;1599.0&lt;/td&gt;
      &lt;td&gt;1570.0&lt;/td&gt;
      &lt;td&gt;1481.0&lt;/td&gt;
      &lt;td&gt;1413.0&lt;/td&gt;
      &lt;td&gt;1174.0&lt;/td&gt;
      &lt;td&gt;510.0&lt;/td&gt;
      &lt;td&gt;-39.0&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;1962&lt;/td&gt;
      &lt;td&gt;113.0&lt;/td&gt;
      &lt;td&gt;85.0&lt;/td&gt;
      &lt;td&gt;-154.0&lt;/td&gt;
      &lt;td&gt;635.0&lt;/td&gt;
      &lt;td&gt;908.0&lt;/td&gt;
      &lt;td&gt;1381.0&lt;/td&gt;
      &lt;td&gt;1510.0&lt;/td&gt;
      &lt;td&gt;1393.0&lt;/td&gt;
      &lt;td&gt;1163.0&lt;/td&gt;
      &lt;td&gt;994.0&lt;/td&gt;
      &lt;td&gt;323.0&lt;/td&gt;
      &lt;td&gt;-126.0&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;1963&lt;/td&gt;
      &lt;td&gt;-713.0&lt;/td&gt;
      &lt;td&gt;-553.0&lt;/td&gt;
      &lt;td&gt;-99.0&lt;/td&gt;
      &lt;td&gt;541.0&lt;/td&gt;
      &lt;td&gt;1224.0&lt;/td&gt;
      &lt;td&gt;1627.0&lt;/td&gt;
      &lt;td&gt;1620.0&lt;/td&gt;
      &lt;td&gt;1596.0&lt;/td&gt;
      &lt;td&gt;1332.0&lt;/td&gt;
      &lt;td&gt;940.0&lt;/td&gt;
      &lt;td&gt;566.0&lt;/td&gt;
      &lt;td&gt;-108.0&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;1964&lt;/td&gt;
      &lt;td&gt;62.0&lt;/td&gt;
      &lt;td&gt;-85.0&lt;/td&gt;
      &lt;td&gt;55.0&lt;/td&gt;
      &lt;td&gt;738.0&lt;/td&gt;
      &lt;td&gt;1219.0&lt;/td&gt;
      &lt;td&gt;1442.0&lt;/td&gt;
      &lt;td&gt;1506.0&lt;/td&gt;
      &lt;td&gt;1557.0&lt;/td&gt;
      &lt;td&gt;1221.0&lt;/td&gt;
      &lt;td&gt;788.0&lt;/td&gt;
      &lt;td&gt;546.0&lt;/td&gt;
      &lt;td&gt;112.0&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;1965&lt;/td&gt;
      &lt;td&gt;44.0&lt;/td&gt;
      &lt;td&gt;-105.0&lt;/td&gt;
      &lt;td&gt;38.0&lt;/td&gt;
      &lt;td&gt;590.0&lt;/td&gt;
      &lt;td&gt;987.0&lt;/td&gt;
      &lt;td&gt;1500.0&lt;/td&gt;
      &lt;td&gt;1487.0&lt;/td&gt;
      &lt;td&gt;1477.0&lt;/td&gt;
      &lt;td&gt;1377.0&lt;/td&gt;
      &lt;td&gt;974.0&lt;/td&gt;
      &lt;td&gt;31.0&lt;/td&gt;
      &lt;td&gt;-178.0&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Then, we create a function to prepare the &lt;em&gt;temperature&lt;/em&gt; dataset into a form we want. The function mainly conducts stacking to expand the original dataset by month. The last line in the function adds a new column, “FIPS 10-4”, which will be used later for merging with the country code dataset. The merge is expected to give out what country each temperature measurement station is located in.&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;prepare_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;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;set_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keys&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;ID&quot;&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;c1&quot;&gt;#convert all the columns we don't want to stack into multi-indices
&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;stack&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#separate out values in each row into single entries
&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;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#giving each entry ID, Year, and Name columns
&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;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;level_2&quot;&lt;/span&gt;  &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Month&quot;&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;Temp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#rename to create proper column names
&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;Month&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;s&quot;&gt;&quot;Month&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;mi&quot;&gt;5&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;nb&quot;&gt;int&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;Temp&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;s&quot;&gt;&quot;Temp&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;100&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;FIPS 10-4&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;s&quot;&gt;&quot;ID&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;mi&quot;&gt;0&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;k&quot;&gt;return&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Take a look at the prepared temperatures dataset, it will contain monthly temperature averages at specific stations, as well as their country codes.&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;temperatures&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;prepare_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;temperatures&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;temperatures&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;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&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;th&gt;FIPS 10-4&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;td&gt;AC&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;td&gt;AC&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;td&gt;AC&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;td&gt;AC&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;td&gt;AC&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Now, we are finally ready to populate our database. We’ll be creating three tables: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;temperature&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;countries&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stations&lt;/code&gt;. For countries and stations, we would populate them into the database directly. While for the temperature table, we would first give it to the prepare_df function. Three tables would be saved in the form as demonstrated above.&lt;/p&gt;

&lt;p&gt;The df_iter object makes a dataframe iterable by specified chunksize. if_exists checks if that some chunk is already added to sql, and execute the following block, making sure we won’t overwrite each time.&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;df_iter&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.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;chunksize&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;100000&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;df&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df_iter&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;prepare_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;df&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;append&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;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;/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;/Users/susanzhang/opt/anaconda3/envs/PIC16B/lib/python3.7/site-packages/pandas/core/generic.py:2789: UserWarning: The spaces in these column names will not be changed. In pandas versions &amp;lt; 0.14, spaces were converted to underscores.
  method=method,
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, we’re supposed to have three dataframes in the database, let’s check!&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;cursor&lt;/span&gt; &lt;span class=&quot;o&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;cursor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;cursor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;execute&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;SELECT name FROM sqlite_master WHERE type='table'&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;cursor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fetchall&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;[('temperatures',), ('stations',), ('countries',)]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Don’t forget to close your connections!&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;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;part-2-sql-query&quot;&gt;PART 2 SQL Query&lt;/h1&gt;

&lt;p&gt;In this part, we would create a demonstration of how to query specific data out from sql, and generating a plot from the queried dataset. We will be implementing two functions, one for data query and one for plot generation.&lt;/p&gt;

&lt;p&gt;We will be creating a query_climate_database() function. The function is expected to return 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;s&quot;&gt;'''param country: a string of the country for which data should be returned;
       year_begin, year_end: two integers specifying the time interval of data be returned;
       month: an integer giving the month of data to be returned.
       @return a Pandas dataframe of temperature readings for the specified country, 
       in the specified date range, in the specified month of the year
    '''&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#first create a connection with the database
&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;#basic queries
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#containing SELECT, specifies column(s) to be returned;
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#FROM, from which table(s)
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#LEFT JOIN, merge datasets for specific outcomes
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#WHERE, row specification
&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 S.name, S.latitude, S.longitude, C.name, T.year, T.month, T.temp
    FROM temperatures T
    LEFT JOIN stations S ON T.id = S.id
    LEFT JOIN countries C ON S.id_ = C.`fips 10-4`
    WHERE C.name = ? AND (T.year BETWEEN ? AND ?) AND T.month = ?
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#the '?' syntax in WHERE enables parameterization in a query,
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#and we'll supply the parameters sequentially here
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;param&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;c1&quot;&gt;#the following line reads a query and returns the dataset from the database 
&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_query&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;n&quot;&gt;param&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;#make sure to close the connection after use
&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;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;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;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;p&gt;Now, have a look of the dataset that we’ve queried out! It should contain the temperatures in specific month, year, and station, as well as the latitude and longitude of the station, for a specific country.&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;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;LATITUDE&lt;/th&gt;
      &lt;th&gt;LONGITUDE&lt;/th&gt;
      &lt;th&gt;Name&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;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;India&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;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;India&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;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;India&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;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;India&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;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;India&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;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;India&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;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;India&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;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;India&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;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;India&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;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;India&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;h1 id=&quot;part-3-plot-with-plotly&quot;&gt;PART 3 Plot with Plotly&lt;/h1&gt;

&lt;p&gt;In this part, we wish to create a plot using plotly to answer the following question:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;How does the average yearly change in temperature vary within a given country?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To answer this question, we’ll need to first calculate a yearly increase of stations in a specific country for a specific month.&lt;/p&gt;

&lt;p&gt;One method great for calculating extimate yearly increase is the LinearRegression model in sklearn. So we’ll import that, along with the plotly package.&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;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;p&gt;We’ll define a function that estimates the yearly increase for specific stations.&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;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;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;c1&quot;&gt;# 2 brackets because X should be a df
&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;c1&quot;&gt;# 1 bracket because y should be a series
&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;k&quot;&gt;return&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, we’ll define a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;temperature_coefficient_plot&lt;/code&gt; function that plots a point for each station in a specific country. With plotly, the color of the point will reflect an estimate of the yearly change in temperature during the specified month and time period at that station.&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;'''country:  string of the country for which data should be returned;
        year_begin, year_end: two integers specifying the time interval of data be returned;
        min_obs: minimum required number of years of data for any given station. 
        (only data for stations with at least min_obs years worth of data would be considered);
        **kwargs: additional keyword arguments passed to px.scatter_mapbox(). 
    '''&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#first obtain the dataframe from above 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;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;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;o&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;o&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;o&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;#add a new column to df with number of years of data there are for that station
&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;size&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;'NAME'&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;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;x&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;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#filter out stations without enough yearly data, inclusive
&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;'size'&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;min_obs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#estimate yearly increase for each 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;Month&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;c1&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;#merge the estimates with stations,
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#therefore each estimate would have there corresponding latitude and longitude
&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;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;coefs&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;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;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#rename coef column to &quot;Estimated Yearly Increase(Celsius)&quot; and round the coefs
&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 Yearly Increase(Celsius)&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;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;s&quot;&gt;&quot;Estimated Yearly Increase(Celsius)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'NAME'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'LATITUDE'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'LONGITUDE'&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;'Estimated Yearly Increase(Celsius)'&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;coefs_&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Estimated Yearly Increase(Celsius)'&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;#create plotly plot! add titles and hover overs
&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;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;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;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;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 Yearly Increase(Celsius)&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;Estimates of yearly increase in Temperature in January for stations 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;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;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;year_end&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;#fig.update_layout(margin={&quot;r&quot;:0,&quot;t&quot;:0,&quot;l&quot;:0,&quot;b&quot;:0})
&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;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;c1&quot;&gt;#run the function to generate plotly plot
&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;/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;5ae5abaf-04be-424f-bc28-8e0a1ea69d85&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;5ae5abaf-04be-424f-bc28-8e0a1ea69d85&quot;)) {                    Plotly.newPlot(                        &quot;5ae5abaf-04be-424f-bc28-8e0a1ea69d85&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 Yearly Increase(Celsius)=%{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;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;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, 11.883, 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, -27.159, 21.2, 26.617, 8.483, 8.467, 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, 3.45, 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, 149.0703, 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.0081, -0.0081, -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.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.0232, 0.0394, 0.0162, 0.0162, 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;colorbar&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Estimated Yearly Increase(Celsius)&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;: 20.474089108910892, &quot;lon&quot;: 79.56785148514852}, &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;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 January for stations 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;From the plot, we could see that the estimate yearly change of temperature in India various geographically, it might correspond to specific factors, such as distance to the ocean, etc.&lt;/p&gt;

&lt;p&gt;Save it as a html form!&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;plotly.io&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;write_html&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;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;india_temp_esti.html&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;part-4-continental-temperature-change&quot;&gt;Part 4 Continental temperature Change&lt;/h1&gt;

&lt;p&gt;In this part, I would like to visualize how temperature alteration differs in the northern and southern hemisphere. First, it might be helpful to create a function that selects temperature change measured by stations at the same range of latitude from two hemispheres during a specific year. lat_low specifies the lower bound for northern hemisphere, lat_high specifies the upper bound for the northern hemisphere, therefore -lat_low and -lat_high correspondly specifies that for the southern hemisphere.&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;#conn = sqlite3.connect(&quot;temps.db&quot;)
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;query_compare_latitude&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_low&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_high&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;s&quot;&gt;'''returns a dataframe containing monthly temps at stations
    for the specified latitude from two hemispheres
    '''&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#neg_lat = np.negative(lat)
&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;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 T.id, T.month, T.temp, S.latitude, S.longitude, S.name, T.year
    FROM temperatures T
    LEFT JOIN stations S ON T.id = S.id
    WHERE ((S.latitude &amp;lt; ? AND S.latitude &amp;gt; ?) OR (S.latitude &amp;lt; ? AND S.latitude &amp;gt; ?) )AND T.year = ?
    &quot;&quot;&quot;&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_high&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_low&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;lat_low&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;lat_high&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;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_query&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;n&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#df_south = pd.read_sql_query(cmd_s, conn)
&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;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;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;#select temp measurements for points in year 1954
#latitude in both hemispheres between 20 - 40 degrees
&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_compare_latitude&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;mi&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1954&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;Take a look at our dataframe, it contains monthly temperature measurements at specified latitude range for a specific 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;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;ID&lt;/th&gt;
      &lt;th&gt;Month&lt;/th&gt;
      &lt;th&gt;Temp&lt;/th&gt;
      &lt;th&gt;LATITUDE&lt;/th&gt;
      &lt;th&gt;LONGITUDE&lt;/th&gt;
      &lt;th&gt;NAME&lt;/th&gt;
      &lt;th&gt;Year&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;AG000060680&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;12.84&lt;/td&gt;
      &lt;td&gt;22.800&lt;/td&gt;
      &lt;td&gt;5.4331&lt;/td&gt;
      &lt;td&gt;TAMANRASSET&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;AG000060680&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;14.20&lt;/td&gt;
      &lt;td&gt;22.800&lt;/td&gt;
      &lt;td&gt;5.4331&lt;/td&gt;
      &lt;td&gt;TAMANRASSET&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;AG000060680&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;17.81&lt;/td&gt;
      &lt;td&gt;22.800&lt;/td&gt;
      &lt;td&gt;5.4331&lt;/td&gt;
      &lt;td&gt;TAMANRASSET&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;AG000060680&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;20.73&lt;/td&gt;
      &lt;td&gt;22.800&lt;/td&gt;
      &lt;td&gt;5.4331&lt;/td&gt;
      &lt;td&gt;TAMANRASSET&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;AG000060680&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;25.96&lt;/td&gt;
      &lt;td&gt;22.800&lt;/td&gt;
      &lt;td&gt;5.4331&lt;/td&gt;
      &lt;td&gt;TAMANRASSET&lt;/td&gt;
      &lt;td&gt;1954&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;3664&lt;/th&gt;
      &lt;td&gt;ZI000067991&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;18.41&lt;/td&gt;
      &lt;td&gt;-22.217&lt;/td&gt;
      &lt;td&gt;30.0000&lt;/td&gt;
      &lt;td&gt;BEITBRIDGE&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3665&lt;/th&gt;
      &lt;td&gt;ZI000067991&lt;/td&gt;
      &lt;td&gt;9&lt;/td&gt;
      &lt;td&gt;22.79&lt;/td&gt;
      &lt;td&gt;-22.217&lt;/td&gt;
      &lt;td&gt;30.0000&lt;/td&gt;
      &lt;td&gt;BEITBRIDGE&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3666&lt;/th&gt;
      &lt;td&gt;ZI000067991&lt;/td&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;26.78&lt;/td&gt;
      &lt;td&gt;-22.217&lt;/td&gt;
      &lt;td&gt;30.0000&lt;/td&gt;
      &lt;td&gt;BEITBRIDGE&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3667&lt;/th&gt;
      &lt;td&gt;ZI000067991&lt;/td&gt;
      &lt;td&gt;11&lt;/td&gt;
      &lt;td&gt;25.85&lt;/td&gt;
      &lt;td&gt;-22.217&lt;/td&gt;
      &lt;td&gt;30.0000&lt;/td&gt;
      &lt;td&gt;BEITBRIDGE&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3668&lt;/th&gt;
      &lt;td&gt;ZI000067991&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;26.02&lt;/td&gt;
      &lt;td&gt;-22.217&lt;/td&gt;
      &lt;td&gt;30.0000&lt;/td&gt;
      &lt;td&gt;BEITBRIDGE&lt;/td&gt;
      &lt;td&gt;1954&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;3669 rows × 7 columns&lt;/p&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;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;#import seaborn as sns 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Write a plot_line function! The function would generate a line plot for monthly temperature change for each station, color separated by northern or southern hemispheres.&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;plot_line&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;c1&quot;&gt;#return sns.lineplot(x=&quot;Month&quot;, y=&quot;Temp&quot;,
&lt;/span&gt;             &lt;span class=&quot;c1&quot;&gt;#style=&quot;NAME&quot;, hue = 'LATITUDE', palette = 'vlag',
&lt;/span&gt;             &lt;span class=&quot;c1&quot;&gt;#data=df)
&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;'LATITUDE'&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;s&quot;&gt;'LATITUDE'&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;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# cast to int for approximation, for ease to generate plot
&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;'hemi'&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;np&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;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;'LATITUDE'&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;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'northern hemisphere'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'southern hemisphere'&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;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;line&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;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Month&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;Temp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&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;'hemi'&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;Monthly temperature(celsius) in both hemispheres between 20 - 40 latitudes&quot;&lt;/span&gt;
                  &lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;line_group&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;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;#fig.show()
&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;plot_line&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;/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;fd734960-5177-4700-99fb-a5f44dd50e90&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;fd734960-5177-4700-99fb-a5f44dd50e90&quot;)) {                    Plotly.newPlot(                        &quot;fd734960-5177-4700-99fb-a5f44dd50e90&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TAMANRASSET&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;, &quot;TAMANRASSET&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.84, 14.2, 17.81, 20.73, 25.96, 27.79, 28.58, 27.65, 24.72, 21.49, 17.58, 13.86], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ABRAHAMS_BAY_MAYAGUA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;, &quot;ABRAHAMS_BAY_MAYAGUA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.52, 23.62, 24.62, 26.12, 26.52, 27.92, 28.72, 29.02, 27.92, 26.52, 25.02, 21.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BOGRA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;, &quot;BOGRA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.5, 26.15, 32.85, 31.04, 28.6, 29.2, 29.8, 29.8, 27.0, 22.9, 19.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=RAJSHAHI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;, &quot;RAJSHAHI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.93, 20.43, 23.43, 29.03, 30.33, 28.93, 28.13, 27.93, 26.13, 23.83, 20.63], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=JESSORE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;, &quot;JESSORE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.28, 24.03, 27.28, 32.78, 31.63, 29.18, 29.78, 29.73, 29.78, 27.38, 22.38, 20.28], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BARISAL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;, &quot;BARISAL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.2, 23.5, 26.75, 29.45, 29.85, 27.45, 27.85, 28.15, 28.4, 26.35, 22.35, 20.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SHAH_AMANAT_INTL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;, &quot;SHAH_AMANAT_INTL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.05, 23.26, 25.51, 28.66, 29.16, 27.16, 27.85, 27.71, 28.16, 26.16, 22.56, 20.51], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=COXS_BAZAR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;, &quot;COXS_BAZAR&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.19, 23.24, 25.05, 29.05, 29.7, 26.8, 27.49, 27.49, 27.99, 27.0, 23.8, 21.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=COMILLA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;, &quot;COMILLA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.73, 23.98, 26.43, 29.12, 29.37, 27.13, 27.18, 27.58, 28.93, 27.03, 23.28, 20.73], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MAIJDE_COURT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;, &quot;MAIJDE_COURT&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.93, 24.23, 25.68, 29.62, 29.78, 27.73, 28.38, 28.53, 28.93, 26.98, 22.58, 20.63], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KHULNA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;, &quot;KHULNA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.66, 24.41, 27.56, 30.56, 30.61, 28.56, 28.96, 28.86, 29.11, 26.86, 22.76, 20.31], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=FARODPUR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;, &quot;FARODPUR&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.51, 23.11, 26.46, 29.91, 29.46, 27.96, 28.56, 28.96, 29.21, 26.51, 22.01, 19.21], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SIRAJGANI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;, &quot;SIRAJGANI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.2, 22.4, 29.9, 27.75, 28.25, 28.59, 29.0, 26.45, 22.55, 19.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PABNA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;, &quot;PABNA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.79, 22.5, 26.3, 32.3, 30.75, 28.5, 29.15, 29.55, 29.65, 22.25, 19.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SRIMANGAL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;, &quot;SRIMANGAL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.01, 22.51, 25.21, 29.41, 29.91, 28.81, 29.61, 29.51, 30.01, 26.71, 22.41, 19.91], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SATKHIRA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;, &quot;SATKHIRA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.76, 24.85, 28.35, 31.71, 31.35, 29.26, 29.66, 29.36, 29.56, 27.21, 22.46, 20.55], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BRAHMANBARIA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;, &quot;BRAHMANBARIA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.45, 23.45, 26.05, 29.05, 29.15, 27.4, 28.34, 28.5, 29.25, 23.09, 20.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CHITTAGONG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;, &quot;CHITTAGONG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.7, 23.9, 26.4, 29.05, 29.4, 27.5, 28.52, 28.06, 28.47, 26.81, 23.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MYMENSINGH&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;, &quot;MYMENSINGH&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.54, 22.05, 25.5, 28.65, 28.85, 27.65, 28.45, 28.8, 28.4, 26.2, 22.55, 19.79], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MANDALAY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;, &quot;MANDALAY&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.56, 24.36, 28.26, 32.76, 30.66, 29.76, 30.86, 29.36, 28.76, 28.36, 25.26, 22.46], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SITTWE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;, &quot;SITTWE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 7, 8, 9, 10], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.31, 22.01, 24.41, 28.51, 28.71, 25.81, 26.01, 26.11, 25.71], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HONG_KONG_OBSERVATORY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;, &quot;HONG_KONG_OBSERVATORY&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.85, 16.54, 16.7, 21.91, 27.37, 28.75, 29.4, 28.59, 27.79, 24.63, 21.93, 16.34], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LINCANG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;, &quot;LINCANG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.4, 13.38, 15.05, 18.15, 19.89, 20.32, 19.68, 20.03, 19.7, 17.3, 13.17, 11.43], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LANCANG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;, &quot;LANCANG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.75, 15.29, 17.02, 20.79, 23.07, 22.97, 22.49, 22.17, 22.16, 20.8, 16.5, 14.33, 14.0, 16.6, 18.4, 22.1, 24.4, 24.3, 23.8, 23.5, 23.5, 22.1, 17.8, 15.6, 18.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SIMAO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;, &quot;SIMAO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.57, 14.31, 16.35, 19.89, 22.19, 22.02, 21.74, 21.59, 21.28, 19.45, 15.42, 13.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MENGZI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;, &quot;MENGZI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.85, 16.1, 16.19, 21.89, 22.52, 22.26, 22.81, 21.69, 21.4, 17.93, 15.67, 11.44], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LIUZHOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;, &quot;LIUZHOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.16, 13.76, 13.56, 21.06, 25.16, 28.06, 30.26, 28.66, 28.16, 23.06, 19.96, 8.96], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SHAOGUAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;, &quot;SHAOGUAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.35, 11.36, 12.33, 18.68, 24.44, 26.77, 29.09, 28.22, 26.39, 22.17, 19.1, 8.62], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=XIAMEN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;, &quot;XIAMEN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.19, 13.28, 13.36, 18.55, 24.1, 26.65, 28.46, 28.8, 27.4, 23.75, 20.34, 15.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BAISE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;, &quot;BAISE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.17, 16.65, 16.92, 25.38, 26.95, 28.53, 30.31, 28.78, 27.83, 23.54, 21.06, 13.46], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=WUZHOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;, &quot;WUZHOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.71, 13.0, 13.38, 20.16, 25.02, 27.01, 29.17, 27.68, 26.74, 23.2, 20.51, 10.77], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=GUANGZHOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;, &quot;GUANGZHOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.78, 14.18, 14.59, 21.28, 25.74, 27.24, 28.32, 28.06, 26.65, 23.28, 20.45, 12.59], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HEYUAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;, &quot;HEYUAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.75, 12.95, 13.6, 20.99, 25.65, 26.86, 28.32, 27.77, 26.74, 21.86, 19.28, 11.16], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SHANTOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;, &quot;SHANTOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.81, 15.72, 16.02, 21.79, 27.44, 28.68, 30.15, 29.67, 28.43, 24.59, 21.25, 16.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LONGZHOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;, &quot;LONGZHOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.11, 17.47, 16.0, 23.82, 26.13, 27.51, 29.2, 27.76, 26.67, 23.12, 20.77, 13.28], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=NANNING&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;, &quot;NANNING&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.24, 16.27, 14.91, 22.95, 25.81, 27.81, 29.56, 28.18, 27.35, 23.92, 21.48, 12.31], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SHANWEI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;, &quot;SHANWEI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.15, 15.86, 16.2, 21.69, 26.51, 27.2, 28.11, 27.74, 27.73, 24.8, 21.27, 16.04], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=QINZHOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;, &quot;QINZHOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.82, 15.94, 14.67, 22.38, 25.64, 27.29, 28.12, 27.24, 27.11, 23.49, 21.37, 12.38], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=YANGJIANG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;, &quot;YANGJIANG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.92, 16.05, 16.08, 22.36, 26.98, 27.83, 28.89, 27.98, 26.79, 23.9, 21.28, 14.92], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SHENZHEN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;, &quot;SHENZHEN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.96, 15.87, 16.37, 22.42, 26.72, 27.92, 28.72, 28.12, 27.17, 23.72, 20.97, 14.62], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=XINYI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;XINYI&quot;, &quot;XINYI&quot;, &quot;XINYI&quot;, &quot;XINYI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.88, 23.88, 21.08, 13.68], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=GUANGNAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;, &quot;GUANGNAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.5, 13.1, 12.35, 20.95, 22.75, 22.85, 24.1, 22.35, 21.15, 16.75, 14.7, 8.65], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=YUANJIANG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;, &quot;YUANJIANG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.58, 20.33, 20.83, 27.13, 28.13, 26.82, 27.23, 26.38, 25.48, 22.88, 21.43, 16.77], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LIANPING&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;, &quot;LIANPING&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.43, 13.23, 13.18, 20.08, 25.23, 26.43, 27.83, 27.83, 26.33, 21.28, 18.88, 10.07], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CH'AD_N&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;, &quot;CH'AD_N&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.14, 13.49, 13.49, 19.03, 24.84, 26.49, 27.74, 27.69, 27.04, 23.64, 20.19, 15.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ZHANJIANG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;, &quot;ZHANJIANG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.05, 16.3, 15.85, 22.6, 27.25, 30.1, 28.0, 26.55, 24.2, 21.5, 15.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LIAN_XIAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;, &quot;LIAN_XIAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.0, 10.65, 11.65, 18.35, 23.85, 26.7, 28.9, 28.15, 26.15, 21.35, 18.0, 6.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=GAOYAO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;, &quot;GAOYAO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.3, 14.65, 15.3, 21.7, 26.65, 28.2, 29.3, 28.8, 27.65, 23.95, 21.05, 13.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PUER_SIMAO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;, &quot;PUER_SIMAO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.42, 13.82, 15.92, 20.12, 22.12, 22.22, 22.02, 21.72, 21.22, 19.32, 14.82, 13.12], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=JINGHONG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;, &quot;JINGHONG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.49, 19.7, 21.54, 25.29, 26.35, 26.0, 25.55, 25.2, 25.29, 23.65, 20.6, 17.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BEIHAI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;, &quot;BEIHAI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.84, 16.99, 15.88, 23.14, 26.79, 28.49, 29.49, 27.89, 27.24, 24.24, 22.24, 13.89], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=YULIN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;, &quot;YULIN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.52, 15.42, 14.62, 21.92, 25.82, 27.32, 29.02, 27.52, 27.42, 23.72, 20.82, 12.62], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MACAO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;, &quot;MACAO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.64, 14.84, 14.74, 20.54, 25.84, 27.04, 27.94, 27.34, 26.24, 23.64, 20.74, 14.04], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MENGSHAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;, &quot;MENGSHAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.7, 12.45, 13.0, 20.2, 24.85, 27.45, 29.5, 28.4, 27.35, 23.0, 20.04, 8.95], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CABO_SAN_ANTONIOPINAR_DEL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;, &quot;CABO_SAN_ANTONIOPINAR_DEL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.22, 21.52, 22.42, 24.32, 25.12, 26.12, 26.32, 26.62, 26.02, 22.32], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CASA_BLANCALA_HABANA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;, &quot;CASA_BLANCALA_HABANA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.37, 21.92, 22.37, 24.82, 25.21, 26.12, 27.07, 27.42, 26.62, 24.78, 22.38, 20.93], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CAMAGUEYCAMAGUEY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;, &quot;CAMAGUEYCAMAGUEY&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.91, 22.31, 24.21, 25.51, 25.91, 26.41, 26.81, 27.11, 26.71, 26.41, 24.51, 21.11], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CABO_DE_SAN_ANTONIO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;, &quot;CABO_DE_SAN_ANTONIO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.28, 22.63, 23.48, 25.43, 26.23, 27.23, 27.43, 27.73, 27.08, 25.43, 23.38, 21.58], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SACNTI_SPIRITUS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;, &quot;SACNTI_SPIRITUS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.59, 20.83, 23.59, 24.54, 24.89, 26.09, 27.04, 25.49, 25.24, 24.74, 22.19, 20.28], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PASO_REAL_DE_SAN_DIE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;, &quot;PASO_REAL_DE_SAN_DIE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.2, 21.6, 22.85, 25.75, 25.75, 26.9, 27.4, 27.55, 26.8, 25.35, 22.65, 20.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_JUAN_Y_MARTINEZ&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_JUAN_Y_MARTINEZ&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.39], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PUNTA_LUCRECIA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;, &quot;PUNTA_LUCRECIA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.34, 23.09, 24.14, 25.29, 25.64, 26.99, 27.09, 27.94, 27.24, 25.79, 25.04, 23.49], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CAIBARIEN_LV&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;, &quot;CAIBARIEN_LV&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.5, 21.8, 23.7, 25.6, 26.6, 27.0, 27.6, 27.9, 27.4, 26.3, 23.9, 21.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_YAB_STA_CLARA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;, &quot;EL_YAB_STA_CLARA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.42, 20.57, 22.32, 24.72, 24.82, 25.77, 26.42, 26.02, 25.47, 24.47, 21.37, 19.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CAMAGEY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;, &quot;CAMAGEY&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.82, 22.22, 24.17, 25.42, 25.81, 26.37, 26.67, 27.07, 26.57, 26.67, 22.69, 20.24], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SANTIAGO_DE_CUBA_UN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;, &quot;SANTIAGO_DE_CUBA_UN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.91, 25.36, 26.21, 27.11, 27.95, 28.51, 28.81, 28.86, 28.21, 27.91, 26.16, 24.81], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CAIBARIN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;, &quot;CAIBARIN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.22, 21.47, 23.42, 25.26, 26.27, 26.72, 27.22, 27.57, 27.07, 25.97, 23.62, 21.27], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ASSWAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;, &quot;ASSWAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.94, 17.94, 23.24, 26.54, 31.74, 32.44, 33.54, 33.94, 30.44, 28.74, 22.34, 17.24], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DALTONGANJ&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;, &quot;DALTONGANJ&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.52, 22.12, 25.12, 31.92, 35.52, 33.32, 30.52, 29.32, 28.72, 24.72, 19.72, 17.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DUMKA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;, &quot;DUMKA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.34, 22.94, 26.54, 33.54, 33.04, 29.54, 28.54, 28.84, 28.44, 25.84, 20.64, 18.84], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AHMADABAD&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;, &quot;AHMADABAD&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.12, 24.72, 28.52, 32.62, 35.42, 34.12, 30.62, 30.12, 28.42, 27.42, 24.82, 21.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DWARKA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;, &quot;DWARKA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.2, 22.5, 25.7, 27.0, 29.1, 29.8, 28.7, 27.7, 27.0, 26.6, 25.0, 22.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=VERAVAL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;, &quot;VERAVAL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.97, 23.27, 27.07, 27.42, 29.22, 30.22, 28.32, 27.67, 27.57, 27.47, 25.27, 22.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=INDORE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;, &quot;INDORE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.91, 21.16, 24.66, 29.71, 33.3, 30.56, 26.36, 25.61, 23.81, 22.66, 20.71, 18.21], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=RAIPUR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;, &quot;RAIPUR&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.42, 25.12, 28.26, 33.82, 36.87, 32.76, 27.77, 27.62, 26.47, 24.32, 21.87, 20.21], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAGAR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;, &quot;SAGAR&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.52, 21.22, 25.22, 30.82, 34.62, 31.82, 27.02, 25.02, 24.32, 23.12, 21.32, 18.62], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AKOLA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.03, 25.63, 29.13, 33.83, 36.53, 32.33, 28.23, 27.83, 26.33, 25.43, 22.63, 21.13, 20.93, 25.52, 29.18, 33.73, 36.48, 32.27, 28.18, 27.77, 26.23, 25.33, 22.52, 21.08], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=NAGPUR_SONEGAON&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NAGPUR_SONEGAON&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.33, 25.33, 28.63, 33.33, 37.73, 33.43, 27.83, 28.13, 26.73, 25.03, 22.03, 20.83], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CUTTACK&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;, &quot;CUTTACK&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.77, 26.82, 28.77, 33.46, 32.96, 29.67, 29.62, 29.22, 28.42, 27.17, 23.42, 22.12], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CALCUTTA_ALIPORE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_ALIPORE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.97, 24.97, 28.37, 32.47, 31.27, 29.37, 29.17, 29.07, 29.07, 26.97, 22.47, 20.67], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CALCUTTA_DUM_DUM&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CALCUTTA_DUM_DUM&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.12, 24.12, 27.52, 31.82, 31.02, 28.92, 29.12, 28.72, 28.72, 26.52, 21.82, 19.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SILCHAR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;, &quot;SILCHAR&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.71, 22.12, 24.67, 26.42, 27.72, 27.62, 27.72, 28.07, 28.62, 25.62, 22.67, 20.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BERHAMPORE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;, &quot;BERHAMPORE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.95, 22.8, 27.15, 33.95, 32.5, 29.2, 29.55, 29.35, 29.65, 26.84, 22.45, 19.65], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MT_ABU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;, &quot;MT_ABU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.1, 17.25, 20.7, 25.25, 27.8, 24.85, 22.2, 21.6, 21.0, 20.1, 18.65, 15.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DAMAO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DAMAO&quot;, &quot;DAMAO&quot;, &quot;DAMAO&quot;, &quot;DAMAO&quot;, &quot;DAMAO&quot;, &quot;DAMAO&quot;, &quot;DAMAO&quot;, &quot;DAMAO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.41, 23.41, 26.11, 28.41, 30.01, 26.45, 24.56, 21.91], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DIU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;, &quot;DIU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 4, 5, 6, 7, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.1, 29.09, 29.55, 29.4, 27.55, 27.2, 27.05, 24.8, 22.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HATERUMA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;, &quot;HATERUMA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.81, 19.49, 19.64, 23.95, 27.63, 28.92, 30.43, 28.92, 28.03, 25.23, 23.32, 19.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MINAMI_TORI_SHIMA_MA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;, &quot;MINAMI_TORI_SHIMA_MA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.2, 22.2, 23.45, 23.8, 26.7, 28.3, 28.7, 27.8, 28.05, 27.7, 26.75, 24.4, 22.18, 21.28, 22.38, 23.18, 25.68, 27.48, 27.98, 27.38, 27.48, 27.08, 26.08, 23.48], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ISHIGAKI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;, &quot;ISHIGAKI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.59, 19.29, 19.5, 23.8, 27.4, 28.8, 30.3, 28.75, 27.84, 25.05, 23.15, 19.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MIYAKO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;, &quot;MIYAKO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.14, 18.74, 19.14, 23.04, 26.74, 28.34, 29.44, 28.54, 27.44, 24.84, 23.04, 19.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=IWO_JIMA_AB&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;, &quot;IWO_JIMA_AB&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.48, 19.72, 21.13, 23.36, 27.01, 28.08, 28.33, 27.43, 27.49, 27.06, 25.26, 22.49], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MIYAKOJIMA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;, &quot;MIYAKOJIMA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.21, 18.65, 19.06, 23.03, 26.73, 28.08, 29.5, 28.52, 27.3, 24.86, 22.98, 19.39], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KUFRA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;, &quot;KUFRA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.45, 20.95, 24.45, 30.25, 30.35, 31.35, 31.65, 27.05, 24.55, 20.65, 14.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MACAU_INTL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;, &quot;MACAU_INTL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.05, 15.37, 14.7, 20.79, 26.28, 27.46, 28.32, 27.69, 26.53, 23.95, 21.03, 13.83], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TESSALIT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;, &quot;TESSALIT&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.35, 19.85, 24.65, 27.15, 32.05, 34.85, 33.95, 31.75, 31.85, 29.15, 25.45, 20.35], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=FORT_GOURAUD&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;, &quot;FORT_GOURAUD&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.58, 18.32, 20.79, 21.84, 29.02, 29.61, 35.3, 33.68, 32.24, 30.44, 23.72, 18.79], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=NOUADHIBOU_PORT_ETIENNE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;, &quot;NOUADHIBOU_PORT_ETIENNE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.3, 16.31, 18.37, 18.31, 20.6, 20.81, 20.95, 21.61, 23.4, 23.27, 20.78, 17.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ATAR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;, &quot;ATAR&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.44, 19.44, 23.01, 25.16, 31.76, 33.36, 33.52, 32.88, 32.68, 29.96, 24.99, 19.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=NOUADHIBOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;, &quot;NOUADHIBOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.96, 17.9, 20.01, 19.96, 22.26, 22.41, 22.61, 23.26, 25.01, 24.91, 22.41, 19.15], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PABELLON&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;, &quot;PABELLON&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.45, 13.61, 15.54, 18.94, 20.31, 21.52, 18.82, 20.05, 19.31, 16.3, 13.31], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PRESA_CALLES&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_CALLES&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.82, 14.71, 17.78, 19.89, 21.47, 20.73, 18.78, 19.26, 18.4, 16.86, 13.89, 12.57], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CABO_SAN_LUCAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CABO_SAN_LUCAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.42, 22.36, 22.71, 25.87, 24.95, 27.12, 29.8, 30.28, 30.06, 27.61, 24.87, 22.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_PASO_IRITU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PASO_IRITU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.04, 19.47, 19.46, 23.43, 22.31, 25.36, 29.14, 28.81, 29.72, 26.43, 23.15, 19.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LA_RIBERA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_RIBERA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.46, 18.73, 18.89, 22.2, 23.96, 27.13, 29.8, 29.63, 29.46, 26.57, 22.63, 19.01], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TODOS_SANTOS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;, &quot;TODOS_SANTOS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.7, 18.85, 18.26, 19.18, 17.72, 19.02, 23.46, 25.8, 26.87, 23.2, 21.75, 19.37], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LA_PAZ_CITY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PAZ_CITY&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.6, 21.52, 22.1, 25.11, 24.37, 27.6, 30.09, 30.37, 30.81, 27.48, 24.56, 21.08], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HECELCHAKAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;, &quot;HECELCHAKAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.62, 22.51, 22.93, 27.8, 26.73, 28.53, 28.37, 29.2, 28.74, 28.13, 26.12, 21.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CUENCAME&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;, &quot;CUENCAME&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.55, 16.11, 18.98, 23.62, 25.26, 26.14, 23.86, 23.99, 23.08, 21.19, 16.0, 13.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_CANTIL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;, &quot;EL_CANTIL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.41, 12.91, 13.93, 16.95, 17.85, 18.62, 16.8, 17.16, 18.03, 15.53, 13.16, 11.77], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_SALTO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 5, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [8.3, 9.72, 15.32, 15.13, 14.05, 8.94, 6.66, 18.76, 19.91, 21.77, 24.98, 25.2, 26.46, 25.18, 26.01, 25.35, 22.77, 19.29, 17.09], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=FCOIMADERO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;, &quot;FCOIMADERO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.18, 11.96, 15.85, 19.38, 21.82, 20.1, 20.19, 19.23, 17.37, 12.31, 10.21], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=IRAPUATO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;, &quot;IRAPUATO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.34, 19.11, 20.41, 21.38, 22.61, 22.51, 20.59, 21.4, 20.78, 19.91, 17.6, 16.64], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_DIEGO_DE_LA_UNION&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_DIEGO_DE_LA_UNION&quot;, &quot;SAN_DIEGO_DE_LA_UNION&quot;, &quot;SAN_DIEGO_DE_LA_UNION&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.82, 11.71, 15.09], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LA_CALZADA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CALZADA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.22, 17.22, 20.52, 21.62, 22.72, 21.72, 19.92, 20.92, 20.82, 18.52, 16.52, 15.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CUQUIO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CUQUIO&quot;, &quot;CUQUIO&quot;, &quot;CUQUIO&quot;, &quot;CUQUIO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.73, 17.04, 15.29, 13.66], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CHAPALA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.61, 19.75, 21.22, 24.47, 24.42, 24.67, 21.66, 21.74, 21.64, 20.84, 17.85, 16.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MASCOTA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;, &quot;MASCOTA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.99, 18.73, 20.51, 22.71, 22.92, 23.0, 21.62, 22.11, 22.53, 20.72, 17.91, 17.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TEPATITLAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;, &quot;TEPATITLAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.41, 18.51, 20.55, 22.88, 23.92, 23.68, 21.18, 21.6, 21.57, 19.86, 17.76, 16.44], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CUMUATO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;, &quot;CUMUATO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.02, 17.09, 18.72, 21.49, 22.84, 22.75, 20.24, 20.44, 20.44, 18.97, 16.43, 14.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=YURECUARO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;, &quot;YURECUARO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.61, 18.64, 20.1, 22.85, 23.71, 23.95, 21.43, 21.36, 21.8, 20.12, 17.69, 16.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=JUMATAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;, &quot;JUMATAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.21, 22.26, 22.66, 25.24, 25.46, 26.5, 25.91, 26.14, 26.33, 25.37, 22.91, 21.87], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_BLAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_BLAS&quot;, &quot;SAN_BLAS&quot;, &quot;SAN_BLAS&quot;, &quot;SAN_BLAS&quot;, &quot;SAN_BLAS&quot;, &quot;SAN_BLAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [29.63, 29.49, 30.08, 29.34, 26.13, 25.03], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HUAUCHINANGO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUAUCHINANGO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.56, 15.06, 17.64, 18.25, 19.87, 19.75, 19.01, 19.11, 18.35, 16.44, 14.14, 13.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KANTUNILKIN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;, &quot;KANTUNILKIN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.43, 18.54, 21.37, 22.78, 23.74, 24.36, 24.56, 24.58, 24.07, 21.96, 19.49, 18.22], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TIHOSUCO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;, &quot;TIHOSUCO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.35, 21.23, 24.67, 27.48, 26.83, 27.15, 25.93, 25.81, 26.52, 25.97, 24.1, 19.2], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CHARCAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;, &quot;CHARCAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.91, 15.5, 17.81, 19.36, 19.76, 20.31, 18.36, 19.11, 19.11, 16.5, 14.16, 13.71], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SANALONA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANALONA&quot;, &quot;SANALONA&quot;, &quot;SANALONA&quot;, &quot;SANALONA&quot;, &quot;SANALONA&quot;, &quot;SANALONA&quot;, &quot;SANALONA&quot;, &quot;SANALONA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.94, 26.6, 30.31, 29.32, 28.76, 29.34, 27.32, 23.18], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_BARRETAL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BARRETAL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.82, 19.44, 21.25, 25.58, 26.39, 28.97, 28.18, 28.77, 27.28, 23.7, 18.57, 16.12], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PADILLA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;, &quot;PADILLA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.97, 21.34, 23.29, 27.19, 27.61, 29.96, 29.03, 30.0, 28.06, 24.6, 20.07, 18.34], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_FERNANDO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_FERNANDO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.53, 19.99, 20.85, 25.86, 26.54, 28.76, 28.78, 28.91, 28.03, 23.91, 19.14, 17.31], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CIUDAD_VICTORIA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;CIUDAD_VICTORIA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.96, 19.18, 21.2, 24.97, 24.96, 28.19, 27.25, 27.86, 25.86, 22.1, 18.15, 16.01], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=VILLAGRAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAGRAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.32, 17.87, 20.12, 24.21, 24.72, 28.03, 27.99, 27.89, 26.22, 22.44, 17.54, 14.46], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DZITAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;, &quot;DZITAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.73, 25.27, 27.53, 29.07, 29.64, 29.01, 29.59, 30.03, 29.34, 27.77, 24.13, 23.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_SAUZ&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;, &quot;EL_SAUZ&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.9, 13.66, 15.85, 18.51, 20.1, 21.79, 19.97, 19.75, 19.89, 17.31, 13.71, 11.76], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EXCAME_III&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;, &quot;EXCAME_III&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.7, 15.45, 17.96, 20.67, 21.62, 22.31, 20.35, 20.35, 19.92, 18.25, 15.1, 14.21], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=JUCHIPILA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;, &quot;JUCHIPILA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.21, 18.57, 20.16, 23.07, 24.18, 24.98, 22.37, 22.5, 22.4, 21.13, 17.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=COLONIA_JUAN_CARRAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLONIA_JUAN_CARRAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.25, 20.95, 20.35, 22.55, 23.95, 26.75, 27.75, 28.25, 28.45, 26.75, 24.05, 21.95], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=GUANAJUATO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;, &quot;GUANAJUATO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.56, 14.89, 19.53, 20.75, 21.43, 21.36, 19.78, 20.37, 19.79, 17.25, 16.08, 12.93], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SOTO_LA_MARINATAMPS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTO_LA_MARINATAMPS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.98, 21.12, 22.25, 26.46, 27.73, 29.18, 28.98, 28.22, 27.76, 24.68, 20.3, 17.93], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ZACATECASZAC_LA_BUFAZAC&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.85, 12.25, 16.45, 17.45, 16.95, 17.25, 14.95, 15.25, 15.25, 13.35, 12.15, 10.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TAMPICOTAMPS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMPICOTAMPS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.1, 22.3, 22.6, 26.0, 27.3, 28.5, 28.0, 28.8, 27.4, 26.3, 23.3, 21.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PROGRESOYUC&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;, &quot;PROGRESOYUC&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.88, 22.68, 24.98, 25.98, 26.88, 26.88, 27.38, 27.18, 27.28, 26.18, 23.68, 22.78], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=VALLE_DE_GUADALUPE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_GUADALUPE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.79, 15.04, 17.19, 19.88, 21.49, 21.59, 18.74, 18.99, 18.63, 17.29, 13.69, 12.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LA_PAZ_BSC&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_BSC&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.74, 20.94, 20.83, 24.93, 24.33, 26.63, 28.53, 29.03, 29.73, 26.83, 23.83, 20.23], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TEPIC_NAYARIT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TEPIC_NAYARIT&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.53, 20.73, 19.73, 21.53, 21.83, 23.93, 23.73, 24.03, 24.13, 22.93, 19.63, 19.13], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CADUANO_SANTIAGO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CADUANO_SANTIAGO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.22, 21.92, 22.07, 24.52, 26.02, 29.06, 31.72, 30.27, 30.22, 29.62, 26.77, 23.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LA_PALMA_V_CARRANZA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.16, 17.16, 19.62, 21.97, 23.47, 23.12, 20.62, 21.07, 20.97, 19.46, 16.77, 15.37], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_BARTOLO_SAN_ANTO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.03, 19.83, 19.88, 24.08, 23.68, 27.83, 29.13, 27.83, 28.93, 26.78, 22.43], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LAGOSDEMARENO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;, &quot;LAGOSDEMARENO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.27, 17.36, 20.49, 21.19, 21.94, 22.11, 19.62, 20.2, 19.5, 18.51, 16.43, 14.96], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SANTA_FE_DEL_RIO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_FE_DEL_RIO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.59, 16.49, 17.49, 21.24, 22.64, 20.96, 19.65, 20.36, 20.26, 19.46, 16.51, 14.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_PEDRO_RUIZ&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.41, 22.86, 22.56, 25.36, 27.26, 28.16, 27.01, 27.16, 26.81, 25.91, 23.41, 21.81], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_LUIS_POTOSI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_POTOSI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.12, 22.4, 22.41, 19.87, 20.75, 19.45, 16.11, 16.64, 14.39], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_JACINTOTODOS_SAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.79, 20.2, 19.9, 21.95, 20.25, 22.15, 26.95, 27.55, 28.5, 25.5, 22.8, 20.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=EL_REFUGIO_COMONDU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_COMONDU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 8, 9, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.31, 21.51, 19.1, 21.81, 21.66, 23.41, 28.15, 28.21, 18.88], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PALOS_BLANCOS_CULIAC&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.39, 21.89, 22.39, 25.19, 26.69, 30.79, 30.19, 29.49, 29.89, 27.49, 22.89, 20.59], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TEKAX_DE_ALVARO_OBRE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.12, 24.12, 26.72, 28.17, 28.67, 28.07, 27.92, 28.17, 28.12, 25.57, 22.92, 22.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LABUFA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;, &quot;LABUFA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [8.06, 9.05, 14.87, 16.1, 16.76, 16.49, 13.8, 14.9, 13.1, 11.49, 9.94, 9.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MASCOTA_JALISCO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;, &quot;MASCOTA_JALISCO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.06, 18.76, 19.56, 21.16, 21.36, 24.36, 23.66, 23.46, 23.96, 21.66, 19.06, 17.66], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_JOSE_DEL_CABO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.86, 21.31, 21.51, 24.86, 24.91, 27.46, 29.31, 29.46, 29.26, 27.26, 23.91, 21.66], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=XOCNACEH_TICUL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;XOCNACEH_TICUL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.85, 22.45, 26.0, 27.6, 28.0, 27.35, 27.25, 27.9, 27.25, 24.95, 21.85, 21.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=GUADALAJARA_JALISCO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALAJARA_JALISCO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.89, 17.29, 19.89, 22.19, 23.19, 21.89, 19.89, 19.89, 19.99, 18.69, 15.99, 15.09], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SANTA_GERTRUDISTSAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_GERTRUDISTSAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.27, 18.36, 17.86, 21.87, 19.37, 22.62, 26.02, 25.97, 25.47, 22.82, 20.42, 17.67], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AHUALULCO_GOMEZ_FARI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.4, 21.3, 23.7, 26.9, 27.6, 29.0, 27.9, 29.0, 27.5, 24.9, 21.0, 18.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AGUA_BUENA_TAMASOPO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.49, 20.69, 22.99, 25.94, 27.04, 28.58, 26.99, 27.54, 26.74, 24.39, 20.64, 17.19], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SANTIAGO_IXCUINTLA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.45, 23.2, 22.8, 25.14, 27.1, 28.6, 28.2, 28.5, 27.5, 25.3, 23.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=VICTORIA_VICTORIA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VICTORIA_VICTORIA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.5, 12.75, 16.1, 16.85, 18.75, 18.7, 16.75, 17.4, 15.75, 14.65, 12.35, 10.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HACIENDA_SANTA_ELENA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;, &quot;HACIENDA_SANTA_ELENA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.59, 22.19, 23.29, 26.69, 28.19, 30.09, 28.39, 29.09, 28.79, 26.79, 22.19, 18.69], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_JOSE_ITURBIDE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;, &quot;SAN_JOSE_ITURBIDE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.33, 15.08, 18.58, 18.92, 20.83, 19.92, 18.28, 18.83, 17.58, 15.98, 15.13, 12.73], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AHUACATLAN_AHUACATLA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUACATLAN_AHUACATLA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.11, 19.61, 20.46, 23.01, 23.66, 26.11, 24.76, 24.96, 25.26, 23.26, 18.76, 17.91], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SAN_MIGUEL_EL_ALTO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.18, 15.78, 18.17, 21.53, 22.93, 22.63, 20.17, 20.48, 19.53, 18.03, 15.43, 13.88], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SANTIAGO_SANTIAGO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTIAGO_SANTIAGO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.8, 18.6, 19.6, 23.55, 24.5, 28.65, 30.35, 29.15, 29.3, 26.3, 21.15, 17.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CULIACAN_SINALOA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;, &quot;CULIACAN_SINALOA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.69, 20.39, 20.49, 23.39, 25.09, 29.39, 29.09, 28.39, 28.79, 26.39, 22.29, 19.69], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=COSALA_SINALOA_SMN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;, &quot;COSALA_SINALOA_SMN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.48, 21.68, 22.78, 25.78, 24.08, 29.78, 27.78, 27.98, 25.68, 21.68, 20.58], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BAHIAMAGDALENA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BAHIAMAGDALENA&quot;, &quot;BAHIAMAGDALENA&quot;, &quot;BAHIAMAGDALENA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [5, 10, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.82, 25.28, 21.43], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BURGOS_BURGOS_DGE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;BURGOS_BURGOS_DGE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.47, 20.97, 21.77, 23.47, 24.87, 27.37, 28.17, 27.87, 26.07, 26.67], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=CEI_CD_MANTE_MAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CEI_CD_MANTE_MAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.33, 21.93, 23.63, 26.93, 28.23, 29.13, 28.23, 28.53, 27.63, 24.83, 21.33, 18.43], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TOTOTLAN_TOTOTLAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.72, 18.12, 19.67, 22.27, 23.62, 23.87, 21.37, 21.92, 21.57, 20.02, 17.32, 15.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AGUASCALIENTES&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUASCALIENTES&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.4, 16.88, 21.02, 21.97, 22.68, 22.8, 20.22, 21.11, 20.55, 17.68, 16.28, 16.03], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PASO_DE_AROCHA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_AROCHA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.62, 21.82, 21.32, 23.47, 26.32, 26.57, 26.97, 26.02, 22.77, 22.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LAGUNILLAS_LA_PAZ&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LAGUNILLAS_LA_PAZ&quot;, &quot;LAGUNILLAS_LA_PAZ&quot;, &quot;LAGUNILLAS_LA_PAZ&quot;, &quot;LAGUNILLAS_LA_PAZ&quot;, &quot;LAGUNILLAS_LA_PAZ&quot;, &quot;LAGUNILLAS_LA_PAZ&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [30.15, 30.4, 30.3, 25.4, 22.95, 19.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=GUADALAJARA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.45, 19.82, 22.9, 20.92, 22.63, 22.84, 20.45, 20.84, 20.79, 18.73, 18.23, 18.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TEOCALTICHE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;, &quot;TEOCALTICHE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.55, 14.8, 17.93, 20.75, 22.0, 23.15, 20.48, 21.02, 20.77, 18.89, 15.11, 13.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ACAPONETA_ACAPONETA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPONETA_ACAPONETA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.11, 24.61, 24.11, 26.7, 28.36, 30.11, 28.36, 28.56, 28.71, 27.7, 25.31, 23.86], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MAZATLAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;, &quot;MAZATLAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.29, 21.22, 20.59, 22.74, 24.05, 27.08, 27.87, 28.49, 28.63, 27.09, 24.21, 22.04], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LINARES_LINARES_DGE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LINARES_LINARES_DGE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.77, 19.42, 21.72, 26.12, 26.52, 29.16, 29.62, 29.92, 27.97, 24.22, 18.82, 16.11], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=ORIZATLAN_ORIZATLAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.29, 20.59, 22.74, 25.29, 26.64, 27.94, 26.09, 27.44, 24.98, 23.64, 19.99, 17.99], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=AMATLAN_DE_CANAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;, &quot;AMATLAN_DE_CANAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.13, 22.78, 23.97, 25.88, 25.73, 27.18, 26.28, 25.53, 27.38, 25.73, 23.47, 21.98], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=SOTUTA_SOTUTA_DGE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.79, 23.49, 26.39, 28.19, 28.49, 27.19, 27.79, 27.83, 27.64, 25.19, 22.09, 21.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KARACHI_MASRO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;, &quot;KARACHI_MASRO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.95, 20.65, 25.55, 28.4, 30.59, 31.5, 30.95, 29.55, 28.35, 27.05, 24.9, 20.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KARACHI_MANORA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;, &quot;KARACHI_MANORA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.7, 21.15, 25.1, 27.2, 29.15, 30.7, 29.75, 28.55, 27.09, 26.9, 25.5, 21.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BADIN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;, &quot;BADIN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.12, 20.88, 25.48, 30.48, 32.92, 33.23, 31.53, 30.53, 29.83, 27.58, 25.33, 19.48], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BASCO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;, &quot;BASCO&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.58, 21.96, 22.38, 26.23, 27.89, 28.01, 27.96, 27.54, 26.45, 24.92, 23.33, 21.58], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=RIYADH_OBS_OAP&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;, &quot;RIYADH_OBS_OAP&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.08, 19.98, 22.78, 24.98, 30.58, 33.28, 34.98, 34.38, 30.58, 26.08, 21.68, 15.58], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=JEDDAH&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;, &quot;JEDDAH&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.2, 23.7, 26.5, 24.8, 31.5, 33.4, 31.5, 31.7, 29.0, 30.9, 28.34, 24.44], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=WADI_HALFA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;, &quot;WADI_HALFA&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.35, 19.85, 24.25, 27.74, 32.84, 32.55, 34.15, 34.95, 31.1, 28.5, 24.05, 18.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HUA_LIEN_CITY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;, &quot;HUA_LIEN_CITY&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.6, 18.3, 18.9, 23.0, 26.4, 27.4, 28.5, 28.0, 26.3, 23.7, 22.1, 18.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=PENGHU_ISLANDS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;, &quot;PENGHU_ISLANDS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.23, 17.23, 16.83, 23.43, 27.43, 28.53, 29.73, 29.13, 27.93, 25.43, 22.53, 17.83], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TAINAN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;, &quot;TAINAN&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.2, 19.0, 18.2, 24.8, 29.1, 28.3, 29.3, 28.4, 28.1, 25.6, 22.0, 18.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HENGCHUN_FORMOSA_CHINA_DEM_REP&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;, &quot;HENGCHUN_FORMOSA_CHINA_DEM_REP&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.5, 22.2, 22.6, 26.3, 29.0, 28.3, 29.4, 27.6, 27.5, 26.0, 23.9, 21.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TAICHUNG&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;, &quot;TAICHUNG&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.9, 17.5, 16.6, 22.8, 27.3, 28.1, 28.5, 28.2, 27.0, 24.2, 21.2, 17.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=DRY_TORTUGAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;DRY_TORTUGAS&quot;, &quot;DRY_TORTUGAS&quot;, &quot;DRY_TORTUGAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.0, 21.69, 19.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MARATHON_SHORES&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;, &quot;MARATHON_SHORES&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.74, 21.15, 21.49, 25.35, 26.27, 27.05, 27.99, 28.52, 26.94, 24.49, 21.44, 18.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HALEAKALA_EXP_FARM_434&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HALEAKALA_EXP_FARM_434&quot;, &quot;HALEAKALA_EXP_FARM_434&quot;, &quot;HALEAKALA_EXP_FARM_434&quot;, &quot;HALEAKALA_EXP_FARM_434&quot;, &quot;HALEAKALA_EXP_FARM_434&quot;, &quot;HALEAKALA_EXP_FARM_434&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.78, 17.28, 16.58, 18.11, 18.25, 19.89], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HANA_354&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HANA_354&quot;, &quot;HANA_354&quot;, &quot;HANA_354&quot;, &quot;HANA_354&quot;, &quot;HANA_354&quot;, &quot;HANA_354&quot;, &quot;HANA_354&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.24, 22.75, 21.71, 23.19, 23.32, 24.18, 22.57], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KAMUELA_1922&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;, &quot;KAMUELA_1922&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.62, 16.01, 16.96, 17.17, 18.41, 18.27, 18.5, 19.77, 19.31, 18.96, 18.37, 16.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KANEOHE_MAUKA_781&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;, &quot;KANEOHE_MAUKA_781&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.09, 21.03, 20.15, 21.76, 21.64, 23.65, 23.65, 24.02, 23.88, 23.57, 23.27, 21.14], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KILAUEA_POINT_1133&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;, &quot;KILAUEA_POINT_1133&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.4, 22.7, 22.06, 23.47, 22.82, 25.1, 26.43, 26.18, 25.52, 22.71], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KOLOA_936&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KOLOA_936&quot;, &quot;KOLOA_936&quot;, &quot;KOLOA_936&quot;, &quot;KOLOA_936&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [5, 6, 7, 8], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.01, 23.54, 23.68, 24.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KUALAPUU_534&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KUALAPUU_534&quot;, &quot;KUALAPUU_534&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [8, 9], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.18, 25.02], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KULA_SANATORIUM_267&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;, &quot;KULA_SANATORIUM_267&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.71, 16.63, 15.85, 17.89, 19.03, 19.72, 19.51, 19.02, 18.57, 16.83], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LAHAINA_361&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LAHAINA_361&quot;, &quot;LAHAINA_361&quot;, &quot;LAHAINA_361&quot;, &quot;LAHAINA_361&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [6, 7, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.64, 26.23, 24.86, 23.32], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LANAI_CITY_672&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;, &quot;LANAI_CITY_672&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.93, 19.31, 18.54, 20.2, 19.99, 21.57, 21.74, 22.64, 22.27, 21.75, 20.94, 19.91], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LIHUE_1020&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;, &quot;LIHUE_1020&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.18, 23.4, 22.31, 23.77, 23.71, 25.91, 25.93, 26.86, 27.04, 26.11, 25.4, 23.34], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=MAKAPUU_POINT_724&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;, &quot;MAKAPUU_POINT_724&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.77, 20.89, 20.06, 21.8, 21.63, 22.94, 23.23, 23.87, 24.21, 23.69, 23.51, 20.93], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=NIULII_179&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NIULII_179&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [7], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=NIU_RIDGE_1035&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;, &quot;NIU_RIDGE_1035&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.08, 19.69, 19.17, 20.74, 20.81, 22.46, 22.61, 23.2, 23.32, 22.86, 22.24, 19.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=OPAEULA_870&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;OPAEULA_870&quot;, &quot;OPAEULA_870&quot;, &quot;OPAEULA_870&quot;, &quot;OPAEULA_870&quot;, &quot;OPAEULA_870&quot;, &quot;OPAEULA_870&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.65, 19.37, 18.58, 20.38, 19.99, 22.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=TANTALUS_714&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;, &quot;TANTALUS_714&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.64, 19.36, 18.65, 19.97, 20.13, 21.36, 21.48, 22.19, 22.22, 21.97, 21.56, 19.28], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=WAIALUA_847&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;, &quot;WAIALUA_847&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.59, 21.18, 20.43, 22.1, 21.62, 23.83, 23.78, 24.59, 24.25, 23.73], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=WAILUKU_386&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;, &quot;WAILUKU_386&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.77, 22.45, 21.47, 23.07, 22.96, 25.02, 25.23, 25.66, 25.44, 24.95, 24.28, 21.99], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KEY_WEST_INTL_AP&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;, &quot;KEY_WEST_INTL_AP&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.86, 21.5, 21.75, 26.03, 26.89, 28.23, 29.28, 29.45, 28.51, 25.7, 22.28, 19.63], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KEY_WEST_NAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;, &quot;KEY_WEST_NAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.41, 21.2, 21.75, 25.97, 27.16, 28.46, 29.45, 29.66, 28.55, 25.82, 22.67, 19.88], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KEY_WEST&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;, &quot;KEY_WEST&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.57, 21.18, 21.53, 25.24, 26.01, 27.3, 28.31, 28.49, 27.48, 24.74, 21.66, 19.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=BARBERS_POINT_NAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;, &quot;BARBERS_POINT_NAS&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.19, 22.7, 21.71, 23.63, 23.68, 25.26, 25.44, 26.17, 26.14, 25.48, 24.8, 22.78], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=KAHULUI_AP&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;, &quot;KAHULUI_AP&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.84, 23.91, 25.42, 25.63, 26.03, 25.59, 25.51, 24.67, 22.68], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HONOLULU_INTL_AP&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;, &quot;HONOLULU_INTL_AP&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.57, 23.19, 22.4, 24.1, 24.3, 26.15, 26.1, 26.77, 26.68, 26.03, 25.37, 23.2], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HONOLULU_SUBSTN_407&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;, &quot;HONOLULU_SUBSTN_407&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.98, 22.59, 21.77, 23.36, 23.51, 25.09, 25.14, 25.78, 25.77, 25.17, 24.71, 22.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=LIHUE_WSO_AP_10201&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;, &quot;LIHUE_WSO_AP_10201&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.4, 23.2, 22.38, 24.11, 24.22, 26.49, 26.59, 27.49, 27.47, 26.66, 25.72, 23.41], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=HEKOU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;, &quot;HEKOU&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.6, 18.0, 18.0, 24.4, 26.6, 27.6, 28.1, 26.6, 26.1, 23.0, 20.8, 15.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=northern hemisphere&lt;br&gt;NAME=VILLA_CISNEROSMIL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;VILLA_CISNEROSMIL&quot;, &quot;VILLA_CISNEROSMIL&quot;], &quot;legendgroup&quot;: &quot;northern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;northern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [17.06, 16.56], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=LA_QUIACA_OBSERVATO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;, &quot;LA_QUIACA_OBSERVATO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.01, 11.41, 10.51, 10.21, 5.31, 3.71, 2.61, 6.51, 10.01, 11.21, 11.41, 13.11], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=LAS_LOMITAS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;, &quot;LAS_LOMITAS&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.78, 26.98, 24.88, 22.38, 16.58, 15.48, 15.38, 18.58, 19.88, 23.38, 27.38, 28.08], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=SALTA_AERO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;, &quot;SALTA_AERO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.5, 21.0, 19.8, 17.5, 12.5, 10.5, 9.2, 13.9, 15.4, 18.6, 21.5, 21.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=JUJUY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;, &quot;JUJUY&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.6, 22.0, 20.6, 18.3, 13.3, 11.6, 10.6, 14.5, 16.7, 19.8, 22.8, 22.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MARBLE_BAR_COMPARISON&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;, &quot;MARBLE_BAR_COMPARISON&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [34.44, 33.97, 34.37, 27.69, 24.98, 19.6, 19.63, 22.19, 26.52, 29.7, 31.82, 34.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=NULLAGINE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;, &quot;NULLAGINE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [32.12, 32.02, 32.02, 24.58, 20.78, 15.93, 16.03, 18.53, 22.53, 26.58, 28.88, 31.27], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PARDOO_STATION&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;, &quot;PARDOO_STATION&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [31.34, 31.84, 31.29, 27.39, 25.09, 19.68, 19.68, 21.39, 24.24, 27.64, 28.49, 30.89], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PORT_HEDLAND_AIRPORT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;, &quot;PORT_HEDLAND_AIRPORT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [30.87, 31.39, 30.86, 26.96, 24.62, 19.21, 19.22, 20.93, 23.78, 27.17, 28.07, 30.41], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ROEBOURNE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;, &quot;ROEBOURNE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [32.52, 32.57, 32.92, 27.32, 24.07, 19.57, 18.91, 21.57, 24.67, 27.72, 28.77, 31.12], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MARBLE_BAR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;, &quot;MARBLE_BAR&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [33.76, 33.37, 33.76, 27.02, 24.37, 19.02, 19.01, 21.52, 25.87, 29.12, 31.22, 33.67], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ONSLOW&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;, &quot;ONSLOW&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [29.11, 31.01, 30.01, 26.56, 22.96, 18.21, 18.21, 19.35, 22.66, 25.06, 26.65, 28.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ONSLOW_AIRPORT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;, &quot;ONSLOW_AIRPORT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [30.19, 32.04, 31.0, 27.75, 23.25, 18.38, 18.79, 20.47, 23.8, 25.71, 27.43, 29.35], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=VLAMINGH_HEAD&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;, &quot;VLAMINGH_HEAD&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.15, 29.9, 29.3, 26.65, 22.35, 18.7, 19.04, 19.65, 22.4, 24.0, 24.7, 26.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=WITTENOOM&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;, &quot;WITTENOOM&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [33.01, 32.96, 33.51, 26.26, 22.21, 18.61, 19.5, 21.36, 25.91, 29.51, 31.96], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CARNARVON_AIRPORT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;, &quot;CARNARVON_AIRPORT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.46, 27.5, 26.05, 22.75, 19.67, 16.57, 17.44, 17.16, 19.61, 21.54, 21.52, 24.62], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MUNDIWINDI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;, &quot;MUNDIWINDI&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [31.36, 30.81, 30.71, 22.31, 18.35, 13.46, 13.86, 16.26, 21.91, 23.81, 27.86, 31.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BARROW_CREEK&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;, &quot;BARROW_CREEK&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [30.35, 28.95, 29.19, 24.44, 19.69, 15.05, 15.95, 16.89, 20.8, 25.25, 27.85, 29.15], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ALICE_SPRINGS_AIRPORT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;, &quot;ALICE_SPRINGS_AIRPORT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.41, 24.95, 25.86, 20.92, 16.0, 12.01, 12.43, 13.73, 16.77, 22.92, 25.08, 28.14], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CLONCURRY_AERO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;, &quot;CLONCURRY_AERO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [29.89, 27.98, 27.43, 26.09, 21.47, 16.81, 18.51, 20.32, 23.25, 27.6, 30.37, 30.14], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=HUGHENDEN_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;, &quot;HUGHENDEN_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.38, 27.33, 26.73, 24.53, 20.08, 16.43, 17.48, 19.33, 22.13, 25.88, 27.58, 28.38], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=RICHMOND_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;, &quot;RICHMOND_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [29.15, 27.07, 26.48, 20.5, 16.31, 17.86, 20.29, 22.74, 27.25, 29.23, 29.68], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BOWEN_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;, &quot;BOWEN_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.95, 28.0, 27.35, 26.35, 22.4, 20.2, 20.2, 21.15, 22.35, 24.75, 27.0, 27.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MACKAY_AERO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;, &quot;MACKAY_AERO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.08, 27.17, 25.57, 23.68, 19.72, 17.12, 17.39, 18.68, 19.2, 22.69, 24.23, 25.06], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=TE_KOWAI_EXP_STN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;, &quot;TE_KOWAI_EXP_STN&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.24, 26.38, 24.73, 22.81, 19.23, 16.77, 17.3, 18.15, 19.04, 22.32, 23.73, 24.04], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PINE_ISLET_LIGHTHOUSE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;, &quot;PINE_ISLET_LIGHTHOUSE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.84, 27.94, 27.29, 25.09, 22.39, 19.69, 19.99, 20.69, 21.99, 23.99, 26.33], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MACKAY_MO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;, &quot;MACKAY_MO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.26, 27.36, 25.76, 23.86, 19.86, 17.26, 17.56, 18.86, 19.36, 22.86, 24.46, 25.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CHARTERS_TOWERS_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;, &quot;CHARTERS_TOWERS_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.2, 27.24, 26.58, 23.51, 20.31, 17.45, 17.96, 19.19, 21.71, 24.25, 27.36, 26.03], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CHARTERS_TOWERS_AIRPORT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;, &quot;CHARTERS_TOWERS_AIRPORT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.96, 28.0, 27.36, 24.21, 21.06, 18.2, 18.7, 19.91, 22.46, 24.91, 28.06, 26.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CLERMONT_SIRIUS_ST&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;, &quot;CLERMONT_SIRIUS_ST&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.21, 26.11, 25.25, 21.81, 17.81, 14.51, 16.01, 16.7, 18.86, 22.41, 25.91, 25.71], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=SPRINGSURE_COMET_ST&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;, &quot;SPRINGSURE_COMET_ST&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.24, 25.29, 25.19, 13.74, 17.28, 21.69, 25.19, 25.69], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=TAMBO_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TAMBO_POST_OFFICE&quot;, &quot;TAMBO_POST_OFFICE&quot;, &quot;TAMBO_POST_OFFICE&quot;, &quot;TAMBO_POST_OFFICE&quot;, &quot;TAMBO_POST_OFFICE&quot;, &quot;TAMBO_POST_OFFICE&quot;, &quot;TAMBO_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.75, 24.76, 24.56, 17.31, 21.41, 24.76, 26.16], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BARCALDINE_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;, &quot;BARCALDINE_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.25, 26.25, 26.35, 23.15, 18.35, 14.75, 16.49, 17.4, 20.15, 23.95, 27.45, 27.79], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ISISFORD_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;, &quot;ISISFORD_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.15, 26.6, 24.2, 18.25, 14.15, 15.75, 16.9, 20.3, 23.9, 27.55, 28.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=LONGREACH_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LONGREACH_POST_OFFICE&quot;, &quot;LONGREACH_POST_OFFICE&quot;, &quot;LONGREACH_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.75, 27.39, 27.65], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=LONGREACH_AERO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LONGREACH_AERO&quot;, &quot;LONGREACH_AERO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.57, 26.97], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=LONGREACH_COMPARISON&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LONGREACH_COMPARISON&quot;, &quot;LONGREACH_COMPARISON&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.43, 25.83], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=URANDANGI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;, &quot;URANDANGI&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [30.53, 30.08, 28.88, 25.43, 19.43, 15.03, 16.43, 17.98, 20.73, 25.93, 28.73, 29.63], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=WINTON_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;, &quot;WINTON_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.45, 27.2, 27.25, 24.25, 19.29, 15.35, 17.15, 18.75, 21.8, 25.8, 28.8, 29.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BOULIA_AIRPORT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;, &quot;BOULIA_AIRPORT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [29.32, 29.24, 28.3, 24.3, 18.52, 14.27, 16.0, 17.33, 20.29, 25.8, 28.37, 29.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BILOELA_DPI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;, &quot;BILOELA_DPI&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.0, 26.59, 25.55, 22.4, 17.9, 14.7, 16.1, 16.35, 17.65, 21.6, 24.45, 25.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BULBURIN_FORESTRY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;, &quot;BULBURIN_FORESTRY&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.68, 22.33, 22.38, 19.68, 16.82, 14.13, 14.63, 14.58, 16.08, 18.07, 21.08, 21.13], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BUNDABERG_POST_OFFICE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;, &quot;BUNDABERG_POST_OFFICE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.56, 25.96, 25.36, 22.33, 19.38, 16.43, 16.92, 16.87, 17.99, 20.82, 23.33, 24.02], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=KALPOWAR_FORESTRY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;, &quot;KALPOWAR_FORESTRY&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.62, 23.97, 23.17, 19.67, 14.37, 11.77, 13.17, 13.57, 15.02, 18.82, 22.07, 22.02], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=LADY_ELLIOT_ISLAND&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;, &quot;LADY_ELLIOT_ISLAND&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.49, 25.89, 18.39, 19.64, 20.44, 22.29, 24.49, 25.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=WALTERHALL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;, &quot;WALTERHALL&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.06, 23.91, 24.46, 22.26, 17.8, 14.66, 14.86, 14.86, 18.16, 19.91, 23.31, 24.06], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ROCKHAMPTON_AERO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;, &quot;ROCKHAMPTON_AERO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.27, 27.18, 26.86, 23.79, 19.86, 17.21, 17.61, 18.39, 19.99, 22.67, 25.24, 25.76], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=SANDY_CAPE_LIGHTHOUSE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;, &quot;SANDY_CAPE_LIGHTHOUSE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.43, 25.63, 25.63, 23.13, 20.03, 17.63, 17.78, 18.48, 19.28, 21.43, 23.83, 24.58], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=GLADSTONE_RADAR&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;, &quot;GLADSTONE_RADAR&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.9, 27.0, 26.5, 24.1, 21.2, 18.6, 18.0, 18.8, 19.9, 22.5, 24.7, 25.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=FRANCISTOWN&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;, &quot;FRANCISTOWN&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.51, 25.31, 24.41, 21.71, 18.76, 15.16, 16.61, 20.3, 22.71, 28.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=YACUIBA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;, &quot;YACUIBA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.05, 22.95, 22.25, 19.25, 14.55, 12.65, 13.05, 16.85, 18.85, 22.75, 25.05, 25.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CAMIRI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;, &quot;CAMIRI&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.15, 22.45, 21.55, 20.05, 15.85, 13.85, 14.95, 17.55, 20.95, 23.25, 23.65, 23.65], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=RIO_DE_JANEIRO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;, &quot;RIO_DE_JANEIRO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.65, 28.25, 27.55, 24.95, 23.65, 23.75, 23.25, 23.35, 24.15, 23.45, 24.55, 26.25], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=SAO_PAULO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;, &quot;SAO_PAULO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.5, 22.9, 22.2, 19.6, 17.8, 17.5, 16.8, 17.8, 19.4, 19.4, 20.3, 21.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CAMPINAS_AEROPORTO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;, &quot;CAMPINAS_AEROPORTO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.82, 20.25, 18.27, 17.61, 17.46, 19.08, 20.77, 20.74, 22.35, 21.87], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PONTA_PORA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;, &quot;PONTA_PORA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.5, 25.29, 23.39, 22.09, 17.99, 18.89, 16.79, 22.49, 22.49, 25.59], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=SANTO_S&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;, &quot;SANTO_S&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.13, 25.88, 25.23, 22.93, 20.58, 20.08, 19.53, 19.98, 20.48, 20.73, 22.13, 23.48], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=IGUAPE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;, &quot;IGUAPE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.54, 25.84, 24.34, 21.94, 19.34, 18.64, 18.04, 18.84, 19.54, 20.24, 22.34, 23.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=JUIZ_DE_FORA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;, &quot;JUIZ_DE_FORA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 4, 5, 6, 7, 8, 9, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.21, 20.91, 18.41, 16.91, 15.71, 14.71, 14.51, 17.81, 20.11], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=NITER_OI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;, &quot;NITER_OI&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.28, 27.93, 27.18, 23.68, 22.28, 22.43, 21.58, 21.68, 23.13, 23.03, 24.12, 25.53], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=TEREZ_OPOLIS_S&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;, &quot;TEREZ_OPOLIS_S&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.15, 22.8, 22.05, 18.9, 18.04, 17.25, 15.8, 15.65, 18.85, 19.6, 20.2, 20.15], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BARRA_ITABA_POANA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;, &quot;BARRA_ITABA_POANA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.35, 25.7, 25.25, 23.95, 23.05, 22.4, 21.34, 20.35, 22.3, 22.95, 24.1, 24.55], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CABO_FRIO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;, &quot;CABO_FRIO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.8, 25.4, 25.19, 23.55, 22.4, 21.9, 21.6, 21.3, 21.7, 21.85, 22.9, 23.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=OBSER_VATOR_IO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;, &quot;OBSER_VATOR_IO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.08, 26.88, 25.98, 23.58, 22.13, 22.43, 21.93, 21.98, 22.68, 21.98, 22.98, 25.13], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=RIO_D_OURO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;, &quot;RIO_D_OURO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.75, 26.35, 25.9, 22.4, 21.25, 21.2, 20.29, 20.75, 21.95, 21.55, 22.5, 23.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ANTOFAGASTA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;, &quot;ANTOFAGASTA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.62, 21.18, 19.58, 16.12, 13.98, 13.43, 12.73, 13.13, 14.33, 14.88, 16.98, 18.78], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ANTOFAGASTA_CERRO_MORENO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;, &quot;ANTOFAGASTA_CERRO_MORENO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.92, 21.02, 18.82, 15.22, 13.22, 12.52, 11.92, 12.22, 13.22, 13.92, 16.22, 17.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=RAROTONGA_INTL&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;, &quot;RAROTONGA_INTL&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.26, 25.66, 25.41, 25.16, 23.51, 22.26, 22.26, 22.68, 22.68, 23.78, 23.03, 25.22], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ILE_EUROPA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;, &quot;ILE_EUROPA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.33, 28.23, 26.93, 25.23, 24.23, 22.13, 22.03, 22.03, 23.53, 25.33, 25.93, 27.33], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=RURUTU2TUBU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;, &quot;RURUTU2TUBU&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.07, 25.57, 24.67, 23.47, 22.47, 21.17, 21.37, 21.47, 21.47, 22.77, 22.77, 24.97], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=TOLIARA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;, &quot;TOLIARA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [29.38, 29.18, 27.68, 26.08, 24.58, 21.38, 21.18, 22.78, 24.18, 25.98, 27.18, 28.18], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=IHOSY&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;, &quot;IHOSY&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.28, 24.68, 23.53, 22.82, 20.52, 17.16, 18.12, 18.62, 20.57, 23.57, 23.22, 23.47], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=FIANARANTSOA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;, &quot;FIANARANTSOA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.38, 21.78, 20.33, 19.28, 17.17, 14.83, 14.67, 14.98, 16.38, 19.83, 20.33, 21.08], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BETROKA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;, &quot;BETROKA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.25, 25.5, 23.75, 23.8, 21.15, 17.5, 18.14, 19.55, 22.05, 24.9, 25.45, 25.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PLAISANCE_MAURITIU&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;, &quot;PLAISANCE_MAURITIU&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.26, 26.56, 26.21, 25.11, 23.99, 21.71, 21.68, 21.4, 21.82, 22.45, 24.04, 25.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PAMPLEMOUSSES&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;, &quot;PAMPLEMOUSSES&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.9, 27.3, 26.3, 25.1, 23.7, 21.7, 21.1, 21.1, 21.5, 22.7, 24.1, 25.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=INHAMBANE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;, &quot;INHAMBANE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.87, 27.42, 26.05, 24.28, 23.08, 20.16, 20.09, 20.67, 23.37, 24.85, 24.73, 25.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MAMBONE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;, &quot;MAMBONE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.39, 24.79, 22.89, 19.24, 18.99, 19.53, 24.04, 26.49, 26.69, 26.49], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=KOUMAC_NLLE_CALEDO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;, &quot;KOUMAC_NLLE_CALEDO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.22, 25.79, 25.1, 23.53, 22.06, 21.21, 20.39, 19.02, 20.63, 21.36, 23.43, 23.58], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=NOUMEA_NLLE_CALEDO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;, &quot;NOUMEA_NLLE_CALEDO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.66, 26.32, 25.79, 23.49, 21.88, 20.82, 20.15, 19.48, 20.63, 21.46, 23.81, 23.64], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=NOUMEA_NF&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;, &quot;NOUMEA_NF&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.22, 25.92, 25.22, 22.92, 21.32, 19.62, 19.02, 19.72, 20.32, 23.52, 23.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=NOUMEA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;, &quot;NOUMEA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.7, 26.35, 25.85, 23.55, 21.9, 20.85, 20.2, 19.5, 20.65, 21.5, 23.85, 23.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ANEITYUM&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;, &quot;ANEITYUM&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.49, 26.44, 25.69, 24.24, 23.69, 22.83, 22.79, 21.29, 21.94, 21.94, 23.89, 25.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MARISCAL_ESTIGARRIB&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;, &quot;MARISCAL_ESTIGARRIB&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.96, 26.76, 25.36, 23.36, 18.26, 18.06, 18.06, 21.36, 23.16, 26.56, 29.66, 28.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ST_PIERRE_FONDS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;, &quot;ST_PIERRE_FONDS&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.11, 27.31, 26.51, 24.71, 23.71, 21.21, 21.21, 20.81, 21.31, 22.41, 24.41, 25.41], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=ST_DENIS_GILLOT&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;, &quot;ST_DENIS_GILLOT&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.37, 26.87, 25.82, 25.02, 23.62, 21.57, 21.27, 21.32, 22.17, 22.62, 24.17, 24.87], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=PIETERSBURG_MUNI&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;, &quot;PIETERSBURG_MUNI&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.68, 21.56, 20.25, 18.31, 16.12, 11.6, 13.73, 17.98, 21.79, 21.23, 21.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=NUKUALOFA&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;, &quot;NUKUALOFA&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.59, 25.84, 26.29, 25.94, 24.94, 23.29, 22.59, 21.69, 22.73, 23.54, 23.73, 26.04], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=WINDHOEK&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;, &quot;WINDHOEK&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.11, 22.21, 19.31, 17.61, 15.01, 12.51, 12.71, 16.31, 20.71, 22.91, 22.11, 23.51], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BULAWAYO_GOETZ_OBS&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;, &quot;BULAWAYO_GOETZ_OBS&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.0, 21.4, 20.04, 18.7, 17.2, 12.75, 13.6, 16.0, 19.95, 23.45, 20.7, 20.59], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=MASVINGO&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;, &quot;MASVINGO&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.14, 22.67, 20.6, 19.53, 17.46, 12.45, 13.51, 15.41, 19.96, 23.55, 22.04, 22.13], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=CHIPINGE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;, &quot;CHIPINGE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.34, 22.15, 20.35, 19.41, 18.67, 14.31, 15.5, 16.53, 19.51, 23.0, 20.9, 21.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;hemi=southern hemisphere&lt;br&gt;NAME=BEITBRIDGE&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;, &quot;BEITBRIDGE&quot;], &quot;legendgroup&quot;: &quot;southern hemisphere&quot;, &quot;line&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;dash&quot;: &quot;solid&quot;}, &quot;mode&quot;: &quot;lines&quot;, &quot;name&quot;: &quot;southern hemisphere&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.33, 27.05, 25.41, 23.24, 20.55, 15.55, 15.72, 18.41, 22.79, 26.78, 25.85, 26.02], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;hemi&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;Monthly temperature(celsius) in both hemispheres between 20 - 40 latitudes&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;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;p4_1_real.html&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;Trying the query and plot functions with latitude range of 25-30, we were able to observe some patterns: for southern hemisphere countries, their mid-year temperatures tends to be cooler, and that is the opposite for northern hemisphere countries. This is intuitively correct, but we might observe that the slope for change for each station, even in the same hemisphere, might be different. Therefore, it might be helpful to plot the monthly temperature change for stations as grouped by continents.&lt;/p&gt;

&lt;p&gt;The url below provides a dataset containing country names, their codes, and their corresponding continents.&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;CCcode&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;'ContinentsCountries.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#https://coronadatasource.org/open-data/geo-data/world-regions-continents-countries/
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We first select the needed columns.&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;CCcode&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;CCcode&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Country Name (usual)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Continent'&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Continent Code'&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;CCcode&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;Country Name (usual)&lt;/th&gt;
      &lt;th&gt;Continent&lt;/th&gt;
      &lt;th&gt;Continent Code&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;Afghanistan&lt;/td&gt;
      &lt;td&gt;Asia&lt;/td&gt;
      &lt;td&gt;AS&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;?land Islands&lt;/td&gt;
      &lt;td&gt;Europe&lt;/td&gt;
      &lt;td&gt;EU&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;Albania&lt;/td&gt;
      &lt;td&gt;Europe&lt;/td&gt;
      &lt;td&gt;EU&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;Algeria&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
      &lt;td&gt;AF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;American Samoa&lt;/td&gt;
      &lt;td&gt;Oceania&lt;/td&gt;
      &lt;td&gt;OC&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;248&lt;/th&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
      &lt;td&gt;AF&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;249&lt;/th&gt;
      &lt;td&gt;Kosovo&lt;/td&gt;
      &lt;td&gt;Europe&lt;/td&gt;
      &lt;td&gt;EU&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;250&lt;/th&gt;
      &lt;td&gt;Netherlands Antilles&lt;/td&gt;
      &lt;td&gt;North America&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;251&lt;/th&gt;
      &lt;td&gt;Others&lt;/td&gt;
      &lt;td&gt;Others&lt;/td&gt;
      &lt;td&gt;XX&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;252&lt;/th&gt;
      &lt;td&gt;# Undefined&lt;/td&gt;
      &lt;td&gt;Others&lt;/td&gt;
      &lt;td&gt;XX&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;253 rows × 3 columns&lt;/p&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;CCcode&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Continent'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unique&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;array(['Asia', 'Europe', 'Africa', 'Oceania', 'North America',
       'Antarctica', 'South America', 'Others'], dtype=object)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As usual, we add the country-continent code dataset to the temps 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;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;CCcode&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;CCcode&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;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;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;/Users/feishu/opt/anaconda3/envs/PIC16B/lib/python3.7/site-packages/pandas/core/generic.py:2789: UserWarning:

The spaces in these column names will not be changed. In pandas versions &amp;lt; 0.14, spaces were converted to underscores.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, we create a query to return a dataframe with countries’ yearly temperature, with specified continents, in a specific 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_temp_continent&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;s&quot;&gt;'''return a table with countries' yearly temperature, marked by continent,
    in a specific year
    '''&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;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 T.id, T.month, T.temp, C.name, T.year, O.continent
    FROM temperatures T
    LEFT JOIN stations S ON T.id = S.id
    LEFT JOIN countries C ON S.id_ = C.`fips 10-4`
    LEFT JOIN cccode O ON O.`country name (usual)` = C.name
    WHERE T.year =?
    &quot;&quot;&quot;&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;year&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;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_query&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;n&quot;&gt;params&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#df_south = pd.read_sql_query(cmd_s, conn)
&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;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;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;df3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;query_temp_continent&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1969&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;df3&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;Month&lt;/th&gt;
      &lt;th&gt;Temp&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;Year&lt;/th&gt;
      &lt;th&gt;Continent&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;1&lt;/td&gt;
      &lt;td&gt;-0.81&lt;/td&gt;
      &lt;td&gt;Antigua and Barbuda&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;North America&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;2&lt;/td&gt;
      &lt;td&gt;-4.41&lt;/td&gt;
      &lt;td&gt;Antigua and Barbuda&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;North America&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;3&lt;/td&gt;
      &lt;td&gt;-1.32&lt;/td&gt;
      &lt;td&gt;Antigua and Barbuda&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;North America&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;4&lt;/td&gt;
      &lt;td&gt;5.50&lt;/td&gt;
      &lt;td&gt;Antigua and Barbuda&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;North America&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;5&lt;/td&gt;
      &lt;td&gt;10.15&lt;/td&gt;
      &lt;td&gt;Antigua and Barbuda&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;North America&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;164000&lt;/th&gt;
      &lt;td&gt;ZIXLT622116&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;14.60&lt;/td&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;164001&lt;/th&gt;
      &lt;td&gt;ZIXLT622116&lt;/td&gt;
      &lt;td&gt;9&lt;/td&gt;
      &lt;td&gt;17.80&lt;/td&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;164002&lt;/th&gt;
      &lt;td&gt;ZIXLT622116&lt;/td&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;21.00&lt;/td&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;164003&lt;/th&gt;
      &lt;td&gt;ZIXLT622116&lt;/td&gt;
      &lt;td&gt;11&lt;/td&gt;
      &lt;td&gt;20.40&lt;/td&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;164004&lt;/th&gt;
      &lt;td&gt;ZIXLT622116&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;19.10&lt;/td&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;1969&lt;/td&gt;
      &lt;td&gt;Africa&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;164005 rows × 6 columns&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Now, we create a plot function that plots the monthly change of temperature colorized by countries. The function will be supplied to the future groupby and apply method.&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;plot_line_cont2&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;cont&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;s&quot;&gt;'Continent'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unique&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;=&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;n&quot;&gt;unique&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;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;Month&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;Temp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&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;Name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&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;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Monthly avg Temperature of countries(&amp;amp; regions) in '&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cont&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;s&quot;&gt;' in '&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;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;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;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;n&quot;&gt;cont&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;s&quot;&gt;&quot;.html&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;df3&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;'Continent'&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;plot_line_cont2&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;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;/tbody&gt;
&lt;/table&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;40a47d28-6a4c-476d-9cef-09a76cf1a538&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;40a47d28-6a4c-476d-9cef-09a76cf1a538&quot;)) {                    Plotly.newPlot(                        &quot;40a47d28-6a4c-476d-9cef-09a76cf1a538&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Algeria&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;, &quot;Algeria&quot;], &quot;legendgroup&quot;: &quot;Algeria&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Algeria&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 3, 4, 5, 6, 7, 8, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.06, 10.26, 12.76, 14.06, 17.76, 19.46, 22.26, 23.86, 20.86, 17.66, 14.66, 9.56, 11.18, 15.3, 18.59, 19.84, 26.07, 29.9, 30.41, 32.46, 28.41, 21.63, 17.57, 9.04, 10.82, 18.13, 21.43, 22.23, 28.0, 33.49, 30.03, 31.67, 30.72, 22.97, 18.67, 9.6, 13.34, 17.8, 21.84, 21.84, 26.3, 30.33, 28.77, 28.62, 27.83, 22.27, 18.18, 14.64, 6.55, 6.05, 8.95, 11.45, 17.05, 18.25, 21.57, 22.67, 18.57, 14.07, 11.17, 4.97, 12.19, 12.59, 17.29, 18.79, 26.19, 28.79, 31.59, 30.49, 25.49, 19.69, 15.79, 10.19, 8.74, 9.44, 13.74, 15.64, 22.54, 25.24, 27.54, 27.74, 22.04, 15.94, 12.44, 6.44, 10.24, 10.24, 12.24, 13.94, 17.44, 18.84, 21.64, 23.54, 21.24, 18.04, 14.84, 9.44, 11.65, 11.25, 13.75, 14.95, 18.35, 20.85, 23.55, 24.55, 21.05, 18.15, 14.55, 9.95, 10.94, 14.24, 17.64, 17.74, 24.14, 28.04, 31.24, 32.04, 26.14, 19.64, 15.34, 8.04, 11.66, 14.26, 19.26, 20.86, 30.96, 31.16, 33.06, 17.26, 10.26, 12.53, 18.03, 20.83, 21.03, 27.03, 31.43, 32.63, 34.73, 30.43, 22.33, 18.73, 9.63, 14.83, 20.33, 23.93, 23.43, 30.63, 34.83, 34.93, 35.63, 33.23, 25.03, 21.73, 12.23, 14.04, 17.74, 20.34, 18.34, 23.54, 25.04, 32.44, 33.34, 27.24, 21.44, 19.04, 12.04, 13.9, 19.6, 18.1, 22.4, 28.8, 32.9, 34.4, 36.3, 31.9, 24.2, 20.1, 11.1, 12.38, 19.08, 23.38, 23.88, 27.78, 32.88, 30.08, 30.68, 30.28, 23.78, 17.68, 13.55, 13.95, 17.75, 19.15, 22.45, 24.25, 18.35, 15.75, 10.25], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Angola&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;, &quot;Angola&quot;], &quot;legendgroup&quot;: &quot;Angola&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Angola&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.28, 29.48, 29.18, 28.68, 27.58, 24.18, 21.78, 22.28, 23.68, 25.58, 27.18, 27.78, 21.1, 21.7, 22.3, 22.0, 19.9, 16.7, 17.3, 20.9, 21.8, 21.8, 21.2, 21.6, 19.2, 19.3, 19.5, 19.4, 17.6, 16.5, 16.0, 18.9, 21.5, 21.0, 20.2, 20.2, 22.03, 21.73, 22.43, 21.53, 18.63, 15.73, 15.23, 18.83, 20.83, 23.63, 22.43, 23.03, 23.0, 24.75, 25.7, 24.65, 19.4, 16.95, 15.6, 16.79, 18.15, 18.75, 21.85, 21.0, 25.76, 24.96, 25.26, 24.06, 20.86, 17.66, 17.56, 21.06, 23.66, 26.16, 25.66, 22.51, 23.01, 22.91, 23.01, 23.31, 21.71, 20.31, 19.81, 23.84, 24.44, 24.64, 24.84, 25.04, 24.24, 24.44, 24.64, 24.14, 24.14, 24.14, 24.14, 22.2, 23.1, 23.0, 23.0, 22.5, 20.4, 20.3, 22.2, 22.7, 22.3, 21.8, 22.2, 23.1, 21.8, 20.3, 20.7, 22.6, 23.1, 21.9, 21.6, 21.6, 21.1, 21.1, 21.6, 21.6, 19.6, 17.6, 18.1, 21.5, 22.6, 21.7, 21.4, 21.2, 19.5, 20.1, 20.5, 20.3, 18.6, 16.9, 16.5, 19.4, 20.8, 20.3, 19.8, 19.8, 19.2, 19.8, 20.2, 20.1, 19.1, 17.1, 16.5, 19.4, 21.5, 20.7, 20.1, 20.2, 21.8, 20.7, 22.2, 22.8, 20.8, 22.1, 23.7, 23.3, 21.5, 21.3, 18.8, 18.9, 19.1, 19.4, 17.6, 16.0, 15.6, 18.5, 20.8, 20.6, 19.7, 19.8, 25.07, 26.72, 27.17, 27.07, 23.97, 20.82, 18.37, 19.17, 20.57, 22.61, 25.11, 25.12, 26.49, 26.89, 27.44, 27.29, 26.24, 23.04, 21.29, 21.83, 23.04, 24.64, 25.69, 25.99], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Botswana&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;, &quot;Botswana&quot;], &quot;legendgroup&quot;: &quot;Botswana&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Botswana&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.8, 25.6, 26.6, 25.9, 25.8, 28.11, 26.49, 24.11, 22.83, 18.72, 16.49, 16.37, 19.94, 22.69, 26.01, 26.8, 25.57, 28.05, 25.66, 23.18, 20.76, 15.34, 14.74, 13.64, 16.24, 18.59, 22.23, 25.83, 26.51, 27.76, 26.97, 23.55, 19.75, 14.72, 12.88, 12.16, 14.3, 16.62, 20.63, 24.88, 27.47, 29.72, 28.72, 25.22, 22.52, 18.12, 16.12, 15.62, 17.62, 21.92, 24.62, 26.52, 26.22, 26.88, 26.83, 22.2, 20.95, 16.29, 21.08, 29.07, 26.57, 24.67, 23.77, 17.67, 16.57, 14.87, 18.07, 20.27, 23.97, 26.67, 25.47, 28.22, 27.67, 23.53, 22.6, 18.14, 16.84, 15.96, 18.25, 21.87, 24.2, 25.39, 23.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Benin&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;, &quot;Benin&quot;], &quot;legendgroup&quot;: &quot;Benin&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Benin&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.78, 28.73, 32.5, 31.45, 30.54, 28.21, 25.72, 25.6, 26.01, 27.27, 25.77, 25.2, 25.84, 28.63, 30.05, 28.88, 28.29, 26.53, 24.39, 23.86, 24.27, 24.95, 24.62, 25.71, 26.32, 29.12, 30.52, 29.37, 28.76, 27.02, 27.3, 29.6, 28.37, 28.1, 27.54, 26.12, 24.44, 24.2, 24.33, 25.23, 26.29, 27.56, 26.5, 28.45, 28.64, 28.26, 27.3, 26.4, 25.27, 25.04, 25.64, 25.67, 26.66, 27.59, 24.85, 28.75, 32.55, 31.55, 30.55, 28.25, 25.75, 25.65, 26.05, 27.35, 25.85, 25.25, 26.48, 29.68, 29.38, 28.88, 27.18, 26.18, 24.78, 24.48, 24.58, 25.78, 25.88, 26.28], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Chad&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;, &quot;Chad&quot;], &quot;legendgroup&quot;: &quot;Chad&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Chad&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [22.2, 27.34, 32.13, 33.57, 32.66, 31.23, 28.77, 27.15, 27.88, 29.62, 27.1, 25.53, 21.92, 27.07, 31.82, 33.27, 32.37, 30.92, 28.47, 26.82, 27.57, 29.32, 26.82, 25.21, 24.26, 28.66, 32.63, 33.43, 31.41, 29.26, 26.86, 26.48, 26.94, 28.1, 27.45, 26.74, 24.09, 28.65, 32.59, 31.63, 29.91, 27.0, 25.7, 25.08, 25.43, 27.1, 26.32, 25.79, 26.6, 26.1, 26.72, 27.67, 27.42, 26.5, 22.5, 27.12, 32.24, 34.14, 34.08, 33.65, 30.17, 28.65, 29.25, 31.37, 28.29, 26.64, 19.26, 24.7, 29.5, 31.98, 33.24, 34.75, 33.63, 33.3, 34.03, 31.87, 25.44, 23.29, 24.57, 27.49, 30.89, 32.09, 31.38, 29.38, 27.13, 26.37, 26.44, 28.25, 27.09, 26.33, 25.4, 29.43, 32.78, 34.3, 32.66, 30.59, 27.61, 26.31, 27.1, 28.98, 28.71, 27.83, 25.26, 29.4, 32.99, 32.71, 31.08, 28.54, 27.31, 26.89, 27.38, 28.45, 27.69, 26.15, 22.6, 27.3, 32.34, 34.25, 34.2, 33.8, 30.25, 28.75, 29.34, 31.5, 28.4, 26.75, 19.15, 24.7, 29.4, 31.84, 33.15, 34.7, 33.55, 33.2, 33.95, 31.75, 25.35, 23.2, 24.7, 27.65, 30.85, 32.25, 31.49, 29.5, 27.2, 26.45, 26.6, 28.4, 27.2, 26.74, 24.25, 28.85, 32.75, 31.55, 29.85, 26.9, 25.6, 25.0, 25.35, 27.0, 26.2, 25.7, 24.86, 28.16, 29.56, 30.96, 29.56, 27.26, 26.16, 25.56, 26.26, 27.16, 26.96, 26.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Cameroon&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;, &quot;Cameroon&quot;], &quot;legendgroup&quot;: &quot;Cameroon&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Cameroon&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 5, 7, 9, 10, 11, 12, 1, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.0, 26.9, 27.3, 24.2, 24.7, 25.7, 26.3, 26.9, 20.72, 22.23, 20.73, 20.53, 23.36, 28.26, 32.56, 33.06, 31.26, 28.16, 26.46, 25.96, 26.36, 27.96, 27.06, 25.66, 25.89, 30.39, 34.59, 33.19, 32.29, 28.69, 27.39, 26.89, 27.39, 28.29, 27.89, 26.59, 22.2, 24.6, 24.5, 24.3, 23.4, 22.6, 22.0, 21.4, 22.1, 22.5, 22.4, 22.6, 22.4, 24.7, 24.3, 24.6, 23.7, 22.8, 22.3, 22.0, 22.4, 22.5, 22.4, 23.0, 25.7, 28.0, 27.5, 28.0, 27.8, 26.6, 25.6, 25.4, 25.8, 26.5, 26.3, 26.3, 21.8, 23.1, 23.1, 22.7, 21.8, 21.3, 20.6, 20.4, 20.6, 20.8, 21.1, 21.7, 23.29, 24.99, 23.19, 23.09, 22.79, 21.59, 20.99, 20.69, 21.29, 21.69, 22.49, 23.09, 22.9, 24.9, 24.4, 24.7, 24.2, 22.9, 22.3, 22.5, 22.8, 23.1, 23.1, 23.2, 23.0, 24.3, 24.1, 24.4, 23.9, 22.6, 21.6, 21.6, 22.0, 22.7, 23.4, 23.4, 25.1, 27.3, 26.3, 26.6, 26.1, 24.9, 24.2, 24.3, 24.6, 24.8, 25.1, 25.5, 22.31, 23.91, 24.31, 25.01, 24.71, 23.31, 22.91, 22.71, 23.01, 22.81, 23.11, 22.01, 22.4, 23.9, 24.6, 24.9, 24.6, 23.5, 22.7, 23.1, 23.7, 23.3, 23.6, 23.0, 23.1, 24.1, 24.9, 25.4, 25.0, 23.2, 23.2, 23.6, 23.2, 23.4, 22.6, 27.73, 28.53, 28.13, 28.43, 28.03, 26.73, 25.23, 25.43, 25.73, 26.43, 26.73, 27.83, 23.44, 24.64, 24.04, 24.64, 24.34, 23.14, 21.94, 22.14, 22.54, 22.74, 23.24, 23.44], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Comoros&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;, &quot;Comoros&quot;], &quot;legendgroup&quot;: &quot;Comoros&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Comoros&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.2, 26.0, 24.6, 24.3, 23.8, 24.1, 25.8, 26.4, 27.0, 27.41, 27.26, 27.21, 27.21, 26.15, 24.86, 24.01, 23.71, 23.71, 25.56, 26.51, 26.96], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Central African Republic&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;, &quot;Central African Republic&quot;], &quot;legendgroup&quot;: &quot;Central African Republic&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Central African Republic&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.47, 25.28, 25.27, 25.51, 25.3, 24.59, 23.79, 23.94, 24.14, 23.64, 24.44, 24.26, 23.64, 25.63, 24.28, 24.76, 23.95, 22.79, 21.67, 21.61, 22.11, 22.38, 23.77, 24.81, 24.13, 26.65, 25.96, 26.92, 26.22, 25.3, 24.28, 23.93, 24.03, 23.55, 24.9, 25.71, 23.42, 27.11, 27.81, 28.46, 27.56, 26.01, 25.6, 25.15, 25.58, 25.21, 25.55, 25.08, 24.82, 28.34, 28.75, 28.33, 27.42, 25.38, 24.69, 24.58, 24.8, 25.33, 25.23, 25.57, 23.93, 25.88, 26.63, 26.69, 25.82, 24.85, 24.08, 23.93, 24.53, 24.63, 24.75, 24.2, 24.19, 25.57, 25.48, 25.99, 25.61, 24.54, 23.83, 23.93, 24.12, 23.68, 25.07, 25.04, 23.68, 24.65, 26.65, 26.35, 26.42, 25.72, 24.63, 23.83, 23.83, 24.62, 24.77, 25.31, 24.85, 23.37, 25.19, 26.7, 26.46, 25.66, 24.9, 23.94, 24.24, 24.35, 24.24, 24.23, 23.73, 24.71, 25.98, 26.25, 26.73, 26.15, 25.47, 24.3, 24.58, 24.71, 24.79, 25.69, 25.76, 23.39, 25.09, 23.89, 24.29, 23.29, 22.29, 21.29, 21.09, 21.99, 21.99, 23.59, 24.49, 22.35, 25.95, 26.75, 27.35, 26.45, 24.85, 24.45, 23.85, 24.15, 24.15, 24.35, 23.95], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Djibouti&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;, &quot;Djibouti&quot;], &quot;legendgroup&quot;: &quot;Djibouti&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Djibouti&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.87, 25.37, 26.97, 28.67, 30.27, 32.37, 35.37, 33.87, 31.57, 28.07, 26.37, 24.87], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Egypt&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;, &quot;Egypt&quot;], &quot;legendgroup&quot;: &quot;Egypt&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Egypt&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.37, 14.47, 16.47, 16.17, 19.77, 24.97, 24.37, 24.57, 24.67, 21.87, 18.37, 14.07, 14.7, 20.5, 25.6, 25.9, 30.4, 34.5, 32.7, 33.6, 33.2, 29.0, 22.7, 18.1, 12.19, 16.49, 20.99, 20.19, 25.39, 28.69, 29.19, 29.39, 24.19, 11.87, 17.97, 23.37, 23.17, 27.77, 32.77, 30.07, 30.57, 31.37, 26.37, 19.37, 13.67, 11.71, 17.31, 21.31, 20.41, 25.61, 31.01, 28.11, 29.31, 29.11, 24.51, 18.71, 13.81, 13.1, 16.4, 18.2, 17.3, 21.6, 26.8, 25.4, 25.7, 26.4, 22.6, 19.6, 15.5, 12.76, 15.66, 17.36, 17.56, 21.46, 25.96, 25.96, 26.16, 26.56, 23.96, 20.96, 16.06, 12.11, 14.31, 16.61, 16.71, 20.91, 25.01, 24.81, 25.01, 25.31, 22.01, 18.81, 14.61, 14.34, 17.54, 20.04, 18.64, 22.84, 25.94, 23.84, 19.74, 16.04, 12.3, 17.2, 20.0, 19.9, 24.8, 29.0, 27.1, 28.1, 28.1, 24.7, 20.1, 15.5, 10.97, 15.57, 19.67, 20.47, 25.77, 29.57, 27.67, 27.87, 27.77, 24.37, 18.77, 13.27, 11.56, 16.66, 21.46, 20.56, 26.26, 30.16, 27.26, 27.66, 28.06, 24.56, 18.66, 14.26, 12.9, 18.6, 23.6, 24.4, 29.6, 33.5, 31.3, 32.2, 32.1, 27.6, 21.7, 15.7, 11.84, 18.54, 23.44, 23.34, 28.84, 33.34, 30.54, 31.44, 31.94, 27.24, 20.74, 15.54, 15.96, 18.16, 21.06, 21.66, 25.06, 28.26, 27.76, 28.56, 27.96, 25.76, 22.46, 19.16, 12.1, 14.6, 16.8, 20.0, 24.7, 25.5, 23.0, 21.9, 18.3, 14.2, 13.1, 17.2, 20.0, 19.7, 24.4, 28.5, 26.7, 27.5, 27.5, 24.2, 19.7, 15.9, 11.94, 16.24, 20.44, 19.54, 24.64, 26.64, 28.04, 28.44, 28.84, 23.94, 17.94, 13.14], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Eritrea&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;, &quot;Eritrea&quot;], &quot;legendgroup&quot;: &quot;Eritrea&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Eritrea&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.77, 13.4, 15.56, 16.6, 16.86, 17.43, 15.41, 15.2, 15.34, 14.48, 13.68, 12.36, 22.85, 22.79, 25.55, 26.73, 29.57, 32.11, 32.83, 32.69, 31.63, 28.43, 26.52, 24.11, 27.68, 27.72, 30.0, 31.95, 33.11, 34.01, 35.1, 35.49, 33.07, 31.59, 29.86, 27.55], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Ethiopia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;, &quot;Ethiopia&quot;], &quot;legendgroup&quot;: &quot;Ethiopia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Ethiopia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 1, 2, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 7, 9, 1, 2, 4, 5, 6, 7, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.41, 15.78, 16.71, 18.66, 19.18, 20.3, 17.01, 16.33, 16.77, 16.73, 15.39, 14.03, 18.88, 19.82, 21.13, 22.25, 21.6, 20.51, 17.89, 18.21, 19.19, 19.43, 19.94, 19.78, 17.46, 18.2, 21.42, 22.21, 22.2, 21.33, 19.27, 18.8, 19.32, 19.27, 18.3, 16.66, 17.11, 15.54, 16.13, 16.84, 17.76, 18.4, 19.29, 19.45, 19.41, 18.79, 17.68, 17.93, 18.54, 17.89, 16.69, 18.49, 18.94, 19.36, 18.43, 17.17, 16.18, 16.21, 16.87, 17.73, 18.22, 19.22, 15.99, 15.69, 16.85, 17.55, 17.62, 16.49, 16.06, 15.85, 15.98, 15.38, 14.54, 13.44, 18.34, 22.98, 21.11, 24.6, 26.17, 27.26, 28.61, 18.07, 18.18, 17.68, 15.64, 14.61, 13.41, 13.58, 14.31, 15.07, 15.49, 15.01, 14.59, 14.11, 14.37, 13.65, 12.76, 19.33, 19.91, 20.59, 20.3, 19.56, 18.27, 17.69, 17.69, 18.95, 18.89, 18.38, 18.32, 20.06, 20.46, 20.26, 18.76, 17.76, 17.06, 17.56, 19.06, 18.56, 19.16, 19.36, 19.68, 18.48, 15.88, 16.98, 16.41, 16.01, 19.21, 21.41, 23.61, 21.11, 20.11, 19.71, 16.81, 13.81, 13.71, 14.21, 15.01, 15.31, 14.91, 14.11, 14.01, 13.91, 13.61, 13.01, 16.46, 16.16, 19.56, 18.76, 16.76, 15.66, 15.26, 16.16, 16.86, 16.06, 16.83, 16.53, 17.23, 18.43, 19.13, 16.43, 16.03, 15.63, 16.53, 17.23, 16.73, 16.43], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Gabon&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;, &quot;Gabon&quot;], &quot;legendgroup&quot;: &quot;Gabon&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Gabon&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.36, 27.33, 27.2, 27.34, 27.09, 25.1, 23.87, 24.51, 25.2, 25.58, 26.13, 26.66, 26.56, 27.66, 27.72, 27.84, 26.91, 24.07, 22.71, 24.2, 25.46, 25.99, 26.26, 26.65, 26.34, 27.07, 27.53, 27.58, 25.98, 23.46, 21.81, 22.33, 23.49, 24.52, 25.2, 26.18, 26.33, 26.96, 26.91, 27.25, 26.62, 24.87, 23.55, 24.46, 24.97, 25.26, 25.59, 26.33, 27.18, 27.97, 28.62, 28.51, 27.37, 24.56, 23.4, 23.96, 25.09, 26.13, 26.59, 27.06, 24.71, 25.63, 25.84, 25.87, 25.52, 24.62, 22.88, 23.74, 24.18, 24.56, 24.69, 24.99, 23.03, 23.94, 24.89, 24.52, 24.44, 22.62, 21.79, 22.16, 23.25, 23.62, 23.21, 23.05, 26.3, 27.55, 27.7, 27.96, 27.02, 24.49, 23.02, 23.55, 25.31, 26.48, 26.1, 26.86, 24.83, 25.92, 25.22, 23.54, 23.11, 23.82, 24.8, 25.13, 25.02, 24.74, 25.67, 23.49, 22.44, 23.44, 24.79, 24.97, 24.95, 24.51, 23.58, 25.25, 25.12, 24.96, 24.32, 22.71, 21.83, 22.74, 23.63, 23.69, 23.6, 23.54, 26.52, 26.92, 27.42, 27.42, 26.11, 23.61, 21.91, 22.41, 23.61, 24.71, 24.41, 26.31, 23.98, 24.87, 24.99, 25.42, 24.79, 22.63, 21.71, 22.5, 23.84, 24.14, 24.15, 24.55, 26.53, 27.73, 27.93, 28.23, 28.23, 24.73, 23.23, 23.83, 25.53, 26.83, 26.33, 27.13, 26.75, 27.45, 28.0, 28.0, 27.2, 24.45, 23.2, 24.05, 25.75, 26.35, 26.59, 27.2, 23.96, 25.36, 25.66, 25.26, 24.76, 23.15, 22.11, 23.11, 24.31, 24.21, 24.06, 24.32], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Ghana&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;, &quot;Ghana&quot;], &quot;legendgroup&quot;: &quot;Ghana&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Ghana&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.42, 32.12, 34.22, 32.42, 31.62, 29.82, 27.02, 27.12, 28.02, 27.92, 28.22, 28.73, 31.83, 32.33, 31.13, 30.43, 28.03, 26.63, 25.83, 26.33, 27.03, 28.33, 28.63, 28.91, 31.71, 32.31, 30.31, 29.71, 28.51, 26.91, 26.21, 26.31, 27.61, 27.11, 28.21, 25.3, 27.3, 26.9, 26.8, 26.1, 24.8, 23.8, 23.6, 24.1, 23.9, 24.4, 25.2, 26.47, 27.77, 27.87, 27.37, 26.97, 25.57, 24.47, 24.27, 24.77, 25.07, 26.07, 26.57, 26.51, 27.71, 27.81, 28.01, 27.41, 26.21, 24.91, 24.21, 24.41, 25.21, 26.41, 26.81, 27.28, 28.78, 28.58, 28.88, 28.08, 26.38, 24.98, 25.08, 25.18, 26.18, 28.08, 27.78, 27.55, 31.15, 31.75, 29.75, 29.25, 26.65, 25.65, 25.85, 27.05, 26.95, 27.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guinea&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;, &quot;Guinea&quot;], &quot;legendgroup&quot;: &quot;Guinea&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guinea&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.2, 22.3, 24.7, 24.2, 24.6, 22.7, 21.7, 21.4, 21.3, 21.6, 20.4, 19.2, 26.2, 29.2, 31.6, 31.3, 30.3, 26.3, 25.4, 24.8, 25.4, 25.9, 26.0, 24.7, 27.6, 28.2, 29.9, 30.5, 29.9, 27.9, 26.1, 26.0, 25.9, 26.4, 27.6, 26.4, 25.02, 26.12, 26.72, 28.12, 26.62, 24.22, 23.12, 23.32, 23.42, 23.62, 25.02, 25.32, 23.39, 25.39, 25.79, 25.79, 24.99, 22.89, 22.29, 21.89, 21.89, 21.59, 22.39, 22.49, 25.7, 29.3, 30.4, 30.7, 29.1, 26.6, 25.4, 25.2, 25.9, 25.7, 26.0, 24.5, 25.46, 25.66, 26.76, 27.86, 27.66, 25.56, 24.56, 24.36, 24.56, 24.96, 26.16, 25.96, 24.2, 24.5, 25.5, 26.2, 25.3, 24.8, 23.2, 23.5, 24.2, 23.9, 23.6, 23.8, 25.12, 25.92, 26.12, 26.32, 25.82, 24.82, 23.52, 23.52, 24.52, 24.62, 24.32, 24.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Kenya&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;, &quot;Kenya&quot;], &quot;legendgroup&quot;: &quot;Kenya&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Kenya&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.05, 23.7, 23.8, 28.64, 28.79, 30.14, 30.69, 28.59, 28.24, 27.74, 27.59, 28.44, 28.09, 27.59, 27.79, 18.82, 19.22, 19.22, 19.82, 19.42, 18.02, 17.62, 17.62, 18.02, 18.42, 18.02, 18.42, 27.7, 28.55, 29.25, 29.05, 28.4, 27.2, 26.8, 27.4, 28.0, 26.2, 24.1, 23.6, 23.6, 24.2, 25.4, 26.3, 27.2, 27.4, 28.7, 29.6, 29.5, 28.0, 26.8, 26.9, 26.6, 27.2, 28.6, 28.0, 28.4, 22.99, 22.89, 23.69, 23.89, 22.79, 22.29, 22.09, 22.29, 23.79, 23.39, 23.19, 23.49, 17.99, 18.09, 17.99, 18.49, 17.69, 16.89, 15.69, 15.59, 17.79, 18.29, 17.89, 18.09, 17.99, 17.99, 18.79, 19.49, 17.84, 16.34, 15.39, 15.69, 17.89, 19.44, 18.69, 18.49, 26.67, 26.57, 27.82, 28.22, 26.32, 24.67, 24.62, 24.17, 24.47, 25.32, 26.12, 26.62, 17.15, 17.35, 16.9, 17.7, 17.1, 16.2, 17.78, 17.63, 18.48, 18.83, 18.68, 17.73, 18.03, 17.58, 18.38, 17.98, 17.83, 18.03, 19.67, 19.47, 20.32, 20.97, 19.07, 17.67, 16.77, 16.82, 19.12, 20.52, 19.62, 19.42, 15.65, 16.5, 16.9, 16.95, 16.9, 16.25, 15.85, 15.85, 17.05, 16.35, 15.9, 15.35], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Liberia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;, &quot;Liberia&quot;], &quot;legendgroup&quot;: &quot;Liberia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Liberia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.09, 26.59, 26.69, 26.49, 26.19, 24.69, 23.49, 23.19, 23.99, 24.39, 24.59, 25.0, 25.55, 26.09, 25.55, 25.0, 24.45, 24.7, 25.0, 25.55, 25.84, 26.34], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Lesotho&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;, &quot;Lesotho&quot;], &quot;legendgroup&quot;: &quot;Lesotho&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Lesotho&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.0, 18.25, 14.6, 10.5, 8.5, 9.0, 10.3, 13.35, 15.79, 19.6, 22.05], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Libya&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;, &quot;Libya&quot;], &quot;legendgroup&quot;: &quot;Libya&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Libya&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.85, 17.95, 21.65, 22.95, 27.25, 32.85, 28.75, 30.75, 30.45, 24.05, 18.65, 10.65, 12.88, 18.48, 22.18, 21.48, 26.88, 31.88, 27.48, 29.58, 30.08, 23.08, 19.38, 12.48, 12.75, 19.05, 23.55, 25.05, 28.45, 32.85, 29.95, 31.05, 31.65, 27.85, 20.15, 15.45, 10.3, 14.7, 17.7, 17.9, 25.3, 29.1, 27.0, 27.8, 27.5, 20.5, 17.8, 9.3, 9.88, 13.88, 16.28, 17.08, 24.28, 26.48, 25.88, 27.68, 25.98, 19.48, 17.18, 8.38, 13.18, 14.68, 17.18, 17.58, 21.98, 24.18, 24.28, 27.08, 25.88, 21.78, 19.08, 11.68, 13.31, 14.6, 17.73, 18.01, 23.38, 25.26, 24.67, 27.11, 22.0, 18.5, 12.14, 12.29, 14.22, 16.43, 16.98, 22.43, 24.11, 24.29, 26.44, 20.8, 18.15, 11.28, 12.1, 14.3, 17.3, 18.3, 24.7, 26.7, 26.1, 28.4, 27.1, 21.5, 18.3, 11.6, 12.64, 14.24, 16.64, 16.84, 21.84, 24.44, 24.14, 26.34, 26.64, 21.44, 19.14, 12.24, 14.33, 16.53, 18.53, 18.73, 22.83, 26.63, 24.73, 26.63, 27.23, 22.33, 20.13, 13.93, 11.06, 14.46, 16.36, 17.06, 23.16, 27.56, 24.56, 26.26, 27.76, 20.86, 18.46, 11.76, 12.59, 16.19, 18.79, 18.59, 23.89, 28.49, 24.89, 26.69, 28.69, 22.29, 18.89, 13.49, 7.99, 10.89, 12.39, 12.09, 17.69, 23.69, 20.59, 21.89, 22.69, 15.69, 14.39, 9.69, 8.31, 9.91, 15.31, 18.81, 29.31, 26.21, 19.81, 17.01, 11.01, 11.34, 16.54, 20.14, 20.94, 27.84, 32.74, 29.84, 31.24, 29.34, 21.94, 19.14, 10.24, 13.26, 17.66, 21.86, 21.06, 26.16, 31.66, 27.96, 29.26, 30.76, 24.36, 18.96, 14.66, 11.91, 16.01, 20.51, 19.61, 24.71, 27.31, 27.41, 28.11, 28.31, 23.71, 17.91, 12.61, 13.15, 18.85, 23.65, 24.25, 27.85, 33.05, 29.25, 30.25, 31.25, 26.75, 19.65, 14.75, 8.2, 11.8, 14.1, 14.9, 22.7, 25.1, 24.3, 25.1, 23.7, 17.9, 16.1, 7.9, 10.81, 14.01, 16.11, 16.41, 21.31, 26.71, 24.51, 25.01, 25.61, 20.61, 17.01, 12.51, 11.1, 13.9, 16.8, 17.9, 24.3, 26.0, 25.5, 20.6, 17.7, 10.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Madagascar&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;, &quot;Madagascar&quot;], &quot;legendgroup&quot;: &quot;Madagascar&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Madagascar&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.58, 25.48, 27.18, 26.88, 26.58, 24.88, 24.98, 24.78, 25.28, 26.58, 26.98, 26.78, 26.16, 26.96, 26.96, 26.16, 23.16, 21.76, 21.26, 20.96, 21.46, 23.96, 25.56, 26.76, 26.7, 26.9, 27.2, 26.1, 23.4, 21.1, 21.1, 20.9, 21.6, 24.2, 25.2, 26.5, 28.88, 29.18, 28.48, 26.88, 23.98, 21.28, 21.78, 22.88, 21.88, 25.88, 26.68, 28.08, 26.56, 26.56, 26.06, 24.46, 21.96, 19.56, 20.56, 19.76, 20.36, 23.86, 24.06, 25.06, 28.66, 28.36, 29.56, 28.76, 26.66, 23.96, 24.46, 25.16, 24.96, 27.86, 28.96, 29.36, 20.07, 20.87, 20.57, 20.37, 17.67, 14.27, 14.57, 13.47, 16.67, 19.37, 20.07, 20.67, 15.14, 14.24, 17.44, 21.04, 21.64, 22.24, 25.48, 25.78, 26.18, 25.78, 24.48, 22.28, 21.68, 21.18, 27.61, 26.61, 27.91, 27.81, 26.41, 24.51, 24.91, 24.41, 25.01, 27.01, 28.11, 25.1, 25.2, 26.4, 26.3, 25.7, 23.3, 22.8, 22.5, 23.4, 24.8, 25.5, 26.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mayotte&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;, &quot;Mayotte&quot;], &quot;legendgroup&quot;: &quot;Mayotte&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mayotte&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.49, 27.79, 28.19, 28.39, 27.49, 25.99, 25.39, 24.79, 25.09, 26.79, 27.59, 27.99], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Malawi&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;, &quot;Malawi&quot;], &quot;legendgroup&quot;: &quot;Malawi&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Malawi&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.3, 24.9, 25.6, 24.7, 23.8, 22.4, 21.9, 22.9, 24.3, 27.7, 26.2, 21.11, 21.01, 21.61, 21.01, 19.11, 17.31, 16.31, 18.21, 20.41, 23.81, 23.41, 21.91, 21.2, 21.3, 21.3, 20.7, 17.0, 14.1, 13.0, 14.9, 16.7, 20.22, 20.82, 21.62, 25.63, 25.23, 24.33, 21.93, 20.83, 20.33, 21.63, 24.03, 28.33, 28.13, 25.13, 21.83, 21.83, 22.13, 21.23, 18.23, 16.43, 16.43, 18.13, 20.43, 24.23, 24.23, 22.03], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mali&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;, &quot;Mali&quot;], &quot;legendgroup&quot;: &quot;Mali&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mali&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.85, 25.3, 28.84, 26.95, 32.5, 35.75, 33.59, 33.4, 33.65, 30.65, 26.2, 20.75, 22.19, 25.89, 30.19, 29.69, 33.84, 35.49, 31.64, 30.34, 31.79, 30.69, 26.39, 22.19, 24.24, 27.69, 31.63, 34.13, 35.88, 35.09, 31.49, 30.13, 32.14, 32.59, 29.24, 25.84, 27.93, 30.48, 32.83, 32.87, 32.73, 29.83, 26.58, 26.18, 26.83, 26.78, 26.62, 26.43, 24.32, 28.32, 30.77, 30.67, 30.97, 27.92, 25.71, 25.32, 25.77, 26.07, 25.32, 23.57, 21.21, 25.36, 29.96, 30.06, 33.96, 35.61, 32.61, 31.61, 32.76, 30.65, 25.9, 22.56, 23.75, 27.65, 31.95, 32.15, 35.35, 36.05, 31.85, 30.85, 31.95, 28.55, 24.9, 23.81, 27.81, 30.45, 29.2, 33.86, 33.36, 27.7, 26.76, 28.06, 27.81, 26.31, 22.61, 25.57, 29.57, 33.17, 32.62, 35.56, 34.77, 30.57, 29.17, 30.47, 30.87, 28.87, 25.52, 25.77, 29.21, 32.07, 31.77, 32.71, 31.47, 27.57, 26.62, 26.96, 27.52, 27.12, 24.92, 25.52, 29.16, 32.52, 32.82, 33.62, 32.22, 28.37, 27.32, 27.87, 28.52, 27.62, 24.87, 27.94, 29.89, 32.79, 33.59, 32.39, 28.99, 26.39, 25.89, 26.48, 26.94, 26.54, 25.64, 24.59, 28.0, 31.25, 31.34, 31.25, 29.0, 26.05, 25.55, 26.05, 26.65, 25.75, 24.0, 25.98, 29.63, 31.78, 31.87, 32.03, 28.78, 26.58, 26.12, 26.63, 26.53, 26.03, 24.63, 24.71, 27.91, 31.51, 31.41, 33.71, 32.91, 28.41, 27.21, 28.01, 28.11, 27.01, 23.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Morocco&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;, &quot;Morocco&quot;], &quot;legendgroup&quot;: &quot;Morocco&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Morocco&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.76, 12.96, 16.76, 15.56, 22.06, 25.56, 29.56, 28.76, 23.06, 17.96, 14.16, 8.06, 19.5, 18.6, 12.54, 12.64, 13.64, 13.04, 17.34, 20.74, 27.04, 25.04, 19.64, 18.24, 14.94, 8.84, 14.29, 14.89, 15.09, 14.89, 17.29, 19.39, 23.09, 22.29, 19.99, 18.59, 15.99, 11.89, 13.45, 15.11, 20.59, 19.6, 15.6, 16.1, 16.0, 16.2, 17.9, 19.7, 23.1, 21.0, 20.0, 19.2, 18.6, 12.6, 12.9, 13.0, 14.0, 13.5, 19.2, 23.3, 30.2, 27.9, 21.9, 19.5, 15.8, 9.6, 14.5, 15.1, 15.3, 15.1, 17.6, 19.6, 23.3, 22.5, 20.2, 18.8, 16.2, 12.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mauritius&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;, &quot;Mauritius&quot;], &quot;legendgroup&quot;: &quot;Mauritius&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mauritius&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 6, 7, 8, 9], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.92, 26.96, 27.75, 28.21, 27.15, 25.58, 24.91, 24.92, 25.15, 26.07, 26.76, 27.32, 27.0, 27.71, 28.4, 27.78, 26.4, 24.53, 23.63, 22.54, 23.85, 24.73, 26.37, 28.19, 26.14, 27.34, 28.01, 26.8, 24.89, 23.33, 22.54, 21.48, 23.07, 23.86, 25.46, 27.08, 26.67, 26.32, 26.92, 25.75, 24.28, 21.96, 21.53, 20.69, 21.54, 23.49, 25.36, 26.29, 23.42, 23.8, 24.36, 23.36, 21.7, 19.11, 18.3, 17.45, 18.81, 20.35, 22.73, 23.74, 27.02, 27.12, 27.72, 28.32, 27.32, 25.52, 25.02, 24.72, 25.02, 25.92, 26.72, 27.42, 27.4, 26.7, 21.9, 21.5, 20.4, 21.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mauritania&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;, &quot;Mauritania&quot;], &quot;legendgroup&quot;: &quot;Mauritania&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mauritania&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.36, 23.04, 19.85, 23.99, 24.78, 33.03, 31.12, 27.31, 23.05, 21.95, 15.1, 21.44, 23.58, 26.06, 22.8, 27.19, 28.1, 34.13, 32.7, 29.92, 25.8, 25.51, 18.1, 18.52, 19.2, 20.51, 20.75, 21.59, 20.76, 22.24, 23.03, 24.64, 22.37, 21.05, 18.48, 22.11, 25.65, 27.48, 24.86, 30.9, 32.8, 33.71, 33.14, 32.23, 28.49, 26.33, 20.32, 23.7, 26.54, 28.7, 26.72, 32.49, 33.55, 33.52, 32.61, 32.38, 29.79, 27.93, 22.28, 21.96, 24.16, 24.93, 25.19, 28.26, 26.09, 27.15, 26.77, 28.87, 28.13, 25.25, 21.65, 22.54, 26.71, 28.9, 25.69, 31.96, 34.31, 31.55, 31.16, 30.81, 27.98, 25.35, 21.35, 24.36, 27.89, 29.64, 28.84, 33.49, 33.1, 30.52, 29.13, 30.48, 30.27, 28.35, 24.08, 24.8, 26.9, 28.79, 29.33, 31.63, 30.89, 30.15, 28.69, 29.45, 29.46, 27.4, 23.53, 30.77, 33.02, 32.27, 31.52, 30.07, 30.87, 30.87, 28.82, 24.92, 25.75, 29.63, 32.19, 30.35, 35.76, 36.21, 31.45, 29.99, 30.18, 29.72, 27.16, 23.95, 25.47, 29.54, 32.2, 29.31, 35.05, 36.12, 30.93, 29.41, 30.2, 29.78, 28.1, 23.76, 20.76, 23.36, 20.21, 20.91, 22.26, 22.46, 23.31, 22.46, 23.91, 24.76, 26.35, 24.01, 22.76, 20.16, 25.64, 31.64, 33.59, 34.43, 33.84, 32.99, 29.24, 27.09, 21.09, 22.79, 27.04, 29.14, 25.98, 31.98, 34.59, 31.79, 31.39, 31.09, 28.04, 25.64, 21.54, 27.36, 31.45, 34.41, 31.41, 36.51, 37.26, 31.91, 30.91, 31.86, 31.76, 30.06, 25.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mozambique&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;, &quot;Mozambique&quot;], &quot;legendgroup&quot;: &quot;Mozambique&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mozambique&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.6, 26.3, 26.8, 26.0, 25.6, 23.7, 24.1, 24.1, 24.6, 26.1, 26.8, 27.2, 20.28, 20.23, 20.19, 19.85, 16.93, 15.21, 14.85, 16.2, 18.21, 22.04, 21.2, 20.43, 26.67, 26.8, 26.34, 25.16, 22.64, 21.25, 21.23, 21.9, 23.69, 27.21, 27.35, 26.84, 27.93, 29.22, 28.35, 27.28, 24.31, 22.36, 22.29, 24.45, 26.51, 30.7, 31.68, 27.8, 29.01, 28.98, 28.46, 26.68, 23.44, 22.26, 21.13, 22.65, 23.67, 27.44, 27.9, 27.46, 23.18, 23.84, 22.05, 21.07, 17.71, 17.22, 15.96, 17.74, 19.31, 22.82, 23.05, 21.57, 27.37, 28.1, 26.77, 25.33, 22.14, 20.48, 20.02, 21.24, 21.6, 25.74, 25.88, 26.15, 27.41, 27.74, 26.71, 25.53, 22.56, 21.12, 20.72, 21.58, 21.58, 24.37, 25.24, 26.06, 28.24, 28.84, 26.44, 24.73, 21.4, 19.54, 19.08, 20.07, 21.23, 24.23, 25.66, 25.42, 27.6, 27.9, 27.2, 26.1, 23.9, 21.8, 21.85, 21.95, 22.7, 26.0, 26.4, 27.65], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Niger&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;, &quot;Niger&quot;], &quot;legendgroup&quot;: &quot;Niger&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Niger&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.12, 24.42, 29.74, 32.34, 33.25, 34.49, 31.77, 31.02, 32.49, 31.52, 25.27, 23.2, 25.9, 29.72, 33.08, 34.24, 35.51, 32.7, 30.23, 28.71, 30.18, 31.26, 29.44, 26.98, 23.06, 27.82, 32.19, 34.19, 34.69, 32.7, 28.91, 28.44, 29.82, 30.81, 27.79, 26.29, 20.36, 25.43, 29.99, 32.04, 32.18, 33.18, 31.98, 30.04, 30.89, 31.02, 26.61, 24.12, 24.69, 28.91, 32.76, 34.74, 34.82, 30.9, 28.38, 27.52, 28.6, 30.93, 28.41, 26.45, 23.66, 28.25, 31.85, 34.44, 34.86, 32.28, 28.92, 27.6, 28.67, 30.21, 27.44, 26.01, 21.66, 26.15, 30.82, 33.07, 32.95, 30.78, 27.48, 27.03, 27.81, 28.57, 25.37, 23.88, 21.37, 26.49, 31.09, 33.27, 33.38, 32.04, 29.3, 27.6, 29.06, 30.2, 26.57, 24.52, 20.7, 26.07, 31.07, 33.46, 33.3, 32.76, 30.55, 27.7, 29.42, 26.29, 23.99, 20.56, 24.86, 30.16, 32.76, 33.66, 34.91, 32.21, 31.46, 32.91, 31.96, 25.51, 23.61, 23.29, 27.84, 32.49, 34.49, 34.49, 33.04, 28.93, 29.14, 30.14, 31.14, 28.09, 26.59, 20.97, 26.22, 31.37, 33.66], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Nigeria&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;, &quot;Nigeria&quot;], &quot;legendgroup&quot;: &quot;Nigeria&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Nigeria&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [5, 7, 8, 9, 10, 11, 3, 5, 7, 8, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 10, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [33.26, 27.86, 27.06, 27.96, 29.56, 25.86, 29.56, 27.46, 24.86, 24.46, 26.76, 26.91, 29.21, 31.01, 29.31, 27.51, 25.91, 24.71, 25.11, 25.71, 25.41, 25.71, 19.21, 23.01, 25.01, 24.01, 22.61, 21.51, 20.01, 19.71, 20.61, 21.61, 20.81, 21.01, 27.35, 26.15, 25.25, 25.35, 25.75, 26.45, 26.75, 27.35, 26.28, 29.38, 28.78, 26.78, 25.98, 25.98, 26.38, 26.58, 25.78, 26.08, 20.74, 32.34, 32.04, 29.14, 26.34, 27.44, 23.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guinea-Bissau&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;, &quot;Guinea-Bissau&quot;], &quot;legendgroup&quot;: &quot;Guinea-Bissau&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guinea-Bissau&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.49, 25.39, 26.89, 28.19, 27.19, 25.69, 25.79, 25.79, 26.09, 26.79, 24.99, 26.25, 26.15, 27.55, 29.2, 28.9, 27.9, 26.4, 26.5, 26.45, 26.8, 27.45, 25.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Rwanda&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Rwanda&quot;, &quot;Rwanda&quot;], &quot;legendgroup&quot;: &quot;Rwanda&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Rwanda&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [5, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.2, 18.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Seychelles&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;, &quot;Seychelles&quot;], &quot;legendgroup&quot;: &quot;Seychelles&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Seychelles&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.6, 27.1, 28.0, 28.3, 27.9, 26.7, 26.3, 25.9, 26.5, 26.9, 27.0, 27.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=South Africa&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;, &quot;South Africa&quot;], &quot;legendgroup&quot;: &quot;South Africa&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;South Africa&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.88, 28.93, 25.81, 23.74, 19.46, 17.64, 17.21, 19.55, 21.33, 23.29, 25.09, 25.43, 21.25, 20.34, 17.14, 15.07, 10.66, 9.28, 9.59, 11.21, 14.58, 15.52, 17.9, 18.3, 26.13, 25.29, 21.17, 16.61, 13.11, 10.92, 11.68, 13.3, 15.18, 18.62, 22.62, 25.29, 26.12, 26.19, 24.26, 21.71, 19.64, 18.05, 18.11, 19.1, 19.76, 21.11, 22.26, 23.64, 17.14, 17.09, 16.82, 14.01, 12.54, 12.15, 12.25, 13.25, 12.42, 14.07, 14.93, 15.36, 21.86, 17.98, 16.5, 14.56, 14.88, 15.99, 15.59, 18.23, 18.53, 20.04, 20.36, 21.1, 19.97, 16.74, 15.41, 14.01, 13.1, 13.77, 13.96, 15.91, 17.83, 20.05, 7.13, 7.32, 8.07, 6.01, 5.49, 4.47, 4.81, 4.05, 3.55, 4.38, 5.18, 5.98, 20.93, 20.72, 19.15, 16.67, 16.1, 14.77, 14.45, 14.38, 15.0, 16.65, 17.97, 20.27, 25.1, 25.1, 22.75, 17.29, 15.35, 12.2, 12.8, 15.7, 16.09, 19.4, 21.5, 24.25, 22.67, 22.77, 20.12, 15.57, 14.17, 11.92, 13.22, 15.47, 14.77, 17.37, 18.22, 21.36, 25.36, 24.81, 22.41, 16.31, 14.21, 10.66, 11.91, 15.01, 14.51, 17.95, 20.91, 23.86, 24.4, 24.04, 21.85, 16.35, 14.65, 12.1, 12.75, 15.75, 15.05, 18.05, 20.05, 23.05, 22.32, 21.92, 19.71, 13.07, 11.02, 6.77, 7.81, 10.47, 11.02, 14.42, 17.46, 23.89, 23.68, 20.54, 15.79, 13.44, 11.89, 12.34, 14.24, 15.54, 18.04, 20.34, 22.14, 23.46, 23.06, 22.46, 20.51, 18.51, 17.71, 17.41, 17.6, 17.71, 19.41, 19.96, 21.01, 20.94, 21.44, 21.54, 15.24, 13.54, 9.31, 10.67, 12.72, 12.8, 15.09, 17.56, 21.82, 24.87, 24.17, 20.82, 14.52, 11.77, 8.32, 8.62, 11.27, 13.22, 16.67, 20.11, 23.82, 24.14, 24.44, 23.34, 20.99, 18.93, 17.39, 17.24, 17.59, 18.24, 20.04, 21.04, 22.34, 22.92, 16.95, 13.94, 14.83, 15.76, 18.19, 18.77, 20.1, 24.62, 24.27, 19.67, 15.17, 10.92, 8.52, 9.42, 10.72, 13.67, 17.01, 20.26, 23.52, 28.88, 28.61, 26.0, 19.88, 16.71, 13.45, 13.67, 15.9, 17.1, 21.22, 24.79, 28.51, 25.88, 24.27, 21.38, 18.83, 13.88, 12.08, 12.38, 13.98, 17.58, 19.28, 22.86, 23.6, 25.27, 25.42, 21.72, 19.92, 15.82, 14.67, 14.22, 16.37, 19.76, 22.17, 23.42, 22.81, 23.66, 24.13, 20.89, 18.71, 14.33, 13.16, 12.55, 14.08, 17.3, 19.65, 21.11, 21.25, 24.95, 24.7, 18.79, 14.65, 13.05, 13.15, 15.1, 18.5, 19.75, 21.45, 21.75, 21.98, 21.12, 17.73, 16.18, 12.23, 11.13, 11.48, 12.93, 15.08, 15.68, 18.28, 18.68, 26.05, 26.25, 24.54, 21.95, 19.05, 16.9, 17.29, 18.8, 19.4, 21.45, 22.4, 23.65, 19.28, 20.03, 19.48, 15.38, 13.18, 11.18, 11.23, 12.43, 12.43, 14.83, 16.43, 18.73, 21.01, 21.36, 20.11, 16.76, 15.41, 13.56, 13.46, 14.16, 14.91, 17.31, 18.06, 20.01, 24.7, 23.85, 19.2, 15.04, 11.15, 8.7, 9.5, 11.25, 13.7, 17.0, 20.35, 23.65, 22.46, 21.51, 18.11, 15.95, 11.7, 10.31, 10.61, 12.16, 15.41, 16.56, 19.06, 19.75, 16.23, 14.47, 15.08, 21.18, 21.43, 22.93, 22.4, 22.25, 20.7, 15.1, 13.85, 10.35, 11.15, 14.04, 13.5, 16.5, 19.35, 21.85, 19.03, 20.84, 20.94, 15.64, 13.69, 11.64, 11.39, 12.94, 12.39, 15.24, 17.23, 20.69, 21.97, 23.37, 23.92, 17.67, 15.92, 13.17, 12.62, 13.82, 13.72, 16.97, 19.51, 22.57, 22.25, 22.7, 19.54, 17.54, 14.25, 12.55, 12.9, 14.1, 15.8, 17.95, 19.6, 19.95, 22.7, 22.7, 22.3, 17.35, 15.15, 12.8, 11.7, 14.5, 14.4, 17.65, 19.5, 22.1, 9.91, 11.31, 12.86, 13.91, 16.56, 17.7, 25.77, 23.57, 21.67, 18.92, 17.42, 17.32, 19.17, 20.37, 21.82, 23.31, 23.31, 24.79, 24.34, 20.89, 16.44, 12.94, 10.34, 10.74, 12.39, 15.49, 18.39, 21.74, 23.74, 25.72, 26.52, 22.82, 20.47, 16.32, 14.97, 14.17, 16.07, 19.02, 22.22, 23.87, 23.07, 21.39, 20.44, 17.89, 14.49, 11.89, 10.19, 11.54, 13.04, 13.49, 16.24, 16.74, 17.99, 25.49, 25.44, 23.79, 21.44, 19.34, 17.94, 17.54, 18.98, 18.64, 20.84, 21.69, 22.84, 28.09, 26.94, 22.84, 17.54, 13.94, 11.44, 12.39, 14.44, 16.64, 19.34, 23.64, 26.94, 21.42, 21.38, 20.68, 18.17, 16.28, 14.87, 14.98, 16.37, 15.18, 17.33, 18.08, 27.51, 27.41, 24.76, 22.06, 19.86, 17.86, 19.01, 20.21, 20.66, 22.41, 23.46, 24.51, 28.59, 25.74, 23.64, 16.64, 19.48, 21.14, 24.14, 25.74, 27.34, 22.9, 22.75, 21.6, 19.85, 17.6, 16.65, 16.4, 17.2, 17.1, 18.9, 19.9, 21.15, 26.15, 26.2, 23.5, 16.95, 13.9, 10.05, 10.9, 12.9, 14.55, 18.34, 21.75, 25.39, 21.88, 23.63, 23.63, 17.93, 15.38, 12.48, 12.08, 14.27, 14.58, 17.58, 19.52, 23.07, 28.25, 25.5, 23.4, 19.7, 17.1, 18.25, 19.65, 21.75, 23.05, 24.0, 25.05, 20.0, 21.45, 21.2, 16.25, 14.2, 12.65, 11.95, 13.2, 12.6, 15.65, 17.29, 20.04, 22.6, 22.25, 18.85, 16.6, 12.3, 10.45, 10.25, 12.25, 16.15, 17.6, 19.65, 19.6, 27.77, 27.92, 25.02, 22.52, 19.22, 17.11, 16.06, 19.02, 20.92, 24.02, 25.52, 25.17, 22.5, 23.7, 24.25, 17.75, 16.25, 11.9, 13.25, 14.45, 15.25, 16.45, 19.6, 22.8, 24.38, 24.59, 22.94, 18.39, 16.64, 13.94, 13.79, 15.69, 16.74, 19.74, 20.79, 23.39, 22.11, 22.95, 21.31, 18.11, 17.36, 14.71, 15.46, 17.06, 16.11, 18.36, 19.01, 20.96, 22.25, 24.05, 23.85, 17.7, 15.4, 12.35, 11.5, 13.55, 13.9, 17.5, 19.79, 23.2, 22.95, 23.3, 20.04, 17.79, 15.45, 13.95, 14.6, 15.7, 16.1, 18.15, 18.95, 20.0, 22.0, 22.2, 20.8, 18.0, 16.4, 14.6, 14.9, 16.0, 15.5, 17.9, 18.6, 20.3, 26.3, 24.95, 20.75, 17.59, 12.6, 10.45, 10.79, 12.25, 15.6, 18.75, 22.55, 24.9, 25.38, 25.68, 23.03, 21.53, 19.03, 17.83, 17.63, 18.83, 20.53, 21.73, 23.48, 23.02, 19.26, 18.86, 16.16, 14.51, 10.61, 9.21, 9.5, 10.61, 13.36, 14.96, 16.61, 17.01, 25.08, 23.98, 20.53, 16.93, 12.33, 9.98, 10.88, 12.33, 15.58, 17.87, 21.63, 23.48, 23.25, 22.65, 19.25, 13.35, 11.05, 10.25, 8.8, 11.45, 12.55, 15.95, 18.4, 21.75, 23.6, 23.1, 19.59, 16.79, 13.3, 10.9, 12.1, 13.75, 20.15, 20.5, 24.33, 24.68, 23.03, 16.33, 13.58, 9.63, 10.58, 12.67, 13.83, 17.48, 20.48, 24.48, 28.08, 29.23, 24.88, 22.38, 18.62, 17.33, 15.78, 18.48, 20.78, 24.13, 25.92, 24.33, 26.11, 25.31, 21.61, 18.71, 14.36, 12.16, 12.71, 14.26, 18.55, 20.31, 22.36, 22.91, 16.51, 16.07, 16.07, 14.27, 12.67, 12.26, 12.92, 13.12, 12.97, 14.12, 15.26, 15.37, 25.59, 24.59, 21.09, 17.59, 13.39, 11.34, 12.39, 13.48, 16.34, 18.69, 22.29, 23.89, 20.36, 19.95, 16.46, 14.66, 10.26, 8.5, 8.75, 10.11, 13.31, 15.01, 17.71, 18.46, 23.74, 23.93, 21.74, 18.99, 17.24, 15.59, 16.49, 17.99, 17.54, 19.54, 19.93, 21.44, 21.97, 21.17, 17.77, 14.12, 9.72, 7.52, 7.96, 9.64, 13.35, 15.1, 18.2, 19.79, 24.52, 25.02, 24.01, 17.77, 15.12, 10.92, 11.92, 13.82, 14.82, 17.62, 20.72, 24.67, 26.37, 24.82, 20.66, 17.67, 13.22, 11.27, 11.42, 13.02, 15.92, 19.42, 23.41, 25.12, 19.8, 20.7, 20.1, 15.9, 13.3, 11.9, 11.5, 12.6, 12.9, 15.3, 17.3, 19.8, 24.7, 25.15, 23.55, 21.04, 18.74, 16.99, 16.99, 17.99, 18.6, 20.7, 21.7, 22.79, 20.7, 20.6, 20.2, 13.7, 12.3, 8.75, 23.72, 22.96, 19.41, 16.97, 12.12, 10.22, 10.32, 12.12, 16.12, 17.32, 20.42, 20.87, 19.79, 19.2, 15.95, 13.85, 9.65, 7.85, 8.2, 13.6, 15.35, 17.54, 20.85, 20.35, 17.45, 15.1, 10.99, 9.5, 9.15, 10.55, 14.15, 15.9, 17.85, 18.49, 23.07, 22.22, 18.32, 15.37, 10.37, 8.22, 8.37, 9.92, 14.37, 15.82, 18.87, 19.87, 24.9, 24.2, 19.7, 15.6, 11.75, 9.55, 9.75, 12.15, 14.25, 17.15, 21.15, 23.95, 23.74, 23.44, 17.53, 13.44, 11.79, 11.94, 13.89, 17.24, 18.44, 20.29, 20.64, 23.6, 22.7, 19.14, 16.65, 11.55, 9.74, 9.85, 11.45, 15.55, 17.55, 20.0, 20.64, 25.87, 25.37, 21.17, 15.87, 12.12, 9.72, 10.37, 11.77, 14.37, 17.97, 21.62, 25.02, 28.89, 28.09, 24.84, 17.89, 15.19, 11.09, 11.44, 13.89, 16.59, 20.04, 24.29, 28.09, 17.14, 19.84, 20.59, 22.3, 20.55, 17.95, 17.04, 15.1, 15.2, 15.4, 16.0, 18.4, 18.4, 20.55, 19.32, 20.16, 20.02, 16.16, 14.42, 12.87, 12.47, 13.17, 12.97, 15.47, 16.62, 19.02, 24.7, 24.2, 19.54, 15.35, 11.35, 9.14, 9.8, 11.15, 13.85, 17.09, 20.6, 23.95, 25.37, 24.62, 20.37, 15.52, 12.12, 9.82, 10.62, 11.62, 14.12, 17.76, 21.72, 24.17, 21.8, 20.9, 17.25, 14.05, 9.65, 7.65, 7.75, 8.64, 12.55, 14.65, 17.5, 18.9, 22.35, 20.35, 16.65, 14.95, 14.55, 15.75, 17.65, 20.9, 22.15, 22.1, 22.87, 20.92, 17.02, 15.32, 15.52, 17.07, 20.32, 21.67, 23.52, 23.62, 27.12, 26.97, 23.32, 21.32, 17.37, 15.77, 15.17, 17.37, 20.92, 23.11, 25.11, 23.47, 21.24, 21.94, 21.39, 17.29, 15.04, 13.14, 12.69, 14.34, 14.34, 16.74, 18.34, 20.49, 25.74, 24.54, 20.99, 18.04, 13.34, 11.34, 11.64, 12.99, 16.33, 18.69, 22.29, 23.54, 25.15, 24.5, 21.1, 19.2, 14.7, 13.0, 12.6, 14.95, 18.45, 20.65, 22.05, 21.95, 25.23, 24.23, 20.88, 17.97, 14.18, 12.33, 12.13, 13.97, 18.08, 19.88, 21.93, 22.18, 25.91, 24.81, 20.76, 15.51, 11.56, 8.41, 9.91, 11.91, 14.41, 17.06, 21.11, 24.21, 22.0, 16.95, 12.9, 11.0, 11.95, 13.5, 15.35, 17.95, 19.85, 23.9, 22.85, 19.6, 16.7, 12.04, 10.45, 10.5, 12.2, 16.04, 18.0, 21.25, 22.0, 24.55, 24.1, 19.2, 14.8, 10.55, 8.85, 9.3, 10.85, 13.45, 16.7, 20.4, 23.5, 20.34, 19.9, 17.0, 15.1, 10.55, 9.05, 9.29, 10.85, 14.15, 15.2, 17.35, 18.15, 24.87, 24.02, 20.71, 17.26, 13.51, 11.56, 13.31, 17.05, 19.21, 21.76, 21.96, 25.9, 24.75, 20.55, 15.5, 12.35, 9.75, 10.65, 13.2, 14.55, 17.19, 21.35, 24.35, 27.87, 27.12, 24.17, 18.12, 15.02, 11.77, 12.06, 14.17, 16.31, 19.92, 24.12, 27.72, 22.25, 22.7, 20.4, 18.79, 15.3, 13.8, 14.15, 15.4, 16.65, 18.75, 19.95, 20.09, 23.86, 24.81, 21.71, 20.11, 17.21, 16.0, 15.91, 17.16, 18.75, 20.46, 21.86, 21.86, 16.75, 15.35, 13.15, 13.15, 15.75, 15.65, 18.4, 18.79, 20.9, 29.06, 28.61, 19.66, 18.41, 21.41, 23.58, 25.23, 19.08, 18.62, 19.08, 16.12, 14.28, 13.28, 13.73, 14.63, 14.58, 15.58, 17.08, 17.48, 25.87, 25.46, 21.52, 18.97, 14.72, 12.57, 12.66, 14.97, 18.82, 20.12, 22.12, 22.52, 19.34, 19.04, 16.45, 13.35, 10.15, 7.8, 8.64, 10.14, 12.4, 14.6, 16.1, 17.09, 22.41, 21.51, 18.16, 16.61, 12.66, 11.56, 11.91, 13.36, 15.51, 16.05, 18.66, 19.11, 26.73, 25.33, 17.83, 13.93, 11.28, 12.13, 13.58, 16.23, 19.33, 23.23, 25.83, 26.82, 26.77, 24.17, 21.47, 19.12, 16.47, 17.07, 18.72, 19.66, 21.46, 22.67, 23.62, 24.8, 25.5, 22.4, 20.5, 16.54, 14.7, 14.45, 16.4, 18.4, 20.8, 22.0, 22.05, 22.85, 23.15, 22.25, 17.9, 16.1, 13.8, 13.85, 15.1, 15.95, 18.79, 19.54, 21.55, 21.78, 22.53, 23.64, 18.39, 16.04, 14.48, 14.34, 16.09, 15.74, 18.14, 19.39, 21.49, 19.1, 19.0, 15.9, 13.79, 11.2, 9.6, 11.1, 12.9, 12.7, 14.3, 16.85, 16.35, 27.13, 26.43, 22.98, 18.43, 14.68, 12.23, 12.58, 14.32, 16.78, 19.78, 24.12, 26.93, 23.54, 22.79, 19.43, 16.79, 11.94, 9.98, 10.18, 11.74, 15.39, 17.13, 19.99, 21.04, 20.67, 21.03, 20.58, 17.08, 16.08, 15.33, 15.08, 15.18, 14.98, 16.58, 17.98, 19.98, 17.62, 19.53, 21.13, 23.33, 24.28, 22.5, 21.6, 17.9, 13.1, 10.35, 7.5, 8.75, 10.85, 12.0, 14.7, 18.2, 20.95, 20.04, 21.55, 21.15, 17.0, 14.04, 12.85, 12.04, 13.2, 13.55, 16.7, 18.1, 21.2, 18.51, 19.56, 20.6, 14.66, 13.41, 9.81, 9.81, 11.85, 11.96, 14.01, 16.01, 19.16, 21.95, 21.4, 17.2, 13.2, 10.5, 9.05, 9.6, 11.9, 11.75, 14.95, 17.65, 19.7, 18.35, 18.04, 16.65, 10.35, 8.09, 4.35, 5.1, 7.7, 8.14, 11.15, 13.6, 18.15, 26.95, 26.5, 23.15, 20.9, 13.55, 13.15, 15.7, 19.75, 22.0, 23.95, 23.7, 20.96, 21.36, 19.61, 17.11, 16.06, 14.66, 14.31, 14.96, 15.41, 17.21, 18.46, 20.01, 24.48, 24.08, 19.13, 14.73, 10.48, 8.78, 9.28, 10.83, 13.38, 16.63, 20.38, 23.38, 26.34, 25.74, 22.49, 19.34, 15.39, 13.24, 13.24, 15.04, 19.04, 21.39, 23.29, 23.73], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Senegal&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;, &quot;Senegal&quot;], &quot;legendgroup&quot;: &quot;Senegal&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Senegal&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.52, 28.42, 30.48, 31.49, 32.94, 32.15, 29.38, 27.94, 28.33, 28.83, 27.14, 25.18, 28.41, 26.96, 27.31, 27.86, 26.16, 24.21, 24.66, 27.42, 29.78, 29.53, 32.8, 32.51, 30.49, 28.33, 29.01, 29.0, 27.17, 23.34, 21.2, 20.5, 21.7, 22.15, 23.25, 25.15, 26.35, 26.3, 26.79, 26.65, 24.8, 22.35, 23.86, 24.61, 24.81, 27.06, 25.86, 25.51, 27.41, 27.11, 28.01, 27.61, 26.46, 23.41, 32.77, 35.82, 35.62, 30.52, 28.72, 29.82, 29.77, 28.62, 25.52, 25.49, 27.4, 28.9, 30.15, 31.1, 30.95, 28.7, 27.95, 28.3, 28.15, 26.6, 24.2, 25.79, 26.84, 28.44, 30.24, 30.09, 29.34, 27.28, 27.14, 26.99, 27.44, 26.89, 24.44, 25.94, 28.49, 30.93, 32.09, 32.79, 30.94, 27.44, 27.34, 27.24, 27.34, 26.54, 23.74, 28.05, 30.65, 33.09, 33.15, 32.55, 28.8, 26.7, 26.45, 26.5, 26.85, 27.4, 25.75, 25.46, 30.56, 32.96, 33.96, 35.56, 35.76, 30.66, 28.86, 29.86, 29.96, 28.86, 25.86], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Saint Helena&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;, &quot;Saint Helena&quot;], &quot;legendgroup&quot;: &quot;Saint Helena&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Saint Helena&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.85, 21.45, 21.45, 21.25, 19.55, 17.95, 16.65, 16.25, 16.05, 16.45, 17.55, 17.25, 12.48, 12.21, 12.7, 10.62, 10.8, 8.23, 7.93, 8.55, 9.26, 10.4, 12.31], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Sierra Leone&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;, &quot;Sierra Leone&quot;], &quot;legendgroup&quot;: &quot;Sierra Leone&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Sierra Leone&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 11, 12, 1, 2, 3, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.31, 26.61, 27.31, 28.11, 27.31, 25.81, 24.41, 24.71, 25.11, 25.91, 26.51, 27.69, 28.69, 28.29, 28.29, 26.69, 25.39, 25.39, 25.89, 26.19, 27.39, 27.69, 25.7, 26.9, 27.5, 26.7, 24.6, 24.1, 23.9, 24.1, 24.4, 25.0, 24.2, 26.4, 27.5, 28.0, 27.8, 28.0, 26.6, 25.2, 25.5, 26.4, 26.99, 26.99, 27.84, 27.13, 27.78, 26.4, 27.2, 28.09, 27.75, 27.7, 26.2, 25.15, 25.0, 25.59, 25.3, 25.9, 25.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Somalia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;, &quot;Somalia&quot;], &quot;legendgroup&quot;: &quot;Somalia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Somalia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.4, 26.8, 28.0, 29.0, 31.0, 32.6, 33.7, 33.3, 33.6, 30.7, 28.9, 27.5, 22.51, 24.41, 24.71, 26.91, 28.51, 27.41, 26.01, 26.71, 28.21, 25.01, 22.51, 21.71, 28.4, 30.4, 29.3, 28.6, 28.6, 27.9, 28.7, 28.6, 28.6, 28.2, 28.0, 28.8, 26.8, 29.5, 25.7, 24.7, 24.9, 25.8, 26.0, 27.4, 27.6, 28.8, 30.6, 28.8, 29.1, 28.3, 28.3, 28.5, 28.5, 27.8, 28.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Sudan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;, &quot;Sudan&quot;], &quot;legendgroup&quot;: &quot;Sudan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Sudan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.75, 21.8, 27.15, 28.5, 31.0, 35.04, 31.9, 33.9, 34.65, 31.6, 24.25, 20.49, 18.4, 24.0, 28.58, 30.1, 32.86, 36.96, 34.74, 35.04, 35.43, 32.05, 27.43, 24.33, 23.16, 24.01, 26.26, 26.56, 29.21, 32.77, 33.24, 34.15, 31.9, 29.97, 28.34, 26.55, 15.33, 21.33, 26.53, 28.33, 30.63, 34.43, 32.33, 33.53, 33.73, 30.33, 23.53, 20.63, 21.02, 25.42, 30.72, 32.36, 33.36, 34.27, 32.82, 30.52, 32.82, 31.77, 27.92, 25.77, 23.82, 27.22, 32.1, 32.35, 33.64, 33.36, 30.98, 29.71, 31.24, 32.29, 30.04, 27.66, 25.58, 28.34, 32.58, 33.29, 33.14, 31.34, 28.14, 28.44, 28.89, 30.54, 30.29, 28.29, 20.38, 23.48, 28.08, 29.88, 29.88, 29.88, 27.48, 25.48, 26.08, 26.28, 24.08, 22.88, 20.45, 24.15, 29.35, 29.55, 31.6, 30.85, 29.25, 26.44, 28.7, 29.35, 25.75, 24.15, 22.14, 25.09, 30.61, 31.26, 31.83, 30.71, 29.26, 27.19, 29.01, 29.54, 26.01, 25.13, 26.41, 28.58, 31.11, 31.14, 29.21, 28.24, 26.65, 27.14, 27.4, 28.35, 28.47, 28.32, 27.12, 28.78, 30.16, 30.01, 29.48, 28.09, 26.52, 26.24, 26.9, 27.51, 27.89, 27.8, 27.08, 28.17, 28.3, 29.21, 27.16, 26.37, 25.32, 25.42, 26.07, 26.93, 26.84, 27.78, 17.87, 23.87, 28.97, 30.17, 32.57, 33.57, 34.57, 34.77, 32.07, 25.87, 23.67, 23.9, 23.7, 28.3, 28.1, 30.7, 35.7, 35.3, 34.0, 31.9, 28.7, 26.7, 19.66, 24.46, 29.26, 30.86, 32.86, 35.96, 34.56, 33.86, 34.26, 31.66, 27.96, 24.96, 20.5, 24.8, 29.5, 31.4, 32.9, 35.3, 33.7, 32.3, 33.9, 32.6, 24.1, 26.2, 31.4, 32.1, 33.3, 33.1, 31.9, 30.3, 31.7, 32.3, 28.8, 26.1, 22.43, 25.03, 31.5, 32.1, 31.35, 28.35, 30.15, 31.0, 28.25, 26.7, 21.15, 24.55, 29.7, 30.95, 31.79, 31.1, 29.7, 26.5, 28.05, 28.45, 26.15, 24.8, 23.07, 26.17, 31.67, 32.27, 33.07, 31.67, 29.87, 27.87, 28.67, 30.47, 27.77, 26.17, 24.15, 26.75, 31.95, 32.55, 32.75, 31.15, 27.35, 26.25, 27.55, 28.95, 28.55, 27.15, 25.53, 27.73, 32.23, 32.03, 30.93, 29.63, 26.63, 25.53, 25.83, 27.03, 28.13, 26.43, 24.37, 26.77, 31.01, 31.26, 30.72, 28.32, 26.37, 25.37, 25.76, 27.32, 27.47, 26.87, 21.51, 24.71, 27.71, 30.01, 29.61, 29.51, 27.01, 25.11, 26.11, 27.11, 23.81, 21.91, 19.79, 23.39, 28.99, 29.99, 31.49, 30.39, 28.49, 26.29, 27.79, 28.79, 27.19, 23.29, 26.18, 28.08, 29.18, 29.38, 28.58, 26.78, 25.28, 25.28, 25.88, 26.28, 27.08, 26.78, 22.01, 25.21, 30.31, 32.41, 32.31, 32.01, 29.51, 27.21, 27.81, 28.61, 26.11, 24.61, 19.49, 20.19, 24.39, 26.29, 28.29, 31.69, 32.09, 31.39, 30.19, 26.29, 24.49, 22.69], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Togo&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;, &quot;Togo&quot;], &quot;legendgroup&quot;: &quot;Togo&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Togo&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.74, 30.98, 32.9, 30.71, 29.49, 27.66, 25.99, 25.67, 26.05, 27.17, 26.57, 26.46, 25.37, 28.88, 29.45, 28.19, 27.07, 26.37, 25.22, 24.99, 25.05, 25.81, 25.2, 25.64, 27.4, 29.0, 28.05, 27.21, 26.81, 25.36, 24.26, 24.12, 24.5, 24.99, 26.25, 27.38, 28.01, 29.75, 29.03, 29.33, 28.61, 26.82, 25.44, 25.8, 26.56, 26.97, 27.8, 29.25, 27.51, 28.84, 28.85, 29.13, 28.47, 27.0, 25.78, 25.91, 26.32, 26.8, 27.7, 28.17, 27.1, 31.3, 33.2, 31.62, 30.32, 28.52, 26.82, 26.52, 26.92, 28.02, 27.42, 27.32], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Sao Tome and Principe&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;, &quot;Sao Tome and Principe&quot;], &quot;legendgroup&quot;: &quot;Sao Tome and Principe&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Sao Tome and Principe&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.5, 27.5, 27.1, 26.9, 26.5, 25.7, 24.7, 24.5, 25.1, 25.2, 25.7, 26.5, 26.1, 26.8, 26.5, 26.4, 26.4, 24.6, 23.6, 24.4, 25.0, 25.3, 25.4, 25.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Tunisia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;, &quot;Tunisia&quot;], &quot;legendgroup&quot;: &quot;Tunisia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Tunisia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [9.5, 9.9, 11.8, 13.9, 20.3, 21.2, 24.4, 26.2, 22.3, 17.8, 14.2, 9.2, 10.94, 12.34, 15.34, 16.04, 20.24, 22.24, 23.74, 25.64, 24.74, 19.64, 17.04, 10.04, 11.86, 13.46, 15.76, 17.46, 22.66, 24.36, 26.56, 27.56, 24.56, 20.46, 16.56, 11.06, 9.7, 10.8, 14.6, 16.8, 23.3, 24.8, 27.8, 27.9, 24.0, 18.0, 14.3, 7.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Uganda&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;, &quot;Uganda&quot;], &quot;legendgroup&quot;: &quot;Uganda&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Uganda&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.05, 23.1, 23.6, 23.2, 22.9, 22.2, 21.55, 21.9, 22.65, 22.7, 22.5, 23.15, 22.1, 24.1, 24.2, 24.7, 23.3, 23.1, 22.2, 22.4, 23.1, 23.2, 23.0, 23.8, 20.08, 20.98, 21.03, 20.98, 20.43, 20.58, 20.73, 21.33, 21.23, 17.67, 18.07, 18.37, 18.22, 17.77, 17.02, 16.82, 17.37, 17.47, 16.87, 17.02, 16.72, 21.3, 22.0, 22.7, 22.7, 21.9, 21.7, 20.7, 20.9, 21.8, 21.9, 22.0, 21.9, 23.7, 24.25, 24.05, 24.65, 23.45, 23.05, 22.2, 22.4, 23.05, 23.2, 23.15, 23.8, 22.75, 23.15, 23.65, 24.8, 22.85, 21.45, 21.75, 22.0, 22.2, 22.05, 22.3, 22.58, 22.83, 23.68, 23.78, 23.08, 22.63, 21.78, 22.38, 22.93, 23.53, 23.23, 22.93, 22.93, 23.28, 23.78, 24.23, 23.23, 23.03, 22.33, 22.13, 22.63, 22.83, 22.83, 23.08], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Burkina Faso&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;, &quot;Burkina Faso&quot;], &quot;legendgroup&quot;: &quot;Burkina Faso&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Burkina Faso&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.41, 27.3, 31.7, 33.1, 34.61, 31.77, 29.05, 27.91, 29.07, 29.91, 27.3, 24.61, 25.33, 29.12, 32.52, 32.72, 32.38, 29.18, 27.2, 26.22, 26.9, 28.59, 27.59, 26.18, 26.58, 30.09, 33.3, 32.67, 32.59, 29.18, 26.95, 26.41, 26.89, 28.48, 27.39, 27.3, 26.77, 29.68, 30.91, 30.15, 30.18, 27.28, 25.58, 25.11, 25.53, 26.3, 26.51, 26.22, 26.74, 29.96, 32.68, 32.61, 32.72, 28.88, 27.2, 26.35, 26.85, 27.75, 26.58, 26.24, 26.54, 29.86, 30.92, 29.65, 29.12, 26.82, 25.37, 24.63, 25.23, 26.24, 26.57, 26.6, 23.4, 27.3, 31.65, 33.1, 34.55, 31.74, 29.0, 27.9, 29.05, 29.85, 27.3, 24.55, 25.93, 29.23, 31.93, 31.93, 32.02, 28.13, 26.48, 25.63, 26.13, 27.08, 25.73, 25.53, 25.25, 29.09, 32.55, 32.7, 32.3, 29.15, 27.2, 26.15, 26.9, 28.5, 27.59, 26.15, 26.75, 29.0, 30.84, 29.75, 30.09, 27.25, 25.55, 25.1, 25.5, 26.25, 26.2, 26.15, 27.4, 28.09, 29.4, 29.55, 30.2, 29.8, 29.95, 28.95, 29.45, 28.0, 27.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Namibia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;, &quot;Namibia&quot;], &quot;legendgroup&quot;: &quot;Namibia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Namibia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.83, 23.53, 21.68, 20.23, 16.58, 15.11, 14.5, 17.39, 18.56, 20.75, 24.23, 24.74, 27.09, 24.69, 23.39, 22.59, 17.99, 17.19, 15.39, 19.19, 21.99, 25.79, 25.89, 26.89, 18.25, 18.29, 17.85, 15.6, 14.1, 14.15, 13.75, 14.0, 13.9, 14.75, 15.5, 16.29, 27.81, 27.41, 25.56, 21.41, 17.81, 14.76, 14.91, 17.11, 18.26, 20.76, 25.16, 27.41, 17.65, 18.15, 15.54, 13.9, 13.95, 13.35, 13.0, 13.25, 14.6, 15.25, 15.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Western Sahara&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Western Sahara&quot;, &quot;Western Sahara&quot;, &quot;Western Sahara&quot;, &quot;Western Sahara&quot;, &quot;Western Sahara&quot;, &quot;Western Sahara&quot;, &quot;Western Sahara&quot;], &quot;legendgroup&quot;: &quot;Western Sahara&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Western Sahara&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 5, 6, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.55, 21.05, 20.95, 22.95, 22.75, 22.15, 21.95], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Zambia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;, &quot;Zambia&quot;], &quot;legendgroup&quot;: &quot;Zambia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Zambia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.9, 20.0, 20.1, 20.7, 18.2, 16.0, 16.5, 19.2, 22.0, 20.8, 19.9, 19.8, 20.04, 21.44, 21.14, 21.54, 19.84, 18.14, 17.74, 19.74, 22.44, 23.94, 22.94, 20.74, 20.1, 17.4, 17.9, 21.1, 24.1, 23.5, 21.2, 21.1, 21.3, 21.2, 18.5, 16.0, 16.9, 19.8, 22.7, 23.2, 21.8, 20.9, 21.8, 21.9, 22.5, 22.0, 19.6, 18.0, 18.2, 20.7, 23.6, 26.3, 25.4, 22.3, 21.4, 22.0, 21.9, 21.3, 18.7, 15.9, 16.5, 20.0, 23.2, 23.9, 22.6, 21.1, 24.19, 23.69, 22.59, 22.29, 19.19, 16.69, 16.39, 19.89, 24.09, 25.49, 25.09, 21.69, 22.2, 22.1, 20.0, 18.9, 15.7, 13.5, 12.9, 15.5, 19.5, 21.6, 22.2, 20.0, 21.99, 22.09, 22.09, 20.99, 18.19, 16.79, 15.99, 18.49, 22.19, 24.89, 24.99, 21.99, 20.3, 19.9, 20.6, 20.2, 17.7, 16.2, 15.3, 17.7, 20.8, 23.6, 23.0, 20.5, 20.7, 20.5, 21.3, 21.0, 18.7, 16.4, 16.7, 19.5, 22.2, 23.6, 22.8, 20.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Zimbabwe&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;, &quot;Zimbabwe&quot;], &quot;legendgroup&quot;: &quot;Zimbabwe&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Zimbabwe&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.47, 26.89, 25.06, 24.86, 22.48, 20.69, 20.37, 22.77, 26.0, 28.27, 29.14, 24.58, 25.98, 26.51, 26.07, 24.38, 21.37, 19.04, 19.12, 21.91, 26.48, 29.82, 30.13, 26.24, 21.59, 21.88, 20.94, 20.26, 17.43, 16.33, 15.38, 17.42, 20.27, 22.94, 23.39, 20.68, 20.78, 21.68, 20.46, 19.41, 15.75, 14.51, 13.62, 15.89, 18.56, 21.24, 21.54, 20.06, 23.64, 23.89, 22.71, 21.51, 17.42, 15.74, 15.29, 17.78, 20.65, 24.97, 25.53, 23.32, 22.48, 23.17, 21.87, 20.85, 17.42, 16.42, 15.41, 17.34, 19.99, 23.37, 24.1, 22.01, 24.03, 23.73, 22.63, 21.23, 17.93, 15.46, 14.95, 18.41, 21.63, 24.5, 24.27, 21.86, 23.42, 23.48, 21.73, 20.71, 16.7, 14.89, 14.39, 17.71, 20.58, 23.64, 23.48, 21.2, 22.43, 22.88, 20.91, 20.59, 17.44, 15.97, 15.67, 18.41, 21.37, 24.07, 23.88, 20.76, 22.95, 23.48, 21.5, 20.45, 16.37, 14.66, 14.22, 17.26, 20.43, 23.61, 22.88, 21.18, 20.95, 21.53, 19.48, 18.29, 14.1, 13.16, 11.71, 14.61, 17.81, 21.01, 20.43, 19.1, 17.23, 17.87, 17.04, 15.86, 12.53, 11.94, 10.7, 12.25, 15.01, 17.58, 17.38, 16.65, 22.35, 23.35, 20.35, 19.45, 15.65, 14.55, 14.15, 16.35, 19.45, 21.65, 21.65, 20.15, 23.36, 24.2, 21.3, 20.75, 16.89, 15.77, 15.12, 17.19, 20.5, 22.72, 22.48, 21.03, 25.69, 27.25, 23.43, 21.43, 17.23, 16.24, 14.99, 16.94, 20.34, 23.46, 24.63, 22.77, 22.93, 23.91, 21.57, 19.8, 15.79, 14.66, 13.41, 15.82, 18.85, 22.57, 22.18, 21.03, 27.26, 29.07, 25.5, 23.58, 19.8, 18.61, 17.85, 20.12, 22.59, 26.09, 26.88, 24.86, 22.39, 22.93, 21.19, 20.16, 16.9, 16.49, 15.33, 16.55, 18.35, 21.51, 21.68, 20.45, 28.8, 30.12, 25.93, 23.76, 20.17, 18.4, 16.93, 19.7, 22.18, 25.05, 27.36, 25.54, 20.96, 21.96, 20.46, 19.66, 15.96, 14.96, 15.76, 16.76, 19.56, 21.76, 22.26, 20.16, 23.5, 24.2, 22.4, 20.9, 16.8, 16.1, 14.8, 17.4, 19.9, 23.5, 23.2, 22.0, 20.9, 21.5, 19.5, 18.3, 14.1, 13.1, 11.6, 14.6, 17.8, 21.0, 20.4, 19.1], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in Africa in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;b2a211ae-fa85-4686-86b4-edf0864e202b&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;b2a211ae-fa85-4686-86b4-edf0864e202b&quot;)) {                    Plotly.newPlot(                        &quot;b2a211ae-fa85-4686-86b4-edf0864e202b&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Antarctica&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;, &quot;Antarctica&quot;], &quot;legendgroup&quot;: &quot;Antarctica&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Antarctica&quot;, &quot;orientation&quot;: &quot;v&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scatter&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 5, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 1, 4, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-0.6, -2.8, -5.6, -7.9, -9.8, -14.3, -10.7, -7.3, -4.8, -7.7, -5.8, 1.3, 1.0, 1.16, -1.55, -2.91, -8.77, -10.22, -9.51, -9.57, -3.47, -3.45, -0.98, 0.12, -2.3, -7.9, -6.3, -15.2, -21.7, -16.6, -31.5, -33.4, -27.1, -15.7, -9.1, -4.9, -4.3, -8.1, -16.6, -14.7, -20.7, -20.7, -30.5, -29.9, -22.1, -14.1, -10.0, -4.1, 0.75, 0.45, -2.1, -3.8, -5.8, -10.0, -8.5, -7.5, -3.55, -5.2, -2.15, 0.5, 0.1, 0.2, -2.0, -3.8, -5.4, -9.6, -8.2, -7.1, -3.6, -5.2, -2.0, 0.6, 0.0, -7.1, -8.1, -4.0, -6.1, 0.2, -0.9, -4.9, -6.4, -12.3, -18.4, -15.5, -10.7, -6.1, -9.0, -3.5, 0.6, -0.1, 0.5, -2.7, -3.9, -7.3, -11.3, -13.3, -8.1, -4.9, -7.3, -2.4, 0.3, -15.5, -23.6, -33.25, -31.15, -38.05, -37.3, -33.65, -30.9, -23.45, -14.3, 0.7, -3.2, -7.5, -8.95, -12.8, -12.54, -20.34, -22.75, -20.8, -6.05, -1.0, 0.57, -1.36, -4.56, -8.22, -11.45, -11.82, -17.43, -22.11, -19.81, -13.1, -6.07, -1.18, 0.04, -2.1, -7.25, -11.0, -14.0, -14.45, -18.4, -22.25, -18.6, -13.29, -6.35, -1.04, 0.27, -4.48, -9.92, -14.5, -16.69, -15.81, -19.8, -21.31, -18.79, -12.04, -6.36, -0.75, -7.76, -12.03, -17.22, -15.33, -22.85, -16.77, -12.28, -5.82, 1.04, -0.29, -5.05, -10.0, -14.45, -15.6, -15.25, -19.2, -24.65, -16.65, -12.35, -8.75, -2.69, -32.95, -44.4, -59.4, -63.05, -65.4, -62.4, -69.5, -69.35, -69.65, -55.9, -45.1, -33.09, 0.9, -2.4, -9.43, -12.15, -14.98, -18.07, -22.1, -17.91, -11.57, -7.56, -1.57, -0.7, -5.1, -11.1, -13.2, -15.2, -16.7, -19.9, -20.2, -15.7, -7.8, -2.3, -2.55, -9.13, -15.58, -21.75, -23.98, -30.99, -25.7, -25.32, -19.72, -9.65, -2.41, -15.54, -23.58, -33.25, -31.11, -38.06, -37.3, -33.65, -30.92, -23.45, -14.28, -27.81, -54.72, -64.29, -57.77, -40.5, -28.56, -4.4, -15.2, -26.4, -20.9, -25.7, -27.2, -36.59, -27.4, -24.1, -16.79, -12.6, -4.0, -0.2, 0.1, -2.6, -3.9, -7.2, -11.3, -13.1, -7.9, -4.69, -7.1, -2.3, 0.0, 1.5, 1.3, -1.7, -2.8, -9.3, -10.3, -9.8, -9.3, -2.9, -3.5, -1.3, 0.5, -9.5, -8.0, -7.1, -3.3, -4.9, -2.9, 0.4, -1.8, -7.4, -14.2, -17.7, -20.6, -23.6, -19.7, -15.2, -12.8, -12.6, -9.1, -1.1, -1.2, -3.4, -7.8, -11.0, -12.2, -19.4, -12.2, -9.8, -8.7, -3.8, 0.5, 0.3, -0.8, -5.0, -6.4, -12.3, -18.2, -15.7, -11.0, -5.9, -8.89, -3.6, 0.6, 0.2, -0.8, -3.9, -5.5, -7.2, -11.5, -8.89, -8.39, -4.1, -6.2, -2.4, 0.3], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in Antarctica in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;d2875163-1f1c-48f2-b823-5923e7c5996a&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;d2875163-1f1c-48f2-b823-5923e7c5996a&quot;)) {                    Plotly.newPlot(                        &quot;d2875163-1f1c-48f2-b823-5923e7c5996a&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Afghanistan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;, &quot;Afghanistan&quot;], &quot;legendgroup&quot;: &quot;Afghanistan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Afghanistan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-1.81, -1.41, 10.39, 15.59, 21.69, 28.99, 31.99, 23.79, 17.49, 7.19, 8.09, 0.44, 2.74, 14.44, 16.44, 21.24, 27.04, 29.44, 27.44, 22.24, 17.24, 7.64, 7.84, -3.61, 0.39, 11.39, 13.39, 18.29, 24.19, 28.09, 26.59, 20.89, 15.79, 7.79, 3.49, 8.28, 18.88, 21.18, 26.28, 33.38, 29.38, 23.28, 19.98, 11.58, 9.38], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Azerbaijan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;, &quot;Azerbaijan&quot;], &quot;legendgroup&quot;: &quot;Azerbaijan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Azerbaijan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-2.14, -2.42, 3.7, 10.27, 17.53, 22.99, 22.54, 24.04, 19.26, 12.65, 8.86, 6.46, -0.7, -1.13, 5.97, 11.77, 18.75, 24.32, 24.45, 25.07, 20.49, 14.72, 9.38, 7.76, -0.32, -1.27, 4.38, 10.73, 16.23, 21.22, 22.63, 22.56, 19.26, 14.03, 8.79, 7.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Armenia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;, &quot;Armenia&quot;], &quot;legendgroup&quot;: &quot;Armenia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Armenia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-9.93, -10.01, -0.45, 5.7, 12.75, 16.61, 18.68, 20.54, 14.21, 8.62, 1.56, -1.59, -13.68, -13.09, -9.29, -6.42, 0.23, 4.68, 6.94, 9.45, 3.5, -2.35, -4.71, -10.49, -4.15, -6.27, 5.22, 11.5, 17.98, 21.79, 24.23, 25.48, 19.16, 12.86, 5.44, 3.64, -8.8, -9.67, -2.7, 1.38, 8.07, 12.0, 12.91, 14.47, 9.5, 4.99, -0.7, -2.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Bahrain&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;, &quot;Bahrain&quot;], &quot;legendgroup&quot;: &quot;Bahrain&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Bahrain&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.09, 16.89, 23.89, 24.29, 29.29, 32.49, 32.89, 33.29, 31.69, 29.69, 22.89, 20.09], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Bangladesh&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;, &quot;Bangladesh&quot;], &quot;legendgroup&quot;: &quot;Bangladesh&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Bangladesh&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.69, 21.79, 27.09, 29.19, 29.09, 28.49, 25.79, 21.99, 18.39, 18.49, 21.29, 26.7, 29.7, 30.0, 29.55, 29.6, 28.5, 29.2, 27.9, 23.7, 20.74, 16.9, 19.6, 25.7, 29.8, 29.3, 29.5, 28.6, 28.2, 28.7, 26.7, 22.7, 18.7, 18.39, 22.55, 28.3, 31.15, 31.0, 30.45, 29.65, 29.25, 29.4, 28.1, 24.19, 19.85, 17.95, 22.15, 26.7, 28.6, 29.6, 28.75, 27.9, 27.7, 28.7, 27.55, 23.85, 19.4, 18.96, 21.91, 25.41, 27.31, 27.85, 27.71, 27.01, 28.11, 27.1, 24.11, 20.46, 20.05, 22.5, 25.9, 27.55, 28.95, 27.75, 27.74, 26.8, 27.49, 27.3, 25.1, 21.6, 17.73, 21.63, 26.38, 28.18, 29.38, 27.58, 27.83, 27.38, 28.33, 27.32, 24.72, 18.93, 23.08, 26.58, 28.53, 29.48, 28.23, 28.28, 27.58, 29.12, 27.78, 24.48, 20.63, 18.3, 21.7, 26.7, 28.9, 29.5, 28.8, 28.8, 27.8, 28.9, 27.2, 23.6, 19.9, 19.66, 23.3, 27.31, 29.11, 29.96, 29.05, 27.96, 26.66, 28.46, 27.61, 24.86, 21.41, 17.7, 21.25, 26.45, 28.84, 29.5, 28.84, 28.8, 28.25, 28.7, 27.2, 23.55, 19.25, 19.9, 21.9, 26.7, 28.5, 29.1, 27.8, 28.4, 27.8, 29.1, 27.4, 24.0, 21.1, 17.72, 20.22, 26.52, 28.22, 29.82, 29.12, 30.22, 29.32, 29.62, 26.72, 22.72, 19.02, 18.76, 22.21, 27.01, 30.01, 30.56, 30.31, 29.61, 28.76, 29.11, 27.96, 24.66, 20.21, 16.67, 19.52, 24.42, 28.02, 28.07, 28.42, 29.02, 28.12, 27.97, 26.17, 21.97, 19.02, 19.42, 22.42, 25.92, 27.82, 28.32, 28.22, 27.52, 28.62, 27.62, 24.62, 20.92, 18.04, 20.59, 25.4, 27.25, 28.85, 28.95, 27.65, 28.45, 26.5, 23.55, 20.04, 17.95, 20.0, 24.4, 25.65, 28.15, 26.95, 28.3, 27.05, 28.45, 26.15, 23.05, 19.95, 19.68, 22.53, 26.76, 28.81, 28.01, 28.11, 26.91, 28.26, 27.36, 24.46, 21.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Myanmar&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;, &quot;Myanmar&quot;], &quot;legendgroup&quot;: &quot;Myanmar&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Myanmar&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.23, 25.83, 26.63, 26.03, 27.13, 24.83, 20.63, 17.83, 20.57, 23.37, 28.37, 31.47, 32.57, 30.17, 30.17, 29.17, 29.57, 27.57, 25.37, 22.07, 21.1, 24.3, 28.9, 31.9, 31.7, 28.3, 28.9, 27.2, 28.7, 27.6, 25.7, 23.0, 18.78, 21.28, 24.78, 26.78, 27.78, 26.28, 25.88, 25.18, 26.28, 26.18, 23.88, 20.98, 21.9, 24.9, 28.9, 31.5, 30.1, 27.4, 27.0, 26.3, 27.7, 28.1, 26.1, 23.3, 21.0, 22.0, 26.0, 29.0, 29.2, 27.0, 26.4, 26.6, 27.0, 27.7, 25.7, 23.3, 22.5, 25.0, 29.0, 31.0, 30.7, 27.6, 27.1, 26.4, 27.2, 27.9, 26.1, 23.5, 22.5, 23.5, 27.5, 30.5, 29.1, 27.5, 26.7, 26.0, 27.0, 27.9, 26.4, 23.7, 23.55, 24.95, 27.65, 29.85, 28.65, 26.35, 25.45, 25.65, 25.95, 27.05, 25.75, 23.65, 26.9, 28.9, 30.2, 29.1, 26.4, 25.9, 26.1, 26.6, 27.9, 26.4, 24.7, 27.0, 27.0, 30.0, 28.0, 25.8, 26.0, 26.0, 26.0, 26.0, 26.0, 24.92, 24.72, 26.72, 27.32, 26.12, 23.72, 23.72, 24.52, 23.22, 24.72, 23.92, 23.92, 27.0, 26.5, 28.5, 30.0, 28.9, 26.0, 26.0, 26.6, 25.9, 27.6, 26.5, 25.0, 24.35, 25.75, 28.35, 30.55, 29.35, 27.05, 26.15, 26.15, 26.65, 27.65, 26.35, 24.35], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Cambodia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;, &quot;Cambodia&quot;], &quot;legendgroup&quot;: &quot;Cambodia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Cambodia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.7, 27.7, 30.3, 29.2, 27.4, 26.4, 26.2, 26.9, 25.4, 24.0, 26.2, 26.3, 28.5, 29.8, 29.0, 27.9, 27.1, 27.4, 26.8, 26.9, 26.7, 26.9, 28.3, 29.1, 29.3, 28.5, 26.7, 27.4, 26.3, 27.3, 26.7, 25.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Sri Lanka&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;, &quot;Sri Lanka&quot;], &quot;legendgroup&quot;: &quot;Sri Lanka&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Sri Lanka&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.33, 26.75, 27.88, 28.6, 27.73, 27.04, 28.19, 26.7, 27.64, 26.85, 26.5, 14.68, 15.58, 16.24, 17.6, 16.87, 15.33, 15.04, 15.57, 15.12, 15.24, 15.11, 15.0, 26.1, 26.4, 28.9, 29.5, 29.6, 29.1, 28.2, 28.1, 28.7, 27.7, 27.3, 26.2, 29.13, 24.95, 26.15, 28.15, 28.45, 28.45, 28.45, 27.75, 27.65, 28.35, 26.85, 26.15, 25.45, 26.43, 26.63, 27.93, 28.53, 28.03, 28.13, 27.83, 27.23, 28.03, 27.13, 26.73, 26.33, 25.2, 26.4, 28.9, 30.2, 29.9, 28.8, 28.4, 27.9, 28.6, 27.5, 26.9, 25.8, 18.4, 19.2, 20.2, 21.6, 22.0, 21.9, 21.6, 20.7, 21.0, 20.1, 19.4, 19.1, 23.4, 24.3, 26.2, 26.7, 25.7, 24.8, 24.9, 24.8, 24.7, 24.7, 24.4, 23.9, 25.4, 26.0, 27.8, 28.7, 29.9, 29.8, 29.8, 28.4, 29.0, 27.4, 26.8, 25.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=China&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;, &quot;China&quot;], &quot;legendgroup&quot;: &quot;China&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;China&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 1, 2, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-11.88, -9.87, 3.92, 10.92, 19.72, 21.72, 24.12, 22.22, 15.32, 10.32, -2.38, -8.87, -9.0, -5.2, 2.0, 6.7, 11.5, 12.7, 15.7, 14.0, 10.0, 4.6, -4.0, -9.5, 16.9, 14.4, 16.9, 21.1, 26.7, 27.1, 29.0, 28.7, 29.0, 25.2, 20.6, 16.9, -28.47, -30.1, -13.21, -0.13, 7.88, 15.97, 19.47, 17.41, 9.02, 0.53, -17.97, -29.79, -33.38, -31.82, -16.76, -1.53, 5.4, 12.15, 16.91, 14.96, 6.53, -2.04, -18.39, -28.86, -31.3, -28.98, -13.52, 1.7, 7.86, 16.36, 20.38, 17.49, 10.03, 1.38, -14.45, -25.74, -27.15, -25.56, -9.96, 2.65, 9.25, 17.1, 21.08, 18.34, 12.08, 2.62, -11.02, -24.27, -25.56, -24.91, -10.04, 2.3, 9.01, 16.0, 21.02, 18.55, 11.59, 2.96, -11.96, -23.44, -25.38, -23.27, -11.08, 0.75, 6.78, 14.44, 17.5, 15.46, 8.9, 0.19, -11.97, -20.41, -24.45, -21.58, -8.67, 3.7, 10.11, 17.47, 21.56, 18.81, 12.32, 3.38, -12.79, -24.8, -29.69, -28.1, -14.83, -0.67, 4.85, 11.9, 16.55, 14.0, 7.29, 0.13, -14.52, -23.68, -21.03, -19.07, -5.73, 5.67, 12.37, 19.25, 23.18, 20.13, 14.33, 4.79, -8.66, -18.63, -23.95, -20.77, -8.28, 3.16, 9.73, 17.06, 21.03, 18.5, 11.92, 3.3, -11.44, -23.77, -23.01, -21.36, -7.98, 3.11, 9.81, 16.27, 20.9, 18.58, 12.88, 4.11, -9.83, -21.69, -21.23, -18.5, -6.32, 4.94, 11.79, 18.11, 23.26, 20.37, 14.03, 5.01, -10.0, -20.55, -24.3, -22.02, -9.21, 3.38, 9.55, 16.24, 20.31, 17.64, 11.04, 3.97, -10.71, -19.91, -18.85, -16.47, -4.97, 5.91, 13.43, 18.34, 23.33, 21.05, 15.05, 6.81, -6.06, -18.43, -19.91, -17.43, -5.38, 5.57, 12.36, 17.53, 22.44, 20.41, 13.66, 5.27, -7.96, -20.47, -23.04, -20.04, -6.32, 5.12, 11.19, 17.29, 22.49, 20.29, 13.34, 5.09, -8.34, -21.07, -21.22, -18.75, -6.41, 4.87, 11.11, 16.29, 21.94, 20.52, 12.75, 5.04, -8.47, -20.37, -19.51, -16.84, -5.6, 4.8, 10.74, 15.75, 22.11, 19.94, 13.17, 5.15, -7.29, -17.12, -24.89, -24.33, -8.09, 6.94, 13.21, 20.05, 22.23, 17.59, 12.7, 6.26, -5.66, -13.14, -27.02, -27.02, -8.98, 7.0, 14.06, 19.77, 21.97, 17.87, 12.93, 7.23, -5.77, -15.41, -19.24, -18.43, -4.77, 5.89, 11.48, 16.9, 19.09, 15.64, 10.38, 3.87, -4.79, -9.32, -21.61, -20.73, -1.99, 12.93, 19.38, 24.86, 28.15, 24.32, 18.17, 10.34, -1.62, -11.11, -20.05, -18.9, -2.18, 11.47, 18.53, 22.78, 25.25, 21.99, 16.5, 9.13, -0.27, -9.8, -22.14, -21.33, -5.09, 9.64, 16.65, 20.77, 23.72, 20.27, 14.16, 7.96, -3.4, -13.19, -16.47, -17.28, -0.51, 12.57, 17.07, 19.92, 22.64, 20.65, 16.12, 11.05, 3.86, 0.24, -21.05, -20.2, -4.31, 10.01, 17.19, 21.28, 25.03, 21.91, 15.58, 8.58, -1.98, -10.52, -8.46, -3.24, 10.85, 19.65, 28.06, 31.56, 33.84, 29.86, 23.07, 15.17, 2.99, -5.92, -10.82, -9.86, 6.98, 13.82, 20.25, 21.92, 23.66, 23.25, 17.35, 12.0, 2.44, -5.38, -10.61, -8.51, 6.89, 14.64, 21.34, 22.39, 25.34, 23.99, 17.69, 11.84, 2.54, -5.51, -6.68, -4.01, 9.09, 13.9, 20.29, 22.23, 25.0, 25.1, 18.84, 13.19, 4.75, -2.02, -8.61, -5.96, 9.03, 13.44, 19.83, 21.77, 24.54, 24.64, 18.38, 12.87, 3.5, -4.05, -11.32, -7.71, 7.07, 14.59, 22.18, 23.85, 26.61, 24.34, 18.03, 12.07, 1.8, -5.86, -9.96, -8.03, 7.55, 14.53, 21.35, 23.28, 26.6, 24.75, 18.34, 12.34, 1.71, -5.49, -6.87, -3.31, 9.33, 14.27, 20.1, 22.7, 25.06, 24.79, 18.79, 13.0, 4.44, -2.67, -5.31, -3.05, 11.79, 16.01, 21.65, 23.66, 25.98, 25.95, 20.34, 14.77, 5.53, -0.91, -8.7, -6.92, 7.74, 14.23, 20.09, 24.39, 22.88, 17.08, 11.5, 1.78, -4.71, -12.54, -8.65, 4.92, 13.01, 21.32, 24.73, 24.4, 17.97, 11.7, -0.18, -7.32, -13.23, -9.43, 2.72, 11.72, 20.97, 24.07, 26.07, 23.37, 17.22, 10.07, -3.23, -9.63, -14.18, -15.13, -1.98, 4.92, 13.27, 16.42, 18.47, 16.26, 10.47, 6.02, -6.28, -10.98, -10.23, -7.73, 6.0, 12.37, 20.15, 21.88, 24.43, 22.25, 16.02, 11.5, 0.26, -6.21, -11.88, -10.96, 3.04, 9.41, 17.59, 19.22, 21.28, 19.43, 13.88, 9.35, -3.02, -7.35, -13.26, -10.81, 0.27, 8.56, 18.6, 19.67, 22.48, 20.25, 14.5, 8.38, -5.07, -11.37, -11.2, -10.33, 3.1, 9.76, 17.66, 18.96, 20.97, 20.23, 14.35, 9.45, -1.85, -6.87, -11.48, -8.89, 0.61, 5.27, 12.1, 14.27, 16.78, 15.59, 9.43, 3.77, -6.56, -11.75, -9.29, -6.86, 3.66, 10.71, 18.73, 19.94, 23.09, 21.15, 16.1, 9.69, -1.27, -7.23, -11.6, -9.4, -0.36, 4.48, 10.52, 12.63, 15.2, 14.21, 8.48, 2.52, -6.76, -11.31, -11.64, -8.78, -2.05, 2.67, 6.87, 8.13, 11.14, 9.89, 6.69, 2.41, -6.23, -10.69, -11.81, -11.7, -3.51, 1.87, 8.05, 8.79, 11.49, 10.22, 5.81, 3.12, -7.39, -10.3, -9.37, -6.51, 0.41, 5.13, 9.94, 11.1, 14.04, 13.07, 8.46, 3.74, -4.8, -9.22, -7.83, -5.64, 2.85, 8.73, 13.55, 14.72, 17.91, 15.78, 11.78, 7.91, -1.75, -7.68, -4.4, -1.85, 7.93, 14.28, 19.69, 20.97, 24.41, 22.03, 17.32, 12.6, 2.54, -4.56, -9.98, -7.14, -1.49, 3.82, 7.79, 8.95, 11.57, 10.66, 7.73, 1.37, -6.66, -11.28, -20.79, -16.86, -4.83, 6.23, 14.67, 19.99, 22.65, 19.08, 14.16, 6.44, -7.41, -15.32, -24.46, -20.97, -8.46, 3.49, 11.38, 16.45, 20.76, 16.71, 11.17, 4.23, -10.36, -19.94, -16.92, -14.07, -3.25, 6.33, 14.61, 19.1, 21.97, 18.26, 14.32, 7.09, -6.16, -14.34, -16.55, -12.41, -2.31, 7.03, 16.55, 19.04, 21.82, 18.53, 13.5, 6.91, -6.63, -14.01, -16.86, -13.79, -3.77, 5.61, 13.84, 17.22, 20.09, 16.84, 12.3, 5.64, -7.48, -14.6, -17.77, -14.69, -4.48, 4.2, 12.02, 16.0, 18.64, 15.63, 11.18, 4.08, -8.52, -15.66, -14.81, -10.0, -0.51, 8.03, 15.52, 18.32, 20.6, 18.53, 14.26, 7.41, -4.94, -12.21, -12.76, -9.93, -0.7, 7.71, 15.26, 18.22, 19.96, 18.0, 14.44, 7.58, -4.03, -10.71, -11.04, -7.9, 2.81, 10.86, 20.56, 21.39, 24.93, 22.45, 16.85, 10.23, -2.67, -8.89, -11.39, -9.28, 1.05, 8.33, 17.1, 18.27, 20.94, 19.26, 13.94, 8.53, -4.33, -10.12, -8.07, -5.78, 4.37, 11.46, 20.09, 20.98, 23.84, 22.21, 16.69, 11.28, 0.07, -6.19, -9.26, -5.74, 3.29, 10.58, 18.65, 20.48, 22.63, 21.04, 16.28, 10.6, -1.66, -8.08, -8.7, -6.08, 2.31, 10.81, 17.82, 21.01, 22.08, 20.79, 16.3, 10.41, -0.35, -6.42, -5.33, -2.43, 4.34, 14.04, 20.66, 25.33, 26.0, 25.4, 20.36, 14.2, 5.52, -0.46, -8.79, -6.81, 3.77, 9.96, 18.49, 18.92, 21.86, 20.23, 14.63, 10.17, -1.94, -6.87, -6.6, -4.39, 4.0, 11.48, 18.56, 21.66, 23.04, 22.42, 17.03, 12.01, 1.15, -4.61, -6.46, -4.44, 5.04, 11.27, 18.13, 19.82, 22.47, 21.18, 15.47, 11.17, 0.39, -5.37, -5.17, -3.03, 6.33, 12.07, 19.76, 22.91, 24.38, 23.78, 17.52, 12.79, 3.08, -2.13, -2.98, -2.18, 6.28, 13.86, 20.81, 25.57, 26.94, 25.97, 20.08, 15.47, 6.65, 0.57, -6.09, -4.57, 4.36, 9.7, 17.22, 18.45, 20.79, 20.0, 14.49, 10.51, 0.71, -3.6, -4.51, -3.36, 7.34, 13.16, 20.94, 25.18, 26.31, 26.2, 19.43, 15.19, 3.87, -3.03, -22.8, -20.65, -8.97, 2.92, 9.82, 15.15, 18.89, 15.96, 9.96, 3.82, -9.63, -18.36, -15.81, -13.94, -3.22, 7.92, 14.99, 19.3, 23.11, 20.52, 14.94, 6.9, -3.94, -11.66, -16.62, -15.12, -4.28, 7.44, 14.79, 18.97, 21.98, 19.76, 13.75, 6.92, -4.7, -11.48, -18.68, -16.65, -5.89, 5.01, 11.42, 15.68, 22.01, 20.55, 12.95, 5.45, -7.76, -18.43, -18.12, -16.72, -7.17, 3.77, 9.14, 13.31, 19.62, 18.63, 11.27, 4.65, -7.11, -16.63, -22.6, -19.25, -7.36, 4.14, 11.64, 16.59, 20.56, 17.27, 11.34, 4.71, -9.5, -18.27, -18.16, -15.36, -5.85, 5.23, 12.74, 17.1, 19.85, 16.95, 11.77, 5.56, -6.17, -13.73, -16.07, -14.18, -3.22, 7.73, 15.19, 19.79, 23.62, 21.38, 15.69, 7.97, -4.6, -11.91, -16.31, -14.44, -3.94, 6.71, 13.98, 18.64, 22.71, 21.5, 15.13, 7.96, -4.92, -13.18, -17.17, -15.24, -4.49, 6.13, 13.45, 18.19, 22.77, 20.85, 14.61, 7.53, -6.41, -16.17, -18.53, -15.64, -6.45, 4.67, 11.79, 15.55, 19.04, 16.05, 11.21, 4.02, -8.45, -16.43, -14.85, -13.28, -3.03, 7.79, 15.66, 19.66, 22.31, 19.67, 14.62, 7.6, -4.41, -11.07, -14.5, -12.81, -2.97, 7.5, 15.05, 20.21, 23.44, 22.4, 16.63, 8.8, -4.18, -10.93, -13.99, -12.5, -3.7, 6.46, 12.37, 16.42, 21.86, 21.6, 15.08, 7.14, -4.33, -13.37, -11.96, -11.02, -0.9, 9.62, 17.78, 21.84, 24.29, 22.73, 17.52, 9.83, -3.42, -9.61, -10.52, -9.35, -0.52, 8.9, 15.91, 20.57, 23.64, 23.58, 18.32, 11.31, -0.17, -6.58, -13.47, -11.91, -2.44, 7.21, 14.91, 19.33, 23.63, 22.66, 16.27, 8.69, -2.68, -9.35, -12.72, -11.07, -1.81, 7.89, 15.24, 18.99, 23.35, 23.23, 16.78, 9.65, -1.34, -8.82, -16.48, -14.15, -4.62, 6.06, 11.71, 15.82, 21.0, 20.35, 14.35, 6.52, -4.8, -15.66, -13.8, -11.0, -1.8, 8.4, 14.2, 18.0, 22.8, 22.5, 17.2, 8.7, -1.1, -11.4, -10.4, -7.6, 0.58, 10.16, 17.28, 20.63, 22.89, 20.66, 16.41, 9.63, -0.71, -7.09, -11.57, -9.29, -0.41, 9.63, 16.54, 20.21, 22.51, 20.64, 16.05, 9.12, -2.31, -9.1, -10.67, -9.78, -0.77, 8.27, 15.86, 20.43, 24.58, 24.86, 18.5, 11.44, 0.9, -5.94, -12.9, -10.53, -2.61, 6.55, 12.99, 16.99, 21.68, 22.22, 15.98, 8.52, -2.24, -10.35, -9.34, -7.5, -0.69, 7.12, 13.25, 17.21, 21.44, 22.65, 18.65, 11.14, 1.09, -6.38, -5.66, -4.37, 3.09, 13.67, 19.92, 23.82, 25.23, 24.82, 20.6, 13.49, 3.92, -2.34, -5.99, -5.1, 2.27, 12.23, 19.44, 23.16, 25.36, 25.17, 20.56, 13.87, 3.81, -2.61, -7.12, -6.71, 0.99, 10.22, 17.18, 21.7, 24.92, 24.86, 19.94, 13.05, 2.29, -4.13, -5.04, -4.3, 3.44, 13.08, 20.58, 24.54, 26.33, 26.0, 21.05, 14.87, 4.56, -1.8, -6.35, -6.57, 0.47, 9.12, 15.78, 20.02, 23.29, 24.59, 20.6, 14.77, 5.48, -1.22, -5.12, -4.76, 3.26, 12.6, 19.87, 24.33, 26.47, 26.04, 20.4, 14.42, 4.35, -1.98, -2.49, -3.1, 0.78, 6.48, 12.38, 16.89, 19.53, 23.05, 21.38, 15.64, 7.32, 0.66, -3.76, -3.6, 5.07, 13.41, 20.86, 25.32, 26.93, 26.67, 20.99, 16.03, 6.37, 0.01, -4.69, -5.48, 3.41, 11.67, 18.91, 23.25, 26.02, 26.01, 20.64, 14.53, 4.68, -1.22, -2.43, -2.89, 3.14, 9.78, 15.51, 20.27, 23.54, 26.07, 21.74, 16.36, 7.75, 1.83, -2.91, -2.77, 6.02, 14.13, 20.92, 25.99, 27.68, 27.02, 21.06, 16.05, 6.43, 0.61, -3.09, -3.05, 5.29, 13.84, 20.48, 24.24, 26.71, 26.28, 21.17, 15.23, 5.7, -0.02, -9.56, -7.46, -2.91, 0.35, 5.34, 10.44, 14.48, 14.74, 9.09, 0.74, -3.76, -8.61, -10.85, -7.74, -5.01, -1.61, 3.35, 7.25, 7.97, 7.79, 5.52, -2.07, -5.64, -9.42, -11.73, -9.56, -5.02, -0.57, 4.45, 8.21, 9.11, 9.16, 6.58, -0.23, -5.75, -10.06, -9.12, -6.02, -4.12, -0.36, 4.38, 9.12, 9.78, 9.58, 7.13, -0.56, -3.87, -8.86, -3.54, 1.16, 2.79, 6.93, 11.35, 14.9, 14.74, 13.5, 12.53, 5.72, 2.36, -2.46, -0.92, 2.51, 5.3, 9.21, 13.79, 17.16, 16.85, 16.06, 14.9, 8.58, 4.6, 0.22, -9.6, -6.6, -2.8, -0.6, 3.5, 7.0, 7.8, 7.4, 5.7, -0.5, -2.7, -6.7, -13.75, -10.47, -5.64, -2.08, 2.9, 6.25, 8.3, 7.55, 4.84, -3.16, -9.27, -13.78, -12.1, -9.05, -4.74, -0.25, 4.75, 6.7, 9.27, 8.49, 5.57, -1.35, -8.41, -12.43, -6.19, -3.83, 0.7, 4.19, 9.07, 10.51, 12.62, 12.03, 9.51, 2.74, -2.44, -6.16, -14.59, -11.64, -7.1, -1.52, 2.8, 4.53, 7.47, 6.63, 3.51, -2.8, -10.34, -15.4, -10.7, -8.02, -2.7, 1.64, 5.99, 7.34, 9.83, 9.1, 7.13, 0.66, -6.32, -11.13, -7.32, -4.53, 0.47, 4.17, 8.17, 8.72, 12.22, 11.12, 8.47, 3.37, -4.17, -8.13, -9.06, -7.14, -0.15, 3.92, 8.01, 8.93, 11.96, 10.91, 7.78, 4.47, -4.67, -8.73, 2.43, 3.75, 11.83, 16.7, 22.12, 22.77, 25.87, 25.57, 20.42, 16.92, 7.41, 3.71, -7.92, -3.71, -0.52, 3.67, 7.93, 10.48, 12.02, 12.08, 9.23, 2.48, -2.17, -5.92, -6.32, -3.29, 0.18, 3.11, 8.42, 9.41, 2.63, -1.2, -4.48, -1.68, 1.85, 4.92, 8.94, 14.22, 16.53, 15.84, 13.93, 7.59, 3.28, -0.3, -2.5, 0.24, 4.24, 7.74, 12.24, 12.73, 14.23, 13.41, 11.71, 6.42, 0.81, -2.8, -0.07, 3.72, 7.94, 11.17, 13.96, 14.13, 16.62, 16.26, 13.93, 9.15, 4.23, 0.61, -3.76, -1.51, 3.42, 6.52, 10.19, 10.53, 14.3, 13.29, 10.66, 5.95, 0.26, -3.26, -4.6, -2.51, 0.64, 4.54, 12.91, 8.34, 3.39, -1.32, -3.39, 5.87, 6.72, 13.62, 18.67, 24.48, 23.83, 27.12, 26.84, 23.1, 19.37, 11.04, 8.02, -1.58, -0.19, 4.26, 6.04, 10.45, 12.27, 13.88, 13.23, 11.47, 7.56, 3.53, 0.66, 1.03, 3.24, 7.38, 9.96, 14.47, 14.44, 14.95, 14.04, 13.09, 9.03, 5.07, 2.14, 7.02, 8.48, 15.91, 20.94, 25.98, 24.47, 27.77, 27.58, 23.95, 20.21, 12.57, 9.36, 9.86, 12.87, 17.57, 19.93, 23.82, 21.0, 22.34, 21.63, 19.99, 17.13, 12.23, 9.04, 6.4, 8.55, 12.28, 14.0, 18.57, 18.17, 18.23, 17.39, 15.76, 13.0, 9.15, 6.8, 8.12, 10.37, 14.08, 17.26, 23.02, 21.95, 21.96, 21.2, 19.26, 16.7, 12.03, 8.74, 6.97, 8.77, 12.94, 15.54, 18.92, 19.51, 19.84, 19.2, 18.85, 15.87, 11.56, 8.93, 8.27, 10.95, 14.98, 17.04, 21.79, 21.33, 21.14, 20.35, 18.65, 16.18, 11.88, 9.2, 8.53, 10.09, 13.46, 15.75, 20.74, 19.62, 19.98, 19.03, 17.52, 15.2, 11.34, 8.96, 9.84, 12.02, 15.38, 17.56, 20.73, 20.65, 20.57, 19.87, 19.24, 17.3, 13.91, 11.25, 13.29, 14.09, 17.61, 20.37, 23.66, 23.41, 22.83, 22.13, 22.18, 20.72, 17.1, 14.96, 12.47, 13.8, 17.71, 19.88, 22.9, 22.43, 22.38, 21.18, 21.04, 19.54, 15.75, 13.52, 14.21, 15.02, 19.33, 22.11, 24.85, 23.39, 23.22, 21.76, 20.71, 19.57, 14.56, 11.7, -1.89, -0.73, 8.75, 13.24, 20.3, 21.48, 24.79, 23.64, 18.08, 14.22, 3.45, -0.53, -3.01, -2.15, 8.17, 12.71, 20.0, 25.05, 26.71, 25.83, 19.17, 15.05, 4.89, 0.14, -2.54, -3.36, 7.38, 12.28, 19.55, 23.33, 26.23, 24.73, 18.27, 14.83, 5.19, 0.34, -2.03, -1.55, 7.45, 14.3, 21.4, 26.52, 28.35, 26.92, 20.53, 16.18, 7.08, 1.79, 2.6, 3.22, 11.45, 16.05, 22.58, 24.47, 27.05, 26.42, 20.8, 17.4, 7.49, 4.29, 2.91, 3.97, 11.4, 15.44, 21.68, 22.93, 26.61, 26.57, 20.83, 17.63, 8.92, 5.9, -1.28, -1.55, 8.07, 13.47, 20.64, 24.32, 26.68, 26.74, 20.34, 16.95, 7.62, 3.14, -1.77, -3.38, 6.69, 13.32, 20.62, 25.3, 27.09, 26.41, 20.25, 15.98, 6.97, 1.85, 0.11, -0.94, 8.87, 15.32, 22.33, 25.21, 27.81, 27.7, 21.98, 17.65, 9.0, 4.83, 5.21, 6.39, 13.64, 18.28, 24.16, 24.1, 27.8, 27.78, 21.88, 18.91, 10.28, 7.28, 4.57, 4.78, 11.63, 17.17, 22.9, 23.87, 26.84, 27.16, 23.92, 19.4, 10.6, 6.49, 1.45, 1.35, 9.61, 15.43, 22.08, 23.69, 26.84, 27.02, 22.7, 18.75, 9.93, 6.06, 0.9, -0.56, 9.12, 15.37, 22.54, 24.4, 27.54, 27.7, 24.0, 18.56, 9.14, 5.0, 6.71, 8.57, 15.41, 20.42, 24.94, 24.18, 28.92, 28.4, 24.99, 20.3, 12.2, 8.69, 7.56, 9.44, 15.99, 20.88, 25.62, 24.83, 29.38, 29.15, 25.28, 20.86, 12.76, 9.21, 1.94, 1.14, 9.09, 14.78, 20.42, 20.63, 23.9, 23.94, 21.68, 16.56, 8.55, 4.98, 0.86, 0.68, 8.83, 14.97, 22.16, 23.27, 26.62, 26.68, 22.59, 18.1, 9.53, 5.8, 2.96, 2.36, 11.04, 17.42, 24.16, 24.95, 28.71, 28.31, 25.57, 19.92, 11.14, 7.5, 3.49, 4.78, 10.88, 16.82, 20.14, 19.0, 22.58, 21.43, 19.07, 16.29, 7.88, 5.12, 4.45, 4.5, 12.07, 18.43, 22.45, 21.91, 25.67, 24.92, 22.62, 18.47, 10.14, 7.27, 3.76, 3.7, 11.62, 17.55, 23.25, 24.21, 27.58, 26.67, 24.97, 19.64, 11.38, 7.4, 6.06, 4.86, 12.45, 19.88, 25.11, 25.57, 30.26, 29.29, 27.36, 20.21, 12.68, 8.8, 4.85, 4.96, 12.01, 17.27, 21.02, 20.49, 23.1, 22.31, 20.8, 17.29, 8.79, 6.25, 4.15, 3.27, 11.73, 18.03, 24.59, 25.46, 29.54, 28.74, 26.33, 20.84, 11.8, 8.84, 7.57, 7.58, 14.32, 18.97, 21.48, 20.96, 22.46, 21.73, 20.04, 18.13, 9.93, 7.25, 7.43, 6.04, 13.2, 18.21, 25.26, 26.0, 28.88, 27.98, 26.69, 22.13, 13.86, 11.22, 8.46, 5.76, 13.74, 20.86, 26.01, 26.3, 30.55, 29.73, 28.41, 21.65, 14.08, 10.39, -1.7, -3.96, 6.08, 14.57, 21.16, 24.75, 26.73, 27.45, 22.0, 16.2, 7.37, 2.06, -2.44, -4.37, 4.01, 11.58, 17.91, 22.21, 24.78, 26.57, 21.09, 15.0, 6.05, 0.3, -0.84, -2.85, 7.49, 15.4, 22.37, 26.13, 27.46, 27.86, 22.33, 17.12, 8.17, 2.66, -1.8, -3.38, 5.7, 13.82, 20.34, 23.45, 25.42, 27.04, 21.26, 15.84, 7.14, 2.17, 1.65, 0.57, 7.45, 15.38, 21.69, 23.87, 26.75, 28.86, 24.66, 17.49, 8.99, 4.1, 0.57, 0.03, 4.97, 12.84, 18.91, 22.24, 25.08, 27.06, 23.34, 16.1, 7.86, 2.75, -0.02, -0.95, 8.1, 15.03, 21.33, 22.98, 26.89, 22.04, 16.53, 8.2, 3.84, 0.26, -0.93, 7.81, 15.24, 21.53, 23.51, 26.17, 28.06, 23.44, 17.28, 8.74, 4.17, 3.52, 2.57, 6.77, 14.32, 19.62, 22.27, 26.67, 28.07, 25.02, 17.62, 10.22, 5.02, 4.55, 3.57, 7.8, 15.32, 20.65, 23.27, 27.71, 29.05, 26.0, 18.65, 11.19, 6.01, 1.59, -0.67, 8.51, 15.83, 21.86, 23.17, 26.51, 27.42, 24.19, 17.93, 9.6, 4.72, 4.42, 2.55, 8.81, 17.1, 22.42, 23.72, 28.27, 28.87, 25.74, 18.09, 10.8, 6.0, 5.6, 4.35, 7.89, 14.43, 18.73, 21.34, 25.84, 27.79, 25.56, 19.34, 12.58, 7.45, 6.26, 4.35, 12.11, 18.3, 23.65, 24.54, 28.77, 28.98, 26.91, 19.8, 11.6, 6.81, 4.33, 2.77, 11.38, 18.6, 24.1, 24.89, 29.58, 29.42, 26.91, 20.05, 12.14, 7.65, 5.78, 4.44, 10.93, 18.75, 23.61, 24.11, 29.08, 29.26, 26.66, 19.2, 11.94, 7.1, 8.46, 6.54, 11.12, 17.05, 21.51, 22.72, 27.95, 28.28, 26.41, 20.35, 14.28, 9.32, 6.78, 4.98, 8.48, 14.63, 18.73, 21.18, 25.88, 27.03, 25.88, 20.27, 13.68, 8.68, 6.14, 3.82, 12.24, 19.42, 24.08, 24.89, 30.17, 29.28, 26.61, 19.64, 12.28, 8.12, 10.86, 9.16, 14.19, 20.89, 24.11, 24.24, 29.7, 28.76, 27.1, 20.6, 13.92, 9.97, 12.44, 10.01, 13.5, 20.59, 24.11, 24.37, 30.47, 28.97, 27.63, 21.86, 16.85, 13.07, 10.39, 8.63, 14.06, 20.58, 24.15, 23.95, 28.62, 27.82, 26.2, 20.06, 13.18, 9.36, 10.82, 9.83, 16.16, 20.3, 25.33, 25.87, 27.75, 26.96, 26.28, 22.32, 15.09, 12.55, 11.07, 9.57, 16.37, 20.57, 26.87, 27.77, 30.07, 28.67, 27.97, 23.57, 15.27, 12.47, 9.46, 6.64, 14.07, 19.35, 25.41, 25.85, 29.3, 28.25, 27.11, 21.82, 14.34, 10.72, 13.42, 11.44, 14.2, 19.89, 24.01, 24.71, 29.22, 28.8, 28.51, 23.31, 18.48, 14.57, 15.08, 14.63, 20.63, 24.7, 28.26, 28.05, 29.29, 28.26, 27.98, 25.21, 17.95, 15.86, 12.27, 10.38, 16.24, 20.75, 26.31, 27.1, 29.02, 28.39, 27.77, 24.06, 16.78, 14.24, 11.04, 9.28, 15.68, 20.48, 25.61, 26.27, 28.57, 27.77, 27.33, 23.25, 15.98, 13.2, 13.38, 10.55, 16.28, 21.19, 25.86, 26.3, 28.27, 28.09, 27.97, 23.6, 17.78, 14.11, 12.64, 9.94, 15.95, 21.37, 25.44, 25.97, 28.51, 28.17, 28.17, 22.89, 16.6, 13.71, 16.07, 14.09, 17.28, 22.46, 26.51, 26.75, 29.95, 30.0, 29.09, 23.68, 19.14, 15.34, 15.56, 14.01, 18.41, 22.77, 27.99, 27.69, 28.39, 27.7, 27.0, 24.35, 17.23, 15.28, 13.65, 11.62, 17.38, 21.77, 26.75, 27.66, 29.05, 28.07, 27.43, 24.25, 16.65, 14.18, 16.07, 13.47, 16.92, 21.59, 25.71, 25.91, 28.55, 27.95, 28.6, 23.9, 19.56, 15.71, 13.62, 11.55, 16.77, 21.73, 27.05, 27.38, 28.1, 27.42, 27.68, 24.47, 17.53, 15.39, 15.11, 12.69, 16.94, 21.38, 26.33, 26.82, 28.01, 27.89, 27.99, 24.22, 19.07, 15.8, 19.49, 17.72, 20.56, 24.34, 28.55, 28.39, 28.85, 28.24, 27.53, 25.59, 21.18, 17.74, 20.08, 18.34, 21.61, 25.05, 29.47, 29.31, 29.23, 28.69, 27.93, 26.76, 22.11, 19.53, 19.24, 17.84, 21.35, 23.85, 28.42, 27.55, 27.96, 27.34, 26.7, 24.48, 20.46, 17.67, 20.05, 18.8, 21.25, 22.3, 25.35, 24.89, 24.7, 24.55, 24.0, 23.1, 20.75, 18.05, 25.4, 24.4, 26.45, 27.3, 30.15, 29.4, 28.9, 28.8, 27.85, 27.25, 25.15, 23.35, -21.17, -20.37, -4.37, 9.93, 16.53, 21.03, 24.73, 21.43, 14.93, 7.83, -2.37, -10.67, -24.81, -22.51, -9.46, 2.18, 8.44, 15.04, 19.59, 17.34, 11.14, 2.99, -11.21, -23.41, 15.87, 12.92, 17.67, 21.82, 26.62, 26.82, 28.57, 28.37, 28.42, 24.42, 19.57, 15.87, 14.51, 12.36, 17.61, 22.06, 26.21, 27.21, 28.26, 28.0, 27.46, 24.31, 18.36, 16.11, 5.8, 3.35, 12.9, 18.95, 25.35, 26.15, 30.3, 28.85, 25.8, 20.59, 11.9, 9.2, 10.5, 10.8, 16.14, 20.95, 23.65, 22.44, 23.35, 22.1, 20.35, 18.85, 11.6, 9.8, 3.6, 3.05, 11.25, 17.35, 23.75, 24.7, 28.35, 27.35, 25.59, 19.75, 11.5, 8.0, -8.08, -6.58, 2.86, 9.32, 17.02, 19.92, 21.87, 20.77, 15.07, 10.12, -0.23, -5.73, -9.85, -9.14, -2.85, 5.7, 11.85, 14.9, 17.15, 17.4, 13.35, 7.85, -2.0, -7.14, 5.29, 3.64, 11.54, 16.64, 22.94, 24.19, 26.49, 25.59, 23.88, 19.08, 11.24, 8.39, -10.11, -8.5, 2.99, 10.19, 19.39, 19.59, 22.99, 20.59, 14.99, 9.49, -3.21, -8.61, -2.55, -3.2, 2.85, 10.45, 17.4, 21.95, 24.9, 25.45, 21.6, 16.0, 7.35, 1.0, 10.05, 10.75, 17.95, 21.75, 25.2, 24.95, 26.5, 25.8, 24.85, 21.95, 14.0, 11.84, -10.0, -7.2, -1.5, 3.8, 7.8, 9.0, 11.6, 10.7, 7.8, 1.4, -6.6, -11.2, -10.25, -7.7, 2.74, 5.69, 11.25, 12.79, 15.55, 15.05, 9.95, 4.55, -3.7, -8.39, 1.4, 5.2, 9.5, 12.7, 15.5, 15.6, 18.2, 17.8, 15.4, 10.7, 5.8, 2.2, -8.97, -8.22, 3.23, 10.22, 17.23, 18.83, 21.78, 20.08, 14.88, 9.53, -1.07, -7.27, 6.4, 7.7, 14.3, 19.4, 24.5, 23.1, 26.6, 26.4, 22.8, 19.0, 11.5, 8.7, 1.3, 0.99, 9.85, 15.6, 22.95, 25.2, 27.85, 27.85, 22.75, 19.7, 9.95, 5.85, -1.52, -1.26, 5.28, 12.13, 16.02, 14.88, 18.98, 18.27, 16.13, 11.73, 3.23, -0.02, -15.4, -12.5, -7.0, -3.4, 1.4, 3.4, 6.4, 5.6, 2.4, -4.1, -10.2, -14.4, -4.5, -5.2, 3.4, 11.7, 18.2, 22.3, 25.1, 25.5, 20.1, 14.2, 4.4, -1.7, -11.83, -7.18, 6.42, 13.17, 19.82, 21.37, 23.07, 22.92, 16.57, 9.97, 1.07, -6.78, 6.6, 5.0, 12.7, 19.7, 24.7, 25.2, 30.4, 28.6, 26.2, 19.8, 12.5, 8.4, -3.4, -3.2, 5.2, 14.0, 21.4, 26.0, 27.5, 26.9, 21.2, 16.4, 6.7, 0.3, -3.55, -4.6, 2.85, 10.35, 17.39, 22.05, 25.9, 25.7, 20.25, 14.85, 5.65, -0.45, 10.02, 6.72, 13.82, 19.82, 24.42, 24.66, 28.57, 28.02, 26.52, 20.42, 13.32, 10.07, -6.1, -3.2, 1.0, 4.2, 9.2, 10.5, 12.8, 11.8, 8.8, 2.2, -2.8, -6.6, -11.2, -8.55, 0.4, 9.5, 17.0, 20.05, 22.5, 20.25, 16.15, 9.05, -1.55, -8.05, 15.98, 13.48, 16.43, 20.53, 26.58, 27.03, 28.53, 28.18, 28.03, 24.68, 19.57, 16.37, -10.39, -7.39, -3.19, 1.09, 5.9, 8.15, 9.9, 9.14, 7.0, 0.4, -5.14, -9.1, 7.36, 5.36, 12.26, 19.71, 23.91, 24.61, 29.66, 29.46, 26.41, 19.61, 12.26, 8.06, -10.37, -6.62, 2.58, 10.18, 18.58, 21.03, 21.53, 20.18, 16.43, 9.73, -2.11, -8.57, 12.54, 14.89, 19.19, 21.79, 24.39, 23.99, 24.14, 23.24, 23.74, 21.39, 17.94, 14.29, -14.5, -15.0, -2.5, 4.9, 13.5, 16.8, 18.4, 16.2, 10.3, 5.5, -6.8, -11.3, -17.7, -16.25, -6.75, 4.19, 10.3, 14.29, 19.65, 19.29, 11.8, 5.35, -7.1, -16.29, -4.07, -3.37, 4.98, 13.58, 20.58, 25.77, 27.03, 26.48, 20.28, 15.13, 5.43, -0.92, 5.5, 7.25, 14.1, 18.69, 24.45, 24.75, 27.85, 28.2, 22.35, 19.6, 10.94, 7.65, -2.15, -3.25, 3.15, 10.1, 16.04, 21.05, 24.15, 26.34, 21.45, 15.95, 7.15, 1.04, -16.91, -15.76, -5.11, 5.84, 12.64, 17.14, 22.14, 21.39, 14.39, 6.88, -6.66, -17.51, -6.55, -4.35, 6.35, 12.9, 20.04, 20.45, 23.9, 22.1, 16.7, 12.0, 1.3, -4.8, 5.98, 7.53, 15.18, 19.98, 25.83, 24.18, 27.73, 27.38, 22.73, 19.48, 11.23, 8.18, -17.65, -15.79, -4.6, 6.4, 13.65, 18.7, 22.75, 21.0, 15.04, 7.3, -6.4, -15.75, -9.95, -8.64, 0.29, 10.6, 16.95, 20.7, 23.3, 22.3, 17.35, 10.15, -0.45, -6.85, -9.71, -7.36, -2.26, 1.49, 5.24, 6.14, 9.03, 7.79, 5.74, 0.19, -6.76, -10.85, 5.55, 6.89, 13.29, 18.5, 23.55, 23.7, 27.65, 27.5, 24.2, 19.45, 10.95, 7.2, 5.19, 5.94, 13.04, 17.84, 24.29, 23.78, 27.04, 26.69, 22.79, 18.73, 10.04, 6.29, 17.58, 19.38, 23.53, 26.33, 30.58, 28.57, 29.03, 26.98, 26.83, 24.68, 20.68, 17.48, -24.75, -23.9, -7.4, 7.05, 13.55, 20.15, 22.9, 17.85, 13.2, 6.9, -3.85, -11.85, 1.0, 2.4, 8.9, 14.9, 19.2, 17.3, 21.3, 20.4, 17.5, 13.7, 6.0, 3.3, 6.4, 4.8, 9.6, 15.9, 20.8, 22.2, 27.3, 27.9, 25.5, 18.6, 12.6, 7.1, -10.3, -9.39, 3.6, 9.6, 15.6, 17.2, 18.8, 17.7, 12.4, 8.2, 0.1, -5.6, -14.95, -12.95, -3.55, 7.2, 14.1, 17.99, 22.8, 22.35, 15.2, 8.25, -4.24, -13.1, 9.25, 11.95, 15.95, 18.0, 22.75, 22.35, 22.1, 21.3, 19.64, 17.14, 12.85, 10.19, -13.25, -10.7, -1.59, 8.55, 15.4, 19.09, 21.95, 19.45, 14.55, 8.05, -3.15, -10.29, -0.34, 0.65, 7.0, 13.9, 12.75, 16.0, 15.29, 12.75, 9.3, 2.5, -0.39, 7.05, 9.25, 12.95, 14.65, 19.25, 18.85, 18.95, 18.05, 16.45, 13.65, 9.85, 7.45, -16.29, -13.7, -4.0, 6.3, 12.9, 16.3, 21.6, 20.9, 14.0, 7.0, -4.5, -13.8, 9.71, 7.66, 12.06, 18.25, 22.05, 22.96, 28.46, 28.11, 26.61, 20.71, 14.66, 10.46, -26.31, -23.81, -8.61, 1.09, 5.69, 8.79, 10.54, 9.14, 4.29, 0.03, -9.16, -17.15, 15.39, 17.7, 22.0, 23.8, 28.3, 25.9, 25.3, 23.95, 22.5, 20.3, 16.65, 14.05, 7.3, 8.5, 14.2, 18.7, 21.5, 20.5, 21.8, 20.9, 19.0, 17.2, 9.7, 6.8, 14.6, 15.4, 19.0, 21.7, 25.0, 24.8, 24.2, 23.4, 23.5, 22.1, 18.4, 16.3, 14.4, 15.0, 19.29, 21.4, 23.65, 23.6, 23.7, 22.65, 22.4, 20.7, 16.85, 13.85, -18.35, -18.75, -6.3, 3.7, 10.5, 16.04, 17.79, 14.3, 8.89, 3.9, -7.0, -10.4, -13.6, -12.5, -2.5, 8.1, 16.1, 20.6, 23.3, 22.5, 16.9, 9.1, -3.2, -9.8, 6.96, 8.51, 15.96, 20.9, 25.31, 24.16, 28.06, 27.81, 23.65, 19.81, 12.21, 9.16, -19.2, -18.4, -4.8, 5.9, 11.4, 16.9, 19.1, 15.6, 10.4, 3.9, -4.8, -9.39, 11.63, 8.93, 15.38, 21.03, 25.18, 26.08, 28.43, 28.08, 27.13, 21.77, 15.33, 12.73, -5.89, -4.59, 2.61, 13.41, 19.81, 23.81, 25.11, 24.71, 20.11, 12.81, 3.31, -2.89, 4.12, 3.87, 11.47, 17.77, 24.02, 24.91, 28.02, 27.12, 25.22, 19.86, 11.72, 8.22, -11.2, -8.1, -0.4, 4.2, 9.8, 11.0, 14.5, 13.0, 8.3, 1.9, -6.0, -10.8, -9.39, -5.8, -2.2, 2.2, 7.0, 9.4, 11.4, 10.8, 8.4, 1.4, -3.9, -7.8, -10.86, -8.36, 0.64, 9.83, 16.78, 19.58, 22.08, 20.34, 16.24, 9.59, -2.86, -9.36, 7.89, 5.69, 12.49, 19.19, 22.89, 23.54, 28.29, 27.59, 25.79, 18.74, 11.94, 7.89, 3.56, 2.91, 10.76, 16.86, 23.31, 24.01, 26.86, 27.06, 24.61, 19.51, 11.06, 7.01, 2.72, 2.32, 10.07, 16.31, 21.52, 22.52, 25.32, 24.36, 22.42, 17.12, 9.47, 6.62, -9.3, -6.4, 9.3, 15.2, 20.6, 22.6, 25.7, 24.9, 18.0, 11.8, 1.2, -5.8, -5.0, -5.2, 2.0, 10.2, 16.8, 21.1, 24.3, 25.1, 20.0, 12.9, 3.7, -2.7, 9.58, 10.73, 15.58, 18.58, 22.47, 20.83, 21.33, 19.88, 18.33, 16.67, 10.92, 8.58, -17.79, -14.6, -4.3, 6.3, 14.9, 19.7, 22.3, 18.1, 13.6, 6.3, -6.9, -14.7, 4.97, 3.72, 6.71, 13.02, 17.32, 20.72, 25.37, 27.27, 25.12, 19.47, 12.37, 6.92, 8.13, 7.57, 14.68, 19.98, 25.08, 25.68, 27.63, 27.08, 26.08, 20.93, 13.38, 10.53, -24.5, -21.0, -8.5, 3.5, 11.4, 16.4, 20.8, 16.8, 11.2, 4.2, -10.4, -20.0, -6.62, -7.02, 1.23, 6.88, 13.62, 15.13, 17.53, 17.33, 11.93, 8.13, -1.87, -4.86, -14.82, -13.72, -3.71, 6.73, 14.98, 19.13, 21.53, 19.93, 14.83, 7.63, -3.92, -10.61, -13.82, -12.57, -5.83, 2.22, 9.27, 11.17, 13.86, 12.36, 8.97, 2.12, -9.13, -14.68, 14.05, 12.2, 14.2, 19.59, 23.9, 24.35, 28.1, 27.7, 28.35, 24.0, 19.3, 15.3, 3.6, 3.7, 11.2, 17.1, 21.1, 20.5, 24.7, 23.5, 21.2, 17.1, 9.0, 5.7, -2.22, 7.98, 14.38, 22.08, 26.37, 27.43, 27.03, 20.37, 16.23, 7.08, 1.83, -9.3, -6.4, 9.29, 15.25, 20.55, 22.55, 25.7, 24.9, 17.95, 11.8, 1.15, -5.8, 2.1, 1.4, 6.1, 13.5, 19.4, 22.7, 25.8, 27.7, 23.9, 17.2, 9.6, 4.2, 9.3, 10.9, 13.79, 15.8, 20.5, 20.29, 20.7, 19.75, 18.2, 15.5, 12.05, 9.55, 3.07, 4.22, 10.22, 14.12, 17.37, 15.91, 17.71, 16.71, 14.97, 13.07, 5.02, 2.67, -20.65, -19.4, -6.45, 5.0, 11.15, 16.95, 22.25, 20.1, 13.9, 5.45, -7.95, -18.9, 11.92, 9.21, 15.47, 20.72, 25.57, 25.91, 28.62, 28.02, 27.37, 22.82, 16.17, 12.92, 4.33, 2.83, 10.88, 18.07, 23.73, 24.33, 27.93, 27.83, 25.38, 18.98, 11.28, 6.83, 2.68, 0.92, 7.37, 15.43, 21.57, 23.88, 26.98, 28.18, 24.57, 17.38, 9.87, 4.77, 0.9, 0.5, 9.6, 15.1, 22.3, 26.3, 28.4, 28.8, 21.4, 18.3, 9.3, 5.1, 15.96, 13.57, 16.71, 21.51, 27.52, 27.72, 28.87, 27.92, 27.52, 24.72, 19.42, 16.21, -12.1, -9.0, -4.8, -0.2, 4.8, 6.7, 9.2, 8.5, 5.6, -1.4, -8.39, -12.4, -5.6, -1.85, 1.44, 6.6, 11.6, 11.67, -7.83, -5.53, 21.37, 16.31, 11.17, -0.48, -7.08, -6.3, -4.9, 2.9, 7.2, 12.3, 13.4, 16.3, 15.5, 11.5, 8.0, -1.3, -5.9, -12.48, -10.14, -1.78, 7.51, 13.51, 17.1, 22.26, 22.61, 17.1, 9.4, -0.64, -9.39, -20.4, -17.5, -5.3, 5.6, 12.5, 17.6, 22.5, 20.4, 13.6, 5.4, -8.2, -20.4, -16.43, -13.83, -5.23, 0.17, 5.97, 7.37, 10.07, 8.87, 4.37, -1.43, -11.83, -16.93, -6.7, -4.1, 4.9, 11.2, 18.6, 20.7, 22.7, 21.0, 15.6, 10.8, 0.1, -6.1, 8.04, 6.24, 12.89, 19.29, 23.68, 23.99, 28.84, 27.93, 26.34, 19.24, 12.44, 8.43, 12.22, 12.52, 16.87, 21.17, 24.32, 23.77, 24.87, 24.07, 22.67, 20.82, 13.66, 12.12, -2.39, -3.9, 5.2, 13.2, 19.54, 23.65, 26.15, 27.0, 21.4, 15.65, 6.64, 0.79, 8.55, 6.15, 13.95, 19.15, 25.5, 26.09, 28.8, 28.09, 26.45, 21.6, 13.9, 10.85, -4.38, -3.88, 1.12, 5.67, 8.81, 8.06, 12.27, 11.07, 8.47, 5.37, -1.83, -3.98, 4.7, 2.7, 10.1, 17.2, 22.5, 23.3, 27.3, 27.4, 24.9, 17.7, 9.9, 5.0, -25.6, -26.25, -11.25, 1.0, 8.7, 17.0, 20.45, 17.85, 11.1, 2.25, -14.7, -25.35, 1.83, 6.23, 11.43, 14.63, 17.53, 17.13, 19.83, 19.23, 16.23, 12.13, 6.63, 3.03, 5.3, 5.8, 13.0, 19.4, 24.0, 23.7, 27.6, 27.2, 25.6, 20.5, 12.0, 8.2, -5.21, -4.36, 5.73, 12.18, 20.33, 23.73, 25.23, 24.38, 18.48, 13.58, 3.98, -1.67, -4.21, -2.57, 5.58, 14.33, 21.53, 25.88, 26.78, 25.88, 20.27, 14.68, 5.88, -0.27, -20.37, -18.62, -5.92, 5.83, 12.48, 18.62, 22.92, 20.08, 14.28, 4.98, -8.22, -17.51, -1.45, -2.55, 7.4, 14.2, 21.45, 26.05, 27.75, 26.65, 21.05, 16.5, 7.45, 2.15, 5.8, 7.2, 14.2, 18.8, 24.9, 24.3, 28.1, 28.0, 22.5, 19.5, 10.9, 7.9, 3.63, 4.99, 10.49, 15.19, 19.03, 16.78, 19.28, 18.24, 16.14, 13.59, 5.74, 2.94, -26.0, -22.0, -8.8, 2.2, 10.1, 15.8, 19.6, 16.1, 10.2, 2.6, -11.5, -19.5, 1.56, 0.06, 7.46, 15.16, 21.56, 23.66, 26.46, 28.26, 24.36, 17.66, 9.36, 4.36, -8.04, -6.65, 0.99, 10.75, 17.8, 21.15, 23.8, 23.35, 19.14, 12.4, 1.55, -4.85, -10.23, -7.13, -4.43, -1.03, 3.97, 7.77, 8.57, 8.37, 6.17, -1.52, -5.03, -8.82, -4.11, -3.36, 5.04, 13.94, 21.34, 25.99, 27.44, 26.69, 20.99, 15.69, 5.49, -0.86, -0.47, -2.32, 7.92, 14.63, 21.73, 24.38, 26.68, 26.93, 17.23, 8.38, 3.63, -1.1, -2.75, 1.9, 9.7, 13.35, 14.5, 17.95, 17.65, 15.8, 9.4, 1.5, -1.69, 6.84, 12.45, 19.65, 24.54, 24.7, 29.75, 29.2, 26.9, 19.65, 12.3, 8.25, 13.4, 11.1, 16.85, 22.4, 26.0, 26.5, 29.25, 29.4, 28.55, 22.75, 16.45, 13.3, -12.6, -9.6, 0.0, 7.4, 15.95, 17.95, 20.35, 18.15, 13.85, 7.55, -4.5, -10.75, 0.35, -0.25, 4.94, 12.55, 18.75, 22.35, 25.34, 27.55, 23.25, 16.34, 7.6, 2.1, 8.81, 10.41, 14.11, 16.31, 21.31, 19.81, 19.91, 18.81, 17.11, 15.21, 11.01, 8.31, 4.75, 2.5, 9.45, 17.7, 22.4, 23.3, 28.59, 29.2, 26.15, 18.5, 11.4, 6.65, -11.8, -11.4, 3.0, 9.0, 16.0, 16.9, 18.5, 18.7, 13.5, 8.4, -0.2, -6.4, 3.0, 1.2, 9.9, 17.3, 23.2, 24.6, 28.0, 28.8, 25.8, 19.5, 11.4, 6.4, -9.84, -6.35, -2.7, 1.65, 6.5, 8.85, 10.95, 10.35, 7.89, 0.84, -4.4, -8.35, -8.75, -6.05, -2.09, 0.2, 4.35, 7.9, 8.7, 8.39, 6.7, 0.45, -1.4, -5.65, 6.2, 7.3, 14.25, 19.0, 23.8, 19.9, 11.35, 8.0, 0.75, -1.85, 5.25, 13.04, 17.65, 18.65, 22.55, 22.45, 19.35, 13.8, 5.8, 2.95, 3.3, 2.8, 11.4, 17.6, 24.5, 25.4, 30.0, 28.8, 26.1, 20.3, 11.7, 8.4, 8.5, 6.9, 13.0, 19.6, 23.4, 23.7, 29.0, 27.5, 26.1, 18.7, 12.0, 7.3, -12.05, -11.14, 1.8, 7.89, 13.8, 15.5, 17.0, 15.95, 10.7, 6.45, -1.66, -7.3, 1.3, 0.3, 7.1, 14.6, 21.3, 23.7, 26.6, 28.4, 24.1, 17.1, 8.3, 3.2, 0.56, 3.36, 7.36, 9.45, 12.91, 14.51, 16.31, 16.01, 14.16, 9.51, 6.41, 2.91, 5.11, 8.11, 11.11, 14.55, 19.41, 20.55, 20.96, 19.51, 17.61, 12.31, 8.66, 5.01, -13.05, -10.2, 3.15, 12.15, 20.2, 24.5, 26.8, 24.15, 16.59, 10.45, -0.4, -8.8, -9.74, -6.05, 2.75, 10.65, 18.35, 20.45, 21.95, 20.15, 15.95, 9.65, -2.44, -9.05, -5.26, -2.41, 1.84, 4.89, 9.39, 11.64, 12.74, 11.84, 9.74, 4.79, 0.24, -3.41, 6.03, 5.03, 12.23, 17.38, 21.73, 21.98, 23.78, 23.23, 21.83, 18.27, 9.98, 7.53, 13.69, 11.2, 16.8, 21.75, 26.6, 27.15, 28.95, 29.05, 28.3, 23.85, 18.15, 14.8, 11.96, 13.56, 17.66, 19.76, 22.56, 21.96, 22.16, 21.06, 20.56, 19.16, 15.36, 12.96, -1.34, -3.65, 1.75, 11.3, 14.6, 15.7, 19.5, 19.59, 17.09, 10.45, 2.65, -0.25, 17.55, 18.24, 22.2, 25.05, 27.2, 26.1, 26.0, 24.65, 25.35, 23.85, 19.9, 17.6, 7.12, 5.72, 8.92, 13.72, 17.01, 16.92, 20.26, 20.17, 18.01, 12.72, 7.97, 5.67, -1.55, 2.35, 5.5, 9.6, 13.55, 13.9, 15.9, 14.99, 13.1, 7.9, 3.2, -1.14, 14.74, 12.69, 17.44, 22.89, 27.54, 28.04, 28.74, 27.74, 28.24, 25.29, 18.69, 16.44, 16.25, 18.25, 22.35, 24.3, 27.59, 27.05, 27.05, 26.1, 26.75, 24.9, 21.4, 18.09, 2.8, 2.55, 5.89, 13.15, 18.7, 22.15, 25.9, 28.2, 24.65, 17.85, 10.25, 4.29, 17.42, 17.72, 21.41, 24.16, 25.52, 25.52, 25.17, 24.02, 24.27, 23.17, 19.36, 16.77, -26.4, -25.2, -10.9, 3.6, 9.3, 18.4, 21.9, 18.7, 10.65, 3.0, -9.85, -18.04, -10.7, -9.3, -0.3, 8.8, 16.2, 20.4, 24.1, 24.0, 17.6, 11.2, 1.0, -6.1, 0.54, 0.1, 9.6, 15.4, 22.3, 25.75, 27.8, 27.75, 22.15, 19.0, 8.95, 4.9, 3.38, 3.08, 10.48, 16.58, 21.58, 21.48, 25.18, 24.28, 21.88, 17.38, 9.48, 6.28, -7.95, -4.85, 9.9, 14.0, 20.1, 22.1, 24.5, 24.6, 18.0, 12.8, 3.7, -3.5, -0.5, -2.5, 5.35, 12.45, 18.0, 18.79, 21.95, 21.4, 18.75, 13.85, 5.15, 3.15, -10.86, -6.71, 1.19, 6.84, 12.39, 13.69, 16.04, 14.84, 10.19, 4.99, -4.55, -11.16, 7.31, 13.96, 20.11, 24.45, 24.95, 28.26, 27.61, 26.96, 20.7, 13.76, 10.96, -5.1, -5.75, 3.6, 12.6, 18.75, 22.75, 25.59, 25.35, 19.75, 14.0, 4.19, -1.84, -14.66, -12.51, -2.51, 5.99, 13.39, 16.44, 18.58, 16.69, 12.44, 5.69, -5.71, -12.41, 5.76, 6.37, 13.72, 19.02, 24.22, 25.17, 28.27, 28.32, 24.67, 20.67, 11.62, 8.27, -14.1, -10.8, -6.0, -2.4, 2.6, 6.0, 8.0, 7.2, 4.6, -3.5, -9.6, -14.1, -11.67, -9.47, -4.97, -0.47, 4.53, 8.33, 9.13, 9.23, 6.63, -0.47, -5.97, -10.27, 4.66, 3.76, 11.41, 18.35, 24.11, 24.66, 29.16, 28.36, 26.11, 19.31, 12.1, 8.06, 3.9, 1.19, 7.05, 14.05, 17.5, 18.04, 22.25, 21.7, 19.29, 13.1, 6.85, 4.0, -8.1, -5.3, -0.3, 3.4, 7.4, 8.0, 11.4, 10.4, 7.7, 2.6, -5.0, -8.89, -14.2, -11.2, -6.6, -1.1, 3.3, 5.0, 8.0, 7.1, 4.0, -2.4, -9.89, -15.0, 7.39, 9.44, 13.14, 15.79, 20.39, 21.04, 21.23, 20.39, 19.29, 16.74, 12.29, 9.28, -25.36, -21.41, -8.16, 2.74, 10.64, 16.44, 20.13, 16.69, 10.84, 3.19, -10.91, -18.91, 13.2, 11.3, 17.0, 21.9, 26.4, 27.3, 28.3, 28.0, 27.4, 24.1, 17.0, 14.5, -0.54, -2.65, 5.95, 13.55, 19.79, 23.45, 25.7, 27.45, 22.55, 16.45, 7.55, 2.65, 11.87, 9.17, 11.52, 18.01, 22.57, 23.42, 29.02, 27.67, 26.37, 21.97, 17.01, 12.92, 6.42, 7.77, 12.92, 15.37, 19.31, 18.17, 18.72, 17.81, 15.92, 13.31, 7.37, 4.97, 3.8, 5.2, 12.6, 17.6, 22.8, 22.4, 25.6, 24.8, 20.8, 17.8, 9.0, 6.0, -5.69, -5.35, 4.3, 10.09, 17.95, 19.85, 22.04, 21.4, 15.49, 11.05, 0.85, -3.2, -1.6, -0.95, 9.14, 13.45, 21.4, 24.85, 26.45, 26.2, 19.4, 14.8, 5.0, 1.0, -3.0, -2.8, 6.1, 14.2, 21.0, 26.0, 27.7, 27.1, 21.1, 16.1, 6.4, 0.6, -2.12, 1.12, 4.57, 7.96, 12.67, 13.52, 14.87, 14.62, 12.27, 6.37, 1.92, -1.83, -15.39, -16.09, -1.89, 10.61, 12.71, 14.41, 15.41, 10.01, 5.01, -1.69, -8.79, -4.76, -2.26, 0.78, 4.04, 9.04, 12.49, 13.14, 11.69, 10.14, 4.44, 1.79, -2.3, -16.22, -13.27, -7.82, -4.17, 0.58, 2.67, 5.63, 4.88, 1.63, -4.87, -10.97, -15.17, 1.19, 0.88, 9.59, 15.24, 22.69, 24.69, 27.44, 27.99, 23.09, 19.24, 9.79, 5.89, -0.08, -0.98, 8.92, 14.77, 21.87, 26.47, 27.96, 27.67, 21.62, 18.27, 8.32, 3.66, -27.13, -25.63, -10.38, 2.52, 9.12, 16.22, 20.47, 17.92, 11.12, 1.97, -11.53, -22.43, 5.31, 6.42, 13.22, 18.21, 23.57, 22.57, 26.07, 25.67, 21.77, 18.02, 10.37, 7.77, -12.0, -10.7, 2.2, 9.3, 17.7, 19.1, 20.8, 20.0, 13.6, 8.6, -2.6, -8.0, 2.7, 1.1, 10.0, 16.4, 23.3, 24.7, 27.8, 28.8, 25.5, 19.7, 10.9, 6.0, 3.08, 4.58, 11.93, 16.98, 22.18, 21.78, 24.93, 24.08, 20.17, 17.12, 8.33, 5.33, 19.4, 17.76, 21.66, 25.21, 29.41, 28.31, 28.06, 27.81, 26.91, 25.46, 20.15, 17.71, 5.09, 6.29, 12.99, 18.19, 23.49, 24.39, 27.69, 27.79, 21.89, 18.59, 10.29, 6.99, 2.49, 2.29, 11.24, 15.74, 22.09, 25.39, 27.84, 28.49, 21.14, 17.74, 8.14, 4.33, -6.2, -5.8, 3.8, 9.6, 17.5, 19.4, 21.6, 21.0, 15.0, 10.6, 0.4, -3.6, -3.26, -3.76, 2.79, 10.29, 15.84, 20.49, 24.39, 25.64, 21.39, 14.34, 5.69, -0.55, -10.3, -9.6, -1.1, 8.1, 15.0, 20.1, 23.1, 23.5, 18.1, 10.9, -0.2, -6.6, -7.02, -5.07, 2.03, 12.03, 18.68, 23.18, 24.78, 24.23, 19.48, 12.73, 3.28, -3.32, -2.19, -0.89, 3.61, 5.41, 9.81, 11.61, 13.21, 12.61, 10.81, 6.91, 2.81, 0.01, -0.27, -0.17, 8.97, 14.03, 20.63, 22.73, 25.73, 25.53, 19.62, 16.73, 7.13, 3.52, -12.59, -12.19, 2.26, 8.21, 15.26, 16.16, 17.76, 17.96, 12.76, 7.71, -0.89, -7.19, 1.9, 0.5, 10.05, 16.0, 23.15, 25.0, 27.84, 28.25, 24.7, 19.2, 10.1, 5.4, -20.29, -18.04, -6.05, 3.95, 10.2, 15.75, 21.55, 19.79, 13.15, 5.39, -7.85, -18.75, -20.55, -19.34, -3.7, 9.09, 15.35, 20.49, 23.65, 19.29, 14.74, 8.25, 0.11, -5.45, 1.0, -0.2, 9.1, 15.5, 22.9, 24.6, 27.7, 27.8, 23.9, 18.6, 9.2, 5.1, 5.9, 6.3, 13.6, 18.8, 23.8, 23.8, 27.0, 27.1, 24.8, 20.1, 12.1, 7.8, -11.95, -8.36, 1.34, 8.59, 18.49, 20.24, 23.24, 20.63, 15.49, 9.29, -2.36, -9.81, -15.5, -2.34, 5.65, 13.65, 17.29, 18.0, 15.29, 10.15, 4.85, -6.05, -10.05, -1.08, -3.13, 7.27, 14.62, 21.52, 25.31, 26.87, 27.22, 21.72, 16.92, 8.17, 2.72, -23.1, -19.6, -7.9, 4.3, 12.2, 17.2, 20.8, 17.0, 10.9, 4.4, -9.5, -18.1, 2.13, 1.63, 10.43, 16.83, 23.77, 24.98, 27.98, 28.18, 24.73, 19.93, 10.93, 7.03, -9.22, -9.01, -0.22, 4.73, 11.88, 12.08, 15.63, 14.17, 8.88, 5.88, -4.42, -7.12, 11.5, 9.1, 12.5, 19.5, 23.2, 23.6, 29.6, 27.9, 26.7, 20.9, 15.9, 11.8, -9.34, -6.34, -2.14, 2.06, 6.86, 9.16, 10.86, 10.16, 8.06, 1.46, -4.14, -8.13, -15.91, -13.22, -4.27, 6.08, 12.98, 16.98, 19.58, 17.38, 12.58, 5.88, -5.56, -12.72, -6.1, -5.1, 3.7, 9.5, 15.1, 16.0, 18.8, 17.5, 13.3, 9.2, -0.6, -6.3, 17.03, 19.23, 23.63, 25.43, 29.83, 27.43, 26.83, 25.53, 24.03, 21.83, 18.23, 15.63, 1.4, -0.94, 3.85, 12.55, 15.7, 16.2, 20.95, 21.2, 18.0, 11.0, 4.3, 0.85, 13.44, 11.29, 15.89, 21.19, 24.84, 24.79, 28.69, 27.99, 27.39, 21.64, 15.44, 12.49, -11.5, -9.39, -4.8, -1.6, 3.4, 8.5, 12.6, 12.8, 7.2, -1.2, -5.7, -10.6, 14.0, 13.8, 19.8, 24.1, 27.7, 27.4, 28.6, 27.6, 27.2, 24.4, 17.0, 14.9, 10.9, 8.3, 15.45, 19.9, 26.05, 26.7, 29.1, 28.0, 27.55, 23.25, 15.2, 12.5, -13.49, -9.69, 2.36, 11.51, 21.21, 23.56, 25.96, 23.5, 17.2, 9.95, -3.09, -9.13, 4.76, 5.26, 12.41, 18.86, 23.41, 23.16, 27.01, 26.71, 25.05, 19.96, 11.41, 7.71, -17.45, -14.15, -2.99, 6.8, 15.7, 19.5, 22.0, 18.25, 13.1, 7.0, -6.65, -14.6, 8.51, 6.26, 8.96, 15.01, 19.51, 21.56, 26.36, 26.91, 25.66, 20.46, 14.76, 10.3, 3.4, 3.1, 11.0, 16.85, 23.25, 24.25, 27.5, 27.3, 24.8, 19.7, 11.25, 7.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Georgia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;, &quot;Georgia&quot;], &quot;legendgroup&quot;: &quot;Georgia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Georgia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [5.58, 5.35, 9.65, 13.57, 18.67, 24.07, 22.37, 23.91, 20.68, 14.19, 11.7, 10.32, 5.17, 5.17, 9.12, 12.57, 18.27, 23.64, 22.42, 24.08, 20.85, 13.92, 11.39, 10.25, 11.74, 11.58, -1.63, -2.03, 5.25, 10.82, 17.02, 22.75, 22.7, 23.18, 18.73, 12.52, 8.19, 6.34, -1.6, -1.8, 4.9, 10.8, 17.2, 22.9, 22.6, 23.3, 18.7, 12.4, 7.7, 6.1, -5.61, -4.33, -2.05, 1.78, 7.81, 12.48, 11.48, 14.34, 9.11, 4.03, 2.45, -1.16], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Indonesia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;, &quot;Indonesia&quot;], &quot;legendgroup&quot;: &quot;Indonesia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Indonesia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.82, 25.62, 26.02, 26.67, 26.42, 25.92, 25.12, 24.92, 24.72, 25.32, 25.12, 25.22, 28.6, 28.5, 28.5, 27.9, 28.3, 26.5, 25.7, 26.16, 26.2, 26.86, 26.51, 26.11, 26.11, 25.76, 26.06, 26.11, 25.95, 27.44, 28.39, 28.59, 28.14, 27.69, 27.23, 27.58, 27.23, 27.68, 26.83, 26.23, 25.58, 24.83, 25.73, 26.58, 26.57, 27.08, 26.81, 27.46, 27.91, 28.16, 28.26, 27.11, 27.36, 28.01, 28.56, 27.55, 25.81, 25.81, 26.41, 26.76, 27.11, 26.71, 26.56, 26.81, 27.01, 26.96, 26.86, 26.41, 27.26, 27.21, 27.51, 27.16, 26.36, 25.91, 25.26, 25.3, 26.31, 27.26, 27.86, 27.46, 24.75, 24.8, 25.4, 27.65, 26.97, 26.47, 27.72, 27.62, 27.32, 25.97, 26.71, 28.26, 27.86, 28.06, 27.86, 27.56, 26.51, 26.65, 27.01, 27.36, 27.51, 27.46, 27.03, 27.04, 26.29, 25.29, 24.69, 24.59, 25.53, 26.39, 27.19, 27.44, 26.83, 27.13, 27.83, 27.88, 27.08, 26.23, 25.48, 25.58, 25.98, 27.28, 28.83, 27.53, 27.07, 26.82, 27.42, 27.52, 27.02, 26.36, 25.42, 25.92, 25.72, 27.07, 27.82, 27.61, 26.36, 26.76, 27.26, 27.91, 27.51, 27.01, 27.06, 26.36, 26.81, 26.16, 25.66, 26.01, 26.39, 26.44, 25.39, 26.49, 26.34, 26.84, 26.24, 26.09, 25.84, 26.64, 25.84, 25.89, 26.69, 26.79, 26.89, 27.29, 27.49, 26.99, 26.49, 26.59, 26.89, 26.79, 27.09, 26.49, 27.39, 27.54, 27.74, 28.04, 27.89, 26.95, 26.5, 26.7, 26.85, 27.5, 27.05, 27.5, 28.05, 28.1, 28.55, 28.0, 27.1, 27.88, 27.57, 27.98, 28.43, 30.03, 28.23, 28.08, 27.88, 29.28, 29.53, 30.13, 28.03, 28.2, 28.0, 28.1, 28.45, 28.65, 27.55, 27.2, 27.35, 28.35, 29.75, 30.15, 25.97, 26.27, 26.37, 26.37, 26.57, 26.37, 25.57, 26.37, 27.07, 27.47, 27.17, 25.57, 26.6, 26.4, 27.4, 27.9, 27.7, 27.55, 27.1, 27.04, 27.1, 27.04, 27.9, 27.45, 27.88, 28.23, 27.58, 27.13, 27.03, 26.13, 25.13, 24.88, 25.13, 24.98, 26.88, 27.88, 27.08, 27.08, 27.12, 26.68, 26.12, 25.03, 24.58, 24.78, 25.33, 26.53, 27.18, 27.53, 27.13, 26.98, 27.18, 27.68, 27.63, 27.18, 26.48, 26.67, 26.98, 26.98, 27.28, 27.28, 25.95, 25.85, 26.35, 26.75, 26.95, 26.6, 26.09, 26.55, 26.3, 26.15, 27.5, 27.3, 27.8, 27.95, 28.25, 27.55, 27.34, 26.9, 27.6, 28.05, 27.8, 27.35, 27.3, 27.6, 27.6, 26.6, 25.9, 25.1, 24.8, 24.8, 25.5, 26.1, 26.9, 27.0, 26.63, 26.13, 27.23, 28.13, 27.63, 25.83, 26.03, 26.43, 27.03, 27.93, 28.63, 27.43, 26.17, 25.87, 26.37, 25.47, 26.67, 26.17, 26.07, 26.17, 26.37, 26.37, 26.37, 25.87, 25.37, 25.47, 25.97, 26.37, 26.37, 26.27, 25.87, 26.17, 26.97, 26.47, 26.37, 26.17, 26.9, 26.8, 27.09, 27.25, 27.45, 26.7, 26.65, 26.8, 27.35, 27.59, 27.3, 26.9, 26.8, 26.7, 27.3, 27.3, 27.6, 27.1, 26.8, 27.0, 27.1, 27.7, 27.4, 26.8, 27.76, 27.76, 26.82, 25.97, 26.52, 26.92, 27.67, 27.72, 27.57, 26.75, 26.65, 27.15, 27.05, 27.35, 27.25, 26.75, 26.85, 27.65, 26.35, 26.45, 26.85, 26.8, 26.75, 27.1, 27.9, 27.5, 26.59, 26.2, 26.05, 26.75, 28.2, 27.35, 26.95, 26.3, 26.75, 26.85, 27.05, 26.65, 25.8, 24.95, 24.8, 25.6, 26.95, 26.7, 27.0, 27.25, 27.25, 27.9, 27.85, 28.05, 27.45, 27.2, 27.2, 27.25, 27.6, 27.5, 27.0, 27.86, 28.01, 28.11, 27.71, 27.56, 28.16, 28.06, 27.16, 26.56, 25.79, 25.69, 25.79, 25.49, 26.14, 25.38, 27.64, 27.14, 27.89, 27.54, 27.94, 27.04, 26.84, 26.84, 27.73, 28.94, 28.94, 27.79, 27.58, 27.88, 27.78, 28.28, 27.58, 26.98, 26.28, 25.58, 26.78, 27.78, 27.18, 27.78, 26.79, 26.49, 27.39, 27.59, 27.99, 26.99, 26.89, 27.19, 27.19, 27.59, 27.29, 26.59, 26.92, 27.62, 26.97, 26.17, 25.87, 26.92, 26.57, 26.52, 26.27], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=India&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;, &quot;India&quot;], &quot;legendgroup&quot;: &quot;India&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;India&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.91, 25.51, 29.61, 32.31, 32.11, 30.31, 26.81, 26.91, 25.31, 25.31, 23.71, 20.51, 24.7, 26.5, 28.8, 31.1, 31.3, 32.9, 29.5, 29.9, 29.7, 28.4, 27.1, 24.6, 24.01, 26.41, 29.71, 31.71, 30.51, 31.51, 29.41, 29.81, 29.71, 28.31, 26.71, 23.81, 16.38, 18.58, 23.58, 26.18, 27.78, 27.88, 28.58, 28.18, 27.98, 25.78, 21.58, 18.08, 14.63, 17.63, 21.23, 23.63, 25.83, 26.93, 27.73, 27.03, 27.23, 24.53, 20.03, 16.43, 15.11, 18.11, 23.81, 27.91, 28.31, 28.41, 27.71, 27.51, 27.31, 26.21, 21.71, 17.31, 16.62, 21.32, 26.22, 31.02, 32.82, 33.42, 29.92, 29.02, 28.22, 14.92, 18.92, 25.42, 30.12, 30.72, 30.72, 29.12, 27.92, 27.92, 26.42, 21.52, 16.32, 20.87, 23.07, 29.47, 32.77, 34.57, 33.57, 30.87, 28.47, 29.27, 29.17, 27.07, 22.77, 20.8, 21.8, 25.4, 27.5, 29.2, 30.6, 29.3, 27.6, 27.3, 27.3, 26.3, 23.5, 22.02, 22.52, 25.62, 27.62, 29.62, 30.22, 29.02, 27.72, 27.62, 28.22, 27.82, 24.32, 6.81, 8.51, 15.51, 16.31, 19.11, 23.11, 19.61, 19.21, 18.01, 16.91, 13.31, 10.81, 0.61, 4.71, 11.41, 13.31, 16.81, 22.31, 24.5, 24.9, 20.3, 14.1, 9.1, 7.0, 21.17, 23.87, 26.87, 28.17, 27.17, 25.27, 23.87, 23.97, 23.37, 23.27, 22.37, 20.77, 26.8, 27.1, 28.7, 29.7, 29.9, 27.1, 25.6, 25.0, 26.2, 26.3, 26.9, 26.7, 27.7, 28.9, 29.2, 28.0, 26.1, 25.3, 25.9, 25.9, 26.7, 27.2, 27.1, 19.81, 24.01, 28.01, 30.61, 29.61, 27.91, 24.31, 24.71, 24.91, 24.41, 22.51, 18.31, 18.26, 21.06, 26.96, 30.06, 32.36, 30.66, 26.36, 24.66, 25.06, 25.36, 22.96, 18.56, 17.12, 19.82, 24.12, 31.02, 28.12, 25.12, 23.72, 24.92, 24.32, 19.32, 22.53, 25.93, 30.63, 34.13, 35.83, 32.93, 27.43, 26.53, 26.43, 26.73, 25.43, 21.63, 24.12, 25.02, 27.42, 29.52, 30.62, 29.62, 28.32, 28.02, 27.22, 29.22, 29.02, 27.52, 22.39, 25.39, 30.09, 33.59, 35.29, 33.59, 27.99, 27.19, 27.09, 26.29, 24.49, 20.69, 19.98, 22.78, 26.98, 30.18, 30.88, 27.88, 25.18, 24.48, 24.58, 25.18, 23.78, 21.08, 11.06, 14.06, 17.86, 18.16, 19.26, 19.66, 20.26, 18.96, 19.96, 17.76, 14.96, 12.36, 22.49, 27.29, 30.59, 32.29, 31.29, 31.39, 28.59, 28.29, 28.89, 28.79, 25.99, 22.09, 11.98, 14.98, 22.08, 25.88, 28.98, 34.08, 29.88, 29.58, 27.78, 25.38, 19.18, 13.78, 16.07, 18.17, 27.07, 30.77, 33.77, 37.37, 34.87, 33.17, 32.67, 29.47, 22.87, 17.07, 15.73, 18.73, 26.33, 30.03, 32.93, 34.53, 31.33, 29.03, 29.03, 27.43, 23.03, 17.73, 17.45, 19.45, 27.25, 30.75, 33.25, 34.45, 32.35, 29.85, 31.15, 29.15, 24.75, 20.25, 23.81, 25.81, 28.41, 30.81, 32.11, 32.41, 30.31, 29.91, 30.31, 27.21, 26.51, 24.31, 12.73, 13.73, 16.03, 16.23, 17.03, 16.23, 14.73, 14.43, 14.73, 13.53, 12.73, 12.53, 25.78, 25.98, 28.78, 29.48, 30.38, 30.18, 29.18, 28.68, 29.38, 28.28, 26.98, 25.98, 14.4, 17.4, 24.7, 29.4, 31.3, 35.3, 30.8, 30.2, 28.9, 27.2, 21.6, 15.7, 25.6, 26.2, 28.0, 29.8, 30.5, 27.4, 26.7, 26.7, 26.0, 27.7, 28.0, 27.5, 15.55, 18.85, 26.75, 31.15, 33.45, 37.45, 31.15, 30.05, 29.25, 28.05, 22.15, 16.45, 6.07, 9.17, 14.67, 15.47, 17.07, 17.77, 17.67, 17.17, 15.57, 14.37, 12.07, 9.87, 19.47, 24.37, 29.07, 30.47, 30.57, 30.97, 28.87, 28.37, 28.57, 27.57, 24.87, 20.27, 17.66, 22.46, 27.76, 29.56, 29.36, 29.76, 28.36, 27.56, 27.86, 26.56, 23.56, 18.86, 11.03, 14.23, 21.03, 24.03, 28.23, 33.03, 30.83, 29.83, 28.53, 25.23, 18.63, 13.03, 16.24, 20.24, 27.44, 31.94, 32.84, 35.84, 29.44, 28.44, 28.64, 27.34, 23.24, 16.84, 24.1, 24.7, 26.7, 29.1, 30.4, 29.2, 27.8, 27.4, 26.9, 28.6, 28.6, 27.6, 20.1, 20.7, 18.8, 16.0, 13.5, 26.66, 27.66, 28.66, 29.36, 29.06, 28.76, 27.86, 27.66, 27.66, 27.46, 27.36, 27.66, 17.41, 19.91, 24.51, 26.01, 28.61, 27.71, 28.91, 27.91, 29.11, 26.71, 22.71, 19.81, 27.0, 27.4, 28.6, 29.3, 28.3, 26.9, 26.1, 26.7, 26.7, 26.9, 26.6, 26.7, 15.72, 19.72, 27.02, 31.32, 32.42, 35.32, 29.02, 28.02, 28.12, 27.32, 22.72, 16.32, 10.02, 12.82, 16.92, 19.22, 19.52, 20.32, 20.92, 20.32, 19.92, 17.22, 13.92, 11.52, 6.71, 7.41, 10.41, 12.51, 15.71, 17.71, 17.81, 17.41, 16.51, 16.41, 12.41, 9.01], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=British Indian Ocean Territory&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;, &quot;British Indian Ocean Territory&quot;], &quot;legendgroup&quot;: &quot;British Indian Ocean Territory&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;British Indian Ocean Territory&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.01, 27.11, 27.51, 27.91, 27.21, 26.01, 26.31, 26.41, 26.31, 26.21, 26.71, 27.11], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Iran&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;, &quot;Iran&quot;], &quot;legendgroup&quot;: &quot;Iran&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Iran&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-1.84, -2.56, 6.31, 9.96, 17.47, 23.02, 24.06, 25.79, 20.08, 13.46, 5.22, 3.64, -1.67, -1.51, 10.05, 13.28, 18.54, 23.92, 25.7, 23.75, 19.85, 15.27, 6.79, 6.66, 4.24, 5.32, 14.39, 16.36, 21.63, 23.76, 27.64, 23.52, 19.54, 17.13, 6.9, 6.57, 5.27, 6.86, 13.43, 14.27, 20.06, 24.9, 27.22, 25.83, 21.6, 18.34, 9.73, 8.06, -0.16, 2.03, 10.73, 15.08, 21.68, 26.83, 28.43, 27.63, 22.98, 19.02, 8.57, 7.43, 1.44, 3.03, 11.56, 11.51, 17.54, 23.04, 26.4, 27.06, 22.07, 18.07, 8.55, 6.48, 6.96, 7.76, 19.11, 19.95, 23.59, 27.14, 28.66, 25.64, 21.55, 20.12, 10.46, 11.16, 15.9, 14.9, 22.8, 23.2, 28.0, 31.0, 31.4, 32.1, 29.9, 27.0, 19.2, 17.3, -4.47, -4.17, 4.58, 7.27, 14.33, 19.18, 20.88, 22.32, 16.38, 11.13, 4.03, 2.43, 9.77, 10.22, -1.61, -3.36, 7.04, 10.04, 15.99, 20.33, 21.59, 22.34, 17.74, 13.44, 5.34, 4.49, -2.2, -1.9, 7.55, 11.2, 17.3, 23.05, 23.9, 24.2, 19.9, 15.3, 6.4, 5.1, 1.62, 1.67, 6.51, 11.77, 18.52, 24.42, 23.87, 25.42, 22.02, 16.37, 10.12, 9.82, -0.62, -0.46, 8.93, 10.03, 16.83, 22.38, 0.84, 3.54, 12.49, 16.04, 22.79, 27.68, 29.69, 28.04, 23.69, 19.84, 9.29, 7.73, 15.36, 5.16, 3.87, 7.64, -6.16, -0.22, 7.18, 7.98, 13.58, 18.53, 21.13, 19.38, 15.67, 12.58, 4.02, 2.68, 12.8, 20.7, 22.14, 30.05, 34.39, 34.6, 34.95, 32.5, 28.2, 17.95, 14.59, 5.97, 7.47, 19.97, 22.77, 26.87, 31.17, 32.97, 30.47, 25.67, 22.77, 12.57, 11.47, 14.19, 14.89, 22.59, 22.89, 29.69, 33.99, 33.99, 34.59, 32.39, 29.19, 18.29, 15.89, 9.48, 10.88, 21.68, 22.78, 27.68, 31.28, 33.88, 30.08, 26.88, 25.18, 13.68, 14.08, 15.76, 14.57, 22.62, 23.06, 27.77, 30.42, 31.17, 32.12, 29.77, 26.82, 19.37, 17.12, 7.55, 8.65, 15.45, 16.45, 23.55, 27.75, 29.25, 28.25, 24.05, 20.85, 12.05, 10.25, 17.19, 18.19, 24.55, 26.2, 30.4, 33.15, 33.4, 33.35, 31.65, 29.15, 23.05, 20.45, 13.47, 15.17, 24.97, 27.07, 31.67, 34.87, 37.17, 34.77, 30.27, 28.27, 18.87, 17.67, 0.41, 4.41, 12.91, 14.21, 20.21, 25.01, 28.11, 24.91, 20.36, 17.46, 6.56, 5.26, 4.05, 18.95, 24.8, 29.3, 31.85, 28.4, 24.05, 21.35, 9.95, 9.55], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Israel&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;, &quot;Israel&quot;], &quot;legendgroup&quot;: &quot;Israel&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Israel&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.34, 14.66, 17.27, 16.96, 21.13, 24.87, 25.43, 26.03, 25.81, 22.78, 18.7, 15.91, 5.63, 8.94, 11.46, 12.31, 19.96, 23.93, 22.55, 24.14, 23.82, 17.97, 13.82, 9.95, 8.15, 11.95, 14.4, 14.37, 20.95, 24.02, 22.44, 24.32, 24.37, 20.07, 16.34, 12.42, 14.94, 18.11, 21.61, 22.68, 29.12, 32.71, 31.48, 32.83, 31.68, 27.36, 22.42, 17.92, 11.7, 14.65, 17.8, 17.28, 23.11, 25.9, 25.18, 26.36, 25.43, 22.37, 17.79, 14.21, 12.12, 14.95, 17.71, 17.12, 22.73, 25.73, 25.1, 26.04, 25.62, 18.35, 14.9, 12.47, 13.85, 16.98, 16.44, 21.57, 24.36, 24.5, 25.13, 24.87, 21.99, 17.64, 14.72, 12.62, 14.52, 17.32, 16.92, 22.62, 25.42, 25.22, 26.02, 25.82, 22.62, 18.22, 14.92], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Iraq&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;, &quot;Iraq&quot;], &quot;legendgroup&quot;: &quot;Iraq&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Iraq&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [13.63, 14.43, 21.43, 22.63, 30.63, 34.83, 35.13, 34.93, 32.43, 27.73, 16.83, 14.43, 7.58, 8.88, 13.88, 14.98, 24.28, 30.88, 32.78, 33.38, 27.78, 21.68, 12.58, 9.18, 8.0, 11.1, 16.0, 17.4, 24.8, 29.5, 29.5, 30.1, 27.6, 22.1, 12.9, 10.7, 11.6, 13.4, 21.2, 22.5, 30.9, 35.9, 35.9, 36.1, 33.1, 27.3, 15.7, 13.6, 11.8, 13.5, 20.8, 21.9, 29.4, 33.4, 33.3, 33.6, 30.9, 26.3, 15.4, 13.6, 33.3, 29.8, 10.6, 14.3, 14.8, 22.6, 23.3, 29.9, 33.4, 33.0, 33.3, 31.2, 26.1, 17.6, 15.5, 13.71, 14.71, 22.51, 23.31, 30.41, 34.21, 33.61, 34.61, 32.81, 28.31, 17.51, 15.31, 12.8, 20.5, 10.43, 12.43, 19.23, 20.33, 28.63, 32.93, 33.33, 33.33, 30.13, 25.33, 7.0, 10.7, 15.7, 17.6, 27.1, 33.3, 34.7, 35.5, 31.7, 24.6, 15.6, 12.2], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Japan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;, &quot;Japan&quot;], &quot;legendgroup&quot;: &quot;Japan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Japan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-7.24, -7.5, -2.51, 3.84, 7.5, 10.92, 17.38, 16.64, 16.07, 9.09, 2.33, -5.35, -8.45, -8.68, -4.02, 3.1, 8.13, 10.81, 16.86, 15.42, 14.87, 8.15, 1.67, -6.39, -6.03, -5.98, -2.65, 3.79, 9.2, 13.11, 18.49, 17.95, 15.17, 8.81, 3.37, -3.85, -8.88, -8.84, -4.31, 2.72, 8.24, 11.01, 16.93, 15.27, 14.64, 7.65, 1.6, -6.87, -5.76, -5.7, -2.35, 4.37, 9.58, 13.56, 19.46, 18.52, 15.24, 9.19, 3.45, -3.42, -8.95, -8.68, -4.02, 4.8, 10.34, 16.19, 21.76, 19.17, 14.71, 8.06, 1.6, -6.14, -6.99, -7.33, -3.08, 3.71, 9.19, 12.19, 18.49, 16.25, 15.55, 8.88, 3.01, -5.34, -5.41, -5.09, -1.19, 5.47, 10.61, 14.66, 20.11, 19.3, 16.66, 10.13, 3.65, -3.57, -5.18, -4.96, -1.12, 6.48, 11.44, 16.02, 21.41, 20.23, 16.77, 10.16, 4.33, -3.12, -7.67, -6.67, -3.06, 5.05, 10.31, 15.45, 20.91, 19.7, 15.62, 8.96, 2.85, -4.72, -9.36, -8.44, -3.77, 4.85, 10.5, 15.47, 19.63, 18.71, 15.69, 8.57, 1.75, -8.07, -6.61, -6.27, -2.37, 3.48, 8.12, 11.86, 16.33, 17.19, 15.02, 9.28, 3.77, -5.31, -5.61, -5.29, -2.45, 2.97, 7.89, 11.04, 15.43, 16.08, 15.67, 10.3, 4.83, -3.2, -4.49, -4.47, -0.93, 5.42, 9.79, 13.63, 19.26, 19.7, 16.7, 10.24, 4.48, -2.98, -3.76, -3.61, -0.12, 5.47, 9.58, 13.29, 18.78, 20.01, 17.15, 10.98, 5.14, -1.99, -5.7, -5.98, -2.17, 4.44, 8.49, 12.46, 18.1, 19.06, 15.64, 8.93, 3.51, -3.6, -4.36, -3.66, -0.66, 4.39, 9.06, 12.67, 17.73, 19.13, 15.64, 10.49, 4.99, -1.85, -2.66, -2.5, 0.45, 6.74, 10.63, 14.48, 20.13, 21.69, 17.89, 11.99, 6.33, -0.85, -5.06, -4.36, -0.84, 6.33, 10.94, 15.14, 19.83, 21.35, 17.0, 10.2, 4.79, -2.96, -8.12, -7.56, -3.85, 3.51, 9.44, 14.27, 19.67, 18.92, 14.27, 7.56, 1.95, -5.09, -7.53, -7.61, -3.29, 3.68, 8.75, 11.64, 17.43, 15.86, 15.28, 8.31, 2.31, -5.49, -6.05, -5.37, -1.97, 4.5, 9.15, 13.36, 17.18, 17.71, 15.45, 9.63, 4.7, -3.57, 0.71, 0.92, 2.89, 9.44, 14.18, 18.27, 21.51, 23.0, 19.33, 13.02, 8.56, 2.05, -1.93, -1.67, -0.19, 8.41, 13.75, 18.63, 22.46, 23.31, 18.47, 11.95, 5.99, -0.98, -1.13, -0.56, 1.36, 10.22, 15.62, 19.98, 23.64, 24.32, 19.63, 12.76, 7.02, -0.46, -1.66, -1.53, 1.11, 7.55, 12.68, 16.44, 21.93, 22.47, 18.5, 12.46, 7.45, 0.13, -2.63, -2.21, 0.6, 7.71, 13.29, 17.44, 21.73, 23.24, 18.36, 11.18, 6.28, -0.48, -2.93, -2.53, 0.1, 6.83, 12.04, 16.04, 20.54, 21.34, 17.0, 10.27, 5.69, -1.06, -1.73, -1.27, 1.26, 8.21, 13.62, 17.0, 21.0, 22.13, 18.22, 11.47, 6.29, -0.02, -1.11, -0.75, 1.51, 8.63, 13.59, 18.1, 22.78, 23.73, 18.9, 12.72, 7.77, 0.87, -2.54, -1.67, 0.86, 8.72, 13.87, 18.56, 22.04, 23.26, 18.47, 11.34, 5.89, -1.04, -0.28, -0.29, 2.04, 8.16, 13.93, 16.7, 20.32, 22.06, 18.66, 12.05, 7.54, 1.32, 1.23, 1.39, 3.38, 10.17, 15.19, 19.39, 23.49, 24.63, 20.36, 14.48, 9.19, 2.97, -1.69, -1.38, 0.91, 9.5, 14.93, 19.01, 22.64, 23.78, 19.17, 11.65, 6.65, 0.13, 1.64, 1.54, 3.92, 11.03, 15.96, 19.61, 22.18, 24.83, 20.86, 14.47, 9.44, 2.92, -0.04, 0.13, 2.24, 9.54, 14.55, 18.37, 20.9, 23.33, 19.53, 13.29, 7.78, 1.85, 1.32, 1.74, 3.83, 11.69, 17.45, 20.98, 23.65, 25.49, 21.09, 13.99, 9.24, 3.11, 0.54, 0.45, 2.3, 10.2, 15.35, 18.88, 21.81, 23.75, 19.19, 12.38, 7.6, 1.48, 3.66, 3.83, 5.67, 11.0, 15.83, 18.4, 21.01, 23.41, 20.62, 15.15, 10.45, 5.1, 2.72, 2.47, 4.26, 10.21, 14.82, 19.31, 23.83, 25.23, 21.16, 14.82, 10.05, 4.43, 3.01, 2.48, 4.08, 10.48, 15.2, 19.14, 23.54, 25.05, 20.88, 15.36, 10.59, 4.81, 1.67, 1.95, 3.91, 10.97, 16.16, 20.37, 24.52, 25.49, 21.04, 15.0, 9.8, 2.99, 3.05, 3.36, 5.69, 12.3, 16.98, 20.39, 25.04, 26.52, 22.51, 15.98, 10.59, 5.12, 2.51, 2.92, 5.42, 11.71, 16.27, 20.16, 24.62, 26.16, 22.13, 15.68, 10.28, 4.43, 1.92, 2.25, 4.81, 11.65, 16.86, 20.59, 24.74, 25.94, 21.74, 15.04, 9.82, 4.36, -0.18, 0.82, 2.37, 11.16, 16.08, 19.35, 23.92, 24.47, 19.83, 12.92, 7.37, 1.61, 1.76, 2.0, 3.4, 10.9, 15.73, 19.93, 24.81, 25.62, 21.08, 14.86, 9.47, 3.81, 2.11, 2.96, 4.99, 11.79, 16.97, 20.29, 23.22, 25.49, 20.95, 14.48, 9.54, 3.16, 2.22, 3.26, 5.52, 12.46, 17.31, 20.23, 25.03, 26.26, 22.36, 15.3, 10.02, 4.09, -1.35, -0.11, 1.17, 9.39, 14.45, 17.69, 22.49, 23.05, 19.3, 12.46, 6.32, 0.36, 0.3, -0.28, 2.01, 10.87, 15.75, 18.5, 23.03, 23.4, 19.16, 12.0, 6.85, 1.58, -0.95, -0.39, 1.33, 9.61, 14.6, 17.52, 21.85, 22.26, 18.59, 11.35, 6.45, 0.39, -3.25, -3.33, -1.52, 6.63, 10.75, 14.6, 18.5, 20.17, 15.27, 8.5, 4.12, -1.93, 4.36, 4.55, 6.27, 13.2, 18.08, 21.2, 24.41, 26.62, 21.81, 15.62, 11.23, 5.76, 3.77, 4.35, 6.37, 13.04, 18.21, 21.36, 24.38, 26.91, 21.94, 15.64, 11.08, 5.57, 3.64, 4.07, 6.0, 12.25, 16.99, 20.25, 23.16, 25.77, 21.44, 15.31, 10.84, 5.13, 4.69, 5.04, 6.57, 13.14, 17.76, 20.49, 25.52, 27.18, 23.69, 16.43, 11.1, 5.78, 4.87, 5.61, 7.24, 13.95, 18.77, 21.26, 25.45, 27.67, 23.95, 16.83, 11.27, 5.4, 5.74, 6.21, 7.9, 14.81, 19.41, 21.71, 25.9, 28.19, 24.5, 17.55, 11.99, 6.1, 1.76, 2.45, 4.47, 11.86, 16.07, 18.36, 23.02, 23.74, 20.43, 13.75, 8.19, 2.72, 3.31, 4.31, 6.28, 13.22, 18.24, 20.57, 24.51, 25.58, 22.19, 15.31, 10.2, 3.9, -0.38, 0.65, 1.61, 9.13, 13.98, 16.31, 20.52, 22.02, 17.81, 11.56, 7.0, 0.7, 1.67, 2.39, 4.15, 11.32, 16.03, 19.25, 22.81, 25.1, 20.12, 13.38, 8.69, 2.73, 6.68, 7.04, 8.5, 13.18, 17.46, 19.39, 21.62, 24.81, 22.11, 17.43, 13.14, 7.54, 3.61, 3.95, 5.58, 12.35, 16.63, 19.91, 24.82, 26.39, 22.75, 14.81, 9.06, 4.09, 5.6, 5.86, 7.09, 13.49, 18.2, 21.02, 25.22, 27.5, 24.1, 16.84, 11.27, 5.92, 6.13, 6.17, 7.87, 14.21, 18.72, 20.85, 24.8, 27.43, 24.3, 17.51, 12.2, 6.65, 6.16, 6.92, 8.26, 14.16, 18.58, 20.25, 24.25, 27.09, 23.4, 18.12, 12.96, 6.7, 7.55, 8.0, 9.18, 15.09, 19.14, 20.73, 24.42, 26.51, 24.29, 19.07, 13.91, 7.82, 7.02, 7.79, 8.88, 14.99, 19.78, 21.0, 24.66, 27.03, 23.67, 18.18, 13.51, 7.74, 6.1, 6.63, 8.13, 14.35, 18.84, 20.62, 24.4, 26.61, 22.95, 16.76, 12.14, 6.43, 5.16, 5.13, 7.3, 14.03, 19.2, 21.56, 24.76, 27.07, 22.49, 16.74, 12.35, 6.56, 6.95, 7.39, 8.24, 14.53, 18.35, 20.72, 24.57, 26.35, 23.66, 17.13, 12.35, 7.03, 7.67, 7.93, 9.55, 14.37, 18.34, 19.93, 23.09, 25.45, 22.77, 18.16, 14.06, 9.02, 6.91, 6.84, 8.4, 14.57, 18.66, 20.36, 23.71, 26.08, 22.25, 17.07, 13.0, 8.1, 5.27, 5.31, 7.38, 13.97, 19.02, 20.92, 24.11, 26.79, 22.43, 16.41, 12.09, 7.16, 6.6, 6.58, 8.29, 14.26, 18.59, 20.61, 23.98, 26.49, 22.81, 17.05, 12.82, 7.4, 6.7, 6.28, 8.23, 13.12, 17.55, 19.49, 22.22, 24.96, 22.16, 17.01, 12.91, 8.19, 7.41, 7.27, 9.16, 14.11, 18.34, 20.33, 23.27, 26.06, 22.6, 17.37, 13.69, 8.95, 10.59, 10.37, 11.59, 15.21, 19.5, 21.23, 24.32, 26.78, 23.96, 19.35, 15.98, 10.5, 10.98, 11.26, 12.19, 15.07, 18.99, 21.04, 24.12, 27.09, 24.65, 20.29, 16.53, 11.32, 5.07, 5.25, 7.39, 13.65, 18.71, 21.16, 23.95, 27.04, 22.45, 16.36, 11.65, 6.78, 5.09, 5.02, 6.64, 12.83, 17.27, 20.03, 24.19, 26.55, 23.26, 16.33, 10.91, 5.45, -2.22, 4.94, 9.41, 12.76, 16.8, 18.4, 13.7, 7.87, 3.74, -2.44, 4.32, 4.24, 5.32, 11.3, 16.07, 19.57, 24.07, 26.38, 22.82, 15.5, 10.84, 5.44, 4.49, 4.84, 6.4, 12.92, 17.92, 20.81, 25.41, 28.12, 23.9, 15.86, 10.77, 5.58, 4.31, 4.75, 6.13, 12.59, 17.39, 20.27, 25.15, 27.6, 23.56, 15.82, 10.61, 5.2, 4.2, 4.67, 6.15, 12.45, 17.14, 20.38, 25.24, 27.79, 23.23, 15.08, 10.56, 5.39, 4.07, 4.83, 6.56, 12.42, 17.34, 20.56, 25.24, 27.02, 23.25, 15.64, 10.95, 5.67, 3.61, 4.55, 6.16, 13.04, 17.57, 21.18, 26.01, 27.84, 23.53, 15.82, 10.1, 5.22, -3.86, -3.42, -2.41, 4.9, 9.75, 12.1, 16.83, 17.79, 15.06, 8.34, 2.41, -4.02, 5.53, 5.55, 6.92, 12.62, 16.94, 19.78, 24.35, 27.17, 23.41, 15.79, 11.59, 6.57, 2.49, 3.38, 5.54, 11.99, 16.59, 19.7, 24.53, 26.22, 22.75, 14.82, 8.45, 3.2, 5.02, 5.34, 7.18, 14.03, 19.05, 21.56, 26.18, 28.34, 24.88, 16.82, 11.02, 5.66, 3.73, 4.18, 5.62, 12.23, 17.22, 20.07, 24.74, 26.79, 23.11, 15.74, 9.9, 4.7, 6.56, 6.49, 8.18, 13.6, 18.68, 20.88, 25.17, 27.86, 25.16, 18.13, 12.7, 7.25, 5.95, 6.32, 7.93, 14.25, 18.94, 21.2, 26.11, 28.04, 25.18, 17.8, 11.93, 6.65, 6.51, 6.19, 7.49, 14.17, 18.74, 21.14, 25.89, 27.92, 25.11, 18.01, 12.06, 6.71, 4.8, 4.83, 6.88, 13.38, 18.14, 20.81, 25.69, 27.53, 24.49, 16.46, 10.45, 5.21, 4.45, 4.93, 7.06, 13.56, 18.15, 21.0, 25.9, 27.56, 24.51, 16.25, 10.09, 4.9, 4.67, 4.82, 6.62, 13.15, 17.63, 20.67, 25.51, 27.14, 24.14, 16.5, 10.58, 5.15, 5.84, 5.89, 7.72, 14.34, 19.02, 21.36, 25.96, 27.93, 25.05, 17.75, 11.91, 6.6, 4.93, 4.76, 6.66, 13.53, 17.96, 20.29, 24.87, 27.05, 23.68, 16.61, 11.12, 5.96, 6.41, 6.14, 8.02, 14.29, 18.7, 21.34, 25.65, 27.44, 24.41, 17.2, 11.59, 6.91, 8.45, 8.77, 9.67, 14.99, 18.97, 20.79, 24.01, 26.02, 24.32, 18.33, 13.9, 8.65, 4.56, 4.59, 6.52, 13.42, 17.93, 20.71, 25.64, 27.47, 23.82, 15.9, 10.31, 5.25, 5.15, 5.2, 6.9, 12.83, 17.84, 20.47, 25.14, 26.81, 24.09, 15.82, 10.19, 4.79, 5.01, 5.39, 7.15, 12.62, 17.05, 20.01, 23.96, 26.8, 23.56, 17.09, 11.1, 5.86, 6.72, 6.73, 7.92, 13.49, 17.39, 20.11, 24.09, 26.7, 24.21, 17.55, 12.23, 7.22, 7.94, 7.81, 9.39, 15.48, 19.62, 22.59, 27.38, 29.48, 26.41, 18.31, 13.34, 8.18, 5.66, 5.47, 7.45, 13.6, 18.1, 20.9, 25.64, 27.29, 24.52, 15.91, 10.63, 5.71, 7.35, 7.54, 8.88, 15.23, 19.03, 21.37, 25.89, 28.03, 26.08, 18.34, 12.55, 7.55, 6.53, 6.64, 8.47, 14.78, 19.45, 21.74, 26.45, 28.06, 26.04, 17.55, 11.68, 6.38, 4.94, 5.19, 7.14, 14.02, 18.34, 20.85, 26.03, 27.07, 24.87, 15.63, 10.08, 4.71, 7.18, 6.83, 8.3, 14.67, 18.69, 21.12, 26.32, 28.17, 25.54, 17.58, 12.85, 7.52, 7.94, 7.57, 8.98, 15.36, 19.02, 21.33, 25.88, 28.17, 26.37, 18.76, 12.78, 7.84, 6.83, 7.06, 8.42, 15.19, 19.56, 21.71, 26.47, 28.05, 26.4, 17.39, 11.46, 6.14, 0.3, 0.15, 1.69, 9.0, 13.51, 15.18, 19.39, 20.56, 18.97, 10.79, 5.02, -0.61, 7.49, 7.88, 8.68, 14.85, 18.91, 20.79, 25.12, 26.65, 24.57, 17.45, 11.91, 6.86, 8.56, 8.03, 8.9, 15.43, 19.07, 20.87, 25.13, 27.1, 25.47, 18.53, 13.2, 8.18, 6.06, 6.73, 7.99, 14.97, 18.47, 20.69, 25.34, 26.74, 25.26, 16.65, 10.52, 5.0, 10.37, 10.49, 11.1, 17.43, 21.16, 23.18, 27.8, 29.17, 27.99, 20.42, 14.53, 9.19, 7.32, 8.1, 8.61, 15.58, 19.33, 21.21, 25.6, 26.97, 24.97, 17.32, 11.11, 5.98, 9.17, 9.31, 9.74, 16.52, 20.13, 22.16, 26.43, 28.17, 25.5, 18.43, 12.75, 7.9, 10.17, 9.6, 10.29, 16.34, 19.74, 21.25, 25.79, 27.23, 26.04, 19.28, 14.01, 8.99, 9.91, 10.02, 10.37, 16.92, 20.47, 22.27, 26.37, 27.97, 26.02, 19.31, 13.77, 8.52, 12.4, 11.95, 12.36, 17.61, 20.73, 22.36, 26.56, 27.51, 26.06, 20.24, 16.42, 11.77, 12.46, 12.52, 12.62, 17.96, 21.25, 22.54, 26.39, 27.73, 26.49, 20.75, 16.62, 12.29, 9.24, 9.0, 9.92, 15.99, 20.02, 21.84, 25.89, 28.47, 26.91, 20.04, 14.32, 9.2, 7.9, 8.1, 8.95, 14.42, 18.23, 20.3, 24.92, 27.54, 24.92, 18.26, 12.78, 7.8, 7.09, 6.66, 8.1, 14.74, 19.25, 21.6, 26.36, 28.27, 25.52, 17.86, 12.14, 7.11, 5.63, 5.52, 7.08, 13.29, 18.17, 21.03, 25.79, 27.99, 24.62, 17.32, 11.53, 6.61, 6.14, 6.22, 7.86, 14.19, 19.2, 22.14, 27.06, 28.69, 25.11, 17.57, 11.87, 7.0, 7.72, 7.57, 8.73, 14.74, 18.85, 21.34, 25.69, 28.05, 25.53, 18.13, 12.93, 7.96, 8.06, 8.5, 9.59, 16.01, 20.29, 22.3, 26.45, 28.17, 25.69, 18.89, 12.87, 7.34, -4.51, -4.07, -3.22, 4.31, 8.2, 10.07, 15.09, 15.4, 13.42, 5.6, 0.79, -5.44, 6.11, 6.23, 8.3, 14.42, 19.45, 21.8, 26.08, 27.92, 24.9, 18.01, 12.16, 6.93, 8.58, 8.24, 9.01, 15.33, 19.02, 21.2, 25.09, 26.96, 24.93, 18.12, 12.84, 7.76, 9.4, 9.35, 10.09, 15.75, 20.07, 21.46, 25.21, 27.3, 25.27, 19.66, 14.62, 9.18, 7.9, 7.91, 8.89, 14.46, 18.83, 20.51, 23.79, 26.13, 23.68, 18.26, 13.32, 8.47, 15.68, 15.27, 15.83, 19.76, 22.63, 23.6, 28.63, 28.51, 27.86, 22.71, 18.84, 18.89, 17.98, 19.53, 23.04, 25.76, 25.94, 28.93, 27.95, 27.39, 24.17, 21.26, 18.33, 19.51, 18.66, 20.17, 23.63, 26.63, 26.74, 29.98, 28.93, 28.33, 24.7, 21.92, 18.88, 18.27, 17.61, 18.27, 21.76, 24.54, 24.68, 28.94, 28.17, 28.29, 23.87, 20.7, 17.06, 18.14, 17.47, 17.94, 21.34, 24.0, 24.22, 28.4, 27.92, 27.95, 23.95, 20.44, 16.99, 17.75, 17.84, 18.08, 19.25, 23.0, 24.6, 26.48, 27.38, 27.0, 24.77, 22.43, 18.7, 22.55, 22.45, 23.45, 24.7, 26.8, 28.15, 28.15, 27.9, 28.85, 28.15, 26.4, 24.5, 18.48, 17.39, 17.01, 21.26, 23.75, 24.61, 28.7, 27.19, 27.41, 23.1, 15.75, -16.18, -14.4, -14.32, -7.39, -3.33, -0.3, 4.92, 5.47, 3.35, -2.83, -8.46, -17.21, 2.67, 3.68, 5.7, 12.11, 17.22, 20.34, 23.54, 26.12, 21.2, 14.98, 10.11, 3.75, 6.15, 6.15, 8.15, 15.0, 19.8, 22.35, 27.25, 29.0, 25.9, 18.15, 12.5, 7.25, 3.82, 3.66, 5.42, 12.09, 16.66, 18.1, 22.23, 23.52, 22.47, 14.8, 8.6, 3.53, 19.12, 18.29, 19.88, 22.9, 25.83, 26.35, 28.91, 27.97, 27.66, 24.24, 21.54, 18.55, 19.35, 18.5, 20.0, 23.5, 26.45, 26.55, 29.8, 28.75, 28.2, 24.55, 21.8, 18.7, 17.43, 17.03, 17.38, 20.33, 23.36, 24.09, 28.09, 27.34, 26.94, 16.62, 21.88, 21.58, 22.68, 23.88, 26.18, 27.48, 27.48, 27.68, 28.28, 27.68, 25.78, 23.88, 3.59, 4.69, 6.34, 13.37, 17.63, 20.86, 24.64, 26.88, 22.26, 15.8, 11.12, 5.12, 6.25, 5.93, 7.91, 14.41, 18.92, 20.9, 23.97, 26.77, 22.65, 16.67, 12.65, 8.14, 5.49, 5.68, 7.02, 13.69, 18.17, 20.31, 25.17, 27.21, 24.22, 17.01, 11.19, 6.07, 3.15, 4.25, 5.85, 12.7, 17.25, 20.85, 25.7, 27.5, 23.2, 15.5, 9.75, 4.9, 0.55, 0.69, 2.7, 9.6, 14.6, 18.75, 22.9, 24.05, 19.75, 13.9, 8.6, 2.25, 6.51, 6.19, 7.51, 14.17, 18.74, 21.14, 25.89, 27.92, 25.11, 18.01, 12.06, 6.72, 4.27, 4.15, 5.72, 12.75, 17.04, 20.05, 24.95, 26.78, 23.04, 15.31, 9.87, 5.07], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Jordan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;, &quot;Jordan&quot;], &quot;legendgroup&quot;: &quot;Jordan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Jordan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [8.01, 11.11, 15.51, 16.51, 23.11, 27.41, 26.91, 27.91, 26.11, 21.61, 13.31, 11.01, 8.1, 10.8, 13.5, 14.2, 21.1, 24.6, 23.9, 25.1, 25.0, 20.3, 15.2, 11.9, 7.38, 10.78, 13.88, 14.48, 21.58, 25.58, 24.38, 25.88, 25.38, 20.58, 14.28, 10.98, 14.3, 15.9, 18.9, 20.5, 27.4, 30.1, 31.2, 31.0, 26.8, 22.3, 17.4, 6.92, 11.82, 15.92, 15.72, 21.42, 25.72, 25.12, 26.62, 24.92, 20.42, 13.72, 10.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Kyrgyzstan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;, &quot;Kyrgyzstan&quot;], &quot;legendgroup&quot;: &quot;Kyrgyzstan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Kyrgyzstan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-6.95, -6.15, 2.6, 8.14, 13.1, 16.0, 18.85, 19.04, 13.75, 8.45, 3.45, 1.2, -16.04, -16.5, -4.8, -0.95, 4.25, 6.2, 8.3, 9.0, 4.05, 0.0, -5.65, -9.75, -17.41, -18.86, -2.73, 4.71, 11.69, 13.12, 15.31, 16.51, 11.0, 6.1, -1.56, -9.11, -18.6, -20.17, -8.07, -5.42, 0.71, 2.23, 4.46, 5.45, -1.3, -3.38, -12.52, -18.48, -11.24, 2.76, 10.26, 14.36, 18.76, 20.16, 18.76, 14.06, 8.56, 2.26, 2.16, -11.49, -12.06, 3.91, 12.91, 16.55, 20.8, 23.71, 22.1, 16.72, 10.45, 4.46, 3.51, -21.3, -23.5, -4.39, -0.54, 8.14, 11.85, 13.25, 12.8, 8.35, 3.25, -4.1, -9.75, -15.3, -16.6, -2.8, 0.1, 8.3, 14.2, 14.9, 15.8, 10.2, 4.3, -3.2, -7.0, -16.48, -18.28, -0.28, 11.12, 16.92, 20.32, 21.82, 23.02, 17.62, 10.52, 3.72, -1.68, -7.51, -8.01, 5.11, 13.4, 18.49, 22.39, 24.71, 23.37, 19.22, 13.05, 5.97, 4.95, -7.95, -8.36, 4.84, 13.34, 18.84, 23.54, 23.94, 22.64, 17.94, 12.34, 5.14, 3.94, -9.25, -6.9, 3.69, 10.05, 14.0, 16.5, 18.25, 18.95, 14.2, 9.95, 3.8, 0.75, -16.1, -4.6, -3.1, 3.4, 6.95, 9.09, 9.95, 4.8, -1.04, -8.5, -12.6, -17.29, -20.4, -1.5, 7.4, 15.2, 17.9, 19.5, 20.5, 14.5, 9.1, 1.6, -3.3, -10.34, -17.9, -20.85, -3.5, 4.94, 11.4, 12.54, 14.95, 15.3, 10.35, 5.8, -1.75, -9.14, -8.3, -8.8, 1.15, 7.45, 12.45, 13.85, 16.65, 16.25, 11.65, 7.6, 1.55, -1.25, -14.07, -1.27, 1.93, 6.43, 7.13, 8.93, 9.33, 3.83, 0.83, -8.47, -15.47, -25.65, -9.15, -3.75, 3.55, 3.65, 7.45, 8.25, 2.05, -1.75, -12.45, -22.15, -12.6, -12.2, -2.6, 0.6, 4.2, 8.7, 10.9, 11.9, 6.9, 2.9, -2.7, -6.0, -13.16, -13.76, -3.46, 2.24, 7.44, 9.94, 12.44, 12.04, 7.64, 5.64, -3.16, -7.16, -4.93, -4.73, 2.77, 7.77, 12.67, 15.17, 17.57, 17.37, 13.37, 9.27, 3.67, 1.57, -18.5, -19.29, -7.4, -4.69, -0.1, 3.6, 6.6, 6.7, 1.8, -3.5, -10.7, -12.9, -7.3, -7.0, 4.2, 9.3, 13.7, 18.3, 19.9, 19.7, 15.1, 9.8, 3.0, 3.1, -7.28, -7.18, 1.22, 6.72, 11.82, 13.52, 16.22, 15.92, 11.72, 7.72, 1.52, -0.98, -19.0, -19.99, -8.6, -6.04, 0.49, 3.45, 6.05, 7.6, 1.5, -2.8, -10.49, -17.85, -13.3, -12.6, -0.9, 5.2, 7.6, 11.4, 13.2, 11.8, 7.2, 4.1, -2.3, -3.7, -8.79, -7.59, 2.86, 7.56, 11.56, 16.06, 17.76, 18.01, 12.85, 8.11, 2.05, 1.1, -10.02, -7.81, 3.93, 7.78, 12.37, 13.83, 16.53, 14.73, 10.73, 7.68, 0.04, -7.13, -6.23, 4.62, 9.47, 13.72, 18.02, 19.77, 19.37, 15.22, 10.27, 3.97, 4.17, -8.0, -7.89, 4.45, 11.55, 15.55, 19.7, 21.45, 21.4, 16.79, 11.2, 4.65, 3.7, -15.5, -17.6, 1.1, 10.6, 15.0, 19.5, 21.6, 19.1, 14.2, 8.4, 1.8, -9.1, -8.2, 3.2, 9.0, 12.8, 16.3, 17.2, 18.1, 13.5, 8.4, 3.1, 1.4, -9.7, -9.7, 2.8, 9.4, 13.6, 16.4, 18.2, 19.0, 13.7, 9.1, 2.5, -0.3, -13.8, -13.6, -2.0, 0.7, 5.4, 7.2, 9.2, 9.5, 4.8, 1.2, -5.4, -8.4, -12.83, -11.73, 0.47, 5.77, 9.22, 12.32, 13.57, 14.07, 9.82, 4.82, 0.27, -1.83, -11.65, -10.45, -0.8, 4.15, 7.5, 10.75, 13.05, 11.5, 8.05, 3.45, 0.29, -1.5, -11.44, -10.33, 1.46, 7.36, 10.56, 14.56, 17.06, 15.85, 11.71, 5.96, 4.16, 0.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Kuwait&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;, &quot;Kuwait&quot;], &quot;legendgroup&quot;: &quot;Kuwait&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Kuwait&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [14.51, 15.22, 23.19, 23.29, 31.01, 35.71, 36.68, 35.57, 33.09, 29.12, 18.45, 15.95, 13.84, 14.24, 22.54, 22.24, 30.84, 35.64, 36.44, 35.24, 32.64, 28.94, 18.84, 15.94, 14.57, 14.47, 21.67, 22.47, 28.77, 34.17, 34.47, 33.27, 31.57, 28.47, 19.27, 16.87, 14.12, 14.72, 22.92, 22.82, 31.12, 35.52, 34.92, 34.92, 32.72, 28.12, 18.12, 15.72, 14.7, 15.3, 23.3, 23.4, 31.0, 35.5, 35.5, 35.5, 33.2, 29.0, 18.2, 16.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Kazakhstan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;, &quot;Kazakhstan&quot;], &quot;legendgroup&quot;: &quot;Kazakhstan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Kazakhstan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-29.41, -22.54, -13.88, 3.58, 8.33, 16.68, 21.17, 15.17, 10.82, 0.75, -3.16, -14.68, -28.78, -22.12, -14.3, 3.6, 7.31, 16.33, 19.75, 15.12, 10.84, 0.64, -3.14, -13.94, -28.69, -22.1, -13.62, 3.97, 8.25, 17.33, 20.04, 15.59, 11.4, 0.66, -2.77, -12.3, -29.01, -22.53, -13.45, 3.22, 7.33, 16.57, 19.59, 14.36, 10.84, 0.22, -3.45, -11.14, -28.23, -21.84, -12.13, 3.88, 7.95, 17.87, 20.25, 14.66, 10.44, 1.07, -2.54, -12.25, -28.89, -20.6, -12.58, 5.0, 9.77, 18.1, 20.62, 16.79, 12.62, 1.59, -2.27, -13.19, -30.57, -23.89, -15.27, 4.09, 8.62, 17.52, 19.41, 14.57, 10.67, 0.78, -3.19, -10.62, -30.3, -23.94, -15.37, 3.17, 7.83, 16.74, 19.01, 13.16, 9.93, -0.09, -4.37, -11.47, -29.48, -23.29, -14.31, 2.99, 7.2, 16.54, 19.49, 12.85, 9.52, -0.01, -3.78, -11.87, -31.25, -26.5, -15.4, 3.12, 9.57, 19.07, 24.07, 14.96, 11.52, 2.59, -3.6, -16.1, -21.14, -17.75, -6.89, 9.09, 15.23, 23.4, 22.59, 22.39, 16.07, 6.05, 1.72, -7.78, -19.07, -14.96, -2.98, 9.96, 16.32, 24.03, 23.03, 23.94, 16.78, 7.24, 3.37, -5.08, 19.33, 20.12, 15.74, 11.62, -2.91, -10.31, -31.34, -24.43, -15.9, 4.33, 9.74, 18.66, 20.59, 15.03, 10.94, 1.02, -3.63, -12.02, -29.5, -23.51, -14.18, 3.33, 8.64, 17.49, 20.51, 13.84, 10.34, 0.71, -3.68, -12.76, -23.07, -19.95, -11.4, 7.35, 13.14, 20.43, 21.04, 19.49, 15.92, 4.3, -0.26, -9.04, -30.53, -23.36, -15.82, 5.24, 10.28, 19.62, 20.44, 15.51, 11.68, 1.78, -3.28, -10.85, -30.88, -24.71, -15.41, 3.98, 9.85, 18.79, 20.48, 14.75, 11.3, 1.56, -3.58, -11.16, -29.72, -24.03, -14.05, 4.57, 10.41, 18.71, 21.78, 15.59, 11.76, 2.24, -3.28, -10.38, -29.21, -24.29, -13.32, 4.36, 9.18, 18.44, 21.85, 14.78, 11.04, 1.79, -2.6, -11.81, -23.27, -19.66, -11.45, 6.84, 12.4, 21.6, 21.48, 21.33, 16.33, 4.54, 0.08, -8.6, -25.03, -18.73, -12.26, 6.76, 12.52, 21.76, 22.03, 19.64, 15.04, 3.83, -0.04, -10.04, -22.39, -19.5, -10.57, 7.45, -29.05, -22.36, -14.05, 7.3, 14.2, 23.43, 24.06, 19.32, 15.5, 3.71, 0.14, -9.44, 19.37, 21.05, 16.65, 12.31, 1.75, -23.95, -13.85, 5.12, 11.33, 19.16, 22.07, 16.95, 12.7, 3.02, -2.69, -9.82, -27.1, -22.26, -10.76, 5.09, 11.19, 18.32, 21.56, 15.2, 11.6, 2.35, -2.79, -8.91, -21.87, -17.97, -9.55, 8.0, 15.06, 24.33, 23.22, 22.61, 17.02, 6.28, 1.59, -7.45, -22.53, -17.58, -10.04, 8.07, 14.36, 23.85, 23.77, 21.48, 16.44, 5.16, 0.27, -7.2, 22.66, 22.37, 20.27, 14.93, 3.89, 0.18, -8.21, -26.71, -20.02, -13.31, 6.4, 12.25, 22.44, 22.31, 18.27, 14.23, 3.39, -1.27, -9.99, -26.37, -22.36, -10.48, 4.31, 10.34, 17.79, 20.06, 15.05, 11.72, 1.26, -3.14, -7.83, -21.27, -17.09, -7.45, 8.64, 24.03, 22.92, 21.65, 16.93, 5.14, 0.41, -6.79, -24.24, -18.15, -11.4, 8.4, 13.23, 23.48, 22.65, 21.02, 15.77, 5.11, 0.89, -6.78, -24.03, -18.39, -10.65, 6.03, -26.62, -19.47, -12.54, 8.41, 14.76, 24.13, 23.73, 19.65, 15.38, 4.91, 0.54, -7.57, -27.22, -20.83, -11.27, 8.62, 14.8, 24.36, 23.59, 19.84, 15.43, 4.83, 0.36, -6.46, -27.4, -22.57, -10.67, 7.8, 14.14, 21.1, 23.38, 19.09, 14.41, 5.08, -1.05, -7.41, 19.33, 21.16, 16.25, 12.44, 3.26, -3.07, -8.62, -26.0, -19.6, -11.08, 7.75, 14.37, 23.33, 22.82, 20.15, 15.09, 4.85, 0.19, -6.7, -26.4, -21.59, -10.2, 6.62, 12.67, 21.06, 22.37, 18.57, 13.93, 3.61, -1.11, -6.73, -26.72, -21.67, -7.95, 8.1, 13.67, 21.37, 23.43, 19.56, 15.16, 4.21, -1.07, -5.94, -16.28, -12.17, -2.27, 10.12, 16.87, 25.63, 24.59, 24.5, 17.72, 7.62, 3.25, -4.31, -14.71, -2.94, 9.12, 15.58, 23.35, 22.9, 22.4, 16.19, 7.95, 3.48, -3.89, -24.96, -19.18, -6.52, 9.45, 15.12, 23.96, 25.14, 21.79, 17.3, 7.11, 1.87, -3.12, -23.65, -19.17, -4.62, 10.53, 15.96, 25.05, 26.1, 21.79, 17.56, 6.43, 1.12, -2.33, -26.17, -23.69, -8.05, 7.03, 13.35, 21.21, 22.73, 17.7, 13.43, 2.99, -1.92, -7.2, -25.28, -23.07, -6.59, 6.81, 14.34, 21.07, 23.87, 18.98, 14.45, 5.78, -0.37, -5.65, -21.65, -17.13, -3.62, 10.71, 16.72, 24.63, 25.07, 22.14, 17.43, 7.7, 2.2, -1.9, -17.87, -12.94, -2.66, 10.16, 16.63, 25.97, 24.71, 23.85, 17.61, 8.09, 3.14, -1.89, -21.2, -17.53, -2.61, 11.51, 16.25, 24.16, 25.89, 22.76, 17.54, 7.67, 2.17, -1.27, -20.67, -18.76, -2.61, 11.37, 17.83, 25.13, 26.55, 22.95, 17.68, 8.47, 1.99, -0.33, -24.0, -23.61, -3.88, 7.34, 16.41, 22.3, 24.59, 20.22, 14.08, 7.3, -0.32, -4.71, -31.67, -26.61, -14.98, 3.42, 10.71, 19.57, 24.88, 15.69, 11.46, 2.91, -4.67, -17.02, -25.86, -22.7, -12.33, 3.56, 18.12, 14.54, 10.68, -2.63, -12.05, -31.27, -25.98, -13.98, 4.27, 11.75, 19.62, 25.38, 16.37, 12.01, 4.07, -4.69, -15.76, -30.0, -25.55, -12.62, 3.68, 12.49, 19.32, 24.57, 16.55, 11.9, 4.91, -4.88, -14.85, -29.82, -26.51, -11.3, 2.89, 11.83, 18.62, 24.17, 16.12, 11.0, 4.15, -5.93, -16.42, -24.38, -22.9, 1.92, 8.39, 15.6, 19.18, 12.91, 8.37, 1.47, -6.19, -11.19, -23.87, -11.62, 1.88, 8.62, 15.51, 18.68, 12.54, 8.45, 0.15, -4.74, -10.08, -23.46, -11.53, 2.13, 9.6, 16.57, 20.73, 13.48, 9.24, 1.14, -4.53, -11.13, -26.68, -25.02, -10.55, 3.55, -32.47, -29.43, -12.83, 2.21, 11.53, 17.71, 22.2, 16.06, 11.26, 4.72, -5.99, -18.11, -23.03, -22.34, -8.1, 3.14, 8.12, 14.86, 17.41, 11.75, 7.83, 1.24, -6.99, -26.42, -23.88, -9.33, 4.35, 12.46, 18.95, 22.73, 15.5, 11.51, 2.6, -3.66, -9.77, -32.14, -29.36, -14.09, 1.79, 10.65, 17.29, 21.37, 14.76, 10.59, 3.1, -7.48, -17.88, -25.3, -9.33, 4.41, 12.13, 18.18, 22.32, 15.4, 10.72, 4.0, -4.98, -12.29, -25.53, -24.27, -6.65, 6.1, 13.44, 18.67, 21.13, 17.3, 13.17, 5.78, -2.57, -8.48, -25.78, -23.7, -8.15, 7.06, 13.49, 20.83, 24.35, 18.65, 13.72, 6.87, -4.25, -14.27, -22.41, -22.69, -3.9, 9.14, 15.61, 21.29, 24.74, 20.12, 14.74, 8.6, 1.24, -5.06, -15.12, -14.77, -2.51, 5.93, 10.93, 14.68, 16.87, 14.98, 10.78, 5.53, 0.83, -2.27, -16.0, -16.56, 0.76, 12.41, 17.41, 20.85, 22.98, 20.79, 15.71, 10.26, 2.79, -0.55, -13.81, -13.4, 1.83, 11.21, 15.87, 20.23, 23.21, 20.55, 15.08, 9.31, 2.53, 0.06, -8.61, -9.02, 1.03, 9.36, 15.52, 24.34, 23.57, 24.51, 18.95, 10.92, 6.55, 1.41, -15.84, -13.41, -2.08, 10.28, 17.02, 26.15, 24.25, 23.72, 16.45, 8.28, 2.78, -0.98, -17.66, -14.55, 0.28, 12.21, 18.41, 25.1, 26.25, 23.8, 18.58, 9.47, 4.12, 0.43, -18.9, -16.5, -0.82, 11.82, 18.56, 24.39, 26.01, 22.44, 17.65, 8.74, 2.87, -0.33, -21.6, -20.96, -1.96, 12.49, 19.4, 25.04, 26.94, 22.88, 17.65, 8.98, 3.17, -0.24, -21.04, -21.06, -1.67, 11.68, 18.39, 24.38, 26.18, 22.32, 16.1, 8.14, 2.19, -1.14, -14.36, -15.4, 3.66, 15.18, 20.02, 25.67, 26.37, 25.02, 20.01, 11.72, 6.54, 5.19, -12.63, -11.68, 0.03, 11.47, 18.51, 26.57, 26.17, 26.13, 19.19, 10.33, 4.3, 1.54, -15.16, -16.03, 1.86, 11.71, 16.37, 21.07, 24.12, 21.34, 16.32, 10.18, 3.97, 1.92, -16.25, -15.95, -1.8, 5.65, 10.05, 12.6, 15.0, 13.35, 8.84, 4.6, -0.59, -3.75, -13.57, -12.62, -2.62, 2.08, 5.68, 8.78, 10.88, 9.68, 6.22, 1.63, -1.52, -3.77, -15.6, -14.85, -4.6, -0.5, 3.15, 5.75, 7.85, 7.15, 3.45, -1.05, -4.35, -6.95, -16.29, -12.2, -2.25, 10.15, 16.85, 25.65, 24.59, 24.5, 17.7, 7.6, 3.25, -4.04, -30.2, -26.0, -13.0, 3.3, 11.8, 19.1, 24.2, 16.2, 11.3, 4.3, -5.4, -15.1, -11.9, -11.5, 0.8, 9.3, 14.0, 17.85, 20.6, 19.4, 13.95, 8.0, 2.15, 0.34, -14.9, -14.95, -2.19, 5.5, 10.45, 12.4, 14.65, 13.65, 8.95, 4.75, -1.34, -4.6, -11.6, -11.4, -0.8, 4.5, 8.4, 12.1, 14.6, 12.6, 8.4, 3.9, -0.3, -1.4, -12.3, -11.6, 1.5, 9.6, 14.3, 18.4, 21.4, 19.0, 13.7, 8.5, 1.5, 0.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Lebanon&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;, &quot;Lebanon&quot;], &quot;legendgroup&quot;: &quot;Lebanon&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Lebanon&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [9.19, 11.79, 14.99, 15.49, 21.69, 26.09, 25.99, 26.59, 25.89, 21.19, 15.59, 12.69, 5.58, 8.06, 11.34, 12.14, 18.53, 22.16, 21.89, 23.24, 22.56, 17.72, 12.18, 8.88, 20.65, 24.25, 24.25, 24.95, 24.95, 22.15, 17.65, 15.35], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mongolia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;, &quot;Mongolia&quot;], &quot;legendgroup&quot;: &quot;Mongolia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mongolia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-38.9, -34.99, -17.59, 2.13, 9.72, 17.72, 20.42, 14.43, 8.37, 0.57, -11.08, -28.12, -29.29, -19.86, -5.61, 4.9, 12.05, 18.07, 19.3, 14.44, 9.14, 2.67, -9.07, -22.07, -26.85, -21.98, -7.76, 2.54, 10.68, 17.41, 18.88, 14.25, 8.64, 0.35, -9.28, -16.24, -27.46, -23.29, -8.82, 0.76, 7.59, 14.08, 16.93, 13.12, 6.98, -0.65, -9.66, -20.47, -25.84, -11.31, 3.36, 9.15, 17.9, 20.93, 17.06, 11.0, 1.43, -12.0, -18.26, -27.72, -22.54, -8.31, 1.24, 8.72, 15.06, 16.05, 11.35, 6.04, 0.28, -12.55, -20.19, -21.45, -18.23, -6.19, 2.66, 10.26, 15.32, 16.46, 12.43, 8.82, 3.58, -7.31, -13.59, -24.7, -23.6, -11.1, 1.6, 8.5, 15.9, 19.7, 15.6, 9.2, 2.3, -11.8, -19.2, -22.72, -18.76, -6.49, 3.37, 12.33, 18.35, 19.37, 15.68, 10.49, 3.66, -8.87, -17.05, -19.28, -14.76, -2.99, 7.26, 16.55, 18.99, 19.7, 17.13, 12.68, 6.13, -6.39, -14.66, -30.0, -26.23, -13.58, -2.69, 4.41, 15.26, 9.74, -3.51, -13.07, -20.46, -37.24, -32.65, -17.15, 2.05, 10.65, 18.35, 19.85, 13.65, 7.35, 0.55, -12.15, -27.25, -23.31, -20.0, -6.21, 2.61, 8.43, 15.08, 12.25, 6.63, 0.12, -9.68, -16.82, -30.8, -22.6, -9.2, 1.9, 9.1, 15.6, 17.5, 11.7, 6.1, -0.6, -11.8, -22.8, -26.2, -22.3, -8.0, 1.8, 9.2, 16.2, 17.6, 13.4, 7.1, 0.5, -10.2, -18.0, -30.43, -23.89, -6.93, 3.02, 11.29, 17.74, 19.78, 16.24, 8.23, 0.28, -7.72, -19.45, -27.7, -23.1, -9.8, 1.2, 8.3, 14.2, 15.6, 11.4, 6.3, -0.6, -9.6, -16.0, -31.97, -27.32, -7.91, 2.74, 10.27, 18.73, 20.07, 15.08, 8.67, 0.45, -9.62, -20.08, -23.14, -21.99, -8.83, 7.59, 14.17, 13.99, 10.1, 4.8, -0.15, -11.57, -22.77, -19.59, -7.95, 2.18, 9.0, 13.72, 15.38, 10.78, 7.01, 0.73, -7.86, -14.3, -30.24, -10.1, -0.73, 13.61, 14.27, 9.85, 5.43, -3.06, -14.59, -20.37, -26.8, -22.6, -9.2, 1.3, 8.6, 13.5, 14.8, 11.1, 5.9, -1.0, -10.9, -21.0, -24.96, -20.67, -6.76, 16.0, 16.57, 11.48, 8.24, 0.65, -10.49, -16.82, -25.64, -23.03, -7.73, 1.29, 9.39, 16.85, 18.05, 13.59, 7.92, 1.22, -10.9, -19.56, -28.89, -28.02, -10.86, 1.14, 8.51, 16.79, 17.42, 13.06, 6.23, 0.1, -11.66, -19.95, -27.14, -23.85, -9.23, 2.46, 10.65, 18.31, 19.06, 15.29, 9.26, 2.51, -9.93, -17.7, -27.27, -27.07, -12.57, 2.33, 8.43, 17.43, 18.73, 15.43, 8.73, 0.93, -13.57, -19.77, -30.0, -28.46, -12.5, 2.27, 8.34, 17.72, 18.45, 14.84, 8.46, 0.96, -12.3, -19.13, -27.5, -26.2, -12.0, 2.2, 9.4, 18.2, 20.6, 16.6, 9.7, 2.0, -12.1, -19.06, -22.6, -17.4, -5.2, 5.2, 14.9, 19.6, 20.7, 17.4, 12.2, 4.7, -8.39, -16.6, 10.86, 18.73, 21.32, 17.46, 10.85, 4.65, -9.9, -17.63, -21.49, -16.58, -3.24, 7.44, 16.27, 23.11, 24.68, 20.97, 15.16, 7.43, -5.41, -13.46, -20.62, -16.45, -4.33, 6.2, 15.38, 21.31, 23.77, 19.54, 14.14, 5.84, -8.24, -15.6, -20.9, -39.82, -33.91, -19.61, -1.72, 7.38, 13.68, 15.08, 10.38, 4.28, -2.92, -17.72, -29.62, -39.09, -32.59, -16.2, 0.2, 7.9, 15.8, 17.3, 11.2, 4.9, -2.8, -19.9, -32.5, -26.8, -27.0, -10.0, 1.9, 7.5, 15.8, 17.4, 13.9, 7.1, -0.9, -10.3, -16.7, -35.25, -30.25, -12.15, 0.95, 8.25, 16.85, 18.95, 14.15, 6.95, -1.65, -11.85, -23.25, -29.8, -21.4, -6.4, 3.8, 11.8, 18.8, 19.9, 14.9, 8.5, 1.8, -11.6, -23.0, -26.1, -26.0, 3.1, 9.6, 18.3, 21.8, 17.7, 10.4, 2.2, -11.6, -19.2, -29.91, -25.81, -9.51, 2.69, 9.69, 18.49, 20.39, 16.19, 8.69, -0.41, -8.31, -17.41, -31.0, -27.3, -9.2, 2.1, 10.0, 17.3, 19.2, 14.3, 8.0, 0.2, -10.9, -20.2, -28.58, -28.58, -8.68, 7.22, 14.02, 19.92, 21.62, 17.22, 10.92, 3.82, -8.48, -17.58, -19.9, -15.1, -3.1, 7.4, 17.0, 20.6, 21.7, 19.2, 13.6, 6.8, -6.5, -13.8, -27.7, -27.2, -13.5, 2.1, 8.5, 17.3, 20.1, 16.8, 9.1, 1.6, -27.6, -20.1, -6.6, 4.5, 13.4, 19.0, 19.8, 15.9, 10.8, 2.8, -9.0, -17.2, -26.5, -24.1, -9.3, 0.5, 8.4, 15.6, 16.9, 12.9, 6.9, 0.2, -11.8, -20.5, -31.5, -25.5, -9.2, 2.7, 10.0, 17.6, 20.0, 15.8, 8.3, -0.5, -10.0, -20.8, -24.67, -22.17, -7.67, 2.43, 9.63, 15.73, 17.43, 13.33, 8.03, 0.73, -9.17, -17.67, -26.4, -24.2, -10.0, -0.3, 7.5, 15.2, 16.2, 11.9, 6.0, -0.7, -12.0, -19.79, -25.57, -23.17, -1.37, 1.43, 9.33, 16.53, 17.23, 13.83, 7.83, 1.13, -10.37, -19.57, -24.12, -22.02, -8.02, -1.52, 8.08, 15.48, 7.08, 0.68, -10.62, -18.12, -21.87, -15.97, 2.13, 8.73, 18.43, 23.13, 23.63, 20.33, 14.33, 5.03, -7.67, -13.87, -25.6, -24.3, -10.5, 2.0, 6.9, 15.8, 16.9, 13.8, 7.1, -0.3, -10.8, -16.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Oman&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;, &quot;Oman&quot;], &quot;legendgroup&quot;: &quot;Oman&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Oman&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.82, 23.17, 25.97, 27.87, 29.22, 28.97, 27.26, 25.22, 26.82, 26.51, 26.52, 24.92], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Malaysia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;, &quot;Malaysia&quot;], &quot;legendgroup&quot;: &quot;Malaysia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Malaysia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.21, 27.68, 28.13, 28.41, 28.15, 28.01, 27.32, 27.19, 27.37, 27.03, 26.58, 26.97, 25.71, 25.71, 26.49, 27.3, 27.91, 27.35, 26.87, 26.55, 27.02, 26.61, 25.39, 24.8, 26.75, 26.33, 26.84, 27.45, 27.58, 27.63, 27.13, 26.65, 27.23, 26.72, 26.67, 26.32, 26.25, 26.01, 26.83, 27.34, 27.95, 28.3, 28.5, 28.0, 27.5, 27.25, 26.95, 27.05, 26.75, 26.65, 27.25, 27.53, 28.08, 28.93, 29.08, 28.88, 27.78, 27.63, 27.48, 27.33, 27.13, 26.53, 26.88, 27.51, 28.21, 28.61, 27.81, 27.61, 27.11, 27.31, 26.81, 25.61, 25.71, 25.36, 25.41, 26.56, 27.45, 28.11, 27.45, 26.95, 26.41, 26.66, 26.46, 25.01, 25.2, 27.83, 28.48, 29.03, 29.12, 28.78, 28.38, 27.78, 27.73, 28.03, 27.53, 27.13, 27.38, 27.14, 27.79, 28.29, 27.89, 27.83, 27.14, 26.54, 26.39, 26.74, 26.89, 26.64, 26.54, 26.48, 25.58, 25.08, 27.72, 27.67, 27.87, 28.57, 28.62, 28.37, 27.77, 27.52, 28.17, 27.82, 27.57, 27.12, 27.09, 26.74, 27.44, 27.99, 27.89, 27.74, 27.43, 26.99, 27.29, 26.99, 26.79, 26.49, 27.03, 27.33, 27.53, 28.48, 28.73, 28.13, 27.72, 27.58, 27.68, 27.73, 27.18, 27.03, 25.95, 25.65, 26.25, 26.55, 26.85, 26.45, 26.05, 25.75, 26.15, 25.85, 25.65, 25.35, 27.63, 28.03, 28.72, 28.68, 28.78, 27.97, 27.48, 27.33, 27.83, 27.63, 27.28, 27.18, 25.52, 25.72, 26.52, 27.22, 27.52, 27.12, 26.62, 26.22, 26.52, 26.22, 25.12, 24.72, 25.77, 25.77, 25.97, 26.47, 26.67, 26.57, 26.17, 25.47, 26.17, 25.57, 25.67, 25.27, 26.34, 25.94, 26.64, 27.44, 27.44, 27.14, 26.74, 26.44, 26.74, 26.54, 26.14, 25.74, 18.15, 18.29, 18.95, 19.4, 19.04, 17.95, 18.1, 18.29, 18.2, 18.15, 17.79], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Nepal&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;, &quot;Nepal&quot;], &quot;legendgroup&quot;: &quot;Nepal&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Nepal&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [9.41, 12.01, 16.91, 19.61, 21.51, 23.81, 23.61, 23.01, 22.21, 19.11, 15.61, 11.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Pakistan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;, &quot;Pakistan&quot;], &quot;legendgroup&quot;: &quot;Pakistan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Pakistan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 5, 6, 7, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [2.84, 3.8, 12.39, 13.55, 17.39, 23.9, 24.35, 23.3, 20.55, 16.2, 10.1, 7.35, 6.77, 8.17, 17.77, 20.27, 23.77, 29.97, 31.37, 30.17, 25.77, 21.57, 13.57, 10.07, 11.56, 14.5, 22.06, 25.01, 29.06, 34.36, 31.76, 30.36, 28.96, 25.76, 19.41, 13.66, 8.4, 10.3, 21.6, 24.1, 28.25, 32.35, 34.65, 31.2, 26.0, 23.5, 14.1, 12.35, 9.84, 11.39, 19.24, 21.39, 25.34, 31.79, 31.64, 29.89, 27.34, 22.54, 16.59, 11.88, 9.96, 12.56, 19.86, 22.16, 26.41, 32.5, 31.51, 29.46, 27.5, 23.21, 17.16, 12.51, 11.76, 14.61, 22.51, 24.36, 28.36, 34.26, 32.45, 30.95, 29.31, 25.26, 19.06, 13.41, 12.01, 14.51, 22.21, 24.66, 28.01, 34.21, 31.61, 29.41, 29.06, 25.9, 19.76, 14.01, 13.21, 14.71, 23.61, 25.71, 29.91, 34.91, 33.11, 32.11, 30.41, 27.01, 20.51, 14.91, 4.24, 6.74, 15.19, 18.08, 22.04, 26.34, 29.34, 26.94, 20.54, 17.39, 10.24, 12.1, 14.9, 24.0, 26.9, 30.84, 36.0, 34.34, 33.15, 31.3, 27.2, 20.45, 14.54, 25.43, 31.33, 30.53, 29.33, 27.03, 23.63, 17.13, 13.03, 11.01, 12.31, 24.71, 26.56, 30.41, 35.1, 36.56, 33.25, 28.56, 26.66, 17.01, 16.01, 10.8, 12.25, 22.1, 24.65, 28.2, 31.65, 33.09, 31.85, 27.05, 23.45, 16.75, 14.7, 10.66, 11.36, 20.26, 23.16, 26.76, 30.96, 31.36, 29.86, 26.36, 23.16, 15.86, 13.16, 26.18, 30.37, 36.03, 34.47, 32.58, 31.48, 29.37, 22.53, 17.28, 18.24, 18.29, 24.05, 26.7, 28.9, 30.5, 29.29, 27.55, 27.04, 26.25, 22.6, 21.2, 26.5, 17.39, 19.59, 27.39, 30.54, 32.69, 33.34, 32.04, 30.29, 30.39, 29.84, 23.63, 19.08, 16.44, 19.29, 26.5, 30.5, 32.75, 33.59, 29.95, 30.35, 29.0, 23.9, 19.2, 13.75, 16.35, 26.65, 30.75, 34.9, 39.8, 38.34, 25.05, 27.59, 25.55, 15.5, 9.45, 4.94, 18.59, 19.84, 25.5, 28.4, 30.3, 30.9, 30.25, 27.8, 27.9, 28.3, 25.0, 21.0, 13.68, 22.28, 24.53, 28.83, 33.83, 34.02, 32.08, 30.63, 25.83, 19.92, 14.13, 10.51, 11.51, 18.95, 21.11, 24.91, 31.7, 31.26, 28.91, 27.36, 15.25, 17.85, 26.34, 31.09, 34.25, 35.75, 33.0, 32.0, 29.15, 23.75, 17.45, -0.7, -0.3, 3.0, 18.8, 22.2, 6.8, 8.2, 17.9, 20.29, 23.8, 30.0, 31.45, 30.2, 25.8, 21.65, 13.6, 2.55, 3.15, 11.55, 12.05, 15.84, 21.2, 19.95, 18.8, 17.09, 13.45, 9.84, 7.8, 6.65, 7.85, 15.35, 18.3, 21.5, 29.55, 29.65, 29.1, 25.9, 20.9, 13.4, 8.4, 15.83, 18.18, 27.23, 30.23, 33.73, 36.42, 35.27, 32.88, 32.27, 29.98, 23.13, 17.93, 17.1, 18.35, 25.8, 29.55, 33.45, 33.65, 30.55, 29.5, 27.75, 22.34, 13.0, 14.5, 23.35, 25.5, 29.65, 34.65, 32.84, 31.9, 30.2, 26.8, 20.29, 14.65, 4.85, 6.05, 13.95, 15.04, 19.15, 25.09, 24.05, 22.75, 21.3, 16.85, 12.45, 10.14, 6.14, 7.09, 14.63, 16.38, 20.14, 26.34, 25.69, 23.64, 22.04, 17.69, 13.38, 10.89, 11.47, 14.12, 21.42, 24.11, 28.77, 34.47, 32.27, 31.07, 29.17, 25.67, 19.22, 13.52, 13.5, 27.15, 30.4, 35.15, 32.44, 30.4, 27.4, 21.05, 15.6, 20.1, 20.95, 25.2, 27.8, 29.0, 30.6, 29.8, 27.59, 26.8, 27.5, 25.65, 22.9, 6.28, 6.32, 11.18, 17.65, 19.9, 27.5, 30.75, 32.2, 33.2, 31.59, 29.55, 29.95, 24.7, 19.54, 13.54, 15.75, 24.8, 27.25, 30.4, 33.8, 31.65, 28.15, 22.6, 16.54, 2.02, 3.82, 12.17, 13.97, 19.62, 25.27, 28.72, 26.86, 21.92, 17.06, 10.81, 6.62, 4.4, 5.7, 15.9, 18.3, 21.8, 27.0, 29.0, 27.2, 22.1, 19.5, 11.3, 8.9, 19.9, 13.0, 8.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Qatar&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;, &quot;Qatar&quot;], &quot;legendgroup&quot;: &quot;Qatar&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Qatar&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.02, 17.71, 25.37, 25.97, 30.72, 34.22, 34.67, 34.57, 31.76, 29.47, 23.42, 20.07], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Philippines&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;, &quot;Philippines&quot;], &quot;legendgroup&quot;: &quot;Philippines&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Philippines&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.41, 24.51, 26.45, 26.48, 27.93, 29.21, 30.24, 28.75, 27.55, 27.34, 27.01, 26.89, 26.33, 25.72, 25.12, 25.12, 25.42, 26.37, 27.57, 27.32, 27.07, 27.12, 27.42, 27.07, 26.57, 26.52, 26.83, 26.95, 27.66, 28.21, 28.81, 27.77, 27.5, 27.43, 27.85, 27.71, 27.53, 27.58, 26.15, 27.01, 27.71, 28.32, 27.7, 26.55, 25.51, 25.88, 26.09, 26.42, 26.42, 26.98, 23.94, 23.57, 25.86, 27.27, 28.43, 27.7, 25.76, 25.67, 27.0, 28.69, 29.24, 28.11, 26.8, 27.25, 27.01, 27.33, 26.91, 26.39, 26.09, 25.82, 26.47, 27.54, 28.71, 28.63, 27.82, 28.32, 28.38, 27.72, 26.67, 26.37, 25.95, 21.89, 21.64, 23.24, 24.14, 26.34, 26.89, 27.88, 26.94, 26.74, 24.59, 22.74, 20.74, 24.39, 23.79, 25.94, 27.49, 28.09, 26.54, 25.94, 25.94, 25.84, 26.09, 25.34, 25.49, 24.19, 24.7, 26.6, 27.1, 28.05, 27.6, 27.19, 27.1, 27.2, 27.05, 23.8, 22.45, 25.81, 24.81, 27.26, 28.9, 29.11, 28.21, 27.01, 27.11, 26.76, 27.31, 26.21, 26.06, 17.85, 16.89, 18.75, 19.6, 20.0, 19.3, 18.64, 18.45, 18.39, 18.39, 17.8, 17.64, 25.02, 25.32, 27.32, 28.62, 29.97, 28.32, 26.92, 27.22, 27.07, 26.97, 26.37, 26.17, 24.73, 24.68, 26.18, 25.17, 24.87, 26.27, 27.17, 28.27, 28.67, 27.62, 27.32, 27.17, 26.31, 25.67, 25.87, 26.05, 25.75, 26.85, 27.44, 28.3, 28.2, 27.55, 28.05, 28.3, 27.85, 26.9, 26.35, 25.23, 25.43, 26.08, 27.18, 25.42, 25.71, 28.34, 28.15, 27.56, 28.13, 27.82, 28.21, 27.49, 26.55, 26.66, 28.15, 30.01, 30.37, 28.4, 25.83, 25.78, 27.58, 28.73, 30.02, 28.73, 27.33, 26.88, 26.63, 26.83, 26.27, 25.98, 26.64, 26.99, 27.89, 29.09, 28.84, 28.14, 27.34, 27.54, 27.93, 28.29, 27.44, 27.44, 26.01, 25.16, 27.51, 28.46, 29.01, 27.81, 26.91, 27.46, 27.26, 27.51, 27.26, 27.35, 24.95, 24.45, 25.9, 27.0, 29.4, 29.75, 28.0, 27.5, 27.8, 26.84, 25.95, 25.3, 24.72, 24.72, 25.92, 27.17, 28.42, 28.46, 27.67, 27.62, 27.92, 27.27, 26.77, 26.32, 23.4, 24.55, 25.5, 25.84, 25.1, 24.4, 24.75, 24.55, 24.55, 24.1, 24.2, 26.8, 26.4, 27.55, 29.1, 30.05, 27.55, 26.35, 26.94, 26.5, 27.3, 27.3, 27.5, 25.94, 25.84, 26.59, 27.89, 28.29, 27.79, 26.74, 26.99, 27.29, 27.64, 26.99, 26.54, 26.69, 26.64, 27.04, 28.59, 29.44, 28.14, 27.59, 27.89, 27.69, 27.79, 27.28, 27.19, 29.44, 28.74, 28.69, 29.14, 28.44, 27.54, 27.09, 24.66, 24.85, 25.81, 27.36, 28.66, 28.26, 26.06, 25.96, 26.06, 26.01, 26.01, 25.66, 25.75, 25.45, 26.55, 27.15, 27.95, 27.95, 27.25, 27.75, 28.05, 27.55, 26.65, 26.05, 27.75, 26.5, 25.65, 24.15, 24.8, 25.25, 26.4, 27.2, 29.25, 29.55, 28.05, 27.95, 28.59, 27.34, 26.4, 25.35, 22.56, 22.91, 23.61, 24.46, 25.36, 24.66, 23.41, 23.81, 23.51, 24.01, 23.91, 24.11, 25.91, 26.21, 27.3, 28.81, 28.3, 27.3, 27.26, 27.46, 27.36, 26.76, 26.66, 25.45, 25.8, 27.05, 28.75, 29.35, 28.35, 27.34, 27.25, 27.45, 27.3, 26.65, 26.35, 23.93, 23.87, 24.98, 25.85, 26.85, 28.15, 28.95, 27.5, 25.6, 26.4, 26.5, 26.9, 26.2, 25.65, 25.45, 27.0, 28.5, 29.65, 28.85, 28.15, 27.9, 27.8, 27.25, 26.7, 26.59, 25.9, 25.95, 27.6, 28.95, 29.25, 28.45, 27.35, 25.84, 26.55, 27.2, 28.15, 28.75, 27.65, 26.95, 27.15, 27.2, 27.7, 27.15, 27.15, 26.27, 26.42, 28.22, 29.11, 29.22, 27.77, 26.86, 27.27, 27.12, 27.77, 27.02, 27.17, 25.14, 24.94, 26.49, 27.74, 29.14, 29.24, 28.04, 27.84, 27.84, 27.09, 26.29, 25.94, 26.1, 26.2, 27.5, 28.5, 29.39, 29.1, 27.8, 28.0, 27.6, 27.55, 27.1, 26.5, 25.98, 25.88, 27.88, 29.38, 27.0, 26.75, 27.5, 29.34, 29.59, 28.7, 27.55, 28.0, 27.95, 28.15, 28.34, 27.7, 25.3, 26.05, 26.6, 26.9, 26.95, 26.45, 26.2, 26.55, 26.6, 26.4, 26.3, 26.3, 25.69, 25.89, 26.39, 27.29, 27.64, 27.49, 27.44, 26.78, 27.29, 26.59, 26.53, 26.29], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Saudi Arabia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;, &quot;Saudi Arabia&quot;], &quot;legendgroup&quot;: &quot;Saudi Arabia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Saudi Arabia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.13, 19.53, 25.43, 27.03, 31.63, 35.83, 35.73, 35.63, 34.13, 29.13, 22.63, 20.63, 14.38, 15.38, 24.88, 25.38, 31.58, 35.48, 34.58, 34.68, 31.98, 27.58, 19.88, 17.58, 10.96, 13.36, 20.56, 19.76, 27.26, 31.76, 31.16, 31.36, 29.56, 24.66, 15.36, 14.06, 10.03, 14.93, 19.73, 20.13, 25.83, 30.63, 31.13, 30.83, 28.33, 24.13, 16.83, 12.63, 17.74, 20.84, 23.64, 25.64, 26.84, 29.54, 28.84, 29.94, 29.74, 28.74, 25.24, 22.34, 19.88, 22.88, 25.58, 26.78, 28.48, 31.98, 31.38, 31.28, 31.28, 29.98, 26.28, 22.93, 14.29, 16.09, 20.89, 22.59, 25.99, 29.59, 28.69, 27.99, 27.09, 22.59, 18.89, 16.79, 16.81, 15.71, 23.71, 25.01, 30.11, 31.31, 34.81, 34.31, 32.31, 28.71, 21.61, 18.51, 23.44, 24.94, 25.94, 28.14, 30.84, 32.24, 32.24, 32.34, 31.54, 30.64, 28.44, 26.64, 26.7, 26.2, 29.0, 31.2, 32.8, 34.3, 34.0, 33.2, 33.1, 30.9, 28.9, 26.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Singapore&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;, &quot;Singapore&quot;], &quot;legendgroup&quot;: &quot;Singapore&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Singapore&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.73, 27.23, 27.48, 27.78, 27.78, 27.58, 26.73, 26.58, 27.18, 27.23, 26.53, 26.37, 27.08, 27.28, 27.78, 27.88, 28.18, 28.18, 27.48, 27.08, 27.78, 27.68, 26.98, 26.18], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Thailand&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;, &quot;Thailand&quot;], &quot;legendgroup&quot;: &quot;Thailand&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Thailand&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [20.31, 21.96, 25.6, 29.46, 28.72, 26.97, 26.16, 25.64, 26.66, 26.29, 23.09, 21.06, 20.07, 21.56, 24.99, 28.22, 20.0, 21.56, 25.41, 28.94, 27.9, 25.52, 24.64, 24.53, 26.06, 26.35, 23.51, 21.16, 21.57, 23.36, 27.39, 30.72, 29.97, 28.95, 28.11, 27.29, 27.82, 27.13, 24.33, 22.11, 22.98, 24.43, 28.33, 30.47, 30.32, 28.87, 27.89, 27.21, 27.39, 26.82, 23.76, 21.44, 25.51, 26.27, 30.03, 32.33, 31.45, 30.11, 28.85, 28.53, 28.75, 28.63, 25.41, 22.77, 23.13, 23.67, 27.82, 30.45, 29.96, 29.14, 27.82, 27.37, 28.05, 27.37, 23.99, 21.33, 25.55, 26.16, 29.41, 31.56, 30.54, 28.94, 27.55, 27.41, 27.58, 27.53, 24.62, 22.56, 24.86, 24.92, 28.58, 29.68, 29.55, 28.83, 28.44, 28.0, 27.52, 27.32, 23.67, 20.73, 24.68, 25.15, 28.12, 29.93, 29.67, 28.46, 28.11, 27.93, 27.37, 27.26, 23.83, 20.83, 23.64, 24.09, 26.31, 28.09, 28.58, 27.08, 26.78, 26.51, 26.43, 25.92, 22.58, 19.52, 24.01, 24.31, 27.1, 28.73, 29.04, 27.59, 26.69, 27.1, 27.16, 26.42, 23.21, 19.95, 24.25, 25.12, 28.44, 30.57, 29.87, 27.15, 26.14, 26.09, 26.86, 27.24, 24.14, 21.84, 25.53, 27.09, 31.33, 31.79, 30.32, 28.63, 27.78, 26.8, 27.06, 26.59, 23.85, 21.89, 26.43, 27.18, 30.33, 31.44, 31.03, 29.07, 27.61, 27.93, 27.82, 28.1, 25.69, 23.43, 26.65, 26.82, 30.24, 30.66, 30.73, 28.83, 27.71, 27.77, 27.85, 27.98, 25.0, 22.56, 25.09, 25.73, 28.5, 29.45, 30.01, 27.78, 26.9, 26.91, 26.55, 26.54, 23.12, 20.82, 25.08, 25.3, 27.93, 29.7, 30.06, 28.2, 27.35, 27.62, 27.62, 27.03, 23.85, 20.9, 27.68, 28.78, 31.16, 32.0, 31.29, 29.57, 25.9, 26.4, 28.79, 29.67, 29.73, 28.32, 27.68, 27.94, 27.43, 27.07, 23.76, 21.49, 27.39, 27.38, 29.97, 30.42, 30.41, 28.85, 27.77, 28.2, 28.01, 27.77, 25.25, 23.4, 27.91, 28.41, 30.71, 31.5, 30.91, 30.25, 28.39, 28.11, 27.79, 28.15, 25.52, 23.64, 27.75, 27.92, 27.43, 27.94, 25.85, 24.23, 27.97, 28.7, 30.65, 30.18, 29.92, 29.0, 27.93, 28.3, 27.85, 28.47, 26.42, 24.79, 27.2, 28.1, 30.71, 31.21, 30.8, 29.73, 28.33, 28.59, 27.82, 27.44, 24.37, 22.36, 26.36, 26.52, 29.05, 29.53, 30.08, 28.45, 27.26, 27.77, 27.31, 27.06, 24.27, 22.24, 28.57, 29.85, 32.01, 32.42, 30.92, 30.07, 28.99, 28.95, 28.93, 28.46, 25.48, 23.9, 28.73, 29.08, 30.6, 31.45, 30.99, 29.92, 29.11, 29.05, 28.73, 29.05, 27.03, 25.56, 26.73, 26.99, 28.57, 29.44, 29.36, 28.62, 27.83, 27.44, 27.33, 27.73, 25.71, 23.72, 26.7, 27.39, 28.8, 29.97, 29.45, 29.15, 28.12, 27.78, 27.81, 28.04, 26.18, 25.19, 28.07, 28.13, 30.89, 31.37, 30.58, 29.25, 27.96, 28.44, 27.93, 27.8, 25.21, 23.31, 26.87, 27.29, 29.17, 29.68, 30.49, 30.65, 29.18, 29.01, 28.58, 27.92, 26.19, 24.87, 27.16, 27.15, 28.22, 28.57, 28.37, 28.1, 27.01, 26.98, 26.41, 26.17, 24.68, 24.43, 27.47, 27.19, 28.57, 28.75, 28.11, 27.12, 27.6, 27.13, 27.92, 26.43, 25.63, 26.16, 26.78, 28.2, 28.91, 29.79, 29.42, 28.48, 27.89, 28.55, 27.61, 26.12, 25.07, 27.03, 26.68, 28.04, 28.56, 28.74, 26.25, 26.7, 27.73, 28.63, 29.09, 28.02, 27.69, 28.05, 27.23, 27.62, 25.66, 24.74, 26.72, 27.87, 28.7, 25.71, 25.56, 26.02, 27.23, 28.78, 29.18, 28.31, 27.99, 27.59, 27.09, 26.87, 25.34, 24.91, 27.28, 26.75, 25.01, 25.02, 27.45, 27.25, 26.93, 27.22, 26.75, 27.31, 26.5, 27.24, 28.58, 28.9, 28.08, 27.84, 27.55, 27.53, 26.87, 26.53, 26.23, 26.75, 26.76, 27.44, 28.96, 29.62, 28.77, 27.28, 27.02, 27.17, 26.97, 27.12, 25.86, 26.36, 26.85, 27.14, 28.09, 28.68, 29.08, 28.04, 27.85, 27.82, 27.72, 27.13, 25.86, 26.31, 25.34, 27.24, 29.99, 30.88, 29.79, 28.69, 28.09, 26.63, 27.04, 26.54, 24.34, 22.14, 26.63, 27.53, 29.78, 30.18, 30.38, 28.88, 27.83, 28.03, 27.48, 27.73, 24.83, 22.58, 27.59, 28.19, 29.54, 30.89, 30.34, 29.99, 29.03, 28.69, 28.14, 28.09, 26.74, 25.69, 26.31, 26.46, 27.51, 28.81, 29.16, 27.81, 27.46, 27.51, 27.41, 27.2, 25.81, 25.61, 27.06, 27.35, 28.51, 29.35, 29.21, 28.41, 28.01, 28.01, 28.41, 27.56, 26.16, 26.41, 26.99, 26.99, 29.59, 30.04, 29.99, 28.49, 27.39, 27.83, 27.64, 27.39, 24.84, 22.99, 24.62, 25.28, 28.23, 29.83, 29.58, 28.58, 28.23, 28.03, 27.48, 27.38, 23.88, 20.93, 28.3, 28.6, 30.15, 31.0, 30.55, 29.45, 28.65, 28.55, 28.25, 28.6, 26.55, 25.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Tajikistan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;, &quot;Tajikistan&quot;], &quot;legendgroup&quot;: &quot;Tajikistan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Tajikistan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-9.67, -9.51, 4.66, 12.96, 18.26, 23.69, 24.81, 23.12, 18.78, 12.41, 4.66, 3.99, -5.76, -5.46, 7.24, 11.84, 16.24, 22.04, 23.44, 22.54, 17.94, 12.64, 6.14, -7.3, -6.56, 5.14, 11.09, 15.69, 20.79, 22.69, 21.39, 17.13, 11.19, 5.19, 5.14, -12.33, -11.33, -3.07, -0.39, 3.71, 7.91, 9.81, 9.97, 4.97, 1.67, -3.73, -5.52, -3.74, -2.48, 8.01, 11.11, 15.51, 19.46, 21.71, 21.71, 16.55, 12.11, 4.36, 3.11, -6.75, -6.85, 3.65, 6.2, 11.35, 14.45, 16.79, 17.2, 12.5, 8.5, 1.05, -0.75, -15.91, -14.57, -6.42, -4.52, 0.03, 4.38, 6.83, 7.92, 2.53, -2.06, -7.82, -9.82, -5.5, -4.14, 5.0, 7.5, 12.6, 15.6, 17.45, 18.5, 12.95, 8.55, 1.8, 0.5, -9.43, -8.63, 0.67, 2.77, 7.92, 11.32, 13.07, 13.97, 9.06, 4.72, -1.87, -3.58, -0.79, 0.3, 11.49, 14.09, 18.95, 24.01, 26.23, 24.33, 19.59, 16.0, 8.4, 8.32, -2.47, -0.57, 11.13, 13.93, 19.03, 26.23, 29.13, 27.83, 21.93, 17.03, 7.13, 6.93, -7.05, -6.45, 2.25, 5.45, 11.29, 15.9, 18.5, 19.2, 14.35, 9.39, 2.25, 0.39, -3.96, -3.76, 6.39, 10.29, 14.84, 19.88, 22.94, 22.54, 17.79, 13.44, 6.39, 5.59, -2.2, -1.6, 11.3, 14.5, 19.2, 24.9, 28.0, 26.9, 21.1, 16.7, 7.9, 7.1, -13.05, -11.9, -4.35, -2.15, 2.65, 6.05, 8.6, 9.5, 4.55, 0.44, -5.0, -7.35, -4.99, -4.74, 5.15, 9.76, 16.16, 20.81, 23.26, 19.96, 13.61, 6.21, 2.41, -13.65, -13.11, -3.31, -0.71, 6.29, 9.74, 12.34, 13.19, 7.53, 2.63, -4.31, -8.41, -15.43, -15.03, -2.52, -0.68, 4.22, 7.92, 10.82, 12.07, 4.92, 0.32, -7.77, -12.93, -0.6, 0.14, 13.4, 16.57, 22.03, 27.11, 28.35, 26.21, 21.34, 18.19, 9.55, 8.91, -1.45, -0.45, 11.55, 16.15, 21.75, 28.15, 30.15, 27.95, 21.65, 17.35, 7.95, 7.95, 0.54, 0.9, 13.3, 16.35, 20.95, 26.65, 29.15, 28.0, 23.0, 18.8, 10.2, 9.95, -2.0, -1.7, 11.6, 15.8, 22.2, 28.6, 30.5, 28.3, 22.4, 17.7, 8.0, 7.1, -7.6, -6.5, 3.2, 8.1, 13.75, 17.75, 20.05, 21.9, 16.15, 10.8, 4.85, -0.31, -7.9, -6.78, 2.96, 7.71, 13.43, 17.76, 20.47, 21.69, 16.32, 10.3, 3.83, -2.58, -6.67, -6.53, 5.62, 7.47, 13.07, 17.37, 19.97, 20.92, 15.42, 9.82, 2.42, -2.73, 1.05, -2.15, -10.15, -10.05, -10.55, -9.04, -0.8, 1.6, 6.1, 10.9, 13.25, 14.5, 10.25, 3.75, -2.15, -3.85, 13.0, 17.6, 22.8, 26.0, 25.3, 20.0, 15.7, 7.0, 7.3, -7.65, -6.55, 2.4, 4.94, 10.85, 14.65, 16.84, 18.15, 13.8, 9.39, 2.75, 0.0, -6.92, -5.62, 3.18, 9.47, 15.13, 19.38, 21.73, 22.43, 17.53, 12.93, 6.23, 3.03, -14.11, -15.46, -3.71, -3.0, 5.24, 8.94, 9.94, 3.19, -1.61, -13.01, -13.81, -3.42, -2.46, 6.03, 9.87, 15.23, 19.93, 22.58, 22.73, 17.88, 12.88, 6.08, 4.73, -7.54, -6.7, 2.8, 6.9, 12.8, 16.64, 19.0, 19.55, 15.2, 10.75, 3.75, 1.24, -2.0, -1.74, 9.7, 12.0, 16.35, 21.2, 23.85, 23.0, 18.2, 14.65, 7.2, 7.05, -14.4, -13.7, -4.65, -4.25, 1.3, 5.0, 8.39, 8.89, 3.1, -0.69, -9.1, -16.35, -18.4, -17.7, -9.35, -7.8, -3.5, -0.14, 2.44, 4.35, -0.84, -5.39, -11.0, -13.55, -17.4, -15.2, -5.2, -6.75, 3.2, 7.65, 10.5, 11.9, 5.8, 1.0, -6.95, -11.65, -1.09, -0.19, 12.01, 15.31, 20.51, 27.11, 29.71, 28.01, 22.81, 18.01, 8.31, 9.51, -11.56, -9.66, -0.26, 3.84, 9.44, 12.74, 14.64, 16.04, 10.34, 5.64, -3.75, -5.96, -6.1, -5.2, 3.4, 9.8, 15.3, 19.5, 22.3, 23.7, 18.4, 13.4, 6.2, 3.5, -10.37, -8.82, 1.77, 6.48, 11.78, 14.98, 17.53, 17.73, 13.73, 9.23, 1.53, -3.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Timor-Leste&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;, &quot;Timor-Leste&quot;], &quot;legendgroup&quot;: &quot;Timor-Leste&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Timor-Leste&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.89, 27.59, 27.99, 27.54, 26.69, 25.94, 25.54, 25.49, 25.29, 26.14, 28.04, 28.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Turkey&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;, &quot;Turkey&quot;], &quot;legendgroup&quot;: &quot;Turkey&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Turkey&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [6.8, 6.16, 7.75, 9.87, 15.09, 20.9, 20.48, 21.82, 20.11, 14.71, 11.39, 10.88, 4.27, 7.8, 6.69, 10.5, 17.79, 22.35, 21.6, 23.46, 21.55, 15.55, 12.61, 10.48, 0.58, 4.63, 7.1, 15.03, 18.53, 17.32, 19.81, 15.85, 9.41, 5.52, 2.67, 4.06, 6.47, 14.23, 18.45, 17.76, 19.82, 15.94, 10.72, 4.93, 2.6, -2.19, -4.08, 4.12, 6.46, 13.37, 17.5, 19.64, 21.56, 15.98, 11.08, 4.59, 1.42, 0.64, 3.33, 6.67, 11.83, 13.16, 14.66, 15.08, 21.26, 24.25, 25.5, 26.44, 24.35, 20.42, 16.61, 14.13, 4.11, 6.87, 5.92, 9.02, 14.77, 19.71, 19.87, 21.47, 18.57, 12.72, 12.82, 10.57, 1.0, 2.51, 5.76, 8.31, 15.91, 20.16, 19.06, 21.71, 17.71, 11.36, 7.61, 5.76, 3.02, 7.37, 5.92, 10.52, 17.47, 21.72, 21.37, 23.12, 21.47, 15.62, 11.67, 9.02, 5.55, 9.14, 9.95, 11.9, 20.95, 24.65, 24.2, 26.1, 23.95, 17.54, 12.04, 9.5, -0.93, -0.93, 6.37, 7.07, 15.07, 19.47, 18.92, 20.32, 16.47, 10.57, 5.01, 3.42, 0.2, -1.69, 7.36, 10.06, 17.7, 23.56, 24.61, 26.36, 21.46, 14.66, 6.96, 3.61, 10.53, 12.63, 15.72, 16.93, 23.28, 26.53, 27.38, 27.88, 27.18, 22.68, 18.08, 14.03, 4.6, 8.15, 6.15, 9.65, 16.25, 21.6, 19.3, 21.55, 19.09, 13.8, 13.35, 10.6, 6.47, 8.52, 7.61, 10.17, 15.42, 20.97, 21.37, 23.17, 20.62, 15.12, 14.37, 12.42, 5.86, 8.16, 7.01, 10.21, 15.36, 20.86, 20.11, 21.51, 19.66, 13.96, 13.21, 11.51, 6.72, 7.72, 8.01, 10.26, 15.32, 21.72, 20.82, 22.37, 20.65, 15.1, 12.85, 12.15, 3.8, 4.8, 7.9, 10.75, 16.79, 21.85, 19.54, 21.35, 17.9, 11.95, 8.75, 6.89, -2.01, 5.88, 5.83, 11.62, 20.48, 22.83, 22.63, 23.83, 21.08, 14.33, 11.13, 6.58, 1.41, 6.17, 5.07, 9.97, 17.17, 21.27, 21.07, 22.47, 20.67, 15.12, 12.22, 8.62, 4.88, 8.38, 7.13, 11.09, 18.39, 22.64, 20.84, 23.09, 20.49, 14.69, 12.89, 10.24, 2.97, 4.02, 6.62, 11.11, 11.97, 15.61, 19.57, 17.92, 14.61, 9.57, 7.27, -1.32, -0.05, 0.54, 6.5, 8.55, 16.85, 20.7, 19.95, 22.95, 18.15, 11.4, 5.85, 4.05, -0.54, 0.51, 5.66, 7.81, 15.46, 19.61, 18.36, 21.01, 17.25, 10.71, 6.71, 4.61, 2.47, 2.91, 7.57, 9.42, 16.97, 21.62, 20.42, 22.07, 18.97, 12.72, 7.92, 7.32, 0.1, 0.99, 5.7, 7.9, 15.94, 20.85, 19.6, 22.1, 17.44, 11.75, 5.95, 3.75, -2.14, -3.75, 3.95, 6.5, 14.25, 18.45, 17.75, 19.79, 15.95, 10.75, 4.94, 2.6, -1.0, -2.65, 5.95, 8.2, 15.25, 19.79, 20.9, 22.8, 17.1, 11.65, 5.0, 2.75, -8.52, -9.6, -1.45, 2.63, 10.45, 14.91, 16.66, 19.48, 12.6, 6.7, 1.32, -3.82, -13.64, -14.59, -4.29, 2.81, 10.61, 14.26, 16.05, 17.86, 11.71, 6.51, 0.1, -4.29, -9.48, -12.73, -1.28, 4.52, 12.22, 15.17, 18.51, 20.82, 13.97, 8.47, 0.37, -7.63, 3.75, 8.5, 7.05, 11.4, 18.45, 22.6, 23.3, 23.95, 22.15, 16.35, 12.95, 10.4, 4.0, 7.95, 7.45, 10.5, 18.5, 22.65, 21.6, 23.6, 21.55, 14.95, 12.15, 10.25, 0.05, 0.81, 6.81, 8.16, 16.86, 20.46, 20.31, 23.61, 19.5, 12.41, 7.66, 5.61, -2.05, -0.99, 3.8, 5.1, 13.65, 18.04, 17.04, 19.95, 15.9, 9.7, 6.0, 3.15, 2.51, 7.16, 6.51, 9.86, 18.46, 22.3, 20.91, 23.01, 20.91, 14.61, 11.46, 8.41, -0.14, 4.1, 5.45, 7.0, 15.8, 19.04, 17.65, 20.59, 17.54, 11.35, 7.5, 5.2, 0.7, 2.3, 6.95, 7.7, 16.1, 19.9, 20.35, 22.6, 18.29, 12.1, 6.65, 4.75, 1.67, 4.12, 6.76, 7.17, 16.52, 19.52, 20.02, 22.62, 19.97, 13.42, 9.22, 5.72, -0.79, 3.7, 5.95, 6.8, 15.6, 19.15, 19.0, 21.9, 18.64, 11.85, 7.55, 5.4, 0.26, 2.01, 6.16, 6.71, 15.31, 19.7, 18.36, 20.96, 17.31, 10.91, 7.66, 5.46, 0.05, -1.2, 7.09, 9.54, 17.48, 23.44, 25.09, 27.19, 21.79, 15.34, 7.64, 3.44, -1.59, -3.59, 4.71, 8.2, 16.91, 22.31, 24.46, 26.76, 20.61, 14.21, 7.56, 2.01, -5.03, -8.19, 1.81, 7.66, 15.66, 19.86, 23.21, 25.26, 19.26, 12.86, 5.71, -0.79, 2.67, 2.42, 8.87, 11.02, 18.92, 25.22, 28.22, 29.82, 24.02, 16.82, 9.52, 5.22, 6.9, 10.9, 10.5, 13.1, 21.8, 25.2, 25.6, 26.3, 24.1, 17.8, 14.2, 11.6, 7.18, 10.78, 12.28, 13.33, 22.38, 25.73, 26.23, 27.28, 25.03, 18.78, 14.98, 11.58, 4.94, 8.34, 10.2, 11.1, 20.25, 24.1, 24.09, 26.2, 22.95, 15.9, 12.35, 9.54, -0.3, 2.15, 7.3, 7.5, 15.7, 20.09, 20.4, 22.1, 18.4, 11.65, 0.0, 2.3, 6.55, 7.25, 15.35, 19.25, 19.54, 21.7, 17.6, 11.75, 6.8, 4.55, 5.05, 5.8, 11.15, 12.45, 20.7, 25.3, 26.59, 28.3, 25.2, 18.65, 12.45, 7.75, 4.0, 5.15, 10.65, 12.2, 20.35, 26.15, 28.4, 29.95, 25.85, 18.85, 11.74, 7.15, 5.3, 6.7, 11.7, 13.5, 22.3, 28.5, 29.8, 31.3, 26.8, 19.1, 12.1, 8.1, 2.0, 0.85, 9.25, 10.69, 18.55, 24.4, 27.5, 29.25, 23.6, 16.5, 8.75, 4.85, 2.48, 2.13, 9.48, 10.53, 17.58, 22.52, 25.58, 27.33, 21.68, 15.97, 7.48, 3.73, -6.16, -5.41, 2.08, 5.59, 14.89, 20.19, 22.99, 24.39, 18.84, 12.29, 5.94, -0.96, 5.28, 7.88, 9.92, 10.38, 19.48, 23.03, 25.13, 26.53, 24.13, 17.28, 12.03, 8.93, 10.46, 11.81, 14.31, 14.96, 21.71, 25.56, 27.66, 27.56, 25.71, 21.21, 16.5, 13.21, 11.68, 13.03, 15.98, 16.58, 22.23, 25.03, 26.17, 27.18, 26.33, 22.23, 16.68, 13.78, 8.73, 10.17, 13.98, 15.33, 21.88, 25.13, 25.88, 27.13, 25.93, 20.83, 15.28, 11.38, 2.34, 3.5, 8.2, 10.6, 17.84, 22.7, 21.7, 23.7, 20.15, 13.29, 8.25, 6.45, 0.98, 2.33, 6.83, 8.58, 16.13, 20.82, 19.63, 22.03, 18.43, 12.08, 7.63, 5.98, 10.35, 13.2, 13.65, 14.7, 22.45, 25.85, 26.95, 27.2, 26.25, 20.75, 17.2, 14.2, -8.12, -9.28, -0.47, 3.32, 12.32, 16.52, 19.47, 21.67, 14.97, 8.82, 2.32, -5.48, 9.99, 11.09, 14.79, 15.68, 21.19, 25.39, 26.04, 27.09, 26.09, 21.69, 16.2, 12.79, -9.05, -11.25, 0.65, 5.95, 13.65, 17.74, 20.3, 22.8, -3.87, -6.47, 5.73, 11.43, 18.03, 22.02, 24.28, 24.93, 19.18, 12.78, 5.23, 3.73, 5.6, 7.85, 7.35, 10.55, 16.4, 21.8, 21.1, 22.95, 20.2, 13.79, 13.5, 11.4, 1.0, -1.35, 7.1, 10.05, 17.45, 23.3, 24.8, 27.05, 21.8, 15.85, 8.05, 4.44, -0.54, 2.36, 3.91, 5.16, 14.51, 17.51, 16.41, 19.86, 17.45, 10.86, 8.61, 3.76, 0.59, 2.6, 7.5, 7.95, 15.5, 20.1, 20.55, 22.84, 18.7, 11.45, 6.65, 5.6, 26.69, 25.99, 21.49, 16.23, 13.39, 3.35, 5.05, 9.45, 10.6, 18.25, 21.3, 23.59, 24.65, 21.3, 15.55, 9.84, 6.7, 2.83, 3.97, 9.73, 10.78, 18.98, 24.13, 26.18, 27.33, 23.23, 16.02, 9.18, 5.33, -0.01, 1.28, 6.74, 8.09, 16.39, 19.93, 20.24, 22.74, 18.64, 11.29, 6.34, 5.64, 6.85, 6.45, 7.8, 10.1, 15.0, 21.3, 20.45, 21.5, 19.79, 14.15, 11.05, 10.3, -1.25, -2.75, 5.4, 8.1, 15.8, 20.5, 21.45, 23.85, 19.0, 12.8, 5.85, 3.25, 4.94, 8.63, 7.19, 11.04, 18.84, 23.09, 21.74, 24.24, 21.99, 15.44, 13.44, 10.89, 6.89, 10.84, 10.84, 12.14, 19.69, 23.19, 23.49, 24.39, 22.74, 16.69, 13.49, 12.09, -4.42, -5.52, 2.23, 5.48, 12.92, 16.63, 20.28, 22.13, 14.83, 9.18, 2.98, -0.23, 1.87, 6.21, 5.31, 7.87, 14.96, 18.92, 19.37, 19.42, 18.12, 12.52, 9.62, 6.57, -1.55, -0.9, 3.75, 6.0, 14.15, 17.95, 17.35, 20.85, 16.29, 9.95, 6.55, 2.8, -3.47, -4.56, 4.03, 5.88, 13.23, 17.53, 18.63, 20.53, 15.98, 11.13, 4.63, 0.58, -1.25, 0.4, 3.94, 5.8, 12.8, 17.4, 15.79, 17.65, 15.0, 10.0, 5.5, 3.1, 1.45, -0.5, 8.35, 11.25, 19.2, 24.84, 27.05, 28.9, 23.55, 16.5, 8.0, 4.85, 0.08, -2.07, 5.88, 9.38, 16.87, 22.38, 24.73, 26.88, 21.42, 14.88, 7.08, 2.58, -5.41, -8.51, 2.54, 8.14, 15.89, 19.34, 22.19, 23.89, 18.34, 12.44, 5.19, -0.86, 2.38, 2.48, 9.22, 11.28, 19.93, 26.03, 28.18, 30.23, 24.83, 17.78, 11.03, 5.78, 3.65, 9.25, 7.2, 11.75, 19.59, 23.15, 22.8, 24.2, 22.15, 15.9, 13.8, 9.89, -0.86, 2.14, 5.44, 6.83, 16.14, 19.44, 18.84, 22.04, 18.34, 11.48, 6.89, 5.04, 3.44, 4.35, 10.1, 11.5, 20.0, 26.25, 28.35, 30.15, 25.7, 18.35, 11.25, 6.5, 4.0, 7.15, 5.2, 10.0, 16.2, 20.65, 20.65, 22.65, 20.9, 15.7, 13.2, 9.7, 8.89, 10.7, 14.15, 15.4, 22.35, 25.85, 26.7, 27.7, 27.34, 21.59, 16.95, 11.95, -2.4, -4.15, 2.5, 5.49, 13.14, 18.35, 20.0, 22.6, 17.39, 11.45, 5.2, 0.65, 0.5, 3.35, 6.8, 7.25, 16.1, 20.4, 20.2, 23.3, 19.95, 13.15, 8.8, 5.5, 8.61, 10.2, 14.71, 15.6, 21.86, 25.76, 26.76, 27.96, 26.46, 21.21, 13.81, 10.56, 2.75, 4.5, 8.54, 11.45, 18.85, 22.7, 21.6, 23.65, 20.35, 12.75, 8.54, 7.35, 12.65, 19.65, 23.2, 23.5, 23.55, 22.55, 17.35, 14.4, 12.9, -5.09, -5.09, 2.41, 5.81, 13.81, 17.81, 21.06, 23.61, 16.26, 9.86, 3.56, -0.19, 0.41, 3.16, 7.95, 8.31, 16.16, 20.56, 20.6, 22.11, 18.6, 12.71, 7.51, 6.16, 5.07, 7.92, 6.52, 10.37, 16.62, 21.46, 20.67, 22.12, 20.62, 14.67, 12.42, 10.35, -4.51, -3.66, 1.94, 5.09, 12.79, 17.24, 17.99, 20.44, 14.44, 8.59, 4.23, 0.09, 2.3, 5.25, 8.35, 8.55, 17.54, 21.75, 22.15, 24.7, 21.35, 14.65, 9.6, 6.55, 2.45, 5.55, 8.25, 8.35, 17.2, 20.5, 21.8, 23.1, 20.35, 14.5, 9.4, 6.8, 4.05, 8.45, 7.0, 11.05, 18.04, 23.09, 22.35, 23.95, 22.3, 16.45, 13.0, 10.05, 6.35, 7.4, 12.8, 14.35, 22.35, 27.55, 29.75, 30.15, 25.9, 20.04, 11.3, 8.05, -3.22, -5.02, 2.33, 4.32, 12.53, 16.33, 16.18, 18.08, 14.23, 10.08, 4.68, -1.22, 0.9, 2.0, 7.5, 9.3, 17.54, 21.7, 21.3, 23.45, 19.59, 12.65, 7.7, 5.5, 6.05, 9.64, 10.14, 12.5, 21.7, 25.09, 25.2, 26.95, 24.55, 17.75, 13.45, 10.9, -5.7, -6.95, 1.85, 6.9, 13.79, 17.95, 20.0, 22.0, 15.29, 10.1, 3.65, 0.65, -0.1, 2.34, 4.0, 6.35, 15.04, 18.1, 16.54, 20.5, 16.95, 10.39, 8.35, 4.65, -1.07, -0.53, 4.98, 6.03, 13.78, 17.63, 17.63, 19.43, 15.53, 9.03, 4.18, 2.78, 5.7, 7.1, 12.2, 13.6, 21.7, 27.2, 28.9, 30.1, 26.2, 20.0, 12.3, 8.5, -11.87, -11.73, -0.69, 1.97, 10.87, 14.72, 17.07, 18.67, 13.67, 8.92, 2.87, -6.33, -3.05, -2.15, 2.75, 5.85, 14.4, 18.54, 21.55, 23.65, 17.79, 11.8, 6.3, 0.35, -0.83, 0.26, 5.11, 6.82, 15.76, 18.12, 17.92, 21.17, 16.76, 10.62, 5.92, 3.67, 6.15, 10.6, 9.75, 12.7, 21.15, 24.55, 24.75, 25.7, 23.85, 17.79, 14.6, 11.45, -0.02, 3.29, 6.29, 7.59, 16.47, 20.47, 20.17, 22.52, 19.82, 13.06, 7.32, 5.41, -1.91, -1.21, 5.29, 6.64, 14.89, 18.08, 18.24, 21.29, 17.14, 10.08, 5.09, 3.44, 6.24, 9.85, 11.05, 12.0, 20.4, 23.5, 23.85, 25.6, 23.3, 16.64, 13.35, 10.65, 6.45, 7.55, 12.9, 14.0, 22.15, 27.25, 29.09, 29.6, 25.84, 19.65, 11.75, 8.39, -5.22, -7.92, 0.57, 3.78, 11.43, 14.93, 14.93, 16.88, 13.28, 7.73, 2.27, -1.01, 0.1, 2.65, 6.1, 6.75, 16.19, 19.75, 19.24, 22.95, 19.19, 12.2, 8.25, 5.1, 9.89, 11.35, 13.65, 13.55, 20.2, 23.65, 25.2, 25.8, 24.15, 19.45, 14.9, 12.6, -0.82, 0.17, 5.47, 6.47, 15.17, 19.77, 18.42, 21.17, 17.07, 10.32, 7.92, 3.97, -0.46, 3.24, 6.74, 7.49, 15.29, 19.39, 18.99, 21.29, 17.39, 11.03, 7.14, 5.59, -7.85, -6.2, -0.04, 2.25, 10.5, 15.15, 17.5, 19.7, 13.8, 7.85, 3.05, -3.1, 8.39, 8.1, 8.39, 10.5, 15.1, 21.25, 20.59, 21.5, 19.84, 14.5, 12.3, 12.3, -2.66, -5.21, 2.94, 4.94, 12.49, 15.99, 16.24, 17.99, 13.99, 9.34, 3.59, 0.63, 2.0, 5.95, 6.3, 8.39, 17.84, 21.2, 19.9, 22.75, 20.35, 13.35, 11.2, 7.0, 2.5, 5.05, 8.0, 8.05, 16.95, 19.95, 21.75, 23.45, 20.59, 13.9, 8.75, 5.89, 11.29, 12.4, 14.29, 14.5, 20.4, 24.0, 24.55, 25.75, 24.65, 21.15, 16.29, 14.04, 6.85, 10.25, 12.5, 13.79, 3.6, 6.7, 5.4, 9.95, 16.45, 21.0, 20.95, 22.95, 20.85, 15.65, 13.0, 9.54, -8.42, -9.92, -0.11, 3.87, 10.78, 14.58, 17.58, 19.83, 12.88, 6.28, 0.63, -3.37, -0.25, 3.35, 6.05, 6.4, 15.5, 18.95, 19.04, 21.65, 18.29, 11.75, 7.1, 5.3, 1.67, 3.57, 8.27, 8.42, 16.62, 20.62, 20.82, 22.97, 19.26, 13.12, 7.82, 6.27, 1.26, 4.66, 7.36, 7.91, 16.21, 19.96, 19.51, 21.81, 18.55, 12.31, 8.21, 7.06, 8.42, 10.57, 12.82, 12.92, 20.62, 24.67, 25.87, 26.01, 24.62, 19.12, 14.87, 11.97, 5.65, 9.64, 10.45, 12.29, 21.09, 24.34, 23.5, 25.34, 22.5, 15.35, 12.95, 10.65, 9.84, 11.44, 13.49, 13.69, 20.24, 23.59, 25.54, 25.09, 23.94, 19.74, 15.39, 12.69, 0.4, 3.95, 7.2, 7.3, 16.0, 20.25, 21.25, 23.35, 19.65, 12.65, 8.15, 5.5, 0.08, 1.52, 7.18, 8.63, 15.88, 20.18, 19.68, 21.98, 18.03, 11.23, 7.23, 5.38, 0.94, -0.9, 7.55, 10.05, 17.79, 23.05, 25.34, 26.95, 21.65, 15.9, 7.64, 4.55, -0.78, 1.97, 7.62, 7.52, 15.57, 19.87, 19.87, 21.22, 17.47, 11.76, 6.52, 5.27, 1.12, 4.52, 7.13, 7.23, 15.88, 20.18, 20.78, 22.98, 19.87, 12.98, 8.43, 4.98, -0.91, 2.53, 6.64, 7.24, 15.44, 20.19, 23.39, 23.44, 18.49, 12.24, 7.73, 5.84, -0.58, 1.37, 5.32, 7.62, 20.37, 19.07, 22.57, 17.82, 11.42, 7.27, 4.22, -0.65, 5.3, 4.8, 10.1, 19.4, 21.75, 21.5, 23.45, 20.5, 14.15, 11.45, 6.8, -0.75, -2.4, 5.14, 8.0, 16.65, 22.35, 23.55, 26.2, 20.9, 14.05, 7.5, 2.95, 11.67, 12.87, 15.12, 16.02, 21.42, 25.02, 26.82, 27.37, 25.47, 21.82, 17.37, 14.52, 1.61, 5.31, 6.36, 7.41, 16.46, 19.46, 18.8, 21.16, 18.16, 11.86, 9.56, 6.41, -3.65, -5.35, 2.35, 4.4, 11.75, 16.0, 14.95, 17.4, 13.55, 8.55, 3.3, 0.6, 0.48, 2.78, 7.28, 7.78, 15.48, 20.13, 20.12, 21.63, 18.28, 11.93, 5.78, 5.28, 0.98, 1.18, 7.38, 8.68, 16.98, 20.08, 20.08, 22.98, 18.78, 11.78, 7.28, 6.28, -0.75, -0.45, 5.8, 7.15, 15.54, 18.7, 18.6, 21.45, 17.54, 11.1, 5.95, 3.75, 7.28, 8.98, 13.67, 15.58, 23.43, 29.78, 32.03, 33.13, 27.83, 22.03, 14.08, 9.98, 1.65, 3.0, 7.5, 9.1, 18.4, 21.9, 21.7, 25.0, 21.1, 13.75, 8.7, 6.8, 5.35, 7.05, 12.29, 13.95, 21.45, 25.5, 26.75, 28.15, 26.25, 19.65, 13.35, 8.3, -0.5, 1.64, 6.34, 7.49, 14.84, 19.89, 20.03, 22.14, 17.99, 11.89, 7.29, 4.54, -2.67, -2.47, 2.37, 5.17, 12.72, 16.46, 19.62, 21.02, 15.17, 9.27, 4.67, 1.37, -3.26, -7.06, 3.29, 4.59, 12.29, 16.38, 16.54, 18.69, 15.04, 9.34, 3.84, -0.52, 8.14, 10.75, 12.6, 12.95, 20.8, 24.5, 26.05, 26.35, 24.45, 18.65, 14.05, 12.15, 9.72, 11.17, 14.87, 16.02, 22.97, 26.52, 27.92, 28.82, 28.21, 22.21, 16.91, 12.41, 3.35, 7.0, 6.9, 10.1, 18.05, 22.3, 20.2, 22.7, 19.95, 13.64, 11.35, 9.1, 3.1, 7.75, 6.4, 10.75, 18.75, 22.85, 20.75, 22.8, 20.65, 14.45, 12.35, 9.6, 7.1, 11.15, 11.05, 12.9, 21.59, 24.25, 25.84, 26.5, 24.59, 18.65, 14.2, 11.85, -4.95, -2.44, -1.05, -0.35, 9.85, 12.5, 10.7, 14.45, 12.15, 5.7, 4.95, -0.65, 2.8, 6.05, 7.95, 8.8, 18.35, 22.3, 21.75, 24.6, 21.85, 14.65, 11.45, 7.35, 1.35, 6.25, 7.05, 13.8, 18.6, 19.04, 21.1, 17.15, 10.35, 6.0, 4.3, -11.84, -12.39, -3.34, 2.7, 11.31, 14.86, 15.61, 17.91, 11.46, 5.96, 0.8, -3.04, -2.1, -4.0, 3.6, 6.05, 13.55, 17.85, 17.04, 19.35, 15.6, 10.45, 5.05, 2.85, 0.04, 6.9, 6.4, 12.2, 20.2, 22.95, 22.85, 24.25, 21.4, 14.5, 11.75, 7.9, -0.29, 2.57, 5.97, 6.12, 14.32, 18.57, 18.96, 20.97, 17.77, 11.67, 6.62, 4.87, -3.85, -3.9, 4.55, 7.7, 15.65, 19.85, 21.1, 22.95, 16.4, 10.25, 5.4, 1.65, 7.14, 7.27, 8.11, 10.21, 14.81, 21.04, 20.64, 22.19, 20.4, 14.94, 12.47, 12.31, 6.3, 7.5, 7.5, 9.85, 14.45, 20.04, 20.29, 21.6, 20.1, 14.6, 12.35, 11.95, 6.27, 13.83, 17.88, 17.73, 19.78, 13.98, 8.13, 4.53, 2.63, -1.57, 0.68, 4.58, 5.53, 14.58, 18.53, 17.83, 21.43, 17.78, 10.63, 7.58, 3.58, -0.75, 6.75, 5.95, 11.4, 19.6, 22.6, 21.95, 23.95, 21.35, 14.8, 11.95, 7.3, -4.53, -6.43, 3.27, 6.02, 13.77, 18.52, 19.87, 22.92, 16.37, 10.97, 3.81, 0.91, 1.05, 5.35, 8.45, 8.39, 16.85, 21.25, 22.5, 24.1, 20.95, 14.05, 9.8, 5.4, 6.42, 9.82, 12.02, 13.32, -2.85, -2.65, 2.65, 5.3, 12.65, 17.2, 19.5, 21.5, 16.4, 10.4, 3.8, 0.19, 5.7, 9.7, 9.25, 12.15, 20.65, 23.35, 24.75, 25.8, 23.95, 17.7, 13.35, 10.7, -0.22, 2.13, 6.68, 7.52, 16.42, 19.97, 19.83, 23.03, 19.03, 11.83, 7.78, 5.73, -3.2, -4.05, 2.65, 5.0, 12.54, 16.95, 19.29, 21.45, 15.3, 10.15, 4.6, 0.25, 4.0, 6.95, 7.05, 10.65, 18.04, 22.25, 20.8, 23.15, 20.85, 14.25, 11.2, 9.2, 1.94, 4.79, 7.89, 10.44, 19.04, 22.84, 21.49, 24.94, 21.24, 13.64, 8.64, 6.34, -1.42, -2.47, 3.63, 6.23, 14.78, 19.23, 21.23, 23.78, 17.83, 11.78, 6.28, 1.02, -2.29, -2.94, 5.11, 8.31, 15.06, 20.16, 21.91, 23.65, 16.6, 10.36, 4.0, 2.61, 0.7, 4.56, 6.11, 7.21, 15.86, 19.06, 18.41, 21.31, 18.66, 12.01, 8.61, 5.91, 3.55, 7.0, 6.05, 10.05, 17.4, 21.84, 21.75, 23.55, 21.7, 15.75, 13.1, 9.85, 5.45, 7.1, 12.0, 13.6, 22.05, 27.8, 29.2, 31.1, 26.85, 19.6, -10.34, -9.09, -2.39, 1.31, 9.66, 13.56, 15.01, 17.31, 11.31, 5.76, 0.76, -3.58, -1.74, 1.26, 4.56, 4.61, 13.36, 17.76, 20.61, 17.06, 9.96, 6.51, 3.11, -1.83, 5.92, 5.37, 10.77, 19.37, 22.57, 21.97, 23.27, 20.52, 14.22, 11.22, 6.52, 4.14, 6.59, 5.04, 8.64, 14.59, 19.84, 18.49, 19.99, 18.18, 13.14, 11.39, 9.84, 6.42, 7.47, 12.57, 14.42, 23.92, 29.87, 31.42, 32.61, 28.27, 20.87, 13.87, 9.52, 6.95, 6.8, 8.0, 9.89, 14.5, 20.84, 20.75, 22.4, 20.9, 15.2, 12.45, 11.55, -1.3, -1.95, 5.65, 6.45, 14.15, 18.54, 18.35, 19.95, 16.65, 11.35, 5.1, 2.09, 7.84, 11.94, 11.08, 13.09, 21.64, 24.89, 25.69, 26.24, 24.74, 14.59, 12.44, 2.82, 4.03, 9.08, 10.83, 19.58, 25.73, 27.82, 30.43, 25.18, 17.43, 10.87, 6.68, -0.65, -1.3, 6.5, 8.0, 15.45, 19.65, 20.2, 21.25, 17.2, 12.3, 5.15, 2.3, 0.25, 2.0, 6.55, 7.15, 15.5, 20.04, 19.7, 22.0, 18.2, 11.75, 5.85, 4.39, 5.89, 7.1, 7.75, 9.7, 14.65, 20.29, 20.1, 21.1, 19.85, 14.54, 11.6, 11.45, -0.34, 5.51, 4.77, 9.67, 17.87, 21.12, 20.22, 21.62, 19.02, 12.57, 10.12, 6.72, 3.47, 6.77, 6.47, 9.22, 16.27, 20.92, 19.27, 21.32, 18.51, 12.42, 11.27, 9.06, -0.14, -2.15, 5.9, 7.1, 15.4, 19.79, 19.4, 22.09, 18.45, 12.05, 7.25, 3.95, 3.82, 8.92, 7.32, 11.12, 18.82, 22.92, 22.77, 24.02, 21.92, 15.82, 12.47, 9.77, 0.14, 5.59, 4.79, 9.74, 18.64, 21.94, 20.89, 22.59, 20.19, 14.04, 11.79, 7.79, 8.33, 12.14, 11.49, 13.44, 20.64, 23.99, 24.28, 24.09, 23.14, 18.14, 14.44, 12.59, 1.29, 4.54, 5.64, 8.39, 17.33, 21.04, 19.39, 22.19, 19.44, 12.84, 10.49, 7.49, 0.41, 4.7, 3.6, 6.26, 15.36, 18.45, 16.56, 19.36, 16.7, 10.26, 10.41, 6.01, 0.64, 3.53, 8.53, 8.68, 16.23, 20.08, 20.13, 21.48, 17.77, 11.88, 7.08, 5.73, 4.09, 7.04, 5.89, 9.63, 16.69, 22.19, 19.84, 22.04, 19.49, 13.69, 11.64, 8.79, -0.66, 3.13, 4.98, 7.18, 15.23, 19.08, 17.43, 19.73, 16.77, 10.78, 7.23, 5.73, 9.9, 11.05, 14.35, 15.15, 21.3, 25.05, 26.0, 26.99, 24.92, 21.17, 15.37, 13.17, 6.8, 8.85, 13.35, 14.3, 21.8, 25.9, 27.75, 28.45, 25.25, 19.14, 12.3, 9.8, 9.25, 11.25, 15.5, 16.35, 21.7, 25.85, 26.55, 27.65, 26.45, 22.0, 16.15, 12.25, 5.56, 8.61, 10.85, 11.71, 20.01, 24.26, 24.81, 26.06, 23.21, 16.96, 12.66, 10.0, 6.43, 10.23, 11.22, 12.58, 21.63, 25.03, 25.33, 26.93, 24.73, 17.88, 14.28, 10.78, 9.21, 10.31, 14.46, 15.91, 21.76, 25.05, 25.26, 26.46, 25.8, 20.86, 15.41, 11.66, 3.9, 6.9, 6.05, 9.4, 16.05, 20.99, 19.9, 22.35, 19.1, 12.85, 13.3, 10.55, 4.98, 10.03, 8.03, 11.88, 18.53, 22.88, 21.33, 22.38, 20.63, 15.58, 13.58, 10.78, 11.2, 12.2, 14.45, 14.95, 21.15, 24.85, 26.2, 26.55, 25.05, 21.05, 16.3, 13.65, -5.42, -6.07, 1.78, 5.13, 12.08, 16.47, 16.98, 19.97, 14.28, 9.23, 4.07, 0.13, -3.35, -4.79, 3.1, 7.2, 15.55, 20.45, 23.5, 25.75, 19.75, 13.15, 6.8, 0.35, -1.78, 0.67, 5.57, 6.22, 14.32, 19.02, 18.77, 21.17, 17.12, 10.22, 5.87, 4.62, 3.8, 6.45, 5.05, 9.3, 15.7, 20.2, 20.2, 21.95, 20.09, 14.8, 12.25, 9.05, 4.99, 7.03, 11.49, 12.89, 21.24, 25.44, 26.74, 28.09, 25.64, 18.93, 12.19, 7.59], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Taiwan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;, &quot;Taiwan&quot;], &quot;legendgroup&quot;: &quot;Taiwan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Taiwan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.5, 21.6, 18.1, 15.7, 16.62, 15.12, 17.12, 22.02, 25.82, 25.42, 28.82, 28.52, 27.82, 22.22, 19.12, 16.42], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Turkmenistan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;, &quot;Turkmenistan&quot;], &quot;legendgroup&quot;: &quot;Turkmenistan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Turkmenistan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-10.83, -8.85, 4.84, 13.18, 19.92, 27.25, 28.67, 26.72, 20.29, 13.36, 6.49, 4.07, 3.32, 13.68, 21.09, 27.45, 27.16, 24.95, 19.73, 11.94, 6.04, 3.13, -4.19, -5.08, 4.85, 12.05, 18.05, 24.98, 24.14, 26.09, 20.49, 14.36, 7.66, 6.86, 26.94, 27.12, 27.82, 21.3, 13.21, 4.25, 30.08, 28.63, 23.44, 15.49, 7.94, 6.54, -7.3, -6.89, 7.83, 15.74, 21.89, 27.2, 28.35, 26.05, 21.86, 15.45, 7.66, 7.7, -0.04, 1.15, 8.07, 13.82, 20.43, 25.52, 25.37, 26.07, 23.45, 17.55, 9.66, 9.62, -7.84, -9.24, 6.39, 13.62, 21.04, 28.37, 28.55, 28.32, 23.02, 14.93, 7.21, 6.58, -7.2, -6.6, 8.4, 15.9, 22.7, 29.0, 30.4, 27.5, 22.6, 15.7, 7.7, 7.7, -6.9, -8.48, 5.62, 13.27, 19.51, 25.36, 27.05, 25.53, 21.1, 14.9, 6.99, 6.18, -5.93, -8.63, 7.37, 15.17, 21.27, 27.37, 28.67, 26.27, 22.07, 16.77, 7.77, 6.87, -5.43, -5.24, 9.57, 15.96, 22.62, 27.72, 29.32, 26.63, 23.03, 16.91, 8.92, 9.2, 16.52, 26.01, 22.17, 7.48, 9.52, -2.56, -0.86, 11.54, 17.34, 23.24, 29.34, 31.34, 27.44, 23.54, 17.84, 7.84, 10.14, -3.22, -3.96, 10.41, 16.27, 22.29, 27.86, 29.5, 27.05, 23.17, 18.81, 9.77, 10.85, -2.39, -0.46, 11.33, 15.33, 19.84, 24.68, 27.01, 23.9, 19.89, 16.57, 8.8, 9.73, -0.05, 1.14, 8.06, 13.81, 20.42, 25.51, 26.06, 23.44, 17.54, 9.65, 9.6, -4.5, -5.2, 4.7, 11.6, 17.6, 25.0, 23.6, 26.0, 20.4, 13.9, 7.5, 6.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Uzbekistan&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;, &quot;Uzbekistan&quot;], &quot;legendgroup&quot;: &quot;Uzbekistan&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Uzbekistan&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [19.95, 22.05, 21.05, 16.25, 10.75, 4.45, 5.25, -13.84, -11.24, 1.36, 11.86, 19.36, 26.86, 26.36, 25.26, 19.06, 11.06, 4.56, 1.66, -14.48, -12.08, -1.68, 8.42, 17.22, 25.72, 26.12, 24.22, 19.62, 10.92, 5.22, 1.62, -14.6, -11.6, -0.4, 10.9, 18.4, 25.6, 25.3, 23.9, 18.4, 10.4, 4.4, 0.9, -16.1, -14.8, 0.9, 13.8, 19.6, 27.4, 28.1, 24.83, 19.84, 1.97, -13.79, -11.34, 1.23, 12.33, 19.15, 26.23, 26.16, 24.12, 19.07, 10.87, 5.04, 1.61, -14.0, -11.2, 1.6, 12.3, 19.6, 27.2, 26.6, 25.0, 19.2, 11.2, 4.8, 1.7, -10.5, -9.6, 3.2, 13.7, 20.2, 27.9, 28.1, 26.1, 21.2, 11.9, 5.7, 4.4, -13.87, -13.47, -3.32, 0.32, 5.28, 11.93, 12.88, 13.43, 8.67, 1.63, -4.37, -5.82, -12.79, -12.39, 3.91, 15.11, 21.91, 29.01, 30.11, 27.95, 4.39, -13.13, -12.55, 4.38, 15.36, 21.72, 28.23, 29.41, 27.19, 21.85, 14.42, 7.39, 5.99, -6.51, -6.88, 7.53, 15.18, 19.26, 24.51, 25.66, 24.41, 20.27, 14.22, 7.65, 8.54, -8.32, -8.12, 1.67, 8.63, 13.88, 18.12, 19.58, 20.18, 15.48, 9.33, 4.88, 2.78, -7.8, -8.6, 5.8, 15.2, 20.7, 25.5, 25.7, 24.3, 19.5, 13.3, 5.2, 4.2, 12.97, 19.82, 25.75, 26.84, 24.25, 19.54, 12.27, 4.46, -8.39, -9.1, 5.6, 15.1, 22.3, 29.5, 30.3, 28.6, 23.1, 14.6, 7.2, 6.3, -13.12, -13.12, 3.68, 13.18, 19.08, 26.08, 27.58, 25.48, 21.08, 5.28, 6.02, -10.41, -11.31, 5.59, 14.39, 19.09, 24.29, 24.89, 22.49, 18.39, 12.69, 5.19, 5.49, -8.6, -9.2, 6.7, 14.9, 19.8, 25.3, 26.0, 24.2, 20.2, 13.9, 6.4, 6.8, -8.47, -9.67, 8.03, 16.13, 20.63, 25.93, 26.33, 23.53, 19.53, 14.73, 6.53, 8.13, -7.25, -7.85, 6.85, 15.95, 20.95, 25.25, 25.85, 25.05, 19.95, 13.45, 5.55, 4.35, -8.1, -8.89, 5.9, 15.0, 20.7, 25.3, 25.6, 24.6, 19.9, 13.5, 5.0, 4.1, -6.78, -6.66, 6.89, 15.26, 20.36, 24.65, 25.3, 24.69, 19.84, 13.92, 6.37, 5.39, -5.38, -4.95, 8.23, 14.09, 18.25, 23.76, 24.77, 23.65, 19.16, 14.35, 7.55, 8.25, -6.91, -5.81, 5.04, 9.94, 13.84, 18.59, 18.13, 20.64, 15.84, 10.99, 4.49, 5.14, -5.7, -5.4, 8.6, 14.8, 20.6, 26.6, 27.9, 26.0, 20.5, 14.9, 6.6, 7.6, -3.3, -2.7, 9.8, 15.4, 21.3, 27.7, 29.0, 27.5, 22.3, 16.2, 7.7, 9.8, -6.63, -6.18, 2.77, 5.97, 9.12, 16.32, 18.21, 17.92, 13.27, 7.52, 1.52, 1.26, -5.09, -4.69, 5.36, 9.1, 13.51, 20.11, 22.51, 22.21, 16.5, 11.26, 3.86, 4.46, -3.6, -2.0, 9.4, 13.1, 18.6, 25.5, 27.4, 25.9, 20.2, 14.6, 6.0, 8.3, -2.5, -1.8, 8.9, 11.8, 16.7, 22.6, 24.5, 23.0, 17.7, 13.4, 5.7, 6.6, -1.2, 0.1, 11.8, 15.8, 21.4, 27.0, 27.8, 25.1, 20.3, 16.5, 7.8, 8.5, 0.03, 0.63, 12.33, 16.03, 22.03, 27.53, 28.53, 26.03, 21.23, 17.23, 8.63, 9.83, -0.7, 0.9, 12.3, 16.8, 22.7, 29.1, 30.8, 28.2, 23.4, 18.2, 9.4, 10.1, -0.34, 0.73, 12.66, 17.3, 22.6, 27.79, 29.18, 26.37, 21.62, 18.01, 9.23, 9.93, -8.5, -9.2, 5.0, 12.0, 17.3, 23.3, 25.2, 24.5, 18.9, 11.7, 4.7, 5.2, -8.3, -9.6, 5.6, 14.8, 20.7, 24.8, 25.0, 23.7, 19.0, 12.8, 4.8, 3.5, -7.6, -7.9, 6.4, 15.4, 20.8, 25.4, 25.2, 24.9, 20.0, 13.0, 5.2, 4.3, -8.36, -7.56, 4.24, 11.54, 16.34, 20.74, 22.14, 22.14, 17.24, 11.04, 4.04, 3.04, -5.9, -5.5, 7.9, 14.0, 19.7, 25.8, 27.5, 26.7, 20.2, 13.8, 6.3, 7.0, -9.16, -9.96, 6.44, 15.14, 19.84, 25.24, 25.84, 23.84, 19.64, 13.34, 6.14, 6.54, -6.4, -7.5, 5.8, 13.4, 19.2, 25.3, 26.7, 25.8, 20.5, 13.8, 6.4, 6.7, -10.6, -12.4, 6.2, 15.1, 19.8, 25.0, 26.0, 23.4, 19.3, 13.4, 5.8, 6.7, -6.37, -5.43, 2.83, 5.06, 14.32, 16.02, 16.17, 10.97, 7.37, 1.37, -0.08, -10.0, -8.25, 0.7, 4.29, 9.14, 13.9, 15.5, 16.75, 12.25, 5.75, 1.8, 0.15, -7.18, -6.58, 6.02, 12.52, 16.72, 22.72, 24.72, 23.32, 18.62, 12.52, 5.42, 6.22, -4.0, -3.2, 9.2, 14.4, 20.1, 26.3, 27.3, 25.6, 20.2, 14.7, 6.7, 8.4, -7.6, -8.1, 5.9, 13.6, 18.6, 25.0, 26.6, 25.4, 20.9, 14.0, 6.6, 7.5, -16.5, -13.9, -0.1, 12.8, 18.7, 26.7, 26.9, 24.9, 19.3, 10.1, 3.8, 0.6, -7.0, -6.1, 6.0, 13.1, 17.8, 22.1, 22.8, 23.1, 18.0, 12.1, 5.8, 4.7, -8.3, -7.1, 2.0, 6.2, 10.9, 15.8, 17.4, 17.8, 12.8, 7.2, 2.3, 1.5, -17.64, -14.24, -2.24, 10.16, 17.06, 26.76, 25.26, 23.76, 17.36, 8.56, 2.86, -0.64, -10.4, -11.0, 4.7, 12.7, 17.7, 22.3, 25.4, 24.2, 18.2, 12.2, 4.7, 5.1, -8.1, -8.89, 6.3, 14.7, 19.6, 25.4, 26.7, 24.8, 20.4, 14.3, 6.9, 7.7, -6.0, -5.3, 5.9, 13.4, 17.7, 22.7, 24.2, 24.1, 18.9, 12.5, 7.8, 7.1, -7.9, -8.1, 5.1, 12.5, 17.5, 23.7, 25.6, 24.3, 19.4, 13.0, 5.5, 6.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Yemen&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;, &quot;Yemen&quot;], &quot;legendgroup&quot;: &quot;Yemen&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Yemen&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.6, 25.6, 27.2, 28.8, 30.9, 32.9, 32.3, 31.4, 31.3, 27.8, 26.8, 25.6], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in Asia in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;c1bda612-1c74-440e-98c7-af19a7614d38&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;c1bda612-1c74-440e-98c7-af19a7614d38&quot;)) {                    Plotly.newPlot(                        &quot;c1bda612-1c74-440e-98c7-af19a7614d38&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Albania&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;, &quot;Albania&quot;], &quot;legendgroup&quot;: &quot;Albania&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Albania&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [5.48, 7.35, 9.35, 11.98, 19.52, 19.21, 21.94, 22.36, 20.72, 15.65, 12.36, 7.45, 3.68, 6.16, 8.63, 12.11, 19.77, 20.15, 22.68, 23.27, 20.77, 15.24, 11.88, 5.74, 5.11, 7.91, 9.51, 11.81, 19.31, 19.81, 22.01, 22.21, 20.11, 14.01, 11.81, 7.61, 7.55, 9.65, 10.65, 13.05, 19.35, 20.15, 21.45, 22.85, 20.85, 16.25, 14.65, 9.25], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Austria&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;, &quot;Austria&quot;], &quot;legendgroup&quot;: &quot;Austria&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Austria&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 6, 7, 10, 12, 3, 6, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 6, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-1.52, -1.1, 2.51, 8.77, 15.13, 15.54, 18.79, 17.32, 15.05, 9.91, 5.45, -4.47, -1.96, -0.65, 2.46, 10.42, 17.29, 17.2, 20.13, 18.26, 16.01, 11.62, 7.05, -3.76, -1.16, -0.76, 3.51, 8.68, 15.2, 14.43, 18.7, 16.47, 15.3, 10.01, 5.36, -5.44, -1.65, -1.2, 4.88, 8.96, 15.43, 14.58, 18.91, 16.24, 15.91, 10.42, 3.76, -6.64, -11.33, -15.59, -10.91, -8.94, -2.0, -2.18, 2.17, 0.29, 1.02, -1.51, -8.24, -15.36, -3.27, -2.06, 1.79, 8.17, 15.68, 15.51, 18.41, 16.33, 14.31, 9.68, 4.64, -4.11, -2.62, -1.6, 1.56, 9.22, 16.16, 16.69, 19.29, 17.65, 15.4, 10.8, 5.11, -4.69, -3.7, -3.68, 0.81, 6.86, 13.38, 13.28, 16.87, 14.61, 12.71, 7.92, 3.01, -6.36, -2.74, -1.42, 2.1, 9.87, 17.09, 16.74, 19.78, 17.68, 15.76, 11.72, 6.31, -4.31, -1.46, -1.22, 1.48, 7.6, 14.85, 14.28, 17.24, 15.87, 13.42, 9.48, 4.83, -4.74, -1.0, -0.2, 4.7, 8.41, 14.81, 14.59, 19.14, 17.06, 15.18, 9.11, 5.55, -5.41, -1.74, -1.99, 4.69, 8.05, 14.3, 14.01, 18.59, 15.51, 15.72, 11.21, 3.29, -7.07, -4.83, -5.58, 0.79, 4.33, 11.02, 10.34, 14.75, 12.36, 12.07, 6.72, 0.1, -9.67, -2.17, -1.46, 2.58, 9.06, 14.98, 15.68, 18.86, 17.47, 15.55, 9.79, 4.75, -5.53, 4.42, 14.79, 19.36, 10.49, -3.82, -4.84, 3.95, 5.89, -3.47, -9.87, -2.86, -2.48, 2.56, 7.73, 13.79, 13.34, 17.62, 15.45, 14.83, 9.4, 3.51, -7.59, -3.4, 7.12, 14.67, 8.43, 2.01, -8.59, -2.63, -3.29, -0.14, 4.69, 12.31, 12.49, 15.82, 14.1, 12.84, 9.22, 3.26, -5.66, -1.98, 1.58, 17.3, 17.99, 9.88, 4.89, -4.56, -2.88, -1.68, 1.82, 9.62, 16.62, 16.52, 19.72, 17.62, 15.42, 10.82, 6.02, -4.48, -3.9, -4.01, 2.39, 6.79, 14.09, 13.09, 17.49, 14.69, 14.69, 8.69, 2.29, -6.61, -3.2, -7.58, -2.31, 0.68, 7.95, 6.89, 10.98, 9.35, 7.4, -0.06, -7.9, -5.9, -3.04, 5.05, 4.86, 9.05, 6.23, 4.77, -2.53, -10.04, -3.83, -3.26, 2.9, 8.53, 15.86, 16.01, 19.23, 17.26, 15.75, 9.21, 3.65, -5.03, -1.1, -0.6, 3.5, 9.2, 15.7, 16.0, 19.4, 17.3, 15.6, 9.7, 5.3, -3.7, -3.6, -4.0, 0.9, 6.1, 13.4, 12.8, 16.6, 14.2, 13.0, 7.4, 1.8, -6.2, -4.19, -3.8, 1.2, 5.9, 13.2, 13.5, 17.3, 14.4, 13.0, 7.5, 2.1, -5.6, -5.6, -9.7, -2.5, 1.1, 8.3, 7.8, 12.4, 10.1, 9.1, 4.9, -2.09, -11.0, -2.7, -1.6, 2.1, 10.0, 17.1, 16.7, 20.1, 17.4, 15.4, 11.1, 6.4, -3.8, -4.82, -3.62, 0.88, 4.88, 13.48, 13.68, 17.78, 14.28, 12.98, 8.88, 2.68, -5.92, -1.8, -1.9, 2.1, 7.6, 13.7, 14.1, 17.9, 15.7, 14.0, 8.8, 4.4, -4.9, -1.49, -2.39, 1.21, 6.91, 13.41, 12.91, 17.21, 14.61, 14.01, 8.51, 3.61, -5.08, -1.8, 1.4, 8.0, 14.5, 14.5, 18.7, 15.7, 13.7, 8.6, 3.8, -5.6, -2.67, -2.47, 1.93, 6.43, 13.53, 14.03, 17.93, 15.03, 13.83, 8.33, 3.03, -4.57, -5.7, -9.0, -3.8, -0.7, 6.5, 6.4, 10.6, 8.2, 7.9, 5.0, -2.2, -10.0, -3.2, -4.0, -1.2, 4.8, 12.1, 12.9, 15.9, 13.6, 12.1, 7.1, 3.6, -6.1, -3.0, -1.8, 2.0, 10.3, 17.1, 16.6, 20.1, 17.3, 15.4, 10.7, 6.2, -4.19, -4.09, -4.69, -0.49, 4.61, 11.81, 11.91, 15.51, 12.81, 11.51, 6.71, 2.21, -6.89, -1.89, -1.39, 2.11, 9.91, 16.71, 16.61, 20.61, 18.21, 16.31, 12.11, 7.01, -3.59, -1.88, -0.98, 2.02, 9.72, 16.82, 16.62, 19.72, 17.72, 15.62, 11.02, 6.82, -3.78, -3.0, -2.09, 1.6, 7.4, 15.1, 15.2, 17.9, 15.6, 13.8, 8.3, 4.3, -3.7, -3.17, -2.27, 1.23, 8.43, 15.73, 15.33, 18.03, 15.73, 14.63, 10.43, 6.13, -4.07, -3.16, -4.36, 0.14, 3.84, 10.64, 9.84, 13.64, 11.94, 11.44, 6.74, 1.74, -7.36, -3.63, -2.63, 1.77, 8.27, 16.17, 16.37, 18.57, 16.17, 14.27, 8.67, 3.97, -4.33, -3.35, -3.65, -0.25, 6.05, 13.05, 12.95, 17.15, 14.05, 13.15, 9.05, 2.55, -6.45, -3.46, -1.96, 2.24, 9.14, 16.24, 16.34, 19.14, 16.64, 14.54, 9.24, 5.74, -4.26, -1.7, -1.1, 1.6, 9.6, 16.5, 16.1, 19.4, 17.4, 15.0, 9.9, 6.8, -3.8, -1.98, -1.58, 1.22, 9.02, 16.32, 16.02, 18.82, 16.42, 14.32, 9.52, 5.52, -4.08, -2.9, -2.3, 1.7, 8.4, 15.9, 16.2, 18.8, 16.1, 14.2, 9.0, 4.1, -3.9, -4.1, -5.4, 0.8, 5.2, 12.2, 11.6, 15.6, 13.0, 13.1, 6.5, 0.6, -7.4, -1.25, -1.85, 1.35, 7.75, 14.65, 14.55, 18.15, 15.75, 13.95, 8.85, 4.95, -4.75, -4.1, -8.6, -3.4, -0.8, 6.9, 5.4, 10.1, 7.5, 8.8, 6.1, -1.5, -8.39, -4.17, -6.97, -4.17, 1.43, 9.13, 8.33, 11.93, 9.53, 8.73, 5.83, 1.03, -8.27, -2.88, -2.18, 0.82, 9.02, 15.92, 16.02, 19.12, 16.82, 14.82, 9.92, 4.92, -4.78], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Belgium&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;, &quot;Belgium&quot;], &quot;legendgroup&quot;: &quot;Belgium&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Belgium&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [4.75, 0.73, 4.44, 8.54, 13.71, 15.14, 18.58, 17.47, 15.29, 13.38, 6.48, -0.44, 4.35, 1.17, 2.82, 6.31, 11.26, 13.26, 16.31, 16.5, 14.73, 12.95, 7.04, 0.05, 4.82, 0.76, 4.21, 8.54, 13.57, 15.69, 18.59, 18.0, 14.94, 13.1, 7.37, -0.11, 5.21, 1.43, 4.28, 8.45, 13.49, 15.55, 18.25, 17.82, 15.45, 13.17, 6.84, 0.07, 4.66, 0.53, 4.59, 7.9, 13.18, 14.39, 18.18, 17.39, 14.56, 13.42, 6.24, -0.72, 4.6, 0.16, 3.59, 8.14, 13.78, 15.33, 18.67, 17.83, 14.34, 12.71, 6.71, -1.22, 4.38, -0.19, 3.9, 8.04, 13.18, 14.64, 18.37, 17.07, 14.64, 13.13, 6.17, -1.09, 4.02, -0.28, 4.02, 8.04, 13.52, 14.68, 18.48, 17.21, 14.51, 12.98, 6.12, -1.27, 3.9, 0.11, 4.92, 7.64, 12.62, 13.72, 18.02, 16.53, 13.57, 11.64, 5.38, -1.75, 2.54, -0.97, 4.17, 7.27, 12.27, 14.06, 18.03, 16.39, 14.01, 10.18, 4.94, -2.8, 5.21, 1.34, 4.79, 8.5, 13.39, 15.24, 18.12, 17.51, 15.16, 12.81, 6.97, 0.11, 5.35, 1.79, 4.48, 7.92, 12.3, 14.12, 17.3, 17.38, 15.16, 13.41, 7.14, 0.92, 1.24, -2.93, 2.23, 5.48, 10.72, 12.01, 16.4, 14.65, 12.6, 10.82, 3.23, -4.0, 2.54, -1.79, 2.62, 6.23, 11.63, 13.01, 16.93, 15.45, 12.94, 11.92, 4.53, -2.86], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Bosnia and Herzegovina&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;, &quot;Bosnia and Herzegovina&quot;], &quot;legendgroup&quot;: &quot;Bosnia and Herzegovina&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Bosnia and Herzegovina&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-0.8, 1.37, 4.24, 9.89, 17.37, 17.42, 18.84, 18.63, 16.73, 10.9, 11.55, -3.24, -0.36, 0.1, 4.01, 7.63, 14.85, 14.29, 16.69, 17.35, 15.28, 9.87, 7.0, -3.27, -1.57, 1.98, 4.46, 9.29, 17.68, 16.97, 18.58, 18.74, 16.92, 10.44, 9.59, -2.92, 5.24, 6.01, 9.52, 13.55, 20.18, 20.17, 23.94, 23.59, 21.42, 17.58, 12.55, 3.48, -7.6, -5.91, -4.49, -2.25, 6.56, 5.62, 7.32, 8.2, 6.89, 2.22, -0.33, -7.07, -1.53, 2.13, 5.07, 9.02, 17.24, 16.1, 17.9, 18.16, 16.65, 9.94, 9.0, -3.35, -7.46, -5.82, -4.51, -1.95, 6.61, 5.68, 7.46, 8.27, 6.97, 2.49, -0.32, -6.78, -1.0, 1.2, 3.9, 8.8, 17.0, 15.9, 17.7, 17.7, 16.2, 9.5, 8.7, -4.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Belarus&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;, &quot;Belarus&quot;], &quot;legendgroup&quot;: &quot;Belarus&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Belarus&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 12, 1, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-13.94, -9.28, -6.77, 5.39, 11.16, 14.66, 16.48, 15.3, 10.39, 5.33, 2.46, -9.05, -14.22, 15.51, 10.82, 5.67, 2.72, -9.12, -12.51, -8.54, -7.38, 4.7, 11.36, 14.5, 16.95, 15.2, 10.45, 5.57, 2.67, -8.97, -14.36, 15.77, 10.44, 5.11, 2.8, -8.89, -13.62, 15.03, 10.42, 4.91, 2.82, -8.81, -13.72, -9.04, -6.39, 5.49, 11.94, 15.33, 17.19, 15.68, 10.57, 5.43, 2.86, -8.63, -14.01, -10.06, -5.92, 6.06, 12.19, 15.29, 17.29, 16.19, 10.5, 5.67, 3.01, -8.46, -9.22, -4.96, -4.42, -1.52, 4.77, 12.08, 15.59, 18.89, 17.84, 14.9, 9.99, 5.62, -6.64, -7.8, -5.62, -2.76, 5.57, 13.21, 15.47, 17.92, 16.91, 13.45, 8.49, 4.25, -10.3, -9.74, -9.1, -13.91, 15.54, 11.08, 5.31, 3.26, -8.63, -15.38, -10.28, -7.35, 4.96, 11.52, 14.43, 16.48, 15.63, 10.05, 5.07, 2.77, -8.64, -15.62, 14.32, 15.19, 10.53, 4.88, 2.86, -8.92, -10.73, -7.99, -5.22, 4.95, 12.88, 15.36, 17.25, 16.07, 12.13, 6.87, 3.99, -10.38, -11.48, -8.18, -5.62, 5.27, 13.04, 15.36, 17.41, 15.9, 11.6, 6.27, 3.68, -9.05, 6.54, -9.12, -22.11, -9.57, -6.25, 5.03, 11.96, 14.79, 17.17, 15.78, 11.04, 5.78, 3.06, -9.06, -13.7, 15.65, 11.06, 5.37, 3.55, -8.89, -13.49, 15.82, 11.49, 5.55, 3.44, -8.43, -15.53, -10.37, -7.68, 5.0, 12.0, 14.78, 17.32, 15.78, 10.36, 5.01, 2.73, -8.96, -14.64, 15.43, 11.08, 5.12, 3.18, -8.99, -14.34, 16.16, 10.75, 5.22, 3.4, -9.19, -15.14, -10.26, -7.66, 4.85, 12.09, 14.82, 17.14, 16.51, 10.22, 4.78, 3.43, -9.46, -9.22, -9.58, -11.31, -8.43, -5.03, 5.07, 13.03, 15.61, 17.58, 15.95, 11.84, 6.16, 3.99, -8.81, -13.04, -8.74, -5.94, 5.57, 12.75, 15.67, 16.99, 15.92, 11.59, 5.64, 3.9, -8.63, -13.98, -8.93, -6.75, 5.65, 12.44, 15.19, 17.29, 15.72, 11.04, 5.49, 3.65, -8.85, -14.17, 16.45, 11.6, 6.33, 4.42, -8.97, -14.31, 16.62, 11.65, 5.78, 3.89, -9.05, -8.28, -5.7, -2.91, 6.93, 14.82, 16.56, 18.58, 17.03, 13.51, 8.11, 5.38, -8.66, -10.53, -7.49, -4.6, 6.06, 13.72, 16.17, 17.25, 16.45, 12.12, 6.68, 4.56, -8.55, -11.55, -7.36, -4.35, 6.65, 13.92, 16.41, 17.49, 16.69, 11.87, 6.31, 4.61, -8.52, -12.17, -7.92, -6.03, 5.74, 13.49, 16.43, 17.93, 16.67, 11.9, 6.14, 4.38, -8.67, -12.68, -8.05, -5.59, 6.65, 13.82, 16.36, 18.18, 17.18, 12.08, 6.78, 4.53, -8.18, -13.54, -8.52, -6.99, 6.35, 13.54, 16.57, 18.47, 17.57, 11.78, 6.43, 4.7, -8.41, -13.36, 16.85, 11.9, 5.94, 4.48, -8.33], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Bulgaria&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;, &quot;Bulgaria&quot;], &quot;legendgroup&quot;: &quot;Bulgaria&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Bulgaria&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-8.15, -2.61, 0.05, 10.05, 19.46, 19.44, 20.3, 21.69, 17.73, 10.12, 8.94, -1.49, -8.31, -2.5, -0.03, 9.36, 18.48, 18.86, 19.39, 21.31, 17.51, 10.94, 9.81, -0.49, -3.96, 2.58, 5.09, 10.61, 19.75, 20.98, 21.83, 23.27, 19.54, 12.48, 9.19, 4.22, -2.15, 3.69, 4.63, 10.77, 19.6, 21.03, 21.51, 23.51, 20.33, 13.72, 10.68, 5.23, 0.38, 6.28, 7.57, 12.17, 21.16, 21.81, 23.06, 24.36, 21.81, 14.81, 10.55, 5.05, -7.4, -0.61, 1.84, 10.82, 19.96, 20.17, 20.46, 22.18, 18.46, 11.76, 11.1, 0.16, -6.41, 0.0, 1.02, 8.42, 17.86, 19.05, 18.27, 21.1, 17.48, 10.25, 10.53, 1.34, -3.18, 3.34, 4.33, 9.42, 18.32, 18.24, 18.83, 20.48, 18.17, 11.21, 8.24, 2.12, -6.23, -1.68, 0.5, 10.61, 18.99, 18.96, 20.26, 21.13, 17.93, 10.56, 7.86, -0.98, -6.2, -1.4, 0.4, 10.6, 20.1, 19.2, 19.8, 21.7, 17.5, 11.3, 10.5, -1.4, -4.99, -0.69, 1.41, 11.61, 20.41, 22.51, 18.41, 11.81, 9.01, -0.09, -2.27, 1.91, 3.13, 9.77, 17.33, 20.73, 21.4, 23.2, 20.05, 14.04, 11.51, 4.96, -9.0, -6.8, -6.0, -3.7, 6.2, 5.2, 5.9, 8.3, 6.0, 1.2, 0.0, -6.1, -4.5, 1.66, 3.03, 8.86, 17.8, 17.8, 18.12, 20.32, 17.41, 10.58, 8.45, 0.68, -2.99, 2.91, 5.01, 11.41, 20.31, 20.81, 21.81, 22.81, 19.41, 12.01, 8.81, 4.21, -9.7, -7.3, -7.3, -4.69, 5.0, 4.8, 5.0, 7.4, 5.1, 0.4, -0.2, -6.4, -2.09, 2.7, 3.7, 9.1, 17.5, 20.8, 20.8, 22.4, 19.8, 14.0, 11.5, 5.8, -3.28, 4.41, 4.01, 9.59, 18.88, 20.24, 20.93, 22.05, 18.92, 11.67, 9.9, 4.42, -5.1, 0.7, 1.8, 9.5, 17.8, 19.2, 19.4, 21.2, 17.6, 11.1, 10.2, 1.9, -7.11, -1.11, 1.29, 11.49, 20.89, 19.79, 20.69, 22.39, 18.39, 11.09, 10.39, -0.51, -11.5, -9.8, -8.3, -7.1, 2.4, 2.0, 2.3, 4.9, 3.3, -0.9, -2.8, -9.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Cyprus&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;, &quot;Cyprus&quot;], &quot;legendgroup&quot;: &quot;Cyprus&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Cyprus&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [10.65, 11.85, 14.65, 15.65, 23.05, 27.05, 28.05, 28.65, 27.05, 16.95, 14.25], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Denmark&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;, &quot;Denmark&quot;], &quot;legendgroup&quot;: &quot;Denmark&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Denmark&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [0.7, -3.18, -0.02, 5.67, 8.37, 14.62, 16.6, 17.6, 14.25, 10.55, 4.45, -2.29, 0.97, -2.01, 0.52, 5.84, 9.82, 15.09, 17.67, 18.31, 15.27, 11.22, 5.5, -2.34, 0.44, -1.28, 0.0, 5.96, 10.49, 15.69, 17.76, 18.14, 15.33, 10.84, 5.16, 0.08, -1.64, 0.15, 6.12, 10.83, 16.64, 18.23, 18.58, 15.21, 10.66, 5.01, -1.3, -0.42, -1.26, -0.12, 4.22, 8.53, 14.37, 17.79, 17.61, 15.15, 10.22, 5.76, -1.18, -0.21, -1.15, 0.0, 4.33, 8.64, 14.49, 17.92, 17.73, 15.27, 10.34, 5.88, -0.93, 0.54, -3.02, -0.38, 5.72, 9.33, 14.46, 16.76, 17.33, 14.18, 10.77, 3.64, -2.87, -0.29, -3.5, -1.32, 4.79, 9.41, 14.25, 16.73, 16.66, 13.69, 9.4, 3.43, -2.4, 0.1, -3.15, -0.69, 5.03, 9.22, 13.65, 16.1, 16.65, 13.27, 10.23, 3.49, -3.54, -0.24, -2.76, -0.83, 5.16, 9.77, 14.31, 16.58, 16.62, 13.86, 10.3, 4.28, -2.92, 0.24, -1.28, -0.24, 5.04, 9.3, 14.98, 17.15, 18.08, 15.03, 11.08, 5.56, -1.01, 0.64, -2.56, 0.1, 5.13, 7.7, 14.39, 15.94, 18.1, 14.15, 10.53, 5.05, -1.58, -0.36, -2.08, -0.8, 5.16, 9.69, 14.89, 16.96, 17.34, 14.53, 10.06, 4.36, 3.88, 0.38, 2.18, 4.98, 6.18, 9.58, 10.38, 11.18, 8.58, 7.68, 1.08, 3.48, -0.34, -3.64, -1.39, 5.15, 8.67, 14.15, 15.77, 16.56, 13.5, 9.61, 2.8, -2.56, -0.55, -1.55, 0.05, 4.04, 8.76, 14.92, 17.42, 17.5, 14.81, 10.11, 5.82, -1.58, 1.0, -2.7, -0.3, 5.7, 9.5, 14.9, 16.6, 17.4, 14.0, 10.8, 4.4, -2.3, -0.1, -1.3, 0.0, 3.6, 7.8, 14.0, 17.2, 17.4, 14.4, 10.1, 6.0, -1.3, -0.1, -1.3, -0.2, 5.0, 9.6, 15.1, 17.1, 17.6, 14.7, 10.7, 5.3, -2.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Ireland&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;, &quot;Ireland&quot;], &quot;legendgroup&quot;: &quot;Ireland&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Ireland&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 1, 2, 3, 4, 6, 7, 8, 9, 10, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [6.2, 3.18, 6.3, 8.25, 10.21, 12.7, 14.35, 14.37, 13.1, 13.21, 6.56, 6.75, 5.51, 1.8, 4.77, 7.85, 10.45, 12.99, 15.45, 14.8, 13.07, 12.85, 4.17, 4.57, 4.81, 0.86, 3.85, 6.91, 9.87, 12.26, 15.25, 14.81, 12.34, 12.19, 3.66, 3.74, 5.49, 2.82, 4.08, 7.24, 9.17, 12.72, 14.43, 14.51, 12.96, 12.8, 6.0, 5.87, 4.17, 1.33, 4.05, 7.35, 9.45, 12.56, 13.96, 13.88, 12.21, 11.96, 4.96, 5.1, 5.27, 4.36, 7.9, 10.53, 13.33, 15.95, 15.17, 13.26, 13.15, 4.6, 0.68, 3.99, 6.97, 9.78, 12.64, 15.29, 14.48, 12.26, 12.08, 5.17, 2.08, 4.63, 7.57, 9.97, 12.45, 13.95, 14.13, 12.62, 12.44, 5.64, 5.73, 4.89, 1.32, 4.06, 7.34, 10.19, 12.76, 14.05, 14.35, 12.49, 12.58, 4.91, 4.99, 7.12, 10.3, 4.48, 1.26, 3.8, 7.36, 12.55, 14.91, 14.43, 12.36, 12.23, 6.61, 3.0, 6.06, 8.74, 13.51, 15.79, 15.1, 13.9, 13.74, 5.92, 6.31, 5.23, 1.25, 4.18, 7.48, 10.44, 13.1, 15.72, 15.31, 12.91, 12.54, 4.1, 4.27, 5.21, 1.45, 4.47, 7.56, 10.15, 12.69, 15.15, 14.5, 12.79, 12.56, 4.19, 4.34, 5.77, 2.68, 5.28, 8.17, 10.96, 13.84, 15.43, 15.21, 13.74, 13.4, 5.45, 5.8, 6.38, 2.99, 5.44, 8.66, 11.16, 14.05, 16.15, 15.76, 14.38, 13.67, 6.39, 3.15, 5.68, 8.28, 10.54, 12.93, 15.01, 15.21, 14.07, 13.37, 6.44, 6.37, 4.85, 1.73, 4.84, 7.55, 9.95, 12.55, 15.03, 14.48, 12.97, 12.11, 4.63, 4.17, 5.5, 2.0, 14.28, 12.81, 12.33, 6.66, 3.16, 5.65, 8.29, 10.3, 12.97, 15.47, 15.4, 14.01, 13.41, 6.49, 5.92, 5.51, 2.11, 5.01, 8.04, 10.8, 13.31, 15.32, 14.73, 13.6, 13.09, 5.22, 5.44, 5.45, 1.27, 4.22, 7.4, 10.49, 12.95, 15.78, 15.06, 12.92, 12.8, 4.41, 4.41, 5.04, 1.57, 4.67, 7.86, 10.32, 12.91, 15.09, 14.3, 12.83, 12.64, 5.02, 4.86, 4.5, 0.93, 3.96, 7.35, 9.96, 12.92, 15.22, 14.51, 12.55, 12.09, 3.91, 3.86, 5.24, 2.89, 5.01, 7.8, 10.07, 12.55, 13.81, 14.06, 12.87, 12.58, 6.24, 6.31, 5.58, 2.08, 5.07, 8.17, 10.6, 13.24, 15.94, 15.28, 13.52, 12.67, 4.47, 4.39], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Estonia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;, &quot;Estonia&quot;], &quot;legendgroup&quot;: &quot;Estonia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Estonia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 10, 11, 12, 1, 9, 10, 11, 12, 11, 12, 10, 11, 12, 12, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-10.18, -9.02, -6.96, 3.6, 8.05, 14.59, 16.65, 15.28, 10.77, 6.13, 0.83, -6.58, -10.94, -8.87, -8.19, 3.35, 7.88, 13.21, 16.63, 14.75, 10.98, 6.05, 0.92, -6.06, -5.1, -7.04, -5.16, 2.13, 6.28, 13.03, 16.42, 16.73, 12.16, 7.56, 3.53, -2.95, 6.89, 2.53, -4.28, 5.97, 1.16, -6.48, -8.18, 12.02, 8.09, 2.81, -4.98, 1.09, -6.92, 6.23, 2.27, -4.81, -4.12, 11.37, 6.96, -6.95, -10.75, -8.46, -7.7, 2.87, 9.24, 15.32, 16.97, 16.32, 10.83, 6.18, 1.68, -7.3, -12.47, -9.08, -7.34, 4.6, 9.81, 14.6, 17.03, 15.16, 11.13, 5.86, 0.66, -8.64, -12.66, -8.59, -6.85, 4.71, 10.11, 14.93, 17.34, 15.48, 11.1, 5.65, 1.37, -8.94, -5.52, -6.94, -5.64, 2.79, 7.89, 13.61, 17.12, 16.84, 12.64, 8.32, 4.27, -3.24], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Finland&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;, &quot;Finland&quot;], &quot;legendgroup&quot;: &quot;Finland&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Finland&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-8.38, -9.18, -6.04, 3.33, 8.24, 15.57, 16.81, 16.61, 10.46, 5.99, 0.93, -6.14, -13.91, -13.32, -7.94, 1.75, 6.96, 13.95, 15.16, 14.85, 7.67, 3.27, -2.06, -10.65, -10.11, -10.48, -7.18, 3.07, 7.94, 14.11, 15.94, 15.2, 9.22, 4.87, -1.09, -9.03, -14.79, -18.63, -11.55, -4.34, 1.73, 10.49, 13.62, 12.93, 5.24, 1.06, -6.73, -11.71, -13.34, -16.33, -10.18, -1.33, 3.9, 11.7, 14.55, 14.8, 7.46, 3.97, -2.6, -8.62, -4.39, -7.78, -7.45, 2.69, 6.96, 13.03, 15.49, 15.59, 9.73, 6.2, 1.17, -5.0, -2.88, -7.34, -7.49, 1.69, 5.09, 13.63, 16.26, 18.24, 11.84, 7.69, 3.13, -1.77, -2.27, -6.12, -4.59, 2.09, 5.84, 13.65, 16.0, 18.37, 11.35, 7.51, 2.88, -1.82, -5.39, -8.82, -7.88, 1.39, 5.22, 13.93, 15.81, 17.81, 11.44, 7.14, 2.85, -3.39, -7.93, -9.1, -7.2, 3.21, 8.41, 15.04, 16.57, 16.66, 9.57, 5.63, -0.35, -7.44, -7.72, -8.96, -6.89, 3.74, 8.62, 15.11, 16.79, 16.63, 9.79, 5.67, -0.07, -7.34, -7.04, -8.91, -6.57, 3.56, 8.88, 15.97, 17.3, 17.72, 10.38, 6.37, 0.54, -6.77, -7.55, -8.72, -6.82, 3.59, 8.79, 15.42, 16.95, 17.04, 9.95, 6.02, -0.01, -7.06, -9.69, -9.91, -7.32, 3.24, 8.47, 14.79, 15.85, 15.52, 9.45, 4.94, -0.52, -8.16, -6.13, -9.07, -7.86, 2.3, 6.97, 14.76, 15.85, 17.2, 10.58, 6.49, 1.8, -4.91, -8.37, -9.27, -7.19, 3.18, 8.68, 15.11, 16.33, 16.05, 9.89, 5.32, -0.01, -7.44, -8.82, -9.61, -8.55, 3.24, 8.79, 15.2, 16.17, 15.8, 9.6, 5.35, -0.1, -8.28, -9.73, -10.14, -7.18, 3.38, 8.61, 14.93, 15.99, 15.66, 9.59, 5.09, -0.51, -8.12, -9.82, -9.79, -6.52, 3.48, 8.8, 15.58, 16.75, 16.4, 9.91, 5.18, -0.38, -7.2, -6.9, -10.07, -8.23, 1.42, 6.09, 14.91, 15.94, 17.72, 11.03, 6.34, 1.74, -4.91, -7.77, -10.77, -8.87, 0.97, 6.0, 14.64, 16.04, 17.69, 10.9, 6.39, 1.78, -4.85, -9.14, -9.87, -7.27, 2.8, 7.69, 14.64, 16.27, 15.92, 9.65, 5.29, -0.07, -7.1, -8.54, -8.88, -5.82, 3.71, 8.72, 15.47, 16.95, 16.77, 10.44, 5.88, 0.67, -6.45, -8.99, -9.55, -7.28, 3.45, 9.04, 15.66, 16.72, 16.58, 10.18, 5.87, 0.2, -7.49, -9.63, -9.52, -7.76, 3.04, 8.19, 14.8, 16.36, 15.59, 10.07, 5.47, 0.19, -7.08, -10.6, -10.77, -8.88, 2.74, 7.88, 13.56, 15.06, 13.9, 9.13, 4.64, -0.92, -8.87, -9.02, -9.2, -6.14, 3.39, 8.39, 15.15, 16.63, 16.45, 10.12, 5.52, 0.35, -6.78, -9.63, -9.69, -7.94, 2.86, 8.01, 14.62, 16.18, 15.4, 9.89, 5.34, 0.02, -7.26, -8.86, -9.4, -7.92, 3.57, 8.41, 14.53, 16.27, 15.29, 10.25, 5.92, 0.6, -6.98, -9.56, -9.58, -7.05, 3.3, 8.47, 14.81, 16.23, 15.39, 9.84, 5.29, 0.07, -7.26, -10.12, -10.1, -6.55, 3.09, 8.06, 14.66, 16.03, 15.35, 9.3, 4.86, -0.59, -7.81, -10.46, -9.93, -8.56, 3.39, 8.64, 15.1, 15.5, 14.85, 9.64, 5.07, -0.04, -6.95, -10.69, -10.6, -7.7, 3.16, 8.56, 15.06, 16.2, 15.37, 9.92, 5.43, -0.4, -8.0, -10.72, -10.47, -7.54, 3.32, 8.72, 15.22, 16.36, 15.53, 10.09, 5.55, -0.34, -7.86, -10.13, -11.17, -9.21, 1.51, 6.93, 15.0, 16.23, 17.47, 10.71, 6.19, 1.47, -5.09, -10.37, -10.59, -7.95, 3.71, 8.71, 15.12, 16.46, 15.73, 10.13, 5.54, 0.38, -6.75, -8.82, -9.81, -6.92, 3.12, 8.17, 13.69, 15.56, 16.28, 9.85, 5.55, -0.96, -7.96, -6.94, -9.05, -7.48, 2.19, 7.33, 13.3, 15.96, 17.44, 10.7, 6.71, 0.91, -5.93, -7.42, -9.23, -6.88, 3.39, 8.59, 14.86, 16.31, 16.99, 9.93, 6.16, -0.21, -7.34, -7.15, -8.82, -6.53, 3.23, 7.86, 14.15, 16.08, 16.94, 10.53, 6.62, 0.22, -6.47, -6.94, -9.05, -7.26, 2.19, 7.33, 13.31, 15.96, 17.44, 10.7, 6.71, 0.91, -5.93, -8.38, -9.69, -6.77, 3.02, 8.31, 15.02, 16.24, 16.44, 9.37, 5.34, -0.97, -8.18, -10.54, -10.53, -7.92, 2.79, 8.01, 14.19, 16.07, 15.31, 8.96, 4.41, -1.77, -9.97, -9.96, -10.85, -7.51, 3.03, 8.16, 13.99, 15.62, 15.69, 9.36, 5.05, -1.76, -9.26, -10.18, -10.85, -7.51, 3.03, 8.16, 13.99, 15.62, 15.69, 9.36, 5.05, -1.74, -9.26, -11.36, -10.79, -7.11, 2.93, 8.0, 14.6, 16.31, 15.57, 9.46, 4.81, -1.37, -9.72, -10.26, -10.73, -7.34, 2.86, 8.01, 14.66, 16.39, 15.65, 9.11, 4.78, -1.09, -8.97, -10.75, -10.43, -6.34, 3.8, 8.93, 15.56, 16.96, 16.53, 9.57, 4.99, -0.74, -8.24, -10.94, -10.54, -7.73, 3.11, 8.29, 14.68, 15.77, 15.03, 9.26, 4.69, -1.2, -8.6, -11.19, -11.51, -7.52, 3.35, 8.05, 14.17, 16.12, 15.16, 9.81, 5.0, -0.94, -9.81, -11.33, -10.97, -7.89, 3.31, 8.53, 14.54, 16.05, 15.03, 9.5, 4.73, -0.64, -9.2, -11.24, -10.74, -6.82, 2.99, 8.47, 15.13, 16.57, 16.45, 9.41, 4.76, -1.06, -9.14, -12.34, -11.27, -7.68, 3.14, 8.55, 14.63, 15.81, 15.08, 8.94, 4.33, -1.14, -8.27, -12.01, -11.43, -8.19, 2.95, 8.03, 14.34, 15.52, 14.65, 8.93, 4.37, -1.3, -8.27, -11.74, -11.31, -7.04, 2.98, 8.06, 14.32, 15.86, 15.18, 8.88, 4.53, -1.23, -8.89, -12.07, -11.62, -8.19, 2.75, 7.93, 14.98, 16.59, 16.43, 9.7, 5.22, -0.33, -8.09, -11.94, -11.71, -7.24, 2.78, 7.87, 14.12, 15.66, 14.99, 8.68, 4.33, -1.37, -9.08, -12.91, -10.81, -7.75, 2.59, 8.27, 14.53, 16.14, 15.66, 9.11, 4.38, -1.22, -8.81, -10.72, -10.94, -8.3, 3.36, 8.36, 14.76, 16.11, 15.38, 9.78, 5.19, 0.15, -6.99, -12.33, -10.8, -7.82, 3.52, 8.7, 14.71, 15.69, 14.76, 9.32, 4.87, -0.83, -8.49, -11.8, -10.62, -8.02, 3.37, 8.42, 14.33, 15.72, 14.78, 9.43, 4.8, -0.3, -8.06, -11.92, -10.51, -6.69, 3.39, 8.7, 15.19, 16.42, 16.26, 9.3, 4.84, -0.49, -7.63, -12.21, -10.98, -6.94, 3.17, 8.38, 14.74, 16.25, 15.48, 9.25, 4.71, -0.8, -8.42, -14.04, -12.02, -7.51, 2.45, 7.86, 14.33, 15.87, 15.8, 8.81, 4.18, -1.54, -8.5, -15.01, -12.63, -7.88, 2.35, 7.45, 14.08, 15.53, 15.48, 8.95, 4.46, -1.18, -8.53, -16.97, -14.48, -8.7, 1.27, 6.22, 12.69, 14.55, 14.27, 7.86, 3.26, -2.41, -9.57, -7.65, -8.71, -6.91, 2.19, 7.62, 13.51, 15.37, 17.1, 10.13, 6.35, 0.38, -6.3, -10.7, -10.83, -6.62, 2.23, 7.5, 14.36, 15.8, 16.34, 8.31, 4.09, -2.44, -9.21, -10.69, -10.17, -6.73, 2.6, 7.62, 14.31, 15.91, 15.76, 9.04, 4.75, -1.3, -9.19, -11.32, -11.59, -7.53, 1.37, 7.38, 13.25, 14.81, 15.09, 7.76, 3.51, -2.89, -9.69, -11.68, -11.38, -7.54, 1.66, 6.94, 13.57, 15.2, 15.21, 7.85, 3.48, -2.58, -10.06, -11.74, -11.09, -6.68, 1.89, 7.42, 14.02, 15.87, 15.95, 7.9, 3.75, -2.75, -9.67, -12.51, -11.9, -7.47, 2.19, 7.59, 14.16, 16.04, 15.55, 8.54, 4.13, -1.54, -10.2, -12.03, -11.44, -8.05, 2.42, 8.05, 14.89, 16.12, 15.78, 9.29, 4.66, -1.11, -9.59, -12.41, -11.73, -7.09, 2.07, 7.21, 13.69, 15.09, 14.76, 8.08, 3.69, -1.85, -10.37, -12.83, -12.04, -7.47, 2.19, 7.58, 14.16, 16.04, 15.55, 8.54, 4.13, -1.54, -10.2, -13.1, -12.42, -6.6, 2.79, 8.06, 15.02, 16.03, 15.65, 8.28, 4.25, -1.13, -9.49, -13.24, -12.48, -6.65, 2.73, 8.0, 14.71, 15.71, 15.33, 7.96, 3.93, -1.45, -9.67, -13.56, -12.85, -7.06, 2.08, 7.26, 13.62, 15.04, 14.95, 7.95, 3.48, -1.71, -10.09, -14.52, -12.78, -7.15, 2.03, 6.96, 13.64, 15.03, 15.14, 7.98, 3.56, -2.01, -9.67, -14.86, -13.4, -7.32, 2.09, 6.89, 14.07, 15.86, 15.77, 8.54, 4.01, -1.21, -9.29, -14.69, -13.46, -7.15, 2.26, 7.06, 14.24, 16.03, 15.94, 8.71, 4.18, -1.04, -9.12, -16.23, -13.55, -7.82, 1.65, 6.57, 13.99, 15.56, 15.72, 8.87, 4.26, -1.36, -9.0, -16.88, -13.77, -8.48, 1.48, 6.92, 13.4, 15.54, 14.99, 8.36, 3.81, -1.65, -9.82, -17.57, -14.46, -9.28, 1.26, 6.37, 12.46, 15.03, 13.56, 7.82, 3.46, -1.6, -10.3, -8.98, -12.64, -7.9, 1.5, 6.43, 13.05, 15.37, 15.57, 8.67, 4.7, -2.53, -7.9, -6.78, -12.92, -8.29, -1.34, 2.35, 11.41, 15.3, 16.54, 9.75, 6.09, 0.06, -3.93, -8.34, -11.2, -6.64, 1.71, 6.48, 13.9, 16.12, 16.07, 9.13, 5.33, -1.67, -6.85, -8.34, -11.29, -6.64, 1.71, 6.48, 13.91, 16.12, 16.07, 9.13, 5.33, -1.67, -6.85, -10.26, -13.14, -7.97, 2.25, 6.99, 13.14, 14.99, 14.81, 8.16, 4.1, -2.56, -9.12, -10.99, -12.95, -8.61, 1.49, 6.83, 12.66, 14.27, 14.49, 7.57, 3.55, -2.83, -9.54, -10.4, -11.95, -7.31, 2.61, 7.54, 13.1, 15.1, 15.15, 8.22, 4.29, -1.84, -8.75, -11.96, -12.14, -8.23, 1.53, 6.73, 12.51, 14.4, 13.93, 7.38, 3.68, -2.03, -10.45, -11.76, -12.31, -8.16, 1.58, 6.88, 12.47, 14.55, 14.33, 7.47, 3.48, -2.23, -9.34, -14.8, -14.14, -8.86, 0.85, 6.0, 12.69, 13.63, 13.51, 7.21, 2.77, -2.0, -10.74, -16.02, -14.48, -8.19, 1.2, 6.77, 14.78, 16.44, 16.59, 8.36, 3.94, -1.6, -10.38, -15.03, -13.53, -6.66, 1.6, 6.91, 14.58, 16.06, 16.44, 8.39, 4.14, -1.57, -9.9, -15.7, -14.63, -8.6, 0.72, 6.54, 13.93, 15.47, 15.02, 8.08, 4.1, -1.61, -10.46, -17.41, -15.5, -8.69, 1.29, 5.96, 12.7, 15.15, 14.36, 7.7, 3.23, -2.14, -10.07, -16.95, -14.2, -8.94, 1.23, 6.12, 13.72, 15.65, 15.2, 7.98, 3.63, -2.01, -10.01, -18.57, -16.17, -9.35, -0.1, 5.48, 12.52, 14.63, 13.75, 7.09, 3.01, -2.28, -11.28, -17.19, -14.3, -8.37, 0.93, 6.25, 12.66, 15.32, 14.57, 7.56, 2.99, -2.32, -10.42, -17.48, -15.33, -9.05, 0.17, 5.8, 13.22, 14.97, 13.93, 7.23, 3.06, -2.22, -10.86, -17.62, -15.31, -9.03, 0.19, 5.82, 13.24, 15.0, 13.95, 7.25, 3.08, -2.2, -10.84, -9.26, -12.37, -8.21, -0.4, 4.83, 12.21, 15.23, 16.21, 9.49, 5.59, -0.94, -6.65, -9.17, -12.98, -8.35, -1.63, 3.15, 11.68, 15.34, 16.57, 9.67, 5.58, -0.72, -6.23, -11.12, -13.44, -8.13, 0.75, 5.57, 12.27, 14.71, 14.93, 7.89, 3.7, -2.98, -9.0, -8.22, -12.63, -8.79, -2.97, 1.9, 10.15, 14.59, 16.22, 9.32, 5.8, 0.27, -4.46, -8.13, -12.46, -8.62, -2.8, 2.07, 10.32, 14.76, 16.39, 9.49, 5.97, 0.44, -4.29, -13.37, -14.07, -9.09, 0.23, 6.25, 12.28, 14.54, 15.05, 7.22, 3.21, -2.93, -10.08, -13.65, -14.17, -9.55, 0.26, 6.41, 12.8, 14.89, 15.05, 7.46, 3.47, -2.62, -10.23, -13.83, -14.17, -8.73, -0.2, 5.67, 12.28, 14.57, 14.99, 6.77, 2.99, -3.2, -10.34, -16.73, -15.4, -10.87, -1.14, 4.75, 12.2, 14.46, 13.79, 6.73, 2.95, -2.72, -11.64, -15.26, -14.12, -7.71, 0.02, 6.16, 13.13, 14.85, 15.3, 6.49, 2.55, -3.22, -10.46, -17.91, -16.02, -9.4, -0.77, 4.55, 12.26, 14.61, 13.61, 6.52, 2.38, -2.9, -11.84, -13.36, -15.13, -10.27, -0.92, 5.03, 12.52, 15.31, 14.98, 7.51, 3.49, -3.34, -9.66, -13.45, -14.95, -9.07, -0.84, 4.69, 11.69, 14.32, 14.51, 6.67, 3.06, -3.57, -10.15, -14.08, -14.79, -10.59, -0.54, 5.25, 12.36, 14.44, 14.91, 6.91, 2.68, -3.29, -9.54, -13.09, -14.28, -9.29, -0.35, 5.24, 12.37, 14.94, 15.07, 7.79, 3.67, -3.26, -9.13, -13.1, -14.18, -9.18, -0.24, 5.35, 12.48, 15.05, 15.18, 7.9, 3.78, -3.15, -9.02, -15.35, -15.76, -10.82, -1.12, 4.74, 11.74, 13.48, 13.53, 5.98, 2.18, -3.61, -10.96, -15.25, -15.59, -10.18, -1.5, 4.14, 12.44, 14.74, 14.59, 6.33, 2.23, -3.96, -9.6, -18.44, -17.58, -11.88, -3.12, 2.47, 10.13, 12.74, 12.09, 5.1, 1.3, -4.17, -12.16, -14.25, -18.54, -10.08, -2.1, 3.39, 12.81, 14.27, 14.51, 6.2, 1.97, -7.0, -11.6, -13.25, -16.36, -10.81, -1.75, 4.1, 11.98, 14.19, 14.91, 7.35, 2.74, -5.0, -9.05, -13.38, -14.78, -11.61, -1.89, 3.65, 11.06, 13.98, 14.12, 7.04, 2.95, -3.54, -8.78, -15.06, -16.95, -11.19, -2.21, 2.81, 11.68, 14.09, 14.21, 6.14, 1.67, -5.2, -10.51, -16.3, -17.16, -10.24, -2.48, 2.73, 11.16, 14.08, 13.62, 5.59, 1.38, -4.21, -11.64, -16.72, -17.73, -10.55, -2.79, 2.42, 10.85, 13.77, 13.31, 5.29, 1.07, -4.54, -11.95, -16.93, -18.49, -11.09, -3.98, 1.4, 10.23, 13.75, 13.11, 5.37, 0.63, -5.08, -12.78, -17.0, -20.37, -11.89, -3.04, 2.0, 10.26, 13.86, 13.15, 5.96, 1.08, -5.43, -12.61, -15.43, -20.22, -11.77, -4.4, 1.86, 11.77, 12.52, 12.69, 4.96, 1.41, -9.91, -13.87, -15.9, -20.45, -11.77, -4.4, 1.86, 11.77, 12.52, 12.69, 4.96, 1.35, -10.07, -13.87, -14.14, -17.89, -10.07, -2.33, 3.46, 12.56, 14.27, 14.51, 6.42, 2.04, -6.44, -11.12, -14.38, -17.99, -10.6, -2.9, 2.29, 12.06, 13.81, 13.71, 5.65, 1.68, -6.99, -11.13, -13.29, -16.08, -8.73, -1.48, 3.63, 12.66, 15.55, 15.57, 6.84, 2.32, -5.23, -9.53, -15.14, -18.2, -11.26, -3.27, 2.52, 11.73, 14.36, 14.25, 6.24, 1.78, -6.39, -11.29, -14.64, -17.0, -11.05, -3.04, 2.21, 10.36, 13.86, 13.67, 6.04, 1.66, -4.91, -9.81, -14.66, -17.33, -11.07, -3.06, 2.19, 10.33, 13.84, 13.65, 6.02, 1.47, -4.85, -9.83, -16.09, -18.4, -11.48, -3.82, 1.47, 9.45, 13.21, 11.99, 4.85, 0.29, -6.35, -11.29, -16.62, -18.93, -11.82, -4.0, 1.69, 9.7, 13.47, 12.22, 4.96, 0.37, -6.42, -11.29, -15.84, -20.15, -12.08, -4.58, 1.97, 11.32, 13.31, 13.04, 5.04, 0.11, -10.41, -14.42, -14.16, -17.99, -9.58, -3.91, 1.01, 10.45, 13.16, 13.24, 4.94, 0.4, -8.25, -12.17, -15.15, -18.04, -11.98, -4.7, 1.18, 9.03, 12.95, 11.27, 4.62, -0.11, -7.62, -11.66, -14.94, -18.48, -12.19, -4.28, 1.43, 9.31, 12.57, 11.13, 4.69, -0.53, -8.15, -12.47, -15.74, -18.07, -12.83, -5.58, 0.79, 8.42, 11.61, 10.31, 4.21, -1.26, -8.36, -11.51, -15.46, -18.05, -12.53, -5.28, 1.09, 8.72, 11.91, 10.61, 4.52, -0.96, -8.06, -11.67, -16.54, -20.49, -13.52, -6.55, 0.5, 9.36, 11.9, 10.9, 3.52, -1.07, -10.91, -15.74, -13.74, -16.57, -10.62, -3.89, 2.38, 9.8, 13.4, 12.41, 5.54, 0.87, -6.9, -10.39, -14.67, -17.76, -10.66, -4.57, 1.5, 9.12, 12.67, 12.14, 5.65, 1.22, -7.47, -11.79, -15.33, -17.63, -11.76, -4.86, 1.38, 8.67, 12.37, 11.43, 5.05, 0.62, -8.92, -13.01, -15.34, -18.54, -11.11, -5.01, 1.06, 8.69, 12.23, 11.7, 5.21, 0.78, -7.91, -12.52, -14.76, -16.41, -11.29, -4.1, 1.55, 8.99, 12.98, 11.5, 5.42, 1.09, -6.98, -9.8, -14.89, -16.73, -11.29, -4.1, 1.56, 9.0, 12.98, 11.5, 5.43, 1.08, -7.09, -9.93, -15.77, -17.46, -10.95, -6.3, -0.69, 8.49, 11.8, 12.26, 4.87, 0.33, -9.11, -12.46, -8.6, -11.8, -7.8, 1.5, 7.0, 14.0, 16.1, 16.2, 8.8, 4.9, -1.7, -7.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=France&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;, &quot;France&quot;], &quot;legendgroup&quot;: &quot;France&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;France&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [6.41, 3.52, 7.17, 9.57, 12.3, 14.84, 18.33, 17.75, 16.11, 13.63, 7.75, 3.89, 6.1, 3.36, 7.62, 10.88, 14.72, 16.59, 20.6, 19.07, 17.34, 14.42, 7.86, 1.51, 1.52, 0.03, 4.75, 9.15, 14.67, 15.36, 20.19, 18.65, 15.94, 9.79, 6.28, -2.85, 5.53, 3.03, 7.86, 10.53, 13.97, 15.74, 20.14, 19.07, 16.83, 13.36, 7.49, 1.01, 5.34, 2.63, 7.31, 10.1, 13.6, 15.3, 20.0, 18.8, 16.17, 13.21, 7.06, 0.5, 7.39, 4.46, 9.01, 11.45, 14.86, 16.34, 20.9, 19.33, 16.88, 14.79, 8.54, 4.22, -1.12, -5.47, -1.43, 1.18, 5.48, 6.98, 12.52, 11.07, 8.79, 7.92, 0.05, -4.5, 6.64, 4.43, 9.07, 11.44, 14.99, 16.46, 21.52, 20.52, 16.92, 14.69, 8.33, 3.4, 6.98, 5.67, 10.49, 13.51, 17.21, 18.74, 23.08, 22.98, 19.93, 16.93, 10.93, 3.28, 8.7, 6.97, 10.95, 13.83, 17.1, 19.12, 23.76, 23.56, 19.33, 17.11, 11.04, 6.52, 8.11, 5.68, 10.08, 13.36, 16.24, 17.74, 21.67, 21.85, 19.12, 17.12, 11.02, 4.65, 4.35, 2.22, 7.69, 10.13, 15.06, 15.96, 20.89, 19.43, 17.32, 13.12, 7.69, -1.11, 7.87, 4.17, 7.26, 8.91, 11.79, 14.06, 16.5, 16.23, 15.27, 14.27, 8.43, 6.47, 4.4, 0.6, 5.63, 8.43, 12.95, 14.71, 18.99, 17.28, 15.1, 11.17, 6.12, -0.97, 6.74, 3.71, 7.85, 10.5, 13.72, 16.03, 20.13, 19.48, 16.92, 14.36, 8.27, 3.42, 2.49, 0.74, 5.83, 9.24, 13.53, 14.7, 20.14, 18.38, 16.02, 11.64, 5.8, -2.07, 5.8, 3.8, 8.7, 11.08, 14.64, 16.13, 20.74, 19.79, 16.51, 14.11, 7.93, 3.31, 5.12, 2.2, 6.7, 9.59, 13.12, 15.08, 19.12, 17.9, 15.93, 12.54, 6.6, 0.65, 6.69, 3.12, 5.29, 8.69, 13.02, 14.89, 17.95, 18.11, 16.74, 15.07, 8.74, 2.5, 4.79, 1.0, 6.16, 8.89, 13.26, 15.16, 18.62, 17.44, 15.37, 12.02, 6.43, -0.22, 4.62, 0.92, 6.26, 9.15, 14.11, 15.4, 19.65, 18.21, 15.95, 12.24, 6.7, -0.44, 2.8, 0.3, 5.33, 8.15, 13.62, 14.34, 19.14, 17.5, 15.47, 10.98, 5.87, -2.7, 4.19, 2.06, 7.3, 10.27, 14.88, 15.75, 20.8, 19.31, 16.94, 12.55, 7.1, -1.04, 1.58, 0.29, 5.66, 8.56, 13.12, 14.3, 18.6, 17.65, 15.76, 11.68, 5.91, -3.02, 0.65, -1.12, 5.43, 8.27, 13.48, 14.27, 18.45, 16.93, 15.71, 12.76, 4.94, -3.55, 4.26, 3.04, 8.15, 11.49, 15.58, 17.38, 21.51, 20.99, 18.12, 15.47, 8.23, 2.49, 7.13, 4.4, 9.17, 10.84, 15.01, 15.96, 20.94, 19.11, 16.49, 14.24, 8.78, 4.92, 5.03, 1.79, 6.9, 9.77, 14.11, 15.61, 20.04, 18.25, 16.25, 13.26, 6.8, -0.12, 4.36, 2.18, 6.77, 8.91, 13.48, 14.61, 19.12, 17.65, 15.84, 12.04, 6.6, -0.63, 7.06, 5.14, 9.59, 11.99, 15.42, 17.56, 22.29, 21.4, 18.02, 15.79, 9.55, 3.84, 6.8, 4.1, 8.93, 11.46, 14.71, 16.28, 21.05, 19.85, 17.07, 14.97, 8.46, 3.41, 7.5, 4.69, 8.59, 10.84, 14.16, 16.09, 20.46, 19.16, 16.99, 15.39, 9.68, 4.45, 3.11, 0.36, 6.12, 8.99, 13.94, 14.63, 19.58, 17.95, 16.24, 12.25, 6.57, -2.5, 5.54, 3.99, 8.73, 11.4, 15.76, 17.41, 21.89, 21.15, 18.53, 14.65, 8.66, 0.86, 7.29, 5.29, 9.84, 12.72, 16.37, 18.49, 22.87, 22.27, 19.19, 16.51, 9.78, 3.54, 8.51, 6.11, 10.2, 12.68, 15.82, 18.17, 22.3, 22.44, 19.14, 17.04, 11.24, 5.37, 5.39, 2.63, 7.0, 9.85, 13.69, 15.36, 19.81, 18.43, 16.45, 13.3, 7.01, 0.45, 7.83, 4.94, 6.68, 8.83, 11.62, 13.52, 15.83, 16.62, 15.94, 15.02, 9.49, 6.79, 2.35, -0.69, 4.53, 7.64, 12.5, 13.42, 18.59, 17.12, 14.97, 11.61, 5.08, -3.31, 3.3, -0.03, 5.03, 8.49, 13.7, 14.65, 19.29, 17.81, 15.16, 10.49, 6.26, -1.74, 8.89, 5.65, 7.96, 10.22, 12.91, 15.53, 17.8, 17.36, 16.22, 15.25, 10.33, 7.43, 3.17, 0.14, 5.04, 8.66, 13.4, 14.93, 19.52, 18.01, 15.51, 10.84, 6.04, -1.55, 5.11, 1.29, 5.96, 8.57, 12.85, 14.86, 18.27, 17.08, 15.31, 12.0, 6.3, 0.18, 8.89, 6.48, 10.09, 11.32, 15.59, 15.7, 20.46, 19.68, 17.13, 16.11, 10.54, 6.77, 6.3, 3.37, 7.8, 10.34, 13.49, 15.83, 20.04, 18.8, 16.91, 13.63, 7.92, 3.02, 6.7, 3.32, 6.41, 8.85, 12.81, 14.81, 17.45, 17.41, 16.04, 14.78, 8.2, 3.41, 5.83, 1.77, 5.54, 8.32, 12.78, 14.46, 17.38, 17.33, 15.59, 13.27, 7.21, 1.14, 6.7, 3.5, 6.0, 8.2, 11.1, 13.4, 16.1, 16.1, 15.0, 13.6, 8.0, 4.6, 7.69, 4.09, 7.09, 8.79, 11.49, 13.99, 16.29, 15.79, 14.89, 13.79, 8.39, 6.49, 5.43, 2.23, 6.53, 9.04, 12.36, 14.74, 18.31, 17.59, 15.75, 12.41, 6.59, 1.81, 5.21, 1.96, 6.47, 9.41, 13.07, 15.24, 19.04, 17.57, 15.72, 12.62, 6.52, 0.61, 5.37, 2.69, 7.13, 10.06, 14.0, 16.0, 20.05, 18.32, 16.75, 13.32, 7.18, 0.87, 5.57, 2.37, 6.57, 9.77, 13.67, 15.67, 19.37, 17.77, 15.97, 12.07, 7.47, 1.07, 3.1, -0.4, 4.8, 7.6, 13.6, 14.6, 19.4, 18.3, 14.6, 9.8, 7.3, -1.6, 8.94, 5.56, 7.96, 10.33, 12.79, 15.69, 17.95, 17.49, 16.73, 15.62, 10.54, 7.66, 6.78, 3.98, 7.73, 10.38, 13.2, 15.79, 19.64, 18.93, 16.75, 14.69, 8.41, 3.97, 2.31, 0.51, 5.61, 9.21, 13.81, 14.91, 20.41, 18.61, 15.81, 11.41, 5.81, -1.79, 4.24, 1.94, 6.44, 9.24, 12.74, 13.94, 18.54, 17.14, 14.64, 12.14, 6.14, 0.44, 1.08, -1.75, 3.67, 6.07, 10.53, 11.02, 16.02, 15.06, 12.88, 9.1, 3.79, -3.59, 5.26, 2.84, 7.61, 10.13, 14.11, 14.75, 19.73, 18.26, 16.03, 14.49, 7.27, 1.37, 3.31, 0.62, 5.77, 8.24, 12.25, 13.63, 18.7, 17.47, 14.64, 12.85, 5.97, -0.75, 0.84, -0.31, 5.96, 9.09, 13.77, 14.6, 19.34, 17.59, 16.04, 13.84, 5.84, -0.63, 6.62, 3.66, 8.89, 11.08, 15.0, 16.1, 21.6, 19.47, 16.64, 14.16, 8.2, 3.89, 6.05, 3.44, 8.28, 9.89, 13.78, 15.1, 20.09, 18.4, 15.62, 13.78, 7.59, 3.67, 7.09, 5.34, 10.15, 12.54, 15.91, 18.09, 22.06, 21.91, 18.59, 16.01, 10.14, 3.97, 6.3, 4.6, 9.3, 12.5, 16.0, 17.8, 21.9, 21.4, 18.3, 15.3, 9.2, 2.6, 7.47, 6.77, 10.17, 12.87, 16.27, 18.37, 22.27, 22.77, 19.87, 17.57, 11.67, 6.67, 7.7, 8.3, 10.5, 12.6, 16.7, 18.0, 21.4, 22.1, 19.5, 16.8, 13.0, 7.8, 6.9, 7.3, 6.7, 5.4, 4.7, 1.3, 2.5, 2.0, 3.0, 3.0, 4.1, 6.7, 5.34, 2.58, 7.31, 10.1, 13.6, 15.31, 20.0, 18.8, 16.17, 13.21, 7.06, 0.57, 6.54, 3.54, 7.54, 10.24, 12.94, 15.84, 19.74, 18.44, 16.04, 14.04, 8.14, 4.04, 4.8, 2.5, 6.9, 9.7, 13.2, 14.5, 19.1, 17.7, 15.2, 12.7, 6.6, 1.0, 22.96, 23.52, 20.71, 18.23, 12.31, 7.19, -0.6, -5.1, -0.4, 1.8, 6.9, 7.2, 12.9, 11.1, 9.8, 9.0, 0.0, -5.0, 7.36, 6.41, 8.46, 11.36, 15.61, 16.86, 21.5, 21.66, 19.66, 13.71, 8.11, -5.57, -10.98, -7.68, -4.78, -0.58, 1.12, 6.82, 5.52, 2.02, 2.92, -5.48, -9.77, 3.85, 1.55, 7.05, 9.85, 14.85, 15.55, 20.85, 19.05, 16.65, 12.35, 7.25, -1.25, 6.9, 4.0, 8.8, 11.3, 14.9, 16.2, 21.0, 19.7, 16.5, 14.8, 8.9, 4.6, 7.59, 6.69, 10.19, 12.79, 16.29, 18.39, 22.29, 23.29, 19.99, 17.69, 11.69, 6.69], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guernsey&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;, &quot;Guernsey&quot;], &quot;legendgroup&quot;: &quot;Guernsey&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guernsey&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [7.55, 4.02, 6.44, 8.75, 11.29, 13.53, 16.39, 16.45, 15.14, 14.25, 8.46, 6.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Germany&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;, &quot;Germany&quot;], &quot;legendgroup&quot;: &quot;Germany&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Germany&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [3.26, -1.09, 1.48, 7.94, 13.09, 14.8, 18.49, 17.58, 14.36, 11.86, 5.91, -2.71, 1.46, -2.04, -0.13, 6.99, 12.2, 15.11, 17.99, 17.09, 14.37, 11.23, 5.12, -4.05, 3.01, -0.3, 4.71, 8.81, 13.91, 15.41, 19.41, 17.64, 15.09, 11.44, 5.9, -1.63, 1.72, -1.17, 3.17, 7.74, 13.67, 14.48, 18.88, 17.0, 13.54, 9.9, 5.08, -3.19, 2.09, -0.03, 4.98, 9.34, 15.39, 16.02, 20.75, 18.93, 16.05, 10.28, 6.74, -2.38, -0.11, -1.79, 2.98, 7.13, 13.18, 13.78, 18.26, 16.43, 14.03, 9.48, 5.04, -4.68, -0.51, -2.16, -0.73, 7.19, 12.64, 16.01, 18.88, 18.02, 14.8, 10.58, 5.42, -4.98, 0.81, -2.35, -0.04, 7.85, 14.26, 16.22, 19.89, 18.06, 14.68, 11.25, 6.32, -6.04, -1.39, -2.13, -0.19, 7.21, 14.38, 15.9, 19.38, 17.39, 14.49, 11.42, 5.99, -6.1, -0.88, -2.27, 0.07, 7.95, 14.22, 16.57, 19.54, 17.7, 14.45, 10.68, 5.84, -5.44, -0.99, -2.48, -0.18, 8.0, 14.43, 17.03, 20.25, 18.17, 15.04, 10.97, 5.72, -6.13, -1.19, -3.02, 2.63, 7.4, 13.4, 14.82, 18.42, 16.57, 13.69, 9.26, 4.45, -6.49, -9.76, -15.16, -9.57, -7.93, -1.08, -1.02, 3.53, 0.95, 2.31, -0.15, -7.79, -13.61, 0.26, -0.5, 3.61, 8.38, 14.76, 14.66, 19.14, 17.09, 15.62, 10.6, 5.94, -4.53, 1.04, -1.79, 0.8, 7.79, 14.38, 15.99, 19.93, 17.82, 14.46, 11.21, 6.14, -4.96, 1.3, -1.96, -0.37, 6.75, 11.95, 15.57, 18.28, 17.73, 14.2, 10.5, 5.34, -4.14, 2.88, -1.34, 0.12, 6.74, 11.56, 14.74, 17.71, 17.14, 14.54, 11.67, 6.04, -2.65, -1.94, -2.56, -0.55, 7.62, 14.31, 16.73, 19.84, 17.74, 15.06, 10.79, 5.81, -6.44, -0.08, -2.91, 0.68, 5.09, 11.97, 11.27, 15.86, 13.67, 13.22, 9.87, 3.68, -6.49, -0.99, -2.56, 2.44, 5.91, 12.0, 12.46, 16.93, 14.83, 13.33, 9.19, 3.51, -5.36, -0.5, -1.28, 1.04, 7.84, 14.72, 16.04, 19.33, 17.0, 14.53, 11.34, 6.51, -5.19, 1.86, -2.49, 0.13, 7.4, 13.35, 14.86, 18.54, 16.96, 13.25, 10.5, 5.7, -5.66, 2.1, -0.34, 4.11, 9.16, 14.71, 15.65, 20.13, 18.3, 15.06, 9.53, 6.34, -2.27, 4.67, 0.73, 3.61, 9.26, 14.75, 16.42, 20.31, 18.82, 15.85, 13.75, 7.38, -0.86, 1.38, -1.01, 3.79, 8.46, 14.38, 15.42, 19.31, 17.96, 15.16, 10.46, 6.06, -2.82, 0.97, -0.31, 4.59, 8.75, 14.94, 15.38, 19.89, 18.25, 15.53, 10.9, 6.34, -3.35, -0.71, -3.16, 2.12, 6.73, 12.8, 14.11, 18.1, 16.01, 12.99, 8.95, 4.41, -5.88, -1.87, -2.79, 2.0, 6.95, 13.1, 13.93, 17.7, 16.09, 13.69, 8.51, 3.6, -5.85, 2.16, -1.59, 0.66, 8.02, 13.64, 15.41, 19.17, 17.67, 13.78, 11.37, 5.93, -4.73, -0.72, -2.66, 1.88, 6.78, 13.17, 13.78, 17.93, 16.13, 13.56, 8.82, 4.58, -5.19, 3.71, -0.24, 4.11, 8.3, 13.93, 15.24, 18.9, 17.48, 14.6, 12.18, 6.6, -1.58, 2.94, -1.31, 3.4, 8.69, 13.86, 15.37, 19.42, 17.32, 14.44, 10.81, 5.62, -2.55, 2.97, -0.73, 3.27, 7.99, 13.62, 14.9, 18.72, 16.9, 13.69, 11.31, 5.74, -2.69, 0.64, -1.75, 3.17, 7.84, 13.57, 14.43, 18.55, 17.04, 13.92, 9.05, 5.29, -4.02, 0.83, -1.85, -0.11, 6.44, 10.59, 14.93, 17.36, 17.58, 14.47, 10.88, 4.98, -3.85, 0.19, -0.48, 4.06, 7.87, 14.03, 14.69, 18.98, 17.09, 15.13, 9.99, 5.1, -4.1, 1.06, -2.17, 0.06, 7.34, 13.36, 14.99, 18.7, 17.03, 13.28, 10.61, 4.91, -5.48, 1.33, -2.47, 0.72, 5.87, 11.52, 13.11, 17.2, 15.35, 12.23, 10.14, 4.11, -5.08, 3.91, -0.45, 3.6, 7.89, 13.5, 14.73, 18.9, 17.27, 14.41, 12.42, 6.31, -1.84, -0.05, -2.07, -0.72, 6.71, 11.11, 15.24, 17.86, 17.57, 14.11, 10.28, 4.93, -4.05, -3.37, -5.11, -1.41, 4.67, 12.1, 12.8, 17.36, 15.02, 12.38, 9.05, 2.62, -7.53, -2.13, -1.77, 3.01, 7.83, 13.9, 14.29, 18.19, 16.22, 14.47, 9.77, 4.69, -5.4, -3.31, -5.11, -1.28, 4.36, 11.24, 12.25, 16.44, 14.11, 11.94, 8.92, 2.39, -7.01, 3.15, -0.83, 0.53, 8.15, 13.73, 15.73, 19.17, 17.95, 14.24, 12.12, 6.34, -3.42, -1.32, -4.06, 0.59, 6.27, 11.9, 14.06, 18.11, 15.94, 12.93, 9.17, 3.47, -6.46, 0.86, -1.82, 0.0, 6.1, 10.27, 15.01, 17.14, 17.75, 14.22, 10.97, 4.61, -3.58, 0.16, -2.74, 2.62, 7.23, 12.9, 14.51, 18.11, 16.88, 13.42, 9.47, 4.68, -4.68, 2.52, -0.44, 3.9, 9.41, 15.35, 16.51, 21.14, 18.52, 15.46, 10.66, 6.51, -2.65, -2.18, -2.67, -0.73, 7.7, 14.15, 16.48, 19.81, 17.51, 14.9, 10.64, 5.99, -6.68, -1.72, -2.4, 2.72, 7.61, 13.45, 13.97, 17.57, 16.06, 14.03, 8.75, 4.44, -6.14, 0.98, -3.04, 1.64, 5.84, 11.57, 12.92, 17.2, 15.24, 12.93, 10.55, 3.14, -4.24, 0.57, -3.51, 1.81, 4.91, 11.09, 11.19, 16.14, 14.1, 13.21, 10.26, 3.17, -5.64, 1.48, -1.49, 3.05, 8.24, 13.74, 15.04, 19.31, 17.3, 14.54, 9.52, 5.5, -3.23, -0.4, -1.25, 2.61, 7.07, 13.26, 13.34, 17.71, 15.79, 14.61, 10.37, 4.94, -5.89, 2.08, -1.24, 3.85, 8.82, 14.57, 15.92, 20.01, 18.43, 15.17, 10.62, 5.98, -3.48, 1.73, -0.86, 3.81, 8.88, 15.1, 16.26, 20.29, 18.83, 15.97, 10.05, 5.97, -2.83, -0.18, -3.58, -0.34, 6.18, 11.75, 13.27, 17.54, 15.54, 11.66, 8.89, 3.69, -6.32, -1.07, -3.14, 1.5, 6.93, 12.82, 13.81, 17.77, 15.51, 12.91, 8.86, 4.1, -6.67, -2.85, -2.81, 0.78, 6.19, 12.99, 13.49, 17.17, 14.88, 13.63, 9.57, 3.41, -6.19, 0.31, -2.34, -1.02, 6.86, 12.03, 15.8, 18.58, 17.86, 14.34, 9.71, 4.79, -5.7, -1.3, -4.1, -0.15, 5.6, 11.25, 12.81, 17.04, 15.23, 12.65, 9.97, 2.79, -5.98, -0.55, -1.98, 2.65, 7.43, 13.86, 14.52, 18.76, 17.07, 14.26, 9.77, 4.91, -4.88, -2.16, -2.81, -1.06, 6.09, 11.04, 14.55, 17.44, 16.96, 13.62, 9.69, 4.59, -6.65, -2.21, -6.22, -2.66, 1.77, 9.51, 9.56, 13.75, 11.0, 10.44, 8.7, 0.12, -7.74, -1.28, -1.74, 2.5, 7.22, 13.64, 13.45, 17.97, 15.84, 14.84, 10.14, 4.72, -5.89, 2.38, -1.31, 1.31, 6.29, 12.19, 13.98, 18.06, 16.17, 12.95, 11.0, 4.95, -3.93, 3.1, -0.94, 1.68, 8.07, 13.69, 15.26, 18.92, 17.81, 14.04, 12.02, 5.96, -2.88, -0.06, -3.11, 2.48, 7.64, 13.55, 14.94, 18.75, 17.15, 13.32, 9.15, 5.0, -5.66, 1.82, -2.09, 0.22, 6.97, 12.67, 14.19, 18.49, 16.37, 12.8, 10.58, 5.15, -4.59, 1.92, -2.0, 3.28, 6.97, 12.19, 13.87, 17.77, 15.97, 13.31, 10.41, 4.57, -2.75, 1.5, -1.83, -0.16, 7.06, 12.44, 15.86, 18.52, 17.95, 14.78, 10.75, 5.85, -4.34, -0.47, -1.65, 3.77, 7.47, 13.57, 13.97, 18.52, 16.39, 14.71, 9.11, 4.0, -4.35, 0.61, -2.63, -1.18, 7.0, 13.05, 15.63, 18.55, 17.09, 13.83, 10.43, 4.96, -5.71, 1.97, -2.09, -0.8, 7.27, 13.5, 14.84, 19.01, 17.33, 14.19, 11.67, 5.71, -4.92, 0.24, -3.77, -3.14, 5.06, 11.46, 13.65, 17.65, 15.83, 12.37, 10.55, 3.81, -6.4, 6.56, 12.6, 13.02, 17.65, 15.61, 13.52, 8.98, 4.4, -5.83, 1.2, -1.82, -0.1, 6.53, 10.79, 15.13, 17.58, 17.63, 14.62, 11.08, 5.38, -3.56, -2.35, -3.59, 0.64, 5.72, 12.12, 12.44, 16.59, 14.65, 12.29, 7.39, 2.83, -6.49, 0.52, -2.69, 1.54, 6.71, 12.13, 13.36, 17.86, 16.06, 13.39, 10.48, 4.17, -4.76, 1.54, -0.58, 3.65, 8.44, 14.5, 15.25, 19.53, 17.3, 14.52, 9.37, 6.1, -2.82, 3.7, -0.28, 3.69, 8.26, 13.59, 15.02, 18.56, 17.29, 14.41, 12.34, 6.15, -1.53, 1.06, -1.98, -0.41, 6.1, 10.81, 15.08, 17.15, 17.03, 14.33, 10.7, 5.6, -3.99, 3.32, -0.95, 0.9, 8.35, 13.63, 15.47, 19.03, 17.95, 14.4, 12.17, 6.29, -3.06, 0.77, -2.28, 0.11, 7.3, 13.48, 15.05, 18.94, 17.09, 13.16, 10.3, 4.8, -5.76, -2.14, -2.89, -1.3, 6.51, 13.65, 15.15, 18.4, 15.83, 13.51, 10.12, 4.92, -6.62, 1.64, -2.43, 2.41, 6.84, 12.05, 13.41, 17.49, 15.8, 12.93, 9.48, 4.07, -3.3, 1.63, -1.96, 2.61, 7.59, 12.99, 14.5, 18.43, 16.56, 13.67, 10.74, 4.67, -3.92, -1.2, -3.94, 1.0, 3.82, 9.93, 10.76, 15.09, 13.02, 11.86, 8.23, 2.19, -6.52, -2.69, -2.83, 0.69, 6.29, 12.91, 14.0, 17.1, 15.24, 12.98, 7.77, 3.8, -6.97, -1.37, -3.34, 0.18, 5.89, 12.55, 13.51, 17.6, 15.42, 12.27, 8.82, 4.15, -6.71, 2.05, -2.23, 0.25, 7.76, 13.47, 14.82, 18.27, 17.2, 13.29, 11.17, 5.35, -5.12, -0.53, -2.74, 2.78, 7.73, 13.67, 15.05, 18.77, 17.07, 13.9, 9.77, 4.67, -5.81, 2.54, -1.11, 0.56, 7.93, 13.67, 15.47, 19.26, 17.59, 13.9, 11.48, 5.91, -4.44, 1.07, -2.24, 1.74, 7.42, 12.75, 14.42, 18.45, 16.86, 13.21, 10.13, 4.87, -4.8, -2.94, -4.36, -0.36, 5.5, 12.15, 13.02, 17.22, 14.88, 12.43, 9.16, 3.79, -7.3, -0.76, -4.88, -0.51, 2.38, 9.29, 9.85, 14.49, 12.14, 11.38, 9.44, 1.37, -6.84, 0.74, -1.83, -0.15, 5.96, 10.39, 15.04, 17.39, 17.24, 14.42, 10.78, 5.01, -3.67, -1.0, -2.22, 2.91, 7.23, 13.25, 13.59, 17.7, 15.72, 14.02, 8.65, 3.93, -6.0, 1.06, -0.76, 3.66, 8.36, 14.82, 15.51, 19.57, 18.14, 15.06, 10.2, 5.79, -3.38, -1.71, -2.39, 2.13, 7.03, 13.45, 13.15, 17.71, 15.63, 14.36, 9.76, 4.54, -5.97, 3.53, -0.61, 2.27, 7.57, 13.08, 14.37, 18.49, 16.81, 13.71, 12.48, 5.97, -2.61, 2.63, -1.48, 0.44, 6.75, 11.43, 14.66, 17.41, 17.04, 14.34, 11.65, 5.62, -2.82, 2.28, -1.54, 0.22, 6.64, 11.4, 14.82, 17.74, 17.34, 14.62, 11.79, 6.0, -2.56, 3.6, -0.56, 3.53, 8.12, 13.67, 15.16, 18.64, 16.79, 14.29, 11.38, 6.14, -1.71, 1.85, -1.32, 3.78, 8.7, 14.6, 15.82, 19.82, 17.58, 14.33, 9.3, 5.86, -3.03, 15.12, 18.54, 17.52, 14.58, 12.55, 5.79, -2.49, 1.72, -2.68, 1.68, 5.74, 11.23, 12.21, 16.85, 15.0, 12.33, 11.11, 3.79, -3.57, -1.42, -3.93, 0.14, 5.98, 12.27, 13.38, 17.52, 15.6, 12.0, 9.28, 3.63, -6.94, -1.42, -2.37, 3.34, 8.14, 14.0, 14.73, 18.49, 17.06, 14.6, 8.76, 4.66, -5.52, 1.19, -0.89, 4.14, 8.15, 13.64, 14.21, 18.89, 17.16, 14.83, 9.15, 6.22, -3.49, 2.07, -0.64, 4.35, 7.87, 14.22, 14.53, 19.44, 17.56, 15.55, 10.76, 6.37, -3.46, -0.19, -2.64, -1.37, 6.49, 10.8, 14.88, 17.34, 17.24, 13.86, 9.87, 4.47, -5.26, 3.66, -0.62, 2.34, 7.88, 12.92, 15.38, 18.62, 17.21, 14.52, 12.2, 5.95, -2.32, 1.5, -0.82, 3.85, 8.22, 14.17, 14.47, 19.16, 17.33, 14.63, 9.29, 6.14, -3.31, 4.11, 0.51, 4.46, 9.4, 14.82, 16.18, 20.07, 18.2, 15.2, 12.69, 7.07, -1.17, -1.25, -4.14, 1.42, 6.46, 12.85, 14.25, 18.13, 16.09, 12.45, 8.75, 4.17, -6.78, 0.31, -2.11, 2.28, 6.04, 11.95, 12.51, 17.12, 15.4, 13.58, 10.33, 4.32, -4.76, -2.27, -2.92, 2.55, 7.48, 13.99, 14.41, 18.7, 17.03, 14.98, 8.95, 4.16, -5.3, -2.0, -3.31, 1.24, 6.37, 12.77, 14.17, 18.31, 15.98, 13.04, 8.9, 4.16, -6.28, -0.88, -1.75, 2.43, 6.78, 12.8, 13.08, 17.21, 15.5, 13.63, 8.36, 4.15, -6.23, 0.11, -2.33, -1.09, 6.38, 10.79, 15.34, 17.54, 17.04, 13.75, 10.04, 4.79, -4.74, 0.92, -1.04, 3.31, 8.02, 14.24, 15.23, 19.05, 17.43, 14.06, 9.25, 5.59, -3.43, -1.28, -2.56, 2.02, 7.41, 14.0, 15.16, 19.33, 16.98, 13.79, 9.29, 4.85, -5.53, -1.47, -1.4, 3.45, 8.17, 14.1, 14.45, 18.16, 16.57, 14.48, 9.43, 4.95, -5.22, -2.49, -4.74, -0.15, 4.8, 10.79, 11.05, 15.25, 13.83, 11.86, 7.87, 2.65, -7.91, 2.26, -0.47, 0.33, 6.41, 10.73, 14.51, 17.36, 17.86, 15.58, 12.12, 6.46, -1.85, 0.86, -2.42, 0.18, 7.6, 14.19, 15.93, 19.58, 17.71, 14.43, 11.15, 5.92, -6.12, 0.45, -1.5, 2.93, 7.8, 13.87, 14.89, 18.93, 17.17, 14.08, 9.66, 5.24, -4.43, 0.9, -1.4, 0.08, 5.81, 10.14, 15.03, 16.97, 17.48, 14.4, 11.19, 5.06, -2.69, -3.39, -4.84, -0.39, 4.91, 11.39, 12.71, 16.68, 14.98, 11.97, 8.62, 3.01, -7.14, -2.5, -2.69, 2.13, 7.61, 13.86, 14.63, 18.33, 16.13, 14.07, 7.72, 3.88, -6.72, 1.83, -1.55, 1.58, 6.35, 11.98, 13.47, 17.53, 15.71, 12.75, 10.39, 4.77, -4.33, 0.55, -2.74, 1.57, 6.0, 12.66, 12.75, 17.3, 14.9, 13.18, 9.96, 3.73, -6.17, 0.07, -1.78, -0.42, 6.51, 10.88, 15.1, 17.85, 17.36, 14.29, 10.61, 5.64, -3.5, -1.83, -3.51, 0.82, 4.1, 10.59, 11.27, 15.93, 13.22, 11.65, 7.11, 2.05, -6.31, 1.18, -0.21, 4.61, 8.27, 13.82, 14.74, 19.42, 17.57, 15.2, 9.64, 5.8, -3.23, 1.95, -2.07, 2.69, 7.96, 13.44, 14.84, 18.99, 17.25, 14.08, 10.59, 5.45, -3.66, 2.69, -1.18, 0.74, 7.39, 12.5, 15.11, 18.43, 17.32, 14.07, 11.68, 5.6, -3.25, 0.72, -2.18, 3.18, 8.22, 14.04, 15.52, 19.66, 18.13, 14.67, 10.52, 5.31, -4.72, 3.32, -0.56, 4.11, 8.89, 14.31, 15.6, 19.64, 17.24, 14.41, 10.59, 6.78, -1.72, 3.55, -0.94, 1.89, 8.01, 13.09, 14.83, 18.66, 17.38, 14.52, 12.61, 5.97, -2.36, 1.68, -1.2, 3.78, 9.13, 14.55, 16.07, 19.96, 18.22, 15.12, 9.85, 5.55, -2.73, -2.04, -1.97, 2.64, 7.94, 13.78, 14.44, 18.01, 16.37, 14.06, 8.51, 4.35, -6.3, -1.3, -2.25, -0.95, 7.34, 14.43, 16.01, 19.57, 17.02, 14.57, 11.1, 6.03, -6.17, 1.48, -2.58, 1.99, 6.19, 11.61, 13.26, 17.63, 15.21, 12.34, 9.52, 3.84, -3.6, 1.67, -1.64, 2.09, 7.86, 13.36, 15.13, 19.5, 17.3, 13.77, 10.32, 5.29, -4.21, -2.01, -3.54, 1.32, 6.18, 12.37, 13.29, 17.43, 15.46, 12.67, 8.69, 4.06, -6.61, 2.62, -1.26, 3.06, 7.87, 13.27, 14.43, 18.81, 16.76, 13.77, 10.92, 5.47, -2.42, 3.28, -0.99, 0.17, 7.95, 13.37, 15.28, 18.79, 17.75, 14.52, 11.8, 6.41, -3.4, -1.85, -1.75, 2.8, 8.38, 14.25, 14.96, 18.25, 16.54, 14.38, 8.5, 4.48, -6.23, 1.67, -1.82, 0.0, 7.08, 11.72, 15.56, 17.87, 17.6, 14.77, 11.15, 5.32, -3.9, -1.16, -3.78, 1.44, 4.88, 11.57, 10.48, 15.38, 12.97, 13.05, 9.52, 2.17, -7.47, 0.01, -2.87, 1.62, 6.59, 12.78, 13.72, 18.27, 16.37, 14.0, 10.25, 4.16, -5.09, 1.96, -2.24, 2.46, 7.43, 12.69, 14.02, 18.32, 16.37, 13.05, 9.77, 4.56, -3.86, -2.24, -3.39, -1.44, 7.42, 13.89, 16.47, 19.53, 17.19, 14.47, 10.55, 5.78, -6.89, -1.54, -3.66, 1.05, 5.69, 11.86, 12.09, 16.56, 14.63, 12.6, 8.73, 3.2, -6.97, 0.26, -1.29, 3.19, 7.42, 13.82, 14.32, 18.51, 16.99, 13.91, 9.9, 5.19, -3.96, 0.25, -1.8, 3.0, 6.76, 13.07, 13.32, 18.14, 16.07, 14.17, 10.14, 4.47, -4.68, 2.04, -1.08, 3.53, 8.92, 14.31, 15.95, 20.15, 18.4, 15.05, 10.78, 5.84, -3.44, -1.36, -2.41, 2.65, 7.58, 13.87, 14.68, 18.62, 16.51, 14.02, 7.86, 4.42, -5.34, 1.43, -0.45, 4.16, 8.87, 14.8, 15.76, 19.69, 18.32, 15.53, 10.8, 6.32, -2.84, 3.26, -0.16, 3.57, 8.48, 13.85, 15.18, 19.25, 17.23, 13.88, 10.9, 5.89, -2.32, -2.5, -3.56, -1.42, 6.24, 12.5, 15.78, 18.69, 16.97, 14.06, 10.3, 4.85, -6.98, -0.38, -3.46, -0.54, 5.99, 11.72, 13.43, 17.59, 15.43, 12.3, 9.64, 3.51, -6.22, 0.38, -2.39, -0.81, 6.29, 10.72, 14.85, 17.36, 17.15, 13.75, 10.12, 4.5, -5.16, 2.48, -1.24, 2.92, 8.08, 13.18, 14.64, 18.35, 16.81, 14.03, 11.75, 5.55, -3.05, 2.29, -0.12, 4.81, 9.24, 15.38, 16.52, 20.62, 18.72, 16.0, 10.17, 6.32, -2.39, -0.11, -2.16, 2.77, 7.62, 13.72, 14.79, 18.89, 17.03, 13.96, 9.61, 5.21, -5.11, -2.74, -4.1, 0.32, 5.9, 12.47, 13.42, 17.48, 15.16, 12.7, 8.43, 3.11, -6.78, 2.17, -0.22, 4.3, 8.91, 14.61, 15.62, 20.14, 18.47, 15.54, 10.22, 6.47, -2.35, -2.17, -2.98, -0.8, 6.88, 12.71, 15.76, 18.72, 17.35, 14.12, 10.29, 5.22, -6.75, 1.37, -1.69, 3.2, 8.32, 13.64, 15.19, 19.24, 17.71, 14.59, 9.89, 5.46, -4.01, -2.06, -3.1, 2.06, 6.91, 12.84, 13.62, 17.03, 15.8, 13.36, 7.81, 3.58, -5.9, 1.94, -1.58, -0.12, 7.31, 12.98, 15.33, 18.52, 17.39, 14.04, 11.41, 5.51, -4.02, 1.77, -1.06, 0.31, 6.89, 11.3, 15.58, 18.16, 18.45, 15.77, 11.77, 6.02, -2.6, 3.7, -0.56, 1.55, 8.05, 13.15, 15.52, 19.2, 17.96, 14.72, 12.43, 6.25, -2.62, 0.35, -3.77, 0.38, 5.36, 11.29, 12.62, 16.96, 14.88, 12.84, 10.71, 2.96, -4.77, 0.27, -0.64, 4.17, 8.29, 14.09, 14.69, 19.08, 17.41, 14.92, 10.5, 5.89, -3.84, 1.24, -0.56, 3.84, 8.47, 14.61, 15.39, 19.64, 17.92, 15.07, 10.07, 6.21, -3.49, -3.03, -3.59, 0.17, 6.15, 12.78, 13.41, 17.18, 15.12, 12.96, 8.64, 3.18, -6.88, -3.48, -6.57, -3.11, 2.26, 9.81, 10.6, 15.23, 12.59, 10.52, 8.46, 0.71, -7.66, 3.32, -0.63, 1.52, 8.32, 13.71, 15.69, 18.92, 17.89, 14.91, 12.52, 6.25, -2.67, 2.45, -1.1, 0.54, 7.44, 12.31, 15.39, 18.61, 17.21, 14.73, 11.68, 5.69, -3.21, 1.16, -2.51, 2.46, 7.1, 12.21, 13.67, 17.47, 16.17, 13.36, 9.49, 4.18, -3.88, 0.05, -3.03, 0.88, 4.94, 11.67, 11.13, 16.18, 13.81, 13.32, 10.39, 3.45, -6.42, -2.74, -3.04, 1.53, 6.74, 13.41, 13.97, 18.43, 16.38, 14.43, 9.26, 3.65, -6.59, -2.16, -1.52, 2.81, 8.12, 14.31, 14.39, 18.05, 16.5, 14.81, 9.45, 4.73, -5.51, 2.42, -1.09, 3.86, 7.79, 12.94, 13.96, 18.21, 16.57, 13.96, 10.06, 4.59, -2.71, -1.64, -3.14, 1.71, 5.77, 12.12, 12.23, 16.73, 14.79, 13.04, 8.31, 2.9, -6.34, 2.27, 0.13, 4.87, 9.54, 15.19, 16.01, 20.39, 18.55, 15.86, 10.35, 6.75, -2.27, 0.81, -1.92, 3.11, 7.32, 13.37, 14.32, 18.96, 16.9, 14.64, 10.36, 4.65, -4.12, -1.09, -2.6, 1.83, 7.29, 13.5, 14.33, 17.86, 16.07, 13.54, 9.48, 4.89, -5.83, -1.51, -2.67, -0.38, 7.84, 14.08, 16.71, 19.68, 17.7, 14.81, 10.85, 6.0, -5.97, 0.07, -1.0, 4.14, 8.28, 14.49, 15.04, 19.68, 17.46, 15.53, 10.12, 4.91, -3.29, 2.78, -1.13, 0.18, 7.67, 13.21, 15.2, 18.87, 17.6, 14.44, 11.81, 5.76, -3.47, -1.85, -6.3, -0.91, 1.49, 8.92, 7.47, 12.45, 9.91, 11.03, 8.64, 0.72, -6.53, -0.6, -1.58, 3.56, 7.51, 13.99, 13.85, 18.32, 16.43, 14.96, 10.02, 4.32, -5.36, 4.27, -0.41, 2.28, 8.39, 13.64, 15.54, 18.99, 17.38, 14.82, 12.81, 6.41, -1.96, -2.37, -2.46, 1.86, 6.97, 13.23, 12.83, 17.18, 14.96, 13.82, 8.39, 4.02, -7.18, 0.98, -0.66, 4.09, 8.35, 14.56, 15.34, 19.5, 17.82, 15.48, 9.24, 6.19, -3.22, 1.85, 0.12, 5.06, 8.37, 14.73, 15.29, 20.07, 17.75, 15.57, 10.95, 5.82, -2.28, -0.06, -3.19, 1.22, 6.8, 12.6, 13.83, 18.27, 16.34, 12.62, 9.3, 4.39, -6.16, -1.79, -1.24, 2.75, 7.7, 13.89, 13.93, 18.18, 16.1, 14.14, 8.94, 4.2, -6.82, 1.57, -2.23, -0.36, 6.94, 12.42, 14.81, 18.19, 17.16, 13.96, 11.11, 5.36, -4.62, -0.89, -2.62, 1.94, 6.91, 13.04, 13.79, 18.13, 16.51, 13.47, 9.28, 4.4, -5.71, 2.89, -1.1, 1.11, 8.22, 13.22, 15.3, 18.77, 17.8, 14.68, 12.18, 5.8, -2.78, -0.38, -1.23, 3.7, 7.64, 13.99, 14.24, 18.95, 16.85, 14.87, 10.2, 5.02, -4.46, -0.73, -2.51, 2.34, 5.95, 12.21, 12.55, 17.14, 15.13, 13.19, 9.4, 3.28, -5.69, 2.56, -0.6, 4.5, 9.73, 14.77, 16.23, 20.35, 18.36, 15.57, 10.78, 6.64, -1.68, 14.32, 10.55, 4.17, -4.71, -2.03, -3.53, 0.52, 5.22, 11.65, 12.42, 15.88, 13.45, 12.84, 9.36, 2.93, -5.9, 0.57, -1.71, 2.86, 7.05, 13.1, 13.62, 18.15, 16.41, 13.89, 9.53, 4.97, -4.53, 2.91, -1.71, -0.19, 7.83, 13.86, 15.44, 18.75, 17.49, 14.03, 12.07, 6.75, -4.6, -1.04, -3.3, 1.05, 6.49, 12.91, 14.32, 18.84, 16.38, 13.89, 10.59, 3.78, -5.18, 3.34, -1.24, 1.92, 8.24, 13.89, 15.0, 19.09, 17.66, 14.46, 12.0, 6.44, -2.9, 0.98, -2.13, 0.2, 8.13, 14.34, 16.49, 19.84, 18.17, 15.04, 11.56, 6.05, -6.2, 2.02, -1.27, 3.5, 8.63, 14.17, 15.17, 19.57, 17.47, 14.9, 10.17, 5.72, -2.83, 0.69, -2.35, -0.93, 6.69, 11.61, 15.22, 18.15, 17.54, 14.15, 10.3, 5.17, -4.94, 2.55, -1.04, 3.99, 8.21, 13.32, 14.59, 18.64, 17.1, 14.32, 10.4, 5.3, -2.5, 0.53, -3.27, 1.2, 4.96, 10.66, 12.0, 16.15, 14.45, 12.18, 10.52, 2.82, -4.52, 3.62, 0.13, 4.93, 9.21, 14.69, 15.52, 19.67, 17.77, 15.1, 11.58, 6.55, -1.52, 0.29, -0.93, 4.1, 7.52, 14.34, 14.38, 19.09, 17.23, 14.99, 10.49, 4.95, -4.0, 0.34, -2.33, 1.91, 7.27, 12.81, 14.25, 18.33, 16.72, 13.58, 9.6, 4.33, -5.01, 12.28, 16.39, 14.49, 11.22, 9.75, 3.05, -6.0, 0.2, -1.57, 2.63, 7.37, 13.33, 13.77, 17.83, 15.93, 13.4, 8.96, 5.19, -4.29, -2.05, -3.09, 1.45, 6.5, 12.57, 12.47, 17.01, 14.81, 13.66, 9.64, 4.42, -7.96, 0.52, -2.15, 3.31, 8.3, 14.19, 15.75, 19.69, 17.91, 14.56, 10.22, 5.26, -4.94, 1.51, -2.44, -0.85, 7.25, 12.93, 14.74, 18.51, 16.79, 13.59, 11.15, 5.3, -5.15, 2.0, -1.49, 2.33, 7.47, 13.09, 14.56, 18.77, 16.83, 13.35, 10.71, 4.91, -3.67, -1.43, -3.24, 1.62, 6.02, 12.31, 12.41, 17.06, 15.05, 13.21, 8.62, 2.85, -6.04, 0.73, -2.88, 1.83, 6.46, 12.02, 13.6, 17.73, 15.74, 13.08, 9.75, 4.16, -4.51, 2.62, -0.72, 3.66, 7.91, 13.17, 14.7, 18.54, 17.32, 14.74, 12.75, 6.0, -2.02, -0.85, -1.95, 2.85, 7.38, 13.88, 13.98, 18.57, 16.53, 14.41, 9.42, 4.31, -5.8, -2.59, -4.57, -1.15, 5.06, 11.84, 12.88, 17.71, 14.83, 12.44, 9.73, 2.74, -6.77, 1.65, -1.67, 0.94, 7.63, 13.68, 15.56, 19.08, 17.27, 13.87, 11.4, 5.44, -5.14, 1.04, -2.34, 1.28, 6.94, 12.58, 14.46, 18.71, 16.54, 13.11, 10.32, 4.47, -4.87, -1.9, -2.89, -0.98, 7.07, 12.11, 15.74, 18.41, 17.22, 14.44, 10.37, 5.17, -6.43, 1.71, -2.08, -0.18, 6.72, 11.99, 14.91, 17.63, 16.89, 13.2, 10.36, 5.24, -4.35, -0.69, -2.97, 1.59, 6.67, 12.53, 13.94, 17.91, 16.45, 13.25, 9.38, 4.06, -5.41, -2.87, -3.99, -0.05, 5.64, 12.42, 13.32, 17.06, 14.93, 12.63, 8.33, 3.44, -7.35, -0.13, -1.56, -0.48, 6.6, 11.26, 15.34, 17.78, 17.77, 14.69, 10.83, 5.7, -3.88, -1.75, -4.21, 1.2, 5.1, 10.88, 11.31, 15.42, 13.93, 11.67, 8.28, 2.78, -6.94, -1.68, -1.82, 2.55, 7.64, 13.63, 13.57, 17.7, 15.76, 14.35, 9.39, 4.54, -5.16, 0.66, -0.37, 3.89, 7.91, 14.03, 14.41, 19.11, 16.69, 15.26, 9.89, 5.07, -3.2, 0.87, -2.6, -1.55, 6.41, 12.66, 15.41, 18.41, 17.4, 14.01, 10.55, 5.42, -5.16, -0.01, -2.01, 2.54, 7.56, 13.47, 14.33, 18.75, 16.89, 13.97, 9.73, 5.11, -5.25, 0.95, -2.47, -1.06, 6.41, 12.44, 15.21, 18.18, 16.74, 13.16, 10.17, 4.71, -5.19, -1.14, -3.42, 1.31, 5.21, 11.66, 12.39, 16.89, 14.07, 12.21, 7.35, 2.7, -5.6, 2.94, -0.37, 4.4, 8.42, 14.0, 15.33, 19.24, 17.6, 15.51, 11.36, 6.14, -1.92, 1.83, 0.49, 5.12, 9.09, 14.94, 15.31, 20.28, 18.34, 16.21, 10.24, 6.78, -2.47, -0.39, -3.06, -0.33, 6.02, 12.36, 14.05, 15.47, 12.11, 9.05, 4.79, -5.74, 0.65, -2.72, -0.12, 6.85, 12.47, 14.21, 18.34, 16.21, 13.18, 10.63, 4.48, -4.91, 1.02, -2.14, 2.07, 7.21, 12.98, 13.95, 18.15, 16.43, 13.69, 10.3, 4.61, -4.44, 1.93, -0.63, 0.49, 6.49, 10.76, 14.65, 17.38, 17.75, 15.53, 12.01, 6.18, -1.77, 0.93, -2.91, 1.74, 6.37, 12.33, 13.56, 17.69, 15.72, 13.34, 10.11, 4.25, -4.35, 1.21, -2.25, 1.46, 7.4, 13.03, 14.76, 18.97, 17.14, 13.16, 10.44, 4.93, -4.94, -1.4, -1.3, 3.13, 8.17, 14.33, 14.26, 18.26, 16.35, 15.13, 9.91, 4.5, -5.13, 1.67, -1.78, 2.19, 7.82, 13.36, 15.13, 18.92, 16.73, 13.26, 9.58, 5.41, -3.52, 2.05, -1.74, 3.3, 7.49, 12.5, 14.21, 18.4, 17.06, 14.94, 11.52, 4.68, -3.09, -1.35, -3.15, 1.93, 6.69, 13.05, 14.26, 18.27, 16.27, 13.17, 9.2, 4.39, -6.18, 1.56, -1.39, 3.04, 7.72, 13.48, 14.97, 18.98, 17.55, 14.18, 9.98, 5.51, -3.84, 3.6, -0.74, 2.29, 8.16, 13.34, 15.26, 18.85, 17.82, 15.01, 12.89, 6.08, -2.25, 1.28, -1.57, 3.52, 8.48, 13.69, 15.25, 19.38, 17.32, 15.11, 10.07, 5.36, -3.38, 0.57, -1.75, 2.96, 6.49, 12.35, 12.64, 17.61, 15.63, 13.51, 9.48, 4.55, -4.32, 0.09, -3.23, -0.79, 5.99, 11.4, 12.98, 17.42, 15.31, 11.96, 9.23, 3.47, -5.92, 2.27, -1.19, 0.53, 6.9, 11.51, 15.17, 17.78, 17.52, 15.08, 12.0, 6.09, -2.46, 0.92, -3.28, -1.05, 4.88, 10.57, 11.97, 16.61, 14.46, 11.79, 10.15, 3.39, -5.34, 1.8, -1.87, 0.63, 7.42, 13.32, 15.3, 19.01, 17.03, 13.33, 11.07, 5.61, -4.85, -1.91, -3.6, 1.08, 6.22, 12.38, 13.33, 17.31, 15.82, 12.93, 8.09, 3.64, -6.82, 0.93, -0.84, 4.24, 7.66, 14.02, 14.23, 19.25, 17.27, 15.58, 10.75, 5.21, -3.39, 1.87, -1.34, -0.18, 7.85, 13.85, 16.14, 19.37, 17.79, 14.58, 11.57, 6.46, -4.87, 1.26, -1.07, 3.77, 8.7, 14.3, 15.72, 19.8, 18.06, 15.36, 9.53, 5.6, -3.24, 1.1, -1.15, 3.31, 8.53, 14.58, 15.92, 20.04, 17.9, 14.41, 9.85, 5.88, -3.49, 3.97, 0.21, 3.61, 8.32, 13.77, 15.23, 19.05, 17.52, 14.22, 12.54, 6.48, -1.68, -1.32, -3.05, -0.73, 7.24, 13.57, 15.97, 18.88, 17.18, 14.01, 10.24, 5.53, -6.75, -0.34, -1.87, 3.53, 7.33, 13.4, 13.85, 18.71, 16.62, 14.98, 9.57, 3.87, -4.28, 0.37, -1.75, -0.23, 5.81, 9.76, 14.97, 17.08, 18.02, 15.13, 10.92, 5.44, -2.48, -2.44, -3.46, -1.04, 7.04, 13.34, 16.17, 18.88, 17.19, 14.14, 10.0, 5.36, -6.92, -1.54, -2.86, 1.97, 6.95, 13.16, 14.21, 17.79, 15.84, 13.5, 8.02, 3.58, -5.34, 2.1, -1.57, 0.16, 7.18, 12.37, 14.74, 18.08, 17.01, 13.84, 11.18, 5.46, -3.75, 1.48, -1.87, 0.89, 7.32, 13.66, 14.94, 19.31, 17.19, 13.55, 10.86, 5.08, -5.06, 3.42, -0.28, 4.25, 9.17, 14.75, 16.39, 20.21, 18.28, 15.22, 11.83, 6.4, -1.81, 1.07, -2.36, -0.57, 6.54, 10.99, 14.83, 17.34, 16.92, 13.68, 10.29, 4.92, -5.03, -2.87, -3.49, 0.9, 5.83, 12.24, 12.04, 16.22, 14.19, 13.51, 7.78, 2.22, -8.31, 4.41, 0.81, 4.84, 9.61, 15.0, 16.22, 20.22, 18.12, 15.53, 13.19, 7.5, -0.84, -2.45, -3.72, 0.82, 6.01, 12.53, 13.16, 17.25, 15.0, 12.56, 7.27, 3.17, -6.27, 2.21, -0.29, 0.52, 6.71, 11.12, 15.1, 17.77, 18.26, 15.96, 12.07, 6.52, -1.68, 1.88, -2.26, 0.11, 6.15, 11.8, 13.36, 17.35, 15.56, 12.64, 10.96, 3.99, -4.3, -0.32, -2.1, -0.17, 6.92, 13.97, 15.41, 18.92, 16.84, 13.94, 10.74, 6.14, -5.9, 2.56, -1.55, 0.27, 6.84, 12.26, 14.14, 17.86, 16.89, 13.09, 10.74, 5.4, -3.66, 1.56, 0.06, 4.73, 8.73, 14.41, 15.19, 19.72, 18.16, 15.0, 9.17, 6.34, -2.82, 1.1, -1.75, 2.86, 7.93, 14.12, 14.88, 18.85, 17.03, 14.31, 10.14, 5.04, -3.9, -1.53, -2.87, 2.05, 6.81, 13.13, 13.59, 17.49, 15.45, 13.43, 7.49, 3.57, -5.56, 1.28, -2.92, 1.97, 6.34, 11.62, 13.01, 16.99, 15.3, 12.57, 9.51, 3.67, -3.89, 12.98, 14.43, 18.32, 16.57, 13.32, 10.2, 4.6, -5.1, -1.52, -1.85, 3.4, 7.86, 13.81, 14.76, 17.95, 16.56, 14.43, 9.2, 4.52, -6.3, 0.77, -2.05, -0.6, 6.34, 11.08, 15.58, 17.7, 17.29, 13.7, 10.35, 4.96, -4.39, -0.57, -2.96, 1.78, 6.91, 12.63, 13.59, 17.85, 16.0, 12.94, 8.75, 3.88, -5.32, 3.0, -1.27, 0.36, 6.93, 12.35, 14.79, 18.01, 16.71, 13.2, 10.56, 5.68, -3.43, -0.37, -2.84, 2.81, 7.52, 13.63, 14.91, 18.9, 17.11, 13.81, 9.56, 4.89, -5.36, 0.93, -2.55, 0.55, 7.3, 12.89, 14.42, 18.82, 16.83, 13.25, 10.34, 5.16, -4.44, -0.47, -4.12, -2.25, 4.47, 10.89, 12.73, 16.72, 14.77, 11.8, 9.9, 2.51, -6.36, 2.62, -1.28, 0.66, 7.58, 12.54, 15.04, 18.38, 17.41, 14.51, 11.62, 5.79, -3.35, -0.38, -2.37, 2.1, 6.8, 13.26, 14.2, 18.3, 16.2, 13.37, 8.4, 4.65, -4.59, 1.32, -1.6, 3.31, 8.28, 14.12, 15.17, 19.42, 17.61, 14.56, 9.31, 5.3, -3.49, -0.22, -1.58, 0.75, 7.76, 14.5, 16.31, 19.74, 17.45, 14.9, 11.62, 6.74, -5.17, 1.41, -2.21, 1.89, 7.19, 12.66, 14.35, 18.35, 16.69, 13.12, 10.22, 4.82, -4.33, -1.54, -2.08, 2.31, 7.54, 13.37, 14.04, 18.08, 16.33, 14.08, 8.79, 4.41, -5.54, 2.8, -0.09, 0.62, 5.21, 9.02, 14.07, 16.68, 17.99, 15.89, 12.41, 7.56, 0.04, 0.96, -1.43, 0.23, 5.59, 9.62, 15.09, 17.19, 18.5, 15.59, 11.43, 6.23, -2.07, 0.53, -1.9, -0.28, 6.09, 10.23, 14.9, 17.18, 17.31, 14.39, 10.81, 4.59, -3.84, -0.13, -1.26, 0.07, 5.59, 9.97, 15.62, 18.18, 17.77, 15.6, 10.99, 5.69, -2.44, -0.88, -1.3, -0.14, 6.48, 11.26, 15.56, 18.73, 17.83, 15.42, 11.13, 5.94, -4.3, -2.27, -1.97, -1.07, 6.03, 11.03, 15.23, 18.13, 17.33, 14.53, 10.23, 5.63, -5.27, 2.23, -1.73, 0.0, 6.85, 11.47, 14.58, 17.67, 17.11, 14.55, 11.76, 5.7, -3.23, -1.65, -3.22, -0.99, 7.13, 13.51, 16.28, 19.18, 17.79, 14.61, 10.49, 5.56, -6.21, 2.33, -1.54, -0.31, 7.52, 13.33, 15.42, 18.75, 17.51, 14.01, 11.39, 5.98, -4.35, 0.95, -1.76, 0.13, 8.18, 14.45, 16.45, 19.84, 18.1, 15.01, 11.34, 6.14, -5.72, 3.41, -0.1, 3.63, 8.79, 14.12, 15.35, 18.89, 17.53, 14.41, 12.5, 6.35, -2.1, 1.36, -1.82, 0.92, 7.64, 13.33, 15.29, 19.07, 17.17, 13.68, 10.71, 4.87, -4.73, 0.53, -2.37, -0.07, 7.53, 13.93, 16.13, 19.73, 17.63, 14.33, 10.53, 6.33, -5.57, -2.05, -2.68, -0.7, 7.3, 14.22, 15.73, 18.91, 16.55, 14.04, 10.27, 5.57, -6.57, 4.8, 0.13, 4.12, 8.5, 14.07, 15.21, 19.17, 17.5, 14.97, 13.56, 6.6, -0.83, 0.07, -3.63, -1.28, 6.41, 12.73, 14.23, 18.31, 16.09, 12.5, 9.55, 4.9, -6.68, -3.21, -7.71, -4.71, 0.62, 8.8, 9.21, 13.27, 10.94, 9.03, 7.17, -0.67, -8.48, 0.72, -1.4, 3.18, 8.35, 14.33, 15.4, 19.73, 17.79, 14.81, 10.41, 5.63, -4.41, -2.48, -4.26, -0.72, 5.43, 11.82, 12.86, 17.12, 14.9, 11.83, 8.88, 3.42, -7.54, 1.66, -1.74, 3.28, 7.55, 12.98, 14.22, 18.46, 16.81, 14.53, 10.12, 5.02, -3.5, -0.51, -2.15, 2.55, 7.55, 13.96, 14.91, 18.9, 17.1, 13.71, 9.21, 4.8, -5.35, -2.53, -2.54, 2.49, 7.55, 13.93, 14.39, 17.89, 16.3, 14.23, 8.24, 3.81, -7.1, -1.59, -2.41, 1.95, 6.75, 13.23, 13.25, 17.68, 15.76, 13.84, 8.42, 3.95, -6.2, -1.35, -2.76, 2.24, 6.18, 12.62, 12.51, 17.1, 15.01, 13.75, 9.56, 3.8, -7.38, -0.78, -1.99, 0.22, 8.21, 14.65, 17.42, 20.5, 18.53, 15.48, 11.42, 6.32, -5.39, -1.53, -5.64, -2.8, 3.22, 9.08, 10.64, 15.02, 13.0, 10.84, 9.36, 0.78, -6.73, 2.79, -0.76, 4.29, 8.33, 13.74, 15.1, 19.49, 17.57, 14.94, 11.39, 5.37, -2.2, 2.02, -0.07, 5.07, 9.15, 15.17, 15.77, 20.6, 18.69, 16.01, 10.12, 6.94, -2.1, -2.31, -7.57, -5.81, 0.46, 6.81, 8.6, 12.82, 10.55, 8.65, 7.9, -1.24, -7.46, 1.41, -0.56, 4.03, 8.21, 14.38, 14.86, 19.16, 17.47, 14.9, 10.36, 6.29, -3.46, -2.3, -7.12, -2.0, 0.2, 6.6, 6.6, 11.67, 9.37, 9.38, 8.16, -0.93, -7.02, -0.19, -3.6, 0.9, 4.54, 11.2, 11.44, 16.41, 14.12, 12.95, 9.86, 3.0, -6.17, -0.71, -3.19, -0.65, 6.64, 13.11, 14.59, 18.31, 16.43, 13.5, 10.42, 5.13, -6.49, 1.07, -2.14, 2.03, 7.79, 13.16, 14.84, 19.22, 17.28, 13.5, 10.01, 5.05, -4.47, -2.8, -3.48, -0.84, 7.29, 13.59, 16.21, 19.33, 17.05, 14.68, 10.51, 5.78, -6.6, -1.17, -1.25, 0.0, 4.96, 9.05, 14.55, 17.37, 17.82, 15.12, 10.82, 5.56, -2.8, 0.14, -1.9, -0.54, 6.07, 10.33, 15.18, 17.25, 17.38, 14.25, 10.42, 4.66, -3.81, 3.46, -0.31, 3.64, 8.67, 14.15, 15.49, 19.39, 17.5, 14.62, 12.13, 6.61, -2.1, 1.47, -0.49, 4.25, 8.36, 14.54, 14.93, 19.55, 17.85, 15.31, 9.21, 6.27, -3.06, 2.56, -1.51, 1.04, 7.69, 13.04, 14.7, 18.27, 17.11, 13.86, 12.1, 5.58, -3.54, -1.4, -3.16, -1.44, 7.13, 13.1, 15.87, 18.74, 16.97, 14.32, 10.1, 5.03, -6.71, 2.57, 0.0, 0.47, 6.56, 11.01, 14.86, 17.64, 18.06, 15.88, 12.25, 6.82, -1.55, -2.84, -4.15, 0.5, 4.59, 11.09, 11.05, 15.73, 13.25, 12.7, 8.49, 2.72, -8.56, 1.0, -0.87, 3.7, 8.37, 14.43, 15.25, 19.44, 17.81, 14.96, 10.32, 6.22, -3.65, -1.62, -2.06, 2.84, 8.1, 14.26, 14.88, 18.91, 17.13, 14.93, 9.49, 4.67, -5.71, -1.34, -3.82, 0.54, 5.51, 12.18, 12.34, 16.96, 15.14, 13.29, 9.34, 3.63, -6.59, -1.83, -5.77, -2.07, 2.98, 9.55, 10.72, 15.22, 12.89, 10.88, 8.81, 0.97, -6.72, -2.29, -2.96, 1.26, 6.69, 13.14, 14.26, 18.1, 15.96, 13.55, 9.27, 4.22, -6.4, -3.22, -7.95, -2.34, -0.32, 6.49, 5.41, 10.25, 7.92, 9.11, 7.18, -1.02, -7.65, 1.43, -1.26, 3.54, 8.87, 14.35, 15.77, 20.04, 18.21, 14.81, 9.91, 5.65, -3.5, -1.11, -2.35, -0.3, 7.58, 14.41, 16.27, 19.6, 17.12, 14.48, 10.65, 6.14, -6.31, 1.96, -1.06, 0.31, 6.89, 11.3, 15.58, 18.16, 18.46, 15.77, 11.77, 6.02, -2.6, 0.61, -2.45, -0.44, 5.43, 9.57, 14.16, 16.83, 16.64, 13.98, 10.62, 4.55, -3.91, 0.98, -1.37, -0.1, 6.12, 10.45, 15.17, 17.75, 17.77, 15.2, 11.23, 5.97, -2.92, -2.38, -2.06, -0.53, 5.8, 10.56, 15.23, 18.0, 17.14, 14.6, 10.28, 5.36, -4.48, 2.17, -1.19, 0.54, 7.33, 12.19, 15.87, 18.35, 17.98, 15.6, 11.82, 6.02, -2.89, 0.89, -2.15, -0.14, 6.6, 10.89, 15.14, 17.58, 17.64, 14.63, 10.85, 5.3, -4.14, 1.65, -2.15, -0.05, 6.79, 11.84, 15.11, 17.65, 17.43, 13.93, 10.77, 5.37, -4.19, 0.28, -2.81, -1.28, 6.11, 11.13, 14.98, 17.29, 17.04, 13.9, 9.97, 4.46, -5.31, -0.46, -2.58, -1.18, 5.78, 10.36, 15.25, 17.43, 17.59, 14.2, 10.13, 4.8, -4.34, -0.51, -2.4, -1.06, 6.49, 11.09, 15.52, 17.97, 17.61, 14.43, 10.03, 4.82, -5.05, -0.26, -1.4, -0.57, 6.34, 10.86, 14.7, 18.02, 17.44, 14.56, 10.8, 5.84, -3.74, -1.44, -2.88, -1.25, 6.92, 12.61, 15.82, 18.62, 17.55, 14.51, 10.34, 5.19, -6.0, -3.36, -3.17, -1.66, 6.14, 11.65, 14.89, 17.83, 16.83, 14.46, 9.66, 5.18, -6.46, 0.92, -2.63, -0.98, 6.57, 12.3, 14.81, 17.99, 17.03, 13.59, 10.55, 4.75, -5.29, -0.04, -2.51, -1.02, 7.04, 12.67, 15.95, 18.58, 17.71, 14.6, 10.21, 5.24, -5.67, -1.33, -2.71, -0.68, 7.45, 13.61, 15.89, 19.03, 17.38, 14.5, 10.55, 5.45, -6.72, -1.87, -2.87, -1.01, 7.13, 12.68, 16.1, 19.24, 17.92, 14.85, 10.65, 5.38, -6.16, 3.53, -0.5, 1.54, 8.12, 13.31, 15.7, 19.08, 17.91, 14.94, 12.52, 6.15, -2.49, 2.19, -1.59, 0.03, 7.05, 12.52, 14.82, 18.21, 17.02, 13.97, 11.21, 5.35, -3.86, 2.76, -1.25, 0.5, 7.91, 13.25, 14.95, 18.66, 17.39, 13.94, 11.83, 5.79, -3.44, 0.62, -2.22, -0.95, 7.38, 13.78, 15.71, 19.25, 17.47, 14.0, 10.61, 5.59, -6.21, -1.01, -2.7, -0.43, 7.88, 14.25, 16.8, 19.82, 17.94, 14.9, 10.89, 6.06, -6.01, 3.41, -0.8, 2.47, 7.91, 12.89, 14.81, 18.65, 17.64, 14.6, 13.29, 5.97, -2.17, 1.43, -2.36, -0.19, 7.03, 12.83, 14.67, 18.46, 16.65, 12.98, 10.62, 4.9, -5.25, 0.28, -3.46, -1.35, 6.35, 12.65, 14.23, 17.93, 16.29, 13.05, 10.55, 4.41, -6.59, 2.04, -2.5, -1.26, 7.12, 13.18, 14.66, 18.71, 16.61, 13.95, 11.15, 5.82, -5.69, 0.21, -3.82, -2.32, 5.14, 11.63, 13.81, 17.28, 15.14, 11.43, 9.33, 3.59, -6.45, 0.73, -2.53, -0.34, 7.48, 13.91, 15.71, 19.92, 17.64, 14.1, 10.57, 5.63, -6.61, 0.03, -2.5, -0.21, 7.52, 14.07, 15.99, 19.67, 17.55, 14.43, 10.82, 6.19, -5.73, -0.58, -2.56, -0.29, 7.69, 14.39, 16.63, 20.37, 18.24, 14.8, 10.95, 5.88, -6.14, -1.03, -2.3, -0.14, 7.26, 14.2, 15.75, 19.4, 17.37, 14.48, 11.14, 5.86, -5.95, -0.57, -2.5, 0.06, 7.39, 14.05, 16.23, 19.23, 16.82, 14.0, 10.58, 5.91, -6.16, -0.34, -3.76, 0.28, 5.78, 11.18, 12.77, 17.11, 15.23, 12.72, 10.25, 3.03, -5.37, 0.45, -2.59, 0.42, 7.15, 13.19, 14.76, 18.75, 16.68, 13.13, 10.3, 4.88, -5.63, -1.43, -3.39, -0.34, 5.96, 12.8, 13.54, 17.47, 15.48, 12.41, 9.79, 4.54, -6.99, -0.45, -2.25, 0.53, 6.96, 14.02, 14.87, 18.46, 16.51, 13.7, 11.21, 5.31, -5.88, -2.53, -4.54, -1.34, 4.39, 11.76, 12.82, 16.61, 14.39, 11.74, 9.52, 3.55, -6.99, 1.67, -2.62, 2.2, 6.46, 11.96, 13.22, 17.67, 16.01, 13.81, 11.1, 4.16, -3.9, 2.29, -0.8, 4.37, 9.3, 14.54, 16.01, 20.03, 18.15, 15.48, 10.53, 6.36, -2.34, -1.14, -4.86, -0.75, 4.1, 10.12, 11.39, 15.97, 14.04, 11.96, 9.33, 1.7, -6.01, -0.46, -2.97, 2.23, 7.46, 13.24, 14.78, 18.78, 16.9, 13.48, 9.76, 4.53, -5.75, 2.17, -1.51, 3.72, 7.95, 13.09, 14.32, 19.06, 17.23, 15.09, 11.0, 5.29, -3.06, 0.41, -2.76, 1.73, 6.55, 12.77, 13.49, 18.22, 16.12, 14.28, 10.55, 4.33, -4.94, -1.07, -2.42, 2.07, 7.02, 13.02, 13.6, 17.62, 16.15, 13.48, 8.88, 4.59, -5.96, 1.3, -0.74, 4.1, 7.78, 14.34, 14.95, 19.51, 17.65, 15.06, 9.49, 5.92, -3.6, -0.34, -3.83, 0.86, 4.46, 11.28, 11.24, 16.46, 13.96, 13.11, 9.69, 2.81, -6.39, -1.35, -2.31, 2.17, 7.0, 13.14, 13.57, 17.71, 15.94, 13.72, 8.4, 3.74, -6.03, -1.99, -2.31, 2.47, 7.38, 13.05, 13.53, 17.2, 15.89, 13.66, 8.36, 4.13, -5.68, -1.75, -2.5, 1.73, 6.65, 12.88, 13.07, 17.34, 16.01, 13.77, 8.81, 4.02, -5.93, -2.42, -2.2, 2.71, 7.64, 13.37, 13.62, 17.46, 15.69, 13.99, 9.0, 3.93, -5.87, -1.77, -2.63, 1.74, 6.44, 12.7, 12.35, 16.78, 14.71, 13.89, 9.48, 3.41, -8.01, 0.17, -1.7, 3.05, 7.39, 13.92, 14.36, 18.95, 16.59, 14.38, 9.74, 5.06, -4.37, 2.59, 0.0, 5.14, 9.59, 15.51, 16.53, 20.33, 18.87, 16.17, 10.39, 6.74, -2.01, 1.15, -2.78, 1.59, 6.32, 11.97, 13.31, 17.54, 15.55, 13.63, 10.24, 4.38, -4.34, 1.9, -0.44, 4.38, 9.44, 15.1, 15.99, 20.32, 18.53, 15.53, 9.92, 6.43, -2.73, -1.14, -2.62, 2.18, 6.63, 12.79, 12.91, 17.04, 15.24, 13.75, 8.88, 4.43, -6.71, -0.72, -1.23, 2.93, 7.55, -1.61, -2.64, 1.83, 6.85, 13.11, 12.8, 17.46, 15.19, 13.99, 9.04, 3.97, -7.56, 1.54, -1.64, 3.73, 8.6, 14.32, 15.68, 19.87, 18.43, 14.89, 9.82, 5.82, -3.26, 1.9, -1.15, 4.11, 9.07, 14.53, 15.78, 20.34, 18.5, 15.06, 10.11, 5.92, -3.09, 0.45, -3.12, 1.92, 7.31, 12.67, 14.39, 18.36, 16.8, 13.01, 9.96, 4.7, -5.59, 1.1, -2.26, -0.92, 6.96, 12.94, 15.44, 18.42, 17.25, 14.06, 10.76, 4.71, -5.19, 1.91, -1.4, -0.11, 8.06, 13.58, 15.9, 18.91, 18.14, 14.59, 10.75, 5.94, -4.94, -1.9, -2.7, -0.8, 7.0, 14.0, 15.5, 18.7, 16.3, 13.9, 10.2, 5.4, -6.5, -1.44, -3.36, 1.56, 6.42, 12.65, 13.52, 17.38, 15.16, 12.94, 7.92, 4.16, -5.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Greece&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;, &quot;Greece&quot;], &quot;legendgroup&quot;: &quot;Greece&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Greece&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [9.25, 10.63, 11.88, 13.44, 19.73, 21.77, 23.29, 24.81, 22.91, 17.77, 15.24, 11.31, 4.48, 8.21, 8.95, 11.8, 20.42, 23.82, 24.28, 25.24, 22.14, 15.02, 11.73, 7.5, 8.61, 11.8, 11.14, 13.48, 20.71, 23.95, 25.49, 25.87, 24.45, 18.31, 16.12, 12.46, 10.39, 12.02, 12.71, 13.25, 19.22, 21.81, 22.21, 24.17, 23.46, 18.71, 16.7, 12.67, 10.84, 13.17, 13.04, 13.89, 19.62, 24.19, 23.58, 24.07, 22.93, 18.5, 16.61, 14.57, 9.69, 12.37, 12.4, 13.08, 19.94, 24.46, 23.62, 24.97, 23.29, 17.56, 16.35, 12.97, 4.12, 8.26, 8.84, 12.87, 21.29, 23.68, 24.29, 25.36, 23.23, 16.81, 13.44, 8.7, 2.16, 6.9, 6.23, 10.47, 17.64, 21.34, 22.08, 22.93, 21.37, 15.07, 11.67, 8.3, 0.71, 5.59, 6.56, 10.29, 18.65, 20.06, 21.4, 22.09, 19.27, 12.76, 10.86, 4.42, 7.77, 11.31, 10.47, 13.41, 20.52, 24.81, 24.43, 25.1, 23.6, 17.6, 14.79, 12.55, 8.56, 9.74, 11.49, 13.0, 20.88, 22.39, 23.9, 25.37, 23.19, 17.59, 14.65, 10.09, 8.26, 11.79, 10.37, 12.98, 19.15, 23.29, 22.5, 23.49, 22.23, 16.66, 14.82, 12.19, 4.38, 7.06, 7.37, 9.1, 16.95, 19.94, 20.36, 21.8, 19.47, 13.23, 11.52, 6.8, 10.8, 12.92, 12.58, 13.55, 19.0, 23.37, 22.91, 22.84, 22.27, 17.79, 15.68, 14.49, 9.63, 12.79, 11.87, 13.36, 20.74, 24.61, 23.47, 24.55, 22.96, 17.27, 16.65, 13.4, 9.87, 12.44, 11.84, 13.17, 20.61, 23.08, 24.15, 25.28, 23.64, 17.97, 17.21, 13.01, 11.27, 13.0, 14.11, 14.74, 21.36, 25.01, 26.13, 26.7, 25.6, 20.72, 16.93, 14.33, 11.69, 14.47, 14.51, 14.84, 21.22, 24.58, 25.9, 26.38, 25.82, 20.92, 18.35, 15.78, 5.71, 9.62, 9.73, 11.77, 19.14, 23.13, 23.38, 24.15, 22.03, 15.96, 13.75, 9.26, 10.51, 13.29, 13.18, 14.11, 20.5, 24.65, 23.97, 25.15, 23.57, 18.28, 17.01, 13.72, -0.73, 4.7, 6.07, 10.35, 18.85, 19.45, 20.1, 21.2, 18.81, 12.74, 10.69, 2.89, 6.94, 9.77, 9.37, 11.49, 19.55, 23.6, 23.76, 24.66, 22.21, 15.86, 13.68, 10.26, 3.33, 7.22, 8.4, 11.66, 19.37, 22.49, 23.31, 23.49, 21.01, 14.45, 11.37, 7.66, 9.17, 10.47, 11.57, 13.57, 20.67, 22.47, 24.37, 25.57, 23.67, 18.37, 14.47, 10.67, 10.14, 11.74, 12.54, 15.74, 22.54, 23.74, 25.94, 26.64, 24.44, 19.04, 16.04, 11.64, 10.35, 11.45, 12.05, 13.85, 20.65, 22.25, 23.95, 25.05, 23.25, 18.85, 16.05, 11.95, 10.31, 11.94, 12.48, 13.2, 19.07, 22.4, 22.64, 24.06, 23.19, 19.54, 16.45, 11.9, 9.4, 12.5, 12.2, 14.5, 21.1, 24.8, 24.4, 24.9, 23.9, 18.8, 16.0, 8.17, 11.67, 10.87, 13.67, 21.47, 24.07, 25.77, 26.57, 24.17, 17.87, 15.77, 12.47, 6.4, 11.3, 9.1, 13.1, 20.5, 23.8, 24.2, 25.1, 23.3, 17.1, 14.5, 12.0, 4.07, 7.87, 9.07, 13.37, 21.67, 24.57, 25.27, 25.77, 22.67, 15.67, 12.37, 8.37, 8.85, 12.32, 11.85, 14.59, 22.53, 25.63, 26.39, 27.51, 25.22, 18.74, 17.17, 12.87, 9.29, 11.09, 11.89, 13.59, 20.39, 23.09, 24.09, 25.09, 23.49, 18.69, 15.29, 11.19], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Croatia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;, &quot;Croatia&quot;], &quot;legendgroup&quot;: &quot;Croatia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Croatia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-0.96, 1.48, 5.32, 11.91, 18.36, 19.13, 21.29, 19.57, 17.53, 11.67, 10.2, -1.48, 6.45, 5.83, 8.2, 12.16, 18.25, 20.12, 23.42, 22.0, 20.24, 16.69, 12.44, 4.99, -1.82, -0.59, 2.7, 7.25, 14.59, 14.93, 16.92, 17.29, 15.54, 9.16, 8.27, -4.66, 8.73, 9.09, 10.83, 13.63, 19.61, 21.06, 23.49, 23.94, 22.25, 19.32, 15.37, 8.23, 8.5, 8.65, 10.01, 13.21, 18.91, 20.4, 23.08, 23.18, 21.61, 18.8, 14.7, 8.24, -4.0, -0.43, 4.38, 10.4, 18.43, 18.2, 20.07, 19.37, 17.16, 11.51, 8.96, -2.76, 5.77, 5.16, 7.57, 11.75, 18.12, 19.54, 22.74, 21.98, 20.05, 16.54, 11.83, 4.08, 7.58, 7.78, 10.02, 13.55, 20.55, 21.45, 24.53, 24.35, 21.81, 18.43, 14.17, 6.05, -4.24, -5.24, -3.31, 0.9, 9.41, 8.87, 12.23, 11.53, 9.96, 7.03, 1.86, -7.43, -1.8, -0.1, 4.4, 9.8, 16.7, 17.6, 18.9, 17.9, 16.0, 9.2, 9.2, -3.5, 5.34, 5.14, 7.34, 11.24, 17.24, 19.04, 22.74, 21.84, 19.04, 14.84, 11.44, 4.34], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Hungary&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;, &quot;Hungary&quot;], &quot;legendgroup&quot;: &quot;Hungary&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Hungary&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-3.71, -0.32, 3.76, 10.6, 18.22, 17.87, 20.32, 18.89, 17.18, 12.13, 9.04, -2.95, -1.83, 0.73, 4.8, 11.68, 19.73, 19.4, 22.11, 20.49, 18.07, 13.06, 8.7, -1.04, -3.04, -1.49, 3.67, 10.36, 18.13, 17.92, 20.56, 18.51, 16.9, 11.47, 7.11, -3.59, -1.86, -0.44, 4.0, 10.54, 16.79, 17.18, 19.58, 17.97, 16.04, 10.9, 7.94, -2.92, -5.53, -0.52, 2.99, 9.14, 17.85, 18.17, 20.34, 18.77, 15.7, 10.65, 6.82, -2.19, -2.1, -1.2, 2.2, 9.5, 17.2, 16.3, 19.7, 17.4, 15.3, 10.9, 5.7, -3.6, -3.37, -2.29, 2.45, 9.16, 16.45, 16.27, 19.12, 17.29, 15.12, 10.38, 5.72, -3.56, -3.2, -0.5, 3.5, 10.6, 18.4, 18.1, 21.1, 19.3, 16.9, 12.2, 7.5, -2.2, -4.39, 0.4, 3.66, 9.53, 17.86, 18.3, 20.3, 19.36, 16.36, 10.72, 8.1, -2.14, -3.36, -1.33, 3.47, 9.68, 16.6, 17.12, 19.01, 17.52, 15.61, 10.03, 7.59, -3.36, -3.64, -0.31, 4.37, 10.12, 17.8, 18.37, 20.4, 19.78, 17.34, 11.59, 8.54, -2.21, -4.6, 0.4, 3.0, 9.9, 18.4, 18.3, 20.3, 19.1, 15.9, 10.1, 7.6, -2.2, -3.4, -0.3, 3.1, 10.4, 18.0, 17.9, 20.4, 18.7, 16.7, 11.0, 7.9, -3.0, -2.7, -1.3, 2.5, 10.4, 17.9, 17.0, 20.9, 17.6, 15.8, 10.3, 6.1, -3.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Iceland&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;, &quot;Iceland&quot;], &quot;legendgroup&quot;: &quot;Iceland&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Iceland&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-3.17, -3.87, -2.73, 0.28, 4.71, 9.1, 9.79, 11.21, 6.21, 3.82, -1.27, -0.63, -1.74, -3.03, 0.55, 2.73, 6.88, 10.22, 10.2, 11.74, 6.32, 5.31, -1.18, 0.29, -0.87, -1.55, 1.55, 2.84, 5.71, 8.15, 8.98, 9.96, 6.02, 5.37, -0.4, 1.6, -3.76, -6.49, -3.57, -0.19, 4.24, 10.06, 9.59, 11.79, 6.08, 2.93, -3.55, -1.54, -0.94, -3.68, -1.74, 1.41, 3.36, 7.68, 8.03, 9.02, 5.72, 4.53, -2.1, 0.66, -0.37, -2.53, -1.06, 1.91, 2.8, 7.24, 8.16, 8.72, 6.99, 5.41, -0.42, 1.67, -3.22, -3.32, -4.12, -2.02, 1.98, 6.18, 7.18, 10.38, 6.08, 3.78, -0.72, 0.08, -1.0, -3.5, 0.1, 2.8, 5.0, 8.5, 9.6, 10.1, 6.2, 4.7, -2.5, 0.4, -3.61, -4.03, -0.72, 1.29, 5.43, 8.34, 8.78, 10.05, 5.79, 4.61, -1.32, -0.71], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Isle of Man&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;, &quot;Isle of Man&quot;], &quot;legendgroup&quot;: &quot;Isle of Man&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Isle of Man&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [6.37, 2.54, 3.91, 7.19, 10.17, 13.06, 15.03, 15.45, 13.73, 13.39, 5.98, 5.64], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Italy&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;, &quot;Italy&quot;], &quot;legendgroup&quot;: &quot;Italy&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Italy&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [0.98, 3.25, 8.07, 11.56, 18.41, 20.04, 23.32, 22.01, 19.39, 14.66, 8.56, 0.86, 1.1, -5.91, 9.24, 9.84, 10.89, 13.94, 20.33, 21.14, 23.54, 24.59, 22.14, 18.49, 16.39, 8.14, 6.83, 7.69, 9.93, 12.26, 18.09, 19.05, 22.42, 22.9, 20.82, 16.29, 12.94, 6.05, 9.69, 9.45, 11.13, 13.51, 19.19, 20.25, 22.88, 23.91, 22.1, 18.17, 15.28, 9.32, 10.75, 9.99, 12.02, 13.86, 18.13, 19.73, 23.37, 24.81, 21.29, 18.11, 15.42, 9.6, 9.5, 8.75, 11.6, 13.37, 17.88, 19.26, 21.94, 23.94, 20.96, 18.14, 14.41, 8.74, -5.32, -9.29, -4.6, -2.01, 5.19, 5.81, 10.31, 8.37, 7.69, 5.9, -2.3, -8.01, 7.05, 7.37, 9.93, 12.36, 18.23, 19.49, 23.27, 23.09, 20.22, 16.95, 12.83, 5.91, 2.26, 2.77, 4.91, 8.59, 16.49, 16.19, 18.84, 19.07, 16.79, 13.12, 9.57, 0.68, 2.06, 2.98, 8.36, 12.66, 19.61, 21.06, 24.28, 22.95, 19.91, 15.4, 10.13, 2.05, -3.66, -6.34, -0.81, 2.81, 9.67, 9.39, 14.29, 11.27, 11.29, 7.98, -0.67, -7.58, 0.63, 1.52, 7.17, 10.87, 17.54, 18.63, 21.51, 21.28, 18.22, 13.59, 8.78, 0.71, 0.43, -0.75, 4.04, 7.51, 14.33, 15.4, 17.85, 15.57, 12.24, 7.3, -0.1, 21.79, 19.96, 13.81, 7.94, 0.01, 2.12, 2.67, 7.93, 12.07, 19.36, 20.31, 23.41, 22.89, 19.42, 15.06, 10.05, 1.9, -0.3, 1.47, 8.13, 11.92, 18.66, 19.42, 23.36, 22.15, 19.4, 14.11, 7.68, -1.25, 2.51, 0.47, 4.35, 9.24, 15.84, 16.51, 20.23, 18.61, 15.68, 12.54, 2.87, 1.39, 5.3, 9.44, 16.81, 17.05, 20.79, 19.76, 16.5, 13.27, 9.16, 0.44, 1.86, 0.46, 5.61, 10.27, 16.83, 17.02, 21.33, 20.91, 17.32, 12.72, 10.12, 1.33, -3.87, -6.73, -2.76, 0.2, 7.29, 7.52, 11.67, 9.76, 9.2, 8.11, -0.35, -6.72, 9.33, 9.0, 11.11, 13.26, 17.07, 18.03, 21.92, 22.83, 20.71, 18.07, 14.02, 8.84, 6.81, 6.79, 9.54, 12.02, 18.01, 18.72, 21.28, 22.14, 19.56, 15.64, 13.28, 5.18, 5.93, 6.7, 9.91, 12.23, 18.45, 19.43, 22.31, 22.32, 20.07, 15.54, 11.78, 5.64, 7.26, 7.39, 9.63, 12.12, 19.05, 20.55, 23.28, 24.04, 21.8, 17.05, 13.79, 6.16, 0.54, 1.25, 3.48, 6.9, 14.1, 13.53, 16.81, 17.0, 15.16, 10.7, 8.11, -0.73, 3.95, 4.13, 6.01, 8.31, 16.23, 16.77, 19.18, 20.01, 17.55, 12.91, 10.35, 3.49, -3.66, -3.43, 1.57, 5.74, 13.26, 13.22, 16.92, 15.21, 14.03, 9.09, 3.57, -6.6, -1.25, 0.1, 5.67, 9.89, 16.41, 17.17, 21.62, 20.58, 17.43, 12.97, 5.3, -0.78, -0.06, -3.74, 0.19, 4.74, 10.88, 11.69, 16.37, 14.6, 12.32, 10.84, 2.69, -2.59, 1.93, 1.81, 7.54, 11.65, 18.17, 18.93, 23.0, 20.97, 18.88, 15.25, 8.39, 1.72, 1.94, 3.35, 7.8, 11.3, 18.59, 19.95, 23.25, 21.53, 19.23, 14.28, 8.14, 1.36, 5.58, 4.65, 8.64, 11.31, 15.78, 17.53, 21.79, 21.52, 19.11, 16.29, 10.81, 5.9, 0.3, 1.36, 8.19, 12.41, 19.71, 20.36, 23.92, 22.75, 19.87, 15.37, 8.38, -0.33, -0.41, -2.76, -0.28, 4.23, 10.72, 10.72, 15.77, 14.1, 12.2, 9.57, 3.89, 2.75, 4.12, 9.12, 12.35, 18.76, 20.12, 22.74, 22.9, 19.63, 15.4, 10.77, 3.12, 6.31, 5.27, 7.95, 9.96, 15.97, 16.29, 21.05, 21.77, 18.32, 15.38, 11.48, 4.93, 10.57, 10.17, 12.72, 14.17, 18.36, 20.3, 23.05, 24.87, 21.27, 18.81, 15.29, 12.56, 11.57, 13.6, 14.88, 19.4, 20.52, 24.14, 25.45, 20.15, 17.27, 11.76, 0.76, 2.31, 8.0, 11.91, 18.18, 19.23, 22.9, 20.83, 19.0, 13.27, 6.39, 0.66, 0.77, 0.83, 7.46, 10.91, 17.32, 18.54, 22.56, 21.41, 18.67, 14.58, 7.12, 1.24, 0.04, 0.85, 7.5, 11.15, 17.86, 18.87, 22.66, 21.3, 18.79, 14.27, 7.25, -0.47, 2.62, 3.7, 7.5, 10.83, 18.05, 19.47, 22.74, 21.7, 19.23, 14.64, 8.63, 2.27, 6.17, 6.55, 10.39, 13.28, 19.01, 20.02, 24.29, 23.69, 20.72, 16.53, 12.06, 5.38, 4.83, 6.22, 9.28, 11.7, 17.74, 18.43, 22.1, 21.76, 19.67, 15.5, 11.2, 4.28, 4.62, 5.15, 8.5, 11.74, 17.95, 18.69, 21.15, 22.02, 18.91, 14.17, 11.86, 4.68, 8.29, 9.14, 10.49, 13.22, 19.73, 20.06, 21.7, 23.02, 20.77, 16.63, 14.87, 7.66, 8.61, 9.42, 10.7, 12.44, 19.18, 20.49, 23.4, 24.19, 21.67, 16.98, 14.91, 9.29, 8.58, 9.44, 11.76, 12.34, 17.61, 19.61, 22.2, 24.18, 21.83, 17.5, 15.26, 9.46, 11.06, 11.27, 12.81, 14.15, 19.5, 19.92, 22.5, 24.78, 22.53, 18.51, 16.69, 10.88, 10.1, 8.79, 10.75, 12.91, 17.03, 18.28, 22.65, 22.97, 20.51, 18.36, 14.87, 9.16, 10.11, 9.38, 11.74, 13.57, 18.08, 19.06, 22.24, 23.91, 21.38, 18.53, 14.63, 9.3, 6.2, 6.71, 9.24, 11.27, 17.08, 17.92, 21.43, 21.82, 20.01, 16.18, 12.26, 5.24, 11.52, 12.22, 13.81, 15.1, 20.56, 22.09, 24.42, 25.68, 23.69, 19.28, 17.37, 12.83, -0.26, -2.21, 1.44, 4.59, 11.23, 11.26, 15.79, 14.2, 12.0, 9.62, 4.73, -2.74, 2.63, 2.16, 9.01, 12.61, 18.94, 20.37, 23.78, 23.07, 19.78, 15.3, 10.21, 2.56, 1.54, 4.85, 9.81, 16.43, 18.06, 21.49, 21.21, 17.39, 14.43, 8.48, 1.26, 0.07, -0.94, 3.78, 7.36, 13.17, 13.54, 18.01, 16.61, 14.3, 10.65, 6.38, -1.08, 1.48, -0.52, 2.33, 6.87, 14.39, 13.95, 18.23, 17.43, 15.39, 12.53, 6.61, -2.5, 2.47, 2.53, 6.95, 11.06, 17.34, 18.97, 22.63, 20.19, 17.31, 8.38, 2.6, 1.47, 1.59, 3.86, 8.04, 14.44, 14.97, 18.81, 18.13, 14.51, 11.37, 6.72, -0.55, 1.54, 2.9, 8.24, 11.98, 19.37, 21.09, 23.61, 22.46, 19.56, 14.43, 9.37, 1.93, 2.39, 0.24, 4.16, 8.01, 15.22, 15.24, 19.8, 18.87, 16.53, 13.96, 8.14, -0.45, 0.61, -1.35, 3.03, 6.49, 12.91, 14.21, 18.45, 16.9, 14.22, 10.68, 6.68, -0.38, 3.7, 3.0, 7.03, 10.98, 17.69, 18.06, 20.75, 20.83, 17.74, 13.7, 11.24, 2.18, 2.42, 2.75, 2.82, 8.76, 13.06, 19.72, 20.59, 24.18, 23.5, 20.26, 16.12, 10.89, 2.69, 1.15, 0.35, 4.94, 8.26, 14.27, 14.63, 18.23, 17.78, 15.49, 10.57, 8.04, -0.91, 0.46, -0.26, 4.35, 8.64, 15.38, 15.68, 17.74, 17.68, 13.9, 10.72, 7.06, -2.17, 2.18, 3.57, 8.48, 12.05, 19.34, 20.68, 23.43, 22.82, 19.85, 15.36, 10.29, 2.84, 1.43, 1.76, 7.51, 11.6, 18.38, 19.35, 22.8, 22.09, 19.0, 14.85, 9.49, 1.63, 1.4, 2.38, 7.41, 11.23, 17.83, 19.07, 22.3, 22.12, 18.99, 14.52, 9.97, 2.08, 0.1, 0.33, 7.18, 10.96, 17.93, 19.1, 22.48, 22.11, 18.37, 13.84, 8.16, 0.26, 2.79, 0.28, 3.74, 7.81, 13.67, 12.73, 17.78, 16.46, 14.74, 13.33, 6.26, -1.01, 1.05, 1.03, 8.07, 12.2, 20.26, 24.24, 22.81, 18.64, 14.34, 8.64, 0.65, -1.39, 2.26, 8.82, 12.77, 18.87, 18.05, 20.87, 20.12, 16.94, 12.58, 7.37, -0.32, 3.88, 3.07, 7.3, 11.56, 18.04, 19.14, 22.32, 21.82, 18.75, 14.46, 11.1, 1.79, -0.6, 1.28, 7.57, 11.36, 18.91, 19.89, 23.15, 21.76, 17.96, 12.91, 7.11, -0.98, 0.1, -2.36, 0.44, 4.33, 10.89, 10.62, 14.33, 13.51, 10.98, 8.7, 4.95, -2.83, -1.27, -2.77, 0.83, 4.35, 11.02, 11.26, 14.03, 12.51, 9.88, 3.89, -2.73, -1.14, -1.43, 1.91, 8.09, 14.17, 14.22, 18.18, 16.73, 13.6, 9.35, 6.38, -2.81, 0.54, -0.76, 2.26, 5.33, 13.16, 14.06, 17.68, 15.52, 12.97, 9.78, 4.89, -2.11, 1.34, 1.86, 8.43, 12.92, 19.81, 21.21, 24.02, 23.22, 19.88, 15.09, 9.13, 0.92, 2.05, 1.81, 6.68, 10.42, 17.24, 17.64, 20.72, 20.62, 17.48, 12.6, 9.74, 0.86, 2.63, 2.24, 5.36, 10.07, 15.77, 15.81, 19.31, 18.41, 15.76, 12.37, 8.85, -0.29, -0.09, -0.7, 4.35, -0.98, 7.33, -0.82, 0.88, 6.88, 11.23, 19.23, 19.61, 23.1, 21.94, 19.66, 14.12, 7.28, -0.6, 0.89, 1.16, 6.49, 10.55, 17.05, 17.79, 21.84, 19.82, 13.26, 7.68, 0.81, 1.59, 0.96, 4.21, 8.91, 16.59, 16.27, 20.73, 19.87, 17.16, 13.78, 8.66, -1.81, -0.11, 7.37, 11.24, 17.42, 18.78, 23.06, 21.66, 18.62, 13.65, 7.01, -0.88, 1.37, 0.94, 6.98, 11.71, 18.36, 19.62, 23.3, 22.08, 18.86, 15.2, 9.15, 0.83, 1.7, 2.09, 8.23, 12.63, 19.43, 20.13, 24.65, 22.87, 19.41, 15.5, 8.32, 1.73, 11.77, 11.89, 13.11, 14.75, 19.73, 20.59, 22.87, 24.72, 22.91, 19.26, 18.1, 11.66, 2.49, 3.81, 7.95, 11.59, 18.71, 20.22, 23.02, 21.97, 19.4, 14.44, 8.38, 2.58, -3.72, -6.58, 0.21, 3.82, 10.03, 10.86, 14.78, 12.97, 12.5, 9.01, 0.94, -6.51, -3.94, -4.5, 0.6, 4.79, 12.23, 12.28, 16.1, 13.8, 12.54, 8.2, 1.31, -7.34, 2.48, -0.27, 4.48, 8.97, 14.83, 16.27, 20.48, 19.03, 16.13, 13.78, 5.63, 1.02, 0.23, 2.06, 8.17, 11.42, 18.82, 19.82, 23.57, 22.17, 19.37, 14.17, 8.47, -0.33, 2.2, 3.5, 7.5, 11.0, 18.5, 19.7, 23.3, 21.9, 19.2, 14.3, 8.5, 2.0, 4.43, 4.62, 7.75, 11.9, 18.5, 20.21, 23.22, 22.56, 19.88, 16.34, 10.79, 3.59, 2.18, 3.19, 7.67, 10.66, 17.32, 18.56, 21.18, 21.48, 18.71, 14.31, 10.01, 1.93, 2.81, 2.98, 7.28, 11.18, 17.51, 19.09, 21.36, 21.78, 18.87, 15.08, 11.01, 2.78, 9.72, 6.71, 10.34, 13.33, 16.25, 17.83, 22.69, 22.84, 20.4, 18.94, 12.84, 8.04, 5.87, 7.05, 9.84, 12.01, 16.79, 18.21, 22.13, 21.91, 19.14, 15.23, 12.1, 4.92, 3.43, 3.11, 5.93, 10.17, 17.73, 17.56, 21.01, 20.36, 17.68, 13.55, 10.39, 1.18, 6.84, 7.31, 10.29, 12.02, 17.54, 18.95, 22.52, 22.77, 20.21, 16.15, 12.47, 6.0, -2.84, -3.95, -1.02, 0.81, 8.73, 7.67, 12.23, 11.7, 10.02, 7.44, 2.39, -4.22, 8.98, 9.48, 11.49, 13.24, 17.34, 18.79, 21.74, 23.14, 21.14, 17.69, 14.99, 8.24, 3.45, 3.77, 5.47, 9.23, 17.55, 16.76, 19.72, 20.35, 17.93, 14.14, 10.48, 2.51, 10.1, 9.32, 10.8, 13.38, 18.29, 18.98, 22.81, 23.92, 21.17, 18.69, 15.44, 9.39, 10.14, 9.92, 11.32, 13.69, 19.02, 19.9, 22.56, 23.46, 22.17, 18.36, 15.93, 9.71, 8.73, 9.74, 11.53, 13.72, 19.88, 20.89, 23.88, 24.32, -2.23, -1.47, 0.72, 3.94, 12.17, 11.56, 13.52, 14.48, 12.76, 8.69, 6.19, -1.36, 9.11, 10.37, 11.31, 13.18, 19.37, 20.8, 23.05, 23.74, 22.37, 18.42, 15.82, 10.31, 11.03, 10.84, 11.99, 13.81, 18.94, 20.11, 23.14, 24.63, 22.51, 20.16, 17.04, 11.17, 10.68, 11.28, 12.58, 14.63, 20.18, 20.63, 23.53, 25.08, 22.83, 18.83, 16.97, 10.63, 11.37, 11.3, 12.61, 14.41, 19.75, 21.25, 23.41, 24.7, 22.91, 18.78, 17.07, 11.49, 10.51, 10.84, 13.01, 13.97, 19.04, 19.99, 22.46, 24.4, 22.47, 18.85, 16.92, 11.35, 3.46, 3.56, 5.16, 7.61, 14.46, 16.01, 18.95, 19.51, 17.31, 11.81, 10.36, 4.16, 10.79, 11.25, 12.79, 13.85, 19.37, 20.92, 23.48, 24.55, 23.55, 19.14, 17.39, 11.62, 9.01, 8.45, 11.35, 13.24, 18.06, 19.34, 22.61, 24.62, 21.3, 17.89, 13.89, 8.83, 9.48, 10.51, 12.81, 13.81, 19.49, 21.58, 23.99, 26.02, 23.54, 18.32, 15.79, 10.3, 8.55, 1.45, 1.12, 2.72, 8.42, 12.52, 19.92, 21.02, 24.62, 23.12, 19.82, 15.42, 9.02, 1.02, 5.65, 5.3, 8.45, 11.7, 17.7, 17.7, 22.5, 21.65, 19.15, 16.1, 10.95, 3.95, 7.93, 6.03, 9.73, 12.63, 16.93, 18.23, 22.83, 23.13, 20.83, 18.53, 12.73, 6.53, 6.81, 6.71, 9.01, 11.91, 16.41, 17.61, 21.41, 21.61, 19.21, 16.91, 12.21, 5.01, 9.19, 9.05, 10.3, 13.75, 19.7, 21.05, 23.5, 24.35, 22.3, 18.5, 15.55, 8.6, 7.86, 9.31, 10.81, 12.85, 19.71, 20.61, 22.51, 23.86, 22.01, 16.35, 14.41, 8.76, 8.85, 9.35, 11.05, 12.95, 18.15, 19.2, 21.8, 22.65, 21.5, 16.85, 14.1, 7.95, 3.9, 4.4, 8.4, 12.2, 18.4, 19.0, 21.5, 21.9, 18.8, 14.3, 11.7, 4.1, -1.52, 0.78, 8.08, 11.78, 17.48, 18.98, 22.48, 21.78, 18.78, 13.48, 6.98, -1.12, 0.15, 1.35, 7.05, 11.55, 18.15, 19.15, 23.75, 21.75, 18.85, 13.95, 6.55, 0.85, 8.39, 8.75, 10.85, 13.1, 18.79, 19.35, 21.95, 22.5, 21.09, 17.29, 13.75, 7.4, 11.48, 11.08, 12.88, 14.58, 20.83, 21.53, 24.53, 25.13, 23.48, 19.78, 17.58, 11.28, 0.54, 1.54, 8.04, 12.44, 18.84, 19.54, 23.54, 20.64, 18.14, 13.24, 6.24, 0.34, 13.1, 13.15, 14.35, 15.29, 19.4, 21.05, 23.4, 25.55, 24.7, 20.85, 19.35, 13.4, 9.6, 9.25, 11.75, 14.04, 18.25, 19.9, 22.7, 23.95, 12.04, 11.85, 13.29, 14.85, 19.79, 21.45, 23.65, 25.5, 23.55, 20.7, 18.4, 12.55, 8.55, 9.6, 11.4, 13.2, 18.6, 19.2, 22.75, 23.3, 21.25, 17.4, 14.95, 8.79, 2.9, 3.55, 5.65, 8.25, 16.04, 14.95, 18.5, 19.25, 16.54, 12.2, 10.35, 3.1, 1.09, 0.45, 6.55, 10.7, 16.7, 17.95, 21.85, 20.65, 17.85, 6.95, 1.0, 7.55, 8.2, 9.39, 12.0, 18.0, 18.35, 20.6, 22.5, 20.45, 16.4, 13.95, 7.75, 6.9, 7.65, 9.14, 11.15, 17.6, 17.9, 19.9, 21.6, 19.7, 14.7, 12.6, 6.89, -5.62, -9.72, -3.62, -1.82, 3.68, 5.28, 10.28, 8.48, 6.98, 6.68, -2.22, -8.12, 6.45, 7.54, 10.0, 12.3, 18.4, 19.45, 22.74, 22.75, 20.45, 16.1, 12.1, 5.1, 10.72, 9.17, 11.02, 12.62, 16.11, 17.61, 21.72, 20.32, 18.82, 15.02, 9.97, 3.1, 1.9, 6.4, 10.9, 16.4, 17.9, 21.4, 19.6, 17.2, 14.8, 7.4, 1.8, 4.0, 4.19, 7.7, 11.15, 17.9, 19.34, 22.7, 21.5, 19.35, 14.7, 9.95, 2.85, 5.55, 6.2, 7.55, 10.8, 18.5, 18.5, 21.25, 21.75, 19.15, 14.65, 12.7, 4.3, -0.93, 0.37, 5.87, 9.77, 16.17, 17.07, 20.77, 19.27, 16.97, 12.37, 5.27, -0.03, 1.09, 2.39, 7.59, 10.69, 19.09, 20.09, 23.39, 22.39, 19.49, 14.59, 8.69, 1.69, 9.29, 10.38, 11.44, 13.09, 18.99, 20.59, 22.54, 23.74, 22.14, 18.24, 15.99, 10.29, 6.25, 5.14, 7.5, 10.0, 15.79, 15.6, 21.25, 21.45, 18.54, 15.6, 11.3, 4.25, 7.75, 8.35, 10.1, 12.4, 17.85, 18.65, 21.6, 23.45, 21.5, 17.15, 14.7, 8.5, 0.46, -0.68, 5.01, 8.25, 13.36, 14.31, 18.81, 18.16, 16.0, 12.46, 7.21, -0.34, 3.9, 2.5, 6.4, 10.7, 17.8, 18.2, 22.0, 21.4, 18.9, 15.3, 10.1, 1.3, -1.19, -0.79, 4.21, 7.71, 15.11, 16.11, 19.31, 17.91, 16.51, 11.21, 3.81, -2.99, -1.05, -0.65, 5.85, 9.45, 15.99, 17.99, 21.29, 20.19, 16.29, 12.99, 5.39, -1.71, 8.0, 7.0, 9.85, 12.65, 17.04, 17.9, 22.2, 22.6, 20.0, 17.6, 13.0, 6.9, -1.1, -0.5, 6.4, 10.3, 16.3, 17.9, 21.8, 20.4, 17.3, 12.9, 5.7, -0.7, 1.38, -0.22, 2.73, 6.88, 13.32, 13.43, 18.93, 17.63, 14.73, 12.07, 6.66, -1.64, 2.68, 3.18, 7.58, 11.38, 17.98, 18.78, 22.38, 20.48, 18.28, 14.38, 8.38, 1.98, 6.66, 6.46, 10.26, 13.46, 19.16, 20.06, 24.16, 23.66, 20.76, 16.96, 12.26, 5.16, 4.92, 5.98, 8.98, 11.23, 17.33, 17.53, 21.53, 21.43, 18.88, 13.78, 10.67, 4.18, 7.53, 8.73, 11.28, 12.83, 17.83, 19.63, 22.52, 23.03, 21.18, 16.53, 12.98, 6.78, 10.51, 10.1, 11.81, 14.41, 19.86, 20.56, 23.8, 24.56, 22.96, 20.0, 16.36, 9.76, 6.07, 6.77, 10.11, 16.07, 17.17, 21.87, 20.92, 18.97, 15.82, 11.11, 4.67, -3.18, -2.08, 2.02, 6.82, 13.12, 13.12, 17.22, 15.92, 13.92, 11.32, 3.52, -5.68, 9.39, 10.04, 11.54, 14.44, 20.93, 21.59, 24.69, 25.24, 22.79, 16.19, 9.59, 6.7, 5.95, 8.55, 11.1, 16.79, 16.6, 21.65, 19.25, 16.35, 11.5, 5.55, 3.11, 3.26, 7.26, 10.96, 17.66, 18.71, 22.36, 20.76, 18.75, 14.86, 8.25, 2.1, 2.49, 2.49, 7.19, 11.19, 17.89, 18.69, 23.49, 21.79, 19.19, 14.89, 8.19, 3.09, 4.57, 4.58, 7.33, 11.68, 18.78, 18.88, 21.93, 21.77, 19.18, 15.68, 12.23, 2.93, -2.84, -4.54, 0.16, 3.86, 10.36, 10.66, 14.86, 12.86, 10.76, 9.06, 0.66, -4.24, -0.53, 0.47, 7.47, 12.57, 18.87, 20.87, 24.77, 23.17, 19.07, 14.57, 7.67, 1.77, -6.69, -12.29, -6.89, -4.69, 1.81, 2.61, 8.01, 6.01, 5.21, 3.91, -4.88, -10.49, 8.57, 7.37, 10.17, 13.27, 16.47, 18.37, 22.87, 23.07, 20.87, 18.47, 12.87, 8.47], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Jersey&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;, &quot;Jersey&quot;], &quot;legendgroup&quot;: &quot;Jersey&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Jersey&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [7.44, 4.1, 6.91, 9.01, 11.93, 14.19, 16.64, 17.08, 16.05, 14.45, 8.68, 5.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Latvia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;, &quot;Latvia&quot;], &quot;legendgroup&quot;: &quot;Latvia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Latvia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 9, 10, 11, 12, 10, 11, 12, 1, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 9, 10, 11, 12, 9, 10, 11, 12, 9, 10, 11, 12, 1, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-13.2, 5.48, 1.28, -8.47, -11.81, -8.23, -7.37, 4.37, 10.12, 15.05, 17.31, 15.48, 10.42, 5.73, 1.24, -8.77, -6.93, -6.98, -7.76, 3.05, 6.89, 14.01, 16.93, 16.66, 12.14, 7.83, -4.05, 10.89, 7.23, 3.22, -5.58, 7.01, 2.8, -7.61, -11.63, 10.33, 5.97, 1.35, -8.76, -13.14, -9.65, -6.53, 3.71, 9.49, 14.31, 16.29, 15.24, 9.86, 4.58, 0.16, -9.56, -13.24, -8.86, -6.22, 3.96, 10.19, 14.68, 16.35, 15.24, 10.09, 5.01, 0.97, -9.41, 8.04, 4.28, -6.11, -7.97, -6.16, -5.09, 3.76, 9.85, 14.58, 16.89, 16.74, 12.91, 8.29, 4.53, -6.05, -9.9, -7.7, -5.97, 4.61, 10.57, 14.86, 17.32, 15.96, 11.61, 6.93, 2.58, -8.67, -10.56, -7.01, -5.65, 4.78, 10.52, 14.42, 17.25, 15.54, 11.42, 6.4, 2.42, -8.65, -11.43, 10.54, 6.76, 2.75, -8.29, 11.01, 6.62, 2.32, -8.77, 10.01, 5.61, 2.05, -9.1, -13.36, 5.44, 2.04, -9.26, -13.0, -8.27, -8.09, 5.01, 10.95, 14.5, 16.98, 15.27, 10.38, 5.39, 2.42, -9.47], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Lithuania&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;, &quot;Lithuania&quot;], &quot;legendgroup&quot;: &quot;Lithuania&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Lithuania&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-7.4, -5.44, -2.55, 3.87, 10.28, 14.74, 17.23, 16.94, 13.24, 8.77, 4.99, -6.49, -10.53, -7.66, -5.78, 5.38, 12.06, 15.35, 17.92, 16.12, 12.38, 7.7, 3.09, -9.18, -11.53, -7.5, -5.37, 4.62, 11.45, 15.32, 17.2, 15.96, 11.02, 6.22, 2.47, -9.13, -9.01, -6.46, -3.38, 4.97, 12.23, 15.58, 17.53, 16.6, 12.88, 8.04, 3.67, -9.43, -10.34, -7.13, -4.48, 5.32, 12.59, 15.2, 17.43, 16.04, 12.33, 7.35, 3.5, -9.45, -10.45, -7.37, -3.71, 4.54, 12.68, 15.29, 17.45, 16.04, 12.02, 7.0, 3.54, -10.18, -11.02, -8.07, -5.02, 5.11, 12.61, 15.09, 17.31, 16.12, 11.71, 6.46, 3.19, -8.86], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Slovakia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;, &quot;Slovakia&quot;], &quot;legendgroup&quot;: &quot;Slovakia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Slovakia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-7.15, -3.0, -2.27, 5.23, 13.67, 13.96, 16.12, 14.77, 12.23, 8.33, 4.37, -6.95, -5.31, -0.3, 1.35, 7.75, 15.86, 16.48, 18.37, 17.49, 13.58, 8.74, 6.83, -4.65, -5.56, -1.02, 3.13, 8.57, 16.52, 17.16, 19.47, 18.08, 15.72, 10.5, 5.85, -3.19, -3.0, -0.99, 4.01, 10.62, 18.34, 17.74, 20.61, 18.57, 16.87, 11.3, 6.74, -3.33, -5.35, -0.75, 1.66, 8.28, 16.38, 17.05, 19.13, 17.94, 14.79, 10.09, 5.25, -3.11, -7.43, -3.2, -2.86, 3.94, 12.22, 12.43, 14.7, 13.4, 11.24, 7.1, 3.62, -6.83, -3.23, -0.77, 3.25, 10.49, 17.41, 17.79, 20.32, 18.34, 16.33, 11.71, 6.64, -3.27, -3.76, -1.28, 2.6, 9.45, 16.65, 16.45, 19.23, 17.88, 15.41, 10.95, 5.66, -3.61, -6.54, -1.04, 1.96, 7.93, 15.84, 16.84, 18.96, 17.71, 15.07, 10.1, 5.47, -3.64, -7.8, -9.8, -7.3, -3.4, 4.6, 4.8, 7.3, 6.3, 4.7, 2.7, -3.6, -8.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Liechtenstein&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;, &quot;Liechtenstein&quot;], &quot;legendgroup&quot;: &quot;Liechtenstein&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Liechtenstein&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [5.31, 0.67, 4.98, 8.55, 13.59, 14.99, 18.86, 17.8, 14.91, 13.2, 7.0, -0.28], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Luxembourg&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;, &quot;Luxembourg&quot;], &quot;legendgroup&quot;: &quot;Luxembourg&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Luxembourg&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [2.06, -1.68, 3.63, 7.49, 12.79, 14.61, 18.77, 16.98, 14.75, 11.47, 4.66, -3.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Moldova&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;, &quot;Moldova&quot;], &quot;legendgroup&quot;: &quot;Moldova&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Moldova&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [8.29, -7.66, -5.94, -3.59, 8.89, 16.49, 17.66, 18.47, 19.8, 14.6, 8.61, 7.43, -4.04, 8.83, -3.5, -6.68, -4.65, -2.22, 9.14, 17.47, 19.16, 19.54, 21.47, 15.8, 9.64, 8.81, -3.01, -6.35, -4.39, -1.81, 9.09, 16.7, 18.87, 19.29, 21.47, 16.09, 9.87, 8.52, -2.04], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Montenegro&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;, &quot;Montenegro&quot;], &quot;legendgroup&quot;: &quot;Montenegro&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Montenegro&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [4.33, 6.63, 9.53, 13.43, 21.23, 20.93, 24.83, 24.93, 21.63, 16.93, 12.03, 5.63], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Malta&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;, &quot;Malta&quot;], &quot;legendgroup&quot;: &quot;Malta&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Malta&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.73, 12.23, 13.65, 15.03, 20.31, 21.43, 24.4, 25.32, 23.72, 19.62, 18.06, 12.75], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Netherlands&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;, &quot;Netherlands&quot;], &quot;legendgroup&quot;: &quot;Netherlands&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Netherlands&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [4.22, 0.85, 1.33, 6.66, 11.21, 14.59, 17.35, 18.57, 15.79, 13.39, 7.87, -0.19, 2.91, -1.69, 0.41, 6.46, 11.15, 14.13, 16.97, 16.73, 13.69, 11.19, 5.1, -3.12, 4.45, 0.36, 2.23, 7.13, 11.58, 13.87, 16.64, 17.35, 14.05, 13.05, 7.4, -0.98, 3.64, -1.27, 1.82, 7.35, 12.4, 14.46, 17.54, 17.47, 14.26, 12.94, 5.73, -2.71, 3.53, -1.01, 1.4, 7.57, 12.65, 14.03, 17.2, 16.75, 13.28, 11.56, 5.76, -2.68, 4.4, -0.11, 3.21, 8.02, 13.06, 14.86, 17.88, 17.45, 14.46, 12.74, 6.35, -1.38, 4.35, 0.15, 2.38, 7.38, 12.72, 15.05, 17.98, 18.15, 14.8, 12.98, 6.95, -1.09, 4.34, -0.37, 2.2, 7.67, 12.55, 14.61, 17.72, 17.61, 14.5, 13.09, 6.32, -1.75, 4.89, -0.17, 2.07, 7.25, 12.64, 14.5, 17.42, 17.4, 14.77, 13.36, 6.9, -0.88, 4.42, 0.0, 2.91, 7.91, 12.81, 14.83, 17.96, 17.76, 14.56, 12.61, 5.99, -1.24, 3.53, -0.76, 0.6, 6.57, 10.98, 14.02, 16.7, 17.18, 14.44, 11.83, 6.07, -2.01, 3.97, -0.41, 2.7, 7.79, 12.69, 14.86, 18.01, 17.49, 14.42, 12.46, 6.11, -2.2, 3.54, -0.38, 3.17, 8.15, 13.56, 15.25, 18.83, 17.45, 14.82, 12.85, 6.22, -1.97, 3.72, 0.39, 0.85, 6.26, 10.74, 14.13, 16.87, 17.86, 15.12, 12.73, 7.2, -0.88, 4.6, 0.2, 2.5, 8.1, 13.1, 15.5, 18.5, 18.1, 15.3, 13.0, 6.7, -1.4, 4.83, 1.65, 3.41, 7.93, 12.81, 15.02, 17.88, 18.06, 15.83, 14.55, 7.75, 0.92, 4.29, -0.34, 3.76, 8.01, 13.18, 14.86, 18.46, 17.25, 14.17, 12.58, 6.29, -1.13], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Norway&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;, &quot;Norway&quot;], &quot;legendgroup&quot;: &quot;Norway&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Norway&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-4.29, -5.17, -3.11, 0.1, 4.07, 9.95, 12.99, 12.48, 7.12, 3.65, -1.83, -2.31, 3.4, 0.35, 1.16, 5.54, 7.48, 11.84, 12.77, 16.31, 10.63, 8.87, 3.34, 2.52, -0.5, -3.93, -0.73, 4.36, 8.62, 14.97, 15.72, 17.36, 13.78, 9.73, 3.18, -0.4, -1.69, -2.74, -1.24, 3.96, 8.06, 14.76, 16.56, 17.61, 9.71, 7.61, -1.14, -0.24, 2.69, -1.36, 0.76, 4.89, 7.93, 12.35, 13.21, 16.77, 12.09, 9.42, 4.3, 2.06, -8.08, -13.91, -7.9, 1.4, 6.42, 12.66, 12.56, 14.59, 7.38, 3.08, -8.0, -11.24, 2.83, -1.71, 0.76, 6.39, 10.76, 14.44, 13.72, 18.46, 11.16, 9.36, 2.21, 0.94, 2.89, -1.65, 1.05, 6.57, 10.71, 14.56, 13.87, 18.48, 11.45, 9.54, 2.41, 1.16, -8.54, -7.95, -5.75, 1.95, 10.45, 14.8, 16.15, 19.04, 9.25, 7.0, -7.5, -6.1, -0.83, -2.9, 0.07, 4.08, 6.81, 12.37, 13.81, 16.72, 8.57, 6.49, -0.4, -0.61, -17.01, -18.89, -12.37, -5.13, 1.72, 9.43, 12.59, 11.96, 5.24, 0.25, -10.73, -15.72, -6.94, -9.88, -5.07, -2.25, 0.76, 4.88, 8.32, 9.11, 6.43, 3.58, -0.93, -4.15, -8.43, -5.46, -10.38, -8.55, -1.14, 1.19, 6.01, 5.46, 3.86, 1.18, -3.37, -3.03, -0.37, -1.85, 0.0, 2.7, 5.89, 11.47, 13.69, 15.95, 9.66, 6.19, 1.46, 0.89, -2.72, -4.04, -0.57, 3.42, 6.61, 11.67, 13.54, 15.58, 8.86, 6.38, -0.6, -0.75, -0.98, -4.45, -0.86, 4.5, 9.58, 16.7, 17.0, 19.03, 14.38, 10.38, 3.97, -0.49, -14.16, -11.29, -18.72, -16.09, -4.46, -1.51, 1.68, 2.22, 1.22, -0.1, -6.92, -7.31, -9.76, -12.66, -9.3, -5.12, -0.91, 2.91, 5.29, 6.97, 2.19, -2.15, -6.12, -7.31, -7.49, -13.15, -6.63, 3.29, 8.74, 15.13, 15.46, 16.28, 10.25, 5.02, -9.26, -12.66, 0.01, -3.75, -0.46, 4.47, 8.15, 14.69, 14.74, 17.41, 13.51, 9.74, 3.41, 0.0, 2.52, -1.52, 0.8, 5.01, 8.01, 12.3, 13.24, 16.74, 11.99, 9.38, 3.98, 2.07, -6.89, -9.74, -4.71, -2.04, 0.93, 4.85, 8.48, 9.19, 6.37, 3.48, -1.11, -3.95, -7.41, -12.93, -6.41, 3.51, 8.96, 15.35, 15.69, 16.5, 10.47, 5.24, -9.04, -12.44, -11.81, -11.57, -5.32, -1.15, 4.11, 11.4, 13.8, 13.43, 6.47, 2.31, -8.01, -8.96, -2.55, -3.47, -1.92, -0.2, 2.81, 6.45, 10.95, 10.33, 7.56, 4.87, 0.76, 0.51, -12.83, -15.59, -10.28, -3.79, 1.19, 7.11, 11.32, 9.89, 4.45, 1.22, -6.22, -10.31, -16.06, -18.93, -13.4, -7.13, -0.8, 8.93, 11.96, 11.4, 3.89, -0.73, -10.98, -13.88, -15.18, -17.7, -11.87, -6.6, -0.59, 7.82, 11.13, 10.5, 3.97, -0.59, -9.65, -12.92, -5.18, -10.68, -6.38, 3.33, 9.15, 16.11, 16.32, 16.74, 10.81, 6.42, -4.53, -7.17, -4.79, -9.39, -3.94, 4.36, 9.45, 16.6, 16.98, 17.08, 11.83, 6.97, -3.08, -6.86, -0.38, -3.19, -0.65, 5.38, 7.93, 13.74, 13.84, 16.79, 9.44, 7.36, 0.22, -0.81, -10.31, -16.76, -11.64, 0.14, 5.17, 11.52, 11.95, 13.25, 6.08, 1.78, -10.51, -13.98, 0.98, -2.78, 0.13, 4.94, 8.18, 13.76, 13.49, 17.77, 13.25, 10.07, 4.19, 0.6, 1.05, -2.97, 0.19, 5.2, 8.51, 13.19, 13.84, 17.4, 12.79, 9.85, 3.61, 0.04, -0.92, -4.65, -1.03, 4.78, 9.64, 16.19, 16.72, 18.14, 14.02, 10.01, 3.02, -0.57, 0.76, -5.04, -0.43, 5.66, 11.01, 15.78, 15.54, 18.4, 12.18, 8.45, 0.67, -2.94, 1.73, -4.66, -0.78, 5.86, 9.38, 13.29, 14.59, 17.16, 11.88, 9.2, 2.28, -0.77, -7.36, -14.24, -8.63, 2.97, 8.61, 15.47, 15.1, 15.49, 8.86, 4.7, -8.45, -11.19, 2.92, -1.79, 0.53, 6.86, 11.38, 15.9, 15.35, 18.12, 10.69, 9.04, 1.5, 0.72, -3.0, -8.47, -4.76, 3.16, 7.9, 15.0, 15.56, 15.72, 11.59, 7.42, -1.26, -4.2, 2.07, -2.86, -0.38, 5.38, 9.33, 13.04, 13.27, 16.48, 10.29, 8.62, 1.51, 0.51, -5.64, -7.63, -3.84, -1.49, 1.5, 5.32, 9.17, 9.42, 6.52, 3.65, -1.26, -2.79, -3.01, -7.64, -4.0, 4.56, 9.89, 16.42, 16.78, 17.5, 12.26, 8.12, -0.82, -4.08, -3.75, 3.87, 9.56, 17.27, 17.08, 17.8, 12.0, 7.33, -1.75, -5.16, -6.06, -9.95, -4.29, 1.6, 7.23, 14.81, 14.15, 16.33, 9.67, 5.18, -3.31, -6.29, -10.69, -17.51, -11.51, -1.0, 4.41, 11.54, 11.64, 12.71, 5.97, 2.24, -10.01, -13.05, -5.71, -12.41, -9.42, 3.07, 8.96, 16.21, 16.31, 17.27, 11.05, 5.89, -4.2, -7.86, -8.62, -13.48, -8.37, 0.77, 5.65, 12.26, 12.44, 13.38, 7.94, 3.31, -7.45, -10.62, -6.12, -12.26, -7.02, 2.99, 9.19, 16.23, 16.07, 16.94, 10.9, 6.06, -4.02, -7.68, -8.0, -16.67, -8.02, 2.9, 8.02, 14.39, 13.98, 16.07, 8.39, 4.12, -6.32, -11.51, -3.61, -8.51, -5.25, 4.76, 9.71, 16.2, 16.74, 16.4, 12.06, 7.39, -2.79, -6.43, -0.99, -4.69, -1.72, 4.41, 9.03, 14.95, 16.22, 16.71, 13.02, 8.88, 0.67, -2.21, 1.55, -4.3, -0.71, 4.55, 7.64, 11.4, 12.66, 15.9, 11.0, 9.09, 2.84, -0.39, 2.35, -2.63, 0.68, 6.28, 9.73, 14.03, 14.42, 18.3, 12.06, 9.5, 2.8, 0.45, 1.68, -2.95, -0.5, 5.49, 9.26, 13.42, 13.21, 17.11, 10.56, 8.7, 1.7, -0.03, 2.92, -1.19, 0.88, 5.52, 8.5, 12.49, 13.54, 17.21, 11.69, 9.67, 3.63, 1.47, -1.88, -6.09, -2.59, 4.71, 8.91, 14.31, 13.51, 17.31, 8.81, 6.21, -1.69, -2.89, 0.41, -2.61, 0.95, 4.41, 16.08, 9.66, 7.46, 1.46, 0.36, -10.66, -12.04, -6.25, -2.32, 2.31, 10.75, 13.23, 13.61, 5.7, 1.71, -7.39, -8.18, -0.55, -1.25, -1.03, 1.39, 4.36, 8.86, 12.74, 12.13, 8.48, 5.45, 1.26, 1.14, -16.6, -18.78, -12.88, -6.44, 0.14, 8.37, 11.71, 10.85, 4.34, -0.32, -10.6, -14.39, -17.03, -20.22, -12.61, -6.28, 0.18, 9.78, 12.61, 11.86, 4.67, 0.12, -11.34, -15.42, -6.63, -9.31, -4.36, -1.73, 0.86, 5.01, 9.35, 9.45, 6.58, 3.54, -1.72, -3.25, -12.53, -14.51, -19.11, -16.0, -3.69, 0.2, 4.69, 3.45, 2.47, -1.21, -8.44, -8.25, 4.04, 2.0, 3.36, 5.37, 6.12, 9.64, 10.86, 13.11, 8.83, 3.08, 3.83, -1.88, -5.75, -3.06, 5.01, 9.02, 15.05, 14.53, 17.13, 9.27, 6.24, -2.03, -3.85, -2.63, -3.3, -1.76, 0.79, 4.27, 9.06, 12.34, 12.71, 7.77, 4.8, -0.32, -1.05, -5.58, -8.56, -6.74, 1.93, 6.69, 13.27, 13.25, 15.97, 7.57, 4.7, -5.01, -6.52, -3.01, -6.8, -3.34, 4.04, 9.3, 15.81, 16.64, 16.92, 12.63, 8.37, -0.63, -4.1, -0.79, -4.49, -1.51, 4.74, 9.69, 15.68, 16.83, 17.26, 13.31, 9.15, 0.9, -1.96, -2.31, -7.15, -3.77, 3.31, 8.29, 15.43, 15.22, 16.37, 12.07, 7.94, -2.27, -6.93, -3.13, 3.9, 8.97, 15.66, 15.78, 16.8, 12.42, 8.04, -7.49, -11.9, -5.9, 1.64, 7.1, 13.28, 13.01, 14.53, 8.47, 4.09, -6.27, -9.5, -9.12, -11.92, -6.05, -1.66, 3.31, 10.54, 13.98, 13.1, 7.05, 3.21, -4.24, -6.86, -5.87, -9.88, -7.91, -1.85, 3.24, 9.58, 8.64, 12.5, 5.88, -6.01, 13.22, 16.84, 9.94, 8.81, 1.26, 0.31, 2.98, -1.16, 0.26, 5.78, 8.1, 12.7, 13.28, 16.28, 10.56, 9.09, 2.44, 1.93, 3.91, 0.3, 1.17, 5.31, 7.34, 11.48, 12.73, 16.17, 10.65, 9.55, 3.43, 2.86, 0.2, -3.47, -1.44, 5.02, 7.16, 12.53, 12.88, 9.21, 7.23, 0.21, -0.3, 2.6, -1.54, -0.11, 5.41, 7.73, 12.33, 12.85, 16.3, 10.04, 8.3, 1.83, 1.5, -8.66, -13.6, -7.52, 1.71, 6.65, 13.19, 12.9, 14.65, 8.67, 3.89, -7.56, -11.54, 2.14, -4.38, -0.2, 5.82, 10.19, 14.54, 14.26, 17.87, 11.48, 9.06, 1.75, -0.65, 16.87, 9.79, 8.49, 0.07, -0.81, 0.79, -2.57, 1.08, 5.27, 7.0, 16.92, 10.24, 8.4, 1.7, 0.62, 1.86, -0.89, 1.09, 5.33, 7.0, 11.63, 12.62, 15.75, 10.1, 8.12, 2.4, 1.64, -4.23, -4.28, -2.87, 0.33, 4.67, 9.94, 13.32, 12.7, 7.6, 4.54, -0.99, -1.21, -4.78, -6.95, -3.43, -0.49, 3.4, 9.54, 13.07, 12.51, 7.92, 4.25, -0.93, -2.5, -2.64, -7.25, -3.06, 4.37, 9.77, 16.23, 16.78, 17.44, 12.83, 8.66, -0.21, -3.49, -2.97, -7.37, -2.19, 4.21, 9.57, 16.21, 16.42, 17.41, 12.61, 8.17, -0.04, -3.59, -10.62, -12.12, -7.27, 1.48, 9.63, 11.58, 13.58, 15.68, 7.33, 4.18, -11.52, -12.82, -8.44, -13.32, -8.47, -1.29, 4.19, 10.57, 10.13, 12.69, 5.16, 1.79, -7.53, -9.15, -3.26, -7.47, -2.92, 4.86, 10.34, 17.39, 17.25, 18.71, 12.22, 7.59, -1.41, -4.73, -8.25, -12.2, -7.8, 4.9, 9.0, 13.6, 18.1, 17.45, 12.0, 6.05, -4.55, -5.7, -11.9, -14.25, -7.3, 5.0, 11.0, 14.0, 18.25, 17.25, 9.5, 6.75, -7.25, -11.4, -8.45, -12.0, -6.05, 5.8, 10.14, 15.8, 18.4, 18.1, 11.2, 7.0, -4.85, -7.25, -8.3, -11.6, -5.25, 6.1, 10.05, 15.5, 18.85, 18.54, 11.15, 8.39, -4.39, -8.09, -12.14, -14.14, -7.14, 5.16, 11.11, 14.46, 17.36, 16.86, 10.66, 6.71, -8.04, -11.84, -8.43, -15.47, -8.88, 3.42, 10.37, 13.57, 14.57, 16.92, 8.57, 5.87, -9.18, -12.43, -13.4, -16.5, -8.95, 3.04, 9.35, 13.8, 14.85, 16.54, 8.95, 5.14, -10.55, -14.85, -13.45, -14.95, -10.6, 0.0, 7.2, 9.8, 11.6, 14.0, 7.3, 3.25, -12.8, -15.6, -14.8, -17.3, -10.3, 1.0, 9.05, 11.75, 13.2, 14.75, 8.3, 2.5, -14.3, -18.29, -8.2, -13.75, -9.25, 4.0, 10.75, 14.75, 18.75, 17.54, 11.5, 8.5, -5.75, -8.5, -10.3, -15.2, -10.05, 3.15, 10.6, 13.7, 16.4, 16.95, 9.0, 7.39, -8.35, -10.9, -8.45, -12.85, -6.1, 3.2, 10.25, 13.25, 15.55, 7.15, -7.85, -11.75, -10.2, -13.75, -8.39, 4.25, 10.85, 13.85, 14.95, 16.5, 10.45, 6.5, -10.14, -13.15, -11.12, -12.37, -8.47, 0.07, 7.38, 9.98, 12.68, 15.13, 6.53, 4.47, -10.36, -12.17, -9.76, -12.67, -6.57, 4.42, 10.08, 14.13, 16.53, 17.13, 11.38, 8.17, -5.17, -7.97, -8.89, -13.95, -6.75, 4.4, 10.3, 12.7, 16.5, 15.9, 9.15, 8.05, -7.2, -9.65, -11.65, -14.15, -7.7, 3.1, 10.5, 13.85, 16.75, 17.35, 10.15, 8.6, -8.29, -12.9, -9.35, -13.9, -6.14, 2.85, 9.25, 11.7, 14.05, 15.05, 8.95, 6.7, -8.9, -12.05, -8.35, -12.05, -6.14, 2.69, 10.79, 13.4, 16.7, 16.79, 11.45, 7.65, -8.0, -10.85, -8.55, -12.65, -10.6, -1.15, 7.0, 10.3, 12.45, 13.6, 7.6, 4.6, -9.1, -10.15, -11.0, -14.25, -11.9, -2.25, 4.0, 9.05, 11.55, 13.35, 6.0, 3.1, -11.45, -13.3, -10.5, -4.75, 1.25, 6.25, 11.75, -8.75, -12.9, -4.79, 5.1, 10.9, 14.6, 17.2, 17.2, 11.45, 10.2, -4.9, -8.85, -4.0, -7.41, 0.25, 7.19, 11.64, 16.79, 19.39, 20.23, 13.09, 10.89, -0.31, -2.91, -6.37, -11.17, -3.57, 6.68, 10.72, 14.73, -3.35, -7.7, -2.85, 6.5, 11.5, 16.75, 19.25, 12.1, 8.55, -0.9, -2.75, -8.05, -14.0, -6.59, 3.94, 9.05, 12.75, 15.3, 15.4, 10.0, 7.5, -6.8, -11.2, -10.6, -16.4, -13.05, -6.8, -2.95, 3.25, 5.6, 7.3, 0.0, -0.15, -11.3, -9.7, -5.0, -10.0, -3.25, 5.2, 11.55, 15.85, 17.5, 12.6, 9.0, -3.0, -7.25, -2.1, -7.96, -1.41, 5.44, 10.19, 16.04, 17.84, 19.19, 14.14, 10.74, 0.99, -2.15, -5.35, -13.5, -6.6, 4.64, 9.25, 14.55, 18.65, 18.2, 12.0, 9.64, -3.35, -7.7, -1.85, -3.95, -2.8, 5.0, 9.3, 14.15, 15.2, 16.6, 10.55, 7.35, -4.05, -4.04, -9.89, -6.25, 2.85, 8.95, 13.05, 14.95, 15.35, 9.95, 7.3, -5.85, -9.39, -9.43, -14.03, -9.53, -1.83, 5.66, 10.37, 12.56, 13.72, 6.82, 5.07, -10.83, -11.63, -0.35, -5.1, -0.5, 5.55, 8.95, 14.8, 15.0, 17.3, 11.0, 7.3, 0.94, -0.95, -1.04, -6.95, -2.54, 5.0, 8.84, 14.2, 15.45, 15.79, 10.35, 7.55, -2.0, -5.5, 12.17, 8.17, 2.66, 1.02, -0.04, -9.0, -4.3, 4.25, 9.34, 14.4, 17.1, 17.29, 12.0, 9.15, -0.5, -2.6, 0.7, -6.4, -3.7, 6.6, 10.55, 0.14, -2.76, -0.95, 6.54, 10.54, 13.84, 15.29, 18.39, 10.89, 7.19, 1.99, -0.16, 2.45, -1.25, 0.55, 7.8, 12.0, 16.2, 17.54, 19.7, 10.8, 8.6, 2.3, -0.5, 0.55, -2.99, -0.45, 7.7, 13.55, 16.45, 16.29, 20.0, 11.4, 9.15, 1.0, -1.34, -1.75, -2.65, 6.05, 16.15, 16.6, 20.7, 11.85, 7.9, -1.89, -4.65, -4.4, -8.64, -5.35, 2.44, 8.75, 12.4, 14.25, 16.75, 6.4, -5.6, -6.5, -0.3, -3.6, -2.8, 6.6, 12.25, 14.35, 15.75, 19.25, 11.5, 7.45, 1.25, -1.75, -5.85, -9.7, -5.6, 0.64, 8.8, 10.75, 12.5, 14.8, 7.8, 5.8, -8.2, -7.2, -2.28, -6.13, -4.43, 4.12, 11.52, 14.27, 16.06, 19.12, 10.97, 7.17, -1.58, -3.63, 1.9, -1.09, 0.79, 6.89, 13.0, 14.85, 19.7, 12.2, 8.2, 3.15, 1.84, 1.22, -2.58, -0.38, 5.37, 13.62, 16.47, 16.12, 18.27, 9.57, 7.82, 0.21, -0.07, -1.7, -4.19, -3.2, 6.05, 13.2, 14.85, 16.95, 19.29, 12.2, 9.1, -1.59, -2.9, -4.1, -5.3, -5.14, 6.2, 12.6, 15.05, 16.6, 18.0, 10.65, 8.2, -3.6, -4.9, -9.8, -15.0, -10.4, -6.15, -2.6, 0.05, 3.8, 7.7, -0.14, -1.85, -10.25, -10.54, -4.05, -6.7, -4.3, 3.5, 10.5, 13.8, 14.3, 17.79, 7.65, 5.25, -4.44, -4.25, -6.6, -8.6, -5.4, 3.4, 10.4, 15.3, 14.1, 17.39, 7.74, 6.0, -6.85, -6.54, -0.6, -3.55, -1.3, 5.6, 13.85, 16.29, 17.45, 19.75, 10.6, 7.95, -0.79, -1.8, -1.66, -4.22, -3.72, 5.82, 12.43, 16.28, 17.72, 20.22, 11.03, 9.38, -1.37, -2.77, -1.57, -3.67, -1.42, 5.63, 12.68, 14.93, 16.43, 19.63, 8.93, 7.93, -1.77, 0.57, -2.05, -4.94, -4.39, 5.1, 11.75, 15.15, 16.0, 19.15, 9.75, 9.25, -2.09, -2.05, 2.57, -0.03, 0.37, 6.62, 10.92, 16.22, 15.07, 19.41, 9.97, 9.26, 2.17, 2.67, 1.4, -5.4, -4.5, 5.95, 10.6, 15.35, 16.2, 19.65, 10.35, 10.6, -1.9, -1.45, -2.06, -5.91, -2.81, -1.4, -4.0, -2.75, 5.35, 11.6, 15.0, 17.29, 19.6, 10.3, 8.95, -1.9, -0.25, 0.75, -3.65, -1.15, 6.55, 11.2, 14.95, 16.95, 19.95, 10.14, 9.39, -1.25, 1.3, -0.59, -3.19, -1.55, 7.24, 11.2, 15.7, 14.85, 19.65, 10.65, 8.95, -1.64, 0.15, -1.5, -6.3, -4.0, 6.15, 9.25, 14.2, 17.25, 18.15, 9.84, 8.85, -2.8, 0.55, -9.92, -11.52, -9.81, -1.82, 7.13, 9.13, 12.18, 13.78, 5.53, 3.93, -12.97, -10.42, -7.45, -6.5, -4.1, 5.04, 11.25, 14.4, 14.65, 19.1, 10.15, 7.39, -5.4, -3.5, -5.0, -6.4, -3.69, 5.65, 10.5, 15.6, 15.55, 18.65, 9.45, 7.55, -4.3, -4.94, -12.45, -10.8, -8.75, 0.4, 9.09, 11.4, 13.35, 14.65, 7.89, 3.44, -16.29, -9.35, -8.5, -9.64, -5.8, 1.34, 7.0, 11.9, 12.75, 14.65, 6.3, 5.3, -6.3, -6.45, -9.14, -9.2, -5.45, 1.75, 9.9, 14.0, 15.0, 19.25, -5.25, -6.3, -3.3, 4.6, 11.0, 16.25, 16.0, 19.1, 9.59, 6.9, -3.0, -5.6, -6.85, -8.89, -5.05, 2.15, 9.75, 15.2, 15.35, 19.0, 9.25, -8.85, -2.7, -4.19, -0.5, 6.6, 7.1, 16.75, 16.79, 19.0, 10.09, 9.5, -1.3, -1.84, -4.94, -5.19, -3.6, 2.55, 5.55, 13.2, 13.25, 17.45, 7.2, 6.1, -4.65, -3.85, -1.75, -4.25, -0.5, 4.5, 6.25, 14.2, 15.0, 18.29, 9.25, 6.5, 0.45, -0.5, -10.5, -7.5, -5.3, 0.9, 6.75, 13.5, 14.7, 16.85, 7.8, 5.3, -8.65, -7.4, -12.0, -11.65, -9.7, -0.9, 5.25, 13.2, 12.3, 15.3, 6.25, 1.94, -10.0, -11.9, -9.36, -11.12, -6.42, -1.77, 2.72, 11.58, 10.98, 15.32, 4.47, 2.08, -7.27, -10.27, -2.0, -3.0, -0.75, 4.1, 5.95, 13.75, 16.5, 16.95, 9.1, 6.64, 1.15, 0.04, -0.85, -2.85, 0.45, 4.35, 6.75, 12.35, 14.8, 17.85, 9.3, 7.1, 1.8, 1.19, -8.85, -10.8, -6.3, -4.5, -0.25, 9.2, 10.45, 13.54, 3.65, 1.25, -7.9, -7.85, -12.8, -9.14, -7.3, -1.85, 4.7, 15.79, 14.6, 16.4, 5.9, 2.0, -9.39, -8.85, -1.2, -3.75, -0.54, 4.1, 6.15, 12.95, 14.95, 16.7, 8.14, 6.55, 0.75, 0.34, -0.29, -3.74, 0.5, 4.6, 5.85, 13.5, 16.7, 16.75, 8.95, 7.1, -0.04, 0.34, -5.25, -7.05, -3.95, 0.05, 6.5, 13.25, 6.8, 3.8, -4.94, -4.25, -3.49, -4.15, -3.1, 0.89, 5.55, 13.75, 14.7, 17.35, 7.95, 5.0, -1.65, -1.75, -0.85, -2.3, -0.09, 1.99, 5.39, 11.95, 17.35, 8.8, 5.2, 0.15, 0.45, 0.5, -1.65, -0.09, 2.5, 5.25, 10.35, 13.2, 14.55, 8.85, 6.35, 1.59, 1.2, -0.34, -2.34, 0.25, 2.95, 4.94, 13.9, 16.4, 17.4, 8.95, 6.05, 0.0, 1.2, -3.29, -6.04, -2.04, 1.96, 7.0, 4.36, -1.64, -1.68, -1.4, -4.44, -1.25, 0.5, 4.3, 14.4, 16.7, 16.0, 8.7, 5.25, -1.8, -1.25, -2.8, -4.55, -1.59, 0.69, 4.65, 13.55, 15.95, 16.35, 8.7, 6.0, -1.09, 0.09, -4.55, -6.14, -3.69, -0.8, 4.8, 14.2, 15.85, 15.9, 7.2, 5.05, -3.9, -2.5, -9.25, -7.0, -4.75, -2.5, 3.05, 12.6, 15.25, 14.45, 5.9, 3.45, -5.3, -5.55, -3.5, -5.1, -0.7, 0.0, 12.5, 14.8, 14.65, 6.6, 6.25, -2.2, -1.05, -3.54, -4.65, -3.99, -1.44, 4.15, 13.1, -2.44, -2.75, -14.2, -10.09, -11.25, -10.05, 3.35, 12.85, 13.2, 15.1, 5.5, 1.39, -13.95, -13.35, -6.1, -6.7, -4.9, -3.05, 4.44, 13.0, 14.5, 15.5, 6.7, 3.8, -5.95, -5.09, -6.0, -7.25, -1.75, -0.9, 4.69, 12.9, 15.5, 15.35, 8.2, 5.1, -2.75, -0.3, -9.31, -9.56, -6.06, -5.56, 1.69, 12.19, 13.94, 14.44, 4.94, 2.64, -7.56, -4.56, -7.74, -9.14, -4.69, -4.14, 1.46, 10.96, 13.41, 13.96, 5.31, 2.55, -7.69, -4.24, -2.05, -4.19, -1.55, 0.5, 5.0, 11.6, 14.15, 13.1, 7.64, 5.65, -0.15, 1.59, -4.94, -5.7, -3.5, -1.4, 2.7, 8.1, 11.95, 11.75, 7.25, 3.9, -0.6, -1.0, -17.25, -14.95, -14.0, -9.5, -3.1, 11.45, 11.95, 12.75, 3.19, 1.0, -14.1, -14.15, -8.2, -9.8, -6.2, -3.9, 1.4, 8.0, 10.4, 5.2, 1.69, -2.44, -5.5, -13.6, -16.79, -12.9, -4.69, 1.5, 10.25, 12.35, 13.45, 4.14, 0.4, -7.8, -8.5, -21.35, -21.15, -16.75, -9.0, 0.0, 10.95, 12.75, 12.9, 3.75, 0.5, -12.75, -12.2, -8.04, -12.04, -11.24, -6.94, -1.74, 3.06, 2.76, 6.56, 0.16, -1.34, -9.54, -9.43, -9.39, -16.29, -11.2, 0.5, 5.6, 12.2, 12.2, 14.0, 6.2, 2.2, -9.6, -13.1, -4.2, -4.6, -3.0, 0.2, 4.3, 9.3, 12.7, 12.3, 7.3, 4.2, -1.0, -1.3, -7.6, -15.1, -10.8, -2.09, 3.0, 10.0, 9.7, 12.3, 6.0, 2.9, -7.2, -9.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Poland&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;, &quot;Poland&quot;], &quot;legendgroup&quot;: &quot;Poland&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Poland&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-4.12, -3.45, -1.06, 4.63, 10.12, 12.57, 17.52, 14.86, 14.21, 9.35, 5.0, -5.92, -7.75, -5.24, -2.65, 6.41, 14.73, 16.37, 17.97, 16.54, 13.54, 8.18, 5.11, -9.12, -3.19, -3.04, -0.63, 4.76, 10.1, 14.54, 18.45, 17.34, 14.45, 9.79, 5.59, -3.7, -6.79, -3.33, -1.3, 6.89, 15.19, 16.06, 17.77, 16.73, 13.48, 8.34, 6.04, -7.03, -2.58, -2.5, -0.51, 5.92, 11.18, 14.53, 18.46, 16.81, 14.93, 10.13, 5.78, -5.25, -7.18, -5.77, -2.81, 5.07, 13.24, 15.51, 17.99, 16.46, 13.12, 7.99, 3.93, -9.9, -4.48, -3.57, -1.36, 7.05, 14.25, 16.66, 19.54, 17.2, 14.43, 9.36, 5.69, -7.69, -4.05, -3.25, -1.08, 7.54, 14.37, 16.32, 19.1, 16.48, 14.06, 9.36, 5.53, -7.7, -4.81, -2.26, -1.42, 7.33, 15.05, 16.27, 18.62, 16.33, 14.08, 9.12, 5.3, -7.9, -5.48, -2.97, -1.65, 6.91, 14.34, 16.22, 17.94, 16.48, 13.48, 8.59, 5.41, -8.66, -4.0, -1.73, 0.25, 8.16, 15.52, 16.34, 18.43, 16.51, 13.95, 9.35, 5.94, -6.24, -3.71, -1.48, -0.8, 7.54, 15.14, 15.0, 17.34, 15.76, 13.97, 9.35, 6.55, -7.19, -5.36, -0.75, 0.0, 7.56, 15.78, 15.95, 18.2, 16.64, 14.29, 9.38, 6.81, -6.35, -5.89, -2.26, -1.58, 5.79, 14.3, 14.46, 16.56, 15.53, 12.95, 8.36, 6.32, -6.31, -6.31, -4.1, -1.91, 7.11, 15.28, 16.94, 18.58, 17.26, 13.97, 8.85, 5.76, -8.39, -5.65, -5.19, -2.04, 5.42, 13.13, 15.55, 17.72, 16.29, 13.42, 8.13, 3.94, -8.46, -7.14, -5.5, -2.81, 5.71, 13.91, 16.31, 17.93, 16.45, 13.32, 7.66, 3.79, -9.78, -3.86, -3.43, -0.89, 7.08, 13.73, 16.17, 19.16, 17.32, 14.44, 9.6, 5.27, -7.31, -4.47, -2.44, -1.25, 7.35, 14.87, 16.76, 19.24, 16.85, 14.29, 9.44, 5.32, -7.93, -4.9, -1.87, -0.67, 7.32, 15.08, 15.83, 18.17, 16.59, 14.22, 9.46, 5.79, -6.59, -6.4, -3.43, -2.43, 6.38, 14.53, 15.8, 17.57, 15.99, 12.81, 7.87, 4.81, -8.51, -3.05, -3.03, -0.08, 6.13, 11.9, 14.69, 17.86, 16.74, 14.63, 9.58, 5.37, -6.22, -7.29, -8.64, -3.79, 6.61, 14.71, 16.31, 18.86, 18.76, 13.96, 10.06, 2.46, -11.24, -10.55, -7.96, -4.65, 4.85, 12.4, 14.95, 17.25, 15.94, 12.01, 6.98, 3.16, -10.59, -3.3, -3.36, -0.65, 7.08, 13.33, 16.5, 19.14, 17.68, 14.79, 9.85, 5.85, -6.48, -5.42, -4.61, -1.83, 6.06, 14.25, 16.18, 18.81, 16.86, 13.68, 8.24, 4.99, -9.29, -9.52, -7.18, -3.86, 5.18, 13.32, 15.48, 17.57, 15.97, 12.48, 7.26, 3.93, -9.91, -6.58, -9.08, -3.07, 11.22, 16.42, 17.77, 20.47, 20.02, 13.82, 10.42, 3.77, -11.73, -3.55, -3.24, -1.84, 7.26, 13.94, 15.9, 19.45, 17.06, 14.44, 10.22, 5.2, -7.5, -2.96, -1.3, 0.24, 8.31, 15.26, 16.92, 19.74, 17.34, 15.03, 10.27, 6.21, -6.02, -8.09, -5.56, -2.98, 6.57, 14.93, 16.75, 18.74, 17.09, 13.35, 8.14, 5.44, -8.52, -3.71, -2.91, -1.39, 6.5, 13.37, 14.25, 16.84, 15.02, 12.65, 8.71, 4.59, -7.73, -3.24, -1.34, -0.44, 7.76, 15.56, 16.46, 19.16, 17.06, 14.76, 9.66, 5.96, -6.34, -4.41, -2.11, -1.01, 7.29, 15.19, 16.29, 18.59, 16.49, 13.79, 8.79, 5.29, -7.31, -6.6, -3.6, -1.8, 7.2, 15.6, 16.7, 18.5, 17.2, 14.0, 8.5, 5.6, -7.6, -8.1, -5.1, -2.7, 6.2, 14.4, 15.8, 17.4, 16.2, 12.6, 7.5, 5.8, -8.0, -6.11, -3.88, -3.58, 3.94, 12.59, 12.11, 14.41, 13.07, 10.87, 7.04, 3.82, -8.08, -7.42, -3.92, -1.82, 6.78, 15.48, 15.68, 17.58, 16.5, 13.6, 8.8, 6.9, -6.9, -8.25, -10.35, -4.7, 11.7, 16.2, 16.2, 19.04, 17.1, 12.05, 9.3, 4.5, -11.55, -8.1, -10.09, -4.74, 9.5, 14.0, 15.85, 18.85, 18.05, 13.45, 10.1, 2.0, -12.0, -9.28, -11.74, -7.54, 9.61, 13.96, 15.4, 18.4, 17.86, 12.41, 8.65, 1.05, -12.94, -3.64, -4.69, -1.04, 9.81, 15.56, 15.5, 20.96, 19.46, 17.16, 13.11, 6.96, -6.79, -9.2, -10.9, -6.8, 8.8, 14.35, 15.75, 19.45, 20.04, 13.8, 10.45, 2.5, -12.2, -4.38, -3.43, -0.98, 9.72, 15.77, 14.82, 20.52, 20.37, 16.72, 11.72, 6.32, -7.43, -7.8, -6.1, 0.69, 12.3, 16.19, 17.7, 18.54, 18.0, 13.25, 10.25, 4.5, -10.54, -6.2, -7.05, -1.4, 11.15, 16.1, 17.54, 18.65, 19.15, 13.35, 10.8, 2.94, -12.05, -3.85, -4.1, -0.9, 11.2, 16.1, 16.65, 20.2, 18.95, 13.95, 11.7, 2.34, -10.7, -5.31, -3.61, -2.05, 9.04, 15.94, 14.79, 18.49, 17.49, 15.93, 10.34, 5.49, -9.61, -3.6, -1.8, -0.5, 7.3, 14.5, 16.3, 19.0, 16.7, 14.0, 9.2, 5.7, -6.5, -8.77, -10.77, -8.68, -1.33, 5.22, 4.87, 7.42, 6.87, 2.27, 1.71, -5.18, -9.03, -5.3, -6.55, -2.5, 8.3, 14.0, 13.95, 17.4, 15.9, 10.85, 9.9, -0.1, -11.04, -6.35, -7.2, -2.5, 11.8, 17.1, 17.65, 19.85, 19.69, 14.05, 11.3, 2.65, -11.65, -9.7, -10.7, -6.64, 12.55, 16.2, 16.2, 19.0, 18.35, 12.35, 9.84, 3.9, -12.1, -6.2, -7.0, -1.75, 11.05, 17.15, 17.0, 19.9, 19.54, 13.85, 10.9, 2.3, -11.95], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Portugal&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;, &quot;Portugal&quot;], &quot;legendgroup&quot;: &quot;Portugal&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Portugal&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [12.3, 11.29, 13.07, 14.91, 17.04, 19.86, 23.34, 23.54, 19.33, 18.24, 13.55, 10.71, 11.67, 10.3, 13.12, 14.22, 15.96, 19.1, 23.49, 23.3, 19.0, 18.29, 12.63, 10.83, 10.59, 8.98, 11.31, 12.54, 14.55, 17.98, 21.92, 21.23, 17.72, 18.1, 10.9, 8.53, 10.8, 9.06, 11.77, 13.11, 15.19, 18.35, 23.57, 22.5, 18.45, 18.62, 10.93, 7.64, 9.9, 8.59, 10.87, 12.49, 15.3, 19.34, 25.27, 23.84, 18.39, 16.89, 10.96, 7.64, 4.66, 3.53, 7.06, 9.87, 11.67, 15.9, 22.46, 20.46, 15.08, 14.11, 6.21, 3.75, 10.49, 9.11, 11.77, 13.59, 15.67, 18.71, 23.95, 23.13, 18.73, 17.77, 10.95, 9.07, 11.05, 10.19, 12.22, 13.45, 15.62, 19.08, 22.96, 22.72, 18.26, 17.94, 11.3, 8.31, 9.45, 8.08, 10.51, 12.8, 15.14, 18.86, 23.88, 22.58, 17.92, 16.94, 10.27, 6.84, 10.44, 8.99, 11.9, 13.45, 15.89, 19.44, 24.79, 23.48, 18.36, 17.39, 10.95, 8.19, 13.28, 11.98, 13.08, 13.68, 14.18, 17.18, 19.28, 20.38, 19.68, 17.58, 14.98, 13.18, 14.22, 12.92, 14.12, 14.72, 15.62, 17.92, 20.22, 21.42, 20.62, 18.52, 16.12, 14.12, 11.91, 10.41, 12.51, 12.51, 14.41, 16.81, 18.41, 18.21, 17.01, 17.41, 13.21, 10.91, 12.98, 11.78, 12.98, 13.48, 14.98, 17.08, 20.48, 19.78, 17.68, 17.58, 13.78, 11.18, 9.82, 8.32, 10.42, 11.42, 13.52, 16.62, 20.32, 19.22, 16.42, 17.02, 10.02, 7.82, 12.56, 11.76, 13.06, 14.56, 16.56, 19.46, 23.66, 23.46, 19.36, 18.26, 13.56, 10.36, 9.43, 8.03, 10.63, 12.43, 14.43, 18.63, 24.93, 23.23, 17.83, 16.73, 10.93, 7.93, 3.26, 0.41, 3.03, 5.9, 7.28, 12.18, 19.56, 17.67, 10.92, 10.46, 4.31, 2.02, 9.25, 7.31, 9.6, 12.64, 13.92, 18.82, 25.9, 23.64, 17.4, 15.95, 9.46, 6.94, 12.66, 11.05, 11.32, 12.54, 13.49, 16.97, 19.88, 20.5, 19.51, 17.35, 14.77, 13.2, 13.6, 13.2, 14.2, 15.0, 15.6, 18.6, 21.9, 22.4, 22.0, 19.4, 16.0, 15.4, 5.81, 4.57, 7.98, 10.37, 12.53, 16.03, 22.75, 20.56, 15.12, 14.6, 7.16, 5.18, 12.96, 11.46, 11.76, 12.96, 13.96, 17.46, 20.16, 20.96, 10.8, 9.2, 11.6, 12.6, 14.1, 17.4, 20.8, 19.6, 16.8, 17.2, 11.0, 9.3, 13.25, 12.2, 13.15, 14.1, 14.75, 17.4, 20.5, 21.35, 20.35, 17.95, 15.3, 13.7, 13.4, 11.85, 12.9, 13.6, 14.1, 17.04, 19.1, 20.4, 19.79, 17.6, 14.95, 13.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Serbia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;, &quot;Serbia&quot;], &quot;legendgroup&quot;: &quot;Serbia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Serbia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-3.88, -0.64, 4.07, 10.29, 18.2, 18.37, 20.35, 19.64, 17.16, 11.88, 8.63, -2.42, -3.35, 1.73, 4.66, 10.53, 18.9, 18.29, 19.51, 20.78, 18.2, 11.43, 10.34, -0.77, -1.76, 2.74, 5.2, 10.47, 19.01, 18.66, 20.15, 19.94, 17.88, 11.53, 10.75, -2.02, -5.77, -1.07, 0.4, 10.9, 19.68, 19.67, 20.7, 21.52, 18.16, 11.13, 7.75, -0.41, -2.14, 2.31, 4.17, 10.27, 19.34, 18.59, 19.43, 20.65, 17.82, 10.98, 9.94, -1.95, -3.76, -0.44, 4.29, 10.25, 18.09, 18.12, 19.95, 19.02, 16.9, 11.36, 8.99, -2.31, -2.75, 0.87, 4.05, 10.81, 19.39, 18.62, 19.83, 21.06, 18.2, 11.72, 9.3, -0.52, -3.65, 2.68, 4.31, 9.49, 18.25, 17.7, 18.57, 20.73, 18.19, 11.43, 8.45, -0.73, -3.79, 0.2, 4.31, 10.37, 18.77, 18.54, 20.21, 20.19, 17.62, 11.71, 9.32, -1.72, -3.96, 0.2, 4.55, 10.54, 18.97, 18.58, 20.07, 20.09, 17.57, 12.0, 9.24, -1.6, -3.1, 0.89, 4.59, 10.39, 18.89, 18.49, 20.07, 19.81, 17.43, 11.27, 9.12, -2.42, -1.93, 2.58, 5.14, 9.96, 18.69, 18.36, 19.95, 19.92, 17.4, 11.01, 10.09, -2.22, -2.8, 1.56, 4.74, 10.42, 19.3, 18.79, 20.51, 20.53, 18.46, 12.06, 10.44, -1.84, -2.19, 2.28, 4.65, 9.79, 18.7, 18.55, 19.37, 20.5, 17.64, 10.86, 10.44, -1.56, -3.29, 1.43, 4.47, 9.97, 18.89, 18.42, 19.37, 20.12, 17.44, 10.48, 10.01, -1.47, -4.88, -0.54, 0.64, 5.95, 15.13, 13.98, 15.05, 16.63, 14.09, 8.25, 7.41, -4.8, -7.59, -1.22, 1.98, 5.83, 13.6, 13.52, 13.95, 15.31, 13.63, 6.65, 5.61, -4.34, -3.52, 1.74, 3.92, 10.08, 18.75, 18.6, 19.29, 20.7, 18.02, 10.13, 9.67, -2.06, -3.41, 1.19, 4.17, 10.13, 18.74, 18.34, 18.95, 20.56, 17.96, 10.48, 9.55, -1.65, -5.23, 2.52, 4.05, 10.09, 19.29, 18.37, 18.72, 20.85, 17.46, 10.28, 8.51, -1.21, -4.72, 1.61, 3.24, 8.56, 17.19, 17.02, 17.8, 19.9, 17.48, 10.09, 8.38, 0.01, -2.77, 3.28, 4.76, 11.07, 19.58, 19.06, 19.57, 21.61, 19.04, 11.54, 10.28, -0.46, -1.92, 2.13, 4.84, 11.52, 20.26, 19.02, 20.65, 20.92, 18.73, 12.77, 11.56, -1.35, -4.32, 0.17, 4.61, 10.43, 19.19, 18.63, 20.06, 19.83, 17.53, 12.04, 10.17, -2.48], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Romania&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;, &quot;Romania&quot;], &quot;legendgroup&quot;: &quot;Romania&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Romania&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-3.85, 1.15, 5.08, 10.39, 18.9, 18.72, 20.25, 20.31, 17.62, 11.9, 9.56, -1.08, -4.91, 1.48, 8.72, 17.09, 17.66, 18.68, 19.54, 16.09, 10.32, 8.37, 0.2, -5.76, -2.73, -0.66, 10.04, 18.4, 19.07, 19.8, 21.91, 17.51, 11.72, 9.23, -0.48, -5.8, -0.65, 1.71, 10.77, 19.71, 20.34, 20.46, 22.24, 18.16, 11.38, 10.87, 1.54, -10.17, -1.41, 3.31, 8.67, 16.75, 17.53, 18.69, 18.75, 14.99, 9.07, 6.48, -0.22, -4.95, -0.54, 1.31, 10.89, 19.62, 19.17, 20.82, 21.82, 18.65, 12.61, 8.93, 0.39, -5.47, -0.69, 9.82, 18.17, 18.55, 19.15, 20.41, 17.2, 10.88, 7.63, 1.03, -7.61, -1.84, 11.06, 20.37, 21.0, 21.36, 23.2, 19.16, 12.11, 10.14, 0.44, -8.07, -4.54, -2.51, 8.57, 17.04, 18.22, 18.95, 19.99, 15.42, 9.59, 8.7, -2.22, -8.13, -5.06, -2.83, 8.25, 17.04, 17.7, 18.94, 19.88, 15.12, 9.95, 8.89, -4.6, -6.56, -2.57, -0.28, 10.04, 18.83, 19.23, 20.06, 21.64, 17.41, 10.92, 9.08, -0.18, -3.98, 1.03, 3.51, 9.42, 17.9, 17.59, 18.55, 19.43, 16.43, 11.05, 9.03, -0.41, -9.35, -7.8, -7.52, -2.12, 7.43, 6.95, 8.12, 10.01, 6.42, 2.41, -1.15, -6.73, -2.92, 0.34, 1.55, 8.74, 16.6, 19.86, 20.22, 21.92, 18.72, 12.48, 11.25, 3.19, -6.77, -2.42, 0.13, 9.99, 19.18, 19.03, 20.44, 21.81, 18.05, 11.76, 8.84, -0.52, -6.96, 0.64, 5.0, 9.84, 17.69, 18.23, 19.27, 20.16, 16.67, 10.3, 7.21, 0.88, -5.69, -2.42, -0.39, 10.09, 18.21, 19.95, 20.41, 22.5, 17.87, 11.4, 9.97, -0.37, -8.35, -4.84, -3.04, 8.88, 17.25, 18.36, 18.69, 20.28, 15.52, 9.98, 8.72, -3.51, -12.15, -6.31, -3.93, 4.52, 13.26, 13.63, 14.32, 15.53, 11.77, 6.22, 3.04, -3.69, -5.63, 0.09, 1.95, 7.6, 15.51, 15.58, 17.35, 17.11, 13.61, 8.44, 6.91, -1.78, -4.17, 0.08, 2.58, 10.37, 19.07, 18.95, 19.98, 21.06, 17.54, 11.4, 9.01, 2.07, -7.43, -2.29, 0.21, 10.51, 19.59, 19.48, 20.76, 22.1, 17.91, 11.53, 9.27, -0.19, -7.82, -0.54, 3.14, 8.35, 16.31, 16.62, 17.75, 18.47, 15.33, 9.19, 7.49, 0.62, -3.85, -0.81, 1.37, 9.92, 17.84, 19.98, 20.86, 22.47, 17.76, 11.54, 10.8, 0.56, -4.19, 1.2, 4.2, 9.6, 18.4, 17.9, 20.1, 19.8, 16.3, 10.2, 8.8, -1.3, -9.46, -0.68, 3.13, 8.79, 16.48, 16.95, 18.32, 19.09, 15.05, 9.43, 6.95, 0.92, -12.35, -10.03, -8.8, -5.77, 2.72, 2.28, 2.7, 5.28, 3.27, -0.58, -4.17, -8.97, -1.85, -0.32, 1.36, 8.21, 16.23, 20.12, 20.76, 22.66, 18.96, 12.54, 10.48, 2.98, -4.14, 0.96, 4.56, 10.16, 18.36, 18.36, 20.16, 19.76, 16.36, 10.26, 8.16, -1.04, -11.0, -2.0, 2.1, 7.9, 16.0, 16.5, 18.0, 17.9, 13.7, 7.4, 5.4, -0.8, -4.69, -3.0, -2.0, 3.0, 12.0, 10.9, 12.5, 13.5, 10.9, 7.2, 4.0, -2.9, -8.2, -6.5, -6.5, 0.3, 9.5, 9.3, 10.4, 12.2, 8.5, 4.7, 1.3, -6.1, -5.0, -2.8, -2.2, 2.5, 12.2, 10.7, 11.8, 13.6, 10.9, 6.5, 4.6, -2.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Slovenia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;, &quot;Slovenia&quot;], &quot;legendgroup&quot;: &quot;Slovenia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Slovenia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-2.99, -3.3, 0.18, 4.26, 12.14, 12.52, 14.86, 14.31, 12.3, 6.95, 4.86, -6.04, 3.07, 2.78, 5.88, 10.18, 16.56, 17.7, 20.82, 19.91, 17.96, 13.57, 9.07, 1.48, -2.85, -1.54, 3.15, 8.93, 15.67, 16.39, 18.89, 17.47, 15.43, 10.49, 6.72, -4.26, -1.94, -0.83, 2.62, 9.0, 15.85, 15.83, 18.67, 16.97, 15.44, 11.67, 7.93, -3.95, -4.96, -7.31, -3.94, 0.26, 9.11, 8.14, 11.64, 10.54, 9.27, 6.52, 0.68, -8.35, -2.5, -1.22, 2.83, 9.12, 15.44, 15.79, 18.54, 17.0, 15.45, 10.45, 7.81, -3.95, -1.72, -0.42, 3.29, 9.66, 16.68, 16.5, 19.2, 17.64, 15.89, 11.21, 7.81, -2.9, -7.74, -11.81, -7.22, -4.93, 1.99, 1.87, 6.12, 3.98, 4.04, 2.33, -3.85, -10.92, -2.21, -1.75, 1.89, 7.31, 14.36, 14.99, 16.97, 16.5, 14.56, 9.17, 6.54, -4.54, -3.24, -3.01, -1.14, 4.21, 11.67, 12.14, 15.72, 13.71, 12.06, 8.57, 3.85, -5.58, -3.55, -3.28, 0.53, 5.74, 12.7, 13.48, 15.79, 15.18, 12.93, 7.42, 5.81, -5.95, -0.95, -0.76, 2.57, 7.13, 13.64, 14.57, 17.61, 16.67, 14.93, 10.74, 6.95, -3.3, -2.89, -2.17, 2.6, 7.33, 14.85, 15.28, 17.49, 16.39, 14.79, 9.54, 5.02, -4.99, -2.76, -2.25, 2.67, 7.72, 14.49, 15.45, 18.04, 16.98, 14.84, 9.04, 6.11, -3.92, -3.27, -2.13, 3.72, 9.74, 16.18, 16.96, 19.35, 18.24, 15.95, 10.75, 7.53, -3.97, -4.41, -3.78, 0.26, 4.6, 12.54, 12.74, 15.9, 14.35, 12.7, 8.18, 2.4, -7.12, -1.46, -0.53, 4.12, 9.71, 16.61, 17.27, 20.18, 18.56, 16.72, 11.4, 7.74, -2.67], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Spain&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;, &quot;Spain&quot;], &quot;legendgroup&quot;: &quot;Spain&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Spain&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [6.85, 5.08, 8.99, 12.37, 14.98, 18.66, 25.03, 23.36, 16.7, 15.02, 7.97, 5.43, 9.2, 11.77, 14.01, 16.61, 20.92, 26.76, 24.78, 19.25, 17.14, 10.85, 7.76, 12.78, 11.41, 14.19, 15.82, 18.82, 21.03, 23.35, 24.78, 21.25, 18.6, 14.89, 11.87, 9.91, 13.32, 14.02, 17.93, 19.89, 23.74, 24.09, 20.95, 18.06, 13.55, 9.19, 8.74, 9.32, 10.13, 14.33, 14.77, 19.06, 18.38, 16.3, 16.37, 10.17, 6.25, 9.85, 11.69, 13.29, 16.75, 18.66, 22.74, 23.18, 19.68, 17.73, 11.69, 8.15, 4.29, 3.08, 6.61, 9.49, 12.71, 16.53, 22.28, 20.18, 14.53, 13.0, 5.62, 2.96, 0.97, -0.7, 2.78, 5.46, 10.53, 17.44, 15.9, 7.98, 7.81, 1.42, -2.56, 6.02, 8.57, 11.16, 14.38, 18.15, 23.5, 22.89, 16.09, 13.15, 7.62, 3.66, 10.48, 12.78, 15.14, 18.4, 22.42, 27.56, 26.49, 20.2, 18.14, 12.86, 7.3, 6.87, 5.52, 9.6, 12.17, 15.95, 18.93, 24.47, 23.69, 17.96, 15.59, 8.44, 5.62, 10.34, 12.89, 14.61, 18.07, 20.71, 24.42, 25.28, 20.45, 18.17, 12.36, 9.84, 6.82, 7.69, 4.41, 9.71, 12.21, 18.88, 18.45, 13.32, 8.45, 7.39, 2.34, 20.36, 22.99, 24.39, 20.97, 18.81, 1.21, -0.85, 2.87, 6.13, 8.63, 13.6, 21.02, 19.14, 12.56, 11.56, 4.2, 1.58, 8.15, 6.92, 9.65, 13.06, 15.49, 20.91, 28.97, 26.79, 18.85, 16.78, 10.3, 6.17, 2.27, -1.59, 1.58, 3.93, 8.91, 9.68, 14.98, 14.23, 10.41, 8.78, 2.88, -0.25, 3.63, 1.64, 5.77, 9.0, 13.09, 14.87, 20.41, 19.85, 14.38, 12.74, 5.49, 2.6, 6.26, 4.72, 8.06, 10.91, 14.4, 17.88, 24.4, 26.45, 12.13, 9.88, 13.66, 14.96, 18.59, 20.32, 23.64, 24.32, 20.97, 18.7, 14.52, 11.08, 10.74, 9.18, 13.5, 15.22, 18.96, 20.49, 24.09, 24.76, 21.27, 17.95, 13.42, 10.0, 10.21, 7.82, 10.69, 11.4, 13.48, 15.13, 18.13, 17.92, 16.03, 16.62, 10.75, 9.46, 7.66, 5.35, 8.21, 9.96, 11.35, 14.74, 19.57, 17.79, 14.61, 14.95, 7.73, 6.22, 6.1, 3.05, 7.73, 9.53, 13.37, 14.52, 19.67, 18.69, 14.82, 14.08, 7.37, 4.63, 5.47, 2.33, 7.07, 8.86, 12.7, 13.85, 19.0, 18.02, 14.15, 13.42, 6.7, 3.94, 12.39, 11.64, 14.07, 16.06, 18.8, 20.69, 25.01, 25.25, 20.88, 19.33, 15.22, 11.31, 11.74, 10.44, 13.03, 14.78, 17.8, 20.14, 24.59, 24.45, 20.29, 18.08, 14.52, 10.89, 8.66, 6.28, 9.08, 9.85, 12.46, 13.78, 17.18, 17.32, 15.33, 14.94, 10.0, 8.0, 9.67, 7.51, 10.19, 11.4, 14.22, 15.43, 18.71, 18.89, 16.65, 15.74, 11.02, 9.18, 3.92, 1.09, 4.6, 7.27, 10.56, 14.57, 20.98, 18.98, 12.61, 10.9, 4.45, 1.66, 11.2, 9.62, 11.98, 13.68, 17.23, 19.2, 22.98, 23.6, 20.76, 18.45, 14.19, 10.41, 10.86, 9.06, 11.66, 13.06, 17.09, 19.31, 23.26, 23.76, 20.8, 18.48, 14.2, 9.48, 8.24, 6.68, 10.13, 12.19, 16.59, 18.09, 23.78, 22.73, 18.67, 16.23, 10.62, 6.58, 3.61, 1.46, 4.93, 7.52, 10.82, 13.34, 19.1, 17.92, 12.92, 11.71, 4.42, 1.94, 7.89, 6.38, 9.64, 12.62, 14.5, 19.53, 27.05, 25.31, 17.66, 16.25, 9.41, 6.75, 17.71, 20.15, 24.56, 24.26, 20.2, 18.98, 14.98, 10.73, 11.97, 11.33, 13.73, 14.75, 17.38, 20.73, 25.78, 25.51, 20.05, 18.81, 13.84, 9.01, 12.58, 10.97, 12.72, 13.27, 15.16, 17.34, 20.92, 21.3, 18.26, 17.39, 14.17, 9.99, 10.03, 7.58, 10.51, 11.09, 14.37, 15.08, 18.97, 18.88, 16.82, 16.98, 11.09, 8.86, 9.73, 7.89, 10.87, 11.44, 14.79, 15.5, 18.81, 18.85, 16.66, 16.52, 10.82, 8.96, 11.01, 9.71, 13.47, 15.3, 18.44, 20.53, 24.33, 24.51, 20.57, 18.54, 13.67, 11.25, 13.2, 12.2, 13.9, 14.7, 17.3, 18.6, 21.9, 23.3, 20.2, 18.1, 15.3, 11.9, 13.58, 14.33, 15.17, 17.71, 19.03, 22.29, 23.46, 20.55, 18.46, 15.66, 12.29, 6.14, 4.81, 9.05, 12.03, 15.95, 20.79, 27.11, 25.12, 16.67, 14.33, 8.19, 5.01, 5.71, 4.28, 8.5, 11.29, 14.96, 19.57, 26.93, 25.36, 16.53, 13.94, 7.6, 4.55, 4.32, 2.77, 7.01, 10.17, 13.42, 16.09, 22.54, 21.72, 14.62, 12.85, 6.19, 2.91, 18.53, 18.54, 18.94, 18.52, 19.83, 21.13, 23.81, 24.05, 23.27, 22.13, 20.2, 17.7, 6.61, 4.44, 8.21, 11.52, 14.71, 18.0, 24.63, 22.97, 16.32, 14.28, 7.6, 5.15, 3.5, 1.31, 4.85, 7.55, 11.43, 14.06, 19.23, 18.74, 13.06, 11.19, 4.85, 1.97, 9.09, 6.81, 10.47, 11.04, 15.67, 15.88, 20.59, 19.85, 17.32, 16.03, 10.51, 7.5, 11.49, 10.74, 12.89, 14.94, 17.52, 20.57, 25.5, 24.81, 20.2, 18.64, 13.33, 9.92, 11.36, 10.72, 12.88, 14.93, 17.42, 20.39, 25.23, 24.63, 19.89, 18.32, 13.14, 9.73, 4.82, 3.74, 7.84, 10.72, 14.65, 17.06, 22.71, 22.04, 16.66, 14.52, 7.51, 4.32, 10.38, 8.51, 11.99, 14.32, 17.46, 21.94, 28.94, 27.45, 19.88, 17.39, 11.75, 7.54, 6.64, 5.04, 9.07, 11.57, 15.38, 17.64, 23.76, 21.95, 16.66, 14.91, 7.87, 5.87, 22.57, 18.32, 18.33, 18.73, 18.31, 19.62, 20.92, 23.6, 23.84, 23.06, 21.92, 20.17, 17.49, 3.44, 2.0, 5.56, 8.55, 10.8, 14.8, 20.91, 19.58, 13.89, 12.75, 5.18, 3.54, 4.96, 4.37, 7.89, 10.82, 12.45, 16.66, 22.42, 20.65, 15.27, 14.57, 6.49, 4.48, 6.42, 5.46, 9.7, 12.52, 16.64, 19.17, 24.09, 23.81, 18.39, 15.5, 7.77, 5.05, 6.19, 4.62, 8.6, 11.58, 14.73, 18.35, 24.75, 23.48, 16.66, 14.81, 7.45, 4.46, 6.05, 4.37, 8.12, 11.6, 14.5, 18.94, 25.4, 23.05, 16.26, 14.47, 7.35, 4.92, 6.49, 4.86, 8.77, 11.95, 14.75, 19.13, 25.73, 24.17, 17.0, 15.29, 7.46, 5.16, 5.81, 4.26, 7.68, 10.88, 14.13, 17.83, 24.21, 22.98, 15.91, 11.36, 9.63, 14.02, 16.59, 19.88, 22.24, 25.26, 26.2, 21.92, 18.69, 13.32, 10.47, 10.62, 8.73, 13.38, 15.36, 18.8, 21.53, 24.62, 25.48, 21.05, 18.09, 12.34, 9.69, 11.6, 9.68, 13.98, 14.96, 18.56, 20.48, 23.14, 24.59, 21.28, 19.12, 13.9, 10.72, 6.3, 7.99, 10.16, 14.38, 20.0, 14.69, 7.86, 4.23, 5.9, 3.51, 7.6, 9.68, 14.07, 15.45, 21.15, 19.8, 15.52, 14.39, 7.5, 3.77, 4.52, 2.7, 5.94, 8.7, 12.51, 16.11, 21.9, 20.33, 14.75, 7.12, 3.43, 10.52, 8.43, 11.24, 12.44, 13.6, 16.63, 21.48, 20.54, 16.36, 16.78, 10.14, 7.99, 9.01, 7.4, 9.77, 10.85, 12.59, 16.26, 21.02, 19.66, 16.13, 16.67, 9.61, 7.37, 19.29, 19.65, 19.3, 18.67, 19.91, 21.88, 24.68, 24.22, 23.27, 22.62, 20.89, 17.94, 14.03, 13.78, 14.46, 12.72, 14.51, 15.37, 20.59, 18.41, 17.93, 17.01, 15.92, 12.39, 4.69, 2.11, 5.79, 8.73, 12.18, 16.41, 22.82, 20.74, 13.87, 12.5, 5.65, 2.17, 5.36, 2.79, 6.46, 9.36, 12.85, 17.09, 23.5, 21.42, 14.54, 13.18, 6.33, 2.84, 11.08, 10.23, 14.47, 17.16, 20.93, 26.53, 25.94, 20.31, 18.2, 13.18, 8.11, 11.78, 10.93, 13.38, 15.47, 18.35, 22.11, 27.5, 26.48, 21.24, 19.01, 13.74, 9.11, 4.22, 1.86, 4.97, 8.13, 11.29, 14.65, 20.51, 19.39, 13.2, 12.01, 5.04, 1.8, 16.77, 19.11, 23.32, 23.13, 19.54, 17.67, 10.82, 8.83, 3.89, 1.94, 5.51, 8.29, 12.36, 14.51, 19.97, 19.27, 13.65, 11.44, 5.23, 1.85, 7.08, 5.64, 9.41, 12.81, 16.01, 20.21, 26.22, 25.13, 17.66, 15.55, 8.39, 5.74, 10.58, 8.61, 12.77, 14.41, 17.82, 19.95, 23.25, 23.59, 19.77, 17.36, 12.05, 9.28, 4.58, 3.36, 6.99, 9.93, 13.15, 16.46, 22.7, 21.15, 15.23, 13.52, 6.35, 3.54, 4.0, 1.72, 5.42, 8.76, 11.74, 15.22, 21.4, 19.72, 14.03, 13.02, 5.48, 2.73, 10.66, 7.3, 10.71, 11.82, 15.48, 15.85, 20.55, 19.81, 17.37, 17.46, 10.95, 8.31, 5.09, 3.86, 7.57, 10.31, 12.9, 16.94, 23.02, 21.49, 15.56, 13.83, 7.11, 4.9, 4.99, 3.11, 6.44, 9.15, 13.67, 15.81, 21.32, 20.59, 14.67, 12.43, 6.01, 3.05, 11.4, 9.57, 13.5, 15.27, 18.92, 20.29, 23.56, 24.37, 21.19, 18.38, 14.1, 10.61, 11.14, 10.39, 12.73, 14.53, 17.42, 21.53, 26.99, 26.4, 20.54, 18.45, 13.21, 8.01, 6.32, 9.06, 11.64, 15.42, 18.4, 23.58, 23.16, 17.42, 15.06, 7.91, 5.09, 6.1, 4.5, 8.52, 11.68, 14.72, 18.41, 25.54, 23.99, 16.52, 14.16, 6.41, 3.81, 11.48, 10.88, 13.28, 15.38, 18.08, 21.88, 27.68, 26.78, 20.98, 19.08, 13.58, 9.18, 8.85, 8.35, 11.35, 13.55, 16.15, 20.45, 26.35, 24.35, 18.85, 16.75, 10.45, 7.35, 11.59, 9.79, 12.49, 13.79, 17.79, 20.09, 24.49, 21.59, 19.19, 15.09, 9.99, 10.5, 9.1, 12.1, 14.0, 18.0, 19.7, 24.3, 24.3, 20.3, 18.1, 13.1, 9.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Svalbard&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;, &quot;Svalbard&quot;], &quot;legendgroup&quot;: &quot;Svalbard&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Svalbard&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-23.0, -15.7, -29.4, -22.9, -8.8, -3.4, 0.3, -1.1, -2.6, -5.2, -14.6, -15.6, -14.97, -16.8, -21.18, -16.63, -3.53, 0.47, 6.75, 4.54, 2.66, -2.14, -10.39, -9.25], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Sweden&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;, &quot;Sweden&quot;], &quot;legendgroup&quot;: &quot;Sweden&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Sweden&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-18.09, -20.3, -8.85, -2.52, 2.21, 10.96, 12.46, 13.75, 4.51, 1.51, -11.4, -16.44, -13.44, -16.56, -8.2, -0.3, 4.08, 13.31, 13.24, 15.68, 6.36, 2.53, -9.04, -13.37, -13.15, -16.95, -10.1, -1.05, 4.54, 13.14, 14.92, 15.3, 7.81, 3.46, -4.64, -9.11, -6.21, -12.71, -7.53, -1.09, 2.96, 11.5, 15.43, 16.25, 9.47, 5.87, -0.52, -2.7, -6.64, -11.72, -5.41, 1.88, 5.69, 14.39, 15.39, 16.13, 9.55, 5.31, -3.35, -7.92, -8.06, -13.72, -8.57, 1.45, 7.15, 14.2, 14.54, 14.15, 8.24, 4.67, -7.04, -9.99, -2.19, -5.52, -2.33, 4.82, 9.57, 15.9, 16.58, 17.54, 13.32, 8.79, 2.54, -3.51, -3.75, -6.59, -5.73, 3.64, 8.2, 13.98, 16.34, 15.16, 11.41, 7.33, 0.9, -6.26, -2.76, -4.53, -3.01, 3.84, 7.39, 13.88, 17.57, 16.92, 12.22, 7.8, 3.37, -2.63, -3.95, -6.99, -5.01, 3.88, 9.02, 15.84, 17.49, 17.09, 12.08, 7.16, 0.44, -6.7, -6.47, -11.74, -6.89, 2.85, 8.57, 16.62, 17.0, 17.18, 10.43, 6.43, -3.56, -10.03, -14.19, -17.74, -8.01, -0.6, 3.96, 13.44, 13.83, 15.35, 6.36, 2.49, -10.52, -13.94, -4.01, -8.02, -6.2, 3.33, 8.98, 15.98, 17.07, 17.06, 11.3, 7.36, -1.0, -5.48, -0.66, -2.2, -0.26, 5.73, 10.88, 16.1, 18.02, 18.04, 14.76, 10.03, 4.14, -2.93, -1.33, -4.05, -3.9, 2.46, 5.75, 13.53, 16.49, 18.5, 12.03, 8.12, 3.25, -1.31, 15.16, 10.36, 4.82, -1.26, -1.07, -4.08, -3.38, 3.7, 7.69, 15.45, 17.95, 18.58, 13.63, 9.04, 3.11, -2.94, -5.85, -11.4, -5.64, 0.58, 4.49, 13.13, 15.27, 15.93, 9.46, 5.45, -1.75, -4.47, -8.53, -14.24, -6.66, -0.63, 2.93, 13.17, 14.96, 15.28, 9.18, 4.94, -2.35, -5.31, -0.99, -3.64, -0.9, 4.44, 9.69, 15.72, 17.07, 17.85, 14.58, 9.73, 4.01, -2.29, -1.93, -6.32, -6.04, 3.65, 8.47, 16.22, 17.01, 17.66, 12.58, 8.68, 1.7, -2.69, -9.94, -16.13, -9.34, 0.66, 6.33, 14.01, 13.58, 14.78, 7.26, 3.24, -10.02, -14.03, -11.77, -16.08, -6.17, -1.22, 3.6, 12.0, 14.18, 6.33, 2.66, -7.45, -10.96, -8.39, -2.82, -4.5, -2.34, 4.82, 10.21, 16.06, 17.16, 17.1, 12.95, 8.39, 2.33, -5.0, -8.45, -12.89, -6.74, 2.08, 7.18, 15.09, 14.42, 17.14, 8.06, 4.11, -5.17, -9.65, -0.92, -3.97, -0.4, 6.0, 18.07, 18.82, 14.91, 9.98, 4.12, -1.97, -2.7, -6.75, -6.76, 3.93, 9.13, 15.78, 16.77, 17.01, 12.73, 8.25, 1.4, -4.05, -3.25, -5.99, -4.6, 4.44, 9.37, 16.04, 18.07, 17.72, 12.24, 7.47, 0.81, -4.54, -7.29, -12.66, -6.2, 2.11, 5.81, 14.5, 15.16, 15.86, 8.94, 4.81, -4.12, -10.91, -9.71, -15.41, -7.83, 1.9, 6.49, 14.13, 14.33, 16.34, 7.28, 3.67, -7.37, -13.76, -9.48, -13.51, -9.46, 0.86, 5.07, 13.02, 12.89, 16.32, 6.85, 3.45, -5.27, -9.37, -14.88, -19.16, -10.29, -3.27, 2.75, 12.2, 13.88, 13.78, 5.48, 1.4, -9.08, -13.94, -3.08, -4.79, -2.63, 4.53, 9.93, 15.82, 16.93, 16.86, 12.71, 8.15, 2.05, -5.34, -4.37, -6.77, -5.31, 3.74, 9.02, 14.52, 16.57, 15.71, 11.06, 7.03, 1.04, -6.7, -3.17, -5.91, -4.53, 4.51, 9.24, 15.88, 18.1, 17.57, 12.07, 7.56, 0.91, -4.37, -8.24, -12.66, -6.73, 1.33, 6.68, 13.44, 12.87, 15.91, 7.01, 3.82, -5.94, -10.89, -4.65, -11.02, -4.62, 0.18, 3.43, 12.17, 15.34, 16.22, 9.81, 5.98, -0.11, -2.09, -14.5, -16.57, -10.08, -1.66, 2.56, 10.34, 11.23, 13.71, 4.78, 1.15, -10.23, -12.77, -0.37, -1.93, -0.53, 3.7, 8.34, 14.04, 16.58, 17.36, 14.07, 10.06, 4.92, -2.14, 0.02, -1.56, 0.09, 4.87, 9.42, 15.74, 17.75, 18.43, 15.41, 11.21, 5.8, -1.42, -0.09, -1.7, -0.37, 3.53, 8.07, 13.56, 16.38, 17.17, 13.6, 9.51, 4.92, -2.08, -0.92, -2.41, -0.62, 4.6, 9.55, 15.05, 16.9, 17.42, 13.95, 9.8, 4.43, -3.1, -0.53, -2.13, -0.44, 4.56, 9.37, 14.88, 16.78, 17.45, 14.15, 9.92, 4.84, -2.52, -0.95, -2.53, -0.67, 4.71, 9.66, 15.06, 16.75, 17.17, 13.26, 9.51, 4.19, -3.15, -0.21, -1.98, -0.52, 4.76, 9.29, -0.39, -1.98, 0.14, 6.28, 11.18, 16.21, 18.66, 18.05, 15.08, 10.68, 4.88, -2.97, -1.72, -3.32, -1.73, 4.03, 9.21, 14.55, 16.68, 16.5, 13.34, 9.15, 3.19, -3.83, -0.86, -2.24, -0.06, 6.08, 10.98, 16.01, 18.46, 17.85, 14.88, 10.48, 4.68, -3.17, -1.56, -3.21, -1.13, 4.98, 9.94, 15.26, 16.87, 13.68, 9.71, 3.55, -4.64, -0.88, -2.9, -0.49, 5.48, 10.94, 15.83, 17.47, 17.73, 14.28, 9.69, 3.75, -4.71, -1.48, -3.51, -1.3, 4.87, 10.44, 14.98, 16.55, 16.47, 13.59, 9.21, 3.33, -4.89, -0.45, -2.27, -0.42, 5.77, 10.63, 15.59, 17.57, 17.75, 15.1, 10.17, 4.63, -2.35, -1.16, -2.96, -0.77, 5.55, 10.88, 16.0, 17.56, 17.74, 14.49, 9.67, 3.66, -3.86, 0.56, -1.09, -0.11, 3.4, 6.74, 14.25, 16.43, 18.41, 14.84, 10.31, 6.05, -0.11, -1.04, -3.05, -0.38, 5.28, 10.48, 15.58, 17.44, 17.25, 13.84, 9.65, 3.93, -3.81, -0.42, -2.23, -0.59, 4.22, 8.83, 15.12, 17.29, 18.16, 14.19, 9.6, 4.49, -1.73, -0.49, -2.37, -0.06, 6.15, 11.16, 16.4, 18.43, 18.49, 15.4, 10.51, 4.45, -2.64, -1.67, -3.36, -1.43, 4.69, 10.25, 14.7, 16.64, 16.44, 13.17, 9.02, 3.0, -4.74, -1.05, -3.39, -0.85, 5.98, 10.95, 15.79, 17.78, 18.13, 14.67, 9.8, 3.73, -4.23, -0.8, -2.5, -0.31, 4.77, 10.02, 15.22, 17.78, 17.26, 13.83, 9.58, 4.46, -2.55, -0.47, -1.82, -0.68, 3.43, 7.23, 14.28, 16.82, 17.9, 14.33, 9.5, 5.34, -1.1, -1.98, -3.19, -1.61, 5.06, 9.78, 16.06, 18.01, 17.12, 13.56, 9.2, 3.79, -3.22, -2.35, -3.86, -1.81, 4.32, 9.28, 15.52, 17.99, 16.91, 12.8, 8.21, 2.91, -4.36, -1.56, -3.61, -1.38, 4.94, 10.07, 15.2, 17.13, 17.38, 13.93, 9.26, 3.24, -4.51, -0.8, -2.2, -0.75, 4.74, 10.0, 15.46, 17.42, 18.34, 15.01, 10.06, 4.41, -2.22, -2.11, -3.92, -1.58, 4.86, 10.2, 15.17, 16.77, 13.25, 8.84, 2.63, -5.06, -1.72, -3.47, -1.93, 4.2, 10.03, 14.4, 15.99, 15.7, 12.16, 8.54, 2.56, -5.2, -1.67, -2.82, -1.15, 5.0, 9.27, 15.74, 18.53, 17.86, 14.24, 9.54, 4.33, -2.62, -0.98, -3.0, -0.7, 5.29, 10.61, 15.46, 17.53, 17.75, 13.83, 9.62, 3.64, -3.74, -2.51, -3.43, -1.88, 4.89, 8.97, 14.88, 17.95, 16.72, 13.16, 9.08, 3.67, -3.71, -1.22, -3.33, -0.96, 5.28, 10.31, 15.73, 17.33, 18.24, 14.38, 9.46, 3.49, -3.31, -1.67, -3.87, -1.84, 4.44, 10.11, 15.32, 16.66, 17.25, 13.21, 8.51, 2.54, -4.61, -2.22, -4.79, -2.58, 4.07, 9.46, 14.17, 16.07, 15.69, 11.96, 8.04, 2.1, -5.61, -3.0, -4.55, -2.88, 4.62, 9.66, 15.39, 17.11, 16.51, 12.75, 8.19, 2.17, -5.33, -2.06, -3.69, -2.15, 5.26, 9.23, 15.9, 18.78, 17.61, 13.64, 8.67, 3.48, -3.04, -2.5, -4.57, -2.26, 4.8, 10.06, 15.07, 17.13, 16.53, 12.89, 8.56, 2.15, -5.52, -2.1, -4.15, -2.59, 4.11, 9.51, 14.24, 16.03, 16.18, 12.37, 8.33, 2.53, -5.06, -1.24, -3.16, -1.73, 3.46, 7.08, 14.77, 17.5, 17.88, 13.33, 8.62, 4.42, -1.65, -3.39, -4.2, -2.94, 4.88, 8.89, 14.2, 16.78, 15.56, 12.39, 8.2, 2.36, -5.56, -1.26, -3.39, -0.73, 5.23, 10.61, 15.87, 17.17, 17.94, 14.29, 9.48, 3.54, -3.09, -1.37, -3.57, -0.96, 4.46, 15.46, 16.81, 17.72, 14.34, 9.35, 3.97, -2.78, 16.26, 15.99, 11.95, 7.23, 1.32, -5.62, -2.99, -4.95, -3.07, 4.48, 9.72, 15.43, 16.48, 16.51, 12.64, 8.01, 1.49, -5.39, 14.75, 11.62, 7.37, 1.13, -6.9, -2.28, -4.77, -2.72, 4.11, 10.0, 15.05, 16.36, 16.35, 12.09, 8.1, 2.12, -4.67, -3.96, -5.35, -3.37, 4.51, 9.08, 14.91, 16.71, 15.74, 12.26, 7.84, 1.77, -6.55, -2.98, -4.25, -3.15, 4.46, 8.41, 14.36, 16.31, 16.15, 11.57, 7.13, 3.08, -3.43, -2.43, -3.39, -2.24, 5.56, 9.15, 14.93, 17.46, 16.44, 12.6, 8.59, 2.85, -4.78, -1.87, -3.19, -2.3, 4.85, 8.06, 14.49, 17.78, 16.24, 13.34, 8.53, 3.73, -2.42, -3.4, -5.81, -4.53, 3.65, 9.4, 14.36, 15.85, 15.41, 11.53, 7.58, 1.23, -5.99, -1.47, -3.5, -1.86, 3.13, 7.14, 14.04, 17.49, 18.08, 12.8, 8.35, 4.24, -1.58, -0.59, -2.16, -1.4, 4.48, 7.67, 15.3, 18.62, 18.83, 14.1, 9.52, 4.42, -1.05, -3.85, -5.46, -3.76, 4.53, 9.14, 15.01, 16.85, 15.68, 12.13, 7.78, 1.45, -6.71, -3.05, -4.57, -2.48, 5.08, 9.22, 15.82, 17.96, 17.14, 12.98, 8.77, 2.06, -5.05, -3.17, -4.41, -4.05, 4.88, 8.82, 14.55, 17.24, 16.17, 12.24, 7.78, 2.85, -3.42, -4.06, -6.32, -4.44, 3.36, 9.0, 14.67, 16.26, 15.92, 11.47, 6.96, 0.67, -6.85, -3.24, -5.73, -4.45, 3.62, 9.58, 14.78, 16.42, 16.06, 11.5, 7.47, 1.1, -6.05, -2.14, -4.43, -1.65, 5.14, 10.23, 16.1, 17.53, 17.77, 13.72, 8.62, 2.58, -3.89, -1.4, -3.89, -1.49, 4.61, 10.11, 15.31, 16.66, 17.36, 13.27, 8.88, 3.31, -3.06, -3.92, -6.53, -4.38, 3.2, 8.62, 14.78, 15.72, 15.84, 11.34, 6.67, 0.38, -6.13, -3.67, -5.82, -3.75, 4.33, 8.91, 15.18, 17.24, 15.85, 12.11, 7.81, 1.49, -6.23, -0.77, -3.81, -0.91, 4.48, 9.52, 16.28, 16.98, 18.87, 15.02, 10.14, 4.5, -1.41, -2.88, -4.58, -3.17, 4.5, 8.3, 15.43, 18.01, 16.82, 12.85, 7.9, 2.26, -5.17, -4.19, -6.6, -4.64, 3.55, 8.7, 14.54, 16.08, 15.16, 11.4, 6.69, 0.55, -6.56, -2.19, -4.87, -2.72, 4.84, 10.21, 15.7, 17.4, 17.27, 12.71, 8.11, 2.02, -4.29, -3.76, -5.86, -3.78, 4.34, 9.14, 15.39, 17.12, 16.35, 12.07, 7.74, 1.61, -6.52, -3.87, -6.98, -6.32, 3.27, 8.36, 13.65, 15.88, 14.8, 11.27, 6.83, 0.71, -6.62, -1.97, -5.27, -2.27, 4.36, 9.47, 15.43, 16.5, 17.31, 13.48, 8.74, 2.74, -3.48, -2.66, -5.25, -3.42, 4.36, 8.09, 15.51, 17.78, 17.06, 12.8, 8.04, 2.21, -4.6, -3.53, -6.41, -4.05, 3.65, 9.24, 15.22, 16.3, 16.31, 12.08, 7.24, 0.77, -5.45, -4.15, -6.76, -4.35, 3.54, 8.76, 15.39, 16.76, 16.23, 11.56, 7.0, 0.38, -6.44, -2.32, -6.03, -4.33, 4.33, 9.74, 15.73, 16.97, 17.08, 12.6, 8.13, 1.75, -4.61, -2.81, -5.86, -2.99, 4.29, 9.38, 15.8, 16.78, 17.26, 12.69, 7.76, 1.07, -4.98, -2.0, -4.13, -2.5, 5.34, 9.93, 15.9, 18.14, 13.6, 8.88, 2.34, -4.62, -4.13, -6.66, -5.04, 3.77, 9.28, 14.82, 16.47, 15.83, 11.68, 7.23, 0.94, -6.46, -3.54, -5.92, -4.38, 4.38, 8.84, 14.88, 17.66, 16.24, 12.23, 7.77, 1.44, -6.24, -4.06, -7.05, -5.48, 3.39, 8.55, 14.0, 15.98, 14.81, 10.91, 6.53, 0.38, -6.9, -0.99, -3.1, -2.68, 3.16, 5.93, 13.47, 17.98, 17.91, 12.68, 8.6, 3.99, -0.86, -2.45, -5.85, -3.94, 5.26, 10.09, 15.93, 16.97, 16.69, 13.1, 8.82, 2.17, -3.96, -1.81, -5.42, -2.76, 4.79, 9.38, 15.49, 16.37, 17.59, 13.29, 9.07, 2.54, -3.05, -3.17, -6.75, -5.0, 3.92, 9.19, 14.9, 17.05, 16.07, 12.3, 7.58, 1.62, -6.27, -3.18, -5.93, -4.08, 4.71, 9.71, 16.28, 18.26, 17.19, 12.7, 7.92, 1.67, -5.75, -1.64, -4.89, -4.06, 3.79, 8.17, 15.45, 16.42, 17.7, 13.07, 8.25, 2.67, -3.07, -3.38, -6.97, -5.73, 3.79, 9.06, 14.55, 16.07, 15.51, 11.7, 7.3, 0.51, -5.74, -0.93, -4.44, -1.48, 4.5, 9.33, 16.34, 16.59, 18.84, 14.52, 10.02, 4.28, -1.37, -3.51, -6.69, -5.56, 3.8, 9.17, 15.01, 15.88, 15.96, 11.18, 6.57, 0.62, -5.29, -2.89, -6.82, -5.77, 4.4, 9.4, 15.45, 16.59, 15.78, 12.15, 7.95, 0.72, -4.79, -3.76, -6.79, -5.51, 4.47, 9.73, 16.05, 17.49, 16.92, 12.56, 7.88, 1.22, -6.77, -2.86, -6.63, -6.51, 4.61, 9.67, 15.84, 17.1, 16.73, 12.71, 8.23, 0.87, -4.96, -3.37, -6.66, -5.14, 4.39, 9.55, 15.86, 17.96, 16.69, 12.93, 8.0, 1.42, -6.71, -2.04, -6.08, -4.94, 4.89, 9.78, 16.37, 17.04, 17.39, 13.18, 8.9, 1.75, -3.5, -1.1, -4.56, -1.81, 4.59, 9.62, 16.48, 16.66, 18.96, 14.55, 9.95, 4.02, -1.36, -2.28, -5.06, -3.83, 4.11, 8.55, 15.97, 18.0, 18.09, 13.4, 8.44, 2.01, -4.53, -2.79, -6.67, -6.65, 4.61, 9.79, 16.13, 17.41, 16.95, 12.33, 7.67, 0.53, -4.74, -2.35, -6.61, -4.47, 4.67, 9.84, 16.66, 17.5, 17.67, 12.88, 8.65, 1.25, -3.71, -2.67, -6.96, -7.2, 3.23, 7.92, 15.78, 16.33, 16.96, 12.9, 8.32, 1.26, -3.86, -3.73, -6.99, -6.39, 4.45, 9.7, 15.86, 17.88, 16.81, 12.49, 7.94, 1.25, -6.65, -4.07, -7.09, -6.49, 4.35, 9.6, 15.76, 17.78, 16.71, 12.4, 7.84, 1.15, -6.75, -2.81, -6.36, -4.28, 4.56, 9.89, 16.74, 17.62, 17.59, 12.44, 8.05, 1.26, -4.58, -2.77, -6.64, -4.82, -2.75, -7.23, -5.58, 4.53, 9.99, 16.67, 17.75, 17.72, 12.65, 8.35, 1.07, -4.84, -2.32, -6.41, -6.23, 4.35, 9.16, 15.81, 17.13, 17.08, 12.71, 8.37, 1.4, -4.02, -2.53, -6.49, -5.56, 3.62, 8.62, 15.74, 17.16, 17.59, 12.03, 7.82, 1.38, -4.0, -1.91, -2.76, -5.36, -5.43, 3.94, 8.26, 14.52, 16.95, 16.31, 12.58, 7.51, 1.36, -5.07, -2.95, -6.69, -4.24, 4.22, 9.33, 16.38, 17.38, 17.74, 12.8, 8.05, 1.03, -4.57, -2.24, -6.98, -4.29, 4.54, 9.56, 15.9, 16.75, 16.66, 12.54, 8.58, 0.56, -3.74, -2.7, -7.42, -6.54, 3.58, 8.69, 15.41, 16.62, 16.38, 12.12, 8.17, -0.02, -4.01, -3.18, -6.32, -4.83, 4.53, 9.69, 16.31, 18.26, 17.29, 12.41, 8.0, 0.94, -6.17, -3.07, -7.43, -5.91, 4.07, 9.53, 15.79, 16.97, 16.49, 11.51, 7.74, 0.15, -5.35, -1.66, -4.6, -3.87, 4.21, 8.69, 15.88, 17.47, 17.88, 13.0, 7.71, 1.96, -4.15, -1.85, -6.51, -5.22, 4.63, 10.3, 17.23, 17.74, 17.79, 13.56, 9.12, 2.07, -3.9, -1.08, -3.69, -3.31, 2.56, 6.44, 14.04, 16.61, 18.59, 13.0, 8.04, 2.92, -1.87, -4.08, -8.02, -6.6, 3.62, 8.7, 15.06, 17.04, 15.76, 11.24, 7.2, -0.25, -6.45, -3.62, -7.27, -6.34, 4.04, 9.49, 15.47, 18.04, 16.77, 11.82, 8.01, -3.09, -6.2, -4.91, 4.05, 8.98, 14.66, 17.01, 16.28, 12.01, 7.53, 0.56, -6.13, -4.71, -8.42, -4.67, 3.27, 8.57, 15.42, 16.82, 16.97, 11.09, 6.91, -0.63, -6.38, -1.84, -5.31, -1.92, 4.97, 9.9, 16.49, 16.94, 18.68, 13.77, 9.64, 2.69, -2.12, -1.91, -6.48, -6.2, 3.49, 8.31, 16.05, 16.85, 17.5, 12.42, 8.52, 1.54, -2.85, -2.63, -5.53, -5.13, 4.16, 8.65, 14.54, 17.33, 16.44, 12.1, 7.88, 1.05, -4.67, -3.49, -8.24, -5.49, 3.34, 8.58, 15.33, 16.03, 16.45, 11.36, 7.47, -1.25, -5.2, -2.27, -6.27, -3.12, 4.63, 9.75, 15.69, 16.87, 17.5, 12.79, 8.89, 0.97, -3.14, -4.28, -8.31, -5.95, 3.53, 9.22, 15.68, 17.21, 16.43, 11.19, 7.34, -0.54, -6.35, -3.83, -7.72, -5.17, 4.48, 9.58, 15.81, 17.77, 16.86, 11.84, 7.87, -0.12, -6.45, -4.29, -7.55, -5.51, 3.8, 9.36, 15.31, 17.18, 16.31, 11.46, 6.96, -0.81, -7.01, -2.95, -7.56, -5.21, 3.98, 9.41, 16.15, 17.08, 17.0, 11.69, 8.18, -0.35, -4.35, -2.26, -5.15, -5.61, 3.56, 8.07, 14.16, 16.6, 16.24, 11.82, 7.79, 1.56, -3.3, -4.26, -8.34, -6.25, 3.51, 8.93, 15.26, 16.87, 15.88, 10.89, 7.11, -1.07, -6.57, -3.97, -6.68, -6.36, 3.53, 8.6, 14.36, 16.65, 16.1, 11.19, 6.8, 0.12, -5.1, -3.12, -8.07, -6.32, 3.8, 9.35, 15.82, 16.72, 16.86, 11.61, 8.01, -0.58, -4.69, -3.33, -6.08, -4.78, 3.87, 9.2, 15.72, 17.66, 17.13, 11.58, 7.2, 0.51, -4.69, -4.01, -7.42, -4.68, 4.05, 9.67, 16.79, 17.88, 17.35, 11.66, 7.63, -0.79, -6.45, -3.43, -8.41, -5.6, 3.66, 9.01, 15.78, 16.35, 17.09, 11.85, 7.99, -0.56, -4.53, -4.54, -8.38, -6.2, 3.75, 9.31, 16.43, 17.51, 16.8, 11.39, 7.49, -0.89, -7.36, -4.02, -7.42, -5.7, 4.06, 9.47, 15.46, 17.69, 16.65, 11.49, 7.3, -0.84, -6.65, -4.87, -8.63, -6.61, 2.97, 8.67, 15.23, 16.52, 15.86, 10.32, 6.84, -1.82, -7.55, -1.21, -3.71, -4.2, 3.44, 7.44, 14.98, 17.58, 18.42, -3.68, -8.85, -5.59, 3.11, 8.66, 15.18, 15.73, 15.87, 10.68, 6.86, -2.28, -5.6, -3.35, -6.25, -5.03, 4.26, 9.2, 15.95, 18.1, 17.31, 12.37, 7.8, 1.04, -4.91, -3.41, -6.62, -5.01, 4.34, 9.77, 16.45, 17.6, 17.83, 11.64, 7.68, -0.89, -5.93, -4.51, -7.87, -6.11, 4.26, 8.83, 15.74, 17.6, 17.05, 11.08, 6.93, -0.41, -6.75, -3.82, -7.74, -5.4, 4.56, 9.75, 16.23, 18.08, 16.9, 11.62, 7.66, -0.29, -7.19, -3.32, -6.46, -5.1, 4.38, 9.28, 15.71, 18.0, 17.34, 11.93, 7.5, 0.88, -4.94, -4.54, -7.62, -5.86, 4.51, 9.08, 16.0, 17.85, 17.3, 11.33, 7.18, -0.15, -6.51, -3.28, -5.98, -4.69, 4.58, 9.6, 16.37, 18.6, 17.77, 12.12, 7.49, 0.85, -4.79, -3.41, -6.47, -5.71, 4.04, 8.86, 14.91, 17.24, 16.9, 11.65, 7.22, 1.15, -4.51, 14.87, 17.28, 17.86, 12.24, 7.9, 1.9, -2.96, -4.13, -8.04, -6.03, 4.8, 9.94, 16.65, 18.19, 17.29, 11.7, 7.55, -0.87, -7.4, -4.99, -8.48, -5.83, 3.66, 9.67, 17.38, 17.68, 18.17, 11.26, 7.27, -2.0, -7.4, -4.82, -8.67, -5.67, 9.26, 15.78, 16.82, 10.48, 6.73, -4.2, -7.76, -5.13, 4.15, 9.33, 16.46, 17.97, 17.44, 11.75, 7.71, -0.06, -6.41, -4.43, -8.91, -3.64, 3.3, 8.9, 15.74, 15.86, 16.84, 11.08, 6.83, -1.82, -5.58, -3.35, -7.27, -4.32, 4.72, 9.97, 17.02, 18.21, 17.49, 11.86, 7.92, 0.13, -5.47, -3.65, -6.8, -5.12, 4.44, 9.29, 15.88, 17.98, 17.61, 11.76, 7.32, 0.49, -5.34, -4.2, -7.92, -6.81, 4.06, 8.69, 15.44, 17.28, 16.87, 10.74, 6.67, -0.34, -6.44, -4.25, -9.36, -6.15, 3.37, 9.38, 16.43, 16.75, 16.54, 10.81, 6.83, -3.18, -6.6, -5.37, -9.69, -6.63, 2.38, 8.46, 15.28, 16.35, 15.92, 10.15, 6.39, -2.86, -7.56, -4.78, -8.64, -5.53, 3.23, 9.64, 17.09, 17.4, 17.53, 11.32, 7.11, -2.19, -6.89, -3.49, -6.03, -4.95, 4.43, 8.55, 15.56, 17.79, 17.49, 11.87, 7.59, 1.17, -4.48, -1.54, -4.49, -4.67, 2.2, 5.46, 13.49, 16.43, 18.39, 11.8, 8.15, 3.04, -1.42, -5.28, -9.1, -5.9, 3.18, 8.8, 16.31, 16.83, 16.68, 10.28, 6.47, -2.27, -7.35, -4.99, -8.77, -5.61, 3.49, 8.83, 15.91, 16.23, 16.92, 10.69, 6.57, -1.63, -7.03, -3.71, -7.38, -4.56, 4.64, 9.42, 16.27, 17.95, 17.85, 11.78, 7.55, 0.41, -5.76, -4.73, -8.64, -5.74, 3.72, 8.4, 15.44, 17.13, 17.04, 10.8, 6.66, -0.78, -7.11, -6.15, -10.34, -6.1, 2.39, 7.79, 15.02, 15.86, 15.75, 9.45, 5.8, -3.39, -8.24, -5.21, -6.49, 3.34, 8.89, 15.33, 16.08, 15.73, 10.26, 6.43, -3.69, -8.51, -5.77, -10.62, -6.23, 2.99, 8.88, 15.56, 16.03, 15.91, 10.39, 6.5, -3.49, -8.27, -6.1, -11.56, -6.83, 2.98, 8.74, 15.98, 16.61, 16.44, 10.48, 6.53, -4.51, -8.63, -6.53, -12.09, -7.76, 1.96, 8.08, 14.94, 15.24, 15.17, 9.13, 5.37, -5.11, -9.62, -3.34, -6.48, -4.94, 3.64, 7.06, 14.19, 17.14, 16.81, 11.82, 7.47, 1.37, -4.06, -5.32, -9.64, -6.39, 3.04, 8.38, 16.0, 16.92, 16.89, 10.6, 6.53, -1.94, -7.64, -4.45, -8.13, -6.06, 3.65, 7.8, 14.43, 16.78, 16.33, 10.98, 6.59, -0.28, -6.36, -7.05, -11.93, -7.48, 1.58, 14.94, 15.42, 15.69, 9.56, 5.73, -3.61, -8.53, -4.99, -10.44, -7.49, 3.0, 8.05, 14.51, 16.45, 16.18, 10.71, 6.57, -1.6, -7.5, -6.29, -11.69, -6.23, 2.82, 8.49, 14.67, 15.11, 15.02, 9.89, 6.14, -4.83, -8.17, -5.52, -10.89, -7.27, 2.54, 8.1, 15.56, 16.14, 16.13, 9.81, 5.99, -3.0, -8.06, -6.01, -10.89, -6.46, 2.5, 7.74, 15.41, 16.21, 9.84, 6.09, -3.25, -8.54, -10.92, -5.04, 0.62, 6.17, 14.73, 14.64, 15.64, 8.29, 4.92, -4.47, -7.49, -6.09, -11.01, -6.61, 2.67, 8.27, 16.08, 16.65, 16.4, 10.28, 6.55, -3.2, -8.65, -4.55, -8.6, -4.96, 3.33, 8.03, 16.14, 17.22, 17.28, 11.33, 7.08, -0.9, -6.23, -6.07, -10.71, -6.63, 2.31, 7.55, 15.11, 16.25, 16.09, 10.33, 6.39, -3.06, -8.64, -2.58, -6.95, -5.07, 2.77, 6.29, 14.23, 16.75, 17.17, 11.92, 7.85, 1.57, -3.2, -3.94, -8.88, -4.89, 2.99, 6.76, 14.72, 16.71, 16.76, 11.17, 6.9, -0.27, -5.39, -6.52, -11.57, -6.37, 2.79, 7.96, 15.72, 16.1, 15.98, 9.99, 6.28, -3.84, -8.99, -4.16, -8.5, -3.62, 3.84, 7.8, 15.99, 17.26, 17.11, 11.48, 7.32, -0.95, -5.86, -6.54, -11.65, -6.56, 2.93, 8.48, 16.35, 16.31, 16.41, 9.91, 6.21, -3.8, -8.49, -2.65, -8.49, -5.03, 2.14, 4.93, 13.4, 16.58, 17.77, 12.16, 8.0, 0.93, -3.32, -7.01, -12.76, -6.87, 2.23, 7.55, 15.24, 15.58, 15.44, 8.93, 5.53, -5.51, -9.35, -7.56, -13.37, -8.06, 2.42, 7.93, 14.7, 14.69, 14.78, 8.49, 4.44, -7.98, -10.92, -7.08, -11.25, -6.88, 1.93, 6.67, 14.56, 15.01, 14.96, 9.19, 5.23, -4.83, -9.4, -7.6, -12.99, -7.38, 3.22, 8.61, 15.8, 15.92, 16.02, 9.66, 5.77, -5.61, -10.31, -7.65, -14.32, -9.0, 1.02, 6.62, 13.6, 13.61, 14.07, 7.07, 3.68, -9.09, -11.6, -8.24, -13.95, -8.1, 1.49, 6.9, 14.18, 14.1, 14.73, 7.88, 4.39, -8.61, -10.53, -8.07, -12.79, -6.32, 2.04, 7.81, 15.21, 14.84, 15.5, 8.59, 4.59, -7.48, -10.99, -5.81, -10.04, -4.62, 2.35, 5.99, 14.21, 15.79, 15.53, 10.62, 6.66, -2.71, -7.26, -7.88, -14.42, -9.24, 1.11, 6.28, 13.43, 13.14, 13.73, 7.14, 3.76, -8.93, -10.9, -7.47, -11.67, -4.74, 2.74, 7.42, 15.85, 15.55, 16.04, 9.59, 5.77, -4.89, -8.88, -5.66, 2.52, 7.25, 16.33, 16.22, 16.52, 10.07, 6.37, -4.2, -8.74, -8.63, -13.12, -6.58, 2.59, 7.26, 16.17, 15.88, 16.46, 9.61, 5.78, -4.83, -10.14, -6.06, -9.96, -3.72, 3.14, 6.71, 15.32, 15.91, 17.22, 10.3, 6.48, -3.12, -6.42, -8.18, -12.17, -5.78, 2.68, 6.53, 15.57, 15.61, 15.55, 9.32, 5.66, -4.27, -9.05, 15.91, 15.68, 16.37, 9.41, 5.49, -5.17, -9.99, -10.48, -17.29, -11.29, -0.79, 4.62, 11.75, 11.85, 12.92, 6.18, 2.45, -9.8, -13.73, -9.22, -16.9, -10.04, 0.27, 5.58, 12.98, 12.78, 13.61, 6.32, 2.98, -11.02, -13.45, -8.79, -16.07, -8.29, 1.39, 6.53, 14.37, 13.98, 14.8, 7.34, 3.67, -9.03, -13.07, -8.97, -15.2, -8.5, -0.37, 5.07, 12.15, 11.79, 5.99, 2.45, -8.46, -9.75, -9.63, -16.44, -9.08, 1.45, 6.75, 14.53, 14.75, 15.61, 8.01, 4.18, -8.2, -11.8, -4.48, -10.08, -5.09, 1.39, 4.01, 13.78, 15.31, 16.45, 10.75, 6.05, -1.52, -5.03, -7.84, -12.62, -5.77, 2.1, 5.48, 14.66, 14.79, 15.63, 9.01, 5.15, -4.49, -9.43, -7.41, -11.74, -4.6, 2.14, 5.25, 14.7, 15.44, 15.9, 9.39, 5.6, -3.84, -8.33, -10.22, -17.67, -9.9, 0.46, 5.36, 12.29, 12.35, 12.92, 5.96, 1.79, -12.36, -16.24, -9.48, -16.61, -8.84, 1.51, 6.42, 13.35, 13.41, 13.98, 7.02, 2.85, -11.3, -15.18, -9.49, -14.79, -6.49, 2.36, 6.71, 14.73, 14.76, 15.82, 8.5, 4.36, -5.71, -12.85, -9.99, -17.34, -11.11, -0.16, 5.06, 11.65, 11.59, 13.23, 5.42, 1.91, -11.12, -14.31, -9.76, -15.26, -10.37, -0.92, 4.12, 10.93, 11.06, 13.18, 5.41, 1.83, -10.13, -11.21, -8.97, -14.91, -7.21, 0.75, 5.51, 13.17, 13.23, 14.77, 7.03, 3.41, -7.88, -10.4, -9.36, -15.19, -7.89, 1.1, 5.78, 13.44, 13.66, 6.98, 3.07, -7.19, -13.35, -10.0, -17.15, -9.51, 0.13, 5.15, 12.72, 12.3, 14.47, 6.42, 2.83, -8.7, -12.41, -7.36, -12.03, -5.73, 2.08, 5.77, 14.65, 15.24, 16.19, 9.5, 5.34, -3.09, -9.14, -7.76, -12.21, -5.64, 1.24, 5.14, 14.12, 14.64, 15.29, 7.9, 4.24, -4.25, -8.75, -8.95, -14.1, -6.27, 2.32, 6.7, 14.15, 15.38, 7.34, 3.74, -6.22, -12.87, -8.64, -14.9, -7.69, 2.78, 6.94, 14.85, 15.59, 16.24, 8.78, 4.52, -5.48, -13.42, -8.14, -14.25, -8.91, -0.54, 4.3, 11.91, 11.54, 13.41, 5.43, 2.51, -7.96, -8.72, -9.23, -14.44, -6.58, 2.34, 6.73, 14.67, 15.11, 16.34, 7.82, 4.17, -5.89, -13.21, -9.3, -15.07, -6.41, 1.88, 6.45, 14.32, 14.32, 15.71, 7.71, 3.63, -6.84, -13.31, -9.0, -14.13, -8.81, 2.0, 6.97, 14.82, 14.36, 16.96, 8.46, 4.61, -3.76, -9.65, -8.94, -13.85, -6.24, 2.45, 6.6, 14.35, 15.26, 16.24, 8.59, 4.15, -5.28, -12.33, -8.99, -14.45, -5.81, 3.06, 7.36, 15.35, 16.08, 17.07, 8.65, 4.39, -5.36, -13.06, -8.32, -12.65, -6.3, 1.88, 6.83, 14.55, 13.83, 16.77, 8.06, 4.59, -4.21, -9.23, -8.32, -12.56, -6.31, 1.69, 7.06, 14.48, 14.11, 17.11, 8.04, 4.23, -4.78, -9.45, -6.8, -13.0, -6.41, -0.44, 5.25, 12.04, 11.31, 15.02, 5.87, 3.19, -6.46, -7.54, -7.5, -12.52, -6.28, 0.69, 5.15, 13.02, 14.57, 15.36, 8.0, 4.5, -4.16, -6.9, -9.96, -14.83, -8.47, 1.55, 6.27, 13.37, 12.84, 14.4, 7.27, 3.79, -6.77, -12.65, -9.72, -14.63, -8.74, 0.98, 5.69, 12.51, 12.3, 14.72, 6.76, 3.23, -6.83, -12.58, -8.87, -14.2, -6.68, 2.03, 6.44, 14.58, 15.2, 16.34, 7.97, 3.55, -6.33, -13.45, -8.63, -13.51, -6.08, 0.97, 5.29, 14.72, 8.27, 4.28, -4.59, -7.91, -9.67, -14.72, -7.23, 1.82, 6.42, 14.48, 14.26, 16.28, 7.66, 4.1, -6.43, -12.31, -8.19, -12.7, -4.37, 0.82, 5.92, 13.62, 12.99, 6.79, 3.39, -5.27, -8.75, -10.16, -14.09, -6.5, 1.49, 6.05, 14.06, 13.52, 15.53, 6.81, 3.01, -6.62, -11.1, -8.56, -12.04, -7.99, 0.5, 5.12, 12.49, 12.02, 15.82, 6.47, 3.26, -6.43, -9.7, -9.65, -14.24, -6.72, 0.53, 5.28, 13.6, 14.87, 15.39, 8.21, 4.08, -4.39, -7.43, -9.17, -14.04, -6.23, 0.6, 5.7, 13.87, 14.55, 15.81, 8.52, 4.39, -3.98, -7.15, -8.62, -13.14, -5.14, 1.67, 5.85, 14.23, 15.46, 16.37, 8.65, 4.56, -3.68, -6.82, -9.35, -12.75, -5.54, 0.89, 5.62, 13.15, 12.79, 6.28, 2.75, -6.38, -9.88, -10.58, -15.74, -7.38, 0.26, 4.76, 13.4, 14.19, 15.09, 7.33, 3.28, -6.54, -10.99, -10.55, -14.1, -6.25, 0.3, 4.5, 13.3, 13.27, 6.03, 2.13, -7.89, -10.95, -9.4, -12.93, -5.76, -9.51, -13.55, -9.61, 0.17, 4.9, 12.5, 12.42, 15.39, 6.18, 2.66, -7.15, -10.68, -10.9, -16.19, -9.05, -0.63, 4.05, 12.81, 13.68, 15.39, 6.56, 2.39, -8.26, -12.33, -8.03, -12.09, -10.48, -14.56, -7.33, 1.08, 5.78, 14.39, 14.12, 16.67, 7.01, 3.08, -7.92, -11.44, -10.11, -15.05, -6.57, 0.65, 5.27, 14.13, 14.69, 16.16, 7.79, 3.51, -6.6, -10.53, -10.83, -14.03, -9.16, -0.34, 3.78, 11.83, 12.01, 15.14, 5.19, 2.34, -8.52, -11.06, -10.14, -15.45, -7.11, -0.41, 3.75, 12.75, 14.24, 15.02, 7.7, 4.15, -4.29, -7.94, -10.65, -14.47, -6.68, 0.89, 5.03, 13.75, 13.28, 6.37, 2.14, -7.54, -11.39, 5.62, 2.1, -7.41, -10.76, -10.98, -14.13, -6.91, 0.19, 4.47, 13.78, 12.56, 15.32, 5.72, 2.18, -8.14, -11.96, -12.27, -16.54, -7.1, -0.58, 4.55, 13.44, 13.96, 15.33, 6.32, 2.29, -9.07, -12.79, -13.1, -17.11, -9.48, -0.29, 3.8, 13.45, 12.87, 14.81, 6.48, 2.66, -8.69, -13.38, -10.12, -13.64, -8.02, 0.51, 4.66, 12.52, 12.64, 16.11, 6.24, 3.06, -6.32, -11.07, -11.18, -14.45, -7.1, -0.76, 3.61, 12.46, 12.13, 14.61, 4.85, 1.47, -8.25, -10.91, -5.45, -8.99, -11.02, -14.62, -5.43, -0.62, 4.11, 13.2, 13.48, 15.44, 6.35, 2.54, -7.61, -9.77, -13.21, -15.36, -8.8, -1.86, 2.17, 10.66, 10.63, 13.61, 4.39, 1.34, -9.5, -12.32, -13.38, -15.75, -7.62, -0.45, 3.37, 12.85, 12.85, 15.29, 6.28, 2.55, -9.44, -13.18, -13.87, -17.44, -8.19, -0.9, 4.33, 13.9, 13.88, 15.89, 6.82, 2.92, -10.42, -13.5, -15.88, -7.35, -0.27, 3.91, 13.24, 8.22, 4.32, -5.6, -10.01, -13.88, -16.56, -8.16, -1.0, 2.87, 11.88, 11.99, 14.08, 4.96, 1.37, -10.08, -14.02, -12.13, -15.99, -7.62, -0.38, 3.8, 13.13, 15.94, 16.12, 8.11, 4.21, -5.71, -10.12, -12.56, -17.25, -7.68, -0.6, 4.24, 13.34, 15.51, 15.69, 8.25, 4.08, -6.82, -11.89, -12.04, -15.73, -6.7, -1.95, 3.22, 12.0, 12.69, 14.57, 5.35, 1.49, -7.9, -10.55, -14.42, -18.49, -9.41, -2.18, 3.63, 12.28, 13.53, 13.97, 5.55, 1.35, -10.88, -14.41, -9.65, 12.27, 14.63, 15.41, 9.51, 5.3, -1.78, -6.34, -14.77, -7.81, -2.33, 2.39, 12.01, 13.48, 5.01, 0.58, -10.27, -11.98, 15.12, 5.89, 2.15, -12.18, -15.28, -12.16, -17.15, -8.21, -0.62, 4.38, 13.66, 15.27, 15.69, 8.25, 3.68, -5.94, -11.47, -12.46, -17.1, -7.8, 0.0, 4.74, 13.91, 15.5, 15.63, 8.0, 3.45, -6.58, -12.05, 14.36, 5.23, 1.59, -9.33, -12.43, -15.21, -18.32, -10.6, -1.91, 2.58, 10.61, 11.48, 13.61, 4.48, 0.95, -11.83, -13.88, -16.85, -18.81, -9.8, -1.44, 2.47, 12.06, 12.52, 15.09, 6.14, 2.1, -11.42, -16.36, -13.02, -17.02, -6.74, 0.3, 5.53, 14.07, 15.78, 16.23, 7.91, 3.58, -7.6, -13.07, -13.41, -17.37, -9.63, -0.71, 4.44, 14.91, 7.61, 3.04, -15.24, -18.72, -8.34, -1.34, 4.03, 13.3, 14.46, 15.05, 6.71, 2.11, -10.44, -15.22, -13.79, -18.4, -9.75, -0.6, 4.73, 13.14, 14.89, 15.27, 7.68, 3.12, -7.38, -13.27, -16.41, -19.01, -9.39, -2.08, 2.36, 12.01, 13.33, 5.73, 1.85, -11.78, -15.62, -14.51, -19.06, -9.73, -1.12, 4.54, 12.84, 14.46, 15.08, 7.25, 2.41, -8.36, -14.83, -16.55, -18.53, -9.67, -2.27, 2.03, 12.12, 13.16, 15.04, 5.92, 2.17, -10.32, -14.27, -14.25, -18.8, -8.66, -0.99, 4.6, 13.46, 15.01, 6.95, 2.59, -8.28, -13.21, -14.52, -18.86, -10.47, -1.88, 3.9, 13.34, 2.08, -7.55, -11.89, -17.91, -20.16, -10.41, -2.07, 1.78, 11.43, 12.3, 13.74, 5.14, 1.57, -11.34, -15.9, -13.87, -17.75, -7.88, -2.0, 2.92, 11.69, 13.52, 14.16, 5.38, 0.9, -8.87, -12.5, -14.4, 12.34, 13.48, 14.17, 5.64, 0.64, -9.7, -15.16, -18.41, -20.42, -11.32, -3.44, 1.08, 10.44, 11.28, 13.13, 4.11, 0.73, -12.73, -15.24, -17.54, -20.07, -9.23, -1.88, 3.16, 13.0, 14.14, 14.84, 5.5, 1.15, -11.19, -17.13, -14.96, -18.33, -9.16, -2.21, 3.21, 14.53, 5.73, 1.09, -9.86, -14.15, -14.09, -18.16, -8.29, -12.26, -13.61, -17.65, -7.46, -1.87, 3.37, 12.45, 14.05, 14.42, 5.96, 1.57, -7.98, -12.08, -15.76, -18.6, -8.5, -2.84, 1.44, 10.48, 11.37, 13.33, 4.18, 0.54, -9.98, -14.37, -15.0, -18.36, -8.47, -2.81, 2.74, 12.54, 13.81, 14.14, 5.15, 0.96, -9.27, -13.62, -14.95, 0.67, -10.51, -15.29, -18.85, -21.98, -12.03, -4.7, 1.87, 11.24, 12.94, 13.11, 4.77, -0.44, -12.85, -17.24, -16.36, -19.73, -10.52, -4.09, 1.69, 11.47, 13.22, 13.21, 4.7, -0.1, -10.41, -14.86, -16.02, -19.15, -10.05, -5.18, 0.25, 10.28, 12.11, 12.6, 3.8, -0.52, -10.16, -14.17, -19.49, -22.3, -11.04, -6.09, -0.72, 10.09, 11.5, 11.99, 4.03, -0.17, -12.98, -16.4, -19.56, -22.3, -11.04, -6.09, -0.72, 10.09, 11.5, 11.99, 4.03, -0.16, -12.98, -16.84, -15.2, -19.59, -10.18, -3.55, 2.75, 11.84, 13.8, 13.55, 5.32, 0.57, -10.15, -14.18, -17.76, -20.65, -11.54, -5.14, 1.0, 10.94, 12.62, 12.81, 4.4, -0.47, -11.54, -16.15, -14.13, -17.63, -8.06, -3.62, 1.26, 9.53, 11.97, 12.64, 5.02, 1.08, -6.19, -10.75, -13.85, -17.08, -8.4, -4.85, 0.37, 9.01, 11.31, 12.69, 4.94, 0.55, -6.78, -10.51, -18.03, -20.41, -11.02, -6.07, -0.66, 9.33, 11.97, 12.12, 4.24, -0.23, -11.16, -15.32, -17.43, -20.5, -11.59, -5.36, 0.58, 10.87, 12.9, 12.92, 4.85, -0.4, -11.39, -16.25, -2.43, -5.31, -3.23, 5.08, 9.86, 17.37, 19.26, 19.15, 12.54, 8.08, 1.56, -3.55, -1.53, -3.93, -3.35, 3.17, 6.43, 13.44, 17.73, 17.45, 12.68, 7.92, 3.6, -1.39, -16.9, -20.5, -11.7, -4.9, 1.0, 11.1, 13.2, 13.1, 4.7, -0.1, -11.3, -16.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Switzerland&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;, &quot;Switzerland&quot;], &quot;legendgroup&quot;: &quot;Switzerland&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Switzerland&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [2.08, 0.14, 5.04, 8.58, 14.24, 14.61, 19.75, 17.68, 15.8, 11.5, 6.43, -2.92, -6.84, -12.28, -6.19, -4.49, 1.68, 1.61, 6.88, 4.22, 5.84, 3.82, -5.3, -10.8, 0.08, -0.66, 3.95, 7.58, 13.93, 13.88, 18.8, 16.65, 15.37, 10.6, 4.94, -4.25, -7.01, -12.3, -7.13, -4.84, 1.66, 2.35, 7.78, 5.85, 5.17, 3.82, -5.15, -10.72, 1.5, 0.04, 5.47, 9.0, 13.7, 14.48, 19.32, 17.87, 15.65, 10.83, 6.07, -1.44, 1.11, -0.34, 5.09, 8.62, 13.32, 14.09, 18.94, 17.49, 15.27, 10.45, 5.69, -1.88, 2.18, 2.16, 6.91, 11.1, 16.6, 17.9, 22.11, 20.89, 17.85, 14.24, 7.55, 2.16, -2.95, -7.28, -1.14, 1.4, 7.46, 7.16, 12.26, 9.91, 10.02, 7.91, -0.5, -7.35, 1.0, -0.28, 5.72, 8.43, 14.31, 13.96, 18.62, 16.62, 15.81, 11.66, 5.08, -4.88, 0.11, -0.9, 4.16, 8.03, 13.83, 14.29, 19.07, 17.02, 15.59, 10.26, 4.55, -3.87, -1.61, -2.14, 3.03, 6.8, 13.21, 13.34, 17.75, 15.59, 14.71, 9.35, 4.03, -6.22, -1.0, -1.45, 3.86, 7.54, 13.25, 13.03, 17.66, 15.41, 14.32, 9.43, 4.2, -5.42, -1.75, -5.63, 0.65, 3.41, 9.36, 9.8, 14.37, 12.38, 11.88, 10.09, 1.52, -5.64, 2.13, 1.09, 6.08, 9.37, 14.35, 15.63, 20.11, 18.71, 16.76, 12.22, 6.92, -1.47, 3.15, 2.1, 7.19, 11.07, 16.15, 17.56, 21.76, 20.27, 17.6, 14.39, 7.37, 2.71, 1.87, 0.88, 5.08, 8.48, 14.18, 14.01, 18.54, 16.68, 15.3, 10.35, 6.39, -2.18, -4.17, -6.74, -0.63, 1.92, 7.89, 8.15, 12.77, 10.92, 9.89, 6.28, -0.43, -8.36, 1.37, 0.72, 5.78, 9.0, 15.11, 14.77, 19.27, 17.21, 16.24, 11.21, 5.88, -4.67, -0.87, -1.87, 3.44, 7.29, 12.95, 13.18, 18.12, 16.22, 14.37, 9.59, 3.95, -4.62, -2.42, -4.32, 1.6, 5.2, 10.76, 11.38, 15.58, 14.11, 12.58, 9.0, 1.92, -7.73, -4.16, -7.36, -0.98, 1.72, 8.01, 7.89, 12.48, 10.29, 10.25, 7.33, -0.76, -8.29, -1.51, -3.45, 0.8, 4.79, 10.81, 10.65, 15.26, 12.66, 11.92, 8.63, 2.75, -8.08, -1.56, -5.31, 1.0, 3.52, 9.45, 10.06, 14.99, 12.78, 11.52, 9.52, 1.05, -5.53, -4.67, -9.22, -3.33, -1.02, 4.78, 5.07, 9.98, 7.71, 8.15, 5.66, -2.25, -9.03, -1.22, -3.99, 1.38, 4.16, 9.73, 9.77, 15.18, 13.27, 11.54, 7.84, 1.9, -6.46, 0.15, -0.39, 4.55, 8.18, 14.25, 14.39, 19.31, 17.21, 15.41, 10.0, 5.12, -3.17, 0.74, -0.38, 4.88, 8.63, 13.71, 14.66, 19.77, 18.02, 16.09, 11.17, 5.77, -2.52, -9.19, -10.65, -3.78, 0.59, 7.44, 7.98, 11.63, 9.72, 8.76, 5.09, -2.62, -11.9, -3.85, -7.63, -1.59, 1.0, 7.31, 8.49, 12.89, 11.01, 9.64, 7.41, -0.83, -6.96, -7.25, -9.79, -3.55, 0.02, 6.24, 7.63, 11.65, 9.57, 8.09, 4.94, -2.4, -9.7, -1.0, -2.39, 2.44, 5.95, 12.62, 12.26, 17.35, 15.12, 13.66, 8.91, 4.01, -5.62, -5.51, -5.02, 0.93, -0.32, 4.89, 8.47, 14.26, 15.1, 19.74, 17.58, 16.01, 10.75, 5.46, -2.82, 0.36, -0.45, 5.88, 9.04, 14.9, 15.38, 19.4, 17.72, 15.87, 11.63, 4.73, -4.62, 0.06, -0.79, 4.66, 8.32, 13.32, 14.33, 18.77, 17.08, 15.05, 10.07, 4.94, -3.15, -0.22, -1.52, 3.68, 7.38, 13.08, 12.98, 18.18, 15.88, 13.88, 9.38, 4.18, -3.91, -12.92, -19.11, -13.22, -12.22, -5.32, -5.12, -0.22, -2.92, -1.52, -2.92, -10.92, -16.42, -0.43, -1.63, 3.97, 8.07, 13.57, 13.57, 18.37, 15.97, 14.17, 8.77, 3.37, -4.03, -0.5, -4.4, 0.7, 3.7, 9.4, 9.4, 14.8, 12.7, 11.7, 9.6, 1.9, -6.2], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=United Kingdom&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;, &quot;United Kingdom&quot;], &quot;legendgroup&quot;: &quot;United Kingdom&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;United Kingdom&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [5.31, 0.67, 3.19, 7.26, 10.99, 13.81, 16.59, 16.11, 13.61, 12.8, 4.88, 3.17, 4.07, -0.22, 1.7, 5.1, 7.18, 10.58, 11.68, 13.3, 10.09, 9.21, 2.59, 3.45, 4.81, 1.52, 3.94, 5.95, 8.89, 11.76, 13.01, 13.88, 11.14, 10.69, 3.13, 4.08, 2.72, -0.91, 0.67, 4.99, 8.6, 11.61, 13.45, 13.95, 11.0, 10.7, 1.48, 1.03, 6.31, 2.67, 4.57, 7.81, 10.65, 13.56, 15.36, 15.79, 14.34, 13.95, 6.38, 5.42, 4.98, 0.17, 2.71, 7.06, 11.05, 13.42, 17.07, 15.82, 13.56, 12.35, 4.51, 2.77, 4.59, 1.03, 3.72, 7.37, 10.57, 13.15, 15.71, 15.31, 13.13, 12.49, 3.84, 4.04, 6.13, 1.56, 4.21, 8.4, 12.32, 14.71, 18.14, 17.24, 14.25, 13.26, 5.94, 3.63, 4.42, 0.37, 2.86, 5.78, 7.66, 11.7, 13.64, 13.69, 11.25, 10.73, 2.75, 3.69, 4.79, 0.52, 2.8, 6.59, 10.82, 13.5, 16.9, 15.79, 13.75, 12.74, 4.7, 2.9, 4.21, -0.26, 2.21, 5.44, 7.95, 12.12, 14.86, 14.26, 11.8, 11.25, 3.06, 2.99, 3.74, 0.46, 2.64, 6.16, 9.14, 13.06, 15.4, 15.15, 13.12, 12.09, 3.22, 2.66, 4.69, 0.18, 2.85, 7.21, 10.78, 13.7, 16.34, 16.06, 13.76, 11.95, 4.21, 2.81, 5.64, 1.35, 4.45, 7.59, 11.75, 13.83, 17.78, 16.5, 14.67, 12.91, 6.04, 3.06, 7.13, 3.06, 5.81, 8.46, 10.74, 13.91, 15.73, 15.9, 14.8, 14.25, 7.94, 6.19, 6.26, 1.81, 4.51, 8.2, 11.4, 14.32, 16.89, 16.28, 13.88, 13.03, 6.38, 3.91, 4.75, 1.42, 3.08, 7.03, 10.24, 13.33, 15.16, 15.38, 13.02, 12.52, 4.04, 3.72, 3.77, 0.14, 2.15, 6.28, 9.89, 12.73, 14.74, 14.99, 12.17, 11.99, 3.0, 2.16, 3.65, 0.12, 2.3, 6.4, 9.92, 12.89, 14.67, 15.2, 12.54, 11.9, 3.16, 2.32, 3.6, -0.49, 2.4, 5.76, 9.36, 11.76, 13.98, 14.41, 11.98, 11.13, 2.92, 1.57, 5.15, 0.69, 3.01, 7.18, 10.64, 13.8, 15.85, 16.04, 13.99, 13.04, 4.56, 2.53, 5.36, 1.28, 3.56, 7.68, 11.29, 13.95, 16.91, 16.22, 14.33, 13.16, 5.43, 3.61, 3.8, 0.57, 3.24, 6.54, 8.77, 13.17, 15.06, 15.28, 11.93, 11.13, 2.96, 3.38, 6.07, 1.52, 4.28, 7.48, 10.81, 13.22, 15.4, 15.36, 13.64, 13.38, 5.81, 3.45, 7.59, 3.02, 5.26, 8.64, 11.24, 14.66, 17.06, 16.94, 15.34, 13.97, 7.28, 4.93, 7.52, 2.9, 5.67, 8.71, 10.9, 14.01, 16.15, 15.9, 14.59, 13.79, 6.98, 5.1, 7.34, 2.89, 5.84, 8.63, 10.71, 13.98, 15.71, 15.48, 14.28, 13.78, 7.43, 5.5, 7.54, 2.93, 5.97, 8.8, 11.34, 13.93, 15.87, 15.62, 14.32, 14.09, 7.64, 5.56, 4.17, 0.67, 2.85, 6.35, 9.49, 12.42, 14.67, 14.25, 12.38, 11.8, 3.22, 3.44, 3.18, 0.27, 2.78, 6.2, 9.07, 11.72, 13.82, 13.38, 11.21, 11.09, 2.86, 3.11, 3.61, -0.94, 1.74, 5.22, 8.83, 11.41, 13.73, 14.07, 11.78, 11.64, 3.45, 1.93, 3.46, 0.54, 2.46, 6.1, 9.29, 13.46, 15.11, 15.32, 12.13, 11.3, 2.7, 2.62, 2.99, -0.1, 1.97, 5.51, 8.97, 12.79, 15.07, 15.07, 11.76, 10.98, 2.24, 1.79, 3.19, -0.98, 1.33, 5.39, 8.62, 12.77, 14.75, 15.0, 11.77, 11.2, 2.24, 1.61, 4.91, 1.09, 2.82, 6.28, 8.98, 12.96, 15.84, 15.34, 13.34, 12.74, 4.19, 3.36, 3.03, -1.95, 1.14, 5.01, 8.57, 12.08, 13.78, 14.4, 11.53, 10.92, 1.62, 1.4, 3.39, -0.76, 1.68, 5.92, 9.0, 12.76, 14.73, 14.8, 12.08, 11.18, 2.27, 1.65, 2.91, -1.83, 0.96, 4.79, 8.47, 11.29, 13.89, 14.2, 11.18, 10.85, 1.32, 0.36, 4.41, 0.22, 2.55, 5.94, 8.84, 15.46, 14.79, 12.85, 11.71, 3.38, 2.85, 3.56, -0.73, 1.37, 5.68, 9.39, 12.36, 15.61, 15.29, 13.05, 11.95, 3.19, 2.08, 4.93, 0.78, 3.24, 6.7, 11.14, 13.47, 16.92, 16.15, 14.17, 12.95, 5.23, 3.08, 5.44, 0.6, 3.85, 7.74, 12.32, 13.86, 17.39, 16.47, 14.59, 12.88, 5.34, 2.83, 5.31, 0.18, 3.53, 7.66, 11.62, 13.53, 16.76, 16.3, 14.1, 12.92, 4.65, 2.5, 5.42, 0.38, 3.51, 7.74, 12.01, 13.82, 17.47, 16.32, 14.59, 13.04, 5.48, 3.28, 2.86, -2.23, 0.55, 5.19, 8.68, 11.65, 13.69, 13.87, 11.82, 10.57, 2.24, 1.52, 3.63, -1.71, 1.05, 5.31, 9.48, 12.46, 14.95, 14.42, 12.09, 10.94, 2.78, 5.04, -0.15, 2.72, 6.95, 10.88, 13.77, 16.89, 15.95, 13.08, 12.45, 4.32, 3.09, 5.11, -0.46, 2.61, 6.9, 10.76, 12.79, 16.07, 15.66, 12.86, 11.97, 4.3, 2.74, 4.87, -0.13, 2.71, 7.09, 10.79, 13.4, 16.59, 15.86, 12.76, 12.16, 4.52, 2.78, 5.6, 0.77, 3.57, 7.58, 11.63, 13.94, 17.3, 16.4, 13.59, 13.12, 5.31, 3.25, 4.58, -0.16, 2.65, 6.68, 10.26, 13.26, 15.74, 15.32, 13.06, 11.96, 3.91, 2.17, 6.1, 1.45, 4.03, 8.61, 11.89, 14.85, 17.96, 16.85, 13.82, 13.22, 5.98, 3.65, 5.34, 0.24, 3.14, 7.31, 11.04, 13.54, 17.12, 16.09, 13.29, 12.64, 5.1, 3.14, 3.77, 0.26, 3.13, 6.43, 9.63, 13.31, 14.27, 14.83, 11.86, 11.62, 2.47, 3.07, 4.95, 3.06, 7.43, 10.62, 13.66, 16.21, 15.5, 12.62, 11.83, 4.7, 2.7, 6.0, 3.82, 8.48, 12.19, 14.51, 18.39, 16.99, 15.05, 13.97, 5.63, 3.42, 5.63, 0.92, 4.24, 7.66, 11.76, 13.88, 16.95, 16.4, 14.61, 12.75, 5.74, 2.41, 6.73, 2.62, 5.46, 8.77, 11.94, 15.23, 17.62, 17.53, 15.92, 14.3, 7.28, 4.34, 6.45, 2.11, 5.11, 8.32, 12.01, 14.85, 17.71, 17.21, 15.83, 14.19, 7.0, 4.0, 6.26, 1.46, 4.54, 8.21, 12.11, 14.17, 17.34, 16.97, 14.06, 13.24, 5.5, 3.36, 6.76, 2.61, 5.29, 8.51, 11.62, 14.77, 16.99, 16.95, 15.14, 14.02, 6.93, 4.46, 5.74, 0.99, 4.45, 8.12, 11.33, 13.78, 16.86, 16.7, 14.33, 12.88, 5.24, 2.89, 6.17, 2.13, 4.71, 8.26, 11.46, 14.68, 17.46, 17.03, 15.27, 13.78, 6.95, 4.09, 5.35, 1.02, 4.28, 7.76, 11.34, 13.99, 17.12, 16.17, 14.32, 12.74, 5.19, 2.92, 4.24, 1.75, 4.25, 6.59, 9.31, 12.07, 13.49, 13.83, 11.98, 11.81, 3.75, 4.49, 4.29, 1.4, 3.04, 6.72, 9.78, 13.16, 14.77, 15.19, 12.59, 12.08, 3.4, 3.29, 5.03, 1.71, 3.58, 7.2, 9.71, 13.48, 14.42, 14.93, 12.74, 12.33, 4.36, 4.35, 1.07, -3.17, -0.2, 3.87, 7.54, 11.05, 12.66, 13.12, 10.21, 9.73, -0.32, -0.06, 2.56, -1.92, 0.87, 4.87, 8.58, 11.85, 13.74, 14.38, 11.2, 10.6, 1.25, 0.7, 4.98, 1.58, 3.34, 5.7, 7.55, 11.57, 12.0, 13.55, 10.67, 10.68, 3.98, 4.61, 4.92, 1.09, 3.05, 6.86, 10.33, 13.22, 15.56, 16.01, 14.12, 13.15, 5.52, 3.01, 5.0, 0.43, 2.61, 7.31, 11.24, 13.8, 17.14, 16.52, 13.7, 12.25, 4.76, 2.93, 4.75, 0.1, 2.94, 7.34, 11.25, 13.37, 16.96, 16.15, 14.02, 12.63, 4.71, 2.21, 5.5, 1.21, 4.34, 8.0, 11.3, 14.1, 17.07, 16.52, 14.29, 12.83, 5.49, 3.05, 6.5, 1.76, 4.84, 8.38, 10.78, 13.91, 16.15, 15.57, 13.89, 12.61, 5.96, 3.75, 5.46, 1.24, 3.36, 7.6, 11.56, 13.41, 17.11, 16.44, 14.51, 13.14, 6.07, 3.08, 4.41, 0.87, 2.81, 5.69, 7.79, 11.72, 12.92, 13.71, 10.88, 10.36, 3.28, 3.88, 3.91, -0.02, 2.86, 6.27, 9.31, 13.63, 15.52, 15.51, 12.46, 11.83, 3.32, 3.73, 4.28, -0.75, 2.5, 5.85, 8.49, 12.74, 15.49, 14.91, 11.88, 11.73, 2.69, 3.0, 5.35, 2.5, 4.65, 7.14, 9.25, 12.25, 13.2, 14.1, 12.55, 12.25, 5.25, 5.7, 4.1, 0.75, 2.8, 5.95, 8.89, 12.7, 15.6, 15.05, 12.85, 11.8, 3.3, 2.55, 4.25, -0.26, 2.24, 6.53, 10.15, 13.38, 16.19, 15.94, 13.46, 11.92, 3.93, 2.49, 5.22, 0.02, 2.92, 6.92, 10.62, 13.72, 16.22, 15.72, 13.92, 12.62, 4.62, 2.62, 5.13, 0.12, 2.83, 6.88, 10.83, 13.43, 16.37, 15.87, 13.12, 12.48, 4.93, 2.88, 6.0, 2.3, 4.75, 7.5, 10.3, 12.9, 15.3, 14.85, 13.75, 13.45, 6.6, 4.6, 4.94, -0.12, 3.08, 7.25, 11.76, 13.69, 17.0, 16.27, 14.37, 12.98, 4.65, 2.14, 5.61, 0.41, 3.72, 7.8, 11.0, 13.88, 16.9, 16.03, 13.3, 12.61, 4.98, 2.83, 6.47, 2.33, 4.98, 9.08, 13.03, 15.58, 19.08, 17.88, 15.83, 14.23, 6.63, 3.93, 7.46, 2.97, 5.65, 8.7, 10.93, 14.18, 15.97, 15.87, 14.6, 13.4, 7.07, 4.93, 6.45, 2.09, 5.0, 8.1, 11.4, 14.4, 16.85, 16.7, 14.35, 12.65, 6.3, 3.75, 4.33, 0.99, 3.28, 7.0, 10.24, 13.1, 15.35, 15.11, 13.05, 12.51, 4.12, 3.86, 4.18, 0.33, 2.38, 6.52, 9.63, 13.23, 16.03, 15.92, 13.63, 12.33, 4.08, 2.78, 4.98, 1.38, 2.68, 6.12, 9.37, 12.33, 15.98, 15.18, 13.63, 12.43, 5.28, 3.83, 4.55, -0.34, 1.85, 6.6, 10.3, 13.25, 16.04, 15.79, 13.5, 12.35, 4.15, 3.0, 5.28, 0.38, 2.22, 7.18, 10.88, 13.92, 17.08, 16.13, 13.78, 12.63, 4.73, 3.58, 5.63, 0.58, 3.23, 7.48, 11.33, 13.73, 16.98, 16.23, 13.68, 12.58, 5.28, 3.48, 5.8, 1.25, 3.95, 8.25, 11.55, 14.3, 17.09, 16.7, 13.5, 12.8, 6.15, 3.5, 6.82, 2.87, 5.51, 9.12, 12.57, 15.62, 18.32, 17.66, 15.72, 14.16, 7.17, 4.81, 4.48, 1.18, 2.68, 7.13, 10.08, 13.78, 15.33, 15.88, 12.78, 11.97, 3.43, 3.03, 3.58, -1.17, 1.78, 5.63, 9.37, 12.38, 14.68, 14.93, 12.18, 11.68, 3.08, 1.58, 4.36, -0.62, 2.49, 6.15, 8.96, 11.54, 13.51, 13.83, 12.08, 11.93, 4.32, 2.47, 6.35, 2.0, 4.85, 8.19, 11.25, 14.2, 16.75, 16.15, 14.2, 12.65, 6.05, 3.55, 4.57, 1.03, 2.63, 5.98, 8.77, 11.68, 14.08, 13.67, 11.93, 12.03, 4.03, 4.23, 5.17, 7.07, 8.02, 5.07, 1.22, 4.01, 1.84, -2.81, -0.66, 3.53, 7.04, 11.09, 13.38, 13.49, 10.54, 9.69, 0.14, 0.84, 5.52, 1.32, 3.51, 7.27, 11.52, 13.42, 17.17, 16.52, 15.02, 13.52, 6.47, 3.37, 5.35, 0.29, 3.3, 7.35, 11.2, 14.15, 16.7, 16.29, 14.25, 13.1, 4.89, 3.15, 5.68, 1.23, 3.98, 8.16, 11.74, 14.41, 17.74, 16.84, 14.03, 12.89, 5.51, 3.37, 5.8, 1.7, 4.64, 7.95, 12.05, 14.15, 17.79, 17.15, 15.4, 13.5, 6.95, 3.15, 5.3, 1.3, 3.1, 6.9, 9.9, 13.1, 16.7, 4.2, 0.5, 2.5, 6.6, 9.9, 13.0, 14.7, 15.6, 4.64, 1.01, 3.69, 7.17, 10.14, 12.84, 15.08, 14.87, 12.37, 12.24, 4.12, 4.34, 4.6, 0.1, 2.8, 7.5, 10.7, 13.5, 16.5, 16.3, 4.5, 0.2, 2.5, 6.8, 10.3, 13.3, 15.2, 15.7, 4.6, 1.1, 2.8, 6.6, 9.7, 13.2, 15.0, 15.6, 12.7, 12.2, 3.4, 3.0, 5.5, 1.4, 3.4, 7.5, 10.9, 13.7, 16.4, 16.1, 14.2, 13.1, 5.9, 4.3, 5.7, 1.8, 3.7, 7.1, 11.0, 13.4, 16.9, 16.5, 15.0, 13.5, 6.9, 3.7, 5.7, 0.7, 3.1, 7.5, 11.1, 14.1, 17.5, 16.3, 4.41, 0.61, 2.84, 6.43, 9.45, 13.63, 15.57, 15.74, 13.1, 12.42, 3.52, 2.78, 5.78, 1.68, 3.88, 7.88, 11.48, 13.68, 18.38, 17.08, 14.88, 13.18, 6.08, 3.48, 6.1, 2.0, 4.6, 15.1, 17.7, 4.86, 1.56, 3.96, 5.76, 8.76, 11.56, 13.1, 13.9, 11.2, 10.7, 3.3, 4.1, 5.73, 1.81, 4.66, 7.97, 11.91, 14.32, 17.64, 16.78, 14.86, 12.89, 6.13, 3.28, 4.7, 0.3, 2.9, 6.4, 9.1, 13.5, 15.8, 15.7, 12.4, 11.9, 3.3, 3.5, 5.5, 1.3, 3.9, 6.24, 1.85, 4.39, 8.1, 11.21, 14.31, 16.25, 15.9, 14.38, 13.59, 6.85, 4.24], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Ukraine&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;, &quot;Ukraine&quot;], &quot;legendgroup&quot;: &quot;Ukraine&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Ukraine&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 5, 6, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 12, 1, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 12, 1, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 9, 10, 11, 12, 1, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 9, 10, 11, 12, 1, 9, 10, 11, 12, 1, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-1.27, 15.61, 20.06, 21.74, 6.77, 4.94, -4.57, -12.56, -9.51, -6.74, 6.35, 12.57, 15.63, 18.06, 17.11, 10.81, 5.5, 4.1, -8.88, -5.71, -2.79, 6.48, 14.82, 16.43, 17.91, 16.69, 13.44, 7.5, 5.67, -7.75, 6.87, -7.14, -11.97, 11.65, 6.13, -7.39, -10.28, -9.16, -4.68, 6.91, 13.77, 16.51, 18.65, 18.06, 11.86, 5.83, 4.6, -8.6, 5.29, -11.23, -9.77, -4.81, 7.12, 13.64, 16.77, 18.96, 18.81, 11.75, 5.25, 3.78, -8.85, -10.4, -6.9, -3.3, 6.0, 14.3, 16.2, 17.5, 16.8, 12.8, 7.3, 5.6, -7.6, -10.67, -7.62, -4.21, 6.17, 14.43, 16.17, 17.16, 17.32, 13.3, 7.77, 5.37, -8.06, -9.79, -7.13, -3.41, 7.88, 15.31, 17.68, 19.19, 18.86, 13.79, 7.98, 6.29, -6.4, -8.78, -7.34, -3.49, 7.47, 14.65, 17.55, 19.32, 19.33, 13.31, 6.83, 4.96, -6.64, -7.6, -4.73, -2.38, 6.72, 15.4, 15.93, 17.85, 16.98, 13.55, 8.49, 6.35, -6.83, -11.14, -7.78, -11.04, -8.03, -5.0, 6.78, 13.75, 16.01, 17.72, 18.11, 12.48, 6.2, 4.82, -7.86, -8.78, 13.45, 6.33, 4.85, -6.74, -9.13, -7.78, -3.18, 7.67, 14.93, 18.13, 19.82, 20.31, 13.73, 6.75, 5.02, -6.71, -9.29, -7.83, -9.68, -5.58, -3.28, 6.47, 15.7, 16.19, 17.6, 17.64, 13.11, 7.98, 6.05, -6.49, -9.7, -9.55, -6.96, -10.27, -7.57, -4.81, 6.59, 14.91, 16.47, 18.02, 18.39, 13.31, 7.71, 6.22, -6.81, -9.92, -7.32, -9.51, -6.93, -4.28, 7.34, 14.94, 16.87, 18.31, 18.89, 12.56, 6.74, 5.76, -6.28, 14.33, 7.07, -5.1, -9.1, 7.52, 5.16, -6.59, -8.88, -6.57, -2.45, 7.85, 15.27, 18.81, 19.75, 20.19, 13.92, 6.89, 5.78, -5.66, -9.08, 14.36, 6.7, -6.7, -5.32, 0.49, 2.98, 8.5, 17.21, 17.44, 19.51, 18.59, 15.07, 9.19, 7.35, -2.04, -10.52, -7.68, -8.65, -5.22, -3.13, 7.61, 16.41, 17.1, 18.49, 19.04, 14.44, 9.39, 7.42, -5.5, -8.01, -5.43, -2.61, 7.88, 16.67, 17.63, 19.19, 19.76, 14.11, 7.96, 6.9, -4.71, -7.35, -4.27, -8.39, -6.79, -3.53, 7.04, 14.76, 18.1, 19.04, 19.29, 13.22, 6.87, 5.51, -5.76, -8.0, 14.3, 7.43, 5.18, -5.13, -8.99, 6.83, -5.89, -8.37, -6.92, -4.12, 7.3, 15.31, 18.04, 18.7, 20.29, 14.41, 8.05, 6.18, -5.12, -5.5, -3.84, -0.76, 9.6, 17.14, 20.53, 21.72, 22.74, 16.24, 9.03, 8.15, -2.33, -7.72, 7.52, -2.83, -8.62, -6.41, -2.08, 7.55, 14.7, 18.54, 19.72, 20.66, 14.07, 6.97, 5.53, -4.61, -7.9, -2.94, -4.19, -3.11, -0.44, 7.91, 14.92, 19.32, 20.51, 21.92, 17.11, 10.82, 9.29, -0.18, -6.27, -4.69, -0.99, 8.44, 15.75, 19.51, 20.84, 22.22, 16.11, 9.0, 7.34, -2.5, -6.73, -4.66, -0.19, 8.42, 16.37, 20.01, 21.43, 22.69, 16.45, 9.19, 6.92, -1.08, -4.49, -1.55, 0.59, 9.52, 17.59, 19.93, 20.03, 21.7, 16.94, 10.69, 9.57, 0.06, -6.07, -4.05, -0.16, 8.97, 16.14, 20.1, 21.02, 22.53, 16.19, 9.23, 7.63, -1.27, -5.79, -3.87, -0.25, 6.75, 15.0, 20.54, 20.78, 22.35, 17.07, 9.27, 7.42, 1.32, -6.67, -4.24, 0.1, 8.42, 15.2, 19.8, 20.62, 21.97, 15.7, 8.37, 6.74, -0.41, -3.29, -1.3, 1.42, 7.87, 14.11, 19.11, 19.91, 21.51, 17.13, 10.22, 9.28, 2.69, -3.1, 3.31, -4.9, -3.6, 0.47, 9.03, 15.82, 20.29, 20.51, 21.8, 16.01, 8.2, 8.04, 2.28, -3.57, -0.19, 2.29, 8.73, 16.06, 20.22, 19.54, 21.87, 16.36, 9.42, 9.05, 3.32, -2.75, -0.19, 2.59, 8.85, 16.02, 21.06, 21.22, 23.48, 18.42, 11.1, 9.09, 4.61, -4.69, -2.07, 1.39, 8.61, 14.48, 20.64, 20.84, 22.51, 17.38, 9.53, 8.76, 3.98, 2.53, 3.76, 4.48, 8.81, 14.91, 20.3, 21.28, 23.42, 19.08, 12.34, 9.89, 7.35, -3.87, -2.1, -1.4, 2.92, 10.73, 14.38, 13.4, 16.14, 10.67, 5.13, 4.86, 0.22, -10.44, -8.51, -2.7, 8.14, 15.05, 18.83, 19.99, 20.2, 13.13, 6.99, 4.87, -6.69, -11.1, 12.75, 6.43, 3.69, -7.44, -11.96, 12.74, 6.56, 4.15, -6.14, -10.78, 14.05, 6.74, 3.66, -6.59, -10.57, -8.99, -2.9, 7.63, 15.06, 19.09, 19.12, 20.2, 13.06, 6.49, 4.38, -5.6, -10.9, -8.53, -2.33, 8.42, 15.21, 18.93, 19.79, 20.43, 12.78, 6.17, 5.25, -6.23, -11.82, -10.21, -2.57, 8.1, 15.02, 19.41, 19.83, 20.61, 13.35, 6.62, 4.61, -7.08, -9.22, -7.0, -1.89, 7.74, 15.16, 19.81, 20.39, 20.83, 15.16, 7.87, 5.11, -4.83, 6.14, 4.79, -4.9, -10.16, -8.79, -1.58, 8.04, 14.86, 19.48, 19.0, 20.57, 13.47, 6.38, 4.64, -4.13, -11.21, -8.87, -1.09, 8.97, 15.54, 20.19, 20.13, 21.49, 13.7, 6.86, 5.45, -4.07, -11.42, -9.8, -2.32, 7.94, 14.7, 19.34, 19.36, 20.97, 13.74, 6.61, 4.32, -4.89, -8.57, -6.57, -0.97, 7.43, 14.73, 19.33, 20.03, 21.13, 15.03, 7.33, 5.43, -3.57, -8.84, -8.56, -1.23, 7.96, 14.27, 18.62, 18.81, 20.42, 13.95, 6.51, 5.28, -2.93, -9.03, -7.53, -0.64, 8.18, 14.45, 19.9, 20.21, 22.03, 15.59, 7.73, 5.74, -1.85, -3.6, -0.19, 2.3, 8.75, 16.04, 20.2, 19.54, 21.85, 16.4, 9.39, 9.05, 3.35, -8.84, -5.64, -3.34, 7.16, 16.06, 16.46, 18.06, 18.56, 14.06, 8.66, 6.96, -5.64, -7.6, -5.7, 2.9, 7.8, 15.4, 18.5, 19.7, 20.6, 14.7, 7.7, 6.3, -4.5], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in Europe in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;da6ac810-de2a-4701-a02f-e9bd3d61b46e&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;da6ac810-de2a-4701-a02f-e9bd3d61b46e&quot;)) {                    Plotly.newPlot(                        &quot;da6ac810-de2a-4701-a02f-e9bd3d61b46e&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Antigua and Barbuda&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;, &quot;Antigua and Barbuda&quot;], &quot;legendgroup&quot;: &quot;Antigua and Barbuda&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Antigua and Barbuda&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-0.81, -4.41, -1.32, 5.5, 10.15, 16.87, 17.4, 18.26, 14.32, 9.85, 3.74, -2.22], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Barbados&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;, &quot;Barbados&quot;], &quot;legendgroup&quot;: &quot;Barbados&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Barbados&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.54, 24.64, 26.14, 26.64, 27.34, 27.34, 27.04, 26.84, 26.54, 26.54, 26.64, 25.54], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Bermuda&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;, &quot;Bermuda&quot;], &quot;legendgroup&quot;: &quot;Bermuda&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Bermuda&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [15.02, 14.95, 14.65, 18.08, 19.82, 23.19, 25.76, 26.16, 25.49, 22.34, 19.28, 16.58, 17.39, 17.39, 16.89, 20.59, 22.39, 25.69, 28.19, 28.69, 27.89, 24.59, 21.59, 18.89], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Belize&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;, &quot;Belize&quot;], &quot;legendgroup&quot;: &quot;Belize&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Belize&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.82, 24.92, 25.52, 27.72, 28.22, 28.22, 28.22, 27.72, 28.22, 27.12, 24.92, 24.32, 23.9, 25.0, 25.55, 27.75, 27.8, 28.6, 28.35, 27.75, 28.35, 27.5, 25.8, 24.45, 23.23, 23.23, 24.93, 26.63, 27.13, 27.73, 27.13, 26.03, 26.03, 25.53, 23.83, 22.73, 23.05, 23.3, 24.75, 26.15, 27.25, 27.25, 26.95, 26.4, 26.65, 26.1, 23.84, 23.3, 22.8, 23.3, 25.0, 26.1, 27.2, 27.2, 27.2, 26.7, 26.1, 23.9, 23.3], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Canada&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;, &quot;Canada&quot;], &quot;legendgroup&quot;: &quot;Canada&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Canada&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 6, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 2, 3, 4, 6, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 11, 12, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 3, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 3, 4, 5, 6, 7, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 11, 12, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 5, 6, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 8, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 2, 3, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 7, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 8, 9, 10, 1, 2, 3, 4, 5, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 8, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-1.03, 3.72, 6.42, 8.21, 12.6, 16.22, 16.7, 15.07, 13.49, 9.73, 7.12, 6.36, -2.1, 3.26, 6.27, 7.87, 12.86, 17.04, 16.72, 15.7, 14.3, 9.84, 6.69, 4.6, -3.49, 1.9, 5.13, 6.97, 13.23, 17.87, 17.39, 15.43, 14.41, 9.5, 5.99, 4.35, -2.75, 1.72, 5.07, 6.88, 12.62, 16.75, 16.01, 14.83, 13.37, 9.41, 6.01, 4.33, -3.24, 2.42, 5.78, 7.95, 13.2, 17.58, 16.87, 15.04, 13.64, 9.13, 6.35, 4.52, -1.25, 3.8, 6.27, 7.73, 13.07, 16.28, 15.71, 14.68, 13.55, 9.53, 6.63, 5.15, -0.74, 4.04, 6.83, 8.35, 13.29, 16.38, 16.73, 15.57, 13.73, 10.11, 6.97, 6.0, -0.69, 4.07, 14.53, 13.99, 12.91, -1.25, 3.82, 6.75, 8.25, 13.04, 16.72, 16.81, 15.58, 13.96, 10.03, 7.06, 5.57, -1.32, 3.8, 6.78, 8.24, 13.41, 16.94, 17.28, 15.58, 14.23, 10.25, 6.96, 5.39, -1.2, 4.04, 7.03, 8.07, 13.82, 17.53, 17.3, 16.2, 15.04, 10.74, 7.16, 5.36, -0.64, 4.11, 6.89, 8.35, 13.99, 17.89, 18.06, 16.24, 14.72, 10.73, 7.46, 5.9, -2.88, 2.32, 5.48, 7.72, 13.05, 17.72, 17.17, 15.83, 14.06, 9.65, 6.34, 4.58, -0.99, 4.1, 6.88, 8.01, 12.7, 14.71, 14.52, 13.89, 12.78, 9.9, 6.59, 5.52, -1.5, 3.3, 6.14, 8.06, 12.76, 16.29, 16.54, 15.19, 13.67, 9.33, 6.46, 5.16, 0.17, 5.37, 7.32, 8.58, 12.59, 15.08, 14.59, 14.42, 13.6, 10.4, 7.86, 6.97, -0.82, 4.24, 6.39, 8.32, 12.68, 16.96, 16.16, 14.99, 13.9, 9.61, 7.02, 6.12, 0.19, 4.81, 6.74, 8.45, 13.11, 16.13, 16.35, 14.97, 13.58, 9.99, 7.74, 6.96, 4.45, 6.96, 8.87, 13.94, 17.67, 17.27, 15.92, 14.37, 10.23, 7.3, 6.31, -1.8, 3.62, 6.03, 7.12, 11.43, 14.09, 13.9, 12.9, 12.47, 9.45, 7.15, 5.65, 2.0, 5.44, 6.42, 12.97, -5.54, 1.04, 4.28, 6.67, 11.88, 17.98, 16.07, 13.57, 12.45, 7.44, 5.31, 3.55, 18.39, 17.3, 14.09, 13.28, 8.73, 5.51, 3.95, -2.58, 3.34, 6.14, 7.84, 13.26, 16.97, 16.27, 14.28, 13.19, 9.17, 7.41, 5.79, 6.44, 12.19, 16.41, 14.87, 13.53, 13.01, 8.83, 6.64, 4.97, -2.59, 2.7, 5.74, 7.47, 13.05, 18.35, 17.3, 15.32, 13.48, 8.94, 6.81, 5.42, -2.44, 2.98, 5.97, 7.64, 13.6, 18.32, 17.57, 15.45, 13.71, 9.36, 7.1, 4.96, -4.28, -0.02, 4.61, 6.16, 12.17, 17.3, 16.07, 13.98, 8.69, 7.16, 3.89, 7.16, 13.06, 17.44, 16.84, 15.15, 13.82, 9.02, 5.58, 4.14, -2.93, 2.38, 5.64, 7.49, 12.53, 17.62, 16.17, 14.42, 13.46, 8.8, 6.82, 5.15, -0.95, 3.54, 6.54, 8.19, 14.32, 18.57, 18.08, 15.97, 14.58, 10.54, 7.2, 5.75, -2.74, 2.05, 4.21, 6.06, 9.79, 13.0, 12.81, 12.1, 11.31, 7.64, 6.4, 4.79, -2.15, 3.15, 5.75, 7.87, 12.95, 17.38, 16.84, 15.59, 13.42, 8.89, 6.98, 5.56, -3.93, 1.5, 5.39, 7.43, 13.94, 18.62, 17.69, 15.92, 14.69, 9.65, 6.48, 4.61, 0.64, 3.74, 6.45, 13.05, 17.99, 17.13, 15.03, 14.25, 9.2, 5.83, 3.99, 1.23, 4.23, 6.51, 13.54, 18.66, 17.78, 15.32, 14.67, 9.85, 6.34, 4.24, 1.45, 5.21, 7.06, 8.31, 12.18, 14.47, 14.14, 14.3, 13.13, 11.24, 8.91, 7.81, 0.31, 4.18, 6.23, 7.79, 11.69, 14.67, 13.63, 13.8, 13.22, 10.28, 7.89, 6.82, -1.74, 3.15, 4.93, 6.4, 9.36, 12.27, 12.46, 11.72, 11.5, 8.91, 7.39, 5.48, -1.06, 3.46, 5.8, 6.17, 9.62, 12.46, 12.91, 12.4, 12.14, 9.97, 7.95, 6.2, 0.66, 4.17, 5.77, 7.14, 10.84, 13.98, 13.3, 13.37, 12.39, 10.13, 8.31, 7.07, 7.55, 4.86, 2.9, -3.33, 1.74, 5.39, 6.11, 11.27, 15.05, 13.77, 12.85, 9.85, 7.32, 5.13, -0.12, 3.37, 5.09, 7.13, 10.57, 13.08, 12.44, 12.41, 11.61, 8.75, 7.07, 5.97, 6.43, 4.68, 2.17, 6.13, 7.82, 14.39, 19.0, 18.19, 16.43, 15.2, 10.4, 7.0, 5.05, -1.23, 6.25, 7.01, 12.21, 16.48, 15.33, 14.06, 13.61, 10.08, 8.82, 6.78, -2.39, 2.4, 5.28, 6.16, 11.19, 15.31, 14.22, 12.18, 11.94, 8.98, 7.23, 5.42, 1.01, 4.82, 6.62, 7.46, 11.36, 14.79, 13.57, 13.13, 12.98, 10.49, 8.73, 7.77, -0.54, 3.54, 5.51, 6.96, 11.07, 14.34, 13.7, 13.26, 12.57, 9.59, 7.31, 6.44, -12.27, -2.0, 1.81, 4.06, 10.85, 15.71, 13.6, 11.84, 6.51, 2.61, -0.27, -2.9, 2.92, 5.32, 7.49, 13.45, 17.95, 17.66, 15.84, 13.75, 9.09, 6.12, 4.82, 5.32, 7.34, 13.0, 16.86, 17.02, 15.68, 13.73, 9.59, 6.39, 4.78, 3.01, 0.72, 3.56, 6.34, 8.32, 18.02, 14.59, 10.14, 5.57, 0.1, 4.06, 6.4, 8.36, 13.68, 17.67, 17.94, 16.07, 14.17, 10.53, 7.61, 6.53, -1.1, 3.72, 6.14, 8.31, 14.28, 18.14, 16.39, 14.11, 10.65, 7.6, 5.35, -3.63, 1.75, 4.6, 6.81, 12.55, 17.01, 16.02, 14.4, 13.0, 8.27, 5.86, 3.88, -5.2, 2.29, 5.33, 8.36, 13.54, 17.02, 16.89, 15.36, 13.85, 9.51, 6.47, 4.43, -0.93, 3.37, 5.41, 6.11, 9.27, 11.76, 12.79, 12.62, 11.88, 10.83, 8.08, 7.17, -3.3, 1.87, 3.93, 5.14, 8.67, 10.33, 11.81, 11.51, 11.68, 9.67, 6.69, 5.31, -3.56, 1.54, 3.64, 4.84, 8.34, 9.94, 11.44, 11.14, 11.34, 9.34, 6.34, 4.94, -3.41, 1.04, 3.64, 5.59, 9.45, 13.93, 13.99, 13.06, 12.02, 9.5, 7.04, 5.97, -3.3, 1.1, 3.7, 5.7, 9.5, 14.2, 14.0, 13.1, 12.2, 9.5, 7.2, 6.0, -2.69, 2.43, 4.53, 5.84, 10.2, 14.55, 13.2, 12.74, 12.24, 10.0, 8.29, 6.53, -5.01, 0.94, 3.45, 5.22, 8.99, 12.96, 13.57, 12.45, 11.95, 8.9, 6.46, 5.72, -10.6, 0.28, 4.23, 7.39, 12.71, 17.79, 16.2, 13.86, 13.06, 8.49, 6.51, 3.03, 4.59, 7.35, 12.54, 12.81, 8.73, 6.94, 4.54, -3.32, 3.31, 5.32, 6.23, 9.77, 11.91, 12.91, 12.57, 12.12, 10.44, 8.34, 6.94, -1.4, 3.81, 5.5, 6.93, 9.55, 12.79, 12.89, 12.45, 11.83, 9.13, 7.99, 6.45, -5.0, 1.93, 3.82, 5.58, 9.54, 12.77, 11.96, 12.04, 11.14, 8.65, 7.01, 5.03, -13.09, -0.89, 2.3, 4.52, 11.2, 17.88, 14.47, 12.41, 11.86, 7.68, 4.73, 2.01, -11.95, -0.98, 2.39, 5.2, 10.97, 17.37, 15.04, 12.69, 12.03, 7.52, 5.3, 2.52, -12.53, -0.95, 3.06, 5.84, 12.47, 18.57, 15.78, 13.08, 12.67, 8.52, 5.4, 2.5, -13.05, -1.4, 5.25, 11.61, 18.1, 15.48, 13.04, 12.29, 5.72, 2.23, -3.1, 6.73, 10.27, 13.21, 13.53, 12.81, 12.14, 9.97, 7.76, 6.25, -6.74, 2.09, 4.14, 5.75, 11.69, 16.51, 14.67, 13.41, 13.1, 9.66, 7.09, 4.88, -9.0, 0.7, 3.2, 5.6, 9.7, 12.3, 12.3, 11.7, 11.4, 8.3, 6.6, 4.9, -8.99, 0.68, 3.13, 5.51, 9.62, 12.3, 12.23, 11.68, 11.46, 8.33, 6.59, 4.87, -9.0, 0.65, 3.1, 5.5, 9.64, 12.35, 12.25, 11.7, 11.45, 8.3, 6.6, 4.85, -14.38, -3.67, 1.23, 5.95, 11.43, 16.79, 13.52, 10.91, 10.74, 7.07, 2.11, 0.12, -15.39, -2.53, 2.1, 5.44, 11.48, 18.9, 15.47, 12.8, 11.69, 7.27, 4.43, 0.75, -14.67, -2.01, 2.32, 6.34, 11.83, 18.39, 16.14, 13.5, 12.3, 7.62, 4.83, 1.56, -25.84, -10.31, -3.5, 3.52, 8.25, 15.07, 12.11, 10.4, 7.55, 3.09, 0.78, -4.91, -20.97, -4.88, 1.23, 6.07, 10.66, 18.41, 15.1, 12.47, 10.76, 6.06, 4.06, -0.39, -21.65, -7.22, -0.64, 4.94, 10.26, 16.96, 14.21, 11.92, 9.88, 4.71, 2.92, -2.63, -24.04, -8.12, -1.74, 3.79, 9.16, 16.32, 13.51, 11.37, 8.85, 3.85, 1.98, -3.5, -25.19, -8.77, -2.76, 2.88, 9.84, 7.62, 2.75, -0.04, -6.26, -23.53, -8.08, -1.34, 3.36, 8.58, 14.56, 12.82, 10.43, 8.54, 2.77, -0.81, -6.39, -24.2, -8.17, -1.21, 2.81, 8.39, 15.03, 12.76, 10.47, 8.58, 4.09, 2.06, -3.39, -7.48, 5.37, 16.97, 15.22, 12.22, -24.92, -10.25, -2.87, 2.49, 7.75, 14.9, 12.76, 11.1, 8.99, 4.48, 3.0, -2.27, -25.3, -10.37, -1.75, 3.38, 9.03, 14.93, 13.73, 11.27, 9.37, 3.54, -0.77, -6.46, -25.2, -10.25, -1.65, 3.45, 9.14, 15.0, 13.85, 11.39, 9.45, 3.65, -0.65, -6.4, -20.58, -6.74, -2.15, 2.28, 5.82, 12.29, 10.58, 8.47, 8.16, 4.38, 2.02, -2.11, -19.17, -7.63, -0.29, 3.61, 9.75, 14.61, 13.47, 11.3, 9.6, 4.33, 3.21, -2.61, -24.17, -8.29, -1.3, 2.54, 7.88, 14.73, 12.6, 10.23, 8.34, 4.12, 2.5, -2.82, -25.29, -6.92, -1.09, 5.57, 9.93, 16.44, 14.42, 12.99, 9.9, 4.16, 0.63, -3.98, -20.74, -6.28, -2.01, 3.24, 7.8, 13.86, 11.3, 10.56, 7.64, 3.18, 0.16, -4.51, -7.05, 1.62, 6.78, 12.79, 10.22, 9.69, 6.16, 1.72, -2.04, -5.57, -8.39, -1.71, 4.23, 9.44, 16.37, 13.91, 11.63, 10.06, 4.79, 2.48, -3.98, -24.94, -9.11, -1.64, 3.9, 8.98, 15.45, 12.85, 10.95, 9.78, 1.43, -4.76, -27.77, -10.14, 0.44, 3.41, 8.96, 15.25, 13.18, 10.73, 8.55, 2.65, 0.81, -3.75, -24.48, -9.42, -1.38, 4.38, 9.26, 15.78, 14.12, 11.85, 9.86, 3.04, 1.29, -3.84, -22.89, -5.41, 0.89, 7.08, 10.71, 16.67, 15.32, 13.54, 10.91, 4.24, 2.37, -2.71, -20.37, -4.96, 0.54, 4.49, 9.68, 16.48, 13.33, 12.31, 9.15, 4.2, 1.19, -3.14, -23.59, -7.69, -0.13, 6.44, 10.23, 16.61, 14.78, 12.58, 9.81, 3.72, 2.24, -2.44, -22.44, -4.53, 2.15, 8.19, 12.36, 18.28, 17.01, 15.12, 12.04, 5.22, 3.6, -1.42, -23.07, -5.97, 1.49, 7.63, 11.74, 17.72, 16.05, 14.11, 11.44, 4.71, 3.35, -1.84, -22.48, -4.45, 1.74, 7.14, 11.29, 17.33, 15.65, 13.29, 10.46, 4.47, 2.54, -2.13, -23.7, -8.61, -1.3, 4.54, 8.89, 14.26, -22.22, -5.74, 0.74, 6.04, 10.15, 17.13, 14.48, 13.18, 10.25, 4.17, 1.83, -3.02, -22.2, -5.75, 0.75, 6.05, 10.15, 17.15, 14.5, 13.15, 10.25, 4.15, 1.85, -3.0, -22.08, -4.91, 2.74, 8.11, 12.14, 18.56, 16.69, 15.22, 12.29, 5.66, 3.46, -1.79, 2.28, -3.04, -4.6, 3.23, 6.6, 8.69, 13.97, 17.75, 16.95, 15.78, 14.99, 10.05, 6.75, 5.31, -5.36, 3.79, 7.4, 9.34, 15.25, 18.39, 17.38, 16.29, 15.16, 11.11, 7.48, 5.21, -4.56, 2.52, 5.64, 8.25, -2.31, 4.03, 7.3, 8.52, 14.62, 17.98, 17.44, 15.96, 14.98, 10.97, 7.51, 5.95, -3.27, 3.06, 6.0, 7.41, 13.75, 17.43, 16.49, 14.82, 14.01, 10.14, 7.07, 5.0, -6.2, 3.59, 7.49, 9.44, 15.1, 18.61, 18.0, 16.48, 15.23, 11.05, 7.13, 5.07, -5.69, 2.59, 6.63, 9.01, 14.78, 18.27, 17.1, 16.05, 14.7, 10.15, 6.63, 4.08, -4.6, 0.7, 3.01, 5.92, 12.57, 16.84, 16.55, 14.75, 12.83, 8.45, 5.03, 3.64, 2.65, 6.45, 8.57, 14.45, 18.06, 17.36, 16.06, 14.68, 10.03, 6.22, 3.84, -3.47, 3.27, 6.08, 7.72, 14.02, 17.67, 16.8, 15.56, 14.32, 10.23, 6.6, 4.85, -4.02, 3.26, 6.17, 8.54, 13.88, 17.87, 16.92, 15.71, 14.52, 9.84, 6.29, 4.74, -3.63, 3.07, 6.22, 8.31, 13.79, 17.27, 16.59, 15.42, 14.19, 10.07, 6.44, 5.07, -4.63, 1.72, 4.25, 6.5, 12.71, 16.32, 15.34, 13.82, 12.77, 8.6, 5.62, 3.96, 2.81, 5.42, 6.94, 13.65, 17.0, 16.3, 14.91, 13.49, 9.88, 6.65, 4.52, -8.52, -1.91, 1.09, 2.11, 7.88, 12.49, 11.96, 10.13, 9.63, 5.48, 2.33, 0.25, -3.25, 2.81, 5.73, 8.3, 12.83, 16.74, 16.18, 14.94, 5.64, 4.65, -3.91, 3.36, 6.31, 8.03, 13.07, 16.6, 16.22, 15.16, 14.26, 9.77, 6.49, 5.32, -4.48, 2.67, 5.62, 8.22, 12.77, 16.71, 15.6, 14.56, 13.8, 9.04, 5.96, 4.55, -4.92, 3.36, 6.83, 8.44, 14.31, 17.64, 16.87, 15.57, 14.48, 10.21, 6.73, 4.86, -5.68, 3.51, 7.13, 8.27, 14.57, 17.86, 16.95, 15.97, 14.53, 10.71, 7.03, 4.76, -2.8, 3.5, 6.5, 8.6, 14.1, 17.8, 17.3, 15.8, 15.0, 10.5, 6.9, 5.4, -2.88, 3.51, 6.49, 8.61, 14.08, 17.77, 17.33, 15.79, 15.02, 10.5, 6.85, 5.4, -4.43, 2.37, 5.39, 8.16, 13.72, 17.61, 16.62, 15.19, 14.12, 9.39, 5.94, 4.93, -5.81, 3.24, 7.16, 9.25, 15.09, 18.66, 17.57, 16.34, 15.14, 10.77, 7.29, 4.89, -3.15, 2.5, 5.84, 8.06, 13.79, 17.55, 16.73, 15.27, 14.03, 10.1, 6.4, 5.17, -2.9, 2.81, 5.73, 8.25, 13.1, 16.81, 16.46, 15.3, 13.78, 9.09, 6.22, 4.56, 14.5, 18.22, 17.66, -3.31, 3.61, 6.62, 8.56, 14.01, 17.37, 16.78, 15.75, 14.52, 10.36, 6.77, 5.34, -3.28, 3.5, 6.39, 8.7, 13.7, 17.58, 16.59, 15.27, 14.25, 10.15, 6.8, 5.36, -2.18, 3.9, 6.9, 8.69, 17.75, 17.84, 15.86, 14.65, 10.46, 7.24, 6.1, -2.89, 2.94, 5.91, 8.37, 13.11, 17.27, 17.15, 15.72, 14.01, 9.64, 6.5, 5.26, -2.06, 3.71, 6.53, 8.17, 13.35, 17.11, 16.72, 15.51, 14.33, 10.31, 7.4, 5.85, 7.5, 13.02, 17.23, 16.63, 15.18, 14.39, 9.99, 6.76, 5.22, 7.42, 13.14, 16.79, 16.05, 6.26, 4.83, 3.98, 6.67, 8.52, 14.01, 18.02, 17.42, 14.76, 10.43, 7.08, 5.7, -14.24, -7.09, -1.93, 1.9, 6.73, 12.08, 11.64, 10.85, 7.96, 2.5, -1.06, -5.74, -11.42, 0.05, 4.68, 8.66, 15.41, 20.71, 19.82, 18.25, 15.13, 9.41, 5.91, 2.06, -7.8, 2.04, 6.3, 9.09, 15.21, 18.93, 18.07, 16.78, 15.24, 10.19, 6.12, 3.21, -8.67, 1.44, 5.61, 8.37, 14.95, 18.13, 17.6, 16.33, 14.27, 9.52, 5.68, 2.7, -13.41, -1.05, 5.99, 10.4, 16.74, 22.48, 21.16, 19.91, 16.19, 9.85, 5.82, 0.63, -12.6, -2.5, 4.69, 8.7, 15.36, 21.75, 20.32, 18.54, 14.88, 9.86, 6.12, 1.74, -13.53, -3.53, 3.55, 8.36, 14.77, 21.21, -16.15, -5.5, -0.04, 3.04, 9.7, 15.92, 13.18, 11.94, 8.62, 3.13, -0.32, -14.36, -5.04, -1.18, 4.1, 9.25, 14.97, 12.69, 8.59, 4.4, -1.09, -5.37, -15.24, -5.89, -0.02, 5.52, 10.35, 15.22, 14.15, 13.61, 11.23, 3.84, 0.7, -3.7, -13.24, -5.43, 2.29, 7.88, 13.35, 19.15, 17.98, 17.25, 13.72, 6.37, 2.59, -0.93, -12.26, -4.37, 2.65, 7.86, 14.25, 19.83, 18.9, 18.07, 13.99, 6.71, 2.78, -1.28, 20.88, 19.99, 19.12, 15.32, 8.19, 4.87, 1.04, -10.28, -1.22, 5.67, 10.66, 16.44, 21.75, 20.79, 20.43, 16.58, 8.85, 3.9, -0.07, -16.01, -6.82, -2.19, 2.37, 8.2, 13.01, 12.03, 11.74, 9.02, 4.25, -0.94, -5.01, -17.18, -4.82, 1.69, 6.69, 12.2, 18.27, 16.77, 15.1, 12.54, 6.69, 2.04, -2.82, -17.05, -4.46, 2.41, 8.16, 13.12, 18.77, 17.23, 15.94, 13.26, 7.17, 2.91, -1.99, -15.58, -8.25, -2.77, -0.78, 6.97, 11.82, 11.14, 11.42, 7.82, 1.0, -1.25, -5.65, -9.07, -2.22, 3.79, 8.86, 14.54, 20.25, 20.12, 19.06, 15.39, 9.43, 5.37, 1.84, -9.76, -2.87, 3.55, 10.62, 15.48, 20.75, 20.16, 19.47, 15.5, 7.72, 3.6, 0.69, -9.33, -2.27, 4.51, 11.07, 16.75, 22.11, 21.77, 21.08, 16.8, 9.08, 4.57, 0.95, -10.08, -3.0, 3.5, 10.67, 16.59, 21.26, 21.24, 20.51, 15.97, 8.38, 3.54, 0.28, -10.11, -3.11, 3.49, 10.59, 16.49, 21.19, 21.19, 20.49, 15.89, 8.39, 3.59, 0.19, -9.77, -3.3, 3.47, 10.97, 17.35, 22.04, 21.98, 21.31, 16.82, 9.07, 4.35, 0.81, -14.94, -6.69, -1.11, 2.02, 9.05, 14.26, 12.5, 12.67, 9.04, 2.93, -1.23, -4.91, -9.62, -2.88, 3.54, 8.96, 14.54, 20.22, 19.6, 19.06, 15.1, 7.57, 4.35, 0.75, -15.82, -4.88, 1.87, 7.03, 12.55, 18.68, 17.44, 16.58, 13.76, 6.11, 1.34, -3.75, -10.47, -2.94, 3.69, 9.14, 14.92, 20.71, 19.83, 19.26, 15.01, 7.38, 3.69, -0.19, -14.85, -5.65, 1.57, 7.94, 13.57, 19.35, 17.76, 17.36, 13.26, 5.86, 1.87, -2.34, -13.07, -5.86, -11.14, -3.84, 2.88, 8.96, 14.48, 18.52, 18.44, 18.26, 14.61, 6.48, 1.87, -1.99, -13.39, -4.5, 1.1, 7.84, 11.97, 16.92, 16.2, 15.86, 12.54, 5.44, 1.18, -4.02, -9.12, -3.16, 2.18, 8.76, 15.07, 18.8, 18.92, 19.44, 15.01, 7.0, 3.28, -0.29, 19.09, 19.49, 14.96, 7.18, 3.91, -0.08, -8.29, -1.57, 3.45, 9.84, 15.21, 18.92, 18.79, 19.35, 15.72, 7.58, 3.79, -0.04, -8.3, -1.64, 1.7, 6.32, -7.54, -1.47, 3.12, 8.73, 14.44, 17.6, 18.81, 19.27, 14.52, 6.76, 3.04, -0.48, -7.92, -1.54, 3.28, 8.17, 13.83, 18.55, 18.47, 19.14, 14.48, 7.28, 4.34, 0.35, -10.43, -2.95, 1.52, 6.88, 11.98, 16.05, 16.07, 15.48, 12.79, 5.66, 3.02, -0.91, -10.97, -3.43, 2.23, 7.47, 13.26, 17.69, 17.62, 18.02, 13.47, 6.5, 3.74, -0.35, -8.25, -1.67, 2.34, 6.94, 12.18, 15.95, 16.42, 16.95, 13.23, 6.19, 3.0, -0.21, -9.02, -0.88, 3.38, 8.66, 12.14, 16.85, 17.26, 17.32, 13.65, 6.91, 4.29, -0.03, -9.73, -3.87, 1.95, 7.2, 18.27, 17.92, 17.43, 13.36, 6.61, 4.02, -0.25, -7.54, -1.42, 3.03, 7.79, 13.32, 16.46, 18.69, 18.66, 14.0, 7.15, 3.67, -0.66, 14.0, 18.33, 18.32, 18.93, 14.62, 7.34, 4.21, 0.56, -7.88, -1.51, 3.23, 9.39, 14.27, 18.29, 18.15, 18.71, 14.54, 7.23, 4.07, 0.17, -11.34, -4.71, 1.19, 5.03, 11.75, 15.91, 16.1, 16.46, 4.17, 0.26, -3.94, -8.55, -2.5, 2.61, 8.45, 13.64, 17.33, 18.13, 18.41, 14.42, 7.12, 3.35, -0.51, -7.93, -1.25, 3.92, 9.69, 15.41, 19.08, 18.96, 19.02, 15.41, 7.74, 4.06, 0.16, -7.87, -2.5, 3.44, 8.44, 14.21, 18.03, 18.19, 18.64, 15.0, 7.38, 2.27, -1.07, -8.31, -1.3, 3.94, 8.99, 15.64, 19.23, 19.48, 20.1, 15.48, 7.62, 3.4, -0.35, -13.21, -4.24, 1.89, 8.05, 12.68, 15.91, 17.31, 17.62, 13.5, 5.05, 1.48, -4.96, -17.15, -6.95, 0.55, 8.18, 12.65, 16.32, 17.22, 18.12, 13.77, 5.06, 0.92, -6.5, -15.85, -5.89, 0.22, 12.47, 15.48, 16.82, 17.7, 13.31, 4.18, 0.5, -6.8, -13.72, -4.76, 1.02, 7.8, 12.47, 15.56, 17.3, 17.94, 13.61, 4.57, 0.87, -4.91, -15.09, -5.34, -0.09, 6.33, 10.93, 14.36, 15.07, 16.13, 12.45, 4.15, 1.09, -4.22, -14.63, -6.12, -0.24, 7.34, 11.52, 15.32, 16.03, 16.26, 12.82, 4.22, 0.92, -5.53, -16.39, -6.9, -0.4, -19.06, -0.66, 13.73, 12.89, 13.06, 10.01, -2.41, -9.51, -16.04, -5.95, 1.74, 8.06, 12.58, 16.89, 17.04, 17.04, 12.5, 4.46, -0.19, -7.03, -14.66, -5.1, 1.56, 8.8, 14.14, 19.81, 18.87, -15.35, -3.92, 4.76, 10.78, 16.51, 22.3, -17.51, -5.27, 2.77, 9.32, 14.63, 20.56, 18.13, 17.12, 13.63, 6.97, 2.44, -1.93, -17.45, -4.66, 2.51, 9.24, 13.71, 19.59, 17.89, 16.91, 13.43, 6.43, 2.09, -1.98, -5.0, -18.19, -5.05, 1.0, 5.28, 11.84, 17.86, 15.12, 14.67, 11.06, 4.36, 1.13, -3.39, -14.01, -3.22, 2.7, 8.85, 14.47, 20.19, 18.86, 18.11, 14.26, 7.74, 4.23, 0.54, -17.96, -4.36, 2.5, 9.35, 13.65, 19.17, 17.21, 16.09, 12.8, 5.61, 2.4, -1.67, -14.57, -4.4, 2.16, 7.9, 13.61, 19.09, 18.15, 17.68, 13.26, 6.03, 2.57, -1.41, -21.11, -8.03, -0.71, 4.54, 9.63, 15.84, 13.8, 12.45, 9.61, 3.63, -0.84, -6.35, -18.49, -5.77, 0.64, 7.27, 11.57, 17.4, 15.54, 14.54, 11.45, 4.59, 0.61, -3.11, -15.64, -3.19, 3.91, 10.34, 15.78, 21.73, 19.97, 19.2, 14.98, 7.4, 3.46, -0.23, -16.9, -4.18, 3.19, 9.72, 14.9, 20.61, 18.94, 18.13, 14.17, 7.1, 2.97, -0.35, -15.5, -2.94, 4.3, 10.67, 16.09, 21.9, 19.92, 19.12, 15.29, 7.96, 4.17, 0.36, 0.51, 6.37, 17.78, 15.9, 14.47, 11.63, 5.73, 0.97, -3.63, -16.99, -6.66, -2.09, 0.07, 7.82, 13.9, 10.59, 6.09, 1.63, -1.51, -5.96, -13.48, -3.47, 2.37, 7.38, 12.36, 16.82, 16.67, 12.82, 5.77, 2.05, -2.15, -13.3, -2.74, 3.08, 8.61, 14.16, 19.57, 18.27, 17.38, 13.6, 7.1, 2.82, -1.24, -13.9, -3.84, 2.57, 8.75, 14.24, 20.02, 18.3, 17.77, 14.08, 7.06, 3.49, -0.6, -12.45, -3.62, 2.89, 8.52, 14.38, 20.32, 18.75, 17.98, 14.6, 7.44, 3.27, -0.36, -19.17, -4.01, 2.03, 8.94, 12.9, 18.64, 16.62, 15.87, 12.52, 4.93, 1.72, -1.97, -17.01, -4.94, 2.4, 7.42, 12.22, 18.13, 16.84, 12.03, 5.13, 1.46, -5.95, 0.7, 6.55, 13.84, 10.23, 3.51, -0.57, -7.37, -17.8, -8.04, -1.94, 3.09, 6.78, 12.05, 1.39, -2.76, -8.42, -18.91, -5.88, 1.15, 7.98, 12.34, 17.32, 16.6, 16.31, 12.11, 4.72, 0.24, -6.74, -18.17, -6.22, 1.02, 5.07, 11.45, 17.82, 15.63, 15.06, 11.44, 4.61, 0.96, -4.32, -1.74, -13.76, -3.37, 2.72, 7.91, 14.43, 19.55, 18.62, 18.07, 13.94, 6.77, 3.48, -18.07, -7.48, 0.33, 7.58, 11.49, 15.74, 15.47, 15.11, 11.42, 3.79, -0.7, -7.51, -21.68, -6.04, 0.76, 6.55, 11.2, 17.21, 14.06, 13.19, 10.51, 3.81, 0.95, -4.41, -16.02, -7.75, -3.23, 0.74, 10.81, 9.84, 9.3, 5.73, -0.27, -3.69, -7.41, -30.03, -15.67, -5.91, 4.31, 9.81, 13.74, 14.84, 13.67, 7.22, 2.01, -4.79, -8.28, -29.11, -15.13, -6.31, 3.62, 8.88, 13.23, 13.91, 12.79, 6.64, 1.98, -5.03, -7.22, -32.28, -18.16, -7.59, 3.72, 9.7, 13.45, 15.05, 13.03, 7.62, 2.31, -3.63, -8.04, -29.49, -15.76, -5.59, 4.49, 9.75, 13.95, 15.12, 13.56, 7.49, 2.32, -4.7, -7.92, -28.24, -11.42, -3.13, 3.53, 8.24, 14.16, 12.57, 10.49, 7.96, 1.12, -1.7, -8.1, -4.41, 3.19, 9.65, 14.76, 14.97, 13.87, 8.25, 3.54, -3.86, -3.74, -30.8, -13.77, -5.92, 3.15, 6.4, 13.95, 12.72, 10.77, 0.17, -4.68, -8.5, -30.6, 6.6, 4.42, -0.56, -10.76, -30.83, -17.01, -5.51, 2.09, 7.0, 14.03, 11.0, 8.93, 6.8, 1.16, -7.16, -11.58, -32.77, -18.52, -7.84, 2.9, 9.65, 14.91, 15.93, 13.32, 6.87, 1.06, -11.15, -14.99, -32.8, -18.6, -7.8, 2.9, 9.7, 14.9, 15.9, 13.3, 6.9, 1.1, -11.1, -14.9, -36.12, -20.58, -8.49, 0.51, 7.14, 13.25, 12.76, 10.17, 5.56, -31.28, -17.48, -6.5, 1.01, 6.13, 12.73, 10.82, 8.49, 7.25, 2.23, -6.15, -6.2, -17.2, -9.19, -2.89, 1.58, 6.14, 13.2, 12.19, 8.6, 7.7, 2.91, -5.3, -3.96, -25.41, -13.66, -0.99, 6.11, 11.75, 17.85, 15.33, 12.92, 10.52, -29.35, -15.37, -9.0, 3.83, 12.65, 9.47, 4.75, 3.4, 0.37, -10.16, -37.65, -24.01, -12.03, 0.29, 5.83, 14.01, 11.95, 7.45, 5.1, -2.24, -18.96, -21.73, -33.16, -20.85, -10.03, 0.2, 5.49, 12.57, 11.06, 6.53, 5.74, 0.63, -13.69, -12.04, -38.41, -20.46, -8.55, 2.75, 7.3, 15.85, 13.02, 8.83, 6.95, 0.16, -12.22, -15.7, -40.62, -25.37, -14.07, 1.24, 6.78, 15.95, 13.74, 8.23, 5.98, -2.11, -17.22, -18.06, -39.9, -24.6, -13.35, 2.0, 7.55, 16.7, 14.5, 9.0, 6.75, -1.3, -16.45, -17.29, -33.18, -19.47, -7.6, 0.91, 6.26, 13.54, 11.65, 7.8, 6.21, 0.75, -11.47, -14.07, -17.94, -7.72, 0.46, 7.01, 13.46, 11.67, 8.52, 6.77, 0.91, -9.34, -12.52, -33.45, -21.46, -25.08, -13.67, -4.64, 2.93, 6.29, 1.99, 0.78, -4.51, -23.44, -20.98, -40.54, -19.54, -9.56, 3.3, 7.7, 17.13, 13.38, 8.66, 7.43, 0.2, -15.03, -14.29, -25.01, -7.4, 3.34, 13.47, 12.58, 5.76, 2.87, -4.21, -27.08, -22.55, -40.44, -22.62, -11.37, 3.4, 7.75, 15.73, 13.87, 8.84, 7.26, -0.36, -14.58, -17.79, -21.53, -11.22, 0.43, 6.31, 14.66, 12.41, 7.85, 5.64, -1.76, -15.1, -18.69, -12.87, -4.71, 4.67, 9.07, 3.52, 1.64, -3.59, -23.88, -20.21, -31.77, -17.33, -9.02, -2.04, 4.73, 12.21, 9.67, 5.37, -0.22, -10.73, -13.94, -32.65, -16.65, -6.64, 0.5, 6.7, 14.3, 11.65, 8.7, 6.7, 1.25, -8.6, -11.5, -32.67, -16.65, -6.66, 0.5, 6.71, 14.3, 11.62, 8.71, 6.72, 1.25, -8.59, -11.53, -36.55, -20.52, -11.72, -0.3, 5.96, 13.89, 11.83, 8.59, 5.37, -2.02, -13.44, -17.51, -38.04, -23.07, -11.19, -0.5, 7.28, 14.74, 12.99, 10.15, 5.91, -1.11, -13.02, -19.08, -32.97, -15.53, -6.25, 1.68, 7.44, 15.29, 12.25, 8.3, 6.86, 2.13, -9.03, -8.73, -32.14, -14.8, -5.18, 2.5, 7.64, 15.12, 13.2, 8.9, 7.5, 2.84, -8.17, -8.63, -33.04, -15.54, -6.24, 1.76, 7.46, 15.26, 12.26, 8.26, 6.86, 2.16, -9.04, -8.73, -30.14, -28.44, -25.41, -13.57, -4.88, 1.21, 5.42, 5.13, 2.13, -2.72, -18.76, -17.5, -35.47, -30.82, -19.89, -3.59, 5.59, 14.06, 15.27, 8.9, 5.34, -0.31, -24.05, -20.71, -35.5, -30.8, -19.9, -3.6, 5.6, 14.1, 15.3, 8.9, 5.3, -0.3, -24.1, -20.7, -34.41, -30.64, -23.0, -7.62, 2.18, 12.69, 13.65, 6.77, 3.54, -2.32, -25.06, -21.24, -31.77, -20.17, -20.7, -5.53, -0.1, 5.37, 13.52, 13.26, 5.13, -0.73, -14.67, -15.6, -31.08, -18.99, -15.47, -0.99, 4.82, 8.58, 14.46, 12.5, 5.77, 0.26, -11.06, -13.05, -34.47, -21.17, -13.19, 0.49, 7.68, 13.4, 15.47, 11.69, 5.81, 0.65, -14.25, -17.45, -32.0, -17.75, -13.4, 1.64, 6.25, 10.95, 15.5, 14.45, 6.5, -0.34, -10.75, -12.25, -32.0, -17.79, -13.4, 1.7, 6.2, 10.9, 15.5, 14.5, 6.6, -0.3, -10.8, -12.2, -31.99, -17.76, -13.41, 1.62, 6.22, 10.92, 15.5, 14.49, 6.52, -0.32, -10.77, -12.21, -31.52, -19.22, -15.3, -1.51, 5.56, 9.92, 15.74, 13.52, 6.78, 1.43, -10.83, -13.02, -34.16, -20.38, -14.8, -0.27, 7.06, 11.43, 15.42, 13.71, 6.8, 0.36, -12.08, -13.4, -32.64, -31.67, -24.71, -10.23, -0.54, 10.71, 11.7, 6.16, 2.96, -2.57, -24.9, -20.43, -29.62, -29.23, -25.33, -13.19, -4.29, 2.45, 5.66, 4.82, 1.83, -3.31, -21.99, -19.84, -34.03, -28.24, -17.82, -1.18, 6.1, 14.29, 14.76, 9.28, 6.29, 0.7, -21.46, -19.39, -35.05, -29.05, -18.64, -2.05, 5.25, 13.45, 13.95, 8.45, 5.55, -0.15, -22.35, -20.25, -30.12, -21.24, -18.81, -5.16, 0.17, 7.71, 13.0, 9.39, 4.77, 0.4, -16.08, -14.21, -22.6, -18.88, -4.4, 3.72, 8.72, 16.63, 4.65, -2.37, -15.16, -29.14, -29.58, -25.31, -12.14, -3.86, 4.36, 9.3, 5.45, 2.62, -3.21, -23.78, -19.5, -32.47, -19.57, -12.64, 3.06, -3.22, -15.15, -13.13, -34.74, -23.76, -14.78, 0.67, 7.14, 13.61, 14.79, 10.48, 5.87, 0.54, -17.7, -18.45, -33.68, -20.88, -17.3, -3.42, 3.83, 9.65, 14.7, 12.66, 5.42, -0.14, -14.03, -14.93, -33.37, -20.69, -17.02, -3.27, 3.78, 8.87, 14.4, 12.45, 5.4, -0.03, -13.69, -14.01, -25.15, -20.37, -10.28, -0.44, 7.41, 12.66, 12.63, 9.36, 4.18, -12.31, -12.94, -33.04, -27.23, -28.67, -16.12, -9.75, 0.9, 10.91, 11.8, 2.06, -5.61, -20.68, -21.84, -28.97, -23.19, -27.93, -17.01, -9.92, 1.33, 8.75, 9.48, 3.0, -4.6, -16.67, -20.93, -29.0, -23.2, -27.9, -17.0, -9.89, 1.3, 8.8, 9.5, 3.0, -4.6, -16.7, -20.9, -29.19, -27.15, -23.65, -14.72, -6.23, 1.81, 6.58, 5.68, 2.59, -1.72, -17.47, -15.57, -33.74, -25.42, -25.61, -14.15, -8.47, 0.52, 9.28, 9.31, 1.79, -4.74, -20.49, -20.5, -31.95, -27.22, -26.69, -14.89, -6.36, 2.02, 10.84, 8.3, 3.54, -1.75, -18.82, -18.35, -24.67, -19.53, -26.4, -18.88, -9.03, 0.13, 10.67, 9.01, 0.61, -6.82, -15.29, -20.62, -32.25, -22.82, -24.19, -10.58, -6.65, 2.41, 13.02, 14.19, 4.22, -4.43, -16.6, -18.4, -27.31, -16.97, -8.83, -0.33, 6.09, 6.15, 2.71, -2.97, -19.21, -19.6, -30.83, -24.91, -31.28, -20.65, -12.48, -2.64, 9.82, 8.1, -2.92, -9.42, -24.46, -23.41, -21.39, -12.2, -1.56, 10.28, 9.01, -25.49, -29.81, -32.49, -35.28, -26.02, -10.09, -2.12, 3.93, 2.58, -9.82, -17.83, -28.08, -28.05, -29.7, -32.5, -35.3, -26.1, -10.4, -2.0, 3.9, 2.6, -9.89, -17.79, -28.1, -28.1, -16.3, -13.43, -20.4, -17.02, -5.95, -1.36, 5.16, 3.48, -1.15, -6.15, -9.81, -16.32, -17.99, -15.43, -25.03, -20.43, -6.98, -1.51, 5.27, 4.96, -3.62, -7.47, -13.86, -19.0, -33.87, -28.6, -29.88, -18.36, -10.61, -1.15, 9.52, 7.31, 1.29, -5.73, -22.99, -22.11, -33.99, -29.78, -31.36, -19.84, -10.88, -1.95, 9.06, 7.39, 1.13, -6.67, -23.76, -22.74, -34.0, -29.8, -31.4, -19.79, -10.9, -1.9, 9.1, 7.4, 1.1, -6.7, -23.8, -22.8, -16.95, -15.54, -24.11, -18.02, -5.8, -0.38, 5.38, 5.76, -3.49, -8.0, -13.34, -20.87, -20.47, -18.12, -26.45, -19.64, -8.4, -1.98, 5.88, 5.16, -2.85, -6.8, -14.83, -19.61, -21.01, -19.71, -27.57, -20.26, -7.81, -0.99, 5.15, 5.76, 0.1, -5.03, -15.69, -22.13, -21.46, -19.62, -28.7, -21.69, -10.32, -0.75, 7.69, 7.45, -3.74, -9.63, -18.63, -22.82, -33.52, -35.22, -38.54, -27.34, -10.44, 1.36, 4.56, 3.76, -9.31, -20.0, -34.79, -34.51, -34.04, -29.8, -31.26, -20.7, -11.47, -1.84, 9.24, 8.42, -0.18, -7.78, -24.91, -26.17, -26.17, -22.27, -31.68, -22.81, -10.43, -1.68, 7.24, 6.56, -0.33, -6.69, -20.89, -24.59, -26.2, -22.3, -31.7, -22.8, -10.4, -1.7, 7.3, 6.6, -0.3, -6.7, -20.9, -24.6, -19.71, -16.9, -22.91, -19.46, -3.54, 3.65, 9.77, 6.86, 1.89, -5.39, -10.46, -20.29, -33.03, -36.2, -34.99, -25.27, -12.01, -2.07, 1.29, 1.19, -7.4, -16.83, -30.35, -30.44, -21.81, -20.81, -28.69, -21.08, -8.85, 0.52, 8.61, 8.97, -0.49, -7.24, -16.22, -23.94, -27.71, -22.5, -30.61, -20.41, -11.86, -2.39, 9.07, 8.16, -4.08, -9.73, -23.34, -23.63, -18.46, -16.1, -21.88, -16.84, -5.51, 1.01, 7.62, 7.75, 0.7, -4.03, -8.78, -16.45, -1.9, 2.97, 0.96, -3.8, -12.21, -29.34, -28.62, -27.42, -31.29, -23.28, -11.26, -1.83, 3.24, 3.4, -4.66, -12.39, -26.68, -26.26, -28.6, -27.4, -31.3, -23.3, -11.2, -1.8, 3.3, 3.4, -4.69, -12.3, -26.7, -26.3, -15.1, -12.7, -17.9, -16.1, -5.0, -1.1, 5.6, 3.4, -1.2, -7.3, -14.1, -15.13, -12.72, -17.88, -16.09, -5.01, -1.14, 5.53, 3.42, -1.22, -5.43, -7.27, -14.12, -23.55, -20.65, -28.94, -19.81, -9.57, -1.16, 7.27, 6.69, -0.46, -6.4, -18.07, -23.88, -33.43, -29.59, -31.19, -29.44, -26.8, -25.75, -14.13, -32.19, -33.52, -31.1, -21.93, -11.07, -1.12, 1.74, 1.89, -4.13, -12.69, -28.89, -27.21, -30.17, -27.51, -26.33, -15.09, -7.81, 0.61, 3.08, 3.37, -0.01, -7.16, -23.99, -20.51, -27.91, -12.97, -8.33, 6.69, 10.7, 14.59, 16.21, 17.38, 10.82, 1.61, -1.77, -7.72, -27.48, -12.84, -6.43, 6.44, 10.44, 13.77, 15.31, 15.33, 10.05, 2.36, -1.38, -7.14, -28.3, -13.57, -8.72, 6.34, 10.47, 13.91, 15.72, 17.01, 10.35, 0.93, -2.69, -7.62, -28.01, -14.23, -6.67, 6.38, 10.72, 14.61, 15.61, 15.61, 9.95, 2.13, -1.91, -7.61, -29.27, -15.23, -9.26, 5.04, 9.95, 13.33, 14.68, 15.08, 8.9, 0.61, -3.83, -9.15, -24.68, -9.54, 8.03, 11.47, 11.98, 12.5, 8.4, 1.48, -16.4, -12.14, 5.94, 10.2, 13.25, 15.5, 11.18, -0.38, -3.92, -8.68, -27.92, -14.97, -9.99, 5.43, 10.15, 13.88, 15.68, 17.02, 9.84, 0.13, -3.22, -8.58, -26.05, -12.2, -5.15, 7.3, 11.5, 15.75, 16.9, 16.9, 10.6, 2.7, -0.89, -6.05, -29.46, -15.42, -8.85, 5.58, 9.48, 13.14, 14.72, 14.91, 9.33, 1.09, -3.35, -8.76, -26.09, -12.26, -5.17, 7.22, 11.16, 15.44, 16.55, 16.61, 10.27, 2.38, -1.19, -6.39, -26.71, -12.81, -5.71, 6.69, 10.89, 15.19, 16.29, 16.29, 9.99, 2.09, -1.51, -6.81, -27.42, -13.65, -6.77, 6.3, 10.56, 14.92, 15.79, 15.7, 9.56, 1.67, -1.97, -7.37, -26.47, -12.59, -5.25, 6.25, 10.92, 15.21, 15.61, 15.68, 9.53, 2.32, -1.09, -6.46, -29.29, -15.04, -8.88, 6.18, 9.7, 13.18, 15.71, 15.9, 9.62, 0.49, -3.86, -10.41, -29.12, -14.42, -8.34, 6.02, 10.06, 13.91, 15.1, 15.3, 9.56, 1.42, -2.54, -7.9, -8.4, 14.75, 16.43, 17.32, 10.68, 2.15, -0.99, -6.46, -27.8, -13.79, -6.36, 7.18, 11.38, 15.76, 16.51, 16.71, 10.62, 2.41, -1.45, -7.0, -28.94, -14.67, -9.49, 6.29, 10.69, 14.13, 15.92, 17.23, 10.26, 0.92, -2.97, -8.87, -28.13, -13.35, -7.93, 6.51, 10.23, 13.87, 16.17, 17.14, 10.3, 1.1, -2.44, -8.83, -28.88, -16.58, -9.83, 4.87, 9.67, 13.47, 16.07, 9.02, 0.17, -3.33, -9.98, -28.12, -15.78, -9.05, 5.64, 10.45, 14.24, 16.82, 9.79, 0.94, -2.54, -9.22, -29.31, -15.68, -9.04, 10.72, 13.83, 15.84, 16.16, 9.32, 0.85, -9.78, -29.27, -14.93, -9.18, 5.4, 9.2, 12.43, 14.32, 14.17, 8.52, 0.45, -4.38, -9.89, -28.17, -13.55, -7.88, 6.39, 10.04, 13.89, 15.7, 16.68, 10.06, 0.79, -2.7, -8.9, -27.5, -13.11, -5.24, 4.93, 8.37, 11.82, 12.52, 12.69, 8.01, 0.88, -2.22, -7.83, -29.35, -14.99, -9.43, 6.27, 16.75, 10.53, 0.87, -3.72, -9.66, -27.64, -12.86, -5.86, 11.04, 14.96, 15.83, 15.68, 10.15, 2.58, -1.31, -6.83, -27.48, -13.14, -7.59, 5.65, 10.57, 13.77, 15.44, 16.72, 10.02, 1.76, -1.17, -6.91, -30.33, -15.96, -10.5, 5.24, 9.37, 12.73, 14.86, 15.36, 9.3, 0.44, -4.11, -10.34, -29.35, -15.68, -9.43, 5.87, 9.82, 13.44, 15.59, 16.2, 9.64, 0.53, -4.09, -10.2, -29.54, -29.77, -15.15, -9.49, 6.05, 10.06, 13.43, 15.04, 15.6, 9.86, 0.56, -3.31, -9.27, -28.96, -15.48, -11.66, 5.91, 9.87, 13.73, 16.17, 17.49, 10.55, -0.41, -3.2, -8.14, -26.85, -13.17, -6.57, 6.27, 10.69, 14.85, 15.78, 16.25, 10.05, 1.94, -2.03, -7.24, -26.92, -14.33, -6.77, 7.15, 11.52, 14.42, 15.9, 16.41, 11.21, 1.89, 0.45, -5.28, -27.28, -13.17, -6.48, 6.4, 10.25, 13.45, 14.77, 15.0, 10.36, 1.61, -0.62, -5.63, -27.51, -13.33, -8.24, 6.74, 10.64, 13.98, 15.54, 16.61, 10.88, 1.52, -0.31, -6.24, 8.02, 13.05, 16.25, 19.03, 20.75, 13.73, 1.74, -26.57, -13.11, -8.75, 6.7, 11.45, 15.03, 16.73, 17.97, 11.55, 1.51, -0.94, -6.05, -27.94, -13.25, -7.2, 6.01, 10.01, 13.38, 14.74, 15.04, 9.95, 1.45, -2.29, -7.71, -25.11, -12.07, -4.74, 6.97, 10.94, 13.94, 15.12, 15.74, 10.63, 2.41, 0.64, -3.71, -27.27, -12.68, -6.23, 6.28, 10.32, 13.32, 14.63, 15.06, 9.84, 1.65, -1.18, -5.74, -28.44, -15.56, -10.57, 6.34, 11.17, 14.84, 17.26, 18.04, 11.75, -0.06, -2.17, -7.18, -26.7, -12.19, -6.02, 7.22, 11.26, 14.56, 15.91, 16.23, 11.15, 2.47, -1.51, -5.9, -27.45, -13.89, -7.34, 6.42, 10.44, 13.72, 14.83, 14.98, 10.19, 1.56, -2.39, -7.85, -28.08, -15.0, -10.59, 6.47, 11.01, 14.12, 16.61, 17.61, 11.18, 0.92, -2.26, -6.73, -28.23, -14.36, -11.48, 11.02, 14.73, 17.12, 18.15, 0.29, -2.04, -6.85, -28.13, -15.24, -8.59, 7.0, 10.73, 13.63, 15.59, 16.02, 10.52, 1.35, 0.14, -7.08, -26.79, -14.14, -7.85, 6.2, 11.09, 14.25, 15.39, 16.41, 10.81, 1.27, -0.83, -6.21, -26.72, -14.19, -7.92, 7.98, 12.24, 15.29, 17.69, 18.56, 12.66, 1.61, -0.13, -5.58, -26.85, -13.57, -7.65, 8.23, 12.65, 15.55, 18.33, 18.66, 13.21, 2.0, 0.58, -4.45, -20.9, -6.31, -2.23, 6.86, 9.51, 12.16, 15.3, 16.53, 12.51, 2.23, 2.89, -1.71, -24.21, -9.99, -3.12, 7.11, 10.37, 13.36, 14.61, 15.9, 10.92, 2.61, 2.12, -3.23, -24.58, -12.05, -4.39, 6.95, 10.32, 13.17, 14.58, 15.71, 10.72, 1.73, 1.55, -4.27, 7.23, 10.23, 12.85, 15.73, 16.82, 11.73, 2.87, -21.11, -7.18, -2.42, 6.27, 9.6, 11.68, 14.61, 16.12, 12.04, 1.76, 3.11, -2.17, -24.1, -3.49, 8.46, 11.06, 13.84, 16.0, 17.4, 12.23, 3.17, 3.59, -2.4, -22.6, -8.0, -2.7, 6.47, 9.1, 12.49, 14.73, 15.91, 11.62, 2.78, 2.49, -2.36, -23.24, -10.64, -4.55, 9.52, 13.23, 15.3, 19.01, 20.61, 14.42, 3.14, 3.37, -2.54, -22.58, -8.68, -2.7, 8.71, 12.05, 14.54, 17.16, 17.66, 12.67, 3.67, 4.04, -1.88, -25.98, -12.77, -6.51, 7.5, 11.52, 14.2, 15.86, 16.76, 11.27, 1.73, 0.16, -5.56, -25.46, -12.51, -5.94, 8.81, 12.83, 14.58, 18.17, 19.69, 13.62, 2.51, 1.42, -4.31, -24.15, -9.09, -3.75, 6.59, 9.1, 12.05, 13.7, 15.03, 10.61, 2.25, 1.94, -3.56, -24.66, -11.46, -4.06, 7.84, 11.54, 14.14, 16.64, 18.34, 12.84, 2.74, 3.24, -3.36, -24.53, -11.41, -3.99, 7.89, 11.6, 14.17, 16.73, 18.37, 12.86, 2.74, 3.56, -3.38, -23.57, -11.42, -3.81, 8.67, 12.28, 14.51, 17.15, 18.87, 13.41, 3.24, 4.0, -2.77, -25.44, -12.68, -6.37, 9.14, 12.97, 15.75, 19.12, 20.6, 14.78, 2.4, 1.87, -4.33, -21.97, -7.7, -2.63, 7.27, 9.95, 12.95, 15.22, 16.66, 12.04, 3.3, 3.4, -1.42, -23.47, -10.39, -3.69, 8.54, 12.3, 15.37, 17.1, 18.6, 13.18, 3.28, 2.73, -3.14, -26.11, -13.83, -7.31, 8.43, 12.4, 15.16, 17.83, 18.8, 13.07, 2.08, 1.24, -4.71, -23.08, -9.63, -3.05, 8.36, 14.19, 16.79, 18.02, 13.01, 3.25, 3.94, -2.58, -24.27, -11.89, -4.29, 8.67, 12.76, 14.91, 17.95, 19.48, 13.77, 2.92, 3.9, -2.94, -24.8, -10.3, -4.47, 6.15, 8.61, 11.32, 12.97, 14.12, 9.62, 1.72, 0.79, -4.22, -24.26, -10.0, -3.01, 7.18, 10.44, 13.48, 14.76, 15.87, 10.92, 2.68, 2.14, -3.07, -25.49, -13.87, -5.88, 8.26, 12.3, 14.64, 17.36, 18.43, 13.02, 1.9, 1.7, -4.51, -21.77, -7.76, -2.88, 8.87, 12.18, 14.33, 17.88, 20.66, 14.55, 2.74, 4.19, -1.66, -21.31, -9.78, -7.57, 8.12, 11.31, 14.0, 19.68, 21.98, 14.18, 0.75, -0.73, -22.73, -10.98, -7.42, 6.01, 9.58, 11.61, 15.53, 16.43, 11.59, -0.22, -1.15, -6.47, -13.1, -8.3, 7.53, 11.84, 14.52, 18.4, 20.32, 13.99, 1.31, 0.22, -5.85, -22.69, -10.17, -4.46, 8.28, 12.08, 13.82, 18.08, 19.61, 13.7, 2.85, 3.55, -3.15, -20.8, -7.39, -3.35, 6.2, 9.56, 11.87, 14.69, 16.23, 11.8, 1.64, 2.57, -3.17, -22.46, -9.04, -2.24, 4.83, 7.55, 11.84, 12.57, 13.89, 8.97, 1.94, -1.24, -7.35, -20.89, -6.56, -2.05, 7.39, 9.84, 12.45, 14.85, 16.22, 12.15, 3.5, 2.97, -0.91, 2.0, 0.59, -4.78, -22.82, -6.6, -1.42, 8.78, 12.04, 13.67, 15.05, 10.44, 2.96, 0.6, -3.16, -20.32, -6.98, -1.95, 5.62, 7.82, 11.52, 13.65, 14.97, 10.75, 2.41, 1.15, -3.33, -23.98, -9.43, -3.13, 5.21, 7.26, 10.53, 11.31, 12.56, 8.74, 0.88, -0.5, -4.53, -23.48, -8.82, -3.5, 3.83, 5.93, 9.22, 10.32, 11.44, 7.09, 0.54, 0.13, -4.44, -24.96, -8.14, -0.48, 6.32, 9.83, 15.15, 13.85, 13.19, 9.21, 3.21, 0.01, -5.95, -21.92, -7.19, -2.16, 4.65, 7.2, 11.28, 11.87, 13.11, 9.29, 2.39, 1.7, -3.0, -23.87, -11.71, -4.3, 3.65, 7.81, 12.02, 11.52, 11.32, 8.0, 1.11, -4.31, -11.8, -24.8, -9.89, -2.8, 5.17, 7.59, 11.21, 12.09, 11.99, 7.23, 0.77, -0.59, -6.09, -24.31, -9.17, -4.86, 4.93, 6.96, 10.03, 11.64, 13.12, 8.77, 1.09, 0.47, -3.82, -28.89, -14.16, -7.01, 5.81, 9.8, 13.81, 15.23, 14.44, 8.54, 1.41, -3.78, -8.85, -30.17, -14.99, -8.02, 4.86, 8.21, 12.16, 14.81, 14.08, 7.97, 0.82, -6.22, -10.19, -30.06, -15.65, -7.36, 5.0, 9.44, 13.82, 14.55, 14.25, 8.67, 1.69, -3.66, -9.53, 9.22, 12.95, 13.35, 8.31, -27.1, -11.21, -3.56, 5.65, 9.47, 13.27, 14.02, 13.69, 8.45, 2.46, -1.95, -6.86, -27.65, -11.85, -4.15, 5.15, 8.95, 12.75, 13.55, 13.15, 7.95, 1.95, -2.55, -7.45, -27.09, -9.59, -2.97, 5.57, 8.77, 12.71, 13.14, 12.27, 8.28, 1.18, 1.64, -5.08, -30.94, -15.58, -9.23, 4.72, 8.07, 11.64, 15.72, 14.94, 7.4, 1.4, -8.48, -11.15, -31.44, -14.35, -6.41, 5.74, 9.56, 13.8, 7.82, 1.84, -5.11, -9.54, -30.2, -14.08, -6.24, 6.39, 10.12, 14.06, 15.84, 15.03, 8.79, 2.27, -3.58, -8.81, -29.41, -14.28, -7.57, 5.76, 9.46, 12.92, 15.18, 14.95, 8.76, 0.87, -4.08, -8.79, -26.92, -12.46, -5.7, 6.59, 10.12, 14.14, 15.82, 15.06, 8.99, 1.88, -2.23, -7.11, -14.49, 10.25, 2.72, -25.61, -9.37, -2.97, 5.17, 9.03, 12.45, 13.14, 13.53, 7.99, 2.94, -0.05, -4.76, -29.37, -13.56, -5.9, 5.24, 9.29, 13.02, 13.28, 13.44, 7.84, 1.83, -2.69, -9.04, -29.3, -13.33, -6.16, 5.09, 8.83, 13.0, 15.07, 14.34, 8.45, 1.39, -4.03, -8.79, -28.75, -12.71, -4.81, 5.63, 9.63, 13.74, 14.48, 13.79, 8.77, 2.28, -3.46, -9.05, -28.49, -13.38, -5.32, 4.14, 9.92, 13.75, 14.45, 13.26, 8.18, 2.83, -3.07, -7.08, -28.5, -13.4, -5.3, 4.15, 9.95, 13.75, 14.45, 13.25, 8.2, 2.85, -3.05, -7.1, -30.9, -15.01, -5.92, 3.24, 8.09, 12.33, 12.59, 11.86, 6.27, 1.34, -3.77, -8.83, -32.88, -7.93, 3.98, 8.54, 12.81, 13.8, 12.64, 7.23, 0.92, -7.71, -12.0, -29.42, -13.9, -5.81, 5.33, 10.0, 14.34, 15.23, 14.4, 7.8, 2.11, -4.74, -8.05, -29.36, -14.85, -6.52, 5.29, 10.27, 14.46, 14.93, 13.81, 7.89, 1.87, -5.88, -8.57, -30.93, -15.26, -7.33, 5.39, 10.24, 14.18, 15.62, 14.38, 8.55, 2.32, -5.48, -8.85, -32.24, -17.59, -12.77, 1.7, 6.01, 10.55, 15.86, 15.49, 7.69, -1.24, -10.62, -11.97, -31.8, -16.93, -8.7, 4.59, 9.32, 13.16, 16.07, 14.32, 8.5, 0.46, -9.99, -10.49, -30.81, -15.48, -6.02, 3.24, 9.01, 12.26, 13.46, 11.9, 7.19, 2.47, -3.37, -7.99, -32.53, -17.24, -7.88, 3.21, 9.97, 13.65, 14.68, 13.15, 7.86, 1.95, -4.75, -10.22, -32.24, -18.41, -8.43, 3.99, 9.1, 13.0, 14.76, 13.72, 7.81, 0.93, -7.45, -9.56, 9.72, 13.11, 14.93, 13.6, -30.86, -14.27, -6.97, 5.1, 9.68, 14.21, 15.53, 14.23, 8.34, 2.15, -4.92, -8.51, -35.38, -19.88, -10.59, 3.71, 8.72, 12.88, 14.43, 13.52, 7.21, -0.32, -9.67, -10.85, -33.15, -16.77, -7.37, 4.64, 9.12, 13.75, 14.71, 13.84, 7.77, 1.18, -7.14, -9.8, -32.25, -17.87, -7.59, 3.87, 10.46, 14.08, 15.3, 14.19, 8.49, 2.48, -4.46, -8.07, -29.17, -13.27, -3.7, 5.08, 9.57, 13.64, 14.26, 12.64, 8.17, 2.91, -1.82, -6.74, -15.74, -5.32, 4.79, 11.23, 14.73, 15.8, 14.91, 7.8, 2.8, -3.96, -28.74, -11.61, -4.8, 5.28, 9.49, 13.74, 14.58, 13.85, 8.21, 2.73, -3.87, -6.44, -29.7, -15.37, -7.53, 4.62, 9.28, 13.04, 15.37, 14.75, 8.29, 1.47, -5.5, -8.45, -32.65, -18.12, -8.5, 3.79, 9.8, 12.98, 14.68, 13.83, 7.29, 1.36, -5.75, -9.82, -32.0, -17.01, -7.36, 4.25, 9.16, 13.12, 14.33, 12.65, 7.42, 1.11, -6.52, -11.03, -28.32, -14.62, -8.13, 6.38, 9.72, 13.49, 16.06, 16.19, 9.38, 0.55, -4.45, -9.56, -28.6, -15.19, -9.03, 5.74, 10.16, 13.23, 15.51, 15.38, 9.53, 0.94, -4.03, -9.45, -24.25, -14.64, -10.64, 5.61, 9.89, 12.02, 16.93, 11.79, 0.73, -3.93, -9.98, -24.95, -14.99, -11.59, 5.03, 9.09, 10.34, 16.09, 18.45, 10.96, -0.22, -3.87, -10.22, -22.18, -13.71, -9.64, 5.53, 11.02, 12.38, 17.75, 20.44, 12.73, 1.96, -3.01, -8.95, -23.75, -14.32, -9.43, 6.49, 11.47, 13.52, 17.49, 19.85, 12.41, 1.01, -0.68, -7.75, -23.11, -12.89, -8.93, 6.78, 11.31, 13.05, 17.43, 20.45, 13.35, 1.8, -0.86, -7.7, -25.09, -14.71, -10.72, 6.5, 11.38, 13.07, -3.71, -9.43, -25.74, -14.84, -10.8, 5.72, 10.65, 13.66, 16.31, 18.92, 12.19, -0.11, -3.4, -9.43, -24.81, -13.69, -9.85, 6.53, 11.31, 13.78, 17.87, 20.23, 12.6, 0.79, -2.62, -8.72, -23.3, -14.3, -10.44, 6.2, 10.77, 12.25, 17.77, 20.05, 13.05, 2.04, -1.73, -9.52, -26.19, -15.36, -10.92, 5.23, 9.34, 12.37, 16.47, 18.49, 11.15, -0.06, -4.74, -11.02, -24.99, -14.65, -10.48, 6.03, 10.53, 12.79, 17.95, 19.99, 13.01, 1.45, -2.53, -9.27, -23.51, -14.34, -11.07, 5.66, 10.8, 12.29, 16.95, 19.66, 12.79, 0.77, -2.36, -9.2, -25.39, -15.79, -11.19, 4.89, 9.08, 12.06, 16.57, 18.22, 10.99, 1.0, -4.37, -10.83, -24.08, -14.06, -10.06, 6.06, 10.05, 11.84, 16.98, 19.82, 12.25, 0.8, -2.93, -9.35, -25.61, -15.9, -12.11, 9.08, 16.09, 17.63, 10.05, -0.13, -26.91, -14.53, -10.52, 5.55, 9.98, 13.02, 16.81, 18.75, 11.18, -0.08, -4.7, -10.14, -24.6, -14.61, -10.81, 5.52, 9.83, 11.65, 16.54, 19.05, 11.97, 0.18, -3.56, -9.41, -23.78, -13.73, -9.57, 6.53, 11.2, 12.65, 17.57, 20.29, 12.88, 0.83, -2.41, -8.69, -25.88, -14.77, -10.77, 6.12, 9.56, 12.69, 17.35, 19.11, 11.15, 1.03, -5.41, -10.83, -25.21, -14.51, -10.76, 5.78, 9.84, 11.67, 15.82, 18.14, 11.2, 0.02, -4.39, -9.74, -23.26, -13.6, -9.78, 5.53, 10.0, 11.73, 16.83, 19.72, 11.98, 0.84, -3.3, -9.01, -26.86, -15.19, -11.65, 5.5, 9.74, 12.22, 16.37, 18.4, 11.16, 0.5, -4.56, -10.8, -26.71, -15.33, -11.77, 5.17, 9.24, 11.69, 15.91, 18.11, 10.73, -0.48, -5.73, -11.58, -24.36, -14.95, -11.33, 5.36, 9.62, 12.01, 17.32, 19.03, 11.62, 0.83, -4.52, -10.46, -26.04, -14.56, -11.7, 5.37, 10.01, 11.56, 16.38, 18.54, 11.65, -0.22, -4.65, -10.17, -24.08, -13.99, -9.85, 7.21, 12.12, 13.94, 17.97, 20.24, 13.19, 1.22, -2.38, -8.39, -24.56, -14.33, -10.26, 6.3, 11.24, 13.5, 17.35, 19.99, 12.86, 0.94, -1.97, -8.77, -24.51, -15.31, -11.42, 4.99, 9.88, 11.9, 16.79, 18.96, 11.56, 0.46, -4.05, -9.67, -22.73, -13.14, -9.54, 6.28, 11.33, 13.08, 18.07, 20.68, 13.51, 2.14, -1.47, -9.05, -24.24, -14.54, -9.19, 6.89, 11.66, 13.62, 17.84, 20.12, 13.49, 1.28, -0.71, -7.49, -24.3, -14.5, -9.2, 6.9, 11.7, 13.6, 17.9, 20.2, 13.5, 1.3, -0.7, -7.5, -23.03, -13.64, -9.07, 5.85, 10.38, 12.2, 17.84, 20.85, 12.44, 1.64, -2.67, -8.74, -26.82, -14.96, -10.91, 5.22, 9.47, 12.21, 16.11, 18.39, 11.11, -0.38, -5.01, -11.02, -25.81, -14.51, -10.67, 6.45, 11.51, 13.63, 17.48, 19.55, 12.63, 0.79, -4.11, -9.43, -23.69, -13.36, -8.66, 6.82, 11.4, 13.14, 17.93, 20.85, 13.47, 1.5, -0.33, -7.5, -22.7, -14.77, -11.02, 4.26, 10.81, 12.12, 17.2, 19.61, 12.22, 1.86, -1.64, -9.49, -26.87, -15.37, -11.98, 5.33, 9.58, 12.1, 16.54, 18.41, 11.17, 0.11, -5.09, -25.99, -14.07, -10.52, 6.15, 10.39, 12.85, 16.84, 19.66, 11.78, 0.07, -4.32, -9.81, -22.93, -14.23, -10.54, 4.81, 10.63, 12.25, 17.47, 19.76, 11.77, 1.42, -2.9, -9.41, -24.68, -14.64, -11.21, 5.85, 10.9, 12.71, 17.41, 19.62, 12.76, 0.48, -2.87, -9.03, -23.74, -14.32, -10.99, 5.72, 10.94, 12.56, 17.26, 19.41, 12.64, 0.54, -2.87, -8.83, -24.62, -14.57, -10.8, 5.98, 10.59, 12.79, 16.78, 19.43, 12.66, 0.15, -3.35, -9.17, -25.12, -15.08, -11.68, 5.42, 10.42, 12.27, 16.97, 19.17, 12.32, 0.01, -3.33, -9.48, -25.38, -13.77, -10.36, 6.62, 10.84, 13.39, 17.68, 19.71, 12.72, 0.75, -3.59, -9.51, -25.28, -14.18, -10.88, 6.94, 11.57, 13.89, 17.52, 20.11, 12.58, 0.58, -3.31, -8.79, -25.53, -14.65, -10.63, 6.14, 10.59, 13.29, 16.83, 19.13, 11.61, 0.08, -2.54, -8.45, -26.73, -15.96, -11.66, 5.29, 10.66, 13.43, 17.3, 19.07, 11.46, 0.02, -3.89, -10.14, -23.14, -13.44, -9.57, 6.34, 10.92, 12.82, 17.92, 20.32, 13.43, 2.13, -1.39, -8.37, -23.91, -14.33, -9.78, 5.47, 11.62, 12.56, 17.26, 12.61, 0.85, -1.89, -8.82, -25.45, -14.19, -10.1, 5.43, 9.95, 12.36, 16.19, 18.58, 11.25, -0.01, -4.59, -9.92, -25.41, -14.5, -10.43, 6.45, 10.84, 13.06, 17.39, 18.97, 12.08, 0.64, -3.21, -9.32, -23.47, -14.26, -9.98, 6.33, 11.58, 13.23, 18.16, 20.46, 13.29, 2.16, -1.55, -25.13, -15.4, -10.95, 5.39, 9.97, 12.68, 17.46, 19.28, 11.42, 0.98, -4.02, -10.06, -14.82, -10.83, 5.1, 10.63, 12.2, 16.98, 19.31, 12.32, 0.25, -3.0, -9.53, -25.41, -13.09, -9.38, 7.11, 11.8, 14.81, -27.72, -14.07, -11.47, 5.97, 11.37, 14.82, 17.28, 19.25, 12.05, 0.66, -1.92, -6.72, -23.47, -13.76, -9.52, 7.38, 11.34, 13.86, 17.56, 19.69, 13.3, 1.18, 0.03, -6.3, -23.32, -12.6, 6.93, 11.38, 13.38, 17.62, 20.72, 1.38, -0.05, -7.11, -25.27, -14.24, -9.79, 6.85, 11.18, 14.04, 17.14, 19.63, 12.45, 0.44, -1.26, -7.0, -24.13, -13.72, -9.72, 6.63, 10.79, 13.18, 17.11, 20.13, 12.66, 0.76, -1.13, -24.59, -14.47, -9.57, 6.46, 10.44, 13.49, 16.8, -24.76, -15.04, -10.1, 6.3, 10.42, 12.46, 16.61, 18.96, 12.35, 0.24, -1.38, -7.52, -24.2, -13.91, -9.77, 6.19, 10.87, 12.9, 16.57, 18.92, 12.14, -0.14, -25.2, -10.48, 6.58, 11.18, 14.48, 17.87, 20.09, 13.36, -0.4, -26.67, -14.16, -11.3, 6.04, 11.63, 14.81, 17.97, 19.76, 12.53, 0.49, -2.55, -7.41, -23.51, -11.8, -7.07, 7.08, 10.64, 12.85, 16.15, 19.01, 12.93, 0.42, 0.34, -6.15, -23.39, -12.92, -8.0, 7.28, 11.5, 13.91, 17.89, 20.34, 13.79, 1.2, -0.1, -6.77, -23.59, -12.48, -7.86, 7.0, 10.33, 12.88, 16.31, 18.52, 12.28, 0.06, -0.36, -6.64, -27.26, -14.52, -11.07, 6.0, 10.62, 13.83, 18.04, 19.96, 11.48, -0.01, -3.18, -7.96, -26.73, -14.2, -9.43, 7.39, 11.48, 14.52, 17.74, 19.81, 12.86, 0.65, -1.08, -5.83, -23.53, -12.45, -7.75, 7.21, 10.75, 13.22, 17.07, 12.78, 0.91, -0.22, -6.2, -23.14, -13.4, -8.77, 7.7, 11.04, 13.24, 17.34, 19.53, 13.18, 1.85, -0.07, -6.08, -22.49, -10.21, -6.95, 6.37, 9.34, 11.53, 15.06, 16.95, 11.76, 0.35, 0.08, -5.71, -27.1, -14.79, -10.71, 6.12, 11.65, 15.09, 18.21, 19.79, 12.79, 0.68, -1.58, -5.91, -24.22, -13.33, -9.22, 7.13, 11.17, 13.22, 17.6, 20.43, 13.79, 1.71, -0.15, -6.66, -24.01, -10.78, -6.15, 9.38, 12.46, 15.3, 18.74, 21.13, 14.97, 1.96, 1.98, -4.14, -24.54, -14.56, -10.42, 6.26, 10.64, 12.74, 16.94, 19.34, 0.38, -1.01, -7.73, -23.02, -13.19, -8.48, 6.98, 11.07, 13.77, 16.91, 19.83, 13.0, 0.56, -0.13, -6.85, -24.46, -12.48, -8.82, 7.67, 12.3, 15.1, -6.02, -23.42, -12.57, -7.62, 6.44, 11.49, 12.69, 17.63, 20.19, -25.04, -12.43, -8.73, 7.37, 12.06, 14.53, 20.02, 13.58, 1.25, -0.41, -5.4, -23.72, -13.63, -8.69, 6.83, 11.17, 13.79, 16.99, 19.87, 12.88, 0.22, -0.67, -7.14, -22.46, -11.48, -6.77, 6.99, 11.36, 13.28, 17.14, 19.22, 13.12, 1.15, 0.6, -5.53, -23.85, -12.05, -8.6, 7.05, 11.0, 13.65, 17.24, 19.65, 12.95, 0.84, -0.45, -5.9, -24.03, -12.26, -8.8, 6.87, 10.79, 13.48, 17.03, 19.42, 12.72, 0.64, -0.71, -6.14, -23.84, -12.17, -8.17, 7.44, 10.92, 13.57, 17.2, 20.18, 13.11, 0.54, -0.06, -5.69, -23.97, -12.27, -8.52, 6.92, 10.8, 13.57, 17.06, 19.97, 13.03, 0.26, -0.18, -6.01, -24.24, -15.25, -9.36, 6.71, 10.86, 13.29, 17.08, 18.36, 12.87, 0.12, -0.93, -7.53, -24.17, -15.29, -9.1, 6.79, 10.63, 13.11, 16.69, 12.73, 0.18, -1.13, -7.18, 6.16, 9.77, 12.32, 15.85, 18.86, 12.83, -2.77, -23.17, -13.18, -8.89, 6.66, 11.61, 13.12, 17.74, 20.47, 13.76, 2.02, -0.25, -7.47, -23.32, -14.68, -9.88, 5.85, 10.44, 13.42, 17.79, 19.74, 13.61, 1.64, -1.72, -7.46, -22.75, -13.77, -8.57, 6.49, 11.18, 12.62, 17.53, 19.77, 12.69, 1.88, -1.23, -8.71, -24.61, -15.0, -9.77, 6.6, 11.15, 13.41, 17.05, 19.28, 12.86, 0.03, -1.34, -7.36, 6.79, -24.46, -16.1, -10.58, 6.39, 10.21, 12.3, 16.59, 18.52, 12.13, 0.69, -2.46, -8.25, -23.21, -25.16, -15.17, -9.51, 7.86, 11.32, 14.12, 18.13, 19.53, 13.58, 0.58, -0.75, -7.12, -27.44, -14.19, -9.94, 6.35, 11.11, 14.45, 17.56, 19.3, 11.66, 0.3, -2.86, -9.07, -31.01, -16.49, -11.04, 5.21, 8.9, 12.05, 14.79, 16.21, 9.24, -0.77, -4.98, -11.23, -28.59, -14.87, -10.7, 5.54, 10.79, 14.12, 16.52, 18.13, 10.9, 0.45, -2.87, -8.94, -29.36, -15.09, -10.06, 5.13, 8.97, 11.73, 14.75, 16.33, 8.98, -0.75, -4.34, -10.72, -27.49, -14.24, -10.97, 6.2, 11.14, 14.2, 17.21, 19.07, 11.98, 0.04, -2.88, -7.71, -27.83, -14.63, -11.38, 5.82, 10.77, 13.82, 16.87, 18.72, 11.62, -0.34, -3.23, -8.08, -26.98, -14.49, -11.12, 6.33, 11.56, 14.47, 17.35, 19.18, 12.28, 0.71, -2.67, -28.99, -15.0, -11.01, 5.93, 11.0, 14.58, 16.97, 17.83, 11.42, 0.2, -3.37, -8.76, -28.63, -14.61, -10.31, 6.26, 11.0, 14.34, 16.45, 18.1, 11.8, 0.8, -3.17, -27.91, -15.14, -9.32, 6.55, 10.59, 14.38, 17.18, 18.86, 11.56, 1.11, -3.15, -9.59, -29.33, -16.63, -10.83, 5.07, 9.17, 12.97, 15.77, 17.47, 10.17, -0.33, -4.63, -11.03, -30.53, -16.4, -11.49, 5.53, 9.75, 13.23, 15.83, 10.23, 0.57, -5.6, -27.74, -15.0, -9.7, 4.84, 8.38, 11.64, 14.6, 16.37, 9.3, -1.05, -4.99, -11.1, -27.84, -15.97, -11.42, 5.53, 10.8, 14.41, 16.8, 19.4, 11.55, -0.04, -3.33, -9.72, -29.77, 5.1, 9.25, 12.65, 15.18, 16.43, 9.21, -0.17, -28.59, -15.86, -10.72, 5.27, 10.23, 13.86, 17.86, 10.24, -0.27, -3.51, -9.21, -29.61, -15.98, -10.95, 5.1, 9.46, 12.83, 15.7, 17.34, 9.97, -0.36, -4.37, -10.18, -30.22, -16.02, -10.55, 5.62, 9.31, 12.8, 16.85, 9.33, -0.36, -4.5, -10.94, -28.01, -15.57, -9.03, 5.68, 9.84, 13.35, 16.38, 17.36, 10.08, 0.53, -3.71, -9.82, -28.31, -15.85, -10.89, 5.78, 10.57, 13.96, 16.75, 18.91, 11.39, 0.1, -3.48, -10.05, -28.44, -15.34, -10.18, 5.34, 9.42, 12.37, 15.43, 17.19, 10.12, -0.35, -4.72, -11.16, -26.3, 9.52, 12.96, 16.94, 18.62, 11.27, 0.15, -3.7, -9.49, -27.15, -14.06, -9.8, 6.9, 10.85, 13.86, 17.5, 19.49, 12.19, 0.19, -3.54, -9.53, -28.03, -15.78, -10.13, 5.71, 9.82, 13.07, 15.92, 17.88, 10.66, -0.03, -4.33, -10.66, -27.79, -15.07, -10.66, 5.91, 10.5, 14.03, 11.67, 0.34, -2.61, -9.76, -27.55, -15.74, -11.07, 5.63, 10.5, 14.1, 16.77, 18.54, 11.32, 0.21, -3.49, -10.05, -28.2, -15.42, -11.17, 4.67, 9.19, 12.66, 16.46, 18.18, 10.28, -1.01, -4.66, -10.67, -28.17, -25.61, -13.61, -9.34, 7.3, 11.3, 14.97, 17.92, 19.97, 12.8, 1.06, -1.59, -7.9, -26.23, -14.68, -10.25, 6.23, 10.55, 13.67, 16.79, 19.13, 12.09, 0.35, -2.56, -8.91, -27.6, -14.66, -10.1, 5.79, 10.35, 12.84, 16.2, 18.56, 11.67, 0.34, -4.91, -10.64, -29.2, -16.6, -10.9, 5.1, 9.2, 12.5, 16.2, 17.5, 10.2, -0.8, -5.3, -11.3, -29.83, -17.25, -11.55, 4.42, 8.55, 11.84, 15.51, 16.87, 9.51, -1.42, -5.9, -11.96, -28.42, -15.53, -10.5, 5.76, 10.54, 14.04, 17.08, 18.79, 11.2, -0.1, -4.65, -10.53, -27.8, -15.85, -10.54, 6.1, 10.3, 13.55, 17.0, 18.65, 11.25, 0.25, -4.1, -10.4, -27.5, -15.59, -10.31, 6.39, 10.55, 13.78, 17.22, 18.92, 11.56, 0.5, -3.84, -10.13, -27.39, -14.75, -9.73, 6.64, 10.97, 14.04, 17.61, 19.68, 12.43, 1.08, -3.2, -9.61, -28.06, -15.3, -10.1, 6.62, 11.08, 14.1, 17.51, 19.23, 11.82, -0.03, -3.98, -10.31, -26.8, -14.33, -10.34, 6.45, 10.62, 13.96, 17.02, 18.91, 11.5, 0.4, -3.34, -9.69, -30.11, -18.07, -13.5, 2.42, 5.61, 9.96, 16.24, 17.07, 6.57, -0.84, -9.15, -14.66, -29.75, -17.45, -11.2, 3.5, 6.85, 11.0, 15.95, 16.7, 8.2, -0.85, -7.5, -13.4, -29.74, -17.4, -11.18, 3.52, 6.9, 11.03, 15.93, 16.67, 8.17, -0.84, -7.53, -13.41, -28.74, -15.17, -9.07, 6.23, 9.89, 12.78, 15.94, 16.65, 9.31, 0.47, -3.73, -10.12, -28.69, -15.15, -9.14, 6.85, 9.78, 13.36, 16.21, 16.67, 9.78, 0.42, -4.5, -10.71, -28.85, -9.55, 8.71, 11.72, 14.75, 14.95, 8.65, -0.37, -5.28, -10.8, -28.6, -15.07, -9.09, 6.3, 10.25, 12.72, 15.99, 17.42, 10.59, 0.28, -3.31, -10.02, -31.65, -19.14, -15.73, -0.26, 3.45, 8.0, 14.55, -2.71, -13.99, -15.43, -32.59, -18.41, -14.45, 0.26, 4.05, 9.09, 15.28, 14.84, 6.0, -1.9, -12.51, -14.39, -27.47, -14.94, 10.14, 13.17, 16.18, 17.4, 10.41, 0.56, -3.48, -10.44, -28.83, -15.35, -9.46, 5.21, 8.36, 11.51, 15.01, 16.0, 8.46, -1.06, -4.49, -11.06, -28.88, -17.55, -12.08, 2.4, 5.08, 9.18, 15.61, 15.9, 6.16, -1.13, -9.66, -14.06, -28.52, -16.34, -11.69, 4.67, 9.15, 13.02, 16.66, 17.8, 10.15, -0.13, -5.18, -11.44, -28.87, -15.71, -10.57, 5.05, 8.47, 11.48, 15.39, 17.25, 9.49, -0.41, -11.85, -28.29, -16.85, -11.52, 4.24, 8.95, 12.36, 16.35, 17.55, 9.97, -0.36, -5.43, -11.64, -27.2, -15.46, -9.92, 5.5, 9.65, 12.83, 17.48, 18.89, 10.17, -0.31, -4.68, -11.24, -26.16, -16.59, -12.41, 4.57, 8.19, 11.72, 16.11, 18.09, 10.18, 0.6, -5.41, -11.44, -26.64, -15.18, -9.99, 5.22, 8.25, 11.74, 16.52, 18.2, 9.75, 0.41, -4.96, -11.47, -25.92, -15.66, -11.52, 4.25, 7.83, 11.57, 15.95, 17.55, 9.99, 0.47, -5.22, -11.37, -27.74, -17.08, -11.42, 4.01, 8.84, 11.49, 16.2, 17.41, 9.33, -0.81, -5.39, -12.13, -26.82, -14.85, -11.11, 4.71, 7.92, 11.09, 15.54, 16.91, 9.2, -0.44, -5.52, -11.44, -27.47, -15.57, -10.57, 5.1, 8.86, 11.99, 16.89, 17.83, 10.02, 0.5, -4.82, -11.6, -23.03, -14.49, -11.58, 4.1, 9.66, 11.82, 17.17, 20.14, 12.18, 1.48, -3.61, -10.46, -22.76, -14.45, -11.04, 5.48, 11.55, 18.6, 20.97, 12.99, 2.52, -2.52, -9.6, -23.86, -15.06, 5.04, 8.88, 11.09, 16.2, 19.07, 10.97, 0.15, -4.96, -11.07, -23.32, -14.98, -12.68, 3.84, 9.64, 11.42, 16.86, 19.58, 11.75, 1.5, -3.87, -10.53, -23.36, -15.36, -12.16, 3.84, 9.24, 11.09, 17.04, 19.54, 11.49, 1.34, -3.91, -10.91, -22.59, -14.57, -11.35, 4.59, 9.99, 11.84, 17.82, 20.37, 12.27, 2.09, -3.14, -10.15, -23.3, -15.73, -11.63, 5.26, 10.39, 11.66, 19.96, 12.14, 1.22, -3.38, -21.73, -13.27, -10.47, 5.83, 10.54, 12.44, 18.39, 21.31, 2.82, -2.77, -9.28, -21.89, -12.95, 5.91, 11.17, 12.65, 18.05, 20.76, 13.04, 2.24, -2.49, -9.3, -21.07, -12.16, -9.7, 5.92, 10.76, 12.15, 17.83, 21.25, 13.04, 2.0, -3.11, -9.84, -21.59, -12.7, -10.77, 6.89, 11.0, 12.93, 17.98, 20.84, 13.57, 2.37, -2.6, -8.95, -23.81, 4.33, 9.37, 11.3, 16.75, 19.48, 11.13, 0.71, -4.42, -10.87, -23.35, -14.48, -11.52, 3.32, 8.27, 10.76, 15.91, 18.37, 10.12, 0.04, -4.74, -11.25, -22.92, -14.27, -11.22, 4.82, 9.84, 11.12, 16.83, 19.25, 10.7, 0.82, -4.39, -10.32, -22.32, -14.17, -10.69, 5.67, 11.81, 13.24, 18.71, 21.08, 13.07, 2.82, -1.56, -8.65, -21.2, -13.6, -9.8, 6.1, 11.0, 13.3, 19.1, 20.9, 13.4, 2.8, -2.6, -9.5, -21.1, -13.55, -9.73, 6.05, 11.0, 13.24, 19.12, 20.92, 13.41, 2.77, -2.56, -9.41, -21.48, -13.82, -9.99, 5.89, 10.3, 12.58, 18.38, 20.84, 12.77, 2.68, -2.64, -9.41, -22.34, -14.64, -11.38, 5.42, 9.93, 12.78, 18.51, 20.7, 12.72, 2.37, -2.82, -9.77, -22.31, -14.12, -9.38, 5.47, 12.12, 13.38, 13.4, 3.46, -1.63, -8.99, -22.38, -13.61, -11.04, 5.3, 10.04, 12.15, 17.46, 20.3, 12.29, 1.54, -3.57, -10.02, -5.3, -11.85, -23.87, -15.12, -11.82, 4.02, 7.77, 10.21, 15.49, 18.47, 10.03, -0.66, -5.38, -11.51, -24.76, -15.02, -11.93, 4.71, 8.79, 11.53, 16.87, 18.77, 10.63, 0.12, -5.35, -11.47, -22.37, -13.85, -10.53, 5.62, 10.33, 12.53, 18.42, 21.03, 13.02, 2.43, -2.56, -9.69, -21.93, -13.89, -11.01, 5.71, 11.04, 12.56, 18.28, 21.27, 12.97, 2.57, -24.01, -15.66, -11.66, 4.23, 8.44, 9.78, 15.94, 18.59, 10.02, -0.04, -5.22, -10.38, -22.36, -14.38, -10.02, 5.51, 11.28, 13.12, 18.66, 21.31, 12.8, 2.6, -2.73, -9.71, -23.75, -14.7, -11.61, 3.61, 7.45, 9.16, 14.71, 17.51, 10.21, 0.27, -5.32, -11.13, -21.08, -13.16, -9.66, 6.12, 11.73, 13.07, 18.93, 21.7, 13.48, 3.23, -2.68, -9.95, -21.57, 6.29, 11.24, 12.88, 18.73, 21.47, 13.05, 2.62, -0.99, -8.95, -21.65, -12.67, -9.65, 5.65, 10.6, 12.59, 11.86, 2.46, -1.73, -8.69, -20.73, -12.99, -9.11, 6.19, 11.36, 13.04, 18.8, 21.56, 13.97, 3.01, -2.09, -8.82, -21.17, -13.25, -10.13, 5.65, 10.78, 11.7, 17.82, 19.9, 12.56, 2.76, -3.22, -9.96, 6.05, 11.43, 12.67, 18.62, 21.39, 13.57, 3.16, -22.49, -14.94, -11.57, 5.45, 10.13, 11.91, 17.94, 20.46, 12.58, 2.16, -3.79, -11.25, -21.85, -13.5, -8.9, 6.32, 10.83, 12.89, 18.71, 21.06, 12.91, 2.67, -2.65, -9.82, -2.3, -9.35, -2.81, -9.73, -20.46, -13.16, -8.67, 5.92, 11.55, 13.26, 19.32, 21.86, 13.87, 3.16, -2.01, -8.92, -20.21, -13.04, -8.82, 6.32, 11.89, 13.22, 19.37, 22.11, 14.27, 3.45, -1.71, -8.39, -20.56, -13.18, -10.15, 6.64, 11.72, 13.14, 19.03, 21.35, 13.5, 3.45, -2.79, -9.87, -20.86, -14.02, -10.32, 6.24, 11.45, 13.21, 19.11, 21.99, 14.07, 3.21, -2.58, -9.5, -23.14, -13.3, -10.5, 4.56, 10.66, 13.44, 19.38, 21.97, 13.28, 3.21, -1.82, -9.22, -22.27, -14.46, -11.73, 5.48, 10.17, 12.01, 17.6, 20.08, 12.43, 2.14, -3.87, -11.35, -22.61, -14.35, -12.24, 4.57, 9.53, 11.29, 16.71, 19.5, 11.99, 1.35, -3.99, -10.92, 18.54, 20.74, 13.38, 2.58, -2.71, -9.38, -21.35, -14.0, -10.06, 5.74, 10.98, 12.4, 18.29, 20.63, 13.49, 3.11, -9.94, -21.87, -13.92, -10.36, 5.64, 10.35, 12.2, 18.52, 21.15, 12.97, 2.1, -3.58, -10.24, -20.06, -13.79, -9.63, 4.79, 9.93, 11.3, 16.98, 19.18, 11.88, 1.92, -3.13, -10.78, -21.64, -14.28, -10.95, 5.53, 10.76, 12.61, 17.86, 20.86, 13.13, 2.59, -3.54, -10.55, -21.11, -13.19, -10.16, 6.01, 11.22, 12.58, 18.63, 20.77, 12.72, 2.82, -2.94, -10.01, -22.62, -14.11, -10.5, 5.41, 10.23, 11.8, 17.72, 19.99, 12.74, 2.04, -3.37, -10.75, -21.88, -13.93, -10.78, 5.86, 10.46, 12.19, 18.45, 20.86, 12.71, 2.48, -3.3, -10.17, -21.9, -13.9, -10.8, 5.9, 10.5, 12.2, 18.5, 20.9, 12.7, 2.5, -3.3, -10.2, -13.71, -10.86, 5.86, 10.67, 12.3, 18.53, 20.87, 13.17, 2.64, -3.07, -10.11, -21.9, -14.94, -10.1, 5.43, 9.32, 12.18, 18.14, 20.11, 12.32, 2.5, -3.42, -10.6, -20.36, -11.33, -8.37, 6.61, 10.24, 12.03, 18.31, 20.64, 12.65, 2.48, -3.52, -9.7, -20.76, -14.13, -11.32, 5.03, 10.29, 11.94, 18.2, 21.01, 13.36, 2.46, -3.4, -10.61, 5.27, 9.21, 10.89, 17.3, 19.46, 11.82, 1.58, -3.95, -10.55, -21.68, -14.02, -10.14, 4.77, 8.95, 11.61, 17.81, 20.07, 12.07, 1.92, -3.99, -11.08, -25.32, -16.94, -11.98, 2.39, 5.98, 10.21, 16.62, 18.74, 9.35, -0.49, -6.54, -11.84, -19.38, -12.38, -8.89, 5.82, 10.29, 12.25, 18.56, 20.62, 13.34, 2.89, -2.55, -9.18, -23.48, -16.1, -10.98, 7.96, 10.6, -5.89, -11.88, 10.76, 11.99, 17.87, 20.37, 2.81, -3.04, -10.19, -20.13, -12.75, -9.42, 5.54, 10.06, 11.13, 17.78, 19.88, 12.66, 2.07, -3.26, -9.73, 8.09, 11.41, 18.08, 19.95, 11.84, 1.73, -4.2, -10.8, -19.35, -11.9, -9.14, 5.67, 10.41, 11.99, 18.38, 21.06, 13.42, 2.78, -2.79, -9.27, -19.78, -12.77, -9.13, 5.49, 10.64, 11.76, 18.24, 20.55, 13.31, 2.65, -2.65, -9.33, -4.41, -9.87, -23.68, -14.84, -10.7, 5.47, 9.05, 11.86, 17.28, 19.4, 11.02, 1.87, -3.99, -10.78, -23.88, -15.7, -11.22, 5.19, 9.23, 12.14, 17.52, 19.19, 11.37, 1.46, -4.11, -10.31, -21.22, -14.39, -11.44, 4.59, 9.87, 12.81, 18.36, 20.45, 12.41, 2.8, -2.6, -9.65, -23.61, -15.37, -11.09, 4.78, 9.76, 12.28, 17.53, 19.87, 11.56, 1.81, -4.24, -11.18, 18.47, 10.45, 0.61, -4.32, -10.98, -22.34, -14.81, -10.65, 4.99, 9.7, 11.79, 17.79, 19.95, 11.79, 2.14, -3.23, -9.41, -23.6, -14.34, -10.23, 4.58, 7.44, 10.64, 16.9, 18.98, 10.27, 0.68, -4.75, -11.27, 20.62, 12.63, 2.16, -2.73, -9.09, -22.1, -14.29, -9.56, 5.98, 9.66, 12.21, 18.32, 20.31, 11.79, 1.69, -3.11, -9.41, -23.0, 5.17, -26.42, -17.55, -11.89, 4.15, 7.37, 11.62, 16.33, 18.29, 9.54, -0.05, -6.12, -11.89, -23.21, -15.58, -11.32, 3.37, 8.57, 12.24, 18.39, 20.02, 12.38, 1.78, -4.02, -10.48, -25.91, -17.0, -11.41, 4.58, 7.89, 12.14, 16.83, 18.79, 9.99, 0.39, -5.61, -11.36, -25.94, -14.57, -9.73, 4.35, 7.36, 11.48, 17.82, 19.25, 8.11, -0.85, -7.27, -12.58, -28.06, -16.04, -10.95, 3.33, 6.83, 11.04, 16.78, 18.12, 8.05, -0.99, -7.7, -13.33, -28.17, -16.69, -12.5, 3.59, 7.56, 11.32, 16.66, 17.84, 8.24, -1.37, -7.06, -14.04, -27.12, -15.85, -10.02, 4.18, 7.45, 11.1, 17.0, 18.2, 8.9, -0.6, -6.5, -12.7, -26.68, -16.05, -10.74, 3.95, 7.18, 11.43, 17.3, 18.54, 9.17, -0.26, -6.2, -12.42, -27.57, -16.19, -9.41, 4.9, 7.27, 11.92, 17.77, 9.7, -0.9, -13.67, -31.61, -20.84, -16.96, -2.13, 1.29, 7.31, 15.2, 15.46, 5.73, -2.71, -13.12, -16.87, -26.8, -20.5, -21.1, -8.3, -4.6, 3.4, 12.1, 12.7, 4.7, -1.9, -10.3, -17.7, -26.74, -20.48, -21.03, -8.34, -4.59, 3.45, 12.03, 12.71, 4.69, -1.96, -10.33, -17.75, 4.54, 9.26, 15.98, 16.15, 5.9, -1.79, -11.08, -15.39, -28.1, -18.08, -14.9, 0.63, 2.8, 7.98, 15.56, 15.51, 5.07, -2.79, -10.72, -17.0, -26.42, -16.51, -12.28, 2.17, 4.8, 9.78, 16.31, 17.0, 6.9, -1.88, -8.61, -14.99, -21.19, -16.16, -15.93, -0.94, 3.58, 8.57, 17.28, 17.35, 6.39, -0.02, -6.41, -14.31, -19.83, -16.38, -12.81, 2.22, 5.3, 8.72, 16.08, 17.2, 8.09, -0.44, -6.43, -12.82, -17.94, -12.27, -8.24, 5.02, 8.46, 10.41, 2.02, -3.61, -10.1, -19.9, -16.35, -15.14, -0.21, 4.21, 8.75, 17.27, 17.78, 7.29, -0.02, -6.89, -13.79, -15.24, -11.78, 3.05, 6.08, 9.64, 17.18, 18.44, 8.88, 0.23, -5.79, -11.9, -19.58, -15.04, -11.59, 3.2, 6.31, 9.85, 17.41, 18.66, 9.06, 0.46, -5.59, -11.64, -20.8, -13.6, -10.01, 4.43, 7.43, 9.66, 16.95, 18.5, 10.37, 0.29, -4.71, -11.77, -16.88, -13.63, -8.77, 4.42, 8.91, 10.12, 16.49, 17.98, 11.26, 2.4, -4.84, -10.82, -16.09, -13.28, -8.0, 5.29, 9.39, 11.42, 17.12, 18.94, 12.49, 3.33, -3.9, -10.14, -16.85, -11.53, -6.94, 6.49, 10.73, 12.32, 18.42, 20.24, 13.27, 3.82, -2.55, -8.72, -16.38, -11.36, -7.25, 5.32, 9.81, 11.66, 17.59, 19.64, 12.23, 2.82, -3.61, -9.82, 13.06, 3.56, -2.73, -10.04, -17.98, -12.76, -7.95, 5.41, 9.49, 11.04, 17.4, 19.02, 11.9, 2.16, -3.87, -18.15, -15.32, -9.56, 3.08, 7.71, 10.45, 17.4, -11.08, -18.99, -11.4, -8.16, 5.88, 9.69, 11.57, 18.14, 19.88, 12.3, 1.95, -3.18, -10.37, -9.2, 16.42, 17.9, 10.79, 0.22, -5.4, -11.76, -19.55, -13.5, -10.4, 3.56, 7.1, 9.46, 16.44, 18.28, 10.19, -5.47, -12.08, -11.09, -11.77, -9.36, -7.47, 2.4, 5.6, 8.48, 13.96, 16.97, 11.33, 4.0, -1.09, -6.49, -18.07, -15.18, -12.04, 1.6, 5.31, 8.55, 15.65, 16.85, 8.73, 0.2, -7.05, -12.61, -18.45, -15.55, -12.4, 1.2, 5.0, 8.2, 15.25, 16.5, 8.35, -0.1, -7.45, -12.95, -14.66, -11.47, -8.61, 2.92, 6.64, 10.18, 16.35, 18.54, 11.35, 3.25, -2.93, -8.49, -4.51, -10.87, -16.59, -15.18, -12.95, 0.86, 6.56, 9.81, 16.1, 17.22, 8.96, 1.4, -5.5, -11.44, -13.28, -11.01, -6.79, 4.54, 8.5, 10.96, 17.14, 19.15, 11.93, 3.17, -2.66, -7.96, -16.2, -14.3, -12.35, -14.7, -12.66, -10.32, 2.1, 7.82, 11.33, 17.48, 18.73, 9.79, -2.75, -10.0, -11.5, -8.91, -7.08, 2.49, 6.17, 8.12, 13.29, 15.96, 11.0, 4.39, -1.03, -6.91, -11.43, -13.16, -10.41, -8.28, 1.86, 5.39, 8.14, 13.85, 15.95, 10.05, 2.48, -2.3, -7.67, -13.4, -11.9, -7.45, 4.15, 7.8, 10.75, 17.1, 19.25, 11.75, 3.3, -3.15, -9.14, -13.71, -12.17, -7.76, 3.82, 7.51, 10.43, 16.75, 18.92, 11.43, 2.97, -3.43, -9.43, -17.55, -15.06, -11.41, 2.47, 6.96, 9.95, 16.31, 18.1, 10.88, 1.66, -5.96, -11.52, 7.28, 9.83, 16.39, 18.53, 12.65, 5.14, -0.62, -13.16, -10.94, -7.45, 3.45, 7.73, 10.24, 16.59, 18.72, 11.7, 3.82, -2.45, -8.13, -10.33, -8.27, -6.38, 3.16, 9.09, 13.45, 17.81, 18.99, 12.98, -0.68, -15.93, -13.96, -11.7, 0.15, 5.88, 9.41, 15.33, 16.91, 6.75, 0.94, -13.43, -8.16, -6.97, -4.46, 4.23, 9.33, 12.26, 19.17, 13.63, 6.4, 0.82, -6.42, -8.75, -8.17, -5.87, 3.47, 8.59, 11.86, 17.92, 18.86, 13.39, 6.44, 0.52, -6.58, -10.83, -9.71, -7.2, 2.79, 8.58, 12.05, 16.81, 17.71, 12.46, 5.07, -0.41, -9.14, 11.25, 4.07, -8.92, -13.88, -13.99, -11.73, 0.68, 7.56, 10.25, 15.87, 16.8, 9.08, 2.14, -3.52, -11.43, -11.62, -11.49, -8.86, 1.56, 7.8, 12.79, 16.48, 18.26, 10.81, 3.0, -3.21, -13.17, -13.06, -12.39, -10.79, 0.51, 7.93, 11.99, 17.03, 18.06, 10.17, 2.75, -2.8, -11.83, -9.91, -8.56, 4.22, 9.67, 14.49, 19.39, 20.47, 13.77, 6.07, 0.56, -9.65, -12.25, -13.11, -11.18, 0.48, 7.74, 12.24, 16.38, 18.15, 10.58, 3.72, -3.02, -12.52, -11.23, -9.9, 2.82, 8.42, 13.48, 18.19, 18.93, 12.24, 5.55, 0.12, -10.38, -9.75, -7.87, -5.77, 3.83, 9.43, 13.95, 18.45, 19.29, 12.92, 6.26, 0.68, -10.22, -9.57, -7.66, -5.21, 4.15, 10.15, 14.86, 19.62, 20.96, 14.14, 6.29, 0.68, -9.23, -10.92, -8.81, -7.1, 2.8, 9.05, 13.97, 18.49, 19.62, 12.23, 4.79, -0.71, -10.46, -10.86, -8.23, -5.89, 3.32, 9.2, 13.6, 18.3, 19.51, 12.96, 5.35, -0.31, -9.84, -13.07, -12.39, -10.76, -0.08, 7.61, 12.37, 16.6, 9.89, 2.49, -3.06, -12.52, -11.36, -10.2, -8.38, 1.5, 8.65, 13.99, 18.26, 19.15, 10.74, 4.04, -1.88, -12.3, -25.72, -19.75, -5.45, 3.1, 7.45, 15.8, 16.26, 7.23, -4.33, -13.21, 0.51, -10.15, -12.27, -12.21, 1.05, 7.7, 13.62, 17.27, 18.57, 10.52, 3.15, -2.31, -12.11, -13.13, -12.56, -10.61, 0.01, 7.03, 12.44, 16.85, 16.95, 9.5, 2.31, -3.7, -12.71, -14.25, -13.37, -12.11, -1.19, 6.43, 11.56, 17.1, 17.77, 9.14, 2.09, -3.42, -12.95, -14.1, -12.98, -11.45, -0.04, 6.94, 11.39, 16.62, 17.69, 9.2, 2.17, -3.65, -12.45, -14.44, -12.54, -11.58, -0.14, 6.98, 11.41, 16.74, 17.47, 9.12, 2.28, -3.84, -12.83, -14.18, -13.08, -11.58, -0.12, 6.87, 11.32, 16.57, 17.62, 9.12, 2.07, -3.68, -12.58, 0.28, 7.72, 13.85, 17.86, 18.67, 3.13, -2.72, -12.23, -14.44, -13.87, -11.84, -0.24, 6.82, 11.01, 16.36, 2.35, -3.81, -12.2, -14.53, -15.58, -14.43, -4.32, 4.52, 8.96, 15.72, 16.52, 8.52, 1.52, -3.53, -13.33, -13.82, -14.81, -13.7, -3.63, 5.21, 9.69, 16.43, 17.27, 9.27, 2.25, -2.81, -12.64, -11.72, 1.29, 9.09, 13.88, 19.07, 11.61, 5.01, -0.82, -13.48, -12.76, -1.37, 5.75, 11.02, 17.28, 17.37, 8.86, 1.61, -3.91, -14.23, -12.72, -11.67, -0.25, 6.54, 11.26, 17.72, 18.04, 9.19, 2.33, -3.72, -11.93, -12.62, -11.97, -9.88, 0.47, 7.75, 12.53, 17.51, 18.26, 9.4, 2.57, -3.13, -12.2, -12.6, -12.0, -9.89, 0.5, 7.8, 12.6, 17.6, 18.3, 9.4, 2.6, -3.1, -12.2, -13.01, -13.09, -10.17, 0.83, 6.62, 11.57, 16.17, 16.7, 9.19, 2.84, -2.97, -13.05, -10.67, -8.75, -6.86, 3.08, 8.57, 13.75, 17.7, 18.7, 12.5, 5.28, 0.33, -11.13, -8.9, -10.32, -8.5, 3.96, 8.5, 14.48, 18.48, 18.93, 13.2, 6.1, 0.96, -10.03, -10.63, -7.64, -5.53, 4.07, 8.92, 14.6, 18.06, 18.91, 12.87, 6.24, 1.03, -10.28, -10.89, -8.7, -5.89, 4.24, 9.13, 14.57, 17.31, 18.27, 12.4, 6.09, 0.81, -11.16, -9.95, -7.68, -4.92, 4.17, 14.94, 19.86, 19.71, 13.51, 6.18, 0.85, -10.0, -10.96, -8.41, -6.36, 3.04, 8.74, 13.53, 18.27, 18.53, 12.09, 5.11, -0.75, -10.65, -10.04, -7.53, -5.44, 3.96, 9.66, 14.46, 19.16, 19.46, 12.96, 5.96, 0.16, -9.74, -8.53, -7.43, -5.2, 4.1, 9.05, 13.02, 18.36, 19.63, 14.21, 7.36, 1.84, -6.11, -9.0, -7.42, -5.09, 3.96, 9.01, 13.13, 18.99, 20.64, 14.48, 7.38, 2.08, -5.79, -8.43, -6.81, -4.59, 3.6, 7.76, 11.95, 18.03, 19.56, 14.23, 7.75, 2.04, -5.99, -9.76, -7.43, -4.44, 5.5, 10.81, 16.5, 19.61, 20.33, 14.0, 7.62, -9.05, -9.78, -7.02, -4.23, 5.59, 10.52, 16.74, 19.42, 20.66, 14.07, 7.38, 1.97, -8.97, -9.38, -6.96, -4.43, 5.2, 10.44, 16.6, 19.43, 20.41, 14.13, 7.29, 1.84, -8.99, -9.91, -8.05, -5.02, 4.09, 9.59, 12.66, 6.15, 1.01, -8.86, -6.22, -3.39, 6.11, 11.13, 15.97, 19.18, 19.39, 14.16, 7.66, 3.2, -8.27, -8.02, -5.75, -2.53, 6.55, 11.2, 17.31, 20.7, 21.05, 15.2, 8.84, 3.12, -7.18, -7.9, -5.77, -2.69, 5.93, 10.93, 16.83, 20.39, 20.91, 15.69, 9.06, 3.16, -7.08, -8.32, -5.63, -2.73, 6.36, 11.43, 16.53, 20.0, 20.59, 15.08, 8.03, 2.94, -7.76, -9.73, -6.81, -4.16, -9.7, -6.44, -3.29, 5.95, 11.82, 17.93, 22.12, 15.8, 8.46, 2.97, -7.41, -9.11, -7.15, 5.0, 10.33, 17.02, 19.95, 21.06, 14.55, 7.97, 2.59, -8.29, -9.56, -6.72, -3.56, 5.85, 20.27, 21.13, 14.58, 8.49, 3.09, -7.42, -11.06, -8.18, -5.18, 4.1, 9.94, 15.29, 18.23, 18.96, 13.12, 6.12, 0.45, -10.33, -7.99, -5.75, -2.63, 6.23, 11.79, 18.43, 21.27, 21.75, 15.5, 9.31, 3.54, -6.81, -8.44, -6.35, -3.18, 5.91, 11.67, 17.79, 20.77, 21.33, 15.23, 8.81, 3.16, -7.36, -9.78, -7.32, -4.53, 4.4, 10.39, 16.93, 19.11, 19.92, 13.44, 6.7, 1.87, -8.94, -10.01, -7.67, -4.96, 4.31, 9.52, 15.68, 19.13, 19.8, 14.04, 6.67, 1.61, -9.13, -9.25, -7.25, -4.03, 5.28, 10.88, 17.51, 19.65, 20.43, 14.4, 7.58, 2.39, -8.14, -8.49, -5.62, -3.2, 6.24, 11.35, 16.4, 19.89, 20.41, 15.24, 8.14, 2.54, -7.67, -8.65, -6.16, -2.98, 6.25, 11.34, 17.36, 20.6, 21.05, 14.47, 7.87, 2.67, -7.61, -11.37, -8.27, -5.42, 4.72, 9.69, 15.11, 17.92, 18.72, 12.84, 6.4, 1.23, -10.53, -7.37, -5.01, -2.32, 5.67, 9.85, 15.37, 19.6, 20.25, 15.59, 8.52, 3.61, -6.91, -7.04, -5.0, -2.2, 6.28, 11.25, 16.58, 20.57, 20.93, 15.86, 3.15, -7.59, -9.33, -6.75, -3.58, 6.06, 11.09, 17.22, 19.84, 20.57, 14.61, 7.94, 2.53, -7.98, -9.2, -6.45, -3.55, 5.75, 10.9, 17.35, 20.2, 21.15, 14.5, 7.85, 2.34, -7.75, -9.15, -6.45, -3.54, 5.74, 10.93, 17.33, 20.17, 21.13, 14.49, 7.82, 2.37, -7.74, -9.19, -6.64, -3.81, 5.15, 10.84, 17.25, 20.08, 20.68, 14.02, 7.33, 1.63, -8.59, -9.07, -6.02, -3.43, 5.96, 11.02, 16.87, 20.56, 21.26, 14.5, 7.85, 2.32, -7.62, -9.98, -6.64, -4.5, 4.92, 9.82, 16.13, -10.27, -7.69, -4.67, 4.42, 9.58, 15.42, 18.13, 19.21, 13.28, 6.31, -9.78, 5.53, 10.29, 16.44, 19.17, 19.97, 14.02, 7.19, 1.78, -9.65, -8.89, -6.45, -2.74, 6.41, 11.59, 17.33, 20.25, 20.96, 14.81, 8.34, -7.76, -9.41, -6.76, -3.78, 6.04, 11.05, 17.24, 19.95, 20.65, 14.28, 7.93, 2.57, -7.96, -9.84, -7.29, -4.83, 4.7, 9.3, 13.95, 17.75, 18.53, 13.49, 6.85, 1.04, -8.76, -6.71, -5.52, -3.07, 6.8, 11.79, 15.66, 19.54, 20.25, 14.86, 7.76, 2.34, -6.71, -8.32, -6.59, 5.5, 10.75, 15.58, 19.94, 20.67, 8.89, 3.1, -7.21, -10.03, -8.35, 3.78, 9.32, 14.52, 18.5, 19.42, 12.82, 6.02, 0.28, -11.92, -10.19, -8.36, -5.77, 4.21, 8.94, 13.87, 17.34, 18.07, 12.7, 6.5, 0.5, -10.02, -6.34, -7.4, -4.59, 5.36, 9.87, 14.52, 18.27, 19.53, 14.82, 8.23, 2.22, -6.45, -5.6, -6.2, -3.44, 6.22, 10.41, 15.24, 19.49, 21.02, 15.63, 9.12, -5.36, -4.39, 6.47, 14.5, 18.65, 19.96, 15.11, 8.37, 2.33, -7.33, -7.03, -6.27, -3.09, 6.2, 10.82, 15.68, 19.6, 20.4, 15.35, 8.53, 2.96, -7.37, -9.29, -7.09, -4.25, 4.95, 10.16, 14.83, 18.89, 19.57, 14.26, 7.55, 1.59, -8.44, -5.94, -6.49, -4.28, 5.7, 9.85, 14.92, 19.02, 20.71, 15.26, 9.0, 3.21, -5.41, -7.06, -6.32, 6.31, 10.37, 15.52, 19.61, 20.49, 15.51, 8.39, 3.0, -7.38, -10.07, -7.46, -4.8, 4.49, 9.38, 14.09, 17.74, 18.6, 13.56, 7.13, 2.4, -8.7, -9.46, -6.7, -4.07, 5.42, 10.0, 14.6, 18.37, 19.02, 14.21, 7.65, 1.7, -8.26, -5.72, -6.02, -3.81, 5.11, 9.31, 13.83, 18.58, 19.68, 15.13, 8.84, 3.4, -4.77, -9.04, -6.99, -4.59, 4.76, 9.56, 14.38, 19.06, 19.7, 14.67, 8.03, 1.85, -8.31, -9.28, -7.37, -4.34, 5.37, 9.92, 14.68, 18.78, 19.4, 14.49, 7.83, 2.31, -8.39, -6.54, -6.01, -3.96, 5.1, 9.22, 13.67, 18.42, 19.48, 14.44, 8.3, 2.4, -5.27, -5.51, -5.86, -3.65, 5.69, 9.88, 14.7, 18.82, 20.48, 8.95, 3.21, -5.07, -6.51, -7.19, -4.43, 5.94, 10.58, 14.67, 19.37, 19.56, 15.45, 8.14, 1.73, -6.75, -5.35, -6.44, -3.02, 7.48, 11.48, 15.56, 19.99, 20.15, 16.32, 9.31, 2.71, -5.36, -5.71, -5.9, -2.83, 7.53, 11.55, 15.65, 20.47, 20.54, 15.76, 8.49, 2.41, 2.99, -3.89, -4.52, -4.65, -1.68, 6.64, 11.29, 15.49, 20.18, 20.83, 16.92, 9.32, 3.64, -3.98, -6.1, -6.41, -3.91, 6.05, 10.42, 14.66, 19.2, 19.5, 15.51, 8.49, 2.42, -5.64, -6.3, -6.99, -4.18, 5.51, 9.61, 13.98, 18.32, 19.53, 14.84, 8.15, 2.18, -6.2, -1.43, 7.27, 16.07, 20.77, 21.17, 16.57, 9.37, 3.07, -4.03, -3.91, -2.82, -0.04, 7.61, 12.83, 16.87, 21.74, 22.8, 17.75, 10.59, 3.97, -2.76, -4.19, -3.32, -0.61, 7.24, 11.71, 16.31, 21.01, 22.47, 18.17, 10.67, 3.91, -2.86, -5.15, -5.5, -2.83, 9.33, 13.78, 18.66, 20.09, 15.56, 9.53, 3.44, -4.31, -6.06, -6.16, -4.18, 3.74, 18.02, 20.04, 14.37, 8.4, 3.12, -4.38, -6.58, -6.8, -4.33, 6.05, 10.51, 14.65, 18.7, 19.51, 14.95, 8.48, 1.98, -6.5, -0.37, 7.94, 12.66, 16.8, 21.05, 16.25, 9.43, -3.61, -1.07, 7.48, 12.3, 16.91, 20.65, 21.22, 16.42, 9.5, 3.73, -4.65, -4.96, -4.1, -0.98, 8.32, 12.71, 17.0, 20.94, 21.12, 16.28, 9.59, 3.7, -5.0, -4.23, -3.69, -1.22, 6.08, 10.82, 15.55, 20.06, 20.88, 16.56, 9.82, 3.96, -4.05, -3.77, -3.33, -0.83, 6.43, 11.58, 17.27, 21.2, 21.8, 17.21, 10.81, 4.58, -3.51, -4.78, -2.79, -0.33, 7.42, 12.83, 17.41, 23.03, 17.54, 10.44, 4.57, -3.1, -5.26, -3.94, -0.88, 7.53, 12.28, 16.49, 20.44, 20.85, 16.38, 9.43, 3.55, -5.11, -4.59, -2.71, 0.6, 8.56, 13.71, 17.31, 21.58, 22.09, 17.3, 10.55, 3.44, -3.29, -4.47, -2.62, 0.61, 8.3, 13.44, 17.23, 22.13, 22.66, 18.04, 10.99, 4.25, -2.76, -4.53, -2.85, 0.39, 8.12, 13.38, 17.19, 21.92, 22.84, 17.84, 10.94, 3.69, -2.94, -4.7, -3.72, -0.4, 6.97, 12.02, 15.8, 20.5, 21.37, 16.86, 10.14, 3.8, -3.66, -3.62, -2.95, -0.26, 7.98, 12.99, 17.93, 22.05, 22.91, 17.72, 10.72, 4.59, -3.54, -4.51, -3.76, -0.9, 7.65, 12.52, 17.55, 21.46, 21.82, 16.87, 10.03, -4.37, -3.8, -2.43, 1.32, 7.97, 13.45, 17.31, 23.06, 24.58, 18.79, 11.64, 4.15, -2.61, -4.51, -3.5, -1.07, 5.93, 11.19, 16.42, 20.73, 21.47, 16.95, 10.4, 4.08, -4.18, -3.85, -3.34, -0.06, 7.35, 12.56, 17.6, 21.7, 22.6, 17.38, 10.52, 4.67, -3.01, -4.5, -3.36, -0.62, 7.45, 12.25, 16.7, 20.9, 21.44, 16.69, 9.67, 4.03, -4.11, -4.43, -3.6, 0.19, 8.24, 13.13, 16.98, 21.52, 22.15, 17.44, 10.65, 3.95, -3.38, -3.72, 0.21, 17.69, 21.85, 22.6, 17.52, 10.5, 4.51, -3.06, -3.88, -3.6, -0.46, 7.2, 12.18, 17.09, 21.26, 22.08, 17.27, 9.68, 4.32, -3.91, -4.71, -4.49, -0.97, 7.74, 12.51, 16.7, 20.74, 21.04, 16.56, 9.54, 3.73, -5.06, -4.96, -4.08, -1.07, 7.4, 11.91, 16.51, 20.23, 20.7, 15.96, 9.31, 3.17, -5.0, -5.32, -4.29, -1.12, 7.21, 11.69, 16.07, 20.24, 20.78, 15.95, 8.92, 3.06, -5.1, -3.9, -3.0, -0.03, 7.45, 12.6, 17.29, 21.08, 22.53, 17.12, 10.34, 4.62, -3.27, -3.69, -2.54, -0.11, 7.01, 11.74, 16.83, 20.73, 22.43, 17.06, 10.48, 4.83, -3.01, -3.17, -2.59, 0.13, 7.65, 12.69, 17.54, 21.83, 22.74, 17.65, 10.74, 4.91, -3.03, -4.19, -3.46, -0.72, 7.76, 12.37, 17.35, 21.39, 21.36, 16.81, 10.17, 4.17, -4.2, -4.61, -2.56, 0.69, 8.82, 13.8, 17.25, 22.14, 22.44, 17.71, 10.55, 3.85, -2.86, -4.88, -2.3, 0.86, 8.79, 13.88, 17.18, 21.58, 22.36, 17.91, 10.75, 3.73, -2.63, -4.29, -2.27, 1.1, 9.14, 13.98, 17.5, 22.25, 22.42, 17.81, 11.13, 4.31, -2.77, -7.4, -7.3, -4.94, 5.67, 10.85, 14.65, 18.7, 19.51, 14.89, 7.75, 1.64, -7.61, -6.92, -6.24, -3.76, 6.25, 11.38, 15.56, 19.44, 19.93, 14.95, 8.0, 2.53, -6.54, -5.58, -4.22, -1.25, 7.36, 12.24, 16.77, 20.86, 21.3, 16.13, 9.22, 3.57, -4.98, -6.57, -5.16, -1.96, 7.12, 11.54, 16.13, 20.02, 20.7, 15.38, 8.51, 3.11, -5.71, -4.44, 5.97, 10.97, 15.15, 18.89, 19.37, 14.53, 7.7, -7.11, -7.81, -7.04, -5.0, 6.18, 11.58, 15.6, 18.97, 19.65, 14.37, 7.18, 1.37, -7.35, -5.83, -4.71, -1.89, 7.56, 12.53, 16.43, 20.69, 21.48, 16.51, 9.03, 2.98, -5.45, -7.37, -7.43, -4.84, 5.94, 10.76, 15.05, 19.23, 19.85, 15.17, 7.87, 1.62, -7.26, -6.3, -5.37, -2.71, 6.74, 11.54, 16.1, 19.83, 20.26, 15.14, 8.32, 2.77, -6.22, -5.83, -4.8, -2.15, 7.63, 12.51, 16.59, 21.0, 21.48, 16.44, 9.1, 3.08, -5.41, -6.23, -6.28, -2.33, 6.92, 11.26, 15.52, 19.87, 20.57, 15.62, 8.12, 2.67, -6.08, -5.97, -6.0, -2.04, 7.16, 11.53, 15.8, 20.15, 20.84, 15.89, 8.37, 2.94, -5.76, -8.09, -7.72, -5.72, 4.96, 10.43, 14.32, 18.34, 19.11, 14.25, 7.34, 1.61, -7.85, -7.89, -7.6, -4.89, 5.64, 9.77, 13.69, 18.06, 18.95, 14.24, 7.22, 1.25, -7.28, -6.37, -5.42, -2.54, 7.13, 11.78, 16.27, 20.03, 20.98, 16.04, 8.73, 3.12, -5.87, -7.81, -7.12, -5.11, 5.27, 10.37, 14.4, 18.29, 18.95, 14.16, 7.33, 0.94, -7.75, -6.45, -3.45, 6.9, 11.5, 15.65, 19.85, 20.1, 15.7, 8.64, 2.9, -5.75, -6.1, -3.09, 7.23, 11.83, 16.0, 20.16, 20.44, 16.05, 8.99, 3.25, -5.41, -4.75, -4.86, -1.02, 7.85, 12.29, 16.15, 20.48, 20.6, 16.67, 9.62, 3.11, -5.26, -7.6, -8.23, -5.6, 5.85, 14.5, 18.53, 19.17, 13.11, 6.08, 2.09, -8.22, -5.7, -5.09, -1.52, 7.28, 12.16, 16.28, 20.32, 20.83, 16.39, 9.06, 3.09, -5.3, -5.85, -4.79, -1.78, 7.74, 12.4, 16.62, 20.8, 21.14, 16.27, 8.98, 3.04, -5.41, 11.27, 15.43, 18.69, 14.54, 8.15, -7.31, -4.27, -1.8, 6.9, 11.74, 16.67, 20.64, 21.04, 15.95, 8.85, 3.62, -6.62, -5.28, -3.41, -1.3, 6.8, 10.67, 15.89, 19.81, 19.95, 15.24, 8.65, 4.24, -5.2, -6.97, -5.62, -2.81, 7.01, 11.69, 16.43, 19.44, 20.02, 15.42, 8.23, 3.28, -6.49, -5.17, -4.06, -1.39, 7.76, 12.58, 16.79, 20.94, 21.9, 16.69, 9.36, 4.03, -4.99, -5.77, -3.76, 6.24, 11.15, 15.58, 19.58, 20.31, 15.5, 8.09, 2.36, -7.11, -4.54, -3.03, -0.57, 7.82, 12.14, 17.04, 21.39, 22.91, 17.14, 4.28, -4.12, -4.54, -2.93, -0.46, 7.63, 12.7, 17.55, 21.92, 23.32, 17.67, 10.54, 4.68, -3.78, -6.7, -4.31, -1.91, 5.81, 10.92, 15.88, 20.32, 21.65, 17.15, 9.96, 4.52, -5.26, -5.24, -4.38, -1.37, 7.38, 12.21, 16.73, 20.97, 21.39, 16.46, 9.3, 3.25, -5.55, -3.58, -2.05, 0.25, 7.99, 12.98, 17.44, 22.02, 23.43, 17.88, 10.89, 5.15, -2.81, -4.71, -3.47, -0.88, 7.87, 12.69, 16.9, 21.13, 22.84, 17.28, 10.06, 4.2, -3.85, -4.64, -3.37, -0.81, 7.1, 12.25, 17.09, 21.34, 23.26, 17.15, 10.03, 4.36, -3.96, -5.96, -4.88, -2.05, 6.97, 11.84, 16.24, 20.23, 21.16, 15.71, 8.67, 3.35, -5.79, -7.08, -5.56, -3.03, 6.51, 11.31, 15.82, 19.61, 20.69, 15.23, 8.02, 3.07, -6.33, -4.46, -3.01, -0.95, 6.9, 11.25, 16.11, 20.46, 16.42, 9.68, 4.2, -3.61, -6.49, -4.85, -2.25, 6.67, 11.53, 16.06, 19.53, 20.31, 15.04, 8.18, 3.28, -6.08, -5.69, -4.5, -1.79, 6.98, 11.72, 16.37, 20.3, 21.36, 16.01, 9.11, 3.33, -5.18, -5.42, -2.47, 6.71, 11.96, 20.88, -6.99, -5.8, -2.66, 6.65, 11.6, 15.87, 20.03, 20.72, 2.3, -7.03, -4.86, -3.19, -0.62, 6.79, 11.56, 15.8, 20.49, 21.27, 16.69, 9.9, 4.43, -3.81, -7.77, -7.48, -4.68, 5.3, 10.05, 14.14, 17.42, 18.79, 13.67, 7.0, 1.8, -7.57, -5.78, -3.88, -1.9, 7.47, 11.82, 16.45, 20.5, 20.92, 15.73, 8.85, 4.02, -5.49, 16.7, 10.03, 5.24, -4.21, -6.45, -4.74, -2.14, 6.03, 10.51, 15.35, 19.27, 19.61, 15.02, 7.96, 3.1, -6.89, -4.37, -1.64, 6.68, 11.62, 16.63, 20.27, 21.01, 16.42, 9.75, 4.38, -5.92, -5.34, -3.12, -1.42, 6.08, 10.41, 14.69, 19.94, 20.71, 16.17, 9.02, 4.4, -5.12, -5.83, -4.24, -2.0, 7.34, 12.55, 16.92, 20.78, 21.45, 16.47, 8.9, 3.58, -5.57, -6.34, -4.77, -2.25, 6.88, 11.77, 16.32, 20.16, 20.79, 15.86, 8.44, 3.3, -5.8, -6.28, -3.57, -1.45, 7.29, 11.39, 16.51, 20.09, 20.98, 15.76, 8.99, 4.04, -5.9, -4.2, -2.67, -0.28, 8.28, 12.92, 17.38, 22.05, 22.86, 17.65, 10.44, 4.73, -3.53, -4.86, -3.65, -1.02, 7.68, 12.49, 17.15, 21.44, 17.85, 9.3, 4.14, -4.81, -5.42, -4.37, -1.44, 7.87, 12.49, 17.17, 21.22, 22.15, 16.73, 9.57, 3.79, -5.31, -4.89, -3.14, -1.11, 7.84, 13.12, 17.65, 22.08, 22.97, 17.68, 9.93, 4.51, -4.33, -3.77, -2.65, -0.62, 6.78, 11.41, 15.51, 21.25, 21.42, 16.91, 10.0, 4.51, -3.3, -5.75, -4.13, -1.64, 7.01, 11.45, 16.29, 20.41, 15.89, 8.54, 3.47, -5.3, -5.73, -4.35, -1.01, 7.52, 11.95, 16.64, 20.89, 21.6, 16.36, 8.99, 4.04, -5.47, -5.9, -4.97, -1.95, 7.41, 11.52, 16.17, 20.21, 20.85, 15.71, 8.65, 3.93, -5.68, -4.69, -0.22, 8.27, 13.02, 17.74, 22.08, 22.47, 17.36, 9.96, 4.47, -4.22, -4.79, -3.76, -1.14, 7.68, 12.51, 16.99, 21.26, 21.98, 16.8, 9.39, 3.89, -5.05, -7.67, -4.28, -1.74, 6.8, 10.97, 16.37, 20.07, 20.62, 15.65, 8.4, 3.19, -6.79, -6.92, -4.22, -1.7, 7.0, 11.42, 16.64, 20.72, 21.27, 16.16, 8.89, 3.77, -6.44, -7.87, -5.13, -2.37, 6.69, 11.96, 16.61, 19.95, 20.53, 14.94, 8.09, 2.75, -7.81, -6.75, -4.67, -2.56, 6.78, 11.21, 16.16, 19.64, 20.04, 15.21, 8.31, 3.25, -6.45, -7.06, -5.79, -3.01, 6.17, 11.95, 16.53, 20.25, 21.26, 15.89, 8.23, 2.83, -7.22, -5.76, -4.34, -1.54, 7.8, 12.64, 16.73, 20.67, 21.6, 16.35, 9.34, 4.28, -5.21, -9.9, -6.46, -3.57, 5.14, 10.04, 14.89, 17.8, 18.54, 13.12, 6.97, 1.24, -9.22, -10.08, -7.33, 4.73, 14.73, 18.15, 18.88, 13.88, 7.28, 1.24, -9.12, -8.34, -6.22, -3.7, 6.52, 11.14, 15.54, 19.5, 20.46, 15.39, 7.93, 2.51, -8.38, 15.98, 20.31, 20.27, 15.39, 8.26, 2.78, -7.67, -9.11, -6.76, -4.58, 6.09, 11.23, 15.67, 19.52, 20.5, 15.49, 8.32, 2.27, -8.49, -9.76, -7.43, -4.74, 5.31, 10.12, 14.77, 17.86, 18.3, 13.45, 7.09, 1.77, -8.9, -7.62, -4.49, -2.58, 6.94, 12.08, 16.23, 20.08, 20.46, 15.29, 8.36, 3.29, -6.73, -3.42, 6.63, 11.56, 15.7, 19.25, 19.86, 14.53, 7.91, 3.01, -7.7, -8.98, -5.89, -3.9, 6.49, 11.31, 15.57, 19.25, 19.87, 14.94, 7.67, 2.7, -8.4, -8.25, -5.44, -3.54, 6.15, 11.2, 15.64, 19.0, 19.87, 14.63, 7.87, 2.62, -7.57, -12.12, -9.64, -6.21, 4.28, 9.63, 14.78, 18.23, 18.88, 13.8, 7.01, 0.69, -11.2, -11.76, -10.77, -7.87, -2.29, 5.31, 12.22, 13.73, 14.74, 8.13, 2.42, -1.12, -10.31, -9.54, -7.0, -3.53, 3.35, 10.91, 17.44, 20.07, 20.62, 13.29, 7.44, 2.06, -7.54, -9.28, -7.73, -4.46, 1.27, 9.37, 15.4, 17.2, 18.0, 10.77, 5.25, 0.95, -8.15, -9.92, -8.0, -4.66, 1.56, 9.52, 15.55, 17.26, 18.26, 10.96, 5.14, 0.85, -8.36, -8.91, -6.84, -4.06, 4.94, 11.14, 17.73, 20.11, 20.73, 14.19, 7.78, 2.7, -7.75, -8.38, -6.45, -3.81, 2.04, 10.17, 17.0, 18.85, 20.34, 12.32, 6.74, 1.97, -7.08, -9.42, -6.56, -3.48, 4.29, 11.26, 17.65, 19.79, 20.63, 13.17, 7.16, 1.99, -6.29, -3.1, 3.97, 10.98, 17.63, 20.29, 20.82, 13.26, 7.42, 2.09, -7.16, -10.07, -7.38, -4.28, 3.6, 10.7, 17.09, 19.9, 20.24, 13.25, 7.31, 1.87, -8.39, -9.36, -6.68, -3.63, 3.69, 10.85, 17.45, 19.78, 20.44, 13.19, 7.27, 2.09, -8.03, -8.83, -6.93, -4.48, 4.26, 10.15, 17.18, 19.9, 20.54, 14.37, 7.82, 2.12, -7.62, -10.01, -7.11, -3.36, 2.05, 10.35, 16.61, 18.96, 19.68, 12.21, 6.23, 1.86, -7.88, -9.21, -6.76, -3.93, 4.04, 10.22, 16.83, 19.22, 19.59, 13.1, 7.23, 1.93, -8.67, -8.56, -7.03, -4.28, 1.8, 9.82, 16.16, 18.19, 19.08, 12.01, 6.07, 1.24, -7.18, -9.71, -7.36, -3.97, 4.07, 10.26, 17.22, 19.69, 20.1, 13.77, 7.02, 1.48, -8.87, -9.45, -8.01, -4.97, 0.97, 8.3, 14.8, 16.78, 17.72, 10.64, 4.99, 0.84, -7.9, -9.32, -7.59, -4.5, 1.79, 9.54, 16.04, 17.97, 19.0, 11.57, 5.93, 1.37, -7.52, -10.69, -8.19, -4.27, 1.5, 9.46, 15.84, 18.25, 19.35, 11.44, 5.87, 0.56, -8.42, -10.0, -7.7, -4.59, 1.69, 9.95, 16.12, 18.39, 19.5, 12.07, 6.53, 1.65, -7.39, -8.52, -7.28, -4.39, 1.82, 10.09, 16.4, 18.53, 19.53, 12.59, 6.56, 1.52, -7.33, -9.34, -7.51, -4.93, 1.1, 9.27, 15.77, 17.68, 18.51, 11.18, 5.51, 0.89, -7.74, -9.69, -7.11, -4.34, 4.17, 10.3, 16.83, 19.06, 19.66, 13.75, 7.27, 2.12, -8.83, -5.4, 0.96, 8.24, 14.63, 17.22, 18.22, 10.87, 4.23, -0.8, -9.82, -8.87, -5.42, 1.2, 7.78, 14.38, 17.21, 18.71, 4.78, -0.26, -10.32, -9.48, -7.0, -3.63, 1.94, 9.97, 16.49, 19.59, 19.74, 12.5, 6.65, 0.97, -7.64, -8.92, -6.66, -3.52, 4.77, 11.1, 16.86, 12.94, 6.99, 2.02, -8.37, 22.13, -9.64, -7.82, -4.38, 1.55, 9.78, 15.99, 18.44, 19.35, 11.58, 5.93, -8.01, -9.68, -6.88, -3.69, 3.48, 10.46, 16.91, 19.35, 20.13, 13.2, 6.57, -8.4, -10.57, -7.78, -4.17, 1.7, 9.43, 16.23, 18.4, 19.31, 11.29, 6.24, 0.84, -8.13, -10.15, -7.71, -4.19, 1.89, 9.47, 15.93, 18.55, 19.17, 11.65, 5.97, 1.17, -7.92, -9.11, -6.82, -3.44, 2.98, 10.49, 16.91, 19.11, 20.08, 12.35, 6.85, 1.78, -7.65, -9.44, -7.78, -4.93, 1.0, 9.09, 15.36, 17.31, 18.12, 11.14, 5.41, 1.15, -7.55, -11.43, -9.36, -6.07, -0.07, 8.24, 15.06, 16.85, 18.09, 10.26, 4.4, -0.18, -9.28, -9.07, -7.24, -4.29, 4.63, 10.35, 16.89, 18.72, 19.44, 14.27, 7.65, 2.45, -7.41, -8.02, -6.42, -3.85, 3.71, 10.57, 16.88, 18.67, 19.56, 13.49, 7.27, 2.16, -7.3, -9.3, -7.29, -4.41, 2.61, 9.89, 16.41, 18.34, 19.15, 12.74, 6.72, 1.73, -7.67, -9.94, -7.88, -4.35, 2.57, 10.96, 16.57, 18.66, 19.66, 12.0, 6.68, 1.55, -8.17, -9.17, -7.68, -5.03, 2.59, 9.72, 16.56, 18.33, 18.71, 13.05, 7.09, 1.86, -8.12, -9.83, -7.93, -5.76, 3.1, 9.14, 15.98, 18.78, 18.11, 12.83, 6.04, 0.49, -9.82, -8.55, -6.79, -3.9, 3.62, 10.55, 17.58, 19.62, 20.4, 13.23, 7.43, 2.29, -7.61, -9.25, -4.98, 3.52, 10.11, 16.21, 18.49, 19.17, 12.99, 7.0, 1.72, -7.92, -8.66, -7.07, -4.06, 3.23, 10.08, 16.63, 18.43, 19.21, 13.29, 6.88, 2.22, -7.76, -9.59, -8.61, -5.21, 1.57, 9.09, 15.66, 17.12, 18.01, 12.71, 6.08, 1.33, -8.45, -8.52, -7.22, -4.08, 3.89, 10.47, 17.68, 19.89, 20.52, 13.29, 7.39, 2.33, -7.81, -9.23, -7.17, -4.4, 2.99, 9.99, 16.76, 18.83, 19.13, 13.46, 7.15, 1.86, -7.93, -9.83, -8.51, -5.1, 2.36, 9.13, 16.03, 17.62, 18.38, 13.51, 6.51, 1.37, -7.78, -9.29, -8.31, -6.19, 1.8, 8.79, 15.47, 17.38, 17.63, 12.8, 6.13, 1.12, -8.08, -9.16, -7.23, -4.4, 4.82, 10.72, 17.51, 19.57, 20.19, 13.72, 7.86, 2.86, -7.35, -9.66, -7.14, -4.09, 4.23, 10.58, 17.24, 19.42, 20.17, 12.84, 7.54, 1.63, -8.1, -9.67, 16.96, 16.74, 11.53, 5.09, -9.38, -9.48, -7.94, -5.17, 1.57, 9.17, 16.05, 18.11, 18.61, 12.43, 6.15, 1.24, -8.33, -7.75, -6.71, -3.6, 4.67, 10.65, 17.08, 19.8, 19.8, 13.79, 7.83, 2.69, -7.21, -8.93, -6.55, -3.78, 5.64, 10.85, 17.5, 20.39, 13.78, 7.51, 1.74, -7.2, -9.2, -6.91, -4.85, 4.94, 10.91, 17.55, 20.17, 20.53, 14.3, 7.72, 2.51, -7.76, -8.1, -6.52, -3.74, 5.94, 10.97, 17.68, 20.51, 21.06, 14.22, 8.21, 2.96, -7.13, -9.31, -7.92, -5.35, 1.9, 8.95, 15.71, 17.34, 17.98, 12.31, 6.12, 1.2, -8.46, -8.34, -6.83, -4.25, 3.23, 9.92, 17.02, 19.13, 19.7, 13.19, 7.22, 2.07, -8.31, -8.12, -5.71, 14.81, 16.8, 17.97, 12.45, 5.8, 1.35, -6.94, -9.74, -8.07, -4.89, 2.0, 9.15, 16.14, 18.0, 18.62, 12.76, 6.39, 1.44, -8.37, -9.17, -8.26, -5.74, 1.73, 8.91, 15.7, 16.75, 16.97, 12.81, 6.07, 1.56, -8.19, -9.12, -6.45, -3.64, 5.0, 11.36, 18.22, 20.34, 20.99, 7.25, 2.78, -6.38, -8.66, -7.84, -4.63, 2.37, 9.84, 16.82, 1.82, -8.84, -8.06, -5.61, -2.66, 5.6, 11.58, 18.63, 21.32, 21.8, 14.83, 8.48, 3.06, -6.89, -9.73, -5.39, 1.62, 8.65, 15.11, 16.1, 5.42, 0.57, -8.91, -8.79, -7.41, -4.57, 3.25, 9.94, 16.52, 18.56, 19.07, 13.38, 7.15, 1.8, -7.74, -8.28, -5.9, -2.98, 5.51, 11.54, 18.33, 20.79, 21.54, 14.75, 8.49, 3.04, -7.27, -8.3, -6.84, -3.78, 3.77, 10.38, 17.14, 18.85, 19.55, 13.89, 7.75, 2.58, -6.62, -8.75, -7.75, -5.76, 2.6, 9.19, 18.25, 12.74, 6.44, 1.51, -8.09, -8.54, -7.44, -5.18, 2.67, 9.14, 15.92, 17.42, 18.13, 12.98, 6.41, 1.17, -8.16, -10.05, -9.82, -6.79, 0.63, 14.13, 15.59, 17.63, 12.17, 5.91, 0.55, -8.36, -8.18, -5.96, -3.28, 5.28, 11.24, 18.11, 20.34, 20.83, 14.38, 8.05, 2.9, -7.84, -7.27, -5.66, -2.91, 5.33, 11.3, 18.18, 20.7, 21.5, 14.67, -7.08, -7.64, -5.87, -2.87, 5.09, 11.31, 18.24, 21.1, 21.66, 15.07, 8.65, 2.99, -6.5, -7.1, -5.05, -2.09, 6.14, 12.27, 18.84, 21.69, 22.07, 15.48, 9.28, 3.69, -6.12, -3.16, 3.18, 10.88, 19.82, 12.26, 6.63, 1.61, -8.02, -8.58, -6.96, -4.02, 5.48, 11.4, 18.1, 20.46, 21.05, 14.6, 8.2, 2.88, -7.49, -8.25, -6.89, -3.87, 4.92, 10.99, 18.17, 20.17, 21.19, 14.78, 8.67, 3.72, -7.12, -8.28, -6.87, -3.91, 4.91, 10.73, 17.41, 19.94, 20.19, 13.94, 7.7, 2.46, -7.41, -7.46, -6.75, 2.68, 8.48, 15.0, 16.77, 17.56, 11.59, 5.23, -0.08, -9.12, -8.58, -6.86, -3.99, 5.05, 18.51, 20.11, 21.04, 14.97, 8.37, 3.0, -6.97, -9.54, -8.22, -5.35, 1.53, 9.19, 15.64, 17.36, 18.25, 11.76, 5.69, 0.73, -8.83, -8.13, -6.52, -3.32, 5.61, 11.3, 17.67, 19.8, 20.39, 13.85, 7.95, 2.75, -7.18, -9.26, -7.96, -4.71, 2.02, 16.53, 17.79, 18.98, 12.74, 6.64, 1.96, -7.75, -9.87, -8.31, -5.64, 0.97, 9.01, 15.19, 17.21, 18.0, 11.84, 5.52, 0.39, -8.95, -9.57, -7.94, -4.84, 1.75, 9.51, 15.78, 17.71, 18.81, 11.34, 5.8, 1.02, -8.39, -9.81, -7.66, -4.69, 1.99, 9.81, 16.07, 18.14, 19.04, 11.71, 6.21, 0.83, -9.07, -9.19, -8.56, -5.24, 1.67, 9.08, 15.21, 16.74, 12.42, 5.43, 1.55, -8.13, -7.96, -5.5, -3.05, 5.44, 12.0, 18.67, 21.18, 21.86, 15.2, 8.86, 3.52, -6.72, -9.35, -7.8, -4.81, 1.94, 9.59, 15.92, 17.83, 18.7, 12.45, 6.49, 1.67, -8.29, -9.68, -7.09, -4.12, 3.49, 10.66, 17.47, 20.18, 13.16, 7.46, 2.14, -7.78, -10.03, -9.11, -6.07, 0.95, 7.94, 14.71, 16.59, 16.92, 11.47, 5.18, 0.04, -9.02, -8.8, -6.78, -3.69, 4.48, 10.37, 17.32, 19.74, 20.13, 13.24, 7.16, 2.07, -8.15, -8.75, -7.26, -3.64, 4.42, 11.04, 18.08, 20.3, 20.85, 13.99, 8.13, 2.71, -6.99, -9.0, -6.76, -3.9, 4.57, 10.85, 17.81, 20.1, 20.53, 13.83, 7.99, 2.58, -7.53, -9.0, -7.92, -5.0, 2.91, 9.37, 16.27, 18.2, 13.44, 6.44, 1.67, -7.78, -9.2, -7.43, -4.98, 0.82, 9.05, 15.57, 17.69, 18.83, 11.57, 6.0, 0.94, -7.68, -9.79, -8.85, -5.4, 1.3, 10.0, 16.1, 17.26, 17.82, 12.91, 5.86, 1.33, -7.9, -9.15, -7.85, -5.51, 2.42, 8.67, 15.51, 17.44, 17.53, 12.8, 6.0, 0.77, -8.45, -8.58, -6.16, -3.91, 5.44, 11.43, 18.1, 20.51, 21.15, 14.4, 8.2, 2.91, -7.34, 11.7, 17.85, 20.15, 20.31, 14.23, -10.26, -8.65, -5.74, 0.56, 8.31, 14.89, 16.55, 17.56, 11.12, 5.13, 0.56, -8.84, 15.28, 16.98, 17.72, 11.35, 5.51, 0.87, -8.76, -8.25, -6.64, -4.01, 5.13, 10.91, 17.59, 19.75, 20.1, 7.27, 2.35, -7.23, -9.05, -8.57, -5.36, 1.28, 8.8, 15.37, 17.7, 18.36, 11.44, 5.65, 0.24, -8.77, -9.03, -7.99, -4.82, 1.57, 8.84, 15.62, 17.07, 17.86, 12.07, 5.83, 1.06, -8.04, -9.25, -8.74, -6.15, 0.53, 14.85, 16.24, 17.22, 11.19, 4.82, 0.11, -9.59, -8.39, -7.41, -4.64, 3.12, 9.29, 16.21, 18.14, 18.64, 13.17, 6.89, 1.83, -7.48, -9.14, -8.14, -4.69, 1.94, 10.33, 18.98, 6.3, 0.79, -8.38, -8.02, -6.28, -3.13, 4.42, 10.8, 17.84, 19.61, 19.94, 14.14, 7.83, 2.98, -6.62, -9.27, -7.51, -4.95, 2.0, 8.91, 15.3, 16.97, 17.54, 12.13, 5.78, 1.5, -8.8, -9.18, -6.84, -3.35, 3.75, 10.91, 17.48, 19.81, 20.41, 13.68, 8.03, 1.25, -8.05, -8.74, -7.32, -4.41, 3.33, 9.86, 16.55, 18.89, 19.07, 12.97, 7.02, 1.75, -8.18, -9.22, -8.16, -4.61, 3.2, 9.57, 16.25, 17.64, 18.38, 12.95, 6.38, 1.85, -8.33, -8.49, -7.27, -4.22, 4.16, 10.07, 16.77, 18.48, 19.14, 13.61, 7.36, 2.17, -7.58, -8.73, -7.5, -4.36, 3.92, 9.9, 16.54, 18.63, 19.13, 13.1, 7.36, 1.98, -8.17, -9.19, -8.29, -5.52, 1.23, 8.77, 15.46, 17.75, 18.21, 11.79, 5.77, 0.65, -8.83, -8.96, -7.96, -4.41, 2.32, 9.57, 16.29, 17.75, 18.75, 12.21, 5.88, 1.16, -7.61, -8.6, -6.97, -3.99, 4.91, 10.98, 17.72, 20.71, 14.43, 7.98, 2.67, -7.15, -8.96, -6.32, -3.62, 4.17, 11.21, 17.67, 20.5, 21.33, 13.82, 8.03, 2.29, -7.23, -8.12, -7.22, -4.0, 3.08, 9.67, 16.94, 19.0, 19.8, 12.87, 7.01, 1.77, -8.12, -9.16, -8.17, -4.8, 3.49, 9.61, 16.51, 18.38, 18.94, 12.83, 7.04, 1.79, -8.19, -9.51, -8.4, -5.94, 1.4, 7.99, 16.79, 11.98, 5.22, 0.33, -9.08, -9.18, -7.54, -4.52, 2.35, 9.78, 16.42, 18.05, 19.12, 11.53, 6.61, 1.35, -8.15, -8.27, -6.08, -3.48, 5.12, 11.72, 17.92, 20.22, 20.72, 14.22, 7.92, 2.72, -7.98, -9.83, -6.82, -4.06, 10.15, 1.25, -8.79, -9.89, -10.01, -7.82, -5.21, 3.11, 8.3, 15.33, 17.96, 18.89, 11.87, 5.23, 0.24, -10.25, -11.51, -8.91, -6.32, 2.27, 7.27, 14.36, 17.17, 11.03, 4.52, -1.41, -11.64, -9.97, -7.58, -4.45, 3.57, 9.27, 15.95, 19.03, 20.17, 13.16, 6.85, 1.26, -8.55, -9.91, -7.46, -3.95, 4.42, 10.32, 16.69, 19.64, 20.71, 13.98, 7.44, 1.67, -8.45, -10.97, -7.5, -4.14, 3.45, 9.33, 16.85, 18.13, 12.45, 6.23, 2.09, -8.71, -10.69, -8.76, -6.2, 2.39, 8.01, 15.14, 17.0, 18.18, 10.82, 5.27, -0.12, -12.27, -9.54, -7.4, -4.18, 3.59, 9.41, 16.19, 18.82, 12.9, 1.43, -9.28, -10.18, -7.94, -5.14, 3.43, 9.35, 15.92, 18.5, 19.55, 12.45, 6.22, 0.65, -9.91, -9.59, -7.85, -4.1, 3.04, 9.35, 15.95, 18.8, 19.09, 12.38, 6.2, 1.11, -9.62, -9.35, -6.4, -3.63, 4.18, 10.39, 16.83, 19.45, 20.15, 13.78, 7.24, 1.68, -8.37, -10.09, -8.42, -5.51, 1.67, 7.96, 15.25, 17.41, 18.17, 11.43, 4.9, 0.18, -11.42, -10.34, -8.61, -5.62, 1.26, 8.57, 14.8, 17.71, 18.52, 12.04, 5.83, -0.1, -10.2, -11.7, -9.55, -5.87, 1.5, 8.02, 14.8, 16.9, 17.67, 10.94, 4.56, -0.37, -12.09, -9.89, -7.46, -5.19, 2.19, 8.57, 15.58, -10.73, -7.87, -5.47, 3.12, 8.54, 15.25, 17.86, 18.58, 11.79, 5.41, 0.06, -10.44, -10.46, -8.26, -5.08, 2.92, 8.33, 15.15, 17.97, 18.96, 11.73, 5.11, -9.68, -6.71, -3.81, 4.94, 10.64, 17.2, 20.09, 20.68, 14.03, 7.26, 2.03, -8.31, -9.38, -6.82, -3.4, 4.6, 10.58, 16.84, 19.6, 20.07, 13.63, 7.18, 2.17, -7.83, -9.56, -7.11, -4.39, 3.37, 8.89, 15.91, 18.22, 19.28, 12.2, 5.69, 1.04, -10.17, -10.45, -8.3, -5.58, -10.43, -7.64, -5.03, 3.14, 8.51, 14.8, 17.62, 18.68, 12.05, 5.74, 0.32, -10.02, -8.88, -6.25, -3.19, 4.64, 10.38, 16.74, 19.77, 20.44, 13.97, 7.48, 2.25, -7.56, -10.26, -8.39, -5.83, 1.06, 7.97, 14.4, 16.94, 17.99, 10.73, 5.05, -0.85, -10.71, -10.39, -8.92, -5.99, 1.58, 7.1, 14.55, 10.12, 4.38, 0.16, -9.79, -8.14, -5.0, 2.02, 8.37, 15.06, 17.76, 18.21, 11.63, 4.92, -0.11, -10.82, -9.82, -8.44, -4.93, 1.66, 9.26, 16.0, 18.6, 19.2, 12.65, 5.46, 0.33, -9.54, -10.18, -7.86, -4.0, 2.78, 10.04, 16.08, 18.66, 19.7, 12.87, 6.1, 0.89, -9.06, -9.74, -6.9, -4.14, 4.82, 10.12, 16.0, 18.93, 19.77, 13.12, 6.44, 1.31, -9.39, -8.77, 7.59, 14.54, 16.7, 17.89, 10.67, 4.68, 1.21, -10.44, -9.19, -6.46, -3.54, 5.24, 10.53, 17.38, 20.06, 20.72, 13.95, 7.71, 2.24, -8.14, -9.86, -7.37, -4.37, 4.44, 9.75, 16.12, 18.97, 20.07, 13.07, 6.63, 1.44, -9.54, -11.25, -8.61, -5.34, 3.1, 8.51, 14.96, 17.34, 18.53, 11.8, 5.3, 0.21, -10.48, -9.29, -8.41, -5.61, -2.41, 4.73, 12.01, 14.64, 15.25, 8.62, 3.21, 0.65, -6.77, -10.14, -7.81, -3.86, 1.41, 8.24, 14.52, 16.89, 17.92, 5.59, 1.18, -7.09, -5.4, -5.14, -3.71, -4.76, 2.79, 7.15, 10.96, 12.11, 7.12, 0.82, 0.84, -2.1, -4.8, -4.54, -3.15, -4.25, 3.4, 7.75, 11.54, 12.7, 7.7, 1.4, 1.45, -1.55, -8.57, -7.82, -4.11, -0.78, 6.1, 14.2, 15.93, 17.35, 9.31, 3.61, 0.76, -6.91, -4.04, 14.35, 13.89, 7.12, -4.95, -8.97, -8.07, -4.14, -1.13, 5.53, 12.94, 15.37, 15.92, 9.1, 3.32, 0.7, -6.76, -8.51, -8.21, -4.71, -0.86, 6.09, 13.76, 16.01, 17.04, 9.87, 4.34, 0.64, -6.89, -11.4, -10.73, -8.02, -2.67, 4.79, 11.75, 13.61, 14.65, 7.98, 1.74, -2.06, -10.89, -13.26, -13.47, -9.25, -8.41, 1.88, 9.1, 12.86, 12.25, 4.4, -1.63, -3.73, -13.15, -7.15, -3.13, -4.56, 4.19, 9.16, 12.35, 13.87, 8.01, 2.84, 1.34, -2.97, -8.42, -8.22, -5.04, -0.22, 7.05, 13.83, 15.92, 16.62, 9.67, 4.62, 0.96, -7.34, -10.73, -9.64, -6.26, -1.27, 6.05, 13.26, 15.1, 15.82, 8.54, 3.15, -0.77, -8.91, -5.95, -5.32, -3.74, -3.75, 3.41, 8.51, 12.48, 13.88, 8.26, 2.68, 1.49, -2.19, -8.89, 10.95, 14.05, 7.5, 2.04, 0.83, -4.91, -11.5, -10.44, -5.99, -1.75, 5.84, 17.47, 9.82, 3.67, 0.24, -9.69, -13.76, -12.46, -10.84, -10.93, 0.34, 8.99, 12.64, 12.19, 4.56, -2.5, -2.94, -11.54, -8.52, -7.72, -3.87, 1.33, 7.93, 14.45, 16.5, 16.93, 10.29, 5.06, 1.36, -6.47, 16.65, 17.47, 10.16, 4.75, 0.1, -7.47, -8.95, -3.86, 12.46, 15.47, 16.11, 9.08, 2.89, -6.71, -4.86, -4.24, 4.36, 10.56, 12.44, 13.86, 7.35, 2.73, 1.83, -3.74, -9.74, -9.67, -5.08, -0.07, 7.04, 14.3, 16.56, 17.56, 9.85, 4.69, 0.42, -9.89, -5.81, -2.79, -3.74, 3.68, 9.45, 13.77, 14.18, 8.23, -7.34, -0.09, 7.68, 14.53, 16.3, 17.0, 10.52, 4.44, 0.24, -8.73, -8.08, -7.22, -4.44, -0.1, 6.88, 14.2, 16.57, 17.42, 10.09, 4.95, 0.54, -6.53, -9.7, -7.97, -4.58, 0.83, 8.34, 14.64, 16.89, 17.97, 10.51, 5.27, 1.42, -7.16, -8.82, -7.9, -5.28, -3.18, 5.18, 11.49, 14.53, 14.59, 7.44, 2.45, 0.49, -6.55, -9.72, -8.82, -6.22, -4.02, 4.38, 10.78, 13.48, 13.68, 6.48, 1.48, -0.52, -7.52, -9.49, -8.59, -5.99, -3.89, 4.51, 10.81, 13.91, 13.91, 6.71, 1.71, -0.19, -7.29, -8.04, -7.74, -4.48, 0.34, 6.96, 13.63, 16.14, 16.58, 9.84, 4.9, 1.13, -6.77, -6.59, -5.94, -3.3, -3.87, 4.29, 9.75, 13.82, 14.33, 8.11, 2.23, 1.33, -2.45, -14.29, -12.99, -11.69, -11.79, -0.54, 8.16, 11.81, 11.36, 3.71, -3.39, -3.79, -12.38, -7.14, -6.42, -3.85, 1.51, 8.62, 14.61, 16.54, 18.1, 11.21, 6.19, 1.88, -5.15, -7.08, -7.05, -4.21, -3.45, 4.38, 10.05, 13.14, 14.57, 7.7, 2.59, 1.47, -4.74, -7.77, -6.72, -4.05, 1.93, 10.05, 17.05, 19.14, 20.3, 12.98, 6.85, 1.81, -5.99, -9.88, -9.39, -5.75, -0.79, 6.64, 13.65, 15.99, 16.96, 9.63, 3.57, -1.37, -8.76, -9.33, -8.74, -5.37, -1.21, 6.09, -9.47, -9.96, -5.82, -1.15, 6.13, 14.03, 15.84, 16.01, 9.67, 3.61, 0.2, -7.96, -9.46, -8.41, -5.55, 0.95, 8.58, 15.15, 16.68, 17.64, 10.93, 5.22, 0.52, -8.51, -9.28, -8.45, -5.69, 0.94, 8.77, 15.3, 17.09, 18.14, 11.21, 5.43, 0.77, -8.35, -8.74, -9.48, -5.75, 0.44, 8.03, 15.65, 17.2, 10.6, 5.32, 1.04, -8.11, -7.9, -7.86, -3.89, 0.62, 7.4, 15.04, 16.41, 17.44, 10.62, 5.25, 1.62, -5.66, -9.21, -9.73, -5.48, -0.83, 5.9, 14.11, 15.24, 15.54, 9.26, 3.57, 0.75, -8.01, -6.06, -6.54, -3.54, -0.38, 5.95, 13.36, 15.19, 15.81, 9.28, 4.76, 1.68, -4.19, -6.05, -6.55, -3.5, -0.39, 5.95, 13.35, 15.2, 15.85, 9.3, 4.75, 1.65, -4.14, -6.91, -5.79, -3.55, 0.25, 6.83, 15.07, 16.07, 16.78, 11.15, 5.09, 2.32, -3.3, -5.94, -6.78, -4.03, -1.11, 5.73, 13.46, 15.05, 15.67, 9.44, 4.62, 2.03, -3.93, -8.08, -8.69, -4.71, -1.3, 5.85, 13.95, 15.62, 16.08, 9.4, 3.9, 1.65, -5.84, -9.84, -8.96, -4.89, -0.71, 6.24, 14.49, 15.89, 15.92, 9.55, 3.87, 1.21, -6.99, -8.68, -8.86, -6.05, 13.56, 15.54, 15.34, 3.08, 0.7, -8.08, -6.83, -6.98, -3.78, -1.37, 5.61, 14.46, 10.09, 5.07, 1.74, -3.23, 13.93, 15.74, 16.62, 10.33, 4.65, 1.98, -3.84, -6.42, -5.87, -3.7, -1.14, 5.22, 12.88, 14.98, 15.52, 10.07, 4.39, 2.32, -3.11, -7.17, -7.43, -4.54, -1.42, 6.15, 14.34, 17.26, 4.93, 1.95, -4.64, -3.19, -3.57, -2.43, 0.11, 5.58, 12.6, 15.42, 17.16, 12.9, 6.71, 4.71, 0.79, -3.49, -3.85, -2.62, -0.2, 5.44, 12.42, 15.29, 17.13, 12.56, 6.43, 4.48, 0.94, -10.09, -5.94, 16.02, 17.77, 18.34, 11.74, 5.51, -0.64, -8.56, -8.13, -4.54, 1.86, 9.35, 15.95, 17.91, 19.35, 11.58, 6.14, 0.95, -7.25, -7.76, -7.47, -4.44, 1.91, 9.0, 15.74, 17.17, 19.18, 11.36, 6.29, 1.54, -6.46, 16.27, 9.41, 4.66, 1.91, -4.78, -7.54, -7.87, 7.11, 14.65, 16.73, 16.82, 10.35, 1.34, -6.43, -7.3, -7.89, -4.68, -0.42, 5.44, 12.71, 14.9, 15.96, 9.97, 4.69, 1.44, -5.32, -7.91, -8.15, -4.71, -0.53, 6.53, 14.3, 16.22, 16.8, 10.03, 4.97, 1.59, -5.74, -3.94, -1.09, 7.29, 15.13, 16.8, 17.1, 10.33, 5.15, 2.51, -3.62, -8.14, -7.6, -4.62, 2.09, 9.17, 16.25, 18.2, 19.57, 11.89, 6.51, 1.19, -6.91, -8.69, -8.41, -5.38, -2.19, 4.52, 13.79, 14.91, 15.53, 9.02, 2.7, 0.24, -6.64, -7.31, -5.66, -3.0, 1.21, 7.49, 15.82, 16.97, 17.57, 11.43, 5.6, 3.28, -2.42, -9.82, -9.78, -5.38, -0.19, 7.21, 15.18, 16.45, 17.5, 10.3, 4.34, 0.65, -7.44, 16.14, 17.16, 11.12, 4.86, 2.14, -4.69, -9.24, -10.02, -6.45, -0.92, 5.66, 14.05, 15.3, 16.17, 8.92, 3.5, 1.13, -8.61, -7.6, -8.25, -4.65, 0.44, 6.81, 13.46, 15.11, 15.84, 9.56, 4.82, 1.85, -5.54, -6.28, -5.61, -3.54, -0.58, 6.4, 14.95, 15.76, 17.26, 11.57, 5.32, 2.06, -2.71, -6.37, -6.02, -4.59, -3.1, 4.01, 12.08, 14.09, 14.74, 8.63, 3.59, 2.07, -3.66, -6.39, -6.0, -4.85, -3.1, 4.05, 12.1, 14.04, 14.75, 8.64, 3.55, 2.05, -3.65, -8.09, -9.0, -4.81, -0.03, 6.7, 14.58, 16.6, 17.04, 9.93, 4.85, 1.26, -6.5, -7.45, -7.27, -5.14, 15.21, 17.23, 17.9, 11.47, 6.76, 3.11, -5.32, -5.52, -6.46, -3.8, -1.28, 5.12, 13.33, 15.03, 16.25, 10.01, 4.74, 2.39, -2.61, -9.65, -9.46, -5.01, 0.66, 8.24, 15.44, 16.41, 17.45, 10.48, 4.16, 1.39, -7.83, -8.68, -8.69, -5.59, 0.38, 7.23, 14.22, 16.15, 17.17, 9.94, 4.63, 0.76, -7.05, -9.1, -9.94, -6.95, 4.1, 13.5, 14.98, 16.15, 10.68, 3.2, 0.76, -7.66, -6.89, -7.2, -4.12, -0.95, 5.74, 13.74, 16.09, 15.7, 9.44, 4.48, 1.9, -4.87, -8.63, -8.84, -5.39, 0.3, 7.41, 14.81, 16.42, 17.53, 10.14, 4.67, 0.62, -7.46, -9.54, -9.53, -6.0, 0.73, 7.98, 15.14, 16.56, 17.88, 10.12, 4.83, 0.32, -8.48, -9.81, -8.36, -5.43, 0.75, 8.32, 14.68, 16.35, 17.22, 10.79, 5.0, 0.25, -8.39, -8.87, -9.14, -5.61, -0.67, 6.35, 14.63, 15.91, 16.48, 9.52, 3.54, 0.33, -8.04, -9.9, -10.25, -6.5, -0.47, 7.07, 14.72, 16.12, 16.93, 9.77, 4.04, 0.43, -8.72, -9.67, -8.93, -5.13, 0.56, 7.73, 15.43, 16.47, 17.98, 10.95, 5.21, 1.22, -7.54, -7.28, -6.06, -3.52, -0.16, 6.53, 14.49, 15.13, 16.04, 9.63, 3.36, 1.75, -4.43, -10.63, -9.31, -6.36, -0.21, 7.19, 13.83, 15.49, 16.27, 10.03, 3.97, -0.85, -9.88, -9.87, -9.83, -6.09, -0.92, 6.31, 14.48, 15.79, 16.4, 9.17, 3.34, 0.08, -8.47, -9.31, -9.73, -6.23, -2.06, 4.12, 13.72, 15.16, 15.5, 8.75, 2.72, -6.56, -10.01, -6.81, 0.6, 7.86, 14.08, 14.94, 16.71, 9.8, 4.32, -0.58, -9.1, -5.74, 1.39, 9.01, 15.32, 16.98, 18.18, 11.2, 5.65, 0.87, -8.48, -10.35, -9.12, -5.88, -0.56, 7.45, 14.93, 16.66, 17.08, 9.59, 3.99, -0.82, -8.83, -10.1, -9.13, -5.87, 0.42, 7.75, 14.71, 16.46, 17.55, 10.17, 4.29, -0.25, -9.12, -8.44, -7.39, -4.76, 1.94, 9.63, 16.16, 18.08, 19.34, 11.72, 6.28, 0.65, -8.04, -9.72, -9.33, -4.57, 0.15, 7.25, 14.81, 16.13, 17.12, 10.36, 4.92, 1.29, -6.59, -9.7, -9.84, -5.28, 0.23, 7.93, 15.38, 17.26, 18.34, 10.94, 4.46, 1.03, -7.56, -9.06, -9.4, -0.78, 6.43, 14.38, 15.48, 15.86, 9.13, 3.36, 0.22, -8.65, -7.76, -7.71, -4.75, 1.18, 7.18, 14.46, 16.09, 17.47, 10.18, 5.15, 1.17, -6.22, -8.4, -8.2, -5.62, -2.77, 4.21, 12.29, 13.79, 14.73, 9.0, 2.87, -11.23, -10.44, -6.22, -0.85, 6.98, 14.36, 17.01, 17.26, 9.7, 3.92, 0.04, -11.79, -9.16, -8.87, -4.47, 1.62, 8.46, 16.03, 18.16, 18.49, 11.11, 5.65, 1.75, -9.67, -10.4, -9.86, -5.53, 0.38, 7.44, 14.7, 16.75, 17.67, 9.63, 4.31, 0.23, -10.58, -13.64, -16.18, -10.76, -6.21, 2.39, 9.91, 13.67, 13.68, 6.16, 0.31, -3.38, -15.32, -9.35, -9.36, -4.61, 0.93, 7.51, 15.73, 17.78, 18.54, 10.59, 5.3, 0.69, -10.3, -9.86, -9.95, -5.16, 0.9, 7.5, 15.7, 17.8, 18.6, 10.6, 5.3, 0.7, -10.3, -11.07, -11.09, -6.9, -0.1, 7.16, 14.03, 16.99, 17.45, 9.84, 4.29, 0.47, -11.61, -12.07, -12.34, -7.88, -3.61, 4.11, 11.37, 15.06, 14.79, 6.82, 0.17, -2.5, -12.63, -10.7, -10.95, -6.83, -0.55, 7.13, 14.15, 16.89, 17.66, 10.5, 4.59, 0.67, -11.34, -12.61, -12.66, -11.17, 4.94, 12.83, 8.65, -1.23, -14.87, -10.0, -10.49, -6.01, 0.59, 7.5, 14.72, 17.39, 18.14, 10.57, 5.33, 1.25, -10.94, -9.72, -9.53, -5.38, 0.71, 7.72, 14.92, 17.57, 18.27, 10.32, 4.57, 0.27, -10.38, -9.89, -9.8, 1.1, 17.9, 4.7, 1.65, -11.42, -11.77, -7.34, -0.92, 6.41, 13.82, 16.26, 16.99, 9.51, 3.7, -0.73, -12.77, -10.58, -11.4, -7.06, 0.22, 7.32, 14.92, 17.22, 18.13, 10.1, 4.85, 0.41, -11.02, 14.84, 16.84, 17.53, 9.95, 4.74, 0.29, -10.79, -10.71, -6.05, -0.21, 5.72, 13.54, 14.96, 16.08, 8.35, 3.24, -0.72, -12.26, -10.87, -10.3, -6.41, -0.94, 6.81, 13.86, 16.3, 16.97, 9.28, 3.59, -0.47, -11.82, -9.96, -10.72, -6.66, -1.63, 5.46, 13.33, 15.04, 15.89, 8.76, 2.6, -0.96, -10.77, -12.82, -12.26, -7.66, -1.98, 6.71, 13.68, 16.56, 17.22, 9.67, 3.8, -0.01, -12.0, -11.05, -11.66, -7.34, -0.57, 6.35, 13.33, 16.19, 17.3, 9.52, 4.37, 0.22, -11.89, -11.43, -11.35, -6.88, -0.26, 6.93, 14.36, 16.52, 17.71, 9.62, 4.5, 0.04, -10.85, -10.47, -10.53, -6.63, 0.18, 7.18, 14.43, 17.02, 18.08, 9.71, 4.5, 0.27, -11.05, 6.85, 14.29, 15.91, 16.87, 8.7, 3.27, -0.45, -12.59, -10.32, -5.02, 0.28, 7.23, 14.42, 17.12, 17.72, 10.13, 5.12, 0.86, -11.29, -10.85, -10.98, -6.3, -0.44, 6.45, 13.64, 16.08, 9.03, 3.66, 0.05, -13.05, -9.76, -9.65, -5.14, 1.15, 8.05, 15.28, 17.4, 18.49, 10.67, 5.34, 1.45, -10.21, -11.72, -10.69, -7.64, -1.12, 5.35, 12.88, 15.44, 16.77, 9.13, 3.4, -1.13, -12.03, -11.59, -11.6, -8.39, -1.76, 4.48, 12.41, 14.92, 15.62, 8.26, 2.48, -2.07, -13.36, -10.76, -9.67, -5.76, 0.86, 7.56, 14.8, 17.32, 18.18, 10.75, 5.21, -0.44, -10.62, -10.55, -9.26, -4.98, 1.05, 7.88, 15.12, 17.02, 18.32, 11.22, 4.72, 0.29, -10.68, -10.82, -10.79, -7.29, -0.06, 6.45, 13.84, 15.64, 17.25, 9.29, 3.83, 0.05, -12.09, -11.52, -11.68, -9.13, -0.92, 5.89, 13.79, 16.77, 17.31, 9.75, 3.59, -1.25, -13.37, -11.11, -10.64, -6.4, 0.1, 6.93, 14.54, 16.55, 17.4, 10.11, 4.51, -0.2, -11.33, -9.24, -5.91, 0.57, 7.59, 14.08, 17.62, 10.12, 4.01, 0.3, -10.97, -11.15, -9.22, -7.59, 0.66, 6.01, 13.3, 16.4, 17.84, -10.79, -9.77, -7.59, 0.78, 7.4, 13.61, 17.08, 18.35, 11.31, 4.06, -1.1, -10.97, -10.15, -8.19, -6.24, 2.84, 7.71, 13.77, 18.7, 19.35, 13.27, 5.68, 0.46, -9.8, -12.06, -9.69, -7.83, 2.09, 6.37, 12.64, 16.39, 17.95, 10.02, 4.08, -1.87, -12.39, -11.93, -10.91, -9.36, -0.31, 5.75, 12.86, 16.25, 17.38, 9.86, 3.32, -1.5, -13.0, -11.47, -10.13, -8.35, 1.49, 18.12, 11.71, 4.61, -1.14, -11.77, -12.94, -12.71, -11.45, -1.96, 5.84, 11.47, 15.53, 16.01, 8.78, 2.0, -3.08, -13.32, -10.67, -10.19, -8.72, 1.82, 8.22, 14.24, 19.06, 11.81, 4.92, -0.56, -12.1, -11.46, -9.98, -1.02, 6.3, 12.35, 16.53, 16.92, 9.33, 2.5, -2.53, -12.88, -11.59, -10.53, -11.12, -0.07, 6.39, 12.92, 16.2, 17.15, 9.83, 3.33, -1.8, -12.8, -11.97, -13.53, -9.66, -3.54, 3.68, 11.53, 15.77, 15.46, 7.64, 1.22, -3.28, -14.54, -12.0, -15.27, -11.18, -3.98, 3.84, 10.96, 15.41, 15.35, 7.92, 1.46, -2.73, -13.64, -12.82, -15.14, -7.23, 2.57, 14.01, 13.86, -2.36, -13.01, -13.85, -16.53, -16.02, -8.45, 0.2, 5.64, -12.08, -10.17, -2.42, 5.7, 11.86, 15.84, 15.46, 8.71, 1.66, -2.4, -12.86, -12.84, -10.96, -1.37, 6.48, 12.15, 16.35, 16.48, 8.77, 2.03, -3.25, -13.22, -12.2, -1.0, 5.51, 12.59, 16.72, 16.59, 9.26, 2.26, -1.98, -12.86, -11.82, -2.58, 15.04, 15.45, 7.92, 2.07, -3.13, -15.28, -14.72, -17.52, -13.14, -11.1, -0.07, 6.97, 12.56, 12.8, 3.89, -1.7, -5.34, -16.76, 15.81, 8.11, 1.79, -3.43, -13.79, -13.44, -11.94, -10.63, -1.92, 5.81, 15.49, 16.29, 8.81, 2.06, -13.84, -12.8, -12.86, -10.88, -1.28, 6.75, 12.57, 16.69, 16.98, 9.53, 2.77, -2.52, -13.35, -12.11, -10.97, -9.45, -0.34, 6.71, 12.91, 17.03, 17.67, 9.67, 3.1, -2.39, -12.99, -17.9, -19.0, -19.5, -15.75, -4.1, 0.85, 9.6, 9.85, 3.2, -1.3, -4.6, -16.04, -17.43, -18.54, -19.07, -15.3, -3.67, 1.33, 10.04, 10.33, 3.65, -0.9, -4.18, -15.59, -13.6, -16.04, -15.49, -10.38, -0.5, 3.88, 11.08, 11.52, 4.7, 0.96, -2.75, -12.48, -16.7, -14.67, -13.47, -16.1, -1.64, 5.12, 10.24, 9.47, 1.66, -4.64, -4.54, -13.85, -16.65, -14.93, -18.64, -16.17, -5.04, 0.21, 5.06, 4.6, 0.92, -3.5, -6.92, -13.5, -17.44, -16.54, -15.86, -16.43, -0.55, 5.42, 11.28, 9.84, 3.35, -2.6, -5.74, -15.39, -16.4, -17.15, -12.54, -13.9, -0.04, 6.8, 12.45, 10.5, 2.09, -3.55, -4.69, -15.95, -16.43, -17.16, -12.54, -13.87, -0.06, 6.81, 12.41, 10.5, 2.07, -3.53, -4.7, -15.89, -8.0, -5.92, -2.83, 2.38, 9.39, 16.46, 16.91, 17.92, 12.95, 6.08, 1.87, -4.11, -4.98, -4.1, -2.32, 2.01, 7.68, 14.39, 16.02, 16.33, 12.86, 6.99, 4.31, -1.36, -8.97, -7.43, -3.17, 1.86, 9.39, 16.39, 17.3, 18.1, 11.12, 5.58, 2.1, -5.88, -8.29, -7.84, -3.7, 1.78, 8.45, 16.02, 17.06, 5.45, 1.63, -6.31, -7.24, -6.02, -3.45, 1.84, 8.03, 16.81, 17.62, 18.46, 12.36, 6.18, 2.46, -3.66, -8.97, -7.7, -3.61, 9.19, 16.65, 17.4, 18.14, 12.07, 5.78, -5.96, -6.45, -5.84, -3.41, 1.72, 7.88, 16.43, 16.76, 18.05, 11.9, 6.2, 2.97, -8.69, -8.12, -4.55, 0.72, 7.49, 14.86, 16.04, 16.86, 11.02, 3.95, 1.34, -7.02, -5.71, -4.55, -3.26, 2.21, 8.73, 17.38, 17.73, 18.78, 14.08, 7.3, 3.54, -2.11, -8.19, -6.88, -3.24, 1.44, 7.74, 16.47, 17.12, 17.88, 11.79, 5.83, 2.32, -4.8, -7.9, -2.79, 2.59, 9.92, 17.13, 17.74, 18.27, 12.56, 6.6, 2.93, -5.19, -8.91, -8.01, -4.18, -0.3, 6.45, 14.77, 15.95, 16.6, 10.6, 4.59, 1.3, -5.19, -7.5, -5.65, -3.15, 2.25, 8.75, 17.45, 17.7, 18.79, 13.0, 5.9, 1.9, -3.4, -7.74, -5.85, -3.39, 1.99, 8.35, 17.22, 17.51, 18.58, 12.78, 5.66, 1.7, -3.61, -7.53, -6.3, -3.02, 2.51, 9.49, 17.22, 17.74, 18.48, 12.89, 5.91, 2.55, -4.07, -9.28, -8.05, -4.18, 0.83, 8.01, 16.54, 17.68, 11.94, 5.58, 2.35, -5.79, -8.05, -6.23, -2.58, 2.72, 9.55, 16.94, 17.45, 18.58, 12.98, 6.13, 1.85, -4.07, -7.06, -5.46, -2.17, 3.71, 10.5, 17.52, 18.12, 19.27, 14.07, 7.36, 2.84, -3.02, -6.17, -4.71, -1.84, 3.79, 10.47, 17.54, 18.67, 19.19, 14.52, 7.71, 3.81, -2.76, -9.17, -8.03, -4.1, 0.64, 8.57, 16.01, 17.09, 17.16, 11.6, 4.87, 1.66, -6.66, -6.84, -5.15, -1.95, 3.6, 10.7, 17.54, 18.61, 19.46, 13.45, 6.66, 3.0, -3.29, 16.97, 16.87, 11.83, -5.1, -9.13, -8.44, -3.89, 1.98, 6.92, 14.63, 15.02, 14.99, 9.87, 3.64, 0.73, -7.96, -8.12, -8.14, -4.79, -0.21, 6.41, 15.76, 16.51, 17.61, 11.13, 4.24, 0.97, -5.15, -7.93, -6.62, -2.28, 3.22, 10.49, 17.02, 17.87, 19.1, 13.37, 6.93, 2.74, -4.11, -6.56, -5.2, -2.29, 2.98, 9.65, 16.67, 18.08, 18.3, 13.82, 6.98, 3.32, -7.52, -6.87, -3.12, 1.68, 9.02, 16.55, 16.39, 17.19, 11.23, 0.96, -5.05, -6.63, -4.97, -1.51, 3.8, 10.94, 17.02, 18.24, 19.43, 14.27, 7.47, 3.76, -2.77, -7.3, -5.65, -2.24, 3.1, 10.14, 17.51, 19.1, 19.23, 14.29, 7.45, 3.23, -3.06, -5.8, -5.6, -4.04, -0.86, 6.28, 14.58, 16.33, 17.4, 12.08, 6.0, 2.67, -1.8, -5.33, -4.35, -2.31, 3.32, 9.45, 17.16, 17.85, 18.65, 14.16, 6.84, 4.21, -1.55, -5.97, -4.7, -2.9, 2.21, 8.5, 16.49, 17.21, 17.85, 13.31, 6.34, 3.76, -2.34, -6.04, -4.85, -2.66, 3.28, 9.28, 14.5, 16.59, 15.84, 14.1, 4.08, -1.67, -6.94, -6.46, -3.68, 1.35, 8.69, 12.13, 6.1, 2.74, -3.6, -6.45, -4.87, -1.73, 3.79, 10.57, 17.57, 18.06, 19.18, 13.98, 7.05, 3.43, -3.14, -8.79, -7.33, -4.51, 1.35, 8.25, 16.83, 17.17, 18.08, 12.42, 5.39, 1.39, -4.7, -5.37, -4.43, -2.59, 2.83, 9.45, 17.99, 18.39, 19.15, 14.39, 7.36, 3.92, -1.59, -8.05, -6.65, -2.98, 1.88, 9.45, 16.06, 17.07, 18.43, 12.63, 6.0, 1.47, -4.6, -4.49, -3.46, -1.96, 2.94, 8.56, 15.79, 17.09, 17.31, 13.94, 7.33, 4.55, -0.94, -4.18, -3.38, -0.59, 4.47, 10.35, 15.4, 17.23, 18.62, 14.45, 8.13, 5.05, -1.26, -5.56, -3.92, -1.91, 3.1, 9.36, 14.57, 16.15, 16.98, 13.18, 7.7, 3.65, -2.46, -4.41, -3.34, -1.23, 4.27, 9.57, 14.81, 17.23, 14.08, 4.83, -1.29, -6.69, -5.24, -3.13, 1.91, 8.13, 14.21, 16.33, 16.49, 13.06, 6.47, 3.46, -2.54, -7.03, -4.89, -2.34, 3.17, 9.5, 16.29, 17.59, 18.13, 13.63, 6.84, 3.05, -2.72, -10.12, -9.68, -5.82, -1.1, 5.69, 13.85, 15.0, 15.65, -5.91, -4.06, -1.24, 3.78, 10.3, 17.07, 18.37, 18.74, 14.66, 7.43, 4.16, -2.08, -9.63, -9.46, 14.14, 14.64, 15.44, 9.0, 2.22, -0.9, -8.47, -2.61, -1.69, -0.57, 4.63, 9.96, 15.83, 17.23, 18.15, 14.68, 8.1, 5.74, 0.81, -4.58, -3.31, -1.81, 3.8, 9.22, 15.81, 17.01, 18.02, 14.2, 7.44, 4.68, 0.26, -1.22, -0.58, 0.54, 4.75, 8.24, 12.07, 14.79, 14.92, 13.49, 9.87, 7.26, 2.31, -3.2, -1.61, -0.5, 3.61, 7.91, 14.34, 16.72, 18.44, 13.93, 7.83, 6.09, 2.39, -3.2, -2.06, -1.17, 4.81, 9.47, 15.77, 17.14, 18.62, 14.81, 7.91, 4.9, 0.28, -0.53, -0.16, 0.61, 4.41, 7.48, 10.35, 12.45, 12.66, 12.46, 10.08, 7.66, 3.18, -3.76, -2.25, -0.78, 4.0, 8.45, 15.26, 18.35, 14.7, 7.95, 5.26, 1.01, -2.1, -1.39, -0.46, 2.3, 7.55, 15.74, 16.13, 18.79, 14.22, 7.79, 7.13, 2.85, -3.48, -2.78, -1.88, 0.92, 6.22, 14.42, 14.82, 17.52, 12.92, 6.42, 5.82, 1.52, -3.47, -2.49, -0.91, 4.52, 9.61, 15.89, 17.44, 18.28, 14.4, 7.92, 5.15, 0.51, -3.53, -2.33, -2.0, 4.09, 9.17, 15.56, 13.98, 6.79, 4.5, -0.19, -4.79, -2.65, -1.85, 2.74, 7.54, 15.67, 16.16, 18.28, 14.36, 6.93, 5.06, 0.53, -4.22, -2.51, -1.47, 2.79, 7.56, 15.58, 16.55, 18.27, 14.1, 7.12, 5.0, 0.92, -1.53, -1.11, -0.38, 2.21, 5.92, 11.36, 15.04, 16.76, 14.84, 9.03, 6.16, 2.49, -1.17, -0.92, 0.41, 4.81, 9.45, 14.75, 16.89, 17.63, 13.87, 9.01, 6.3, 1.49, -2.55, -1.44, -0.44, 2.51, 6.64, 12.32, 14.97, 16.55, 14.3, 8.33, 5.56, 1.86, -5.48, -3.62, -2.11, 2.47, 7.38, 15.2, 15.87, 17.09, 13.18, 6.1, 4.54, -0.5, -4.06, -2.76, -1.22, 4.16, 9.6, 16.34, 17.91, 18.57, 14.54, 7.67, 5.38, 0.51, -1.71, -1.0, 0.39, 5.27, 9.18, 15.96, 17.69, 19.61, 15.78, 9.6, 6.77, 2.07, -2.44, -1.65, -0.26, 4.7, 8.64, 15.71, 17.36, 19.14, 15.68, 9.21, 5.73, 1.29, -4.32, -3.16, -1.76, 3.35, 7.77, 15.66, 17.04, 18.26, 14.07, 7.35, 4.78, -0.37, -2.04, -1.32, -0.26, 2.34, 7.98, 15.3, 16.56, 19.26, 14.85, 8.03, 6.09, 2.85, -4.17, -2.82, -1.85, 4.3, 9.34, 15.99, 17.0, 18.02, 14.61, 7.44, 4.85, -0.22, -3.23, -2.58, -0.91, 4.73, 10.02, 16.83, 18.2, 19.34, 14.75, 8.13, 5.41, 0.42, -3.6, -3.0, -1.3, 4.3, 9.6, 16.4, 17.8, 18.9, 14.4, 7.7, 5.1, 0.0, -3.65, -2.16, -1.31, 4.66, 9.72, 16.6, 17.21, 18.73, 15.32, 8.68, 5.33, 0.05, -3.51, -2.31, -1.16, 4.73, 9.26, 16.07, 16.89, 18.98, 14.83, 8.05, 5.34, 0.06, -3.77, -2.46, -1.29, 3.52, 8.32, 15.32, 16.81, 18.26, 14.35, 7.52, 5.05, 0.57, -3.2, -2.29, -1.22, 1.96, 7.29, 15.21, 15.95, 17.89, 13.48, 7.19, 6.02, 2.36, -1.73, -1.15, 0.13, 4.51, 9.23, 13.54, 15.52, 16.83, 14.37, 8.85, 6.67, 1.62, -3.96, -2.16, -0.58, 3.69, 8.2, 15.9, 16.7, 18.22, 14.33, 7.17, 5.07, 0.76, -5.12, -3.41, -2.0, 3.46, 8.14, 15.29, 16.45, 17.54, 13.72, 6.91, 4.09, -0.79, -4.96, -3.61, -2.22, 3.19, 8.75, 15.75, 17.21, 17.98, 14.19, 7.35, 4.81, -0.48, 15.02, 17.57, 13.64, 7.02, -3.45, -2.57, -1.6, 0.96, 7.33, 6.09, 2.03, -5.28, -3.83, 3.29, 9.08, 17.19, 17.3, 18.31, 14.45, 7.15, 4.61, -0.58, -5.06, -3.76, -2.52, 2.32, 7.66, 13.99, 15.48, 15.93, 13.15, 6.27, 4.22, -0.7, -2.81, -2.05, -1.23, 6.62, 15.32, 16.15, 18.32, 13.71, 6.84, 6.21, 2.11, -2.82, -2.34, -1.36, 2.77, 7.03, 14.99, 16.31, 18.57, 14.82, 8.73, 5.86, 1.96, -1.73, -1.98, 1.62, 4.98, 14.06, 17.72, 14.68, 7.82, 5.38, -4.22, -4.01, -1.8, 3.64, 8.65, 16.02, 17.08, 18.36, 14.2, 6.96, 4.08, -0.8, -4.37, -2.56, -3.17, 1.8, 7.09, 13.29, 14.53, 17.65, 12.88, 4.84, 4.73, 1.6, -5.54, -3.81, -2.4, 2.68, 8.44, 15.75, 16.63, 17.48, 14.03, 6.57, 4.01, -1.1, -2.22, -1.33, 0.35, 6.43, 10.25, 15.51, 17.17, 18.04, 14.86, 8.12, 5.71, 1.32, 1.18, 1.07, 1.2, 3.86, 7.0, 11.54, 14.56, 16.93, 15.73, 11.52, 8.58, 5.3, -3.33, -1.84, -0.95, 4.19, 8.35, 14.81, 16.76, 17.79, 14.1, 8.11, 5.67, 1.43, -4.27, -3.17, -1.78, 4.01, 8.42, 16.0, 16.69, 18.26, 14.61, 7.83, 4.63, 0.16, -4.36, -3.44, -1.8, 4.09, 9.47, 17.6, 18.81, 14.98, 7.62, 4.87, -0.51, -2.8, -2.02, -0.46, 4.32, 8.48, 15.11, 16.97, 18.57, 14.92, 8.89, 5.94, 1.04, -4.0, -3.12, -1.13, 4.18, 9.94, 16.65, 17.86, 18.88, 14.57, 8.04, 5.27, -4.48, -3.36, -1.76, 4.3, 9.39, 16.31, 17.41, 18.42, 14.12, 7.52, 4.56, -0.51, -4.01, -2.0, -1.1, 3.71, 8.8, 16.84, 17.34, 19.0, 14.93, 7.71, 5.75, 1.2, -2.65, -0.71, 0.09, 3.17, 7.36, 13.88, 18.57, 19.34, 14.96, 7.46, 5.78, 1.47, -3.75, -2.7, -0.69, 4.14, 9.17, 16.02, 17.21, 18.77, 14.94, 8.49, 5.74, 0.45, -3.1, -2.2, -1.3, 1.8, 6.7, 14.6, 15.7, 18.6, 13.8, 7.6, 5.7, 2.0, -3.13, -2.24, -1.35, 1.75, 6.7, 14.56, 15.69, 18.52, 13.79, 7.52, 5.67, 1.96, -4.94, -3.5, -2.31, 2.95, 8.29, 16.59, 17.47, 18.87, 14.78, 8.11, 5.2, 0.2, -4.59, -3.09, -1.46, 2.99, 8.16, 15.63, 16.87, 17.79, 13.93, 6.91, 5.13, 0.3, -4.29, -2.67, -1.21, 3.14, 8.06, 15.86, 16.54, 17.81, 14.08, 6.86, 5.04, 0.31, -2.3, -1.45, -0.25, 4.12, 8.01, 12.14, 15.15, 15.2, 13.62, 9.28, 6.15, 1.67, -3.94, -2.39, -1.24, 3.97, 8.2, 15.21, 17.0, 18.54, 15.06, 8.37, 6.02, 0.9, -1.41, -0.95, 0.16, 4.36, 8.5, 12.81, 14.97, 16.01, 13.85, 8.97, 6.85, 1.62, -1.24, 5.73, 10.79, 16.95, 17.97, 18.96, 15.64, 9.22, 7.13, 2.09, -3.7, -2.64, -1.32, 4.52, 9.89, 16.69, 17.75, 18.81, 14.76, 8.17, 5.11, 0.7, -1.95, -1.23, 0.01, 4.52, 9.06, 14.12, 16.21, 17.04, 14.43, 9.14, 6.46, 1.66, 13.93, 7.0, 3.74, -0.68, -3.56, -2.72, -1.23, 2.96, 8.09, 16.32, 17.16, 18.89, 14.45, 7.75, 5.8, 1.04, -4.96, -3.99, -2.54, 1.85, 7.34, 15.97, 16.95, 18.18, 13.64, 6.78, 4.77, -0.37, -5.05, -3.71, -2.54, 2.11, 7.32, 15.92, 17.16, 18.1, 13.94, 7.22, 4.88, 0.13, -5.79, -4.92, -3.59, 1.06, 7.54, 15.86, 17.06, 17.61, 13.64, 6.66, 4.22, -0.67, 7.35, 16.07, 17.06, 18.17, 13.42, 7.2, 4.86, -0.42, -3.8, -3.25, -2.13, 2.01, 7.14, 15.21, 16.57, 18.52, 14.22, 7.4, 5.08, 1.22, -5.32, -4.83, -3.17, 1.84, 7.86, 16.26, 17.75, 18.47, 13.72, 7.14, 4.19, -0.6, -3.96, -3.37, -2.2, 1.49, 6.31, 14.79, 16.29, 18.04, 13.84, 7.11, 4.91, 0.88, 16.44, 17.82, 18.36, 14.23, 7.82, 5.26, 0.82, -4.72, -4.04, -2.35, 2.28, 8.03, 16.62, 18.12, 18.67, 14.26, 7.21, 5.03, -0.48, 13.93, 11.43, 7.23, 6.43, -4.57, -4.04, -3.07, -2.76, 4.11, 12.45, 15.34, 15.31, 9.64, 3.15, 2.13, -0.08, 0.5, 6.58, 12.75, 15.44, 16.56, 11.33, 5.14, 4.17, 2.31, -1.85, -1.88, -0.63, 0.13, 4.43, 10.95, 13.1, 15.0, 11.19, 5.76, 4.27, 2.35, -4.46, -3.78, -2.85, -2.05, 4.96, 13.16, 14.68, 16.08, 10.21, 3.37, 2.08, 0.01, -1.7, -0.61, -0.57, 0.1, 5.66, 10.42, 13.07, 14.71, 11.02, 5.8, 4.8, 2.77, -1.92, -0.85, -0.51, 0.13, 5.59, 10.29, 12.81, 14.7, 11.16, 5.89, 4.61, 2.82, -1.84, -0.75, -0.75, -0.05, 5.5, 10.3, 12.9, 14.6, 10.9, 5.7, 4.6, 2.65, 0.05, 0.64, 4.67, 8.82, 11.63, -2.14, -0.33, 0.12, 1.55, 5.64, 10.93, 13.49, 14.33, 11.33, 6.01, 5.26, 3.71, 6.02, 10.07, 14.85, 5.48, -3.21, -2.61, -1.65, -1.15, 5.57, 12.89, 15.19, 15.91, 10.62, 4.2, 3.39, 1.4, -2.31, -1.12, -0.78, 0.28, 6.47, 13.48, 15.84, 16.89, 11.58, 5.46, 4.51, 2.54, -2.52, -2.31, -2.31, -1.74, 4.42, 10.0, 13.55, 14.56, 9.61, 3.84, 3.9, 1.32, -3.08, -2.23, -1.45, -0.26, 6.82, 13.82, 16.41, 11.26, 3.68, 1.83, -3.99, -3.23, -2.37, -1.82, 5.7, 12.74, 15.21, 16.18, 10.06, 3.46, 2.66, 0.66, -4.55, -3.65, -2.9, -1.7, 5.35, 12.35, 14.95, 9.8, 2.2, 0.4, -3.99, -2.9, -2.2, -1.51, 5.13, 12.92, 15.59, 9.61, 3.72, 2.36, 0.86, -3.38, -2.87, -1.6, -0.7, 5.6, 12.95, 14.98, 15.83, 10.66, 4.15, 3.29, 1.34, -3.49, -2.99, -1.79, -0.89, 5.41, 12.71, 14.81, 15.61, 10.51, 4.01, 3.11, 1.21, -2.82, -2.07, -1.2, -0.17, 6.63, 13.66, 15.65, 16.59, 10.81, 4.73, 3.92, 1.97, -3.2, -1.9, -1.5, 0.1, 6.6, 14.42, 16.16, 17.44, 11.48, 4.32, 3.91, 1.88, -2.25, -1.22, -0.49, 1.14, 5.46, 11.82, 13.59, 15.62, 11.41, 5.73, 4.66, 3.28, 0.3, 1.95, 6.2, 12.69, 14.05, 15.97, 12.6, 7.12, 5.88, 4.57, 3.86, 6.72, 4.52, -1.26, -0.69, -0.02, 1.66, 5.9, 12.49, 14.4, 15.68, 11.86, 6.55, 5.53, 3.78, -1.62, -1.51, -1.16, -0.09, 4.54, 9.72, 12.41, 14.8, 11.32, 5.76, 4.28, 2.32, -3.23, -2.07, -0.78, 0.12, 7.03, 14.72, 16.46, 17.43, 11.46, 5.19, 4.34, 2.29, -3.7, -2.01, -0.7, 0.26, 6.11, 11.56, 14.38, 15.75, 11.05, 5.18, 4.31, 2.24, -4.4, -4.85, -3.5, -3.75, 3.2, 9.25, 13.45, 13.75, 8.54, 1.84, 1.84, -0.9, -1.09, 0.1, 0.33, 2.35, 6.43, 13.62, 14.68, 16.21, 12.43, 7.17, 5.47, 3.92, -2.5, -1.65, -1.01, 0.83, 4.94, 12.35, 13.49, 15.03, 11.14, 5.73, 4.73, 2.94, -2.21, -1.05, -0.68, 1.36, 5.56, 13.0, 13.87, 15.45, 11.33, 6.06, 4.95, 3.03, -0.61, -0.25, 0.29, 0.88, 5.61, 9.89, 12.84, 14.5, 12.04, 7.19, 5.89, 4.29, -1.65, -0.12, 0.17, 2.36, 6.49, 13.42, 15.4, 16.2, 12.18, 7.02, 5.56, 3.98, -4.42, -2.79, -2.02, -1.48, 5.87, 13.37, 15.63, 16.28, 10.08, 3.86, 2.64, 0.68, -2.48, -1.69, -1.34, -0.35, 5.64, 12.34, 14.94, 16.45, 11.08, 4.98, 5.07, 1.98, -2.22, -1.58, -0.63, 1.41, 6.9, 13.72, 15.26, 16.45, 11.33, 5.23, -5.08, -5.43, -4.19, -4.87, 1.44, 6.89, 10.75, 11.23, 7.46, 1.81, 0.51, -2.19, -4.44, -4.65, -4.21, -4.73, 1.05, 5.42, 9.63, 10.73, 6.06, 0.17, 0.29, -1.91, -7.82, -7.33, -5.82, -8.35, 2.01, 9.04, 11.63, 11.3, 6.45, 0.82, 0.13, -3.76, -15.04, -13.3, -10.5, -11.79, 1.55, 8.5, 13.1, 11.95, 3.8, -2.85, -3.45, -12.6, -15.04, -13.31, -10.51, -11.82, 1.55, 8.48, 13.11, 11.92, 3.82, -2.85, -3.45, -12.62, -11.69, -8.23, -6.39, -7.27, 4.13, 11.39, 15.23, 13.31, 6.79, 0.0, -0.43, -7.25, -10.37, -9.74, -8.29, -10.63, 1.23, 7.09, 10.25, 9.76, 5.96, 0.1, -0.29, -6.17, -2.64, -10.03, -15.39, -15.96, -11.15, -11.44, 1.32, 8.71, 12.87, 12.08, 3.97, -2.99, -3.71, -14.47, -14.7, -17.5, -13.15, -11.1, -0.04, 6.95, 12.55, 12.8, 3.95, -1.7, -5.35, -16.75, -0.7, -0.1, 3.9, 8.1, 10.9, -19.7, -16.9, -22.9, -19.5, -3.6, 3.7, 9.8, 6.9, 1.9, -5.4, -10.4, -20.29, -16.4, -17.2, -12.6, -13.9, -0.1, 6.8, 12.4, 10.5, 2.1, -3.5, -4.69, -15.9, -17.9, -19.0, -19.6, -15.7, -4.1, 0.9, 9.6, 9.9, 3.2, -1.3, -4.6, -16.1, -32.3, -28.75, -27.0, -16.84, -7.05, 0.79, 6.05, 6.0, 2.75, -2.4, -18.95, -19.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Cayman Islands&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;, &quot;Cayman Islands&quot;], &quot;legendgroup&quot;: &quot;Cayman Islands&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Cayman Islands&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.83, 24.6, 25.99, 27.44, 28.61, 29.19, 29.48, 29.36, 29.16, 27.95, 26.61, 25.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Costa Rica&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Costa Rica&quot;, &quot;Costa Rica&quot;, &quot;Costa Rica&quot;, &quot;Costa Rica&quot;, &quot;Costa Rica&quot;, &quot;Costa Rica&quot;], &quot;legendgroup&quot;: &quot;Costa Rica&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Costa Rica&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.33, 18.53, 19.83, 20.23, 21.13, 20.73], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Cuba&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;, &quot;Cuba&quot;], &quot;legendgroup&quot;: &quot;Cuba&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Cuba&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.09, 20.59, 22.49, 24.59, 25.79, 26.69, 26.69, 26.39, 26.09, 25.39, 22.59, 21.79, 21.22, 20.56, 21.62, 24.67, 26.12, 27.07, 27.57, 26.92, 26.47, 25.72, 22.81, 21.02, 20.9, 19.8, 22.5, 25.3, 26.0, 26.7, 27.6, 27.1, 26.8, 25.6, 21.8, 19.4, 20.54, 20.64, 22.84, 25.44, 25.54, 25.84, 27.04, 26.44, 26.14, 25.64, 22.84, 20.44, 22.21, 21.21, 24.01, 25.91, 26.01, 26.31, 27.71, 28.71, 27.21, 26.01, 23.11, 20.81, 24.5, 23.4, 24.9, 26.3, 26.8, 27.4, 28.4, 28.1, 27.6, 23.93, 23.73, 25.33, 26.93, 27.03, 27.33, 28.73, 28.13, 28.13, 27.33, 25.63, 24.33, 24.58, 27.08, 26.68, 27.98, 28.48, 28.38, 28.88, 27.38, 25.28, 24.78, 23.59, 22.97, 24.71, 26.15, 26.77, 27.09, 27.36, 27.29, 27.34, 26.71, 24.96, 23.45, 22.14, 21.59, 23.54, 25.59, 26.84, 27.74, 27.73, 27.44, 27.14, 26.44, 23.64, 22.84, 20.86, 20.81, 22.91, 25.36, 25.51, 26.36, 27.61, 26.66, 26.61, 26.11, 23.46, 20.81, 21.49, 20.79, 22.09, 25.49, 26.44, 27.09, 28.09, 27.74, 26.99, 26.34, 22.69, 20.59, 23.67, 24.57, 24.32, 26.27, 26.37, 26.92, 27.57, 27.12, 26.72, 24.82, 23.97, 20.93, 19.83, 22.53, 25.38, 26.08, 26.78, 27.68, 27.18, 26.83, 25.68, 21.88, 19.43, 22.06, 21.06, 23.85, 25.76, 25.85, 26.16, 27.61, 27.41, 27.06, 25.91, 22.96, 20.71, 25.0, 24.75, 26.4, 27.95, 28.09, 28.4, 29.8, 29.2, 29.2, 28.4, 27.0, 25.35, 22.36, 20.62, 22.27, 25.42, 26.02, 26.92, 28.12, 27.57, 27.12, 26.37, 22.92, 20.77], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Dominican Republic&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;, &quot;Dominican Republic&quot;], &quot;legendgroup&quot;: &quot;Dominican Republic&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Dominican Republic&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.68, 17.68, 19.88, 20.78, 21.48, 21.68, 21.28, 21.18, 21.28, 20.88, 20.08, 18.18, 23.52, 25.02, 26.72, 27.62, 27.52, 28.12, 27.72, 27.92, 27.52, 27.32, 26.32, 24.12, 22.4, 22.9, 24.8, 24.08, 24.18, 25.38, 26.58, 27.08, 27.58, 27.98, 27.68, 27.58, 27.08, 25.88, 24.58, 22.4, 23.4, 24.8, 25.3, 25.8, 27.3, 26.7, 26.6, 26.7, 26.5, 24.8, 23.8, 21.4, 21.7, 23.7, 25.4, 25.3, 26.0, 26.2, 26.7, 26.3, 25.8, 23.6, 21.9, 22.88, 23.18, 25.48, 26.78, 27.18, 27.78, 27.28, 27.18, 26.98, 26.38, 25.18, 23.78, 24.69, 25.29, 26.29, 27.05, 27.05, 26.75, 26.95, 27.35, 27.85, 27.25, 27.05, 25.55, 22.92, 22.92, 25.02, 26.12, 27.32, 28.22, 27.52, 27.02, 26.92, 26.82, 25.32, 24.52, 22.3, 22.7, 24.5, 25.9, 26.4, 27.3, 26.7, 26.5, 26.5, 26.3, 24.7, 23.3, 21.7, 22.7, 24.0, 25.2, 25.5, 26.1, 26.8, 27.2, 27.1, 26.3, 23.9, 22.5, 23.72, 24.32, 26.52, 27.92, 28.52, 29.42, 30.02, 29.72, 29.42, 28.62, 25.92, 24.22, 28.49, 28.09, 28.49, 28.29, 26.89, 25.79, 22.85, 22.85, 24.75, 25.35, 26.25, 26.75, 26.45, 26.25, 26.25, 26.05, 25.05, 23.65, 21.63, 23.03, 25.23, 25.53, 25.43, 25.63, 25.63, 25.43, 25.23, 24.83, 23.83, 22.13, 24.67, 25.07, 26.47, 27.47, 27.87, 27.87, 27.97, 27.97, 27.77, 27.47, 26.57, 25.47, 25.02, 25.02, 26.82, 24.81, 24.11, 25.71, 27.11, 27.51, 28.31, 28.51, 28.41, 28.01, 27.71, 26.51, 25.71], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=El Salvador&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;, &quot;El Salvador&quot;], &quot;legendgroup&quot;: &quot;El Salvador&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;El Salvador&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.04, 23.64, 25.34, 25.44, 25.24, 24.24, 24.54, 23.24, 23.14, 23.24, 23.34, 22.84, 15.37, 16.97, 17.77, 19.07, 18.77, 17.97, 17.97, 17.27, 17.17, 17.17, 15.47, 15.17], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Greenland&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;, &quot;Greenland&quot;], &quot;legendgroup&quot;: &quot;Greenland&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Greenland&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-3.89, -3.47, -5.84, -3.75, 1.19, 3.95, 5.84, 6.08, 2.21, -0.74, -2.96, -7.03, -23.8, -25.82, -24.92, -21.1, -5.07, 1.02, 3.25, 3.94, -4.06, -12.42, -18.36, -21.13, -11.28, -9.97, -13.68, -6.07, 0.93, 4.11, 5.7, 6.56, 2.07, -3.04, -4.04, -6.25, -4.56, -4.46, -7.5, -4.33, 1.23, 4.28, 7.27, 7.41, 2.74, -1.11, -3.34, -8.43, -17.7, -20.2, -24.8, -16.5, -3.3, 0.8, 4.2, 5.0, -0.1, -8.89, -15.7, -20.4, -11.64, -13.89, -21.37, -14.56, -0.93, 1.89, 5.41, 6.29, 1.0, -5.16, -6.65, -13.1, -9.21, -9.32, -13.75, -8.45, 1.96, 5.39, 7.47, 7.26, 1.4, -6.23, -5.36, -13.36, -7.59, -8.15, -14.58, -8.19, 0.48, 4.22, 7.22, 7.1, 2.41, -3.39, -4.91, -11.08, -7.66, -6.52, -12.9, -8.66, 1.3, 4.02, 6.89, 6.09, 2.52, -2.59, -4.1, -11.56, -4.84, -3.35, -3.76, -3.68, 1.01, 2.96, 3.61, 3.7, 1.64, -0.95, -2.75, -6.27, -2.24, -1.38, -0.35, -1.06, 3.7, 6.35, 6.98, 7.49, 3.27, 0.35, -2.37, -5.33, -3.93, -5.87, -2.08, -0.07, 6.53, 9.29, 9.24, 10.56, 3.26, 0.13, -6.73, -7.76, -2.79, -2.95, -0.99, -0.98, 4.35, 5.76, 5.35, 7.11, 2.01, 0.08, -4.38, -5.73, -28.88, -31.67, -34.1, -26.04, -8.83, -1.02, 6.84, 2.86, -9.07, -17.92, -24.97, -26.87, -21.72, -23.78, -23.29, -18.08, -3.28, 1.74, 3.82, 4.91, -1.28, -10.9, -16.34, -19.19, -23.94, -24.3, -26.55, -18.51, -5.31, 2.52, 5.25, 6.3, 0.08, -11.47, -16.84, -21.08, -19.5, -21.1, -22.97, -14.04, -3.23, 1.17, 3.68, 4.15, -0.24, -8.11, -10.9, -14.31, -14.31, -15.73, -17.66, -10.42, -1.63, 1.98, 2.69, 3.83, -0.02, -3.99, -5.57, -8.7, -9.2, -5.84, -9.1, -4.75, 0.64, 3.15, 5.43, 6.9, 2.31, -3.03, -4.27, -5.42, -2.79, -2.39, -3.56, -2.57, 2.15, 4.38, 5.33, 6.73, 2.86, -0.39, -0.41, -1.59, -8.29, -9.14, -15.11, -9.06, -0.11, 3.13, 5.83, 5.85, 2.53, -3.06, -5.38, -11.64, -2.63, -2.03, -3.23, -2.23, 2.57, 4.47, 5.47, 6.87, 3.07, -0.23, 0.07, -1.33, -15.68, -11.97, -14.49, -8.18, 5.2, 8.58, 10.51, 9.46, 1.38, -9.12, -6.97, -17.21, -19.58, -22.74, -28.17, -20.37, -5.25, 1.77, 5.81, 6.21, -0.38, -10.83, -16.43, -21.45, -19.4, -20.8, -23.1, -13.9, -3.5, 0.7, 3.1, 3.8, -0.6, -8.1, -10.7, -14.2], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guadeloupe&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;, &quot;Guadeloupe&quot;], &quot;legendgroup&quot;: &quot;Guadeloupe&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guadeloupe&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.9, 23.52, 25.17, 26.38, 27.22, 27.49, 27.02, 27.24, 27.03, 26.64, 26.14, 24.8, 23.6, 23.3, 24.9, 26.1, 26.9, 27.2, 26.7, 27.0, 26.7, 26.4, 25.9, 24.6], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guatemala&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guatemala&quot;, &quot;Guatemala&quot;, &quot;Guatemala&quot;, &quot;Guatemala&quot;, &quot;Guatemala&quot;], &quot;legendgroup&quot;: &quot;Guatemala&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guatemala&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 4, 5, 6], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [16.6, 18.1, 21.39, 20.99, 20.19], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Honduras&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;, &quot;Honduras&quot;], &quot;legendgroup&quot;: &quot;Honduras&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Honduras&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.46, 25.66, 26.96, 23.49, 24.49, 26.79, 27.79, 28.09, 26.69, 24.99, 25.79, 25.59, 25.69, 23.79, 23.49, 21.64, 21.54, 21.24, 21.24, 19.64, 18.74, 29.36, 29.46, 31.06, 31.16, 29.46, 27.66, 28.86, 27.06, 27.46, 27.06, 28.26, 29.06, 28.0, 28.4, 30.2, 30.0, 29.3, 27.8, 29.2, 27.0, 27.2, 26.6, 27.4, 27.5, 26.35, 27.05, 27.55, 28.55, 29.45, 30.25, 29.05, 29.65, 29.15, 28.55, 26.85, 26.75, 23.87, 24.57, 25.67, 27.47, 27.97, 27.77, 27.87, 27.37, 27.07, 26.97, 24.27, 23.67, 18.55, 19.25, 21.15, 22.65, 22.45, 22.45, 21.85, 21.65, 21.25, 21.05, 18.75, 17.85, 25.65, 25.72, 26.71, 28.06, 29.02, 28.58, 27.92, 28.09, 27.8, 27.68, 26.49, 26.23], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Jamaica&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;, &quot;Jamaica&quot;], &quot;legendgroup&quot;: &quot;Jamaica&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Jamaica&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.17, 25.47, 26.27, 27.77, 28.07, 28.17, 28.77, 27.97, 27.57, 27.67, 26.87, 25.57, 25.53, 25.03, 26.73, 27.33, 27.83, 27.83, 28.93, 28.33, 27.93, 27.13, 26.23, 25.43, 24.3, 24.9, 26.2, 27.0, 27.7, 28.3, 28.8, 28.3, 27.9, 27.1, 26.2, 26.0, 20.5, 19.8, 22.0, 21.5, 22.8, 23.0, 24.9, 24.3, 23.1, 22.3, 21.7, 21.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Martinique&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;, &quot;Martinique&quot;], &quot;legendgroup&quot;: &quot;Martinique&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Martinique&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.84, 25.44, 27.04, 27.74, 28.19, 27.49, 27.29, 27.54, 27.64, 27.39, 27.09, 26.14, 24.1, 24.7, 26.3, 27.0, 27.4, 26.7, 26.5, 26.8, 26.9, 26.6, 26.3, 25.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Mexico&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;, &quot;Mexico&quot;], &quot;legendgroup&quot;: &quot;Mexico&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Mexico&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 3, 4, 5, 6, 7, 8, 10, 11, 1, 2, 4, 5, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 5, 6, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 2, 4, 5, 6, 7, 9, 10, 11, 12, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 11, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 2, 3, 4, 6, 7, 8, 9, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 10, 11, 12, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 6, 7, 8, 9, 11, 12, 1, 2, 8, 9, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 2, 3, 6, 7, 8, 9, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [11.86, 13.51, 14.96, 17.67, 19.64, 21.19, 20.19, 19.65, 18.37, 17.01, 14.25, 12.04, 12.94, 13.9, 15.49, 19.14, 19.78, 21.94, 20.56, 19.91, 18.41, 17.08, 14.32, 12.28, 13.07, 12.52, 13.82, 16.01, 17.4, 19.09, 24.9, 27.08, 24.69, 21.75, 10.26, 17.67, 17.17, 18.97, 20.06, 20.81, 24.57, 23.72, 21.37, 20.12, 13.54, 11.84, 14.75, 16.13, 19.67, 15.4, 14.33, 17.5, 21.7, 26.63, 28.48, 34.23, 36.38, 31.96, 22.19, 18.07, 14.26, 14.13, 11.7, 13.27, 16.36, 18.01, 18.99, 22.22, 24.24, 22.19, 18.15, 17.41, 13.06, 16.16, 13.63, 14.53, 17.12, 17.26, 18.73, 22.43, 24.74, 23.46, 18.49, 19.21, 15.22, 14.5, 12.08, 13.36, 17.51, 19.12, 22.06, 27.74, 29.01, 26.38, 18.4, 16.13, 13.15, 13.66, 11.88, 12.65, 15.68, 16.58, 19.27, 23.42, 25.66, 24.02, 17.42, 16.73, 12.55, 8.77, 9.2, 10.23, 14.06, 17.27, 18.39, 23.57, 25.88, 23.68, 15.99, 14.82, 10.87, 14.15, 12.56, 13.5, 15.92, 16.9, 18.23, 20.5, 21.75, 20.64, 16.84, 17.5, 13.8, 21.53, 20.97, 20.34, 23.91, 24.66, 24.05, 30.82, 30.76, 30.61, 28.02, 25.42, 21.82, 18.34, 16.68, 14.98, 21.08, 22.73, 23.24, 29.05, 29.71, 29.21, 23.59, 20.75, 16.95, 19.88, 17.74, 18.85, 21.43, 22.26, 22.5, 29.69, 30.91, 29.89, 24.14, 23.29, 18.43, 17.72, 17.6, 17.75, 20.9, 22.81, 24.69, 30.04, 30.99, 29.52, 25.48, 22.46, 18.59, 18.85, 24.03, 29.35, 31.2, 32.91, 33.14, 31.5, 27.29, 23.36, 19.8, 25.63, 29.1, 31.01, 23.94, 18.05, 17.18, 16.81, 17.81, 16.9, 17.0, 25.25, 26.64, 26.12, 23.11, 22.48, 17.92, 18.08, 16.27, 16.51, 20.08, 21.88, 21.48, 28.92, 29.85, 28.86, 23.22, 21.85, 16.56, 19.78, 18.48, 19.58, 23.58, 24.18, 24.38, 30.48, 30.98, 30.38, 25.78, 23.48, 19.48, 22.9, 24.15, 24.36, 28.41, 28.24, 28.97, 28.05, 27.31, 25.96, 26.14, 22.27, 21.38, 23.43, 25.22, 25.16, 28.55, 29.32, 28.02, 27.0, 23.0, 24.46, 25.43, 26.11, 30.21, 29.78, 29.65, 28.92, 28.33, 27.54, 26.89, 23.41, 23.07, 22.23, 24.13, 25.83, 28.73, 28.83, 27.83, 26.73, 26.33, 25.53, 21.43, 22.23, 15.07, 12.18, 14.52, 15.06, 22.36, 24.89, 28.36, 28.06, 26.85, 25.0, 22.97, 15.61, 12.45, 13.31, 13.72, 13.94, 22.36, 23.72, 26.41, 26.72, 24.07, 22.08, 20.75, 14.54, 12.75, 11.23, 12.1, 20.33, 22.78, 28.25, 30.52, 29.0, 25.28, 18.83, 12.38, 10.86, 13.43, 14.81, 14.86, 21.47, 22.75, 25.92, 25.5, 24.09, 21.79, 21.43, 15.02, 13.42, 14.15, 14.44, 23.43, 25.72, 29.16, 31.52, 30.54, 27.32, 21.94, 15.76, 13.29, 12.96, 14.44, 12.79, 23.29, 26.04, 28.67, 32.06, 30.0, 27.05, 21.14, 15.24, 13.23, 14.5, 15.68, 16.36, 31.09, 33.03, 31.64, 28.62, 23.35, 15.14, 14.25, 14.77, 15.1, 23.36, 25.13, 29.48, 29.95, 28.79, 26.08, 21.81, 15.19, 13.46, 13.62, 15.16, 15.57, 23.82, 26.12, 29.72, 31.27, 30.12, 27.77, 22.22, 15.82, 13.87, 15.18, 15.1, 15.95, 24.57, 26.15, 30.0, 30.67, 29.75, 26.61, 22.61, 15.78, 14.95, 9.88, 11.76, 11.57, 19.46, 20.44, 23.29, 23.75, 21.45, 19.2, 17.35, 10.45, 8.68, 13.21, 14.67, 16.66, 21.32, 23.1, 23.63, 26.26, 27.21, 27.26, 26.31, 26.36, 25.93, 25.54, 22.68, 21.32, 22.15, 24.79, 26.58, 29.29, 29.36, 27.7, 26.17, 26.56, 25.91, 26.38, 24.26, 22.14, 28.3, 28.82, 28.65, 28.82, 27.94, 28.08, 27.24, 13.39, 15.21, 16.84, 17.45, 18.14, 17.99, 17.43, 17.74, 17.34, 16.63, 14.23, 13.79, 18.47, 20.62, 21.33, 23.7, 23.6, 23.25, 21.78, 21.68, 21.21, 20.72, 18.47, 17.97, 23.39, 24.18, 24.52, 26.95, 28.18, 27.13, 26.49, 26.38, 26.32, 26.52, 23.73, 22.32, 17.98, 19.28, 20.34, 22.07, 23.4, 23.37, 22.08, 22.77, 22.32, 22.06, 19.15, 17.83, 20.77, 21.89, 22.98, 25.12, 25.97, 25.72, 24.81, 25.33, 24.79, 24.81, 21.93, 20.62, 19.99, 21.05, 22.09, 24.13, 25.23, 25.06, 24.22, 24.4, 24.07, 23.97, 21.07, 19.7, 17.19, 17.65, 17.45, 20.3, 20.08, 20.15, 19.95, 19.66, 18.87, 19.02, 16.57, 17.03, 16.07, 17.21, 18.92, 20.71, 21.4, 21.58, 20.57, 21.26, 20.56, 20.38, 17.42, 16.01, 9.07, 8.44, 7.46, 14.02, 16.88, 21.25, 19.84, 19.56, 17.18, 14.4, 8.85, 7.13, 6.62, 13.95, 16.17, 20.76, 20.27, 20.66, 18.53, 14.4, 9.17, 5.95, 13.71, 14.1, 15.1, 24.09, 26.58, 31.41, 31.39, 31.77, 5.15, 4.43, 4.4, 9.57, 12.8, 17.22, 18.33, 18.03, 15.44, 11.67, 7.37, 4.06, 11.98, 13.26, 13.44, 20.63, 23.77, 28.4, 27.53, 28.05, 26.08, 22.85, 13.92, 11.22, 8.24, 7.01, 8.14, 15.6, 17.46, 21.92, 22.07, 22.97, 19.49, 15.14, 8.19, 5.5, 6.67, 5.5, 6.31, 10.17, 17.35, 16.42, 15.33, 11.27, 6.66, 3.82, 12.32, 12.55, 13.47, 20.77, 23.17, 27.92, 26.25, 25.96, 23.84, 20.54, 13.08, 12.65, 13.83, 21.12, 24.85, 29.54, 28.8, 29.05, 26.11, 21.82, 13.72, 10.89, 4.54, 3.72, 3.9, 9.86, 12.98, 17.66, 18.56, 18.52, 15.23, 10.92, 6.38, 12.62, 13.44, 14.5, 21.68, 25.71, 30.75, 30.2, 29.43, 24.98, 20.77, 13.75, 11.56, 6.08, 3.17, 10.92, 12.07, 12.51, 19.62, 23.27, 28.19, 26.67, 25.95, 23.42, 20.33, 12.82, 9.26, 10.13, 9.8, 10.23, 19.06, 22.77, 27.49, 29.11, 29.42, 24.45, 19.35, 10.9, 8.81, 13.48, 13.42, 14.66, 22.08, 24.53, 28.69, 28.34, 27.71, 25.78, 21.48, 14.39, 19.75, 21.81, 28.22, 31.82, 33.9, 30.66, 31.13, 30.59, 27.07, 24.84, 17.97, 8.88, 8.9, 8.49, 13.55, 16.32, 19.25, 19.13, 18.04, 14.74, 12.2, 8.19, 10.13, 9.38, 10.23, 17.49, 20.04, 23.66, 24.68, 24.74, 21.47, 17.23, 10.16, 8.3, 15.77, 17.21, 17.43, 24.11, 26.85, 30.06, 28.95, 27.97, 25.93, 24.51, 17.56, 15.44, 15.02, 16.68, 16.74, 22.65, 24.94, 27.97, 27.82, 26.68, 24.98, 23.25, 16.05, 13.99, 14.08, 15.36, 15.67, 21.56, 23.17, 26.13, 24.31, 23.83, 21.71, 20.92, 15.38, 13.47, 11.41, 10.4, 11.07, 15.96, 17.39, 19.29, 18.0, 18.57, 18.08, 16.14, 14.28, 12.11, 13.32, 13.61, 13.56, 18.31, 20.44, 23.38, 21.38, 21.46, 19.43, 18.15, 14.78, 11.77, 6.71, 6.8, 7.6, 9.39, 10.89, 16.63, 16.24, 14.95, 9.38, 8.71, 10.69, 12.79, 12.09, 16.99, 19.29, 22.79, 21.59, 22.09, 19.29, 16.59, 13.19, 10.49, 10.59, 11.15, 16.19, 18.58, 22.27, 21.03, 21.05, 18.25, 16.34, 12.25, 9.51, 14.11, 14.99, 16.04, 22.24, 25.12, 28.28, 26.91, 26.33, 24.53, 22.7, 15.98, 13.19, 12.69, 14.01, 14.45, 20.18, 23.31, 26.21, 24.97, 24.7, 22.93, 20.29, 14.73, 11.69, 17.14, 19.04, 20.64, 22.24, 24.42, 25.62, 22.73, 22.0, 21.96, 21.29, 18.97, 16.74, 17.01, 18.64, 20.34, 22.4, 24.02, 25.3, 22.44, 21.09, 21.17, 19.64, 18.7, 16.92, 14.1, 16.16, 18.39, 20.17, 23.25, 24.47, 22.0, 20.73, 19.6, 18.49, 16.02, 14.29, 13.23, 15.0, 16.24, 19.59, 20.05, 20.8, 19.18, 17.46, 16.55, 16.64, 14.01, 12.57, 12.17, 13.88, 15.18, 18.56, 19.05, 19.86, 18.34, 17.27, 15.7, 15.54, 13.29, 11.87, 15.97, 17.53, 18.86, 21.65, 23.24, 24.47, 22.52, 21.58, 21.12, 20.34, 17.75, 15.47, 25.85, 26.09, 26.56, 26.67, 28.03, 29.83, 29.15, 27.19, 27.77, 27.85, 27.56, 26.46, 26.23, 24.59, 21.69, 11.4, 13.49, 16.03, 16.76, 16.81, 18.34, 17.31, 16.22, 15.16, 14.68, 11.09, 13.19, 15.02, 16.4, 18.34, 18.58, 19.71, 18.41, 17.64, 16.57, 16.04, 13.32, 12.32, 11.33, 13.2, 15.5, 16.02, 16.14, 18.09, 16.7, 15.72, 14.86, 14.37, 12.86, 10.72, 15.0, 15.35, 16.33, 20.65, 23.43, 23.98, 18.82, 17.35, 17.75, 16.76, 14.59, 12.42, 13.9, 15.97, 18.46, 20.97, 22.36, 19.83, 19.6, 18.88, 17.2, 14.69, 13.07, 17.41, 19.06, 20.08, 22.25, 23.77, 24.66, 22.54, 22.29, 21.53, 20.85, 19.93, 17.43, 15.54, 16.96, 18.56, 20.9, 23.01, 23.94, 21.76, 21.1, 20.21, 19.31, 17.9, 15.76, 22.22, 23.04, 22.68, 24.33, 26.26, 27.05, 28.21, 27.86, 28.51, 27.01, 25.19, 22.73, 17.11, 17.95, 19.05, 21.42, 22.87, 23.09, 23.08, 22.85, 20.83, 19.6, 17.3, 16.85, 18.1, 19.21, 22.22, 24.21, 25.44, 23.18, 22.56, 21.78, 20.91, 18.89, 16.83, 13.39, 15.91, 18.16, 18.43, 19.46, 20.75, 19.02, 17.78, 17.39, 16.91, 15.0, 13.48, 14.14, 16.2, 18.65, 19.15, 19.5, 21.02, 19.61, 18.84, 18.45, 17.89, 15.55, 14.12, 15.82, 16.92, 19.04, 20.24, 22.23, 23.48, 21.13, 21.28, 17.81, 15.93, 12.87, 14.23, 18.16, 19.88, 23.95, 26.54, 21.14, 20.27, 18.62, 17.32, 15.01, 11.81, 15.07, 17.3, 19.9, 21.26, 23.26, 24.06, 16.51, 18.09, 19.66, 21.69, 23.28, 25.56, 23.03, 22.32, 21.55, 20.52, 18.56, 16.6, 17.16, 18.91, 20.82, 22.27, 24.52, 24.72, 21.97, 22.27, 21.82, 21.12, 19.12, 17.21, 17.8, 19.65, 20.27, 22.53, 23.39, 22.75, 20.52, 18.9, 19.06, 19.45, 19.02, 17.66, 20.96, 21.16, 21.08, 23.73, 25.04, 26.2, 25.85, 25.96, 24.22, 22.57, 20.22, 22.63, 22.69, 21.73, 24.46, 27.27, 29.01, 29.86, 29.77, 30.11, 28.55, 26.42, 23.38, 16.04, 17.09, 16.38, 24.74, 26.59, 28.9, 31.53, 29.31, 26.49, 22.75, 16.71, 16.07, 15.37, 16.72, 15.79, 25.2, 27.71, 30.19, 32.12, 29.86, 27.32, 22.71, 16.23, 15.47, 15.21, 16.03, 24.79, 26.95, 29.47, 31.7, 29.7, 26.75, 23.71, 16.01, 14.55, 15.79, 17.01, 17.31, 25.72, 27.68, 30.22, 32.14, 31.17, 27.45, 24.35, 18.26, 16.8, 17.52, 18.01, 25.52, 26.89, 29.74, 32.05, 30.15, 26.2, 23.0, 17.8, 16.85, 11.24, 14.94, 14.79, 23.11, 26.05, 29.3, 31.25, 29.81, 27.54, 22.8, 15.61, 13.36, 14.65, 15.93, 25.16, 26.78, 28.02, 29.63, 28.37, 27.33, 21.81, 23.1, 22.31, 26.89, 27.59, 29.0, 27.38, 26.38, 26.0, 26.31, 23.24, 22.07, 23.36, 25.36, 24.51, 28.91, 29.01, 29.11, 27.91, 26.01, 25.76, 25.86, 23.61, 23.66, 25.27, 27.27, 30.24, 30.39, 24.84, 26.51, 25.75, 28.96, 29.59, 28.79, 27.8, 26.06, 26.77, 26.88, 25.49, 24.85, 21.1, 23.67, 22.63, 27.66, 28.09, 28.17, 26.27, 24.9, 24.44, 24.58, 22.15, 22.46, 21.55, 21.85, 21.83, 25.49, 25.58, 24.91, 24.94, 25.94, 22.1, 21.12, 12.78, 13.97, 13.83, 17.14, 17.13, 17.4, 15.51, 14.95, 14.76, 15.15, 12.3, 12.32, 13.17, 14.32, 13.2, 18.46, 19.9, 21.63, 19.9, 19.32, 18.67, 18.52, 13.61, 13.99, 20.74, 23.0, 24.68, 26.46, 27.81, 28.03, 25.86, 24.06, 23.53, 23.87, 22.15, 20.08, 13.29, 14.01, 14.08, 17.21, 17.9, 18.5, 17.53, 17.16, 16.46, 16.26, 12.7, 13.35, 13.16, 15.52, 16.26, 18.18, 18.63, 19.68, 18.59, 17.67, 17.7, 16.77, 14.39, 13.6, 22.54, 24.74, 27.72, 28.73, 30.07, 29.95, 27.39, 25.8, 25.44, 24.87, 23.37, 21.58, 18.68, 19.9, 18.64, 23.93, 25.64, 27.47, 25.96, 25.14, 24.42, 24.13, 19.26, 19.33, 18.43, 21.36, 24.38, 25.6, 26.82, 26.67, 24.98, 24.01, 23.86, 23.45, 20.54, 18.61, 15.41, 16.7, 16.58, 21.05, 22.51, 24.05, 23.05, 22.3, 21.67, 21.08, 16.05, 16.51, 14.02, 16.72, 18.2, 20.16, 20.64, 21.38, 19.7, 19.39, 18.38, 18.4, 14.94, 14.27, 13.62, 15.29, 14.34, 18.13, 18.35, 18.93, 17.34, 16.44, 13.49, 14.24, 15.86, 14.71, 19.2, 20.33, 20.76, 19.75, 18.8, 18.27, 18.16, 11.33, 12.96, 15.18, 16.35, 16.37, 16.38, 15.18, 14.01, 13.71, 13.35, 11.15, 11.25, 21.3, 22.45, 24.37, 25.77, 27.67, 27.11, 26.18, 26.38, 25.89, 25.82, 22.94, 21.31, 24.48, 24.1, 24.89, 20.2, 20.62, 20.49, 22.51, 23.43, 24.89, 25.33, 24.6, 24.13, 23.98, 20.56, 19.08, 22.47, 23.56, 24.49, 27.98, 28.27, 28.76, 27.5, 27.55, 26.69, 26.59, 23.72, 21.83, 20.3, 21.77, 20.57, 27.57, 28.85, 31.37, 29.82, 28.8, 27.61, 26.71, 20.9, 20.5, 18.57, 19.86, 19.4, 25.5, 27.35, 28.62, 27.37, 26.8, 25.51, 24.22, 19.46, 18.69, 20.29, 22.21, 21.22, 27.84, 29.13, 32.09, 30.51, 29.27, 27.98, 27.11, 21.3, 21.07, 19.34, 18.27, 19.49, 24.59, 27.62, 29.95, 31.29, 30.59, 30.08, 26.41, 22.94, 18.31, 18.94, 18.39, 19.49, 24.74, 28.19, 30.19, 29.99, 30.09, 28.44, 25.49, 22.29, 16.99, 19.28, 18.34, 19.12, 24.24, 27.28, 29.52, 32.19, 31.81, 31.04, 26.12, 22.77, 18.32, 20.32, 19.84, 20.1, 25.06, 27.61, 29.53, 31.12, 30.33, 30.11, 26.35, 23.96, 18.87, 20.7, 19.44, 27.21, 23.67, 20.01, 20.25, 19.77, 19.45, 23.83, 26.99, 28.51, 29.84, 29.61, 29.69, 26.12, 23.55, 19.05, 19.34, 17.6, 19.77, 24.58, 26.13, 30.02, 29.51, 27.72, 25.25, 22.23, 15.16, 14.68, 16.41, 23.43, 27.15, 30.85, 30.73, 30.09, 28.75, 23.83, 18.19, 13.5, 18.27, 16.67, 18.85, 25.11, 28.71, 31.74, 31.34, 15.72, 15.11, 19.16, 25.11, 26.76, 28.42, 33.35, 33.02, 30.91, 24.68, 21.16, 16.33, 12.89, 12.36, 13.47, 20.49, 24.15, 28.45, 26.52, 25.98, 24.38, 20.53, 15.23, 10.94, 17.59, 15.98, 17.19, 22.31, 24.9, 26.58, 25.47, 25.6, 22.58, 20.19, 16.05, 15.02, 14.98, 16.83, 23.74, 27.27, 31.37, 30.41, 30.51, 29.07, 23.79, 17.49, 13.21, 12.46, 14.46, 20.06, 23.35, 25.65, 29.58, 28.71, 20.18, 16.56, 12.89, 18.11, 16.27, 18.05, 22.99, 26.26, 28.59, 31.03, 31.03, 30.15, 25.06, 21.66, 16.48, 15.34, 14.1, 17.09, 22.19, 25.9, 27.66, 33.4, 33.85, 30.8, 22.19, 17.6, 13.93, 14.96, 14.28, 15.77, 22.22, 26.09, 29.52, 30.03, 30.53, 28.89, 23.08, 16.74, 12.7, 18.97, 18.26, 19.91, 25.67, 29.07, 32.0, 32.39, 31.86, 30.05, 26.18, 21.93, 17.28, 21.34, 19.4, 20.71, 25.38, 27.77, 29.68, 32.24, 31.87, 31.43, 27.62, 24.35, 19.98, 23.5, 25.86, 25.43, 28.77, 29.7, 29.42, 28.43, 27.81, 27.13, 27.02, 23.95, 23.22, 22.0, 23.89, 23.61, 27.39, 28.79, 27.62, 26.76, 26.45, 26.21, 23.26, 22.42, 25.6, 26.84, 26.57, 30.11, 30.59, 30.92, 30.2, 29.62, 29.37, 29.1, 26.49, 25.12, 22.94, 24.55, 24.06, 28.15, 28.24, 28.78, 28.27, 27.27, 27.0, 26.58, 23.81, 22.78, 16.46, 18.28, 17.56, 25.26, 25.84, 28.69, 29.8, 28.0, 25.91, 23.52, 16.89, 17.4, 15.54, 17.5, 17.2, 24.5, 25.45, 28.25, 29.05, 28.25, 25.45, 22.8, 17.25, 15.9, 15.48, 17.59, 17.99, 23.87, 24.59, 26.63, 26.35, 25.09, 22.77, 22.05, 17.12, 15.87, 17.8, 19.15, 19.27, 26.94, 27.72, 29.83, 30.43, 28.8, 26.74, 25.27, 19.0, 17.88, 17.7, 18.28, 17.75, 25.64, 26.61, 29.21, 30.61, 28.88, 26.83, 24.29, 18.63, 17.33, 17.22, 18.51, 18.35, 24.61, 26.35, 28.22, 28.94, 27.67, 25.31, 23.16, 18.06, 16.93, 14.77, 16.15, 16.23, 23.77, 24.58, 27.29, 28.54, 27.44, 23.99, 21.41, 16.1, 14.64, 13.0, 14.25, 16.51, 17.4, 18.09, 19.64, 18.31, 17.44, 17.25, 16.96, 14.49, 12.53, 21.03, 22.73, 21.87, 26.19, 26.76, 28.15, 27.35, 26.42, 26.01, 25.95, 22.97, 21.64, 19.44, 20.41, 20.2, 24.73, 25.16, 25.91, 24.9, 24.42, 23.62, 23.83, 20.27, 19.54, 17.46, 18.39, 17.6, 22.35, 22.74, 23.75, 22.63, 21.84, 21.32, 21.5, 18.74, 18.04, 16.49, 18.57, 19.47, 23.18, 26.2, 28.55, 26.24, 26.92, 24.76, 22.74, 19.31, 15.72, 11.63, 12.94, 13.2, 16.26, 18.93, 21.86, 21.58, 20.84, 18.97, 17.69, 14.16, 10.83, 13.48, 15.51, 16.11, 19.65, 22.09, 24.05, 21.74, 21.55, 20.48, 18.74, 16.04, 13.69, 10.95, 13.37, 13.57, 15.89, 19.2, 21.05, 21.07, 20.92, 19.17, 17.06, 13.41, 10.07, 16.48, 18.28, 19.2, 22.24, 24.42, 26.07, 23.68, 23.6, 22.8, 21.13, 19.0, 16.75, 16.27, 18.19, 19.0, 20.74, 23.95, 25.92, 23.24, 21.44, 18.32, 16.04, 17.51, 16.97, 16.92, 25.37, 28.37, 30.42, 28.77, 26.47, 22.81, 17.17, 20.9, 20.0, 19.7, 22.9, 25.5, 26.6, 29.2, 29.0, 29.1, 26.4, 24.2, 20.3, 14.83, 16.79, 17.07, 23.28, 22.03, 21.22, 19.04, 15.66, 25.41, 25.01, 24.31, 24.81, 24.91, 27.11, 28.71, 27.61, 28.01, 27.21, 26.21, 25.11, 15.04, 17.44, 19.14, 20.24, 20.94, 21.34, 18.54, 17.34, 17.54, 17.54, 15.84, 14.84, 27.32, 28.17, 28.17, 30.27, 30.92, 30.62, 29.81, 28.17, 28.77, 28.62, 28.42, 27.67, 14.93, 12.85, 15.25, 21.36, 25.29, 27.74, 32.36, 32.98, 29.97, 21.63, 17.19, 12.7, 12.15, 12.05, 18.57, 21.91, 25.87, 28.0, 28.11, 25.11, 19.16, 14.34, 11.56, 12.34, 10.24, 13.0, 14.8, 15.3, 23.3, 24.8, 29.4, 32.5, 31.8, 26.1, 20.9, 15.0, 13.8, 11.04, 11.93, 12.84, 19.29, 21.44, 25.29, 24.09, 23.89, 21.39, 18.68, 12.43, 10.84, 12.52, 12.42, 12.22, 17.82, 20.12, 23.82, 23.02, 22.72, 20.82, 18.02, 14.82, 11.12, 15.43, 17.83, 18.53, 25.53, 27.33, 30.03, 29.83, 28.33, 26.03, 24.73, 17.83, 15.73, 10.75, 10.95, 11.45, 16.05, 16.55, 18.95, 16.15, 15.75, 13.95, 14.25, 12.65, 10.35, 15.1, 21.5, 20.5, 26.0, 28.0, 29.4, 28.9, 28.0, 27.2, 22.0, 21.6, 23.17, 23.17, 23.67, 26.77, 27.37, 27.87, 27.87, 27.37, 26.87, 26.87, 24.27, 23.37, 14.86, 17.26, 19.46, 20.36, 21.56, 22.16, 19.56, 18.96, 19.06, 18.76, 16.76, 14.96, 10.21, 12.17, 13.43, 14.66, 15.48, 16.41, 14.43, 13.88, 14.05, 13.37, 11.71, 10.43, 21.87, 23.37, 21.67, 26.47, 27.97, 29.07, 28.77, 27.47, 27.77, 27.77, 24.07, 23.17, 21.73, 22.53, 28.13, 28.63, 26.83, 26.23, 26.43, 23.13, 21.21, 19.85, 21.81, 24.5, 26.87, 28.71, 30.16, 30.04, 30.22, 26.76, 24.25, 20.54, 18.57, 21.17, 21.87, 23.27, 23.07, 22.77, 21.07, 19.77, 20.57, 20.07, 18.37, 17.77, 27.12, 27.92, 28.12, 27.92, 26.62, 26.4, 29.5, 29.41, 27.31, 26.16, 25.4, 26.12, 29.17, 28.97, 25.84, 25.44, 25.49, 26.89, 27.94, 26.64, 27.04, 26.59, 27.04, 25.94, 17.54, 17.29, 18.5, 25.2, 26.95, 29.95, 31.8, 29.4, 27.35, 24.34, 18.5, 17.35, 12.55, 14.55, 16.55, 19.4, 20.5, 22.5, 20.9, 19.3, 18.95, 16.2, 14.85, 12.7, 13.27, 19.97, 21.02, 20.27, 21.67, 21.32, 20.67, 20.82, 17.16, 19.43, 18.63, 19.03, 24.13, 24.83, 25.13, 30.53, 16.27, 15.27, 16.08, 21.18, 28.13, 28.03, 29.23, 19.63, 15.93, 17.39, 17.99, 18.29, 19.49, 22.59, 23.29, 25.69, 25.59, 25.99, 23.69, 21.19, 19.09, 12.24, 12.69, 13.29, 20.13, 23.19, 26.59, 26.29, 25.09, 23.79, 20.29, 14.69, 9.94, 14.75, 12.7, 17.35, 20.45, 23.5, 25.7, 28.55, 28.15, 26.4, 24.25, 17.09, 18.36, 17.36, 19.21, 24.26, 29.61, 33.36, 33.05, 32.05, 25.86, 22.11, 17.66, 23.9, 23.9, 23.5, 24.9, 25.65, 27.4, 27.4, 26.3, 26.55, 25.75, 25.4, 24.05, 19.3, 19.09, 27.6, 26.04, 27.69, 32.74, 29.69, 26.94, 25.94, 25.36, 28.11, 30.36, 31.16, 30.61, 30.11, 26.66, 23.81, 19.4, 15.19, 15.53, 15.59, 16.89, 15.94, 16.44, 17.05, 19.89, 20.9, 22.55, 22.45, 23.4, 22.85, 22.19, 21.75, 21.0, 18.95, 17.0, 13.65, 17.85, 20.09, 22.45, 23.55, 24.55, 18.5, 16.85, 10.93, 12.28, 14.08, 20.63, 23.73, 29.18, 28.47, 26.43, 20.68, 15.63, 11.88, 16.3, 14.5, 16.1, 21.4, 24.9, 26.4, 29.8, 30.0, 29.1, 24.7, 20.8, 15.7, 28.0, 29.5, 30.75, 29.9, 28.0, 25.95, 20.4, 20.15, 8.41, 10.46, 12.46, 13.36, 13.86, 14.31, 12.61, 11.46, 11.61, 10.91, 8.5, 15.99, 18.49, 17.94, 22.19, 22.54, 22.14, 21.04, 20.54, 19.49, 19.09, 16.79, 16.24, 19.01, 21.11, 20.26, 23.76, 23.81, 23.91, 22.91, 21.41, 21.71, 21.66, 19.36, 19.06, 17.11, 19.52, 23.57, 27.32, 29.57, 29.62, 27.82, 24.42, 21.87, 17.52, 13.85, 12.65, 14.64, 21.3, 24.4, 28.2, 28.85, 28.1, 27.35, 21.65, 17.1, 11.7, 18.3, 16.7, 17.16, 18.14, 19.67, 21.23, 22.67, 23.99, 21.42, 21.02, 20.74, 19.34, 17.67, 15.67, 14.47, 14.76, 17.37, 22.92, 27.42, 31.52, 30.52, 32.12, 28.72, 22.47, 19.92, 14.72, 7.14, 6.44, 7.04, 13.49, 17.24, 22.23, 22.69, 21.79, 19.09, 14.24, 9.39, 4.34, 15.11, 16.86, 19.06, 20.51, 22.46, 24.31, 21.31, 20.96, 20.41, 19.86, 16.86, 14.96, 16.32, 21.92, 28.87, 30.92, 22.67, 22.27, 17.77, 20.76, 21.26, 20.81, 23.56, 26.51, 27.91, 28.01, 27.11, 27.16, 25.76, 24.11, 21.06, 13.66, 15.61, 27.19, 27.34, 27.34, 26.89, 27.19, 27.19, 27.39, 18.98, 17.58, 19.48, 23.98, 25.48, 26.88, 30.48, 31.28, 30.28, 25.98, 21.78, 17.98, 13.99, 15.59, 15.79, 23.69, 25.99, 29.49, 31.79, 30.79, 27.59, 22.09, 15.79, 13.59, 18.64, 20.03, 26.79, 27.34, 24.19, 23.14, 17.94, 23.54, 25.59, 26.69, 29.79, 30.74, 30.44, 29.13, 28.84, 28.24, 28.29, 24.49, 22.64, 21.23, 22.23, 21.43, 23.67, 24.05, 24.53, 22.37, 22.09, 22.02, 19.43, 19.48, 26.18, 26.67, 26.68, 28.33, 28.58, 28.38, 27.58, 26.88, 26.08, 26.78, 25.67, 25.63, 17.43, 16.87, 16.53, 20.33, 20.68, 21.23, 27.23, 28.38, 27.73, 20.93, 16.82, 14.38, 14.93, 14.53, 20.62, 21.38, 24.42, 24.63, 23.18, 21.12, 20.03, 13.63, 13.53, 21.14, 20.48, 20.73, 24.49, 26.99, 28.39, 30.49, 30.29, 30.14, 26.34, 24.14, 19.34, 14.98, 17.33, 18.58, 22.03, 28.67, 31.48, 30.83, 27.38, 23.03, 19.48, 15.58, 22.51, 23.76, 22.41, 27.41, 28.46, 17.64, 17.34, 22.14, 23.89, 29.84, 30.94, 29.99, 22.53, 18.29, 23.89, 24.29, 26.94, 27.59, 27.64, 27.39, 26.19, 25.94, 26.24, 25.63, 22.89, 15.76, 16.47, 16.92, 20.17, 19.72, 18.92, 18.47, 18.62, 17.72, 17.92, 16.47, 10.25, 10.0, 11.05, 16.15, 18.5, 22.05, 20.9, 20.9, 18.25, 16.35, 12.29, 9.39, 21.16, 22.31, 27.06, 28.51, 26.71, 25.01, 25.66, 22.61, 21.06, 11.78, 13.83, 16.68, 16.93, 17.98, 19.68, 18.27, 17.02, 16.28, 15.83, 25.22, 24.82, 23.67, 23.97, 26.67, 28.32, 27.97, 29.47, 28.47, 27.77, 27.22, 26.11, 16.9, 23.35, 25.4, 28.65, 28.7, 21.4, 16.85, 30.81, 28.85, 29.1, 29.06, 28.71, 27.91, 23.12, 24.32, 25.67, 29.02, 29.52, 29.92, 28.87, 28.37, 27.32, 27.27, 23.57, 22.32, 8.06, 7.43, 9.77, 13.78, 14.95, 18.51, 15.26, 15.28, 11.71, 11.53, 10.5, 7.72, 12.08, 11.38, 13.78, 19.03, 27.48, 28.38, 27.48, 24.93, 20.33, 15.28, 11.58, 25.96, 27.1, 27.26, 29.41, 29.01, 27.26, 27.81, 28.11, 26.86, 26.51, 16.95, 16.65, 17.9, 23.8, 30.3, 28.85, 27.3, 24.05, 20.35, 14.9, 15.39, 16.49, 16.09, 25.09, 26.89, 29.29, 31.59, 29.79, 26.29, 23.29, 15.69, 15.49, 16.9, 14.5, 16.2, 19.9, 21.2, 21.6, 28.6, 30.1, 27.7, 21.6, 20.0, 15.1, 16.63, 17.73, 18.63, 21.13, 22.83, 23.33, 23.83, 23.53, 23.53, 21.93, 19.83, 17.43, 12.44, 14.19, 16.03, 18.14, 18.59, 18.99, 17.44, 16.34, 15.94, 15.64, 13.59, 12.28, 19.97, 19.52, 19.52, 22.92, 24.11, 21.69, 22.69, 23.14, 27.19, 27.14, 27.09, 26.24, 23.29, 24.99, 24.69, 20.99, 20.39, 28.93, 29.68, 27.68, 27.03, 26.58, 22.68, 21.58, 15.52, 17.32, 18.82, 21.42, 23.42, 23.82, 21.42, 20.72, 20.02, 19.12, 17.52, 15.52, 16.85, 18.4, 20.96, 19.81, 20.76, 26.86, 24.96, 23.31, 23.31, 21.96, 21.71, 20.65, 26.95, 30.2, 29.65, 28.9, 27.15, 25.65, 20.6, 19.7, 25.12, 27.37, 28.32, 30.96, 31.17, 29.87, 29.27, 27.12, 27.82, 27.57, 26.21, 26.22, 22.38, 22.38, 21.88, 24.63, 26.78, 28.83, 29.13, 28.13, 28.63, 27.28, 22.38, 11.35, 13.55, 14.7, 18.55, 20.79, 19.24, 17.24, 21.36, 22.96, 22.26, 19.86, 20.8, 21.6, 28.1, 29.6, 31.5, 29.9, 28.9, 28.1, 26.0, 20.4, 20.0, 17.99, 17.64, 20.44, 21.44, 22.44, 22.64, 21.44, 20.04, 20.04, 16.84, 14.19, 22.05, 24.7, 26.65, 27.8, 29.55, 28.4, 26.15, 25.3, 25.2, 24.85, 23.35, 22.25, 21.39, 23.79, 26.04, 27.29, 28.74, 27.14, 24.64, 23.74, 23.39, 23.18, 22.54, 20.54, 8.17, 7.77, 8.17, 14.67, 17.37, 21.97, 20.67, 20.57, 18.27, 14.57, 8.27, 5.87, 18.76, 19.05, 18.4, 21.69, 24.7, 26.7, 26.25, 25.0, 20.15, 15.5, 23.98, 24.98, 25.18, 28.38, 29.08, 28.98, 27.78, 27.08, 27.48, 24.58, 23.48, 22.25, 22.2, 21.9, 24.65, 27.15, 28.15, 29.4, 28.1, 28.7, 27.75, 25.7, 22.35, 18.03, 19.13, 19.88, 21.58, 23.73, 25.43, 25.73, 24.78, 24.93, 23.43, 20.73, 19.63, 14.4, 15.95, 17.7, 20.5, 21.8, 21.4, 19.4, 18.9, 18.1, 17.6, 15.5, 14.3, 20.34, 22.8, 23.05, 25.8, 25.95, 25.7, 23.9, 23.45, 22.9, 22.65, 20.5, 20.4, 17.21, 18.06, 18.81, 21.46, 23.86, 25.01, 25.11, 24.91, 24.21, 22.86, 19.61, 17.31, 13.97, 13.64, 13.24, 20.67, 21.7, 24.35, 24.6, 22.28, 20.59, 19.18, 14.78, 13.75, 26.54, 27.79, 27.58, 24.59, 23.74, 23.83, 23.79, 23.49, 21.04, 13.8, 12.2, 14.05, 15.9, 16.45, 17.6, 22.7, 24.4, 23.5, 18.49, 17.3, 12.45, 22.27, 23.52, 24.11, 28.22, 28.32, 28.37, 28.22, 27.32, 26.22, 25.97, 23.02, 22.12, 18.53, 17.03, 22.43, 23.13, 29.08, 30.19, 29.64, 24.84, 22.14, 17.13, 22.29, 25.04, 27.19, 28.33, 29.2, 28.9, 28.85, 28.05, 27.75, 26.65, 21.84, 24.5, 24.5, 24.64, 25.6, 27.85, 28.5, 27.7, 28.25, 26.25, 24.9, 13.58, 13.79, 15.04, 21.49, 20.58, 20.54, 18.99, 17.19, 14.89, 17.88, 17.07, 17.68, 21.93, 25.12, 25.98, 30.53, 31.58, 29.88, 21.93, 18.12, 20.1, 18.9, 19.5, 22.7, 24.8, 26.5, 29.0, 28.5, 29.0, 25.5, 23.3, 18.6, 19.78, 19.88, 20.78, 24.98, 27.88, 28.88, 28.48, 28.18, 27.68, 24.58, 22.38, 18.18, 16.43, 15.03, 13.23, 12.53, 16.76, 18.17, 26.51, 30.07, 31.87, 29.52, 26.62, 23.97, 17.46, 16.07, 22.22, 22.22, 21.62, 25.07, 27.12, 28.27, 28.77, 27.77, 27.97, 26.37, 25.02, 21.92, 22.28, 21.39, 27.99, 29.64, 31.09, 30.24, 29.49, 28.54, 26.69, 21.64, 20.39, 14.45, 15.45, 15.45, 17.25, 17.35, 17.65, 17.05, 17.15, 16.95, 16.35, 16.65, 15.45, 8.24, 9.94, 9.64, 17.64, 18.64, 21.54, 21.94, 19.64, 17.44, 15.54, 8.54, 6.94, 15.21, 16.76, 18.86, 21.11, 23.0, 24.86, 22.66, 22.11, 21.76, 20.11, 17.51, 15.16, 14.81, 15.66, 17.93, 22.13, 21.49, 23.3, 21.89, 20.35, 20.62, 19.37, 17.5, 20.95, 21.3, 20.4, 22.85, 24.9, 26.5, 27.3, 26.95, 27.45, 25.9, 23.85, 21.35, 17.54, 24.75, 30.2, 31.05, 29.85, 22.75, 19.4, 23.44, 28.54, 29.79, 27.04, 25.09, 14.71, 16.92, 19.42, 22.07, 20.07, 18.92, 19.62, 19.21, 17.46, 16.37, 11.42, 9.52, 11.47, 13.02, 13.97, 21.92, 23.17, 22.72, 15.47, 14.47, 11.17, 17.24, 18.2, 23.75, 29.6, 30.5, 29.65, 22.2, 17.65, 14.67, 14.22, 15.62, 25.92, 29.17, 29.07, 29.72, 27.42, 22.67, 16.42, 12.72, 17.24, 18.44, 19.07, 22.63, 24.45, 25.22, 22.97, 22.33, 21.42, 20.29, 19.18, 18.86, 10.43, 7.78, 9.93, 13.37, 22.78, 21.48, 14.37, 12.68, 8.78, 22.6, 23.25, 21.5, 23.85, 25.95, 26.45, 28.05, 28.09, 28.5, 26.95, 25.0, 23.15, 14.23, 19.03, 22.22, 27.18, 26.78, 20.03, 16.78, 12.73, 22.74, 23.19, 22.79, 25.84, 28.19, 29.44, 29.54, 29.34, 28.04, 27.19, 25.89, 22.64, 16.73, 16.73, 17.03, 23.63, 25.13, 27.73, 29.63, 28.03, 25.33, 21.83, 16.53, 16.93, 21.42, 21.42, 21.42, 23.22, 23.67, 23.92, 24.12, 22.17, 21.67, 23.67, 19.91, 22.21, 22.11, 25.96, 28.21, 28.16, 25.75, 24.71, 24.16, 24.71, 20.76, 20.06, 14.81, 25.11, 27.51, 30.76, 32.96, 31.46, 24.76, 16.8, 15.26, 22.55, 25.5, 29.0, 29.0, 29.15, 28.2, 26.95, 27.09, 26.4, 25.25, 24.65, 20.15, 17.9, 21.95, 24.93, 25.9, 28.33, 28.26, 28.17, 25.94, 23.96, 19.16, 19.14, 22.35, 22.94, 25.55, 26.8, 27.0, 25.94, 25.05, 24.1, 23.8, 21.35, 20.6, 16.77, 17.61, 24.77, 29.02, 31.47, 29.47, 25.87, 22.57, 17.72, 16.17, 21.11, 22.81, 21.81, 26.01, 26.66, 26.26, 26.51, 26.3, 25.96, 25.96, 24.01, 23.31, 17.82, 15.43, 22.13, 29.53, 31.03, 28.68, 22.48, 20.98, 16.03, 3.45, 6.01, 5.51, 12.81, 13.91, 13.81, 18.46, 18.21, 14.11, 12.81, 9.41, 6.71, 18.53, 19.89, 18.69, 23.54, 24.64, 25.84, 24.44, 23.79, 23.24, 23.24, 20.03, 18.24, 20.55, 22.3, 22.4, 25.15, 27.45, 28.25, 27.5, 27.15, 26.7, 26.2, 23.5, 20.59, 22.32, 24.97, 25.32, 28.27, 28.37, 28.52, 27.27, 26.47, 26.22, 25.47, 23.37, 21.82, 13.56, 14.56, 14.46, 22.66, 25.66, 28.96, 30.66, 29.36, 27.16, 22.26, 14.86, 12.76, 18.83, 20.53, 22.33, 24.12, 25.48, 24.93, 21.93, 20.98, 20.62, 20.98, 19.68, 18.13, 10.53, 22.14, 23.34, 25.23, 27.89, 28.64, 27.85, 27.1, 26.6, 25.79, 25.75, 22.6, 21.3, 15.11, 16.66, 19.86, 26.21, 27.61, 27.01, 20.41, 16.05, 23.61, 21.56, 25.91, 29.96, 29.71, 30.41, 28.86, 28.51, 27.86, 27.11, 23.51, 21.96, 22.36, 22.96, 21.71, 27.11, 28.01, 29.16, 27.66, 26.71, 26.61, 26.46, 23.76, 22.61], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Nicaragua&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;, &quot;Nicaragua&quot;], &quot;legendgroup&quot;: &quot;Nicaragua&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Nicaragua&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 6, 7, 8, 9, 10, 11, 12, 1], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.24, 27.74, 29.74, 31.14, 31.04, 28.44, 27.84, 26.84, 27.54, 27.24, 27.54, 27.84, 24.69, 24.89, 26.29, 26.99, 27.09, 26.89, 25.89, 26.59, 25.89, 25.69, 24.79, 23.99, 25.78, 26.08, 27.08, 26.58, 26.78, 26.08, 25.48, 26.38, 25.58, 28.52], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Panama&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;, &quot;Panama&quot;], &quot;legendgroup&quot;: &quot;Panama&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Panama&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.8, 26.7, 26.2, 26.0, 26.2, 26.2, 26.6, 28.0, 26.3, 26.9, 25.3, 25.9, 26.6, 27.1, 27.1, 26.8, 26.1, 25.9, 25.1, 25.3, 24.8, 24.8, 25.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Puerto Rico&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;, &quot;Puerto Rico&quot;], &quot;legendgroup&quot;: &quot;Puerto Rico&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Puerto Rico&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 1, 2, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.54, 23.34, 24.54, 26.34, 26.74, 27.04, 26.94, 26.64, 26.74, 26.64, 25.54, 24.04, 23.62, 22.9, 20.19, 20.32, 21.65, 23.43, 24.45, 24.45, 24.23, 24.32, 23.89, 21.18, 20.54, 21.06, 24.21, 24.86, 22.68, 22.07, 24.06, 25.32, 26.08, 26.43, 26.14, 26.15, 25.98, 25.66, 24.37, 23.27, 22.54, 22.53, 24.39, 25.25, 26.33, 26.86, 26.37, 26.42, 26.26, 23.48, 25.04, 24.75, 26.53, 27.48, 28.13, 29.48, 28.48, 27.69, 28.1, 22.8, 22.68, 24.33, 25.08, 26.32, 26.49, 26.55, 26.32, 26.2, 25.8, 24.83, 23.59, 22.93, 24.84, 26.26, 26.93, 28.27, 27.56, 27.17, 26.8, 26.73, 25.35, 24.28, 26.59, 26.29, 27.22, 28.36, 28.22, 28.77, 28.79, 28.97, 28.84, 28.82, 27.93, 26.54, 23.85, 25.47, 26.45, 26.75, 26.31, 26.01, 26.29, 25.78, 24.39, 23.2, 26.9, 25.2, 24.31, 22.65, 22.6, 23.95, 25.1, 26.17, 26.53, 26.42, 26.21, 26.07, 25.9, 24.72, 23.35, 26.19, 26.89, 27.62, 26.82, 26.75, 26.65, 26.09, 24.9, 23.68, 22.76, 21.68, 20.56, 23.69, 25.51, 25.92, 27.3, 28.43, 27.54, 27.72, 27.49, 26.63, 25.83, 24.78, 24.15, 23.79, 25.53, 26.26, 27.83, 27.57, 27.65, 27.32, 26.81, 19.62, 18.04, 17.15, 22.84, 22.54, 23.38, 25.14, 25.61, 26.02, 25.88, 25.84, 25.63, 24.52, 23.24, 23.57, 23.74, 24.73, 24.93, 26.07, 26.62, 26.55, 26.7, 26.52, 26.52, 25.32, 24.75, 25.86, 26.53, 26.45, 26.35, 26.38, 25.3, 24.09, 22.96, 22.78, 24.54, 25.49, 26.65, 27.28, 26.61, 26.58, 26.49, 26.35, 25.01, 23.43, 23.03, 22.54, 26.09, 26.89, 26.21, 26.28, 26.36, 25.92, 24.59, 24.04, 22.45, 22.41, 24.21, 25.56, 27.42, 27.39, 26.78, 26.44, 26.64, 25.01, 22.12, 24.46, 26.0, 26.3, 26.97, 26.65, 26.65, 26.28, 26.57, 25.49, 24.68, 23.43, 23.07, 24.79, 26.12, 26.88, 27.04, 26.94, 26.85, 26.99, 26.81, 25.69, 24.65, 24.81, 24.51, 25.83, 26.83, 27.79, 28.55, 27.52, 27.56, 27.59, 26.63, 25.82], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Saint Pierre and Miquelon&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;, &quot;Saint Pierre and Miquelon&quot;], &quot;legendgroup&quot;: &quot;Saint Pierre and Miquelon&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Saint Pierre and Miquelon&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 4, 5, 7, 8, 9, 10, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-0.34, 0.76, 4.46, 12.36, 14.16, 12.26, 7.16, 3.86], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Trinidad and Tobago&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;, &quot;Trinidad and Tobago&quot;], &quot;legendgroup&quot;: &quot;Trinidad and Tobago&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Trinidad and Tobago&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.04, 25.64, 26.94, 28.04, 28.44, 26.94, 26.74, 26.54, 27.04, 26.54, 26.44, 26.14], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in North America in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;ed5cb00c-0f42-4bf2-b3b9-569bdc0cc162&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;ed5cb00c-0f42-4bf2-b3b9-569bdc0cc162&quot;)) {                    Plotly.newPlot(                        &quot;ed5cb00c-0f42-4bf2-b3b9-569bdc0cc162&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Argentina&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;, &quot;Argentina&quot;], &quot;legendgroup&quot;: &quot;Argentina&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Argentina&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.64, 24.54, 23.24, 20.34, 17.64, 14.44, 15.14, 13.04, 17.24, 18.64, 21.84, 25.14, 12.93, 14.27, 13.84, 11.49, 7.01, 4.27, 4.22, 5.66, 9.4, 10.94, 13.69, 12.82, 28.91, 27.98, 26.91, 23.96, 21.64, 16.84, 18.81, 17.04, 23.8, 24.44, 27.69, 26.75, 27.66, 29.11, 25.74, 22.14, 20.96, 16.54, 19.81, 17.07, 24.66, 23.57, 26.3, 25.99, 28.5, 26.84, 25.73, 22.55, 19.35, 13.76, 15.28, 13.99, 20.19, 22.82, 26.37, 27.0, 25.22, 26.69, 24.18, 20.77, 19.27, 15.65, 17.72, 14.31, 20.66, 20.59, 23.92, 25.68, 28.42, 27.56, 25.54, 22.42, 17.55, 11.39, 11.77, 13.04, 20.17, 22.46, 26.21, 27.81, 25.62, 24.79, 23.14, 19.75, 17.01, 12.91, 15.32, 12.36, 18.21, 19.21, 22.75, 25.27, 25.5, 25.58, 23.98, 20.77, 18.57, 14.8, 16.68, 13.51, 19.02, 19.84, 23.18, 25.57, 23.54, 23.07, 20.97, 18.47, 15.56, 10.64, 11.83, 10.86, 16.24, 17.46, 20.77, 23.58, 24.58, 23.75, 22.27, 19.02, 16.41, 12.03, 14.09, 11.26, 17.32, 17.83, 21.28, 24.79, 26.8, 24.46, 21.37, 18.58, 13.56, 9.44, 9.22, 10.76, 15.53, 17.63, 22.51, 26.14, 24.38, 23.21, 20.54, 17.83, 14.25, 9.3, 9.85, 9.26, 14.07, 16.35, 19.45, 24.67, 24.67, 23.07, 19.94, 16.96, 13.68, 8.91, 9.67, 9.33, 13.29, 15.58, 19.47, 24.66, 19.37, 19.52, 18.56, 15.22, 12.12, 10.09, 9.11, 8.11, 10.82, 11.64, 15.71, 19.13, 24.72, 21.4, 18.1, 14.34, 10.27, 6.45, 6.93, 8.74, 11.91, 13.66, 19.18, 24.11, 15.2, 12.99, 11.57, 8.73, 6.36, 2.62, 2.29, 3.12, 5.0, 6.66, 11.0, 13.94, 20.54, 20.45, 18.19, 14.35, 10.33, 6.91, 7.38, 8.42, 10.61, 12.75, 16.34, 20.28, 19.89, 18.53, 17.16, 14.44, 9.98, 7.24, 6.63, 9.46, 10.03, 11.68, 15.93, 19.34, 12.83, 12.84, 11.2, 8.19, 2.87, 1.84, 0.7, 4.02, 6.05, 7.44, 10.77, 13.34, 21.67, 21.48, 19.78, 17.87, 16.39, 11.76, 12.53, 12.27, 18.16, 17.72, 22.14, 21.8, 25.05, 22.82, 20.31, 17.0, 12.96, 9.48, 9.37, 9.88, 14.46, 16.69, 20.94, 23.6, 24.16, 22.59, 19.35, 16.8, 13.55, 9.85, 10.35, 8.67, 13.01, 14.33, 19.07, 23.69, 24.67, 24.24, 22.33, 18.97, 15.42, 12.79, 13.44, 11.61, 15.71, 16.87, 20.99, 25.31, 23.1, 22.54, 19.72, 15.87, 12.96, 8.44, 9.52, 8.7, 12.0, 14.23, 18.17, 22.96, 25.79, 24.69, 23.35, 22.74, 21.49, 19.15, 17.25, 12.4, 13.9, 13.25, 19.95, 19.5, 23.6, 23.4, 24.9, 26.1, 22.8, 20.1, 19.0, 14.6, 17.3, 14.9, 21.5, 21.3, 24.3, 25.6, 26.22, 28.37, 25.47, 21.22, 20.37, 16.67, 18.46, 16.12, 21.82, 21.62, 24.82, 26.27, 25.28, 26.39, 24.14, 20.64, 19.19, 15.44, 17.59, 14.48, 20.59, 20.39, 23.44, 25.64, 25.73, 27.83, 25.17, 21.68, 20.33, 16.68, 18.62, 16.33, 20.87, 21.38, 24.53, 26.08, 28.51, 26.71, 25.21, 23.01, 17.91, 11.91, 12.71, 13.91, 20.71, 23.31, 26.71, 27.61, 24.14, 22.24, 16.94, 14.14, 14.64, 12.74, 16.84, 18.74, 20.24, 28.84, 26.74, 22.84, 19.14, 13.84, 8.94, 8.44, 10.44, 15.54, 19.04, 23.94, 27.94, 28.01, 25.11, 24.06, 21.91, 17.46, 11.81, 12.16, 12.46, 19.11, 21.11, 24.61, 25.95, 28.59, 26.19, 23.18, 21.44, 16.38, 10.84, 11.59, 12.04, 18.18, 20.49, 25.04, 27.43, 26.16, 25.26, 21.86, 20.06, 16.46, 10.46, 11.76, 11.56, 17.26, 19.96, 23.06, 25.86, 25.67, 24.57, 22.47, 20.27, 16.67, 11.87, 13.37, 12.57, 17.87, 19.27, 22.37, 25.37, 22.86, 19.81, 16.91, 12.01, 12.81, 11.71, 17.31, 18.4, 21.71, 25.01, 23.47, 23.47, 21.82, 18.82, 16.22, 12.92, 13.52, 10.97, 15.82, 16.62, 20.52, 24.27, 26.34, 24.04, 20.44, 18.74, 13.54, 9.14, 9.24, 10.54, 15.54, 17.74, 21.94, 25.14, 25.98, 24.83, 20.08, 18.87, 15.08, 10.28, 10.93, 11.38, 15.83, 18.68, 21.83, 25.13, 24.46, 23.16, 19.36, 16.66, 13.16, 8.06, 8.46, 8.76, 12.96, 17.06, 19.66, 24.56, 23.84, 23.29, 20.89, 18.29, 14.74, 10.04, 10.49, 16.74, 19.54, 23.59, 23.87, 23.57, 21.42, 18.77, 15.41, 10.77, 11.57, 9.51, 15.67, 17.07, 20.57, 23.82, 24.16, 23.46, 21.61, 18.5, 15.51, 11.51, 13.0, 10.16, 15.86, 17.06, 20.61, 24.61, 23.51, 23.41, 21.71, 18.26, 15.36, 12.36, 12.81, 10.21, 15.11, 16.05, 20.3, 24.36, 22.14, 19.94, 16.14, 13.84, 9.14, 5.54, 6.24, 7.24, 11.44, 11.94, 16.44, 21.24, 23.53, 21.83, 18.68, 16.43, 12.43, 8.63, 8.47, 9.33, 13.53, 14.23, 9.02, 12.72, 15.27, 19.12, 24.92, 22.04, 19.24, 16.24, 12.94, 9.74, 10.34, 8.14, 13.24, 14.44, 18.84, 23.24, 23.7, 22.76, 20.11, 17.61, 14.26, 10.66, 11.26, 9.56, 14.11, 14.71, 19.15, 23.45, 23.42, 22.52, 20.32, 16.92, 13.72, 11.12, 11.42, 9.12, 14.32, 14.82, 19.22, 23.82, 24.12, 23.87, 22.02, 18.62, 15.07, 12.37, 12.57, 10.87, 14.42, 15.92, 20.26, 24.52, 21.83, 21.73, 19.83, 16.75, 13.75, 11.15, 10.65, 9.15, 12.75, 13.65, 18.25, 22.65, 10.03, 8.37, 12.18, 12.43, 17.28, 21.63, 21.6, 19.65, 16.54, 13.79, 11.3, 7.14, 7.85, 6.6, 11.1, 11.85, 16.2, 21.75, 14.33, 12.68, 11.58, 8.48, 6.33, 2.88, 3.48, 3.03, 5.17, 6.23, 10.23, 13.58, 17.59, 14.8, 12.7, 9.85, 6.45, 2.05, 1.85, 3.55, 6.65, 8.35, 13.75, 18.45, 21.66, 22.16, 17.16, 14.56, 10.86, 6.76, 8.06, 8.06, 11.46, 13.96, 17.66, 21.46, 15.08, 15.08, 14.18, 10.38, 5.58, 3.18, 2.58, 6.18, 6.78, 9.58, 13.28, 16.38, 15.63, 15.97, 14.53, 11.03, 6.57, 4.48, 3.73, 6.63, 7.28, 13.45, 12.5, 11.05, 8.35, 3.4, 2.6, 0.25, 4.3, 5.1, 7.55, 10.6, 13.15, 9.77, 10.18, 9.68, 7.38, 3.33, 2.13, 2.13, 4.13, 5.48, 5.78, 8.93, 10.87, 25.59, 26.46, 24.41, 21.47, 19.48, 16.18, 17.87, 14.82, 20.05, 20.56, 23.71, 26.1, 28.82, 27.59, 25.88, 24.17, 19.2, 13.22, 13.84, 14.56, 21.07, 23.38, 26.57, 27.49, 24.35, 23.8, 19.29, 16.14, 12.1, 13.8, 10.9, 17.8, 18.59, 21.78, 24.35, 22.86, 22.53, 20.44, 17.14, 14.21, 11.23, 12.06, 9.08, 14.36, 15.31, 19.18, 23.57, 20.86, 20.18, 15.05, 12.16, 9.07, 8.33, 11.56, 13.7, 16.08, 20.65, 22.52, 20.34, 17.66, 14.41, 11.16, 13.09, 26.54, 27.14, 24.66, 21.73, 19.82, 15.6, 18.18, 15.06, 22.41, 22.29, 25.55, 26.52, 21.09, 20.75, 18.6, 14.82, 12.01, 7.53, 8.48, 8.05, 10.96, 13.45, 17.35, 21.1, 23.92, 25.82, 23.38, 20.29, 18.74, 15.25, 17.36, 14.89, 19.5, 19.61, 22.73, 24.38, 25.88, 24.18, 23.02, 20.85, 17.59, 12.45, 13.49, 13.09, 18.86, 19.98, 23.53, 24.89, 28.27, 26.4, 23.13, 19.37, 15.04, 10.51, 10.06, 11.88, 15.86, 19.05, 23.92, 27.29, 23.54, 22.0, 18.96, 16.36, 13.41, 8.17, 9.39, 8.64, 12.42, 14.22, 18.59, 24.0, 23.32, 21.44, 18.39, 15.7, 11.68, 8.28, 8.0, 9.0, 13.15, 14.23, 18.72, 23.39, 4.28, 1.53, 3.51, 7.41, 9.2, 12.53, 12.93, 25.44, 27.7, 24.28, 20.35, 19.93, 16.24, 18.17, 15.68, 21.58, 21.27, 24.74, 26.53, 24.49, 24.45, 22.53, 19.38, 16.46, 12.49, 14.0, 10.97, 16.91, 17.76, 21.34, 24.74, 23.13, 23.02, 20.81, 17.74, 14.81, 11.73, 12.49, 9.73, 14.87, 15.91, 19.76, 23.81, 23.43, 23.42, 21.78, 19.01, 13.13, 13.82, 11.37, 16.11, 20.86, 23.36, 23.14, 21.76, 18.37, 15.76, 12.77, 13.18, 10.53, 15.59, 16.34, 20.69, 24.43, 24.44, 25.17, 23.21, 20.41, 18.05, 14.57, 16.18, 13.45, 18.03, 19.13, 22.68, 25.83, 13.96, 13.66, 12.66, 8.66, 3.66, 2.46, 1.66, 23.56, 21.16, 17.56, 14.36, 10.06, 6.56, 7.06, 8.66, 12.26, 13.66, 19.06, 23.56, 18.76, 19.06, 17.66, 14.66, 11.26, 9.36, 8.46, 7.56, 10.36, 11.26, 15.06, 18.56, 25.71, 25.21, 23.51, 20.25, 17.56, 13.01, 14.86, 11.96, 18.56, 19.25, 22.56, 25.96, 23.4, 21.3, 18.45, 15.95, 11.4, 7.4, 7.3, 8.3, 13.04, 14.55, 19.34, 22.75, 26.11, 27.51, 24.76, 21.41, 19.96, 16.06, 18.41, 16.11, 20.21, 21.16, 21.4, 20.7, 18.2, 14.9, 11.3, 8.9, 8.7, 7.5, 11.2, 12.6, 16.4, 21.2, 23.44, 23.49, 21.84, 19.03, 16.34, 13.09, 13.69, 10.89, 16.53, 16.99, 20.79, 24.64, 25.52, 23.72, 22.42, 20.42, 17.42, 12.62, 13.32, 13.52, 19.02, 20.42, 23.62, 25.62, 25.71, 26.75, 24.16, 20.91, 19.66, 15.51, 18.31, 15.26, 22.36, 21.76, 24.56, 25.46, 7.76, 25.55, 23.75, 22.55, 20.75, 17.45, 12.55, 13.15, 13.25, 18.75, 20.15], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Bolivia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;, &quot;Bolivia&quot;], &quot;legendgroup&quot;: &quot;Bolivia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Bolivia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 2, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12, 10, 12, 2, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.66, 27.46, 25.26, 25.66, 26.86, 27.96, 27.26, 27.56, 26.06, 25.26, 24.66, 21.76, 21.46, 23.26, 25.96, 26.26, 26.06, 19.33, 17.33, 14.63, 15.23, 16.23, 19.03, 21.43, 22.73, 19.93, 20.08, 17.38, 12.68, 12.88, 13.28, 18.98, 17.58, 20.28, 18.18, 23.75, 18.2, 14.1, 15.8, 16.6, 22.8, 23.6, 24.0, 24.1, 26.63, 26.53, 23.23, 23.73, 24.83, 28.23, 27.23, 27.63, 27.03, 24.15, 20.35, 15.55, 17.55, 17.95, 23.05, 23.15, 24.75, 24.85, 26.56, 23.76, 19.06, 21.66, 22.56, 26.56, 25.56, 26.26, 27.46, 8.78, 9.78, 16.7, 16.4, 14.1, 14.2, 15.1, 17.4, 18.1, 18.8, 16.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Brazil&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;, &quot;Brazil&quot;], &quot;legendgroup&quot;: &quot;Brazil&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Brazil&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 1, 2, 3, 7, 8, 9, 10, 11, 12, 2, 3, 7, 8, 9, 10, 11, 12, 4, 5, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 8, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 6, 7, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 5, 6, 7, 8, 9, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 5, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 2, 1, 2, 3, 6, 7, 8, 9, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 1, 2, 3, 4, 5, 7, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.98, 27.68, 27.48, 26.18, 25.88, 25.88, 26.18, 26.38, 26.98, 26.9, 26.99, 26.95, 27.77, 27.9, 27.35, 27.05, 27.59, 28.4, 28.0, 27.94, 26.13, 26.99, 27.18, 27.5, 26.31, 25.29, 23.78, 22.85, 24.3, 28.25, 27.27, 27.86, 27.25, 28.15, 28.41, 27.2, 25.19, 24.76, 23.4, 22.17, 22.68, 24.12, 22.93, 25.93, 24.95, 27.49, 27.83, 28.04, 27.84, 28.3, 28.47, 28.12, 29.01, 29.24, 29.51, 29.93, 29.34, 27.02, 27.39, 27.56, 26.35, 25.77, 24.66, 23.6, 23.32, 24.36, 26.01, 26.84, 27.42, 27.71, 27.98, 26.47, 27.17, 26.97, 22.73, 21.47, 26.32, 24.28, 24.61, 23.87, 20.78, 21.46, 23.36, 24.93, 25.45, 23.55, 25.43, 25.28, 21.88, 23.66, 25.64, 25.26, 24.5, 23.24, 23.95, 23.12, 24.81, 24.37, 23.14, 23.78, 24.75, 23.61, 21.73, 20.02, 18.36, 18.02, 19.33, 21.39, 22.6, 23.15, 21.25, 24.08, 24.94, 23.65, 22.17, 20.28, 18.66, 18.98, 21.09, 22.88, 23.28, 23.23, 22.0, 26.38, 26.59, 26.2, 24.04, 22.85, 21.07, 23.95, 26.37, 23.69, 25.01, 23.39, 23.04, 25.36, 23.95, 23.48, 24.91, 22.8, 19.49, 18.3, 16.81, 17.11, 17.89, 19.28, 22.18, 20.9, 23.77, 22.39, 19.63, 17.75, 16.5, 16.38, 18.19, 21.54, 20.1, 21.13, 21.03, 22.18, 22.79, 21.7, 18.64, 16.44, 15.21, 14.92, 16.65, 19.63, 19.23, 20.67, 19.85, 21.61, 22.0, 20.68, 23.2, 24.67, 15.72, 16.06, 17.57, 20.16, 18.84, 22.1, 22.3, 22.36, 22.19, 21.19, 17.73, 15.47, 13.76, 14.04, 15.33, 17.59, 15.68, 19.76, 18.97, 16.77, 17.95, 16.09, 13.33, 11.85, 9.32, 9.52, 9.52, 12.24, 11.37, 15.02, 15.15, 23.42, 24.32, 22.09, 20.04, 17.29, 14.24, 13.64, 12.76, 16.52, 18.97, 21.64, 24.12, 24.3, 23.62, 21.05, 19.5, 18.31, 18.53, 21.17, 23.99, 20.94, 21.99, 21.8, 26.01, 26.2, 25.54, 22.96, 21.6, 20.02, 19.83, 22.67, 24.95, 22.54, 23.77, 23.62, 25.19, 25.58, 25.35, 21.98, 20.44, 18.82, 19.18, 20.31, 21.79, 19.35, 22.11, 23.08, 25.1, 25.52, 24.19, 21.15, 19.09, 17.57, 17.97, 19.09, 21.85, 20.27, 22.62, 22.08, 23.65, 23.37, 22.47, 19.53, 18.05, 17.16, 16.65, 17.89, 19.51, 17.79, 20.85, 20.01, 24.24, 24.18, 23.33, 20.57, 19.1, 18.11, 17.72, 19.25, 21.32, 19.36, 21.49, 21.38, 28.81, 28.63, 27.75, 26.93, 26.54, 26.56, 26.41, 27.61, 28.46, 29.16, 29.05, 29.28, 27.9, 28.41, 28.49, 28.47, 28.0, 27.77, 27.75, 28.69, 29.79, 30.34, 30.12, 29.83, 27.14, 27.66, 26.66, 26.39, 26.45, 25.78, 25.36, 25.52, 26.12, 26.65, 27.13, 27.34, 26.74, 27.51, 27.46, 27.85, 27.64, 27.44, 27.34, 27.53, 28.25, 28.15, 28.51, 28.01, 28.3, 27.49, 28.59, 27.68, 27.23, 27.23, 28.85, 26.75, 26.98, 26.49, 27.39, 26.65, 25.42, 25.41, 26.09, 27.94, 28.82, 27.2, 26.25, 25.37, 24.52, 24.48, 25.65, 27.2, 28.06, 28.26, 28.42, 28.28, 28.91, 28.67, 28.91, 28.07, 27.23, 26.85, 26.86, 27.52, 27.15, 27.61, 27.77, 28.36, 28.85, 27.72, 27.76, 28.01, 27.49, 26.84, 25.82, 24.95, 24.64, 25.17, 25.71, 26.42, 26.93, 27.64, 27.52, 27.12, 26.38, 26.46, 25.52, 25.54, 26.32, 27.41, 27.79, 26.61, 25.74, 25.34, 24.88, 24.4, 24.94, 26.4, 27.21, 27.72, 27.58, 25.14, 25.75, 25.6, 23.53, 22.17, 21.28, 21.6, 21.23, 21.12, 20.72, 19.95, 19.33, 17.77, 18.58, 20.38, 21.87, 22.36, 22.32, 27.32, 27.58, 26.66, 26.67, 25.94, 25.36, 24.03, 25.05, 26.29, 28.29, 27.73, 23.84, 23.99, 24.03, 22.92, 22.05, 20.91, 19.97, 20.83, 23.31, 30.07, 29.73, 29.08, 28.63, 27.5, 26.12, 24.85, 25.81, 29.38, 30.44, 29.99, 26.36, 26.65, 26.59, 26.18, 25.66, 25.2, 22.3, 23.6, 24.79, 26.19, 26.43, 22.17, 22.66, 22.03, 21.91, 20.61, 19.69, 18.67, 19.29, 20.91, 22.69, 23.07, 21.7, 25.41, 25.56, 25.2, 25.36, 24.25, 23.14, 22.65, 22.85, 25.59, 27.67, 27.27, 24.06, 23.4, 23.86, 23.29, 23.26, 21.53, 20.75, 20.16, 20.81, 22.23, 23.97, 24.25, 21.9, 21.57, 23.88, 26.28, 25.76, 25.99, 25.61, 25.12, 24.43, 23.76, 23.39, 24.49, 24.89, 25.1, 24.84, 26.45, 26.47, 26.15, 25.59, 24.23, 23.44, 22.77, 22.84, 26.41, 27.01, 25.86, 25.63, 25.53, 25.53, 25.33, 24.43, 23.93, 23.53, 23.03, 23.83, 24.83, 25.33, 24.93, 25.96, 26.38, 25.96, 24.71, 23.34, 22.85, 22.17, 22.19, 23.08, 24.5, 25.41, 24.57, 25.5, 26.76, 26.85, 26.74, 26.89, 27.41, 26.91, 27.82, 27.9, 27.38, 27.43, 26.49, 25.56, 26.47, 27.88, 27.55, 28.73, 27.95, 26.39, 27.84, 28.14, 26.87, 27.92, 27.74, 26.88, 27.25, 27.5, 27.96, 27.11, 27.78, 27.38, 27.38, 27.96, 27.53, 28.89, 26.42, 26.89, 27.12, 27.36, 27.68, 27.5, 26.79, 27.05, 26.75, 26.84, 26.99, 27.32, 25.44, 26.11, 25.96, 26.08, 26.34, 26.63, 26.04, 26.36, 25.94, 26.38, 26.42, 26.66, 28.0, 27.52, 26.85, 27.45, 27.68, 27.68, 27.55, 28.14, 26.84, 28.42, 29.27, 29.75, 30.06, 29.13, 27.99, 28.36, 28.59, 28.29, 28.39, 28.65, 27.57, 28.55, 29.82, 29.49, 29.56, 27.76, 26.63, 26.87, 27.05, 26.85, 26.75, 26.17, 25.09, 26.25, 26.84, 26.44, 26.83, 27.68, 27.78, 27.88, 27.98, 28.28, 28.48, 27.48, 27.69, 28.04, 28.08, 28.33, 28.13, 28.31, 28.56, 28.69, 28.57, 27.91, 22.15, 22.42, 22.13, 21.57, 21.13, 20.36, 20.01, 20.13, 21.3, 21.92, 22.13, 22.52, 26.18, 26.88, 26.73, 27.32, 26.83, 26.18, 26.13, 26.28, 27.48, 27.43, 27.18, 26.53, 26.92, 26.47, 25.79, 25.66, 25.33, 24.95, 26.36, 27.78, 28.21, 29.39, 26.49, 26.13, 26.04, 25.54, 25.58, 24.59, 23.47, 24.73, 25.91, 26.54, 26.71, 27.01, 26.59, 27.0, 27.05, 27.34, 27.59, 27.1, 26.09, 27.3, 27.55, 27.7, 27.6, 26.9, 23.89, 23.65, 23.81, 23.23, 25.52, 26.62, 26.75, 26.45, 26.73, 27.22, 26.94, 27.03, 27.2, 26.71, 26.17, 27.4, 29.06, 30.55, 30.86, 28.71, 25.67, 26.06, 25.32, 24.41, 24.25, 22.96, 21.97, 21.36, 22.62, 25.34, 26.18, 26.26, 25.44, 26.53, 25.88, 25.45, 24.68, 23.76, 22.87, 23.3, 24.16, 25.3, 25.78, 26.17, 27.31, 26.97, 26.8, 27.1, 27.3, 27.4, 28.1, 27.2, 27.1, 28.9, 28.5, 28.0, 27.9, 27.2, 21.32, 22.39, 24.27, 25.01, 25.36, 26.41, 26.63, 26.53, 26.27, 25.65, 24.95, 24.22, 23.72, 24.71, 25.27, 25.87, 25.95, 26.3, 26.28, 26.57, 25.73, 25.27, 24.47, 23.49, 23.68, 24.38, 25.01, 25.5, 26.04, 26.56, 26.93, 26.62, 27.22, 24.23, 25.16, 26.65, 27.81, 27.24, 28.55, 27.57, 27.12, 26.59, 27.35, 28.92, 28.62, 28.14, 26.54, 26.24, 26.09, 25.33, 24.72, 23.73, 22.77, 22.55, 23.88, 25.26, 26.28, 26.07, 25.88, 26.7, 26.47, 27.96, 26.52, 25.44, 25.78, 27.13, 28.82, 26.25, 26.75, 26.28, 25.58, 24.93, 23.95, 22.22, 22.66, 24.18, 26.44, 26.83, 25.84, 22.54, 21.83, 20.43, 19.88, 18.71, 19.18, 20.64, 22.27, 23.0, 21.96, 26.72, 27.16, 27.5, 26.97, 25.71, 24.59, 24.14, 25.59, 28.58, 27.28, 27.32, 26.03, 26.87, 27.36, 27.47, 25.91, 24.93, 25.18, 27.24, 28.71, 23.13, 22.88, 22.8, 22.22, 20.26, 19.36, 19.38, 21.8, 23.45, 22.71, 22.08, 20.96, 24.75, 25.43, 24.93, 24.24, 22.42, 21.14, 20.73, 23.29, 25.34, 25.4, 24.5, 23.97, 26.53, 27.12, 26.77, 25.45, 23.33, 22.0, 21.4, 23.19, 25.49, 26.92, 23.78, 25.63, 27.15, 26.27, 24.31, 21.78, 20.57, 20.16, 22.85, 25.57, 26.75, 24.44, 22.2, 23.12, 22.56, 20.88, 19.04, 17.82, 16.65, 18.3, 20.38, 21.56, 20.04, 24.3, 24.53, 24.29, 23.09, 21.78, 20.12, 20.09, 23.32, 25.25, 23.79, 23.24, 22.71, 24.29, 24.82, 24.5, 22.43, 21.24, 19.93, 19.68, 21.67, 23.14, 23.11, 24.24, 25.22, 23.76, 21.48, 19.22, 17.79, 17.79, 19.89, 21.94, 22.77, 23.4, 22.31, 25.61, 25.11, 25.61, 23.01, 21.61, 20.21, 20.91, 25.41, 26.45, 26.85, 26.45, 24.25, 21.85, 20.05, 20.35, 22.55, 24.45, 22.45, 24.95, 25.25, 23.39, 24.23, 23.05, 20.93, 18.93, 17.43, 17.52, 19.64, 21.87, 22.16, 22.48, 21.53, 22.58, 23.52, 22.19, 20.28, 18.63, 17.09, 17.19, 19.31, 20.21, 21.03, 20.24, 23.21, 23.99, 22.48, 20.31, 18.18, 17.06, 17.01, 17.83, 20.21, 20.19, 21.8, 20.64, 27.2, 27.76, 26.59, 23.74, 22.0, 21.57, 22.23, 23.05, 22.92, 23.81, 21.01, 21.87, 20.54, 17.63, 16.06, 14.84, 14.44, 17.07, 20.18, 18.39, 19.05, 23.73, 23.77, 22.48, 19.91, 18.71, 17.45, 16.41, 17.11, 18.43, 21.5, 19.83, 25.13, 25.89, 25.24, 21.43, 19.85, 17.08, 18.88, 23.4, 21.89, 23.71, 23.97, 25.63, 22.0, 19.49, 21.08, 21.3, 24.88, 25.32, 25.92, 13.19, 16.08, 15.35, 16.64, 15.48, 22.25, 22.97, 21.85, 16.76, 15.64, 15.35, 16.43, 19.67, 19.02, 20.85, 20.03, 22.51, 23.46, 22.36, 19.51, 18.15, 25.49, 26.11, 25.48, 21.52, 19.78, 18.71, 18.25, 19.99, 22.36, 20.7, 23.64, 23.65, 24.86, 25.6, 25.34, 21.69, 19.79, 18.0, 19.09, 19.56, 22.44, 20.63, 26.2, 26.09, 25.4, 22.75, 21.6, 20.29, 19.25, 19.54, 20.5, 20.04, 23.1, 22.6, 27.77, 28.36, 26.47, 24.13, 22.63, 20.57, 21.26, 23.12, 22.98, 25.92, 24.44, 26.44, 24.92, 22.54, 21.28, 19.54, 19.31, 19.6, 22.25, 21.2, 24.33, 23.22, 21.79, 22.07, 21.08, 16.3, 24.14, 26.45, 24.24, 18.4, 15.82, 15.92, 19.25, 19.27, 23.27, 20.08, 20.71, 18.6, 15.33, 14.98, 12.67, 12.54, 13.09, 16.02, 14.9, 18.85, 19.05, 20.38, 21.67, 19.81, 17.15, 14.48, 12.09, 12.04, 11.95, 14.74, 14.69, 18.6, 18.68, 24.08, 25.24, 23.83, 21.39, 19.47, 17.89, 17.04, 16.62, 18.29, 18.41, 21.59, 22.35, 24.39, 26.18, 24.06, 21.26, 19.28, 15.76, 17.6, 15.08, 19.69, 19.98, 23.39, 25.19, 22.29, 24.15, 22.21, 19.61, 17.29, 14.26, 15.56, 13.7, 17.68, 21.23, 22.65, 21.13, 22.86, 21.2, 18.53, 16.27, 13.24, 13.86, 13.61, 16.51, 16.46, 20.43, 21.5, 20.21, 21.7, 20.15, 17.38, 14.38, 11.73, 12.14, 11.79, 14.5, 14.85, 19.31, 19.4, 18.42, 20.35, 18.26, 15.45, 13.57, 11.21, 11.41, 11.02, 13.83, 13.36, 15.09, 17.35, 24.07, 25.18, 23.33, 20.84, 18.37, 15.91, 15.65, 15.12, 17.84, 17.62, 20.94, 22.32, 20.84, 22.19, 20.44, 18.24, 15.71, 13.12, 13.45, 12.2, 15.48, 19.45, 20.79, 19.94, 21.37, 19.34, 17.76, 15.24, 12.79, 13.23, 12.0, 15.37, 14.85, 18.71, 20.03, 20.97, 21.05, 23.06, 21.91, 22.81, 21.06, 13.72, 14.28, 12.29, 16.41, 19.27, 21.85, 23.84, 21.45, 19.59, 16.35, 13.53, 14.04, 12.73, 14.88, 15.82, 18.31, 21.72, 22.39, 23.53, 21.34, 18.61, 15.98, 12.6, 11.52, 14.21, 15.38, 18.69, 22.09, 24.22, 25.15, 23.59, 21.06, 18.31, 15.56, 15.18, 14.64, 17.69, 18.53, 21.81, 23.66, 21.78, 22.88, 20.78, 18.18, 16.88, 15.18, 16.08, 17.68, 19.48, 24.02, 23.42, 23.02, 21.62, 19.92, 18.32, 18.22, 20.82, 22.12, 20.02, 22.22, 21.42, 26.08, 26.03, 26.33, 25.53, 25.03, 24.23, 23.28, 23.48, 24.18, 24.83, 25.33, 25.83, 23.23, 23.93, 22.03, 19.03, 16.73, 14.63, 24.69, 25.19, 24.99, 25.59, 25.59, 25.29, 24.79, 25.49, 24.99, 25.79, 25.95, 26.7, 26.05, 26.08, 27.38, 28.28, 27.98, 29.28, 29.28, 28.88, 28.08, 28.78, 25.99, 25.77, 24.27, 21.77, 20.88, 19.86, 18.77, 19.48, 20.91, 19.54, 22.72, 21.65, 24.71, 25.01, 25.21, 25.61, 26.41, 26.41, 25.31, 26.11, 25.81, 26.01, 25.91, 24.81, 26.83, 27.13, 25.88, 23.93, 23.48, 22.08, 20.88, 21.38, 22.83, 21.58, 24.58, 23.63, 25.65, 26.6, 26.65, 26.1, 26.2, 25.24, 24.35, 25.24, 26.65, 26.3, 27.49, 26.74, 25.71, 26.05, 26.51, 26.11, 26.21, 26.16, 25.51, 26.81, 27.21, 26.86, 27.76, 26.71, 27.51, 27.31, 26.31, 25.01, 23.71, 22.41, 22.91, 24.41, 25.01, 26.07, 26.57, 26.67, 26.62, 26.11, 25.92, 25.92, 26.82, 27.92, 28.47, 28.27, 27.97, 25.3, 26.1, 24.6, 21.0, 18.6, 15.4, 16.0, 16.1, 18.8, 19.9, 24.3, 24.1, 25.5, 25.5, 24.9, 25.2, 24.2, 23.45, 22.55, 22.85, 25.35, 27.15, 26.9, 24.09], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Chile&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;, &quot;Chile&quot;], &quot;legendgroup&quot;: &quot;Chile&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Chile&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.87, 22.42, 22.77, 20.31, 19.51, 17.82, 16.22, 16.51, 17.51, 19.17, 20.81, 21.12, 20.43, 20.43, 19.43, 17.78, 16.93, 14.38, 13.78, 14.23, 16.07, 16.63, 17.62, 19.48, 18.66, 17.51, 16.41, 14.91, 13.81, 12.51, 12.06, 11.61, 13.26, 13.36, 14.96, 17.11, 22.63, 21.13, 18.63, 16.13, 12.18, 10.33, 9.88, 10.93, 13.38, 13.73, 17.88, 21.92, 17.88, 15.28, 15.08, 12.48, 10.88, 8.98, 9.88, 9.38, 10.58, 11.08, 14.38, 17.18, 12.99, 11.39, 9.89, 7.19, 4.69, 1.49, 0.39, 3.59, 4.39, 6.59, 10.19, 12.69, 10.58, 10.18, 9.48, 6.98, 3.08, 2.58, 1.18, 3.68, 4.28, 5.58, 8.88, 10.28, 21.13, 18.83, 15.93, 12.63, 10.03, 10.33, 11.53, 14.53, 15.43, 18.43, 22.53, 13.3, 11.7, 10.4, 9.9, 8.5, 4.6, 7.6, 6.8, 6.5, 12.4, 14.9, 15.78, 12.78, 10.48, 9.48, 6.98, 8.28, 7.68, 8.98, 9.48, 12.68, 15.78, 17.46, 16.06, 15.96, 15.06, 12.35, 12.41, 13.66, 14.21, 15.16, 17.01, 10.95, 10.85, 10.45, 9.6, 4.05, 2.75, 2.0, 4.4, 5.15, 6.25, 9.25, 11.15, 17.96, 16.76, 15.46, 14.06, 12.86, 11.36, 10.86, 10.36, 12.16, 12.76, 14.26, 16.36, 7.4, 7.7, 7.8, 6.05, 4.55, 5.1, 4.15, 5.05, 4.35, 4.44, 5.75, 8.2, 14.45, 12.8, 11.75, 8.6, 6.7, 5.3, 3.95, 5.85, 6.7, 7.95, 11.3, 6.04, 5.04, 2.94, 1.04, -1.55, -6.46, -5.16, -5.56, -3.06, -3.56, -0.26, 4.74, 19.35, 18.95, 17.64, 16.0, 13.8, 11.4, 12.05, 13.0, 14.5, 15.0, 16.55, 18.89, 16.4, 15.7, 14.7, 13.45, 11.9, 10.25, 11.0, 11.05, 11.4, 10.75, 13.35, 14.5, 19.54, 18.94, 17.44, 15.24, 13.84, 12.44, 12.94, 13.24, 14.34, 14.74, 16.34, 17.74, 15.85, 16.0, 14.65, 13.0, 11.4, 10.45, 9.85, 9.75, 10.5, 10.79, 11.65, 13.85, 18.06, 16.46, 15.86, 15.26, 14.46, 13.16, 12.26, 12.06, 13.36, 13.56, 14.76, 16.46, 15.9, 14.45, 13.6, 11.1, 9.8, 8.64, 9.1, 8.45, 8.75, 8.89, 10.95, 13.3, 14.45, 15.25, 15.1, 13.9, 12.85, 9.35, 9.45, 10.8, 13.2, 12.8, 13.75, 14.9, 18.19, 16.39, 15.94, 15.34, 14.24, 13.19, 12.29, 12.04, 13.34, 13.34, 14.74, 16.48, 18.96, 19.06, 18.46, 17.46, 16.06, 14.36, 13.56, 13.36, 13.59, 13.29, 15.09, 17.89, 14.1, 12.6, 11.4, 8.4, 6.4, 4.9, 3.5, 5.4, 6.2, 7.6, 11.1, 13.6, 20.48, 19.98, 17.98, 17.48, 16.68, 14.98, 14.48, 14.68, 15.48, 16.28, 17.68, 18.88, 18.98, 19.02, 18.38, 17.63, 16.18, 14.13, 13.53, 13.38, 13.98, 13.63, 15.33, 18.23, 14.07, 11.97, 12.37, 9.77, 8.87, 7.17, 7.37, 7.67, 7.47, 8.17, 10.37, 13.37, 16.95, 14.79, 14.2, 12.95, 11.25, 9.89, 9.85, 9.25, 10.05, 10.6, 12.6, 15.45, 17.24, 15.74, 14.64, 13.84, 12.14, 11.04, 10.24, 9.94, 11.64, 11.74, 15.6, 12.4, 9.7, 10.5, 10.5, 7.8, 10.0, 11.1, 14.8, 19.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Colombia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;, &quot;Colombia&quot;], &quot;legendgroup&quot;: &quot;Colombia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Colombia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 1, 4, 5, 6, 8, 9, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 1, 3, 4, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 2, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.05, 25.83, 26.95, 27.6, 28.27, 27.74, 27.08, 27.24, 26.84, 26.38, 25.92, 25.97, 13.19, 14.02, 13.53, 14.68, 14.58, 13.87, 13.54, 24.36, 24.66, 25.34, 24.24, 24.78, 24.47, 25.65, 25.35, 24.72, 23.89, 24.36, 24.56, 18.48, 18.77, 19.43, 27.9, 27.51, 29.23, 29.29, 29.74, 29.03, 29.72, 28.15, 28.32, 28.39, 26.85, 26.66, 28.01, 28.4, 29.2, 28.83, 28.92, 27.92, 28.21, 27.55, 27.91, 26.64, 26.31, 27.9, 28.15, 29.0, 28.32, 28.97, 27.52, 27.84, 27.88, 27.35, 27.55, 27.85, 27.49, 27.44, 26.83, 28.01, 29.17, 28.95, 28.52, 28.86, 28.12, 27.97, 22.41, 23.8, 24.56, 22.85, 23.56, 24.54, 22.46, 22.73, 22.33, 22.58, 21.58, 22.79, 21.26, 21.18, 22.29, 21.29, 21.68, 21.61, 22.31, 22.54, 21.68, 22.12, 21.88, 23.12, 22.01, 21.84, 20.97, 21.43, 21.62, 26.9, 26.7, 27.15, 26.2, 25.45, 24.55, 23.9, 25.2, 25.8, 24.85, 26.05, 26.3, 21.63, 21.93, 20.73, 20.63, 21.43, 18.8, 19.5, 19.8, 19.8, 20.5, 19.9, 19.6, 19.7, 18.7, 18.9, 19.1, 26.44, 23.78, 24.98, 25.18, 23.98, 24.33, 24.03, 24.28, 24.53, 24.38, 23.13, 23.63, 23.93, 18.14, 19.05, 19.35, 19.1, 19.5, 18.55, 18.0, 17.8, 18.39, 17.8, 18.14, 18.35, 21.56, 23.06, 22.46, 22.86, 22.66, 22.26, 22.06, 21.26, 21.66, 21.96, 26.1, 27.8, 27.2, 26.9, 26.5, 27.95, 28.3, 29.44, 28.9, 28.44, 27.65, 28.44, 27.15, 27.4, 22.74, 24.3, 23.15, 26.6, 26.4, 27.4, 28.2, 28.8, 28.3, 28.0, 28.1, 27.5, 27.2, 26.8, 26.9, 27.06, 26.76, 28.06, 28.06, 29.06, 28.76, 28.86, 27.76, 27.86, 27.26, 27.26, 27.56, 21.51, 22.11, 22.81, 21.81, 21.81, 21.11, 21.91, 21.41, 21.21, 20.01, 20.81, 21.11, 18.86, 19.36, 19.66, 19.16, 19.66, 18.76, 20.56, 19.16, 19.96, 18.56, 18.56, 18.46, 21.88, 22.38, 22.68], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Ecuador&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;, &quot;Ecuador&quot;], &quot;legendgroup&quot;: &quot;Ecuador&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Ecuador&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 10, 11, 1, 2, 3, 4, 5, 6, 9, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.47, 25.77, 26.27, 26.47, 26.37, 25.77, 23.87, 23.57, 24.57, 24.07, 24.87, 25.47, 27.05, 26.95, 26.45, 25.45, 25.55, 25.05, 25.55, 25.95, 26.55, 26.05, 26.05, 27.05, 14.08, 14.38, 14.08, 13.78, 13.28, 12.68, 11.98, 11.78, 12.98, 13.88, 13.28, 26.12, 26.82, 27.52, 27.62, 27.22, 26.22, 25.12, 24.42, 25.02, 25.22, 25.42, 26.22, 21.01, 21.49, 22.0, 21.75, 21.55, 21.3, 20.41, 20.78, 21.54, 21.54, 21.75, 21.97, 11.78, 12.28, 12.68, 12.18, 12.48, 11.78, 10.78, 10.58, 11.28, 11.38, 11.48, 11.38, 26.27, 26.57, 26.77, 27.07, 26.67, 26.07, 24.17, 23.87, 24.67, 24.87, 24.87, 26.57, 8.73, 8.93, 9.33, 9.23, 8.83, 8.73, 15.7, 15.9, 16.1, 15.8, 16.2, 15.6, 15.6, 15.3, 16.2, 15.4, 15.7, 15.5, 25.6, 27.2, 26.8, 26.9, 26.7, 25.8, 23.5, 23.3, 24.2, 24.3, 24.8, 26.2, 13.7, 14.6, 13.75, 13.65, 10.6, 11.3, 11.2, 12.0, 11.4, 10.0, 9.9, 10.9, 11.0, 11.5, 11.2, 23.58, 23.58, 23.88, 23.08, 23.58, 22.98, 22.08, 23.58, 22.78, 22.98, 22.98, 14.02, 14.52, 14.82, 14.12, 14.72, 14.12, 14.32, 13.72, 14.52, 13.02, 13.22, 13.92, 23.99, 25.49, 26.59, 26.39, 25.29, 24.29, 21.69, 20.59, 20.89, 21.99, 22.69, 23.69, 18.11, 18.41, 18.51, 18.61, 17.91, 17.21, 16.11, 16.21, 17.61, 18.31, 18.41, 18.11, 24.87, 25.77, 26.57, 26.97, 26.57, 23.07, 22.27, 24.4, 25.4, 26.99, 26.69, 26.09, 25.29, 20.89, 22.89, 24.19], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=French Guiana&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;, &quot;French Guiana&quot;], &quot;legendgroup&quot;: &quot;French Guiana&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;French Guiana&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.04, 26.68, 26.79, 27.02, 26.77, 26.88, 26.46, 26.76, 26.94, 26.92, 26.88, 26.77, 26.23, 26.83, 27.63, 27.13, 26.93, 27.93, 28.33, 28.83, 29.23, 27.93, 25.59, 25.69, 26.09, 26.59, 26.39, 26.69, 26.89, 27.49, 27.89, 27.69, 27.39, 26.59, 25.31, 25.81, 25.91, 26.11, 25.71, 26.41, 26.71, 26.01, 26.61, 26.81, 26.81, 26.21, 25.15, 25.75, 25.85, 26.15, 25.85, 25.95, 25.55, 25.85, 26.05, 26.05, 26.05, 25.85], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guyana&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;, &quot;Guyana&quot;], &quot;legendgroup&quot;: &quot;Guyana&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guyana&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.81, 26.31, 27.21, 27.21, 26.61, 26.61, 25.71, 26.71, 27.51, 27.51, 27.71, 26.81, 26.5, 27.1, 27.8, 27.9, 27.3, 27.4, 27.7, 27.9, 28.5, 28.4, 28.1, 27.3, 25.96, 26.66, 26.96, 26.66, 26.66, 27.06, 26.86, 26.76, 28.46, 28.16, 28.86, 28.26], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Suriname&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;, &quot;Suriname&quot;], &quot;legendgroup&quot;: &quot;Suriname&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Suriname&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 10, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.23, 25.53, 26.23, 26.43, 26.03, 26.33, 26.33, 26.73, 27.43, 27.43, 27.23, 26.33, 24.38, 25.18, 25.58, 25.38, 25.48, 26.18, 26.68, 27.08, 27.28, 26.02, 26.82, 26.72, 26.22, 27.12, 27.22, 27.62, 28.32, 29.12, 29.52, 29.52, 26.78, 26.88, 27.68, 28.28, 26.98, 27.48, 27.58, 27.98, 28.88, 28.68, 28.58, 27.68, 26.39, 26.74, 27.34, 27.29, 26.84, 26.89, 26.99, 26.94, 27.54, 27.29, 27.59, 26.74], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Paraguay&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;, &quot;Paraguay&quot;], &quot;legendgroup&quot;: &quot;Paraguay&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Paraguay&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.78, 28.68, 27.58, 24.38, 24.48, 20.18, 22.38, 22.38, 27.88, 25.68, 27.08, 28.28, 28.46, 28.86, 27.46, 23.06, 22.36, 18.56, 21.16, 20.46, 27.18, 28.88, 26.68, 26.41, 28.31, 25.51, 21.71, 19.51, 16.41, 17.51, 17.21, 21.61, 21.71, 25.61, 25.91, 25.61, 27.01, 24.71, 20.71, 19.41, 15.71, 17.61, 14.91, 20.21, 21.21, 24.31, 25.91, 25.61, 26.51, 26.01, 22.01, 20.81, 18.01, 20.11, 20.11, 24.51, 22.91, 24.71, 25.21, 25.63, 26.73, 24.13, 20.53, 19.13, 15.33, 17.03, 14.73, 20.43, 20.83, 24.13, 26.33, 26.08, 27.88, 25.08, 22.08, 20.28, 16.78, 18.28, 16.38, 21.68, 21.28, 25.08, 26.58, 26.16, 26.56, 25.96, 22.76, 21.86, 17.36, 19.96, 19.46, 25.66, 24.06, 26.06, 25.96, 22.3, 21.4, 17.1, 19.4, 17.5, 24.8, 23.4, 25.8, 26.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Peru&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;, &quot;Peru&quot;], &quot;legendgroup&quot;: &quot;Peru&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Peru&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.18, 25.48, 25.78, 25.48, 25.68, 25.28, 23.78, 24.98, 25.58, 25.58, 25.88, 25.48, 28.1, 27.5, 27.4, 26.8, 26.9, 26.2, 25.0, 25.5, 26.5, 26.8, 27.0, 27.1, 18.03, 15.54, 15.63, 16.9, 18.08, 19.26, 21.06, 26.84, 26.34, 25.24, 23.54, 20.24, 19.94, 20.14, 20.74, 21.74, 23.14, 27.61, 27.31, 27.41, 27.11, 27.01, 26.61, 26.61, 26.61, 27.41, 27.51, 27.61, 27.91, 23.11, 23.11, 21.18, 18.23, 18.54, 18.6, 19.25, 19.87, 21.18, 29.15, 28.55, 28.25, 27.95, 28.35, 27.35, 26.65, 27.15, 28.15, 28.25, 28.15, 28.75, 21.78, 21.98, 20.73, 17.77, 17.77, 17.9, 18.42, 19.15, 19.96, 20.86, 19.11, 16.37, 16.17, 17.07, 18.07, 19.17, 20.57, 27.97, 26.87, 26.37, 26.87, 25.57, 24.87, 23.87, 26.27, 28.07, 28.07, 26.67, 22.13, 16.01, 16.05, 17.22, 19.03, 20.14, 11.19, 11.69, 11.79, 10.89, 9.89, 8.39, 7.59, 9.29, 11.09, 12.79, 12.99, 12.19, 22.73, 23.63, 23.63, 22.13, 21.03, 19.03, 16.63, 16.73, 17.93, 18.83, 20.03, 21.33, 26.76, 28.36, 29.06, 28.16, 27.26, 25.66, 22.36, 22.86, 23.16, 23.16, 22.86, 25.46, 15.95, 16.05, 15.85, 15.85, 16.25, 14.95, 15.05, 18.34, 18.74, 18.14, 18.64, 19.04, 17.64, 16.64, 17.74, 18.44, 19.94, 19.54, 17.74, 21.29, 21.69, 21.39, 18.69, 16.79, 14.69, 13.39, 13.69, 15.29, 16.99, 18.39, 20.29, 23.66, 24.16, 24.16, 24.46, 24.66, 23.96, 23.36, 23.26, 24.36, 24.16, 24.66, 24.56, 13.73, 13.73, 13.53, 13.33, 12.63, 12.93, 13.03, 14.63, 14.13, 14.93, 14.63, 21.01, 21.91, 22.51, 22.01, 21.61, 20.01, 17.11, 17.11, 17.31, 17.61, 18.51, 19.41, 26.89, 27.59, 28.64, 28.24, 27.64, 26.78, 27.69, 26.64, 26.78, 26.19, 26.59, 26.79, 23.8, 23.6, 24.3, 23.9, 23.5, 21.4, 21.2, 22.8, 24.4, 24.0, 24.3, 24.4, 21.16, 20.56, 21.36, 21.56, 21.46, 19.76, 18.96, 19.86, 21.16, 21.66, 22.06, 21.26, 21.86, 22.56, 22.76, 21.26, 20.06, 17.86, 14.26, 15.56, 16.46, 17.36, 18.46, 20.16, 12.0, 12.0, 12.1, 11.9, 11.8, 10.5, 8.9, 10.1, 11.3, 12.5, 12.4, 11.7, 15.53, 15.23, 15.13, 15.43, 15.13, 14.43, 13.83, 14.03, 14.83, 14.93, 14.93, 14.93, 23.6, 22.7, 23.4, 23.0, 21.7, 21.1, 23.2, 23.3, 24.1, 22.9, 9.1, 9.2, 10.4, 10.2, 9.4, 7.7, 6.0, 6.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Uruguay&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;, &quot;Uruguay&quot;], &quot;legendgroup&quot;: &quot;Uruguay&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Uruguay&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [23.52, 21.64, 18.34, 15.85, 12.95, 12.35, 10.35, 14.72, 15.79, 19.62, 23.9, 23.05, 21.97, 18.5, 15.65, 12.73, 13.29, 11.29, 15.83, 16.75, 20.74, 24.51, 23.47, 22.62, 21.75, 18.47, 16.27, 12.62, 12.7, 10.52, 15.16, 16.12, 19.84, 24.34, 23.37, 22.77, 20.96, 17.65, 15.15, 12.19, 12.76, 10.23, 14.69, 15.34, 19.8, 24.02, 22.03, 22.07, 20.42, 17.41, 14.22, 11.62, 11.65, 9.53, 13.64, 14.37, 18.54, 23.16, 21.31, 21.14, 19.57, 16.8, 14.71, 12.43, 11.47, 9.7, 12.93, 13.27, 16.9, 20.8, 22.13, 23.23, 21.21, 12.84, 13.38, 10.93, 14.31, 14.5, 19.01, 22.18, 23.7, 23.2, 21.3, 17.9, 15.0, 12.3, 12.1, 10.5, 14.1, 15.1, 19.7, 23.6, 22.17, 22.67, 20.77, 18.07, 15.07, 12.77, 11.57, 12.27, 13.97, 14.57, 18.47, 21.87, 21.72, 21.49, 19.8, 17.03, 13.58, 11.08, 11.56, 9.57, 12.33, 13.73, 17.66, 21.77, 22.23, 22.03, 20.43, 17.43, 13.93, 11.83, 11.43, 9.63, 13.03, 13.93, 18.03, 21.83, 23.25, 22.65, 21.15, 17.65, 15.15, 12.15, 12.55, 10.15, 14.65, 15.55, 20.15, 24.05, 22.68, 23.63, 21.33, 19.12, 16.53, 13.98, 13.98, 11.73, 15.69, 16.68, 20.46, 23.33, 21.8, 22.0, 20.4, 18.4, 15.9, 13.6, 12.4, 10.9, 12.9, 13.8, 16.2, 21.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Venezuela&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;, &quot;Venezuela&quot;], &quot;legendgroup&quot;: &quot;Venezuela&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Venezuela&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.76, 26.62, 27.79, 28.19, 27.85, 27.24, 26.42, 26.46, 27.52, 26.47, 26.99, 26.38, 25.67, 25.9, 26.73, 27.3, 27.82, 26.87, 26.38, 26.37, 27.0, 26.95, 27.32, 27.03, 29.27, 29.75, 31.4, 30.29, 30.13, 29.84, 30.3, 29.79, 19.39, 20.06, 21.79, 21.37, 22.29, 22.14, 21.34, 21.16, 21.22, 20.26, 19.96, 19.66, 28.29, 29.24, 30.59, 30.03, 28.79, 27.97, 27.03, 27.39, 28.75, 28.42, 28.99, 28.65, 23.12, 23.55, 24.65, 25.43, 25.36, 24.51, 24.43, 25.16, 25.58, 25.71, 25.63, 24.9, 22.06, 22.65, 23.3, 23.45, 23.18, 22.23, 21.09, 21.47, 21.89, 22.2, 22.29, 22.93, 27.45, 27.75, 29.05, 29.65, 30.55, 30.65, 30.15, 29.95, 30.25, 28.75, 28.55, 28.15, 28.42, 29.12, 27.72, 27.32, 28.72, 23.85, 24.55, 25.95, 25.47, 25.25, 24.75, 23.85, 24.35, 25.65, 24.65, 24.55, 24.65, 24.57, 25.17, 26.37, 27.17, 28.17, 28.27, 27.27, 27.47, 28.17, 27.77, 27.37, 26.17, 26.4, 27.2, 28.1, 29.4, 29.8, 28.6, 27.6, 26.7, 27.9, 27.5, 27.4, 27.3, 28.21, 27.71, 27.91, 26.35, 27.45, 28.35, 28.55, 28.95, 27.55, 27.05, 26.65, 27.85, 27.75, 28.25, 27.55, 25.76, 25.96, 27.56, 27.46, 29.26, 29.06, 28.66, 28.66, 28.66, 26.56, 26.46, 19.91, 18.71, 21.61, 21.31, 21.01, 19.91, 19.21, 19.51, 20.01, 20.31, 20.31, 20.71, 18.1, 18.9, 20.7, 20.2, 21.3, 20.8, 20.2, 19.9, 19.9, 19.0, 18.9, 18.6, 23.95, 24.85, 26.25, 26.65, 26.25, 25.55, 24.55, 24.55, 25.85, 24.45, 24.95, 24.35, 19.15, 19.55, 21.25, 21.95, 22.35, 21.85, 20.65, 20.95, 21.25, 20.45, 20.55, 20.25, 28.99, 29.59, 30.39, 29.09, 28.09, 27.99, 27.49, 27.39, 27.19, 27.49, 28.39, 28.29, 26.8, 27.6, 29.0, 28.6, 27.3, 26.4, 25.5, 26.2, 27.2, 26.7, 27.6, 27.0, 24.87, 25.17, 27.07, 26.27, 27.57, 26.47, 26.27, 25.97, 26.67, 25.97, 26.67, 26.27, 24.35, 24.05, 25.75, 25.65, 27.45, 27.35, 26.85, 26.85, 26.75, 24.75, 24.95, 24.55, 21.34, 21.84, 22.94, 23.84, 23.64, 22.74, 22.94, 23.54, 24.04, 24.14, 23.84, 23.04], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in South America in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&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;e50e54ca-20f1-4e70-b290-51f4fda43193&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;e50e54ca-20f1-4e70-b290-51f4fda43193&quot;)) {                    Plotly.newPlot(                        &quot;e50e54ca-20f1-4e70-b290-51f4fda43193&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=American Samoa&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;, &quot;American Samoa&quot;], &quot;legendgroup&quot;: &quot;American Samoa&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;American Samoa&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.73, 27.43, 27.43, 27.13, 26.73, 27.03, 25.93, 25.83, 26.03, 27.03, 26.83, 27.03, 27.7, 27.37, 27.37, 27.08, 26.59, 26.98, 25.82, 25.77, 26.02, 26.95, 26.77, 27.03], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Australia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;, &quot;Australia&quot;], &quot;legendgroup&quot;: &quot;Australia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Australia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 6, 7, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 3, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 5, 6, 7, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 5, 6, 9, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 10, 5, 6, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 2, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 5, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 9, 10, 12, 4, 5, 6, 7, 8, 12, 1, 2, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 3, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 11, 12, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 7, 8, 9, 10, 11, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 7, 8, 9, 10, 11, 1, 2, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 7, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 3, 5, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 9, 10, 1, 2, 3, 5, 7, 8, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 3, 4, 5, 6, 3, 5, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 7, 9, 10, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 8, 9, 10, 11, 12, 11, 12, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 10, 1, 2, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 7, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 5, 7, 9, 10, 9, 10, 11, 12, 8, 9, 10, 11, 8, 9, 10, 11, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 5, 6, 7, 8, 10, 2, 3, 4, 5, 6, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 3, 5, 7, 9, 1, 2, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 7, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 9, 10, 11, 12, 3, 5, 7, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 1, 3, 5, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 8, 9, 10, 11, 7, 9, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 7, 8, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 4, 5, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 5, 7, 8, 9, 10, 2, 3, 5, 7, 8, 9, 10, 11, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 2, 7, 8, 9, 10, 11, 2, 5, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 2, 5, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 5, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 1, 2, 4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 1, 2, 3, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 5, 6, 7, 9, 10, 11, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.99, 29.6, 29.25, 27.35, 25.3, 21.9, 22.9, 24.15, 23.45, 28.6, 30.5, 27.82, 27.98, 28.03, 26.43, 26.43, 24.93, 24.23, 24.48, 24.88, 25.83, 27.53, 28.73, 21.85, 20.85, 20.25, 18.65, 15.05, 12.85, 12.8, 13.75, 13.0, 15.95, 16.95, 19.1, 22.9, 22.15, 22.05, 21.2, 19.15, 16.85, 16.15, 16.75, 15.9, 17.85, 20.0, 21.65, 7.58, 6.98, 5.33, 4.38, 4.33, 2.32, 3.33, 3.13, 2.93, 2.23, 4.58, 5.87, 28.84, 27.88, 28.66, 29.4, 28.12, 25.39, 25.51, 25.47, 26.5, 28.2, 29.8, 29.86, 29.01, 28.27, 28.76, 28.85, 27.79, 25.09, 25.37, 25.55, 26.98, 28.35, 29.71, 29.99, 32.34, 32.44, 29.21, 28.06, 29.01, 26.46, 25.66, 22.76, 24.66, 25.16, 26.21, 29.16, 32.01, 32.16, 29.25, 28.11, 29.08, 26.5, 25.73, 22.79, 24.64, 25.19, 26.26, 29.21, 32.05, 32.19, 28.82, 25.35, 25.53, 23.5, 22.05, 17.34, 18.43, 19.83, 23.06, 27.14, 28.97, 28.75, 31.9, 31.5, 29.14, 29.16, 26.5, 25.3, 20.9, 25.93, 29.74, 32.39, 32.16, 31.49, 29.32, 30.22, 27.34, 26.2, 21.9, 24.25, 27.27, 30.41, 32.44, 32.68, 29.27, 28.54, 28.65, 26.02, 24.64, 20.58, 20.88, 21.31, 23.78, 26.47, 28.66, 29.22, 28.7, 29.25, 28.98, 26.84, 23.68, 23.79, 23.91, 25.6, 26.83, 28.52, 29.25, 31.95, 28.73, 25.36, 24.2, 19.58, 20.89, 21.38, 25.13, 30.36, 32.48, 33.07, 31.86, 30.39, 31.04, 26.76, 23.04, 23.83, 24.62, 26.81, 29.63, 31.47, 28.8, 28.09, 29.46, 30.2, 28.31, 25.88, 25.48, 25.49, 26.25, 27.4, 29.07, 29.32, 30.16, 27.86, 25.76, 21.74, 22.06, 22.69, 25.04, 26.69, 28.49, 29.09, 29.51, 29.78, 26.46, 24.14, 19.89, 20.5, 21.24, 23.41, 26.46, 28.04, 28.79, 34.55, 31.4, 31.7, 28.16, 24.44, 19.94, 21.61, 24.08, 30.4, 33.23, 34.45, 33.24, 29.59, 30.02, 25.81, 21.99, 15.93, 16.11, 21.12, 30.75, 31.74, 30.59, 30.69, 27.34, 24.69, 19.49, 19.74, 20.59, 22.69, 26.79, 28.74, 29.44, 31.29, 30.18, 30.24, 26.87, 24.24, 19.07, 19.31, 20.16, 22.27, 26.36, 28.31, 28.98, 32.84, 30.75, 31.71, 27.75, 25.13, 19.83, 19.9, 21.07, 22.97, 28.48, 30.48, 31.28, 34.22, 31.24, 32.0, 29.15, 26.06, 20.84, 21.75, 22.78, 24.92, 29.63, 31.81, 32.22, 34.35, 31.2, 31.5, 28.0, 24.25, 18.95, 19.75, 21.45, 23.9, 30.2, 33.0, 34.25, 31.62, 30.58, 30.12, 27.76, 24.79, 19.34, 19.6, 20.45, 21.96, 26.6, 29.34, 28.65, 29.78, 29.53, 29.07, 18.23, 25.4, 28.23, 26.82, 30.37, 30.07, 29.46, 27.41, 23.85, 19.04, 18.96, 20.06, 21.82, 26.27, 29.4, 27.64, 34.71, 31.08, 31.79, 27.48, 22.83, 17.38, 17.98, 20.51, 22.51, 29.13, 31.81, 32.17, 29.01, 29.63, 27.98, 25.25, 20.81, 20.37, 21.0, 22.81, 26.21, 27.74, 31.03, 29.57, 26.11, 26.99, 26.9, 24.62, 20.98, 17.76, 16.41, 17.05, 19.57, 22.64, 23.52, 25.77, 29.87, 16.98, 16.46, 26.5, 28.81, 27.67, 28.82, 27.05, 23.56, 19.54, 15.84, 14.56, 16.53, 18.77, 23.48, 25.16, 27.06, 30.51, 30.18, 26.94, 23.21, 17.31, 13.84, 13.12, 15.63, 17.96, 24.91, 27.3, 28.97, 31.6, 29.97, 26.94, 23.35, 17.58, 13.55, 13.13, 16.14, 18.38, 25.64, 28.36, 28.92, 29.56, 26.01, 22.2, 16.39, 13.31, 12.12, 14.48, 17.1, 24.05, 26.7, 28.22, 31.64, 28.65, 28.03, 23.83, 18.95, 13.31, 13.51, 16.59, 18.47, 27.1, 29.27, 30.92, 29.73, 30.85, 27.33, 23.45, 18.1, 14.05, 12.98, 15.18, 18.07, 27.03, 28.86, 26.82, 18.07, 12.62, 12.02, 17.6, 25.41, 28.1, 29.81, 28.49, 29.71, 25.47, 22.04, 16.28, 13.57, 11.93, 29.05, 27.61, 24.47, 20.37, 14.32, 14.52, 17.94, 20.1, 25.39, 27.45, 24.3, 16.31, 14.19, 12.67, 22.03, 24.64, 26.45, 25.05, 21.87, 17.72, 14.8, 12.95, 13.52, 15.64, 21.85, 23.17, 24.87, 25.07, 26.52, 23.02, 20.01, 15.17, 11.2, 11.85, 14.42, 20.68, 23.07, 24.49, 23.12, 24.43, 23.75, 21.38, 18.19, 15.59, 13.62, 13.84, 14.52, 20.36, 21.11, 23.15, 24.3, 25.63, 22.87, 19.75, 15.9, 14.29, 11.48, 11.87, 13.34, 20.47, 22.73, 23.35, 27.91, 24.39, 21.43, 16.38, 13.99, 12.21, 12.73, 15.02, 22.14, 24.75, 26.37, 26.55, 27.84, 24.91, 21.71, 17.52, 12.73, 13.44, 15.99, 24.84, 26.01, 25.09, 26.16, 22.7, 19.68, 15.32, 13.45, 11.39, 12.02, 13.31, 20.57, 22.94, 24.11, 24.81, 22.0, 19.51, 14.71, 12.62, 10.74, 11.43, 13.04, 19.93, 22.28, 23.5, 25.25, 26.65, 23.2, 20.15, 15.35, 11.4, 12.0, 14.6, 20.85, 23.25, 24.65, 21.01, 22.35, 21.53, 18.92, 16.36, 15.46, 13.3, 13.82, 13.55, 18.51, 19.39, 21.43, 22.29, 24.22, 21.75, 19.23, 16.07, 14.56, 12.61, 12.94, 13.93, 19.49, 20.56, 22.66, 19.9, 16.81, 15.31, 13.49, 13.88, 14.77, 20.21, 20.97, 22.8, 23.11, 25.45, 22.52, 19.89, 11.88, 12.38, 13.39, 20.06, 21.89, 23.66, 21.43, 22.04, 21.69, 19.08, 16.91, 15.83, 14.66, 14.63, 14.29, 18.87, 19.21, 20.96, 25.3, 22.95, 19.9, 16.67, 14.94, 13.03, 13.16, 13.82, 19.89, 21.59, 22.13, 22.5, 22.14, 19.44, 16.63, 15.39, 13.41, 13.83, 13.63, 19.28, 19.96, 21.53, 22.3, 19.5, 16.36, 13.13, 11.68, 10.0, 10.64, 11.36, 17.27, 18.55, 20.24, 21.21, 21.57, 21.41, 18.32, 16.17, 15.17, 13.47, 13.74, 13.28, 18.03, 18.7, 21.19, 19.34, 21.99, 21.4, 22.05, 21.7, 19.1, 16.9, 15.85, 14.7, 14.6, 14.29, 18.9, 19.25, 21.0, 20.51, 20.98, 18.9, 15.74, 12.59, 11.52, 10.29, 10.5, 10.19, 16.11, 17.6, 19.87, 20.34, 21.43, 20.45, 17.37, 15.13, 14.01, 12.45, 12.37, 12.57, 17.34, 18.28, 20.59, 20.38, 21.15, 19.78, 16.66, 14.63, 13.53, 12.28, 11.77, 11.68, 17.16, 17.99, 20.54, 19.76, 19.33, 17.66, 16.05, 14.96, 13.7, 13.37, 16.9, 17.58, 18.88, 20.02, 19.89, 17.15, 15.59, 15.05, 13.8, 13.21, 12.51, 16.89, 17.18, 19.23, 20.9, 22.71, 20.24, 17.02, 14.1, 12.73, 10.97, 11.32, 11.79, 17.57, 18.93, 20.21, 21.73, 19.14, 15.84, 12.57, 11.42, 10.06, 10.32, 11.02, 16.93, 18.39, 20.45, 21.41, 20.73, 20.63, 18.88, 16.34, 14.06, 20.35, 21.15, 19.79, 16.7, 14.65, 13.54, 12.29, 11.75, 11.65, 17.15, 18.0, 20.5, 22.05, 23.14, 21.89, 18.84, 16.46, 15.22, 13.4, 13.63, 13.95, 19.1, 19.97, 22.0, 20.29, 18.65, 15.67, 13.15, 11.9, 10.37, 10.7, 10.46, 15.95, 17.11, 18.98, 20.01, 19.41, 18.71, 15.67, 13.16, 11.39, 10.53, 10.44, 10.36, 15.21, 16.64, 17.9, 18.99, 19.58, 18.43, 13.55, 12.41, 11.4, 11.07, 10.76, 15.86, 16.4, 18.56, 19.97, 20.48, 18.38, 15.18, 12.03, 11.03, 9.73, 9.97, 9.68, 15.58, 17.08, 19.38, 21.21, 21.97, 19.34, 15.85, 12.55, 11.12, 10.02, 10.55, 10.51, 17.08, 18.51, 20.37, 22.2, 20.77, 20.05, 18.04, 14.78, 12.45, 11.26, 11.86, 11.54, 16.36, 17.87, 18.07, 13.63, 12.73, 11.03, 20.97, 17.49, 14.92, 13.39, 11.96, 12.13, 12.45, 18.32, 18.71, 19.4, 19.35, 18.89, 16.03, 13.71, 12.41, 11.75, 11.3, 10.86, 14.55, 16.0, 17.75, 18.52, 18.29, 15.85, 13.88, 12.06, 10.83, 10.57, 14.79, 16.54, 17.65, 18.43, 18.46, 18.07, 16.25, 13.43, 12.55, 12.41, 11.56, 15.09, 15.91, 17.17, 12.83, 13.31, 12.87, 16.41, 18.08, 19.02, 25.44, 25.88, 22.36, 19.52, 14.31, 12.35, 10.64, 11.38, 13.33, 20.45, 22.9, 23.82, 24.49, 24.8, 21.48, 18.67, 14.35, 12.33, 10.41, 11.04, 12.23, 19.2, 21.73, 22.98, 24.52, 25.49, 22.2, 19.26, 15.06, 13.51, 11.44, 11.63, 13.04, 19.78, 22.49, 23.86, 24.36, 25.48, 25.26, 22.23, 18.86, 14.64, 12.8, 10.77, 11.65, 13.41, 20.02, 22.54, 23.47, 22.11, 19.2, 12.44, 10.2, 11.26, 13.17, 20.18, 22.5, 23.46, 23.65, 25.36, 21.18, 18.13, 14.08, 12.0, 9.77, 10.66, 11.92, 19.14, 21.54, 22.94, 24.44, 24.84, 21.39, 18.52, 14.45, 12.68, 10.52, 11.31, 12.02, 19.39, 21.87, 23.57, 23.98, 24.71, 20.88, 18.21, 14.31, 12.26, 10.07, 10.84, 11.52, 18.59, 21.73, 23.52, 22.3, 23.45, 20.62, 17.82, 13.86, 12.33, 10.62, 10.97, 11.64, 20.21, 21.6, 23.67, 24.07, 20.62, 17.77, 13.67, 11.92, 9.77, 10.57, 11.27, 18.62, 21.07, 22.82, 23.47, 23.55, 20.31, 17.0, 13.56, 11.51, 9.76, 10.65, 10.95, 17.88, 20.33, 22.0, 23.97, 23.61, 20.35, 17.22, 13.23, 11.45, 9.63, 10.36, 11.04, 17.93, 20.8, 21.65, 21.35, 20.87, 19.01, 15.67, 12.85, 10.95, 9.61, 10.0, 9.82, 15.93, 17.59, 19.1, 22.42, 9.87, 11.35, 21.1, 24.67, 24.43, 21.24, 18.29, 14.06, 12.16, 10.43, 11.34, 19.19, 22.02, 22.67, 22.17, 22.17, 19.58, 16.44, 12.63, 11.09, 9.39, 9.91, 9.9, 16.41, 19.54, 21.44, 20.48, 19.17, 13.36, 11.26, 9.6, 10.67, 9.97, 16.25, 18.34, 19.39, 21.01, 15.13, 13.16, 11.8, 12.46, 11.57, 19.25, 19.5, 21.63, 22.14, 18.94, 15.62, 12.05, 10.76, 9.34, 9.75, 9.57, 16.25, 18.95, 21.08, 22.5, 19.6, 13.54, 11.95, 9.95, 10.9, 11.45, 17.54, 21.0, 21.15, 22.25, 21.9, 19.65, 16.54, 13.25, 11.45, 10.0, 10.85, 10.3, 17.09, 19.4, 20.95, 21.11, 21.65, 18.46, 15.16, 11.56, 10.31, 8.86, 9.26, 9.06, 15.75, 18.41, 20.56, 22.3, 21.07, 19.32, 19.11, 15.63, 13.65, 12.68, 14.4, 13.78, 17.45, 18.45, 19.28, 25.44, 23.92, 21.19, 19.14, 15.31, 12.79, 11.98, 14.15, 13.8, 18.57, 20.46, 21.21, 24.74, 21.96, 19.89, 15.3, 13.51, 12.05, 14.17, 14.45, 19.07, 21.86, 22.2, 24.1, 22.9, 20.1, 18.7, 14.6, 12.2, 11.1, 12.8, 13.0, 16.8, 21.7, 25.17, 23.67, 20.97, 18.87, 15.07, 12.47, 11.77, 13.87, 13.57, 18.37, 20.27, 20.97, 30.07, 28.05, 24.75, 21.5, 15.57, 12.07, 10.91, 14.76, 16.97, 23.15, 26.18, 27.41, 27.15, 25.36, 22.02, 19.62, 14.24, 11.65, 10.72, 12.76, 13.94, 20.09, 23.08, 23.52, 29.93, 27.53, 25.2, 21.88, 16.13, 13.03, 11.67, 15.14, 16.7, 22.56, 30.27, 28.29, 15.91, 12.8, 11.53, 14.73, 16.7, 22.75, 25.7, 26.69, 28.97, 26.71, 23.55, 20.71, 15.08, 12.24, 11.01, 13.61, 15.34, 21.47, 24.31, 25.02, 24.84, 23.22, 20.66, 18.59, 14.06, 11.42, 10.86, 12.36, 12.91, 18.38, 21.07, 21.55, 23.2, 21.39, 19.64, 17.28, 12.83, 10.79, 10.36, 10.94, 10.79, 16.09, 19.76, 24.99, 24.74, 20.86, 17.93, 12.74, 10.53, 8.73, 10.4, 12.34, 19.03, 21.64, 22.47, 26.28, 24.12, 20.75, 16.09, 11.75, 10.92, 14.74, 16.5, 22.88, 25.21, 25.56, 30.15, 28.15, 15.85, 12.7, 11.4, 14.6, 16.54, 22.65, 25.55, 26.55, 32.08, 27.47, 26.71, 22.62, 18.89, 13.7, 13.66, 16.61, 26.14, 28.82, 29.0, 31.67, 28.65, 26.52, 17.43, 13.43, 12.04, 15.96, 24.81, 27.94, 29.02, 31.8, 25.73, 25.16, 21.85, 18.27, 12.95, 12.72, 15.9, 18.22, 25.63, 28.4, 28.86, 28.07, 27.76, 27.66, 28.14, 27.71, 25.37, 25.41, 25.66, 26.27, 27.43, 29.48, 29.67, 28.89, 27.76, 28.74, 28.68, 27.92, 25.31, 26.29, 26.5, 27.38, 29.66, 27.67, 26.87, 27.54, 27.57, 26.44, 23.59, 25.02, 25.46, 26.07, 27.46, 29.25, 28.79, 28.34, 27.14, 28.04, 26.84, 25.94, 23.14, 24.64, 25.34, 26.54, 28.24, 29.44, 28.84, 28.04, 27.23, 28.18, 28.21, 27.04, 24.7, 25.33, 25.95, 26.24, 28.71, 28.08, 26.89, 27.75, 26.6, 25.66, 22.9, 24.37, 25.08, 26.28, 28.03, 29.2, 28.64, 27.66, 27.65, 27.56, 26.43, 23.78, 24.51, 24.73, 26.29, 28.68, 28.95, 28.14, 27.71, 28.01, 28.62, 24.97, 25.24, 25.54, 26.05, 27.93, 29.85, 29.97, 23.79, 24.49, 24.62, 26.79, 28.62, 28.5, 24.42, 25.12, 25.27, 27.42, 29.22, 29.12, 27.7, 28.29, 27.42, 27.83, 28.07, 28.02, 26.93, 24.51, 24.85, 25.36, 25.28, 28.91, 26.22, 29.03, 30.04, 27.58, 28.03, 28.04, 28.1, 26.72, 24.68, 24.67, 24.68, 24.67, 26.25, 28.41, 29.11, 28.67, 27.84, 28.02, 24.64, 23.53, 19.55, 21.89, 22.97, 23.99, 28.06, 30.35, 29.66, 27.96, 27.86, 24.86, 23.46, 19.56, 21.46, 22.16, 23.56, 29.76, 30.45, 28.72, 28.7, 25.68, 24.21, 20.33, 22.25, 22.91, 24.35, 30.5, 30.57, 29.01, 25.2, 24.13, 19.27, 21.76, 22.39, 24.3, 28.88, 31.65, 28.9, 23.54, 20.52, 25.54, 28.81, 29.34, 28.34, 29.18, 25.8, 24.96, 21.04, 22.99, 24.07, 25.73, 29.4, 31.49, 30.6, 28.0, 27.07, 28.13, 25.56, 22.66, 24.1, 24.33, 24.74, 27.16, 29.3, 29.55, 32.94, 30.85, 28.91, 21.78, 16.96, 19.37, 20.56, 21.69, 27.92, 29.22, 30.38, 32.52, 31.3, 29.1, 25.69, 20.37, 20.72, 22.6, 28.18, 31.5, 32.46, 29.54, 28.7, 25.42, 22.24, 17.71, 18.8, 20.26, 22.06, 28.03, 30.18, 30.64, 30.1, 30.39, 23.35, 29.16, 31.2, 31.83, 31.71, 27.69, 24.45, 20.57, 16.91, 12.5, 14.51, 17.4, 24.48, 26.45, 27.69, 32.55, 28.78, 27.36, 24.45, 19.83, 15.63, 11.72, 11.9, 13.58, 15.98, 24.08, 25.15, 27.55, 15.4, 23.17, 25.22, 26.24, 32.25, 28.0, 26.17, 23.09, 20.4, 14.94, 16.15, 17.45, 20.39, 26.67, 28.71, 29.34, 25.45, 20.45, 16.88, 11.82, 13.38, 14.15, 16.71, 24.55, 25.52, 28.91, 20.17, 29.59, 31.05, 30.71, 27.25, 25.1, 20.14, 16.47, 11.91, 12.37, 13.78, 16.66, 24.04, 25.37, 28.39, 31.64, 29.65, 26.35, 20.88, 17.28, 12.84, 14.02, 14.67, 16.97, 29.24, 20.43, 29.83, 31.33, 28.08, 25.26, 22.03, 19.09, 13.82, 11.63, 11.78, 13.27, 13.28, 20.8, 21.71, 23.36, 29.88, 26.31, 23.82, 20.78, 14.96, 13.15, 12.93, 14.53, 15.04, 22.92, 24.37, 25.85, 28.84, 24.43, 21.55, 17.98, 13.8, 9.83, 9.53, 11.55, 14.22, 21.64, 23.39, 24.09, 9.86, 10.38, 11.22, 11.55, 18.54, 19.85, 21.2, 28.07, 24.97, 21.57, 18.79, 14.46, 12.0, 11.86, 13.04, 13.19, 21.19, 22.44, 23.55, 27.64, 24.71, 21.77, 18.71, 13.41, 11.17, 11.48, 12.71, 12.74, 20.12, 21.15, 22.79, 22.83, 25.31, 29.58, 27.46, 23.72, 19.67, 14.17, 10.82, 12.03, 13.18, 14.05, 22.15, 22.8, 24.8, 30.95, 29.6, 25.42, 20.87, 15.22, 11.83, 13.26, 14.21, 15.4, 23.21, 24.34, 26.91, 32.44, 29.33, 25.39, 21.01, 16.01, 12.68, 12.87, 14.52, 15.98, 24.47, 25.41, 27.77, 30.44, 29.08, 24.94, 20.34, 14.69, 11.34, 12.74, 13.69, 14.89, 22.74, 23.83, 26.44, 23.05, 20.29, 18.56, 17.98, 13.95, 11.97, 11.07, 12.88, 12.92, 16.98, 18.4, 18.32, 23.05, 20.23, 23.77, 20.86, 19.47, 17.9, 13.32, 11.71, 12.03, 12.77, 11.4, 16.49, 18.04, 18.49, 24.7, 21.63, 19.53, 16.73, 11.91, 9.8, 10.2, 10.96, 10.4, 17.22, 18.4, 19.04, 25.02, 22.2, 20.39, 18.38, 13.39, 11.5, 11.12, 12.33, 11.65, 17.74, 19.78, 22.15, 11.82, 13.04, 12.29, 18.58, 19.24, 19.24, 21.88, 19.68, 18.4, 17.41, 13.96, 11.65, 11.73, 12.42, 11.94, 16.12, 16.36, 17.07, 21.7, 20.22, 19.41, 17.72, 14.33, 12.92, 12.54, 12.55, 15.68, 16.79, 17.52, 23.73, 21.41, 19.63, 18.83, 14.78, 12.6, 11.97, 13.39, 13.18, 17.95, 18.66, 18.74, 24.91, 22.65, 20.84, 18.64, 14.06, 12.11, 13.46, 12.62, 17.9, 19.48, 20.08, 25.87, 24.0, 20.49, 19.05, 14.91, 12.76, 11.84, 14.02, 13.58, 19.31, 21.39, 21.91, 19.3, 19.1, 18.6, 17.58, 15.24, 13.99, 13.99, 13.83, 12.49, 14.64, 15.55, 16.01, 24.28, 20.79, 19.47, 17.31, 12.77, 10.92, 10.52, 11.4, 10.99, 16.78, 18.5, 18.76, 26.52, 23.67, 21.82, 18.81, 13.82, 11.27, 11.82, 13.12, 12.72, 19.67, 20.42, 21.61, 26.4, 24.17, 17.52, 12.05, 9.38, 10.26, 11.39, 11.17, 19.1, 19.99, 23.16, 20.8, 17.9, 14.3, 9.1, 7.34, 7.73, 8.32, 7.94, 15.14, 16.58, 18.1, 27.22, 24.41, 22.52, 19.57, 14.56, 12.03, 12.49, 13.82, 13.45, 20.39, 21.15, 22.3, 25.21, 23.01, 18.96, 16.48, 10.63, 8.93, 9.58, 10.58, 10.27, 17.44, 18.99, 20.51, 23.57, 20.76, 18.25, 14.62, 10.3, 8.61, 9.06, 9.64, 8.96, 15.75, 16.82, 17.71, 24.53, 21.93, 19.36, 16.1, 11.61, 9.39, 9.78, 10.48, 9.4, 16.61, 17.39, 18.47, 26.12, 23.33, 21.89, 19.04, 14.45, 12.87, 12.91, 13.67, 12.68, 19.05, 19.7, 20.84, 24.55, 21.72, 19.48, 16.61, 12.02, 10.54, 10.87, 11.09, 10.5, 16.41, 18.15, 19.21, 24.27, 21.74, 19.93, 16.96, 12.51, 10.83, 10.97, 11.32, 11.13, 16.63, 18.02, 23.46, 20.9, 19.26, 17.31, 12.79, 10.97, 11.69, 12.24, 11.14, 16.27, 17.68, 18.17, 24.02, 19.72, 12.82, 11.62, 11.97, 11.62, 16.16, 17.87, 21.9, 20.39, 19.17, 16.25, 12.99, 11.34, 11.67, 11.7, 11.26, 15.24, 16.96, 17.5, 20.32, 19.06, 18.29, 16.53, 13.7, 12.39, 12.42, 12.43, 11.45, 14.47, 15.57, 15.9, 19.37, 18.18, 17.2, 15.7, 12.82, 12.22, 12.18, 11.77, 10.54, 13.42, 14.59, 15.25, 19.29, 18.61, 17.95, 17.13, 13.91, 12.78, 12.91, 12.9, 11.42, 13.92, 19.03, 18.68, 17.78, 16.3, 13.53, 12.34, 12.27, 12.22, 11.05, 13.31, 14.78, 15.26, 20.68, 19.57, 18.44, 16.42, 13.77, 12.28, 12.17, 11.91, 11.18, 14.61, 16.01, 16.51, 19.75, 18.09, 17.07, 15.03, 11.54, 10.13, 10.28, 10.09, 9.22, 12.63, 14.58, 15.06, 19.18, 17.98, 17.03, 15.48, 12.63, 12.03, 11.98, 11.58, 10.38, 13.23, 14.38, 15.08, 23.85, 21.35, 19.7, 17.59, 13.35, 11.95, 12.28, 12.96, 11.46, 17.21, 17.86, 18.27, 21.97, 19.82, 17.1, 13.22, 11.39, 11.89, 12.21, 11.11, 16.62, 18.27, 23.88, 20.66, 18.76, 16.41, 12.04, 10.64, 10.98, 11.39, 10.26, 16.09, 17.35, 18.02, 23.26, 20.56, 18.97, 17.13, 12.69, 11.18, 11.72, 12.41, 10.62, 16.41, 17.09, 17.49, 23.17, 20.82, 19.03, 16.8, 12.52, 11.2, 11.77, 11.77, 11.16, 15.9, 17.32, 17.64, 25.23, 22.12, 20.15, 17.83, 13.32, 11.63, 12.16, 12.52, 11.46, 17.3, 18.35, 19.18, 21.31, 19.76, 17.74, 13.23, 11.67, 12.3, 11.2, 17.16, 17.39, 18.57, 22.31, 19.66, 17.34, 14.39, 10.02, 8.67, 9.42, 9.73, 8.75, 15.04, 16.45, 16.55, 24.03, 20.76, 18.61, 15.92, 11.56, 10.09, 10.8, 10.76, 9.76, 15.96, 17.37, 17.82, 22.32, 19.67, 17.32, 14.42, 10.02, 8.67, 9.46, 9.77, 8.77, 15.07, 16.66, 16.57, 22.54, 19.65, 18.02, 16.34, 11.94, 10.2, 10.75, 11.86, 9.93, 15.48, 15.9, 16.66, 21.58, 19.89, 16.69, 14.85, 10.4, 9.25, 10.13, 10.41, 9.49, 13.58, 15.24, 15.98, 22.31, 20.63, 18.09, 16.21, 12.05, 10.8, 11.46, 11.91, 11.16, 14.42, 16.58, 17.47, 20.71, 20.17, 18.45, 17.1, 13.39, 11.58, 12.38, 12.43, 11.64, 14.47, 16.3, 16.64, 20.09, 18.28, 15.61, 13.18, 9.02, 7.58, 8.09, 8.52, 7.64, 14.11, 14.64, 20.14, 17.87, 15.29, 13.75, 9.64, 8.28, 8.91, 9.38, 7.91, 12.86, 14.0, 14.18, 20.43, 18.2, 16.22, 14.69, 10.33, 8.68, 9.31, 10.1, 8.38, 13.29, 14.55, 15.02, 26.2, 23.65, 20.4, 17.52, 12.24, 10.43, 11.24, 12.19, 11.64, 18.23, 19.52, 20.55, 24.3, 22.26, 19.25, 15.95, 11.15, 9.43, 10.33, 10.68, 16.56, 17.98, 19.06, 19.64, 16.8, 11.67, 10.21, 11.15, 11.46, 11.03, 16.94, 18.61, 19.18, 23.22, 20.27, 18.02, 15.86, 10.85, 9.5, 10.05, 10.56, 9.3, 15.44, 16.83, 17.39, 20.96, 19.32, 17.6, 15.81, 9.85, 10.94, 11.06, 11.13, 13.53, 15.57, 16.31, 23.15, 21.21, 19.06, 17.01, 11.93, 10.89, 11.3, 11.6, 11.29, 15.47, 17.19, 18.02, 21.2, 19.04, 12.29, 11.5, 11.46, 15.51, 16.76, 17.69, 22.77, 21.12, 18.53, 15.83, 11.67, 9.74, 10.76, 11.06, 10.12, 14.83, 16.83, 17.21, 23.84, 21.4, 18.65, 15.45, 10.89, 9.3, 10.04, 10.63, 10.17, 15.47, 17.13, 17.89, 17.25, 18.33, 16.2, 14.67, 11.4, 10.1, 10.31, 10.71, 10.25, 13.35, 14.37, 14.44, 21.05, 20.76, 17.45, 14.21, 10.16, 8.44, 9.49, 9.86, 12.45, 14.82, 15.96, 21.4, 20.69, 14.88, 10.99, 9.51, 10.21, 10.55, 9.9, 14.24, 15.91, 16.55, 19.69, 19.28, 17.12, 14.33, 19.35, 19.01, 16.6, 14.31, 10.73, 9.15, 9.66, 10.02, 8.87, 12.33, 14.18, 14.61, 19.22, 19.56, 16.71, 14.49, 10.65, 9.19, 9.68, 9.85, 8.89, 12.11, 14.06, 14.69, 21.67, 21.2, 17.95, 15.01, 11.36, 9.28, 10.58, 10.55, 9.9, 14.24, 16.03, 16.58, 18.29, 18.34, 16.64, 15.01, 12.17, 10.59, 11.48, 11.22, 10.64, 12.7, 14.19, 15.16, 20.55, 20.65, 17.2, 14.28, 11.14, 8.93, 9.47, 10.42, 8.91, 13.32, 15.06, 15.58, 26.51, 26.97, 26.7, 25.93, 23.27, 23.18, 23.85, 24.02, 26.55, 28.17, 28.53, 23.99, 23.88, 24.34, 27.42, 28.44, 29.19, 27.53, 27.74, 27.66, 26.34, 24.43, 23.75, 24.15, 24.97, 26.54, 28.74, 29.23, 26.42, 26.6, 27.29, 27.27, 26.87, 25.94, 25.03, 24.84, 25.89, 26.57, 28.17, 28.3, 24.08, 23.98, 24.43, 27.53, 28.53, 29.28, 27.38, 27.83, 27.46, 26.05, 24.87, 22.71, 22.49, 23.48, 24.07, 29.71, 29.49, 27.08, 27.79, 24.4, 25.94, 28.42, 26.84, 24.7, 21.21, 23.48, 22.92, 30.75, 32.23, 31.97, 24.46, 29.95, 31.4, 31.14, 31.93, 32.07, 29.8, 22.1, 18.29, 19.95, 21.3, 20.68, 28.07, 28.68, 30.1, 31.11, 30.78, 30.74, 28.65, 26.22, 22.28, 24.46, 25.16, 31.9, 31.55, 29.14, 24.62, 21.51, 17.9, 19.66, 20.73, 20.13, 27.26, 27.9, 31.43, 29.39, 25.04, 21.81, 17.48, 19.93, 20.47, 21.43, 28.24, 29.35, 30.38, 30.54, 29.68, 27.56, 23.48, 20.42, 16.22, 18.03, 19.44, 20.02, 26.67, 28.3, 28.61, 30.95, 30.27, 27.91, 23.21, 20.1, 15.65, 18.18, 25.98, 27.74, 28.74, 29.03, 29.61, 29.3, 27.37, 25.34, 21.93, 22.94, 24.21, 23.51, 28.63, 30.53, 30.06, 31.12, 28.56, 24.46, 22.07, 18.14, 19.45, 20.73, 26.88, 29.17, 30.53, 26.39, 26.88, 25.73, 23.7, 22.44, 19.23, 19.06, 21.01, 21.41, 28.22, 28.97, 30.84, 31.45, 29.29, 24.72, 22.03, 18.08, 19.77, 21.35, 20.57, 27.64, 28.7, 29.83, 27.14, 27.81, 27.08, 25.71, 24.2, 22.23, 22.11, 22.92, 22.75, 24.79, 26.27, 28.11, 27.3, 28.0, 27.8, 26.34, 25.36, 23.35, 23.01, 23.66, 23.95, 26.13, 27.45, 28.48, 22.45, 22.57, 22.04, 19.75, 18.76, 15.83, 16.82, 17.48, 20.54, 22.87, 24.27, 23.2, 23.03, 22.24, 19.91, 19.15, 17.19, 16.51, 16.92, 17.28, 20.25, 22.92, 24.44, 27.48, 26.5, 25.19, 23.26, 23.36, 24.69, 25.96, 27.58, 28.46, 26.03, 24.94, 20.44, 23.14, 27.07, 27.43, 26.52, 25.56, 23.68, 21.95, 20.83, 22.07, 23.46, 25.19, 26.84, 27.65, 24.3, 24.34, 23.44, 21.61, 20.92, 18.77, 18.25, 19.85, 22.4, 24.71, 25.96, 26.9, 27.66, 26.63, 24.89, 28.08, 28.0, 26.72, 25.23, 23.69, 20.81, 20.03, 21.2, 23.16, 24.97, 28.84, 26.12, 26.59, 25.87, 24.1, 22.82, 20.74, 20.13, 20.84, 20.75, 23.27, 24.87, 27.08, 26.47, 23.98, 22.49, 20.53, 20.06, 20.89, 20.52, 23.42, 25.42, 27.65, 26.06, 26.06, 25.24, 23.4, 22.25, 20.2, 19.58, 20.46, 20.65, 23.25, 25.1, 27.14, 27.97, 27.98, 27.42, 25.48, 23.82, 20.89, 20.97, 22.03, 22.1, 24.82, 27.05, 28.29, 18.01, 20.11, 24.42, 26.68, 26.36, 24.77, 22.41, 20.78, 17.2, 17.69, 18.75, 18.71, 22.35, 24.83, 26.88, 27.85, 27.43, 25.64, 24.65, 22.4, 20.22, 19.98, 20.72, 21.86, 24.21, 26.82, 27.63, 27.76, 27.63, 25.94, 24.06, 21.7, 18.42, 19.05, 19.97, 19.14, 21.46, 23.76, 27.14, 27.0, 26.26, 24.61, 22.26, 19.92, 16.69, 17.3, 18.41, 18.3, 22.08, 24.44, 28.27, 29.05, 26.89, 24.56, 22.67, 19.3, 19.47, 20.72, 20.98, 24.45, 27.67, 29.93, 27.39, 27.14, 25.75, 23.47, 21.28, 17.88, 18.34, 19.16, 19.7, 23.35, 25.85, 27.32, 27.52, 27.37, 25.72, 23.82, 21.47, 18.17, 18.81, 19.76, 18.92, 21.22, 23.52, 26.92, 28.03, 28.54, 26.56, 24.09, 22.08, 18.13, 18.62, 20.46, 21.06, 24.64, 27.53, 29.54, 28.87, 29.37, 27.37, 24.87, 22.87, 18.92, 19.42, 21.27, 21.87, 25.47, 28.37, 30.32, 28.27, 28.96, 26.05, 22.44, 19.88, 15.32, 16.23, 18.57, 18.8, 23.14, 26.34, 28.5, 29.15, 29.16, 26.75, 23.05, 20.15, 15.97, 17.11, 18.83, 19.28, 23.67, 26.6, 28.84, 28.47, 16.02, 17.85, 17.69, 22.83, 25.93, 29.23, 29.32, 25.75, 21.15, 17.38, 12.43, 13.99, 16.16, 15.67, 23.15, 24.78, 27.19, 28.83, 29.18, 26.47, 21.61, 18.93, 14.18, 16.56, 23.05, 31.08, 30.92, 27.8, 23.46, 19.95, 15.55, 17.28, 19.68, 19.01, 25.44, 27.58, 28.73, 32.49, 31.9, 28.4, 19.08, 18.91, 25.89, 29.22, 32.18, 31.9, 28.87, 24.03, 20.0, 16.02, 17.68, 19.94, 19.42, 26.14, 28.14, 29.42, 32.13, 31.6, 28.67, 23.74, 19.71, 15.59, 17.48, 19.62, 19.12, 26.08, 27.73, 29.22, 29.49, 29.21, 26.81, 22.83, 20.58, 16.37, 17.08, 19.0, 24.02, 27.61, 29.3, 31.02, 30.56, 27.08, 22.43, 19.09, 14.76, 16.21, 18.23, 17.63, 24.52, 26.68, 28.1, 30.93, 30.43, 27.43, 22.53, 18.53, 14.33, 16.23, 18.43, 17.93, 24.83, 26.53, 28.03, 32.38, 31.28, 28.97, 24.45, 21.36, 16.99, 19.55, 20.47, 21.3, 28.3, 30.06, 30.58, 33.22, 32.44, 28.91, 23.09, 19.5, 15.12, 17.16, 17.82, 19.21, 26.87, 27.6, 29.97, 32.01, 32.0, 29.02, 24.06, 20.1, 16.44, 18.48, 20.22, 19.85, 26.56, 28.23, 29.79, 33.59, 32.69, 27.83, 22.52, 17.6, 13.44, 14.84, 26.46, 29.66, 28.23, 30.2, 33.89, 32.79, 28.54, 22.21, 18.45, 13.89, 15.46, 17.22, 17.47, 26.2, 26.58, 29.54, 28.73, 28.3, 25.59, 22.23, 19.9, 15.74, 16.64, 18.25, 18.6, 22.55, 25.68, 27.81, 27.96, 27.33, 25.46, 21.7, 19.01, 15.2, 15.94, 17.16, 16.35, 21.62, 24.9, 27.11, 23.67, 23.74, 21.05, 16.68, 14.12, 14.72, 16.04, 15.79, 18.36, 26.18, 24.71, 22.72, 20.15, 17.04, 17.34, 18.61, 18.16, 21.33, 23.77, 25.92, 25.33, 23.98, 22.24, 19.8, 17.42, 17.38, 18.51, 18.29, 21.11, 23.88, 25.24, 26.77, 25.54, 24.22, 22.66, 19.97, 17.8, 17.98, 18.93, 19.64, 21.68, 24.42, 25.51, 26.74, 26.32, 24.85, 20.09, 17.38, 19.07, 18.76, 21.67, 24.42, 25.94, 27.97, 26.8, 25.08, 21.54, 19.29, 15.11, 15.85, 17.48, 17.2, 21.6, 23.97, 26.75, 25.63, 25.06, 23.15, 19.61, 16.77, 12.66, 13.19, 15.3, 14.68, 19.46, 26.82, 26.24, 25.48, 24.13, 21.48, 19.1, 19.37, 20.1, 19.65, 22.1, 24.04, 26.26, 26.86, 19.41, 16.45, 18.06, 21.11, 28.26, 27.88, 25.46, 23.03, 20.72, 17.17, 18.21, 19.54, 19.52, 22.93, 26.3, 27.78, 26.33, 25.84, 24.91, 23.76, 20.95, 18.56, 18.88, 19.76, 19.29, 22.09, 23.6, 25.6, 26.4, 24.26, 20.57, 18.04, 14.05, 14.47, 16.43, 16.51, 20.98, 23.87, 26.31, 27.64, 26.68, 25.71, 24.11, 21.61, 19.28, 19.45, 20.1, 20.23, 22.73, 25.99, 28.52, 27.48, 25.12, 23.46, 20.73, 17.89, 18.39, 20.05, 20.1, 22.46, 25.61, 26.74, 26.06, 25.28, 24.03, 21.95, 19.47, 16.6, 16.81, 18.07, 17.72, 20.7, 23.24, 25.62, 28.43, 26.34, 20.51, 20.21, 21.26, 21.01, 23.67, 25.69, 26.96, 26.12, 25.26, 23.43, 20.45, 18.01, 13.88, 14.1, 15.42, 15.32, 19.61, 22.22, 25.38, 24.21, 25.93, 25.35, 24.83, 23.25, 20.29, 17.87, 18.39, 18.79, 18.22, 21.2, 23.18, 24.79, 25.66, 15.03, 16.52, 15.78, 20.22, 23.05, 25.0, 24.85, 23.72, 21.69, 18.26, 15.92, 11.69, 12.23, 13.82, 13.22, 18.38, 20.77, 23.77, 26.45, 25.62, 24.01, 21.84, 19.37, 16.15, 16.52, 17.71, 17.21, 20.78, 23.27, 25.13, 24.79, 12.86, 19.31, 21.64, 26.95, 25.69, 23.65, 21.22, 17.83, 14.24, 14.5, 15.8, 15.91, 19.47, 22.03, 25.08, 24.88, 24.38, 23.28, 21.12, 18.69, 15.79, 16.11, 17.05, 15.76, 19.59, 21.45, 24.23, 22.36, 21.68, 19.91, 18.61, 15.45, 13.01, 13.4, 14.4, 13.47, 16.89, 18.99, 21.64, 25.03, 24.02, 22.73, 20.91, 18.12, 15.12, 15.17, 16.65, 16.4, 19.18, 22.04, 24.34, 25.31, 24.37, 23.2, 21.08, 18.38, 15.48, 15.62, 16.85, 16.21, 19.45, 21.37, 23.98, 25.5, 24.85, 23.65, 19.15, 15.67, 25.87, 25.25, 24.1, 21.68, 19.58, 16.44, 16.91, 17.68, 17.27, 20.35, 22.9, 25.17, 24.86, 24.93, 22.55, 19.9, 18.52, 14.86, 15.25, 16.41, 15.58, 19.39, 21.9, 24.93, 24.63, 23.13, 20.86, 18.56, 15.52, 15.92, 16.75, 15.73, 19.29, 21.05, 27.42, 24.98, 21.49, 18.75, 15.07, 15.88, 17.34, 17.12, 21.09, 23.48, 26.2, 25.97, 24.92, 23.37, 20.29, 13.53, 13.54, 15.29, 14.93, 19.42, 21.62, 25.89, 24.69, 24.49, 22.99, 20.69, 18.39, 15.39, 15.69, 16.59, 15.59, 19.09, 20.89, 25.3, 24.4, 23.25, 21.15, 18.4, 15.5, 15.65, 16.9, 16.25, 19.45, 21.4, 24.05, 24.54, 23.43, 21.39, 17.94, 15.63, 11.38, 11.89, 13.54, 12.89, 18.09, 20.44, 23.49, 23.62, 23.14, 10.76, 13.01, 11.09, 17.85, 19.75, 26.6, 25.7, 29.05, 28.24, 25.32, 20.32, 16.4, 12.34, 12.81, 14.58, 13.33, 20.8, 21.55, 25.63, 22.84, 21.33, 17.74, 15.13, 10.73, 10.83, 12.54, 11.84, 17.24, 19.12, 23.77, 23.17, 22.29, 14.95, 11.1, 12.33, 11.3, 16.84, 19.11, 24.6, 23.82, 15.49, 12.02, 13.92, 12.65, 18.72, 20.58, 23.28, 21.23, 20.41, 18.91, 14.65, 11.83, 8.1, 8.32, 10.71, 9.28, 15.24, 16.42, 20.66, 11.4, 12.61, 14.28, 12.68, 19.57, 20.48, 24.85, 20.98, 17.85, 14.92, 10.97, 11.5, 13.45, 12.62, 16.99, 19.13, 23.06, 21.0, 20.25, 15.55, 12.35, 8.95, 14.64, 16.67, 20.78, 19.96, 18.56, 14.97, 12.11, 8.38, 8.31, 10.53, 9.55, 14.92, 16.46, 20.42, 24.06, 23.2, 21.63, 18.17, 15.46, 11.04, 11.55, 13.19, 12.14, 17.82, 19.43, 23.86, 23.55, 22.65, 21.15, 17.54, 14.95, 10.55, 10.65, 12.4, 11.65, 17.1, 18.95, 23.6, 26.91, 27.12, 24.46, 19.35, 16.58, 11.83, 12.48, 14.15, 14.0, 21.25, 26.25, 28.77, 29.34, 25.39, 28.41, 29.01, 25.68, 20.63, 17.42, 12.6, 13.7, 15.0, 15.41, 22.4, 23.27, 26.86, 30.41, 29.78, 26.45, 21.04, 17.2, 13.0, 13.97, 15.83, 15.23, 22.6, 23.26, 27.05, 28.6, 28.94, 25.78, 16.25, 12.09, 14.68, 14.32, 21.61, 21.99, 25.93, 29.42, 28.82, 25.52, 20.12, 16.22, 12.12, 13.02, 14.92, 14.32, 21.62, 22.32, 26.12, 30.83, 30.26, 26.07, 20.01, 16.33, 13.46, 14.42, 14.29, 22.95, 23.75, 27.75, 29.79, 30.1, 25.36, 19.87, 16.43, 11.92, 13.42, 14.91, 15.13, 23.28, 24.7, 27.29, 31.72, 30.93, 25.89, 20.7, 16.35, 12.78, 14.15, 15.28, 15.23, 23.79, 24.07, 32.28, 32.07, 27.61, 21.91, 17.89, 13.55, 14.95, 16.78, 16.92, 25.07, 26.65, 29.16, 32.6, 31.96, 27.16, 21.48, 17.41, 13.34, 16.3, 16.72, 24.89, 25.81, 29.23, 32.95, 32.1, 26.93, 21.61, 16.97, 13.3, 14.36, 15.47, 15.92, 24.9, 25.31, 29.04, 33.06, 31.11, 27.01, 21.76, 17.11, 13.41, 14.46, 15.61, 16.01, 25.01, 25.41, 29.16, 31.02, 29.8, 25.34, 20.06, 14.96, 11.73, 13.01, 14.07, 14.33, 22.82, 23.96, 26.74, 29.44, 28.64, 23.13, 18.82, 12.76, 10.28, 11.66, 12.87, 12.71, 21.16, 22.25, 28.52, 27.91, 22.9, 18.5, 12.57, 9.93, 11.23, 12.49, 12.61, 20.37, 21.9, 24.53, 31.53, 30.28, 25.78, 20.53, 15.43, 12.18, 13.48, 14.53, 14.78, 23.28, 24.42, 27.23, 28.57, 27.82, 22.92, 19.26, 12.37, 11.07, 12.12, 12.17, 20.42, 22.22, 24.77, 30.01, 29.16, 23.66, 19.36, 13.31, 10.8, 12.16, 13.41, 13.26, 21.71, 22.76, 27.11, 25.44, 21.06, 18.38, 12.36, 10.52, 12.07, 13.09, 12.37, 19.35, 20.35, 22.94, 26.06, 23.85, 20.55, 17.15, 11.9, 10.12, 11.11, 11.82, 11.71, 17.99, 19.87, 20.92, 27.55, 12.85, 12.29, 12.89, 13.14, 20.32, 27.06, 26.34, 21.12, 17.23, 11.55, 8.72, 10.3, 11.55, 12.16, 21.0, 23.56, 26.54, 24.84, 20.44, 17.74, 11.74, 9.94, 11.44, 12.44, 11.74, 18.74, 19.74, 22.34, 30.33, 29.45, 19.51, 14.91, 12.36, 12.89, 14.14, 14.01, 22.35, 22.66, 26.36, 30.13, 28.58, 14.6, 11.31, 11.72, 13.01, 21.43, 21.88, 25.69, 29.46, 28.04, 22.97, 18.67, 13.34, 10.46, 11.56, 12.88, 12.05, 20.2, 21.55, 24.7, 28.8, 27.4, 22.3, 18.0, 12.7, 9.8, 10.9, 12.2, 11.4, 19.5, 20.9, 24.0, 24.22, 10.87, 9.86, 10.98, 10.59, 17.51, 18.51, 26.06, 23.69, 19.78, 15.75, 10.89, 8.87, 9.9, 10.85, 10.51, 17.17, 18.52, 20.25, 27.88, 26.61, 21.72, 17.23, 12.11, 9.45, 10.45, 11.76, 11.58, 19.09, 20.59, 22.91, 11.76, 10.06, 13.16, 27.56, 26.05, 22.3, 17.18, 12.07, 9.34, 9.76, 11.03, 10.75, 18.19, 19.84, 22.87, 26.95, 26.04, 22.84, 18.04, 13.16, 10.87, 10.51, 12.38, 10.57, 17.75, 22.22, 27.55, 22.25, 11.65, 9.1, 10.25, 27.09, 25.92, 22.26, 18.23, 12.42, 9.12, 9.78, 11.13, 10.81, 18.14, 19.68, 22.5, 28.75, 26.84, 23.81, 18.06, 13.76, 10.73, 11.18, 12.59, 11.74, 19.56, 20.51, 23.7, 25.59, 22.66, 13.18, 9.93, 10.27, 11.94, 10.53, 18.0, 19.39, 22.22, 28.5, 26.96, 23.0, 17.39, 12.6, 9.72, 10.32, 11.74, 11.3, 18.73, 19.99, 23.95, 30.04, 28.11, 24.51, 14.12, 11.21, 12.71, 12.02, 20.28, 21.25, 28.23, 26.96, 23.15, 17.56, 13.08, 10.02, 10.45, 12.17, 10.97, 18.51, 20.01, 22.78, 28.46, 27.11, 22.89, 17.44, 12.71, 10.03, 10.23, 11.63, 10.51, 18.38, 19.49, 22.61, 29.33, 26.15, 15.87, 13.14, 15.02, 14.09, 22.07, 22.59, 26.44, 31.05, 29.37, 25.47, 19.72, 15.3, 12.05, 12.59, 14.23, 13.36, 21.36, 22.54, 26.0, 27.74, 26.1, 23.31, 17.21, 13.27, 9.96, 10.49, 12.36, 10.6, 18.61, 19.23, 23.19, 27.95, 26.97, 24.4, 18.72, 14.19, 10.94, 11.43, 13.12, 11.96, 19.2, 20.2, 24.26, 28.83, 27.94, 25.12, 19.6, 14.79, 11.2, 11.96, 13.81, 12.36, 20.65, 20.85, 25.06, 28.77, 27.92, 25.12, 19.56, 14.76, 11.17, 11.92, 13.82, 12.37, 20.62, 20.82, 25.02, 24.74, 24.0, 22.22, 16.48, 12.3, 8.75, 9.28, 10.92, 9.72, 16.94, 17.76, 21.04, 26.34, 14.55, 11.75, 13.79, 11.64, 19.26, 26.26, 25.68, 23.59, 14.01, 10.21, 12.38, 18.69, 19.81, 27.04, 24.43, 23.62, 18.28, 14.13, 11.11, 11.0, 13.28, 11.5, 18.83, 19.61, 22.88, 27.17, 25.22, 23.28, 18.33, 13.56, 10.95, 10.83, 13.22, 11.62, 18.53, 19.47, 22.93, 25.98, 24.18, 21.98, 16.46, 12.1, 10.05, 10.04, 11.88, 10.73, 16.72, 18.47, 22.19, 25.59, 24.03, 22.41, 17.48, 12.89, 9.99, 10.15, 12.17, 10.41, 17.16, 18.61, 21.99, 21.53, 20.23, 18.69, 14.84, 10.94, 8.02, 7.81, 9.75, 8.07, 14.31, 15.31, 18.91, 23.75, 23.01, 21.27, 12.05, 8.83, 10.88, 9.07, 16.02, 17.42, 20.12, 20.51, 19.31, 18.14, 14.62, 10.7, 7.73, 7.74, 9.57, 7.76, 13.96, 14.68, 18.28, 17.54, 8.73, 6.18, 7.99, 12.1, 12.83, 16.38, 23.35, 22.54, 21.1, 16.3, 12.37, 9.0, 9.18, 10.77, 9.28, 16.07, 17.1, 20.65, 13.2, 9.92, 10.47, 12.41, 10.25, 16.66, 17.7, 21.18, 22.25, 21.08, 19.81, 15.95, 11.37, 8.24, 8.88, 11.02, 9.28, 15.14, 16.08, 19.47, 19.69, 18.52, 17.12, 13.79, 10.5, 8.15, 8.03, 9.19, 8.31, 14.06, 14.83, 18.88, 18.42, 16.77, 12.15, 5.97, 5.82, 7.65, 6.44, 12.9, 14.11, 16.49, 20.01, 17.31, 16.42, 14.21, 9.56, 7.61, 7.37, 9.26, 12.99, 14.58, 17.71, 16.44, 12.85, 9.88, 7.11, 21.84, 17.79, 19.21, 24.99, 23.79, 22.01, 19.42, 16.75, 13.27, 13.12, 15.21, 14.94, 18.51, 20.79, 23.73, 24.08, 22.9, 17.37, 14.41, 16.02, 19.63, 25.33, 23.94, 22.2, 19.97, 17.63, 13.54, 14.33, 15.27, 18.89, 20.81, 23.67, 26.16, 24.12, 23.0, 14.12, 13.64, 15.77, 15.35, 19.15, 21.39, 24.46, 24.11, 23.0, 22.09, 20.43, 17.49, 14.41, 14.4, 15.71, 15.28, 18.33, 20.4, 23.09, 25.74, 23.87, 23.14, 19.69, 16.31, 13.55, 13.37, 15.32, 14.74, 18.94, 20.8, 23.67, 23.79, 23.38, 22.88, 21.66, 17.76, 15.67, 15.91, 16.67, 16.04, 18.47, 20.35, 22.66, 23.8, 22.63, 22.02, 19.27, 16.22, 13.73, 13.49, 15.41, 14.4, 18.15, 19.87, 22.41, 22.31, 21.98, 21.17, 18.77, 15.68, 13.57, 13.24, 14.6, 14.11, 16.98, 18.72, 20.92, 24.63, 23.12, 22.36, 19.22, 15.54, 13.56, 12.8, 14.73, 14.24, 18.05, 19.86, 22.41, 22.31, 21.45, 18.59, 14.42, 12.22, 11.75, 13.7, 13.22, 17.2, 18.84, 21.28, 24.26, 21.73, 20.26, 15.13, 10.83, 9.24, 8.47, 10.95, 9.5, 15.06, 17.14, 17.28, 19.27, 21.64, 23.29, 21.21, 20.86, 19.01, 15.51, 13.32, 12.8, 14.74, 13.77, 17.17, 18.88, 21.18, 26.44, 23.51, 22.06, 17.61, 12.76, 11.26, 9.88, 12.64, 12.29, 16.72, 19.54, 23.08, 23.86, 21.6, 24.07, 22.29, 21.76, 18.41, 14.76, 12.57, 11.71, 13.68, 13.09, 17.2, 19.12, 21.75, 26.58, 23.88, 22.02, 17.92, 13.74, 11.59, 10.52, 13.17, 12.15, 17.02, 19.47, 22.79, 23.11, 21.43, 20.63, 17.96, 13.92, 12.04, 11.41, 13.47, 12.88, 16.39, 18.54, 20.86, 25.58, 23.14, 21.61, 17.77, 13.08, 11.01, 10.19, 12.45, 11.64, 16.69, 19.23, 22.71, 24.25, 22.38, 21.71, 19.07, 15.7, 13.23, 12.78, 14.82, 13.85, 17.68, 19.56, 22.25, 25.42, 22.37, 17.3, 13.4, 11.09, 10.14, 13.37, 12.16, 16.21, 19.32, 15.0, 14.04, 17.03, 18.81, 20.94, 19.07, 22.09, 14.67, 13.77, 16.72, 18.52, 20.52, 24.57, 23.05, 20.37, 15.5, 11.36, 8.94, 8.38, 10.88, 9.81, 15.38, 17.57, 20.56, 22.01, 18.11, 13.21, 9.43, 6.63, 8.76, 7.8, 12.92, 14.93, 16.67, 21.99, 20.37, 17.75, 12.3, 8.98, 6.6, 5.62, 8.27, 7.6, 12.83, 14.29, 17.03, 22.24, 9.2, 6.24, 8.14, 24.59, 23.57, 20.75, 15.52, 10.99, 8.58, 8.55, 10.63, 9.33, 15.51, 17.29, 19.93, 17.88, 17.36, 10.32, 6.4, 4.34, 4.33, 5.98, 4.49, 10.19, 11.38, 13.2, 20.75, 18.87, 16.65, 11.85, 8.18, 6.54, 5.11, 7.9, 7.45, 12.11, 14.11, 16.88, 18.11, 11.9, 8.08, 5.29, 5.01, 7.24, 6.62, 11.09, 13.15, 15.73, 20.3, 19.33, 16.72, 12.32, 8.33, 5.76, 6.27, 7.77, 5.91, 12.19, 13.42, 15.99, 6.62, 10.77, 13.23, 16.05, 17.03, 15.53, 12.16, 9.35, 5.66, 5.65, 7.11, 12.65, 18.34, 16.89, 20.3, 20.31, 18.04, 12.81, 9.17, 6.39, 8.51, 6.94, 11.82, 16.25, 19.9, 18.9, 16.3, 11.4, 7.4, 5.3, 5.4, 7.1, 5.8, 11.6, 13.0, 15.1, 24.64, 22.67, 20.07, 14.68, 10.44, 7.77, 8.06, 10.04, 9.18, 15.89, 16.79, 20.22, 25.85, 24.45, 21.57, 16.22, 12.51, 9.16, 9.37, 10.99, 9.9, 16.66, 18.36, 21.48, 23.68, 11.28, 16.12, 26.37, 25.2, 21.82, 16.47, 12.23, 9.54, 9.68, 11.53, 9.96, 17.17, 18.66, 21.62, 25.74, 24.82, 22.05, 16.62, 11.99, 9.39, 9.7, 11.04, 10.54, 17.17, 18.94, 21.4, 22.98, 20.15, 7.3, 8.09, 14.28, 16.5, 25.73, 24.21, 21.46, 16.42, 11.52, 9.12, 9.48, 17.97, 20.91, 25.92, 24.7, 21.89, 16.31, 11.79, 9.31, 11.03, 9.73, 16.74, 18.13, 21.09, 25.52, 24.1, 21.41, 15.9, 11.67, 9.17, 9.33, 11.15, 9.46, 16.24, 17.6, 21.2, 24.29, 19.99, 14.75, 10.56, 7.82, 8.07, 9.57, 8.78, 14.7, 17.02, 19.17, 24.35, 23.85, 20.05, 14.8, 10.6, 7.9, 8.15, 9.6, 8.9, 14.75, 17.1, 19.2, 23.97, 22.59, 21.61, 19.0, 15.14, 12.91, 12.42, 14.48, 13.87, 17.17, 18.96, 21.42, 23.82, 22.51, 21.84, 19.82, 15.85, 13.48, 13.47, 15.06, 14.37, 17.37, 19.33, 21.9, 20.62, 18.45, 14.18, 11.85, 11.95, 13.51, 12.7, 16.09, 17.84, 20.57, 23.0, 21.25, 20.46, 18.0, 13.75, 11.42, 11.36, 13.35, 12.57, 15.92, 17.87, 23.41, 22.02, 21.17, 18.59, 14.91, 12.51, 12.24, 14.16, 13.6, 16.72, 18.57, 21.01, 23.6, 22.2, 21.28, 18.13, 14.12, 11.74, 11.2, 12.92, 13.16, 16.57, 18.66, 21.41, 22.85, 21.36, 20.61, 18.53, 15.07, 11.76, 13.83, 13.1, 16.43, 18.17, 20.6, 24.0, 22.49, 21.25, 17.53, 13.35, 11.11, 9.99, 12.94, 12.78, 18.93, 18.82, 14.45, 12.67, 12.64, 14.62, 13.28, 16.86, 19.06, 21.97, 24.47, 22.78, 21.57, 17.96, 13.58, 10.93, 10.07, 13.18, 12.87, 16.41, 19.23, 22.12, 23.69, 22.42, 21.42, 18.17, 14.2, 11.85, 11.31, 13.43, 13.13, 16.55, 18.67, 21.37, 23.93, 22.17, 21.27, 17.94, 12.92, 11.82, 10.45, 13.14, 12.62, 16.31, 18.6, 21.32, 21.82, 20.89, 20.24, 18.65, 15.05, 12.89, 12.78, 13.74, 13.03, 15.93, 16.96, 19.06, 20.97, 19.4, 17.51, 13.92, 9.62, 7.61, 7.4, 9.06, 8.28, 12.44, 14.56, 17.21, 23.21, 21.97, 20.38, 16.95, 12.32, 10.64, 9.75, 11.66, 11.56, 15.38, 17.72, 20.01, 22.41, 21.34, 21.06, 19.93, 16.2, 14.23, 14.38, 14.84, 14.24, 16.66, 18.16, 20.38, 22.24, 20.94, 20.04, 18.09, 14.24, 11.59, 11.74, 12.79, 12.49, 15.08, 17.09, 19.34, 22.3, 21.0, 20.09, 18.18, 14.29, 11.63, 11.8, 12.84, 12.56, 15.16, 17.15, 19.39, 21.29, 20.84, 19.95, 17.96, 13.77, 9.87, 8.17, 7.77, 9.53, 8.7, 14.72, 17.23, 21.74, 21.22, 19.57, 16.15, 12.09, 9.49, 9.43, 11.24, 11.19, 21.18, 19.51, 17.86, 13.76, 9.12, 7.01, 6.81, 8.76, 8.75, 12.99, 14.75, 16.83, 19.76, 19.7, 17.9, 15.02, 12.79, 13.05, 13.04, 12.84, 14.8, 16.25, 17.73, 12.09, 14.68, 16.05, 19.1, 18.0, 15.8, 12.29, 7.28, 5.01, 5.21, 7.09, 6.03, 11.02, 12.7, 14.33, 19.53, 13.63, 10.93, 12.13, 14.78, 11.85, 14.43, 15.93, 16.6, 11.16, 11.28, 14.1, 15.84, 11.19, 11.29, 14.09, 15.89, 14.02, 14.87, 21.68, 20.43, 18.16, 12.52, 7.97, 5.21, 5.91, 7.13, 7.3, 12.64, 14.73, 16.46, 21.41, 20.04, 17.85, 12.72, 8.18, 5.58, 5.99, 7.66, 7.43, 12.88, 14.55, 16.57, 19.27, 7.73, 4.77, 7.23, 7.27, 9.24, 8.31, 13.97, 15.75, 18.24, 17.46, 16.69, 14.24, 10.16, 5.57, 3.13, 3.49, 5.28, 5.11, 9.83, 11.03, 12.66, 19.79, 18.85, 16.63, 8.21, 5.86, 5.75, 7.76, 6.63, 11.32, 13.31, 15.2, 22.48, 21.11, 18.56, 13.15, 8.93, 6.18, 6.68, 8.68, 8.27, 13.53, 17.16, 18.04, 17.53, 14.75, 10.18, 5.48, 3.38, 3.62, 5.05, 5.4, 10.41, 12.0, 13.5, 18.31, 17.59, 15.14, 10.78, 6.28, 4.02, 4.34, 5.88, 5.54, 10.58, 12.29, 13.78, 22.1, 18.08, 16.89, 14.61, 10.76, 6.17, 4.12, 4.48, 5.74, 4.91, 9.98, 11.81, 13.37, 20.03, 18.62, 16.05, 11.89, 7.23, 4.45, 22.25, 21.05, 18.75, 13.15, 8.55, 5.85, 6.55, 7.75, 7.95, 13.25, 15.35, 17.05, 16.54, 7.4, 2.05, 2.8, 3.8, 9.85, 11.7, 8.88, 5.31, 1.61, -0.86, 0.21, -1.4, 7.13, 14.01, 13.96, 10.84, 6.9, 2.68, 1.0, 0.34, 2.8, 0.95, 12.86, 11.99, 9.09, 5.08, 1.68, -1.64, -2.12, -0.59, -1.81, 19.36, 9.79, 7.35, 8.95, 22.02, 21.73, 8.9, 6.62, 6.14, 8.15, 7.51, 13.81, 14.93, 24.83, 23.95, 19.79, 14.72, 10.33, 7.36, 8.44, 9.67, 9.35, 15.5, 17.22, 18.57, 23.07, 22.71, 19.43, 9.79, 7.1, 7.23, 8.83, 7.77, 15.22, 17.73, 20.39, 20.52, 17.2, 5.54, 7.13, 14.55, 22.88, 22.72, 19.34, 13.9, 9.9, 7.52, 7.81, 9.76, 9.12, 14.84, 16.77, 18.44, 21.41, 21.48, 18.67, 13.13, 9.46, 6.45, 7.05, 8.91, 8.21, 15.63, 17.14, 22.53, 22.58, 18.83, 13.8, 8.66, 5.21, 6.61, 8.88, 8.93, 14.75, 16.24, 17.32, 16.06, 15.62, 12.57, 8.22, 3.95, 1.99, 1.65, 3.33, 1.18, 8.68, 9.06, 10.82, 25.52, 24.47, 20.89, 15.27, 10.37, 7.71, 8.2, 9.4, 8.89, 15.39, 17.45, 19.68, 22.65, 22.31, 19.84, 14.07, 9.95, 7.16, 7.23, 9.41, 8.31, 14.36, 16.11, 17.94, 24.83, 23.51, 20.42, 14.58, 9.75, 7.65, 7.56, 9.3, 9.13, 15.05, 17.22, 19.06, 8.31, 14.9, 16.54, 19.21, 19.9, 9.86, 8.25, 25.99, 24.52, 16.32, 11.27, 9.15, 9.2, 10.56, 9.49, 16.46, 18.23, 20.79, 24.93, 23.54, 20.44, 9.95, 7.88, 8.29, 9.66, 8.89, 14.95, 17.36, 19.29, 25.78, 24.51, 21.32, 16.21, 11.21, 8.71, 8.89, 10.19, 22.89, 19.91, 14.33, 10.2, 7.96, 7.79, 9.41, 8.87, 14.56, 16.69, 18.2, 25.0, 23.7, 20.6, 14.75, 9.89, 7.85, 7.75, 9.5, 9.3, 15.25, 17.4, 19.25, 25.33, 24.07, 15.51, 10.58, 7.96, 8.16, 9.45, 8.84, 15.69, 17.92, 20.19, 24.57, 10.51, 8.77, 10.92, 10.56, 15.92, 16.72, 20.45, 25.78, 24.49, 15.56, 11.15, 8.07, 8.62, 10.32, 9.81, 16.24, 18.04, 20.05, 25.49, 23.96, 15.08, 10.58, 8.25, 8.91, 9.71, 9.26, 16.1, 17.7, 19.78, 25.77, 24.38, 16.47, 11.67, 9.16, 9.49, 10.66, 10.24, 17.16, 19.12, 21.53, 25.03, 23.53, 15.52, 11.12, 8.7, 9.19, 10.82, 9.61, 27.13, 20.58, 11.12, 8.53, 10.18, 9.63, 24.94, 23.76, 20.54, 15.24, 10.38, 7.68, 8.04, 9.6, 8.94, 15.48, 19.59, 25.38, 24.1, 19.92, 15.76, 11.14, 8.58, 9.14, 10.61, 9.85, 16.69, 18.15, 20.11, 25.43, 24.16, 20.01, 15.71, 11.17, 8.69, 9.14, 10.3, 9.99, 16.76, 18.59, 20.46, 26.62, 24.72, 20.18, 16.21, 11.6, 9.87, 9.88, 10.98, 17.44, 18.93, 21.35, 27.25, 25.96, 21.26, 16.84, 11.53, 9.28, 9.99, 11.13, 10.46, 17.89, 19.43, 21.85, 27.0, 25.3, 11.4, 9.6, 9.8, 11.2, 10.55, 17.45, 19.4, 25.76, 23.89, 20.4, 16.95, 12.11, 9.99, 11.08, 12.04, 11.38, 17.86, 19.08, 20.46, 25.76, 23.54, 19.85, 16.7, 11.7, 9.81, 10.68, 11.6, 11.03, 17.43, 18.94, 20.47, 26.31, 23.83, 19.78, 16.41, 11.62, 9.58, 10.75, 10.96, 11.08, 17.22, 18.94, 20.22, 25.8, 23.17, 19.64, 16.91, 11.75, 9.76, 10.84, 11.45, 10.75, 17.1, 18.31, 24.27, 22.67, 18.97, 15.78, 11.03, 9.08, 9.6, 10.14, 9.81, 15.78, 17.5, 18.06, 23.07, 9.09, 10.11, 9.38, 15.87, 17.75, 9.65, 9.64, 16.59, 25.57, 23.74, 19.95, 16.29, 11.61, 9.5, 9.93, 10.84, 10.3, 16.55, 18.37, 19.94, 23.54, 21.33, 18.49, 14.94, 10.68, 8.59, 9.3, 10.02, 9.32, 15.05, 16.76, 17.58, 22.51, 21.4, 18.06, 14.65, 10.35, 8.06, 8.88, 9.76, 8.96, 14.37, 16.19, 16.88, 22.06, 20.75, 17.71, 14.85, 10.65, 8.58, 9.74, 10.36, 9.23, 13.69, 16.53, 17.56, 23.57, 22.02, 18.64, 14.99, 10.93, 8.58, 8.84, 9.88, 9.23, 15.03, 17.01, 17.83, 8.45, 8.85, 9.67, 9.06, 15.05, 16.67, 17.65, 22.09, 11.26, 9.44, 10.48, 15.97, 16.92, 22.77, 21.29, 18.04, 14.29, 10.03, 7.72, 8.19, 9.31, 8.91, 14.64, 16.13, 16.98, 9.7, 8.07, 8.65, 23.11, 21.56, 18.13, 14.47, 10.05, 7.98, 8.04, 9.33, 8.7, 14.88, 16.03, 23.05, 21.45, 18.41, 14.98, 11.07, 8.22, 8.37, 9.51, 9.2, 13.81, 15.01, 16.32, 25.2, 23.55, 20.06, 16.46, 11.55, 9.48, 9.64, 11.0, 10.27, 16.73, 18.33, 19.19, 24.46, 22.76, 19.16, 15.28, 10.88, 8.69, 9.01, 10.15, 9.57, 15.44, 16.65, 18.29, 24.0, 22.84, 18.98, 14.95, 10.45, 7.89, 8.44, 9.87, 9.28, 15.39, 17.05, 18.67, 24.93, 23.24, 19.56, 15.93, 11.2, 8.56, 9.52, 11.13, 10.34, 16.62, 18.08, 19.47, 24.98, 23.94, 19.87, 15.6, 11.17, 8.52, 8.76, 10.38, 10.05, 16.54, 18.19, 19.56, 24.84, 23.31, 19.59, 15.27, 10.97, 8.53, 8.88, 10.55, 9.69, 15.86, 17.62, 19.19, 23.54, 22.82, 18.95, 14.4, 10.42, 7.78, 8.27, 9.35, 9.16, 14.87, 16.83, 18.49, 23.36, 22.07, 18.73, 14.66, 10.86, 8.77, 8.52, 10.18, 9.49, 15.38, 16.91, 18.21, 22.92, 22.22, 18.14, 13.85, 10.42, 7.29, 7.71, 9.46, 9.17, 14.57, 16.33, 17.67, 22.92, 22.52, 18.6, 14.49, 10.45, 7.77, 8.23, 10.01, 9.42, 14.95, 17.03, 18.24, 20.69, 20.61, 16.48, 12.01, 7.88, 5.45, 5.84, 7.4, 6.04, 12.89, 13.94, 14.96, 23.88, 23.25, 19.13, 14.48, 10.38, 7.38, 8.17, 9.75, 9.34, 15.31, 17.08, 18.04, 23.75, 19.0, 14.07, 10.24, 7.75, 8.12, 9.79, 9.2, 15.0, 16.99, 18.02, 22.51, 22.55, 23.19, 22.95, 18.35, 13.69, 8.79, 5.88, 7.54, 7.88, 13.59, 15.46, 17.87, 24.11, 23.6, 19.25, 14.69, 10.1, 9.85, 15.91, 17.91, 19.1, 23.3, 19.59, 14.7, 10.25, 7.31, 8.14, 9.79, 9.51, 15.82, 17.42, 19.08, 19.45, 20.04, 16.79, 12.54, 8.03, 5.66, 5.53, 7.9, 6.75, 13.21, 14.39, 15.04, 13.86, 13.31, 5.37, -0.21, -0.66, 0.83, -1.24, 6.93, 7.48, 21.42, 21.82, 17.78, 13.25, 8.8, 6.21, 6.92, 8.65, 7.78, 14.16, 15.7, 16.33, 19.36, 19.57, 15.78, 12.59, 7.93, 4.87, 5.3, 6.53, 6.62, 11.57, 13.39, 14.4, 17.26, 18.3, 11.15, 7.51, 4.57, 5.5, 6.73, 5.74, 7.26, 8.62, 13.89, 15.63, 16.58, 17.43, 16.79, 13.12, 9.26, 4.97, 4.29, 2.37, 9.79, 10.55, 11.31, 19.34, 19.53, 15.78, 12.59, 7.94, 4.84, 5.29, 6.49, 6.54, 11.53, 13.39, 14.39, 18.71, 18.2, 18.04, 16.31, 13.5, 11.45, 11.37, 11.99, 11.19, 13.86, 15.23, 16.0, 19.72, 20.63, 17.61, 14.98, 11.18, 8.65, 9.55, 10.71, 10.06, 13.58, 15.42, 16.43, 20.8, 20.58, 18.82, 16.58, 13.3, 11.08, 11.52, 12.26, 14.87, 16.26, 20.13, 18.25, 15.44, 11.37, 9.01, 9.74, 10.84, 10.79, 13.51, 15.46, 16.69, 20.02, 19.96, 17.97, 15.57, 12.28, 9.63, 10.67, 10.98, 10.47, 13.42, 15.62, 16.61, 20.02, 20.92, 17.92, 15.31, 11.52, 8.97, 9.87, 11.02, 10.42, 13.92, 15.72, 16.77, 19.17, 18.65, 16.36, 13.31, 9.77, 7.36, 8.63, 9.26, 7.33, 12.33, 13.69, 14.33, 20.25, 20.68, 17.99, 14.86, 11.05, 8.1, 9.19, 10.27, 9.92, 13.36, 15.41, 16.1, 19.71, 20.38, 17.74, 14.24, 10.63, 7.74, 8.35, 9.86, 9.63, 13.04, 15.12, 15.61, 18.01, 18.28, 14.89, 11.65, 7.69, 5.13, 5.69, 7.16, 5.64, 11.46, 12.28, 14.13, 20.21, 20.15, 17.48, 14.0, 10.5, 8.9, 10.23, 9.35, 13.41, 15.33, 15.77, 18.09, 18.58, 17.28, 15.24, 12.78, 10.69, 10.98, 11.2, 9.87, 12.86, 14.5, 19.94, 19.77, 17.18, 14.27, 10.73, 7.85, 8.98, 10.24, 9.11, 13.28, 14.97, 15.39, 16.95, 18.5, 14.85, 11.65, 8.6, 7.92, 8.13, 11.14, 13.48, 13.5, 18.57, 18.97, 16.06, 12.89, 6.71, 7.28, 8.36, 7.81, 12.18, 13.71, 14.41, 18.97, 19.17, 16.7, 13.79, 10.04, 7.07, 8.02, 9.41, 9.08, 12.48, 14.44, 14.93, 18.33, 18.49, 17.22, 15.25, 12.01, 9.67, 10.25, 10.81, 9.76, 12.69, 14.11, 14.58, 21.03, 21.11, 17.93, 15.03, 11.27, 8.39, 9.89, 10.56, 9.85, 13.81, 15.77, 16.73, 21.11, 18.19, 15.14, 11.44, 8.86, 9.99, 11.07, 10.27, 14.24, 16.01, 16.98, 21.65, 21.71, 18.84, 16.24, 12.25, 9.62, 10.83, 11.87, 10.97, 14.73, 16.5, 17.65, 20.84, 21.4, 18.37, 16.06, 12.47, 9.94, 10.85, 11.67, 10.99, 14.05, 15.75, 17.29, 20.44, 20.78, 16.01, 12.52, 9.91, 10.46, 11.32, 10.53, 13.83, 15.53, 16.71, 19.73, 19.76, 16.56, 13.52, 10.01, 7.57, 8.22, 9.64, 8.74, 13.35, 14.55, 15.42, 18.92, 19.25, 16.99, 15.25, 12.25, 10.06, 10.35, 10.97, 10.4, 13.0, 14.83, 15.58, 20.72, 20.73, 17.42, 14.68, 11.26, 8.56, 9.8, 10.61, 9.79, 13.63, 15.36, 16.23, 19.64, 14.03, 10.31, 7.66, 8.62, 10.04, 9.37, 12.86, 14.96, 15.45, 21.37, 21.18, 17.9, 14.74, 11.31, 8.24, 9.53, 10.6, 9.9, 13.99, 15.82, 16.56, 18.05, 18.11, 14.64, 12.02, 8.41, 6.35, 6.83, 7.69, 5.71, 10.84, 12.44, 13.31, 20.47, 20.86, 17.75, 15.28, 11.61, 8.66, 9.76, 10.68, 10.39, 13.68, 15.7, 16.68, 18.11, 17.62, 14.76, 11.81, 8.49, 6.32, 6.85, 7.7, 5.85, 10.99, 12.33, 13.15, 19.52, 19.01, 13.1, 8.94, 19.36, 19.0, 13.69, 9.75, 7.82, 8.36, 8.81, 7.79, 12.4, 13.43, 14.66, 20.49, 20.41, 18.23, 15.62, 11.88, 9.17, 10.32, 11.11, 10.2, 13.94, 15.78, 16.71, 20.67, 20.79, 17.82, 15.36, 11.01, 8.44, 9.8, 10.43, 9.82, 13.51, 15.41, 16.45, 6.89, 8.04, 7.09, 11.57, 13.04, 13.77, 20.48, 20.73, 17.85, 15.19, 11.19, 8.6, 9.6, 10.4, 9.57, 13.55, 15.61, 16.19, 18.07, 15.83, 12.65, 10.15, 10.54, 11.4, 10.34, 13.96, 15.26, 15.68, 21.78, 17.94, 9.43, 7.5, 9.21, 8.82, 14.2, 20.34, 17.21, 9.18, 6.9, 8.73, 8.2, 13.11, 13.8, 20.67, 19.43, 16.6, 8.94, 6.3, 6.82, 8.24, 7.32, 12.89, 13.72, 14.39, 21.81, 7.53, 8.88, 8.22, 13.81, 14.38, 21.5, 9.96, 9.39, 8.83, 14.41, 15.43, 16.53, 22.68, 21.89, 18.54, 13.93, 10.6, 7.58, 9.64, 9.5, 16.49, 17.7, 19.22, 18.85, 15.33, 11.42, 7.67, 5.55, 5.39, 6.97, 5.13, 13.04, 13.66, 22.44, 21.85, 18.3, 13.89, 9.99, 7.06, 7.65, 9.14, 9.02, 14.09, 16.03, 17.44, 22.11, 21.34, 17.57, 13.47, 9.4, 7.39, 7.57, 9.15, 8.31, 13.86, 15.47, 16.43, 21.41, 20.18, 17.12, 13.9, 19.82, 18.51, 15.88, 12.43, 8.61, 6.44, 6.77, 6.84, 11.6, 12.44, 13.41, 20.96, 20.55, 17.7, 14.63, 11.09, 9.01, 9.47, 10.2, 9.23, 13.01, 14.28, 15.06, 6.87, 7.68, 8.47, 8.06, 11.89, 20.02, 10.65, 8.97, 10.23, 9.08, 13.46, 14.15, 17.24, 18.36, 16.91, 15.21, 12.23, 11.14, 11.18, 11.83, 10.54, 13.44, 13.92, 14.17, 18.16, 18.38, 16.74, 15.0, 12.34, 10.75, 10.87, 11.39, 13.81, 13.87, 20.38, 20.03, 16.97, 14.18, 10.42, 8.66, 9.31, 9.97, 8.95, 12.67, 14.0, 14.92, 18.23, 19.07, 16.59, 14.44, 10.88, 8.99, 9.27, 10.17, 9.75, 12.22, 13.81, 14.27, 19.61, 10.76, 9.16, 10.18, 9.02, 13.07, 13.65, 19.19, 20.21, 17.86, 15.73, 11.78, 10.3, 10.59, 11.18, 10.98, 13.53, 14.92, 15.04, 19.35, 19.58, 15.97, 13.4, 9.59, 7.51, 8.58, 9.17, 8.21, 11.32, 12.84, 13.87, 18.11, 18.73, 15.92, 12.95, 9.86, 7.55, 8.48, 9.79, 8.62, 12.26, 13.76, 14.1, 20.26, 20.35, 17.43, 14.72, 11.2, 9.23, 9.98, 10.39, 9.57, 13.16, 14.55, 15.4, 15.81, 14.92, 19.61, 19.71, 16.81, 14.06, 10.56, 8.61, 9.36, 9.71, 8.96, 12.56, 13.9, 14.76, 17.7, 18.65, 16.9, 15.2, 12.2, 11.15, 11.15, 11.85, 10.54, 13.45, 14.25, 14.15, 18.63, 16.39, 13.18, 11.6, 9.59, 9.79, 10.54, 9.69, 12.6, 15.42, 16.87, 17.43, 14.68, 11.02, 8.64, 6.02, 6.54, 8.43, 7.68, 10.69, 13.71, 13.39, 15.5, 16.82, 14.89, 11.97, 9.95, 8.06, 8.37, 8.75, 8.0, 10.91, 13.39, 12.4, 16.99, 17.86, 16.46, 13.83, 11.67, 9.46, 10.46, 10.56, 9.98, 12.87, 14.98, 14.49, 12.61, 8.22, 8.58, 9.68, 8.78, 12.02, 13.79, 13.5, 15.78, 17.52, 15.06, 12.77, 10.96, 8.86, 9.71, 9.67, 8.59, 10.88, 15.97, 15.98, 14.06, 10.61, 8.61, 6.72, 7.45, 8.21, 7.77, 10.99, 13.34, 12.66, 15.64, 17.44, 15.15, 12.55, 10.69, 8.8, 9.36, 9.56, 8.42, 11.27, 13.59, 12.97, 16.4, 17.75, 16.08, 13.68, 11.34, 9.92, 10.14, 10.14, 12.09, 14.25, 13.87, 13.89, 15.05, 10.34, 8.49, 6.35, 6.94, 7.28, 6.07, 9.77, 11.1, 13.66, 13.25, 16.63, 17.84, 15.9, 8.81, 9.46, 9.03, 12.37, 14.28, 13.9, 16.34, 17.81, 15.55, 12.64, 10.49, 8.54, 8.83, 9.61, 8.84, 11.59, 14.7, 16.77, 17.56, 15.27, 11.93, 10.16, 7.6, 7.92, 9.08, 8.2, 11.68, 13.87, 13.09, 13.26, 14.35, 12.44, 8.82, 7.03, 4.67, 5.23, 5.89, 4.82, 8.43, 10.75, 9.95, 18.15, 18.28, 16.86, 10.1, 7.2, 8.2, 9.55, 9.01, 12.26, 14.38, 14.33, 15.44, 16.66, 14.32, 11.25, 9.41, 7.12, 7.54, 8.41, 7.52, 10.6, 13.03, 12.44, 16.63, 17.49, 16.09, 13.44, 11.29, 9.09, 10.14, 10.24, 9.45, 12.3, 14.4, 13.94, 16.95, 17.55, 14.75, 11.1, 8.75, 6.15, 6.65, 8.49, 7.75, 10.8, 13.8, 13.5, 16.84, 17.01, 16.72, 14.49, 11.76, 9.69, 10.3, 10.75, 10.49, 12.3, 14.0, 14.45, 16.74, 17.35, 16.35, 12.77, 10.38, 7.65, 8.41, 9.25, 8.85, 13.54, 13.17, 18.97, 17.92, 16.36, 13.8, 11.23, 8.64, 10.4, 10.02, 12.97, 14.96, 14.63, 17.51, 18.08, 11.0, 8.22, 9.22, 9.94, 11.94, 13.98, 17.19, 17.91, 14.48, 12.67, 10.46, 10.78, 11.3, 10.35, 12.84, 14.85, 14.6, 15.96, 15.96, 14.03, 9.62, 7.39, 5.07, 6.63, 7.32, 6.44, 11.79, 16.76, 17.29, 14.73, 10.8, 8.54, 5.95, 6.39, 8.07, 7.48, 10.76, 13.47, 13.32, 17.42, 18.02, 16.76, 13.12, 10.09, 7.91, 8.88, 9.44, 9.26, 11.64, 14.2, 13.63, 14.92, 16.24, 15.23, 12.7, 8.7, 9.45, 9.51, 9.18, 10.9, 12.89, 12.54, 14.46, 15.42, 14.65, 11.67, 8.77, 6.56, 7.55, 8.48, 7.74, 9.77, 12.54, 11.8, 17.63, 17.79, 16.71, 13.49, 10.31, 8.07, 9.51, 10.03, 9.8, 12.54, 14.4, 14.06, 14.76, 13.38, 11.07, 9.97, 8.32, 8.7, 8.7, 7.47, 9.4, 11.27, 10.03, 17.05, 17.42, 16.79, 13.06, 10.04, 7.63, 8.98, 9.54, 9.5, 12.37, 14.22, 13.55, 15.67, 16.73, 14.65, 11.77, 8.69, 6.36, 7.66, 8.25, 7.72, 10.44, 13.28, 12.28, 15.15, 16.4, 15.45, 12.9, 10.75, 8.9, 9.65, 9.7, 9.4, 11.15, 13.05, 12.75, 15.6, 16.65, 14.55, 11.7, 8.59, 6.25, 7.55, 8.2, 7.65, 10.35, 13.15, 12.2, 13.87, 10.14, 7.55, 5.14, 6.75, 7.28, 6.6, 9.64, 12.78, 11.66, 16.46, 17.41, 15.46, 10.95, 8.31, 5.48, 7.28, 8.17, 7.71, 11.15, 14.1, 13.24, 14.39, 15.88, 13.42, 10.07, 7.12, 4.8, 6.6, 7.06, 6.04, 9.53, 13.04, 11.58, 17.16, 18.11, 15.85, 11.93, 9.01, 5.92, 7.52, 8.77, 8.33, 11.8, 14.64, 14.07, 13.86, 14.5, 12.24, 8.79, 6.4, 4.1, 5.75, 6.14, 4.4, 8.41, 11.03, 9.69, 12.67, 13.9, 11.57, 8.04, 5.69, 3.07, 4.29, 4.9, 3.7, 7.53, 10.96, 8.94, 11.36, 12.71, 10.55, 6.86, 4.87, 1.78, 3.01, 3.75, 2.32, 6.58, 9.15, 8.06, 13.01, 13.97, 11.9, 8.02, 5.88, 3.37, 4.45, 5.19, 3.72, 7.81, 10.63, 8.78, 12.3, 12.56, 10.79, 6.94, 4.64, 2.01, 3.06, 3.85, 2.59, 6.8, 9.05, 8.25, 15.3, 16.89, 15.24, 12.85, 11.51, 9.46, 10.46, 10.32, 12.9, 12.36, 12.8, 14.23, 12.33, 9.14, 7.0, 4.69, 5.35, 5.88, 4.54, 8.44, 10.67, 9.63, 14.35, 16.18, 13.79, 10.84, 8.79, 5.57, 7.25, 7.6, 6.34, 9.92, 12.17, 14.52, 16.51, 13.47, 10.8, 8.79, 6.87, 7.21, 7.6, 6.21, 9.86, 11.96, 15.94, 16.93, 15.7, 13.3, 11.57, 9.73, 10.63, 10.55, 8.79, 12.07, 13.6, 13.6, 19.26, 17.38, 14.65, 12.35, 9.58, 10.66, 11.11, 9.91, 13.23, 14.65, 14.67, 23.6, 22.3, 21.6, 19.6, 15.6, 13.3, 13.3, 14.8, 14.1, 17.1, 19.1, 21.7, 31.5, 25.4, 24.9, 21.5, 17.9, 12.6, 12.5, 15.6, 17.9, 25.3, 28.1, 28.4, 22.1, 23.7, 22.1, 19.6, 16.5, 15.0, 13.2, 13.6, 14.5, 19.9, 20.7, 22.5, 17.53, 18.13, 16.83, 13.13, 10.23, 7.93, 8.93, 9.53, 9.33, 11.73, 14.23, 13.73, 22.02, 24.02, 21.52, 19.02, 15.82, 14.32, 12.32, 12.72, 13.72, 19.22, 20.82, 22.42, 22.6, 22.7, 22.15, 19.84, 18.95, 15.95, 16.95, 17.6, 20.7, 23.0, 24.4, 26.87, 27.57, 26.87, 25.47, 23.97, 21.97, 21.87, 22.67, 22.5, 24.5, 26.0, 27.9], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Solomon Islands&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;, &quot;Solomon Islands&quot;], &quot;legendgroup&quot;: &quot;Solomon Islands&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Solomon Islands&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.52, 27.47, 27.92, 27.82, 27.97, 27.47, 27.12, 26.57, 26.86, 27.27, 27.86, 27.82, 26.05, 26.14, 26.39, 26.64, 26.64, 26.05, 25.6, 26.0, 26.25, 26.5, 26.2, 26.78, 26.84, 27.04, 27.09, 27.03, 26.69, 25.84, 25.89, 25.94, 26.34, 26.49, 26.84, 26.58, 26.93, 26.98, 27.08, 26.78, 26.28, 25.78, 25.67, 26.13, 26.13, 26.68, 26.83, 26.8, 26.8, 27.0, 27.3, 26.7, 26.3, 26.2, 26.6, 26.9, 27.1, 26.8], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Northern Mariana Islands&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;, &quot;Northern Mariana Islands&quot;], &quot;legendgroup&quot;: &quot;Northern Mariana Islands&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Northern Mariana Islands&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.98, 25.36, 26.11, 27.03, 27.8, 28.59, 27.99, 27.55, 27.45, 27.37, 27.97, 27.72], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Cook Islands&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;, &quot;Cook Islands&quot;], &quot;legendgroup&quot;: &quot;Cook Islands&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Cook Islands&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.96, 25.76, 27.86, 28.56, 27.96, 28.06, 25.41, 26.11, 26.31, 24.81, 21.71, 21.81, 20.9, 20.66, 20.91, 22.06, 23.06, 23.81, 27.4, 27.5, 27.9, 27.1, 24.4, 25.7, 24.4, 24.2, 23.8, 25.2, 25.9, 26.1, 28.2, 28.05, 28.45, 28.9, 28.65, 27.9, 27.8, 27.55, 27.55, 28.09, 28.15, 28.3, 28.52, 28.12, 28.42, 28.87, 28.87, 28.42, 28.02, 27.42, 27.72, 27.97, 28.37, 28.62], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Fiji&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;, &quot;Fiji&quot;], &quot;legendgroup&quot;: &quot;Fiji&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Fiji&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.79, 27.59, 28.24, 27.79, 27.14, 27.34, 26.19, 25.94, 26.39, 26.79, 27.49, 27.24, 26.45, 27.16, 27.56, 26.2, 25.16, 25.11, 23.36, 23.56, 24.2, 24.95, 25.06, 26.11, 27.19, 27.69, 27.79, 26.79, 25.59, 25.19, 23.29, 23.69, 23.89, 24.89, 25.29, 26.69, 26.96, 27.36, 27.16, 26.66, 25.56, 24.86, 23.16, 23.36, 23.96, 24.86, 25.16, 26.06, 25.67, 27.07, 26.12, 24.97, 23.47, 23.37, 19.72, 20.87, 22.12, 22.07, 22.52, 24.92, 26.76, 27.16, 27.06, 25.96, 24.36, 24.16, 22.66, 23.16, 23.26, 25.26, 25.46, 26.36], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=French Polynesia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;, &quot;French Polynesia&quot;], &quot;legendgroup&quot;: &quot;French Polynesia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;French Polynesia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.49, 26.8, 27.0, 27.3, 26.24, 25.9, 25.45, 25.05, 25.1, 26.05, 26.4, 27.3, 28.48, 28.83, 28.98, 28.98, 28.58, 27.88, 27.38, 26.67, 26.88, 27.98, 27.88, 28.98, 25.38, 25.08, 25.88, 24.78, 22.58, 22.08, 20.78, 20.68, 20.78, 20.88, 22.98, 24.58, 23.45, 24.25, 24.75, 23.15, 20.55, 19.2, 18.4, 18.1, 17.6, 18.24, 20.65, 22.6, 28.2, 27.6, 26.9, 26.1, 25.4, 24.4, 24.2, 25.6, 26.2, 27.3, 26.84, 26.74, 27.44, 26.74, 24.84, 24.54, 24.34, 23.24, 22.94, 23.64, 27.54, 27.24, 27.54, 27.44, 26.44, 26.24, 25.74, 25.24, 25.14, 26.14, 26.44, 27.04, 25.09, 25.49, 25.99, 24.99, 24.59, 22.59, 21.79, 20.79, 20.49, 21.39, 23.59, 25.69, 28.15, 28.45, 28.85, 28.45, 28.15, 27.05, 26.45, 26.25, 26.15, 27.35, 27.55, 28.15, 27.69, 26.99, 27.24, 27.54, 26.44, 26.09, 25.59, 25.13, 25.19, 26.29, 26.59, 27.54, 27.44, 27.39, 27.69, 27.78, 27.34, 26.28, 25.44, 25.64, 26.04, 26.69, 27.14, 27.24, 28.14, 28.44, 28.34, 26.74, 26.74, 26.24, 25.44, 26.14, 26.74, 26.94, 27.64, 24.93, 25.23, 25.83, 24.83, 22.43, 21.63, 20.63, 20.33, 21.23, 23.43], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Guam&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;, &quot;Guam&quot;], &quot;legendgroup&quot;: &quot;Guam&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Guam&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [24.89, 24.88, 26.27, 26.51, 28.01, 28.0, 27.23, 27.31, 27.58, 27.59, 28.16, 27.47, 24.84, 24.77, 26.18, 26.52, 27.98, 27.97, 27.23, 27.21, 28.08, 27.47, 25.34, 24.94, 25.77, 27.0, 27.21, 27.49, 27.13, 26.55, 26.95, 26.35, 26.68], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Kiribati&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;, &quot;Kiribati&quot;], &quot;legendgroup&quot;: &quot;Kiribati&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Kiribati&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.62, 27.72, 27.57, 27.96, 28.46, 27.72, 27.92, 28.12, 28.17, 28.77, 28.82, 28.17, 28.15, 28.55, 28.45, 29.15, 28.85, 28.45, 28.15, 28.25, 28.15, 28.85, 29.15, 28.65, 28.1, 28.1, 28.1, 28.2, 28.7, 28.2, 28.2, 28.3, 28.8, 29.4, 28.2, 27.58, 27.53, 27.68, 27.73, 27.73, 27.68, 27.83, 27.48, 27.48, 27.58, 27.57, 27.03], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=New Caledonia&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;, &quot;New Caledonia&quot;], &quot;legendgroup&quot;: &quot;New Caledonia&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;New Caledonia&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.04, 24.75, 24.88, 24.51, 22.98, 20.73, 19.66, 20.0, 20.5, 21.48, 23.64, 25.47, 24.55, 24.42, 23.89, 23.77, 22.47, 20.78, 19.11, 19.76, 20.55, 21.13, 23.66, 25.31, 25.2, 24.8, 24.7, 24.4, 22.8, 20.4, 19.2, 19.8, 20.4, 21.4, 24.5, 25.9, 24.42, 24.12, 23.52, 23.32, 22.02, 20.32, 18.72, 19.22, 20.32, 20.92, 23.42, 25.22, 24.55, 24.45, 23.95, 23.84, 22.5, 20.85, 19.15, 19.85, 20.8, 21.4, 23.9, 25.55, 24.7, 24.7, 24.1, 24.0, 22.7, 21.0, 19.3, 20.0, 21.0, 21.6, 24.1, 25.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Norfolk Island&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;, &quot;Norfolk Island&quot;], &quot;legendgroup&quot;: &quot;Norfolk Island&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Norfolk Island&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [21.09, 21.25, 20.4, 19.4, 18.2, 16.65, 14.95, 15.2, 16.25, 16.35, 18.79, 20.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Vanuatu&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;, &quot;Vanuatu&quot;], &quot;legendgroup&quot;: &quot;Vanuatu&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Vanuatu&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [25.77, 26.27, 25.36, 25.17, 24.02, 22.87, 21.27, 21.62, 21.86, 21.97, 25.37, 26.27, 26.51, 26.72, 26.22, 25.62, 25.02, 23.92, 24.27, 23.87, 24.72, 25.32, 25.97, 26.39, 26.99, 26.49, 26.49, 25.29, 23.69, 22.79, 23.39, 23.99, 24.29, 25.19, 26.19], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Nauru&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;, &quot;Nauru&quot;], &quot;legendgroup&quot;: &quot;Nauru&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#00cc96&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Nauru&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [2, 3, 4, 5, 6, 7, 8, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.1, 27.7, 27.8, 28.5, 28.3, 28.2, 28.9, 29.2, 28.9, 28.5], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=New Zealand&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;, &quot;New Zealand&quot;], &quot;legendgroup&quot;: &quot;New Zealand&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#ab63fa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;New Zealand&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [18.89, 19.13, 17.64, 15.9, 13.91, 11.74, 9.57, 11.73, 13.81, 13.12, 16.54, 19.33, 17.71, 16.49, 16.19, 13.82, 11.69, 7.89, 7.75, 9.68, 12.09, 12.31, 15.2, 18.49, 17.13, 16.43, 16.93, 13.43, 11.23, 8.53, 8.33, 9.73, 13.03, 12.03, 15.03, 18.03, 13.27, 12.49, 12.63, 9.52, 6.95, 5.15, 5.53, 6.83, 9.52, 8.57, 12.31, 13.93, 20.82, 21.72, 21.23, 19.26, 17.84, 17.0, 14.42, 14.73, 16.3, 16.21, 17.84, 20.52, 16.05, 16.91, 15.59, 13.14, 12.09, 8.55, 7.6, 9.63, 12.12, 11.23, 14.66, 17.19, 14.05, 14.99, 13.36, 10.1, 9.28, 5.1, 5.83, 7.7, 10.03, 9.78, 13.64, 15.13, 13.96, 8.81, 5.55, 0.97, 1.85, 4.45, 8.69, 9.21, 14.44, 15.66, 9.91, 8.82, 7.15, 6.1, 5.34, 3.71, 5.33, 5.26, 5.99, 4.96, 7.92, 9.6, 14.9, 13.35, 13.55, 10.78, 8.72, 7.83, 6.64, 7.95, 10.34, 8.97, 10.49, 14.86, 18.2, 18.4, 17.2, 15.3, 13.6, 11.0, 9.0, 11.1, 13.2, 13.1, 16.3, 19.0, 17.4, 18.1, 16.2, 14.9, 13.0, 10.8, 8.3, 10.6, 12.6, 12.8, 15.8, 18.8, 16.45, 15.54, 15.14, 11.43, 8.95, 4.6, 5.23, 7.03, 11.47, 10.18, 14.15, 16.85, 18.9, 19.2, 18.1, 16.0, 14.2, 11.4, 9.9, 11.7, 13.9, 13.8, 17.2, 19.9, 16.8, 16.6, 16.0, 12.3, 9.9, 5.4, 5.3, 7.9, 10.9, 11.3, 14.5, 17.4, 14.11, 13.31, 13.11, 9.41, 7.01, 4.41, 4.21, 7.01, 9.81, 9.51, 13.11, 14.71, 14.82, 13.62, 13.92, 10.32, 8.72, 5.82, 5.82, 7.42, 9.92, 10.02, 13.62, 14.82, 14.15, 14.85, 13.1, 9.55, 8.2, 3.65, 5.05, 7.2, 9.8, 9.0, 13.25, 14.15, 16.62, 15.12, 15.42, 11.57, 9.22, 5.47, 5.32, 7.57, 10.87, 9.67, 13.57, 17.22, 15.5, 14.8, 13.95, 10.65, 9.05, 4.65, 4.44, 6.55, 10.4, 8.55, 13.95, 16.4, 16.43, 15.63, 15.18, 11.63, 8.93, 5.08, 5.43, 7.18, 11.28, 9.88, 14.33, 17.13, 17.04, 17.54, 15.35, 13.65, 11.65, 9.05, 6.7, 9.39, 12.15, 11.35, 15.1, 18.1, 20.9, 22.0, 21.4, 19.6, 18.1, 17.2, 14.7, 14.9, 16.6, 16.4, 18.1, 20.7], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Papua New Guinea&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;, &quot;Papua New Guinea&quot;], &quot;legendgroup&quot;: &quot;Papua New Guinea&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FFA15A&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Papua New Guinea&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.26, 26.26, 26.76, 26.56, 26.96, 26.66, 25.86, 26.06, 26.26, 27.16, 27.56, 27.56, 27.7, 27.98, 27.91, 28.56, 28.16, 27.48, 27.42, 27.22, 27.64, 27.42, 27.36, 27.37, 27.19, 27.47, 27.4, 28.05, 27.65, 26.97, 26.91, 26.71, 27.08, 26.91, 26.85, 26.86, 26.45, 26.95, 27.05, 27.18, 27.83, 27.68, 26.83, 26.38, 25.33, 25.13, 25.48, 25.93, 26.98, 27.63, 27.16, 27.16, 27.46, 27.76, 27.66, 27.26, 26.86, 26.96, 26.96, 27.26, 27.36, 27.46, 27.25, 27.35, 27.85, 27.55, 28.0, 27.45, 27.1, 27.2, 27.85, 27.55, 28.1, 28.25], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Palau&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;, &quot;Palau&quot;], &quot;legendgroup&quot;: &quot;Palau&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#19d3f3&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Palau&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.2, 26.42, 26.75, 27.15, 27.32, 27.18, 26.22, 26.83, 26.53, 27.05, 27.0, 26.81], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Marshall Islands&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;, &quot;Marshall Islands&quot;], &quot;legendgroup&quot;: &quot;Marshall Islands&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF6692&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Marshall Islands&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 6], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.25, 28.05, 28.35, 28.05, 27.95, 28.15, 27.85, 28.45, 28.15, 28.55, 28.45, 28.25, 27.25, 28.0, 28.3, 28.04, 27.91, 28.08, 27.83, 28.46, 28.14, 28.52, 28.43, 28.22, 27.26, 27.86, 27.86, 27.66, 28.06, 27.96, 27.46, 28.16, 28.06, 28.56, 28.36, 27.96, 27.19, 27.77, 27.7, 27.56, 28.03, 27.85, 27.43, 28.03, 27.98, 28.49, 28.25, 27.89, 27.1, 27.0, 27.2, 27.6, 28.1], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Tokelau&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;, &quot;Tokelau&quot;], &quot;legendgroup&quot;: &quot;Tokelau&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#B6E880&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Tokelau&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.34, 27.84, 28.39, 28.59, 28.09, 28.39, 28.14, 26.94, 27.54, 28.09, 28.29, 27.74, 29.1, 28.4, 30.0, 29.7, 29.4, 29.5, 28.6, 28.4, 29.1, 29.2, 29.5, 29.0], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Tonga&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;, &quot;Tonga&quot;], &quot;legendgroup&quot;: &quot;Tonga&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FF97FF&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Tonga&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [26.81, 27.91, 26.86, 26.71, 24.76, 24.41, 22.71, 22.81, 23.61, 24.16, 25.26, 25.56, 27.23, 27.93, 28.18, 27.23, 26.28, 27.07, 25.38, 25.23, 26.18, 27.23, 27.03, 27.28, 25.59, 27.39, 26.94, 25.23, 22.94, 22.59, 20.04, 21.04, 22.84, 22.69, 23.48, 24.79], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Tuvalu&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;, &quot;Tuvalu&quot;], &quot;legendgroup&quot;: &quot;Tuvalu&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#FECB52&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Tuvalu&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [28.67, 28.17, 28.27, 28.02, 28.02, 28.12, 28.21, 28.37, 28.57, 28.87, 29.02, 28.67, 28.31, 27.6, 28.41, 28.41, 27.51, 27.91, 27.1, 26.41, 27.6, 27.81, 28.71, 28.31, 28.33, 27.93, 28.33, 28.13, 28.33, 28.53, 27.83, 27.53, 28.03, 28.13, 28.73, 28.23, 28.9, 28.85, 28.9, 28.75, 28.3, 28.5, 28.35, 27.95, 28.55, 28.85, 29.05, 28.45], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Wallis and Futuna&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;, &quot;Wallis and Futuna&quot;], &quot;legendgroup&quot;: &quot;Wallis and Futuna&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Wallis and Futuna&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.7, 28.0, 28.5, 27.6, 27.1, 27.6, 26.5, 25.8, 26.4, 27.0, 27.8, 27.4, 27.7, 28.0, 28.55, 27.65, 27.1, 27.65, 26.45, 25.8, 26.35, 26.95, 27.4], &quot;yaxis&quot;: &quot;y&quot;}, {&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;Name=Samoa&lt;br&gt;Month=%{x}&lt;br&gt;Temp=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;, &quot;Samoa&quot;], &quot;legendgroup&quot;: &quot;Samoa&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#EF553B&quot;, &quot;symbol&quot;: &quot;circle&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;Samoa&quot;, &quot;showlegend&quot;: true, &quot;type&quot;: &quot;scattergl&quot;, &quot;x&quot;: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [27.07, 26.97, 27.27, 26.87, 26.07, 26.17, 25.57, 25.37, 25.37, 26.57, 26.97, 26.77, 27.24, 27.2, 27.49, 27.15, 26.3, 26.4, 25.85, 25.55, 25.49, 26.85, 27.2, 27.0], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;legend&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;Name&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;Monthly avg Temperature of countries in Oceania in [1969]&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Month&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;Temp&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;From the above graph, we could observe that monthly temperature change also has some patterns corresponding to different continents. In Asia, Europe, and North America, mid-year temperature tends to be the highest. While for South America and Antarctica, things are the opposite. Perhaps that’s why Santa Claus wears T-shirts in these countries!&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;got-help&quot;&gt;
  &lt;p&gt;-added url hyperlinks
-changed the logistic for plot_line function, from plotting for specific latitude to for a latitude range&lt;/p&gt;
&lt;/div&gt;</content><author><name></name></author><summary type="html">In this blog, we’ll demonstrate the basic utilization of the plotly pacakge, and some basic database usage with sql(Structured Query Language). Databases increases the efficiency for treating large datasets. We will be using the National Oceanic and Atmospheric Admistration’s (NOAA) climate data set, together with temperature stations and country codes, to create some interactive geographically representative plots corresponding to temperatures.</summary></entry><entry><title type="html">Assignment - Blog Post 0</title><link href="https://susanzhang233.github.io/blogpost0/" rel="alternate" type="text/html" title="Assignment - Blog Post 0" /><published>2021-04-06T00:00:00+00:00</published><updated>2021-04-06T00:00:00+00:00</updated><id>https://susanzhang233.github.io/blogpost0</id><content type="html" xml:base="https://susanzhang233.github.io/blogpost0/">&lt;p&gt;In this blog post assignment (homework), I create a short post for my new website. The primary purpose is to practice working with Jekyll blogging with Python code.&lt;/p&gt;

&lt;h2 id=&quot;import-the-data&quot;&gt;Import the data&lt;/h2&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;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;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;/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;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/palmer_penguins.csv&quot;&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;/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;#Then, we briefly overview all the penguins
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins&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;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;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;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;339&lt;/th&gt;
      &lt;td&gt;PAL0910&lt;/td&gt;
      &lt;td&gt;120&lt;/td&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N38A2&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
      &lt;td&gt;12/1/09&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;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;340&lt;/th&gt;
      &lt;td&gt;PAL0910&lt;/td&gt;
      &lt;td&gt;121&lt;/td&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N39A1&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/22/09&lt;/td&gt;
      &lt;td&gt;46.8&lt;/td&gt;
      &lt;td&gt;14.3&lt;/td&gt;
      &lt;td&gt;215.0&lt;/td&gt;
      &lt;td&gt;4850.0&lt;/td&gt;
      &lt;td&gt;FEMALE&lt;/td&gt;
      &lt;td&gt;8.41151&lt;/td&gt;
      &lt;td&gt;-26.13832&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;341&lt;/th&gt;
      &lt;td&gt;PAL0910&lt;/td&gt;
      &lt;td&gt;122&lt;/td&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N39A2&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/22/09&lt;/td&gt;
      &lt;td&gt;50.4&lt;/td&gt;
      &lt;td&gt;15.7&lt;/td&gt;
      &lt;td&gt;222.0&lt;/td&gt;
      &lt;td&gt;5750.0&lt;/td&gt;
      &lt;td&gt;MALE&lt;/td&gt;
      &lt;td&gt;8.30166&lt;/td&gt;
      &lt;td&gt;-26.04117&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;342&lt;/th&gt;
      &lt;td&gt;PAL0910&lt;/td&gt;
      &lt;td&gt;123&lt;/td&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N43A1&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/22/09&lt;/td&gt;
      &lt;td&gt;45.2&lt;/td&gt;
      &lt;td&gt;14.8&lt;/td&gt;
      &lt;td&gt;212.0&lt;/td&gt;
      &lt;td&gt;5200.0&lt;/td&gt;
      &lt;td&gt;FEMALE&lt;/td&gt;
      &lt;td&gt;8.24246&lt;/td&gt;
      &lt;td&gt;-26.11969&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;343&lt;/th&gt;
      &lt;td&gt;PAL0910&lt;/td&gt;
      &lt;td&gt;124&lt;/td&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N43A2&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/22/09&lt;/td&gt;
      &lt;td&gt;49.9&lt;/td&gt;
      &lt;td&gt;16.1&lt;/td&gt;
      &lt;td&gt;213.0&lt;/td&gt;
      &lt;td&gt;5400.0&lt;/td&gt;
      &lt;td&gt;MALE&lt;/td&gt;
      &lt;td&gt;8.36390&lt;/td&gt;
      &lt;td&gt;-26.15531&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;344 rows × 17 columns&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;We select the columns that might be used:&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;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;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;'Island'&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;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;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;s&quot;&gt;&quot;Delta 15 N (o/oo)&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;/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;penguins&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;Species&lt;/th&gt;
      &lt;th&gt;Island&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;Delta 15 N (o/oo)&lt;/th&gt;
      &lt;th&gt;Delta 13 C (o/oo)&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;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;8.94956&lt;/td&gt;
      &lt;td&gt;-24.69454&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;8.36821&lt;/td&gt;
      &lt;td&gt;-25.33302&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;8.76651&lt;/td&gt;
      &lt;td&gt;-25.32426&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;td&gt;...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;339&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&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;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;340&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;46.8&lt;/td&gt;
      &lt;td&gt;14.3&lt;/td&gt;
      &lt;td&gt;215.0&lt;/td&gt;
      &lt;td&gt;4850.0&lt;/td&gt;
      &lt;td&gt;8.41151&lt;/td&gt;
      &lt;td&gt;-26.13832&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;341&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;50.4&lt;/td&gt;
      &lt;td&gt;15.7&lt;/td&gt;
      &lt;td&gt;222.0&lt;/td&gt;
      &lt;td&gt;5750.0&lt;/td&gt;
      &lt;td&gt;8.30166&lt;/td&gt;
      &lt;td&gt;-26.04117&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;342&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;45.2&lt;/td&gt;
      &lt;td&gt;14.8&lt;/td&gt;
      &lt;td&gt;212.0&lt;/td&gt;
      &lt;td&gt;5200.0&lt;/td&gt;
      &lt;td&gt;8.24246&lt;/td&gt;
      &lt;td&gt;-26.11969&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;343&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;49.9&lt;/td&gt;
      &lt;td&gt;16.1&lt;/td&gt;
      &lt;td&gt;213.0&lt;/td&gt;
      &lt;td&gt;5400.0&lt;/td&gt;
      &lt;td&gt;8.36390&lt;/td&gt;
      &lt;td&gt;-26.15531&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;344 rows × 8 columns&lt;/p&gt;
&lt;/div&gt;

&lt;h2 id=&quot;observing-the-data&quot;&gt;Observing the data&lt;/h2&gt;

&lt;p&gt;Now, by observing that there are certain number of species and islands of penguins, it might be great to know how many different species and islands are there in the dataset. This would help in observing the characteristics of the penguins when creating further plots, and possibly observing some patterns. The &lt;em&gt;unique&lt;/em&gt; function gives the unique elements of an array, and in this case, gives the unique elements through a column.&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;penguins&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;n&quot;&gt;unique&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;array(['Torgersen', 'Biscoe', 'Dream'], dtype=object)
&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;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;n&quot;&gt;unique&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;array(['Adelie Penguin (Pygoscelis adeliae)',
       'Chinstrap penguin (Pygoscelis antarctica)',
       'Gentoo penguin (Pygoscelis papua)'], dtype=object)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;preprocess-the-data&quot;&gt;Preprocess the data&lt;/h2&gt;

&lt;p&gt;We drop the Nan values with the dropna 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;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;dropna&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;penguins&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;Species&lt;/th&gt;
      &lt;th&gt;Island&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;Delta 15 N (o/oo)&lt;/th&gt;
      &lt;th&gt;Delta 13 C (o/oo)&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;8.94956&lt;/td&gt;
      &lt;td&gt;-24.69454&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;8.36821&lt;/td&gt;
      &lt;td&gt;-25.33302&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&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;8.76651&lt;/td&gt;
      &lt;td&gt;-25.32426&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;5&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;39.3&lt;/td&gt;
      &lt;td&gt;20.6&lt;/td&gt;
      &lt;td&gt;190.0&lt;/td&gt;
      &lt;td&gt;3650.0&lt;/td&gt;
      &lt;td&gt;8.66496&lt;/td&gt;
      &lt;td&gt;-25.29805&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;6&lt;/th&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;38.9&lt;/td&gt;
      &lt;td&gt;17.8&lt;/td&gt;
      &lt;td&gt;181.0&lt;/td&gt;
      &lt;td&gt;3625.0&lt;/td&gt;
      &lt;td&gt;9.18718&lt;/td&gt;
      &lt;td&gt;-25.21799&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;td&gt;...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;338&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;47.2&lt;/td&gt;
      &lt;td&gt;13.7&lt;/td&gt;
      &lt;td&gt;214.0&lt;/td&gt;
      &lt;td&gt;4925.0&lt;/td&gt;
      &lt;td&gt;7.99184&lt;/td&gt;
      &lt;td&gt;-26.20538&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;340&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;46.8&lt;/td&gt;
      &lt;td&gt;14.3&lt;/td&gt;
      &lt;td&gt;215.0&lt;/td&gt;
      &lt;td&gt;4850.0&lt;/td&gt;
      &lt;td&gt;8.41151&lt;/td&gt;
      &lt;td&gt;-26.13832&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;341&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;50.4&lt;/td&gt;
      &lt;td&gt;15.7&lt;/td&gt;
      &lt;td&gt;222.0&lt;/td&gt;
      &lt;td&gt;5750.0&lt;/td&gt;
      &lt;td&gt;8.30166&lt;/td&gt;
      &lt;td&gt;-26.04117&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;342&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;45.2&lt;/td&gt;
      &lt;td&gt;14.8&lt;/td&gt;
      &lt;td&gt;212.0&lt;/td&gt;
      &lt;td&gt;5200.0&lt;/td&gt;
      &lt;td&gt;8.24246&lt;/td&gt;
      &lt;td&gt;-26.11969&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;343&lt;/th&gt;
      &lt;td&gt;Gentoo penguin (Pygoscelis papua)&lt;/td&gt;
      &lt;td&gt;Biscoe&lt;/td&gt;
      &lt;td&gt;49.9&lt;/td&gt;
      &lt;td&gt;16.1&lt;/td&gt;
      &lt;td&gt;213.0&lt;/td&gt;
      &lt;td&gt;5400.0&lt;/td&gt;
      &lt;td&gt;8.36390&lt;/td&gt;
      &lt;td&gt;-26.15531&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;330 rows × 8 columns&lt;/p&gt;
&lt;/div&gt;

&lt;h2 id=&quot;creating-some-plots&quot;&gt;Creating some plots&lt;/h2&gt;

&lt;p&gt;Now we see that all penguins could be classified into three species, and they dwell three islands(the species and islands might not be corresponded). First off, it might be helpful to create some plots demonstrating whether some features of each of these species corresponds with certain islands or species.&lt;/p&gt;

&lt;p&gt;The following plot inspects whether culmen length and culmen depth could together show some pattern for different species.&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;#relplot plot the relationship between two variables 
#the first two parameters are variables for relationship eval,
#the third one indicates the data to use, 
#and the last parameter 'hue' specifies which feature to use to cluster the penguins
&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;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;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;hue&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Island'&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/blogpost0_16_2.png&quot; alt=&quot;blogpost0_16_2.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Oops, it seems like culmen length and culmen depth could not separate out penguins on islands. This is to say, regardless of some patterns, there are penguins for culmen length &amp;lt; 45mm and culmen depth &amp;gt; 16mm on each island.&lt;/p&gt;

&lt;p&gt;Next, we check for the same features, but cluster the penguins by species.&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;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;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;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;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;span class=&quot;n&quot;&gt;size_norm&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;5&lt;/span&gt;&lt;span class=&quot;p&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;p&gt;&lt;img src=&quot;/images/blogpost0_19_2.png&quot; alt=&quot;blogpost0_16_2.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Surprisingly, the above figure demonstrates that each of the species has its own cluster for culmen length and depth combination.&lt;/p&gt;

&lt;div class=&quot;got-help&quot;&gt;

  &lt;p&gt;Space Holder&lt;/p&gt;
&lt;/div&gt;

&lt;div class=&quot;gave-help&quot;&gt;

  &lt;p&gt;Space Holder&lt;/p&gt;
&lt;/div&gt;</content><author><name></name></author><summary type="html">In this blog post assignment (homework), I create a short post for my new website. The primary purpose is to practice working with Jekyll blogging with Python code.</summary></entry><entry><title type="html">Assignment - Blog Post 1</title><link href="https://susanzhang233.github.io/HW-1/" rel="alternate" type="text/html" title="Assignment - Blog Post 1" /><published>2021-03-31T00:00:00+00:00</published><updated>2021-03-31T00:00:00+00:00</updated><id>https://susanzhang233.github.io/HW-1</id><content type="html" xml:base="https://susanzhang233.github.io/HW-1/">&lt;p&gt;In this blog post, you’ll create several interesting, interactive data graphics using the NOAA climate data that we’ve explored in the first several weeks of lectures.&lt;/p&gt;

&lt;h2 id=&quot;general-requirements&quot;&gt;General Requirements&lt;/h2&gt;

&lt;p&gt;Your post should include not only code but also &lt;strong&gt;outputs&lt;/strong&gt; (i.e. tables, figures) and &lt;strong&gt;expository writing&lt;/strong&gt; that explains what you’re doing. Your target audience is a a student who has completed PIC16A but hasn’t taken PIC16B yet (i.e. you before the start of the quarter). The details of what you should do are in the “Prompt” section.&lt;/p&gt;

&lt;p&gt;Throughout, you should:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Optimize code concision&lt;/strong&gt; by minimizing repetition. Repeated operations should be enclosed in functions.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Minimize for-loops&lt;/strong&gt; by making full use of vectorized operations for Numpy arrays and Pandas data frames.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Supply helpful comments&lt;/strong&gt; throughout your code, and docstrings for any functions and classes you define.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Submit your blog post (both draft and revised) by submitting a URL to the post on CCLE.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Draft&lt;/strong&gt;: submit to the Draft Blog Post 1 workshop activity.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Revised&lt;/strong&gt;: submit to the Blog Post 1 (Revised) assignment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;grading&quot;&gt;Grading&lt;/h3&gt;

&lt;p&gt;Generally speaking, it’s ok for your draft to be a little rough around the edges, and maybe you haven’t fully optimized your code or made your plots maximally shiny yet. That’s ok! The important part is:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Make enough progress that you can benefit from your peers’ feedback.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This means that you should have “decent” versions of all the required components by the time you’re submitting your draft. This is enough for full credit on the draft stage. In the revised submission, I’ll also be grading on code quality, style, and expository writing.&lt;/p&gt;

&lt;h2 id=&quot;prompt&quot;&gt;Prompt&lt;/h2&gt;

&lt;h3 id=&quot;1-create-a-database&quot;&gt;§1. Create a Database&lt;/h3&gt;

&lt;p&gt;First, create a database with three tables: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;temperatures&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stations&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;countries&lt;/code&gt;. Information on how to access country names and relate them to temperature readings is in &lt;a href=&quot;https://github.com/PhilChodrow/PIC16B/blob/master/lectures/EDA/pd-1.ipynb&quot;&gt;this lecture&lt;/a&gt;. Rather than merging, as we did in the linked lecture, you should keep these as three separate tables in your database.&lt;/p&gt;

&lt;p&gt;Make sure to close the database connection after you are finished constructing it.&lt;/p&gt;

&lt;h3 id=&quot;2-write-a-query-function&quot;&gt;§2. Write a Query Function&lt;/h3&gt;

&lt;p&gt;Write a function called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;query_climate_database()&lt;/code&gt; which accepts four arguments:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;country&lt;/code&gt;, a string giving the name of a country for which data should be returned.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;year_begin&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;year_end&lt;/code&gt;, two integers giving the earliest and latest years for which should be returned.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;month&lt;/code&gt;, an integer giving the month of the year for which should be returned.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The return value of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;query_climate_database()&lt;/code&gt; is a Pandas dataframe of temperature readings for the specified country, in the specified date range, in the specified month of the year. This dataframe should have columns for:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The station name.&lt;/li&gt;
  &lt;li&gt;The latitude of the station.&lt;/li&gt;
  &lt;li&gt;The longitude of the station.&lt;/li&gt;
  &lt;li&gt;The name of the country in which the station is located.&lt;/li&gt;
  &lt;li&gt;The year in which the reading was taken.&lt;/li&gt;
  &lt;li&gt;The month in which the reading was taken.&lt;/li&gt;
  &lt;li&gt;The average temperature at the specified station during the specified year and month. (&lt;em&gt;Note: the temperatures in the raw data are already averages by month, so you don’t have to do any aggregation at this stage.&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example:&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;LATITUDE&lt;/th&gt;
      &lt;th&gt;LONGITUDE&lt;/th&gt;
      &lt;th&gt;Country&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;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.5830&lt;/td&gt;
      &lt;td&gt;77.6330&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1973&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.97&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.5830&lt;/td&gt;
      &lt;td&gt;77.6330&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1974&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.16&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.5830&lt;/td&gt;
      &lt;td&gt;77.6330&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1975&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;23.22&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.5830&lt;/td&gt;
      &lt;td&gt;77.6330&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1977&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.00&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.5830&lt;/td&gt;
      &lt;td&gt;77.6330&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1978&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.70&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;7361&lt;/th&gt;
      &lt;td&gt;DIU&lt;/td&gt;
      &lt;td&gt;20.7167&lt;/td&gt;
      &lt;td&gt;70.9167&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1955&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;22.75&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;7362&lt;/th&gt;
      &lt;td&gt;DIU&lt;/td&gt;
      &lt;td&gt;20.7167&lt;/td&gt;
      &lt;td&gt;70.9167&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1956&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;22.50&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;7363&lt;/th&gt;
      &lt;td&gt;DIU&lt;/td&gt;
      &lt;td&gt;20.7167&lt;/td&gt;
      &lt;td&gt;70.9167&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1957&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;22.20&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;7364&lt;/th&gt;
      &lt;td&gt;DIU&lt;/td&gt;
      &lt;td&gt;20.7167&lt;/td&gt;
      &lt;td&gt;70.9167&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1958&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;22.85&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;7365&lt;/th&gt;
      &lt;td&gt;DIU&lt;/td&gt;
      &lt;td&gt;20.7167&lt;/td&gt;
      &lt;td&gt;70.9167&lt;/td&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;1960&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;21.70&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;7366 rows × 7 columns&lt;/p&gt;
&lt;/div&gt;

&lt;h3 id=&quot;3-write-a-geographic-scatter-function-for-yearly-temperature-increases&quot;&gt;§3. Write a Geographic Scatter Function for Yearly Temperature Increases&lt;/h3&gt;

&lt;p&gt;In this part, you will write a function to create visualizations that address the following question:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;How does the average yearly change in temperature vary within a given country?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Write a function called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;temperature_coefficient_plot()&lt;/code&gt;. This function should accept five explicit arguments, and an undetermined number of keyword arguments.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;country&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;year_begin&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;year_end&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;month&lt;/code&gt; should be as in the previous part.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;min_obs&lt;/code&gt;, the minimum required number of years of data for any given station. Only data for stations with at least &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;min_obs&lt;/code&gt; years worth of data in the specified month should be plotted; the others should be filtered out. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;df.transform()&lt;/code&gt; plus filtering is a good way to achieve this task.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;**kwargs&lt;/code&gt;, additional keyword arguments passed to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;px.scatter_mapbox()&lt;/code&gt;. These can be used to control the colormap used, the mapbox style, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The output of this function should be an interactive geographic scatterplot, constructed using Plotly Express, with a point for each station, such that the color of the point reflects an estimate of the yearly change in temperature during the specified month and time period at that station. A reasonable way to do this is to compute the first coefficient of a linear regression model at that station, as illustrated in &lt;a href=&quot;https://github.com/PhilChodrow/PIC16B/blob/master/lectures/EDA/pd-2.ipynb&quot;&gt;these lecture notes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For example, after writing your function, you should be able to create a plot of estimated yearly increases in temperature during the month of January, in the interval 1980-2020, in India, as follows:&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;/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;fe9dea28-8de9-40f0-9ce1-2172a02b520d&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:300px; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;fe9dea28-8de9-40f0-9ce1-2172a02b520d&quot;)) {                    Plotly.newPlot(                        &quot;fe9dea28-8de9-40f0-9ce1-2172a02b520d&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 Yearly Increase (\u00b0C)=%{marker.color}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AGARTALA&quot;, &quot;AGRA&quot;, &quot;AHMADABAD&quot;, &quot;AJMERE&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;ALLAHABAD&quot;, &quot;ALLAHABAD_BAMHRAULI&quot;, &quot;AMBALA&quot;, &quot;AMRITSAR&quot;, &quot;AURANGABAD_CHIKALTH&quot;, &quot;BALASORE&quot;, &quot;BANGALORE&quot;, &quot;BANGALORE_HINDUSTAN&quot;, &quot;BAREILLY&quot;, &quot;BEGUMPETOBSY&quot;, &quot;BELGAUM_SAMBRA&quot;, &quot;BERHAMPORE&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;CUTTACK&quot;, &quot;DALTONGANJ&quot;, &quot;DAMAO&quot;, &quot;DARBHANGA&quot;, &quot;DARJEELING&quot;, &quot;DEHRADUN&quot;, &quot;DIBRUGARH_MOHANBAR&quot;, &quot;DIU&quot;, &quot;DUMKA&quot;, &quot;DWARKA&quot;, &quot;FORT_COCHIN&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;LEH_KASHMIR&quot;, &quot;LUCKNOW_AMAUSI&quot;, &quot;LUDHIANA&quot;, &quot;MACHILIPATNAM&quot;, &quot;MADRAS_MINAMBAKKAM&quot;, &quot;MANGALORE&quot;, &quot;MANGALORE_BAJPE&quot;, &quot;MARMAGAO&quot;, &quot;MINICOY&quot;, &quot;MINICOYOBSY&quot;, &quot;MO_AMINI&quot;, &quot;MO_RANCHI&quot;, &quot;MT_ABU&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;NOWGONG&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;ROORKEE&quot;, &quot;SAGAR&quot;, &quot;SANDHEADS&quot;, &quot;SATNA&quot;, &quot;SHILONG&quot;, &quot;SHIMLA&quot;, &quot;SHOLAPUR&quot;, &quot;SIBSAGAR&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;VIZAGAPATAM&quot;], &quot;lat&quot;: [23.883, 27.1667, 23.067, 26.47, 20.7, 20.7, 25.441, 25.5, 30.383, 31.71, 19.85, 21.517, 12.967, 12.95, 28.367, 17.45, 15.85, 24.1, 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, 20.467, 24.05, 20.42, 26.1667, 27.05, 30.317, 27.483, 20.7167, 24.267, 22.3667, 9.967, 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, 34.2, 26.75, 30.9333, 16.2, 13.0, 12.867, 12.917, 15.42, 8.3, 8.3, 11.117, 23.317, 24.6, 29.4667, 21.1, 14.45, 28.567, 28.583, 27.233, 25.03, 9.267, 30.333, 25.6, 14.583, 22.767, 18.533, 11.667, 21.217, 22.3, 18.767, 16.983, 29.85, 23.85, 20.85, 24.567, 25.6, 31.1, 17.667, 26.98, 24.82, 34.083, 21.2, 26.617, 8.467, 8.483, 10.767, 8.5, 24.617, 25.45, 20.9, 17.717, 17.7], &quot;legendgroup&quot;: &quot;&quot;, &quot;lon&quot;: [91.25, 78.0333, 72.633, 74.62, 77.033, 77.067, 81.735, 81.9, 76.767, 74.797, 75.4, 86.933, 77.583, 77.633, 79.4, 78.47, 74.617, 88.28, 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, 85.933, 84.067, 72.83, 85.9, 88.27, 78.033, 95.017, 70.9167, 87.25, 69.0833, 76.233, 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, 77.7, 80.883, 75.8667, 81.15, 80.183, 74.85, 74.883, 73.78, 73.15, 73.0, 72.733, 85.317, 72.72, 79.65, 79.05, 79.983, 77.117, 77.2, 94.117, 79.48, 79.3, 76.467, 85.1, 77.633, 81.9, 73.85, 92.717, 81.667, 70.783, 79.433, 73.333, 77.883, 78.75, 88.25, 80.833, 91.89, 77.167, 75.9, 94.63, 92.83, 74.833, 72.833, 92.783, 76.95, 76.95, 78.717, 77.0, 73.883, 82.867, 70.367, 83.233, 83.37], &quot;marker&quot;: {&quot;color&quot;: [0.0104, -0.0018, -0.0186, -0.0055, 0.0037, 0.0116, -0.0094, -0.0108, 0.0137, -0.0072, 0.0153, -0.002, 0.0127, -0.008, -0.0002, 0.0147, -0.0024, 0.0058, -0.0109, -0.0083, 0.0414, 0.0087, 0.0144, 0.0292, 0.0044, -0.0134, 0.038, -0.0015, 0.0096, 0.0288, 0.0196, 0.0149, -0.0038, 0.0535, 0.0012, 0.0055, 0.0219, 0.0104, 0.0008, 0.0049, 0.0123, 0.0059, 0.0166, 0.0106, 0.0053, -0.0132, 0.0231, -0.0028, -0.0019, -0.0209, 0.0022, -0.01, 0.032, 0.0043, -0.0036, 0.0129, 0.0017, 0.0063, -0.0015, 0.0087, 0.0256, 0.0368, 0.0042, -0.016, 0.0341, 0.0206, -0.0011, -0.0257, 0.0137, 0.0181, 0.0101, 0.0071, 0.0249, 0.0083, 0.018, 0.0093, -0.0075, 0.0259, -0.0091, 0.0151, -0.0027, 0.013, 0.0012, 0.0016, 0.0996, -0.0011, 0.0075, -0.0107, -0.0204, 0.0175, 0.0014, 0.0016, 0.0067, 0.0095, 0.0113, -0.002, 0.009, 0.0016, 0.0036, -0.0102, -0.0093, 0.0176, 0.0017, 0.0177, 0.0083, 0.0022, 0.0117, 0.0227, 0.0338, 0.0134, 0.0197, 0.0164, 0.0122, 0.0986, -0.0128, 0.0029, -0.0027, -0.0119], &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 Yearly&lt;br&gt;Increase (\u00b0C)&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;height&quot;: 300, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;mapbox&quot;: {&quot;center&quot;: {&quot;lat&quot;: 21.31917881355932, &quot;lon&quot;: 79.60730254237289}, &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;b&quot;: 0, &quot;l&quot;: 0, &quot;r&quot;: 0, &quot;t&quot;: 50}, &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;\n    Estimates of yearly increase in temperature in January \n    &lt;br&gt;for stations in India, years 1980 - 2020\n    &quot;}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;Please pay attention to the following details:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The station name is shown when you hover over the corresponding point on the map.&lt;/li&gt;
  &lt;li&gt;The estimates shown in the hover are rounded to a sober number of significant figures.&lt;/li&gt;
  &lt;li&gt;The colorbar and overall plot have professional titles.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s not necessary for your plot to look exactly like mine, but please attend to details such as these. Feel free to be creative about these labels, as well as the choice of colors, as long as your result is polished overall.&lt;/p&gt;

&lt;p&gt;You are free (and indeed encouraged) to define additional functions as needed.&lt;/p&gt;

&lt;h3 id=&quot;4-create-two-more-interesting-figures&quot;&gt;§4. Create Two More Interesting Figures&lt;/h3&gt;

&lt;p&gt;Create at least two more complex and interesting interactive data visualizations using the same data set. In each case, you should construct your visualization from data obtained by querying the database that you created in §1. The code to construct each visualization should be wrapped in functions, such that a user could create visualizations for different parts of the data by calling these functions with different arguments.&lt;/p&gt;

&lt;p&gt;Alongside the plots, you should clearly state a question that the plot addresses, similar to the question that we posed in §3. The questions for your two additional plots should be meaningfully different from each other and from the §3 question. You will likely want to define different query functions for extracting data for these new visualizations.&lt;/p&gt;

&lt;p&gt;It is not necessary to create &lt;em&gt;geographic&lt;/em&gt; plots for this part. Scatterplots, histograms, and line plots (among other choices) are all appropriate. Please make sure that they are complex, engaging, professional, and targeted to the questions you posed. In other words, &lt;em&gt;push yourself!&lt;/em&gt; Don’t hesitate to ask your peers or talk to me if you’re having trouble coming up with questions or identifying plots that might be suitable for addressing those questions.&lt;/p&gt;</content><author><name></name></author><summary type="html">In this blog post, you’ll create several interesting, interactive data graphics using the NOAA climate data that we’ve explored in the first several weeks of lectures.</summary></entry><entry><title type="html">Activity - my test post</title><link href="https://susanzhang233.github.io/test/" rel="alternate" type="text/html" title="Activity - my test post" /><published>2021-03-31T00:00:00+00:00</published><updated>2021-03-31T00:00:00+00:00</updated><id>https://susanzhang233.github.io/test</id><content type="html" xml:base="https://susanzhang233.github.io/test/">&lt;p&gt;Text text text&lt;/p&gt;

&lt;h3 id=&quot;headers&quot;&gt;headers&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;bulleted
-list
  1.ah
  2.ahh&lt;/li&gt;
&lt;/ul&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;f&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;k&quot;&gt;pass&lt;/span&gt;

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

&lt;div class=&quot;got-help&quot;&gt;

  &lt;p&gt;Yeyeyey&lt;/p&gt;
&lt;/div&gt;

&lt;div class=&quot;gave-help&quot;&gt;

  &lt;p&gt;Yeyeyey&lt;/p&gt;
&lt;/div&gt;</content><author><name></name></author><summary type="html">Text text text</summary></entry><entry><title type="html">Blog Post 0</title><link href="https://susanzhang233.github.io/HW-0/" rel="alternate" type="text/html" title="Blog Post 0" /><published>2021-03-22T00:00:00+00:00</published><updated>2021-03-22T00:00:00+00:00</updated><id>https://susanzhang233.github.io/HW-0</id><content type="html" xml:base="https://susanzhang233.github.io/HW-0/">&lt;p&gt;In this blog post assignment (homework), you’ll create a short post for your new website. The primary purpose is to give you some practice working with Jekyll blogging with Python code.&lt;/p&gt;

&lt;h2 id=&quot;0-fork&quot;&gt;§0. Fork&lt;/h2&gt;

&lt;p&gt;To complete this homework assignment, you’ll need to have completed installations of Anaconda, GitHub Desktop, and Jekyll as described in &lt;a href=&quot;/software&quot;&gt;this post&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;1-complete-the-hello-jekyll-activity&quot;&gt;§1. Complete the Hello Jekyll activity&lt;/h2&gt;

&lt;p&gt;Your first step should be to complete the &lt;a href=&quot;/hello-jekyll&quot;&gt;Hello Jekyll&lt;/a&gt; activity to help you get familiar with blogging with Jekyll. If you already completed this activity in Discussion, then you can skip to the next step.&lt;/p&gt;

&lt;p&gt;If you haven’t already, now is a good time to modify your site. Look around the site’s files and see if you can figure out how to:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Change your avatar (picture at the top left corner).&lt;/li&gt;
  &lt;li&gt;Change your blog’s title (currently “My PIC16B Blog”) and byline (currently “Awesome Python Student”).&lt;/li&gt;
  &lt;li&gt;If you’d like to, you can include a bit about yourself on the “About” page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All this is optional, and it’s not necessary to put your real name or real photo anywhere on the site.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hint&lt;/strong&gt;: Most website options are controlled by the file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/config.png&quot; alt=&quot;_config.yml&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;modifying-appearance&quot;&gt;Modifying Appearance&lt;/h3&gt;

&lt;p&gt;There are many ways to modify the appearance of your website. If you are comfortable with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;css&lt;/code&gt;, then you can directly modify &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;style.scss&lt;/code&gt; and other files in the repo. If you want to get fancier, you can look into migrating to one of the many available themes in the &lt;a href=&quot;https://jekyllthemes.io/free&quot;&gt;Jekyll theme gallery&lt;/a&gt;. Please note that, while theming your website can be fun and satisfying, it is outside the scope of the course. As a consequence, neither I nor the TA can help you troubleshoot your website if you are using a theme. Proceed at your own risk!&lt;/p&gt;

&lt;h2 id=&quot;2-create-a-post&quot;&gt;§2. Create a post!&lt;/h2&gt;

&lt;p&gt;Create a simple blog post, using the instructions and demonstrations &lt;a href=&quot;/composing&quot;&gt;here&lt;/a&gt;. Here is the prompt for your post:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Write a tutorial explaining how to construct an interesting data visualization of the &lt;a href=&quot;https://github.com/allisonhorst/palmerpenguins&quot;&gt;Palmer Penguins&lt;/a&gt; data set.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can read the data into Python by running:&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;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/palmer_penguins.csv&quot;&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;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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Your visualization does not have to be complex or fancy, but it should be highly readable and appropriately labeled. Here are the requirements for your post:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Your post should have lots of &lt;strong&gt;explanatory text.&lt;/strong&gt; Your goal is to explain to someone how to create the visualization! Make sure to explain the usage of tools from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pandas&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;matplotlib&lt;/code&gt;, for example.&lt;/li&gt;
  &lt;li&gt;Your post should include &lt;strong&gt;all the code needed&lt;/strong&gt; to construct the visualization. Show us everything!&lt;/li&gt;
  &lt;li&gt;Your post should include the image directly under the code that generates it, as demonstrated &lt;a href=&quot;/composing&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;/example-post&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Your post should include the use of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;got-help&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gave-help&lt;/code&gt; environments demonstrated &lt;a href=&quot;/composing&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;/example-post&quot;&gt;here&lt;/a&gt;. Feel free to put some filler text within these environments, since you won’t be giving or receiving peer feedback on this assignment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Commit and push your post to publish it to the web. Your assignment is not complete until it is a live blog post on the internet!&lt;/p&gt;

&lt;p&gt;On CCLE, submit a link to your published post.&lt;/p&gt;

&lt;h4 id=&quot;hint&quot;&gt;Hint&lt;/h4&gt;

&lt;p&gt;The easiest way to create a post like this is to solve the problem in a Jupyter Notebook &lt;em&gt;first&lt;/em&gt;, and then transfer the results over to your blog.&lt;/p&gt;</content><author><name></name></author><summary type="html">In this blog post assignment (homework), you’ll create a short post for your new website. The primary purpose is to give you some practice working with Jekyll blogging with Python code.</summary></entry></feed>