Spaces:
Build error
Build error
freemt
commited on
Commit
•
71a7230
1
Parent(s):
d5ff673
Update shpinx docs
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- docs/Makefile +20 -0
- docs/build/doctrees/environment.pickle +0 -0
- docs/build/doctrees/examples.doctree +0 -0
- docs/build/doctrees/index.doctree +0 -0
- docs/build/doctrees/intro.doctree +0 -0
- docs/build/doctrees/modules.doctree +0 -0
- docs/build/doctrees/radiobee.doctree +0 -0
- docs/build/html/.buildinfo +4 -0
- docs/build/html/_sources/examples.rst.txt +10 -0
- docs/build/html/_sources/index.rst.txt +22 -0
- docs/build/html/_sources/intro.rst.txt +18 -0
- docs/build/html/_sources/modules.rst.txt +7 -0
- docs/build/html/_sources/radiobee.rst.txt +229 -0
- docs/build/html/_static/basic.css +905 -0
- docs/build/html/_static/css/badge_only.css +1 -0
- docs/build/html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
- docs/build/html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- docs/build/html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
- docs/build/html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- docs/build/html/_static/css/fonts/fontawesome-webfont.eot +0 -0
- docs/build/html/_static/css/fonts/fontawesome-webfont.svg +0 -0
- docs/build/html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
- docs/build/html/_static/css/fonts/fontawesome-webfont.woff +0 -0
- docs/build/html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
- docs/build/html/_static/css/fonts/lato-bold-italic.woff +0 -0
- docs/build/html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
- docs/build/html/_static/css/fonts/lato-bold.woff +0 -0
- docs/build/html/_static/css/fonts/lato-bold.woff2 +0 -0
- docs/build/html/_static/css/fonts/lato-normal-italic.woff +0 -0
- docs/build/html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
- docs/build/html/_static/css/fonts/lato-normal.woff +0 -0
- docs/build/html/_static/css/fonts/lato-normal.woff2 +0 -0
- docs/build/html/_static/css/theme.css +0 -0
- docs/build/html/_static/doctools.js +323 -0
- docs/build/html/_static/documentation_options.js +12 -0
- docs/build/html/_static/file.png +0 -0
- docs/build/html/_static/jquery-3.5.1.js +0 -0
- docs/build/html/_static/jquery.js +2 -0
- docs/build/html/_static/js/badge_only.js +1 -0
- docs/build/html/_static/js/html5shiv-printshiv.min.js +4 -0
- docs/build/html/_static/js/html5shiv.min.js +4 -0
- docs/build/html/_static/js/theme.js +1 -0
- docs/build/html/_static/language_data.js +297 -0
- docs/build/html/_static/minus.png +0 -0
- docs/build/html/_static/plus.png +0 -0
- docs/build/html/_static/pygments.css +74 -0
- docs/build/html/_static/searchtools.js +529 -0
- docs/build/html/_static/underscore-1.13.1.js +2042 -0
- docs/build/html/_static/underscore.js +6 -0
- docs/build/html/examples.html +112 -0
docs/Makefile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Minimal makefile for Sphinx documentation
|
2 |
+
#
|
3 |
+
|
4 |
+
# You can set these variables from the command line, and also
|
5 |
+
# from the environment for the first two.
|
6 |
+
SPHINXOPTS ?=
|
7 |
+
SPHINXBUILD ?= sphinx-build
|
8 |
+
SOURCEDIR = source
|
9 |
+
BUILDDIR = build
|
10 |
+
|
11 |
+
# Put it first so that "make" without argument is like "make help".
|
12 |
+
help:
|
13 |
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
14 |
+
|
15 |
+
.PHONY: help Makefile
|
16 |
+
|
17 |
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
18 |
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
19 |
+
%: Makefile
|
20 |
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
docs/build/doctrees/environment.pickle
ADDED
Binary file (28.7 kB). View file
|
|
docs/build/doctrees/examples.doctree
ADDED
Binary file (4.09 kB). View file
|
|
docs/build/doctrees/index.doctree
ADDED
Binary file (5.03 kB). View file
|
|
docs/build/doctrees/intro.doctree
ADDED
Binary file (4.46 kB). View file
|
|
docs/build/doctrees/modules.doctree
ADDED
Binary file (2.71 kB). View file
|
|
docs/build/doctrees/radiobee.doctree
ADDED
Binary file (41.4 kB). View file
|
|
docs/build/html/.buildinfo
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Sphinx build info version 1
|
2 |
+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
3 |
+
config: b1ecdae41f66ec6208b0f2363ab5d23c
|
4 |
+
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
docs/build/html/_sources/examples.rst.txt
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Examples
|
2 |
+
=============
|
3 |
+
|
4 |
+
Installation/Usage:
|
5 |
+
*******************
|
6 |
+
As the package has not been published on PyPi yet, it CANNOT be install using pip.
|
7 |
+
|
8 |
+
For now, the suggested method is to download the zipped package or use the online version at `https://huggingface.co/spaces/mikeee/radiobee-aligner/ <https://huggingface.co/spaces/mikeee/radiobee-aligner/>`_
|
9 |
+
|
10 |
+
|
docs/build/html/_sources/index.rst.txt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.. radiobee documentation master file, created by
|
2 |
+
sphinx-quickstart on Tue Jan 4 11:32:45 2022.
|
3 |
+
You can adapt this file completely to your liking, but it should at least
|
4 |
+
contain the root `toctree` directive.
|
5 |
+
|
6 |
+
Welcome to radiobee's documentation!
|
7 |
+
====================================
|
8 |
+
|
9 |
+
.. toctree::
|
10 |
+
:maxdepth: 2
|
11 |
+
:caption: Contents:
|
12 |
+
|
13 |
+
intro
|
14 |
+
radiobee
|
15 |
+
examples
|
16 |
+
|
17 |
+
Indices and tables
|
18 |
+
==================
|
19 |
+
|
20 |
+
* :ref:`genindex`
|
21 |
+
* :ref:`modindex`
|
22 |
+
* :ref:`search`
|
docs/build/html/_sources/intro.rst.txt
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Introduction
|
2 |
+
============
|
3 |
+
|
4 |
+
``radiobee`` (``radiobee aligner``) is a powerful dualtext aligner.
|
5 |
+
|
6 |
+
The aim here was
|
7 |
+
|
8 |
+
The current implementation has been developed in Python 3 and `gradio`.
|
9 |
+
|
10 |
+
Motivation
|
11 |
+
**********
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
Limitations
|
16 |
+
***********
|
17 |
+
|
18 |
+
Currently, only zh-en/en-zh pairs are supported although further pairs are beig planning if and when time permits. If you are willing to help with a particular pair, you are welcome to contact the developer.
|
docs/build/html/_sources/modules.rst.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
radiobee
|
2 |
+
========
|
3 |
+
|
4 |
+
.. toctree::
|
5 |
+
:maxdepth: 4
|
6 |
+
|
7 |
+
radiobee
|
docs/build/html/_sources/radiobee.rst.txt
ADDED
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
radiobee package
|
2 |
+
================
|
3 |
+
|
4 |
+
Submodules
|
5 |
+
----------
|
6 |
+
|
7 |
+
radiobee.align\_sents module
|
8 |
+
----------------------------
|
9 |
+
|
10 |
+
.. automodule:: radiobee.align_sents
|
11 |
+
:members:
|
12 |
+
:undoc-members:
|
13 |
+
:show-inheritance:
|
14 |
+
|
15 |
+
radiobee.align\_texts module
|
16 |
+
----------------------------
|
17 |
+
|
18 |
+
.. automodule:: radiobee.align_texts
|
19 |
+
:members:
|
20 |
+
:undoc-members:
|
21 |
+
:show-inheritance:
|
22 |
+
|
23 |
+
radiobee.amend\_avec module
|
24 |
+
---------------------------
|
25 |
+
|
26 |
+
.. automodule:: radiobee.amend_avec
|
27 |
+
:members:
|
28 |
+
:undoc-members:
|
29 |
+
:show-inheritance:
|
30 |
+
|
31 |
+
radiobee.app module
|
32 |
+
-------------------
|
33 |
+
|
34 |
+
.. automodule:: radiobee.app
|
35 |
+
:members:
|
36 |
+
:undoc-members:
|
37 |
+
:show-inheritance:
|
38 |
+
|
39 |
+
radiobee.cmat2tset module
|
40 |
+
-------------------------
|
41 |
+
|
42 |
+
.. automodule:: radiobee.cmat2tset
|
43 |
+
:members:
|
44 |
+
:undoc-members:
|
45 |
+
:show-inheritance:
|
46 |
+
|
47 |
+
radiobee.docterm\_scores module
|
48 |
+
-------------------------------
|
49 |
+
|
50 |
+
.. automodule:: radiobee.docterm_scores
|
51 |
+
:members:
|
52 |
+
:undoc-members:
|
53 |
+
:show-inheritance:
|
54 |
+
|
55 |
+
radiobee.en2zh module
|
56 |
+
---------------------
|
57 |
+
|
58 |
+
.. automodule:: radiobee.en2zh
|
59 |
+
:members:
|
60 |
+
:undoc-members:
|
61 |
+
:show-inheritance:
|
62 |
+
|
63 |
+
radiobee.en2zh\_tokens module
|
64 |
+
-----------------------------
|
65 |
+
|
66 |
+
.. automodule:: radiobee.en2zh_tokens
|
67 |
+
:members:
|
68 |
+
:undoc-members:
|
69 |
+
:show-inheritance:
|
70 |
+
|
71 |
+
radiobee.file2text module
|
72 |
+
-------------------------
|
73 |
+
|
74 |
+
.. automodule:: radiobee.file2text
|
75 |
+
:members:
|
76 |
+
:undoc-members:
|
77 |
+
:show-inheritance:
|
78 |
+
|
79 |
+
radiobee.files2df module
|
80 |
+
------------------------
|
81 |
+
|
82 |
+
.. automodule:: radiobee.files2df
|
83 |
+
:members:
|
84 |
+
:undoc-members:
|
85 |
+
:show-inheritance:
|
86 |
+
|
87 |
+
radiobee.gen\_aset module
|
88 |
+
-------------------------
|
89 |
+
|
90 |
+
.. automodule:: radiobee.gen_aset
|
91 |
+
:members:
|
92 |
+
:undoc-members:
|
93 |
+
:show-inheritance:
|
94 |
+
|
95 |
+
radiobee.gen\_eps\_minsamples module
|
96 |
+
------------------------------------
|
97 |
+
|
98 |
+
.. automodule:: radiobee.gen_eps_minsamples
|
99 |
+
:members:
|
100 |
+
:undoc-members:
|
101 |
+
:show-inheritance:
|
102 |
+
|
103 |
+
radiobee.gen\_model module
|
104 |
+
--------------------------
|
105 |
+
|
106 |
+
.. automodule:: radiobee.gen_model
|
107 |
+
:members:
|
108 |
+
:undoc-members:
|
109 |
+
:show-inheritance:
|
110 |
+
|
111 |
+
radiobee.gen\_pset module
|
112 |
+
-------------------------
|
113 |
+
|
114 |
+
.. automodule:: radiobee.gen_pset
|
115 |
+
:members:
|
116 |
+
:undoc-members:
|
117 |
+
:show-inheritance:
|
118 |
+
|
119 |
+
radiobee.gen\_row\_alignment module
|
120 |
+
-----------------------------------
|
121 |
+
|
122 |
+
.. automodule:: radiobee.gen_row_alignment
|
123 |
+
:members:
|
124 |
+
:undoc-members:
|
125 |
+
:show-inheritance:
|
126 |
+
|
127 |
+
radiobee.insert\_spaces module
|
128 |
+
------------------------------
|
129 |
+
|
130 |
+
.. automodule:: radiobee.insert_spaces
|
131 |
+
:members:
|
132 |
+
:undoc-members:
|
133 |
+
:show-inheritance:
|
134 |
+
|
135 |
+
radiobee.interpolate\_pset module
|
136 |
+
---------------------------------
|
137 |
+
|
138 |
+
.. automodule:: radiobee.interpolate_pset
|
139 |
+
:members:
|
140 |
+
:undoc-members:
|
141 |
+
:show-inheritance:
|
142 |
+
|
143 |
+
radiobee.lists2cmat module
|
144 |
+
--------------------------
|
145 |
+
|
146 |
+
.. automodule:: radiobee.lists2cmat
|
147 |
+
:members:
|
148 |
+
:undoc-members:
|
149 |
+
:show-inheritance:
|
150 |
+
|
151 |
+
radiobee.loadtext module
|
152 |
+
------------------------
|
153 |
+
|
154 |
+
.. automodule:: radiobee.loadtext
|
155 |
+
:members:
|
156 |
+
:undoc-members:
|
157 |
+
:show-inheritance:
|
158 |
+
|
159 |
+
radiobee.mdx\_e2c module
|
160 |
+
------------------------
|
161 |
+
|
162 |
+
.. automodule:: radiobee.mdx_e2c
|
163 |
+
:members:
|
164 |
+
:undoc-members:
|
165 |
+
:show-inheritance:
|
166 |
+
|
167 |
+
radiobee.plot\_cmat module
|
168 |
+
--------------------------
|
169 |
+
|
170 |
+
.. automodule:: radiobee.plot_cmat
|
171 |
+
:members:
|
172 |
+
:undoc-members:
|
173 |
+
:show-inheritance:
|
174 |
+
|
175 |
+
radiobee.plot\_df module
|
176 |
+
------------------------
|
177 |
+
|
178 |
+
.. automodule:: radiobee.plot_df
|
179 |
+
:members:
|
180 |
+
:undoc-members:
|
181 |
+
:show-inheritance:
|
182 |
+
|
183 |
+
radiobee.process\_upload module
|
184 |
+
-------------------------------
|
185 |
+
|
186 |
+
.. automodule:: radiobee.process_upload
|
187 |
+
:members:
|
188 |
+
:undoc-members:
|
189 |
+
:show-inheritance:
|
190 |
+
|
191 |
+
radiobee.seg\_text module
|
192 |
+
-------------------------
|
193 |
+
|
194 |
+
.. automodule:: radiobee.seg_text
|
195 |
+
:members:
|
196 |
+
:undoc-members:
|
197 |
+
:show-inheritance:
|
198 |
+
|
199 |
+
radiobee.shuffle\_sents module
|
200 |
+
------------------------------
|
201 |
+
|
202 |
+
.. automodule:: radiobee.shuffle_sents
|
203 |
+
:members:
|
204 |
+
:undoc-members:
|
205 |
+
:show-inheritance:
|
206 |
+
|
207 |
+
radiobee.smatrix module
|
208 |
+
-----------------------
|
209 |
+
|
210 |
+
.. automodule:: radiobee.smatrix
|
211 |
+
:members:
|
212 |
+
:undoc-members:
|
213 |
+
:show-inheritance:
|
214 |
+
|
215 |
+
radiobee.trim\_df module
|
216 |
+
------------------------
|
217 |
+
|
218 |
+
.. automodule:: radiobee.trim_df
|
219 |
+
:members:
|
220 |
+
:undoc-members:
|
221 |
+
:show-inheritance:
|
222 |
+
|
223 |
+
Module contents
|
224 |
+
---------------
|
225 |
+
|
226 |
+
.. automodule:: radiobee
|
227 |
+
:members:
|
228 |
+
:undoc-members:
|
229 |
+
:show-inheritance:
|
docs/build/html/_static/basic.css
ADDED
@@ -0,0 +1,905 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* basic.css
|
3 |
+
* ~~~~~~~~~
|
4 |
+
*
|
5 |
+
* Sphinx stylesheet -- basic theme.
|
6 |
+
*
|
7 |
+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
|
8 |
+
* :license: BSD, see LICENSE for details.
|
9 |
+
*
|
10 |
+
*/
|
11 |
+
|
12 |
+
/* -- main layout ----------------------------------------------------------- */
|
13 |
+
|
14 |
+
div.clearer {
|
15 |
+
clear: both;
|
16 |
+
}
|
17 |
+
|
18 |
+
div.section::after {
|
19 |
+
display: block;
|
20 |
+
content: '';
|
21 |
+
clear: left;
|
22 |
+
}
|
23 |
+
|
24 |
+
/* -- relbar ---------------------------------------------------------------- */
|
25 |
+
|
26 |
+
div.related {
|
27 |
+
width: 100%;
|
28 |
+
font-size: 90%;
|
29 |
+
}
|
30 |
+
|
31 |
+
div.related h3 {
|
32 |
+
display: none;
|
33 |
+
}
|
34 |
+
|
35 |
+
div.related ul {
|
36 |
+
margin: 0;
|
37 |
+
padding: 0 0 0 10px;
|
38 |
+
list-style: none;
|
39 |
+
}
|
40 |
+
|
41 |
+
div.related li {
|
42 |
+
display: inline;
|
43 |
+
}
|
44 |
+
|
45 |
+
div.related li.right {
|
46 |
+
float: right;
|
47 |
+
margin-right: 5px;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* -- sidebar --------------------------------------------------------------- */
|
51 |
+
|
52 |
+
div.sphinxsidebarwrapper {
|
53 |
+
padding: 10px 5px 0 10px;
|
54 |
+
}
|
55 |
+
|
56 |
+
div.sphinxsidebar {
|
57 |
+
float: left;
|
58 |
+
width: 230px;
|
59 |
+
margin-left: -100%;
|
60 |
+
font-size: 90%;
|
61 |
+
word-wrap: break-word;
|
62 |
+
overflow-wrap : break-word;
|
63 |
+
}
|
64 |
+
|
65 |
+
div.sphinxsidebar ul {
|
66 |
+
list-style: none;
|
67 |
+
}
|
68 |
+
|
69 |
+
div.sphinxsidebar ul ul,
|
70 |
+
div.sphinxsidebar ul.want-points {
|
71 |
+
margin-left: 20px;
|
72 |
+
list-style: square;
|
73 |
+
}
|
74 |
+
|
75 |
+
div.sphinxsidebar ul ul {
|
76 |
+
margin-top: 0;
|
77 |
+
margin-bottom: 0;
|
78 |
+
}
|
79 |
+
|
80 |
+
div.sphinxsidebar form {
|
81 |
+
margin-top: 10px;
|
82 |
+
}
|
83 |
+
|
84 |
+
div.sphinxsidebar input {
|
85 |
+
border: 1px solid #98dbcc;
|
86 |
+
font-family: sans-serif;
|
87 |
+
font-size: 1em;
|
88 |
+
}
|
89 |
+
|
90 |
+
div.sphinxsidebar #searchbox form.search {
|
91 |
+
overflow: hidden;
|
92 |
+
}
|
93 |
+
|
94 |
+
div.sphinxsidebar #searchbox input[type="text"] {
|
95 |
+
float: left;
|
96 |
+
width: 80%;
|
97 |
+
padding: 0.25em;
|
98 |
+
box-sizing: border-box;
|
99 |
+
}
|
100 |
+
|
101 |
+
div.sphinxsidebar #searchbox input[type="submit"] {
|
102 |
+
float: left;
|
103 |
+
width: 20%;
|
104 |
+
border-left: none;
|
105 |
+
padding: 0.25em;
|
106 |
+
box-sizing: border-box;
|
107 |
+
}
|
108 |
+
|
109 |
+
|
110 |
+
img {
|
111 |
+
border: 0;
|
112 |
+
max-width: 100%;
|
113 |
+
}
|
114 |
+
|
115 |
+
/* -- search page ----------------------------------------------------------- */
|
116 |
+
|
117 |
+
ul.search {
|
118 |
+
margin: 10px 0 0 20px;
|
119 |
+
padding: 0;
|
120 |
+
}
|
121 |
+
|
122 |
+
ul.search li {
|
123 |
+
padding: 5px 0 5px 20px;
|
124 |
+
background-image: url(file.png);
|
125 |
+
background-repeat: no-repeat;
|
126 |
+
background-position: 0 7px;
|
127 |
+
}
|
128 |
+
|
129 |
+
ul.search li a {
|
130 |
+
font-weight: bold;
|
131 |
+
}
|
132 |
+
|
133 |
+
ul.search li p.context {
|
134 |
+
color: #888;
|
135 |
+
margin: 2px 0 0 30px;
|
136 |
+
text-align: left;
|
137 |
+
}
|
138 |
+
|
139 |
+
ul.keywordmatches li.goodmatch a {
|
140 |
+
font-weight: bold;
|
141 |
+
}
|
142 |
+
|
143 |
+
/* -- index page ------------------------------------------------------------ */
|
144 |
+
|
145 |
+
table.contentstable {
|
146 |
+
width: 90%;
|
147 |
+
margin-left: auto;
|
148 |
+
margin-right: auto;
|
149 |
+
}
|
150 |
+
|
151 |
+
table.contentstable p.biglink {
|
152 |
+
line-height: 150%;
|
153 |
+
}
|
154 |
+
|
155 |
+
a.biglink {
|
156 |
+
font-size: 1.3em;
|
157 |
+
}
|
158 |
+
|
159 |
+
span.linkdescr {
|
160 |
+
font-style: italic;
|
161 |
+
padding-top: 5px;
|
162 |
+
font-size: 90%;
|
163 |
+
}
|
164 |
+
|
165 |
+
/* -- general index --------------------------------------------------------- */
|
166 |
+
|
167 |
+
table.indextable {
|
168 |
+
width: 100%;
|
169 |
+
}
|
170 |
+
|
171 |
+
table.indextable td {
|
172 |
+
text-align: left;
|
173 |
+
vertical-align: top;
|
174 |
+
}
|
175 |
+
|
176 |
+
table.indextable ul {
|
177 |
+
margin-top: 0;
|
178 |
+
margin-bottom: 0;
|
179 |
+
list-style-type: none;
|
180 |
+
}
|
181 |
+
|
182 |
+
table.indextable > tbody > tr > td > ul {
|
183 |
+
padding-left: 0em;
|
184 |
+
}
|
185 |
+
|
186 |
+
table.indextable tr.pcap {
|
187 |
+
height: 10px;
|
188 |
+
}
|
189 |
+
|
190 |
+
table.indextable tr.cap {
|
191 |
+
margin-top: 10px;
|
192 |
+
background-color: #f2f2f2;
|
193 |
+
}
|
194 |
+
|
195 |
+
img.toggler {
|
196 |
+
margin-right: 3px;
|
197 |
+
margin-top: 3px;
|
198 |
+
cursor: pointer;
|
199 |
+
}
|
200 |
+
|
201 |
+
div.modindex-jumpbox {
|
202 |
+
border-top: 1px solid #ddd;
|
203 |
+
border-bottom: 1px solid #ddd;
|
204 |
+
margin: 1em 0 1em 0;
|
205 |
+
padding: 0.4em;
|
206 |
+
}
|
207 |
+
|
208 |
+
div.genindex-jumpbox {
|
209 |
+
border-top: 1px solid #ddd;
|
210 |
+
border-bottom: 1px solid #ddd;
|
211 |
+
margin: 1em 0 1em 0;
|
212 |
+
padding: 0.4em;
|
213 |
+
}
|
214 |
+
|
215 |
+
/* -- domain module index --------------------------------------------------- */
|
216 |
+
|
217 |
+
table.modindextable td {
|
218 |
+
padding: 2px;
|
219 |
+
border-collapse: collapse;
|
220 |
+
}
|
221 |
+
|
222 |
+
/* -- general body styles --------------------------------------------------- */
|
223 |
+
|
224 |
+
div.body {
|
225 |
+
min-width: 450px;
|
226 |
+
max-width: 800px;
|
227 |
+
}
|
228 |
+
|
229 |
+
div.body p, div.body dd, div.body li, div.body blockquote {
|
230 |
+
-moz-hyphens: auto;
|
231 |
+
-ms-hyphens: auto;
|
232 |
+
-webkit-hyphens: auto;
|
233 |
+
hyphens: auto;
|
234 |
+
}
|
235 |
+
|
236 |
+
a.headerlink {
|
237 |
+
visibility: hidden;
|
238 |
+
}
|
239 |
+
|
240 |
+
a.brackets:before,
|
241 |
+
span.brackets > a:before{
|
242 |
+
content: "[";
|
243 |
+
}
|
244 |
+
|
245 |
+
a.brackets:after,
|
246 |
+
span.brackets > a:after {
|
247 |
+
content: "]";
|
248 |
+
}
|
249 |
+
|
250 |
+
h1:hover > a.headerlink,
|
251 |
+
h2:hover > a.headerlink,
|
252 |
+
h3:hover > a.headerlink,
|
253 |
+
h4:hover > a.headerlink,
|
254 |
+
h5:hover > a.headerlink,
|
255 |
+
h6:hover > a.headerlink,
|
256 |
+
dt:hover > a.headerlink,
|
257 |
+
caption:hover > a.headerlink,
|
258 |
+
p.caption:hover > a.headerlink,
|
259 |
+
div.code-block-caption:hover > a.headerlink {
|
260 |
+
visibility: visible;
|
261 |
+
}
|
262 |
+
|
263 |
+
div.body p.caption {
|
264 |
+
text-align: inherit;
|
265 |
+
}
|
266 |
+
|
267 |
+
div.body td {
|
268 |
+
text-align: left;
|
269 |
+
}
|
270 |
+
|
271 |
+
.first {
|
272 |
+
margin-top: 0 !important;
|
273 |
+
}
|
274 |
+
|
275 |
+
p.rubric {
|
276 |
+
margin-top: 30px;
|
277 |
+
font-weight: bold;
|
278 |
+
}
|
279 |
+
|
280 |
+
img.align-left, figure.align-left, .figure.align-left, object.align-left {
|
281 |
+
clear: left;
|
282 |
+
float: left;
|
283 |
+
margin-right: 1em;
|
284 |
+
}
|
285 |
+
|
286 |
+
img.align-right, figure.align-right, .figure.align-right, object.align-right {
|
287 |
+
clear: right;
|
288 |
+
float: right;
|
289 |
+
margin-left: 1em;
|
290 |
+
}
|
291 |
+
|
292 |
+
img.align-center, figure.align-center, .figure.align-center, object.align-center {
|
293 |
+
display: block;
|
294 |
+
margin-left: auto;
|
295 |
+
margin-right: auto;
|
296 |
+
}
|
297 |
+
|
298 |
+
img.align-default, figure.align-default, .figure.align-default {
|
299 |
+
display: block;
|
300 |
+
margin-left: auto;
|
301 |
+
margin-right: auto;
|
302 |
+
}
|
303 |
+
|
304 |
+
.align-left {
|
305 |
+
text-align: left;
|
306 |
+
}
|
307 |
+
|
308 |
+
.align-center {
|
309 |
+
text-align: center;
|
310 |
+
}
|
311 |
+
|
312 |
+
.align-default {
|
313 |
+
text-align: center;
|
314 |
+
}
|
315 |
+
|
316 |
+
.align-right {
|
317 |
+
text-align: right;
|
318 |
+
}
|
319 |
+
|
320 |
+
/* -- sidebars -------------------------------------------------------------- */
|
321 |
+
|
322 |
+
div.sidebar,
|
323 |
+
aside.sidebar {
|
324 |
+
margin: 0 0 0.5em 1em;
|
325 |
+
border: 1px solid #ddb;
|
326 |
+
padding: 7px;
|
327 |
+
background-color: #ffe;
|
328 |
+
width: 40%;
|
329 |
+
float: right;
|
330 |
+
clear: right;
|
331 |
+
overflow-x: auto;
|
332 |
+
}
|
333 |
+
|
334 |
+
p.sidebar-title {
|
335 |
+
font-weight: bold;
|
336 |
+
}
|
337 |
+
|
338 |
+
div.admonition, div.topic, blockquote {
|
339 |
+
clear: left;
|
340 |
+
}
|
341 |
+
|
342 |
+
/* -- topics ---------------------------------------------------------------- */
|
343 |
+
|
344 |
+
div.topic {
|
345 |
+
border: 1px solid #ccc;
|
346 |
+
padding: 7px;
|
347 |
+
margin: 10px 0 10px 0;
|
348 |
+
}
|
349 |
+
|
350 |
+
p.topic-title {
|
351 |
+
font-size: 1.1em;
|
352 |
+
font-weight: bold;
|
353 |
+
margin-top: 10px;
|
354 |
+
}
|
355 |
+
|
356 |
+
/* -- admonitions ----------------------------------------------------------- */
|
357 |
+
|
358 |
+
div.admonition {
|
359 |
+
margin-top: 10px;
|
360 |
+
margin-bottom: 10px;
|
361 |
+
padding: 7px;
|
362 |
+
}
|
363 |
+
|
364 |
+
div.admonition dt {
|
365 |
+
font-weight: bold;
|
366 |
+
}
|
367 |
+
|
368 |
+
p.admonition-title {
|
369 |
+
margin: 0px 10px 5px 0px;
|
370 |
+
font-weight: bold;
|
371 |
+
}
|
372 |
+
|
373 |
+
div.body p.centered {
|
374 |
+
text-align: center;
|
375 |
+
margin-top: 25px;
|
376 |
+
}
|
377 |
+
|
378 |
+
/* -- content of sidebars/topics/admonitions -------------------------------- */
|
379 |
+
|
380 |
+
div.sidebar > :last-child,
|
381 |
+
aside.sidebar > :last-child,
|
382 |
+
div.topic > :last-child,
|
383 |
+
div.admonition > :last-child {
|
384 |
+
margin-bottom: 0;
|
385 |
+
}
|
386 |
+
|
387 |
+
div.sidebar::after,
|
388 |
+
aside.sidebar::after,
|
389 |
+
div.topic::after,
|
390 |
+
div.admonition::after,
|
391 |
+
blockquote::after {
|
392 |
+
display: block;
|
393 |
+
content: '';
|
394 |
+
clear: both;
|
395 |
+
}
|
396 |
+
|
397 |
+
/* -- tables ---------------------------------------------------------------- */
|
398 |
+
|
399 |
+
table.docutils {
|
400 |
+
margin-top: 10px;
|
401 |
+
margin-bottom: 10px;
|
402 |
+
border: 0;
|
403 |
+
border-collapse: collapse;
|
404 |
+
}
|
405 |
+
|
406 |
+
table.align-center {
|
407 |
+
margin-left: auto;
|
408 |
+
margin-right: auto;
|
409 |
+
}
|
410 |
+
|
411 |
+
table.align-default {
|
412 |
+
margin-left: auto;
|
413 |
+
margin-right: auto;
|
414 |
+
}
|
415 |
+
|
416 |
+
table caption span.caption-number {
|
417 |
+
font-style: italic;
|
418 |
+
}
|
419 |
+
|
420 |
+
table caption span.caption-text {
|
421 |
+
}
|
422 |
+
|
423 |
+
table.docutils td, table.docutils th {
|
424 |
+
padding: 1px 8px 1px 5px;
|
425 |
+
border-top: 0;
|
426 |
+
border-left: 0;
|
427 |
+
border-right: 0;
|
428 |
+
border-bottom: 1px solid #aaa;
|
429 |
+
}
|
430 |
+
|
431 |
+
table.footnote td, table.footnote th {
|
432 |
+
border: 0 !important;
|
433 |
+
}
|
434 |
+
|
435 |
+
th {
|
436 |
+
text-align: left;
|
437 |
+
padding-right: 5px;
|
438 |
+
}
|
439 |
+
|
440 |
+
table.citation {
|
441 |
+
border-left: solid 1px gray;
|
442 |
+
margin-left: 1px;
|
443 |
+
}
|
444 |
+
|
445 |
+
table.citation td {
|
446 |
+
border-bottom: none;
|
447 |
+
}
|
448 |
+
|
449 |
+
th > :first-child,
|
450 |
+
td > :first-child {
|
451 |
+
margin-top: 0px;
|
452 |
+
}
|
453 |
+
|
454 |
+
th > :last-child,
|
455 |
+
td > :last-child {
|
456 |
+
margin-bottom: 0px;
|
457 |
+
}
|
458 |
+
|
459 |
+
/* -- figures --------------------------------------------------------------- */
|
460 |
+
|
461 |
+
div.figure, figure {
|
462 |
+
margin: 0.5em;
|
463 |
+
padding: 0.5em;
|
464 |
+
}
|
465 |
+
|
466 |
+
div.figure p.caption, figcaption {
|
467 |
+
padding: 0.3em;
|
468 |
+
}
|
469 |
+
|
470 |
+
div.figure p.caption span.caption-number,
|
471 |
+
figcaption span.caption-number {
|
472 |
+
font-style: italic;
|
473 |
+
}
|
474 |
+
|
475 |
+
div.figure p.caption span.caption-text,
|
476 |
+
figcaption span.caption-text {
|
477 |
+
}
|
478 |
+
|
479 |
+
/* -- field list styles ----------------------------------------------------- */
|
480 |
+
|
481 |
+
table.field-list td, table.field-list th {
|
482 |
+
border: 0 !important;
|
483 |
+
}
|
484 |
+
|
485 |
+
.field-list ul {
|
486 |
+
margin: 0;
|
487 |
+
padding-left: 1em;
|
488 |
+
}
|
489 |
+
|
490 |
+
.field-list p {
|
491 |
+
margin: 0;
|
492 |
+
}
|
493 |
+
|
494 |
+
.field-name {
|
495 |
+
-moz-hyphens: manual;
|
496 |
+
-ms-hyphens: manual;
|
497 |
+
-webkit-hyphens: manual;
|
498 |
+
hyphens: manual;
|
499 |
+
}
|
500 |
+
|
501 |
+
/* -- hlist styles ---------------------------------------------------------- */
|
502 |
+
|
503 |
+
table.hlist {
|
504 |
+
margin: 1em 0;
|
505 |
+
}
|
506 |
+
|
507 |
+
table.hlist td {
|
508 |
+
vertical-align: top;
|
509 |
+
}
|
510 |
+
|
511 |
+
/* -- object description styles --------------------------------------------- */
|
512 |
+
|
513 |
+
.sig {
|
514 |
+
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
|
515 |
+
}
|
516 |
+
|
517 |
+
.sig-name, code.descname {
|
518 |
+
background-color: transparent;
|
519 |
+
font-weight: bold;
|
520 |
+
}
|
521 |
+
|
522 |
+
.sig-name {
|
523 |
+
font-size: 1.1em;
|
524 |
+
}
|
525 |
+
|
526 |
+
code.descname {
|
527 |
+
font-size: 1.2em;
|
528 |
+
}
|
529 |
+
|
530 |
+
.sig-prename, code.descclassname {
|
531 |
+
background-color: transparent;
|
532 |
+
}
|
533 |
+
|
534 |
+
.optional {
|
535 |
+
font-size: 1.3em;
|
536 |
+
}
|
537 |
+
|
538 |
+
.sig-paren {
|
539 |
+
font-size: larger;
|
540 |
+
}
|
541 |
+
|
542 |
+
.sig-param.n {
|
543 |
+
font-style: italic;
|
544 |
+
}
|
545 |
+
|
546 |
+
/* C++ specific styling */
|
547 |
+
|
548 |
+
.sig-inline.c-texpr,
|
549 |
+
.sig-inline.cpp-texpr {
|
550 |
+
font-family: unset;
|
551 |
+
}
|
552 |
+
|
553 |
+
.sig.c .k, .sig.c .kt,
|
554 |
+
.sig.cpp .k, .sig.cpp .kt {
|
555 |
+
color: #0033B3;
|
556 |
+
}
|
557 |
+
|
558 |
+
.sig.c .m,
|
559 |
+
.sig.cpp .m {
|
560 |
+
color: #1750EB;
|
561 |
+
}
|
562 |
+
|
563 |
+
.sig.c .s, .sig.c .sc,
|
564 |
+
.sig.cpp .s, .sig.cpp .sc {
|
565 |
+
color: #067D17;
|
566 |
+
}
|
567 |
+
|
568 |
+
|
569 |
+
/* -- other body styles ----------------------------------------------------- */
|
570 |
+
|
571 |
+
ol.arabic {
|
572 |
+
list-style: decimal;
|
573 |
+
}
|
574 |
+
|
575 |
+
ol.loweralpha {
|
576 |
+
list-style: lower-alpha;
|
577 |
+
}
|
578 |
+
|
579 |
+
ol.upperalpha {
|
580 |
+
list-style: upper-alpha;
|
581 |
+
}
|
582 |
+
|
583 |
+
ol.lowerroman {
|
584 |
+
list-style: lower-roman;
|
585 |
+
}
|
586 |
+
|
587 |
+
ol.upperroman {
|
588 |
+
list-style: upper-roman;
|
589 |
+
}
|
590 |
+
|
591 |
+
:not(li) > ol > li:first-child > :first-child,
|
592 |
+
:not(li) > ul > li:first-child > :first-child {
|
593 |
+
margin-top: 0px;
|
594 |
+
}
|
595 |
+
|
596 |
+
:not(li) > ol > li:last-child > :last-child,
|
597 |
+
:not(li) > ul > li:last-child > :last-child {
|
598 |
+
margin-bottom: 0px;
|
599 |
+
}
|
600 |
+
|
601 |
+
ol.simple ol p,
|
602 |
+
ol.simple ul p,
|
603 |
+
ul.simple ol p,
|
604 |
+
ul.simple ul p {
|
605 |
+
margin-top: 0;
|
606 |
+
}
|
607 |
+
|
608 |
+
ol.simple > li:not(:first-child) > p,
|
609 |
+
ul.simple > li:not(:first-child) > p {
|
610 |
+
margin-top: 0;
|
611 |
+
}
|
612 |
+
|
613 |
+
ol.simple p,
|
614 |
+
ul.simple p {
|
615 |
+
margin-bottom: 0;
|
616 |
+
}
|
617 |
+
|
618 |
+
dl.footnote > dt,
|
619 |
+
dl.citation > dt {
|
620 |
+
float: left;
|
621 |
+
margin-right: 0.5em;
|
622 |
+
}
|
623 |
+
|
624 |
+
dl.footnote > dd,
|
625 |
+
dl.citation > dd {
|
626 |
+
margin-bottom: 0em;
|
627 |
+
}
|
628 |
+
|
629 |
+
dl.footnote > dd:after,
|
630 |
+
dl.citation > dd:after {
|
631 |
+
content: "";
|
632 |
+
clear: both;
|
633 |
+
}
|
634 |
+
|
635 |
+
dl.field-list {
|
636 |
+
display: grid;
|
637 |
+
grid-template-columns: fit-content(30%) auto;
|
638 |
+
}
|
639 |
+
|
640 |
+
dl.field-list > dt {
|
641 |
+
font-weight: bold;
|
642 |
+
word-break: break-word;
|
643 |
+
padding-left: 0.5em;
|
644 |
+
padding-right: 5px;
|
645 |
+
}
|
646 |
+
|
647 |
+
dl.field-list > dt:after {
|
648 |
+
content: ":";
|
649 |
+
}
|
650 |
+
|
651 |
+
dl.field-list > dd {
|
652 |
+
padding-left: 0.5em;
|
653 |
+
margin-top: 0em;
|
654 |
+
margin-left: 0em;
|
655 |
+
margin-bottom: 0em;
|
656 |
+
}
|
657 |
+
|
658 |
+
dl {
|
659 |
+
margin-bottom: 15px;
|
660 |
+
}
|
661 |
+
|
662 |
+
dd > :first-child {
|
663 |
+
margin-top: 0px;
|
664 |
+
}
|
665 |
+
|
666 |
+
dd ul, dd table {
|
667 |
+
margin-bottom: 10px;
|
668 |
+
}
|
669 |
+
|
670 |
+
dd {
|
671 |
+
margin-top: 3px;
|
672 |
+
margin-bottom: 10px;
|
673 |
+
margin-left: 30px;
|
674 |
+
}
|
675 |
+
|
676 |
+
dl > dd:last-child,
|
677 |
+
dl > dd:last-child > :last-child {
|
678 |
+
margin-bottom: 0;
|
679 |
+
}
|
680 |
+
|
681 |
+
dt:target, span.highlighted {
|
682 |
+
background-color: #fbe54e;
|
683 |
+
}
|
684 |
+
|
685 |
+
rect.highlighted {
|
686 |
+
fill: #fbe54e;
|
687 |
+
}
|
688 |
+
|
689 |
+
dl.glossary dt {
|
690 |
+
font-weight: bold;
|
691 |
+
font-size: 1.1em;
|
692 |
+
}
|
693 |
+
|
694 |
+
.versionmodified {
|
695 |
+
font-style: italic;
|
696 |
+
}
|
697 |
+
|
698 |
+
.system-message {
|
699 |
+
background-color: #fda;
|
700 |
+
padding: 5px;
|
701 |
+
border: 3px solid red;
|
702 |
+
}
|
703 |
+
|
704 |
+
.footnote:target {
|
705 |
+
background-color: #ffa;
|
706 |
+
}
|
707 |
+
|
708 |
+
.line-block {
|
709 |
+
display: block;
|
710 |
+
margin-top: 1em;
|
711 |
+
margin-bottom: 1em;
|
712 |
+
}
|
713 |
+
|
714 |
+
.line-block .line-block {
|
715 |
+
margin-top: 0;
|
716 |
+
margin-bottom: 0;
|
717 |
+
margin-left: 1.5em;
|
718 |
+
}
|
719 |
+
|
720 |
+
.guilabel, .menuselection {
|
721 |
+
font-family: sans-serif;
|
722 |
+
}
|
723 |
+
|
724 |
+
.accelerator {
|
725 |
+
text-decoration: underline;
|
726 |
+
}
|
727 |
+
|
728 |
+
.classifier {
|
729 |
+
font-style: oblique;
|
730 |
+
}
|
731 |
+
|
732 |
+
.classifier:before {
|
733 |
+
font-style: normal;
|
734 |
+
margin: 0 0.5em;
|
735 |
+
content: ":";
|
736 |
+
display: inline-block;
|
737 |
+
}
|
738 |
+
|
739 |
+
abbr, acronym {
|
740 |
+
border-bottom: dotted 1px;
|
741 |
+
cursor: help;
|
742 |
+
}
|
743 |
+
|
744 |
+
/* -- code displays --------------------------------------------------------- */
|
745 |
+
|
746 |
+
pre {
|
747 |
+
overflow: auto;
|
748 |
+
overflow-y: hidden; /* fixes display issues on Chrome browsers */
|
749 |
+
}
|
750 |
+
|
751 |
+
pre, div[class*="highlight-"] {
|
752 |
+
clear: both;
|
753 |
+
}
|
754 |
+
|
755 |
+
span.pre {
|
756 |
+
-moz-hyphens: none;
|
757 |
+
-ms-hyphens: none;
|
758 |
+
-webkit-hyphens: none;
|
759 |
+
hyphens: none;
|
760 |
+
}
|
761 |
+
|
762 |
+
div[class*="highlight-"] {
|
763 |
+
margin: 1em 0;
|
764 |
+
}
|
765 |
+
|
766 |
+
td.linenos pre {
|
767 |
+
border: 0;
|
768 |
+
background-color: transparent;
|
769 |
+
color: #aaa;
|
770 |
+
}
|
771 |
+
|
772 |
+
table.highlighttable {
|
773 |
+
display: block;
|
774 |
+
}
|
775 |
+
|
776 |
+
table.highlighttable tbody {
|
777 |
+
display: block;
|
778 |
+
}
|
779 |
+
|
780 |
+
table.highlighttable tr {
|
781 |
+
display: flex;
|
782 |
+
}
|
783 |
+
|
784 |
+
table.highlighttable td {
|
785 |
+
margin: 0;
|
786 |
+
padding: 0;
|
787 |
+
}
|
788 |
+
|
789 |
+
table.highlighttable td.linenos {
|
790 |
+
padding-right: 0.5em;
|
791 |
+
}
|
792 |
+
|
793 |
+
table.highlighttable td.code {
|
794 |
+
flex: 1;
|
795 |
+
overflow: hidden;
|
796 |
+
}
|
797 |
+
|
798 |
+
.highlight .hll {
|
799 |
+
display: block;
|
800 |
+
}
|
801 |
+
|
802 |
+
div.highlight pre,
|
803 |
+
table.highlighttable pre {
|
804 |
+
margin: 0;
|
805 |
+
}
|
806 |
+
|
807 |
+
div.code-block-caption + div {
|
808 |
+
margin-top: 0;
|
809 |
+
}
|
810 |
+
|
811 |
+
div.code-block-caption {
|
812 |
+
margin-top: 1em;
|
813 |
+
padding: 2px 5px;
|
814 |
+
font-size: small;
|
815 |
+
}
|
816 |
+
|
817 |
+
div.code-block-caption code {
|
818 |
+
background-color: transparent;
|
819 |
+
}
|
820 |
+
|
821 |
+
table.highlighttable td.linenos,
|
822 |
+
span.linenos,
|
823 |
+
div.highlight span.gp { /* gp: Generic.Prompt */
|
824 |
+
user-select: none;
|
825 |
+
-webkit-user-select: text; /* Safari fallback only */
|
826 |
+
-webkit-user-select: none; /* Chrome/Safari */
|
827 |
+
-moz-user-select: none; /* Firefox */
|
828 |
+
-ms-user-select: none; /* IE10+ */
|
829 |
+
}
|
830 |
+
|
831 |
+
div.code-block-caption span.caption-number {
|
832 |
+
padding: 0.1em 0.3em;
|
833 |
+
font-style: italic;
|
834 |
+
}
|
835 |
+
|
836 |
+
div.code-block-caption span.caption-text {
|
837 |
+
}
|
838 |
+
|
839 |
+
div.literal-block-wrapper {
|
840 |
+
margin: 1em 0;
|
841 |
+
}
|
842 |
+
|
843 |
+
code.xref, a code {
|
844 |
+
background-color: transparent;
|
845 |
+
font-weight: bold;
|
846 |
+
}
|
847 |
+
|
848 |
+
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
|
849 |
+
background-color: transparent;
|
850 |
+
}
|
851 |
+
|
852 |
+
.viewcode-link {
|
853 |
+
float: right;
|
854 |
+
}
|
855 |
+
|
856 |
+
.viewcode-back {
|
857 |
+
float: right;
|
858 |
+
font-family: sans-serif;
|
859 |
+
}
|
860 |
+
|
861 |
+
div.viewcode-block:target {
|
862 |
+
margin: -1px -10px;
|
863 |
+
padding: 0 10px;
|
864 |
+
}
|
865 |
+
|
866 |
+
/* -- math display ---------------------------------------------------------- */
|
867 |
+
|
868 |
+
img.math {
|
869 |
+
vertical-align: middle;
|
870 |
+
}
|
871 |
+
|
872 |
+
div.body div.math p {
|
873 |
+
text-align: center;
|
874 |
+
}
|
875 |
+
|
876 |
+
span.eqno {
|
877 |
+
float: right;
|
878 |
+
}
|
879 |
+
|
880 |
+
span.eqno a.headerlink {
|
881 |
+
position: absolute;
|
882 |
+
z-index: 1;
|
883 |
+
}
|
884 |
+
|
885 |
+
div.math:hover a.headerlink {
|
886 |
+
visibility: visible;
|
887 |
+
}
|
888 |
+
|
889 |
+
/* -- printout stylesheet --------------------------------------------------- */
|
890 |
+
|
891 |
+
@media print {
|
892 |
+
div.document,
|
893 |
+
div.documentwrapper,
|
894 |
+
div.bodywrapper {
|
895 |
+
margin: 0 !important;
|
896 |
+
width: 100%;
|
897 |
+
}
|
898 |
+
|
899 |
+
div.sphinxsidebar,
|
900 |
+
div.related,
|
901 |
+
div.footer,
|
902 |
+
#top-link {
|
903 |
+
display: none;
|
904 |
+
}
|
905 |
+
}
|
docs/build/html/_static/css/badge_only.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
|
docs/build/html/_static/css/fonts/Roboto-Slab-Bold.woff
ADDED
Binary file (87.6 kB). View file
|
|
docs/build/html/_static/css/fonts/Roboto-Slab-Bold.woff2
ADDED
Binary file (67.3 kB). View file
|
|
docs/build/html/_static/css/fonts/Roboto-Slab-Regular.woff
ADDED
Binary file (86.3 kB). View file
|
|
docs/build/html/_static/css/fonts/Roboto-Slab-Regular.woff2
ADDED
Binary file (66.4 kB). View file
|
|
docs/build/html/_static/css/fonts/fontawesome-webfont.eot
ADDED
Binary file (166 kB). View file
|
|
docs/build/html/_static/css/fonts/fontawesome-webfont.svg
ADDED
docs/build/html/_static/css/fonts/fontawesome-webfont.ttf
ADDED
Binary file (166 kB). View file
|
|
docs/build/html/_static/css/fonts/fontawesome-webfont.woff
ADDED
Binary file (98 kB). View file
|
|
docs/build/html/_static/css/fonts/fontawesome-webfont.woff2
ADDED
Binary file (77.2 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-bold-italic.woff
ADDED
Binary file (323 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-bold-italic.woff2
ADDED
Binary file (193 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-bold.woff
ADDED
Binary file (310 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-bold.woff2
ADDED
Binary file (185 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-normal-italic.woff
ADDED
Binary file (328 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-normal-italic.woff2
ADDED
Binary file (196 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-normal.woff
ADDED
Binary file (309 kB). View file
|
|
docs/build/html/_static/css/fonts/lato-normal.woff2
ADDED
Binary file (183 kB). View file
|
|
docs/build/html/_static/css/theme.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
docs/build/html/_static/doctools.js
ADDED
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* doctools.js
|
3 |
+
* ~~~~~~~~~~~
|
4 |
+
*
|
5 |
+
* Sphinx JavaScript utilities for all documentation.
|
6 |
+
*
|
7 |
+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
|
8 |
+
* :license: BSD, see LICENSE for details.
|
9 |
+
*
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* select a different prefix for underscore
|
14 |
+
*/
|
15 |
+
$u = _.noConflict();
|
16 |
+
|
17 |
+
/**
|
18 |
+
* make the code below compatible with browsers without
|
19 |
+
* an installed firebug like debugger
|
20 |
+
if (!window.console || !console.firebug) {
|
21 |
+
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
|
22 |
+
"dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace",
|
23 |
+
"profile", "profileEnd"];
|
24 |
+
window.console = {};
|
25 |
+
for (var i = 0; i < names.length; ++i)
|
26 |
+
window.console[names[i]] = function() {};
|
27 |
+
}
|
28 |
+
*/
|
29 |
+
|
30 |
+
/**
|
31 |
+
* small helper function to urldecode strings
|
32 |
+
*
|
33 |
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
|
34 |
+
*/
|
35 |
+
jQuery.urldecode = function(x) {
|
36 |
+
if (!x) {
|
37 |
+
return x
|
38 |
+
}
|
39 |
+
return decodeURIComponent(x.replace(/\+/g, ' '));
|
40 |
+
};
|
41 |
+
|
42 |
+
/**
|
43 |
+
* small helper function to urlencode strings
|
44 |
+
*/
|
45 |
+
jQuery.urlencode = encodeURIComponent;
|
46 |
+
|
47 |
+
/**
|
48 |
+
* This function returns the parsed url parameters of the
|
49 |
+
* current request. Multiple values per key are supported,
|
50 |
+
* it will always return arrays of strings for the value parts.
|
51 |
+
*/
|
52 |
+
jQuery.getQueryParameters = function(s) {
|
53 |
+
if (typeof s === 'undefined')
|
54 |
+
s = document.location.search;
|
55 |
+
var parts = s.substr(s.indexOf('?') + 1).split('&');
|
56 |
+
var result = {};
|
57 |
+
for (var i = 0; i < parts.length; i++) {
|
58 |
+
var tmp = parts[i].split('=', 2);
|
59 |
+
var key = jQuery.urldecode(tmp[0]);
|
60 |
+
var value = jQuery.urldecode(tmp[1]);
|
61 |
+
if (key in result)
|
62 |
+
result[key].push(value);
|
63 |
+
else
|
64 |
+
result[key] = [value];
|
65 |
+
}
|
66 |
+
return result;
|
67 |
+
};
|
68 |
+
|
69 |
+
/**
|
70 |
+
* highlight a given string on a jquery object by wrapping it in
|
71 |
+
* span elements with the given class name.
|
72 |
+
*/
|
73 |
+
jQuery.fn.highlightText = function(text, className) {
|
74 |
+
function highlight(node, addItems) {
|
75 |
+
if (node.nodeType === 3) {
|
76 |
+
var val = node.nodeValue;
|
77 |
+
var pos = val.toLowerCase().indexOf(text);
|
78 |
+
if (pos >= 0 &&
|
79 |
+
!jQuery(node.parentNode).hasClass(className) &&
|
80 |
+
!jQuery(node.parentNode).hasClass("nohighlight")) {
|
81 |
+
var span;
|
82 |
+
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
|
83 |
+
if (isInSVG) {
|
84 |
+
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
85 |
+
} else {
|
86 |
+
span = document.createElement("span");
|
87 |
+
span.className = className;
|
88 |
+
}
|
89 |
+
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
|
90 |
+
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
|
91 |
+
document.createTextNode(val.substr(pos + text.length)),
|
92 |
+
node.nextSibling));
|
93 |
+
node.nodeValue = val.substr(0, pos);
|
94 |
+
if (isInSVG) {
|
95 |
+
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
96 |
+
var bbox = node.parentElement.getBBox();
|
97 |
+
rect.x.baseVal.value = bbox.x;
|
98 |
+
rect.y.baseVal.value = bbox.y;
|
99 |
+
rect.width.baseVal.value = bbox.width;
|
100 |
+
rect.height.baseVal.value = bbox.height;
|
101 |
+
rect.setAttribute('class', className);
|
102 |
+
addItems.push({
|
103 |
+
"parent": node.parentNode,
|
104 |
+
"target": rect});
|
105 |
+
}
|
106 |
+
}
|
107 |
+
}
|
108 |
+
else if (!jQuery(node).is("button, select, textarea")) {
|
109 |
+
jQuery.each(node.childNodes, function() {
|
110 |
+
highlight(this, addItems);
|
111 |
+
});
|
112 |
+
}
|
113 |
+
}
|
114 |
+
var addItems = [];
|
115 |
+
var result = this.each(function() {
|
116 |
+
highlight(this, addItems);
|
117 |
+
});
|
118 |
+
for (var i = 0; i < addItems.length; ++i) {
|
119 |
+
jQuery(addItems[i].parent).before(addItems[i].target);
|
120 |
+
}
|
121 |
+
return result;
|
122 |
+
};
|
123 |
+
|
124 |
+
/*
|
125 |
+
* backward compatibility for jQuery.browser
|
126 |
+
* This will be supported until firefox bug is fixed.
|
127 |
+
*/
|
128 |
+
if (!jQuery.browser) {
|
129 |
+
jQuery.uaMatch = function(ua) {
|
130 |
+
ua = ua.toLowerCase();
|
131 |
+
|
132 |
+
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
|
133 |
+
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
|
134 |
+
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
|
135 |
+
/(msie) ([\w.]+)/.exec(ua) ||
|
136 |
+
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
|
137 |
+
[];
|
138 |
+
|
139 |
+
return {
|
140 |
+
browser: match[ 1 ] || "",
|
141 |
+
version: match[ 2 ] || "0"
|
142 |
+
};
|
143 |
+
};
|
144 |
+
jQuery.browser = {};
|
145 |
+
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
|
146 |
+
}
|
147 |
+
|
148 |
+
/**
|
149 |
+
* Small JavaScript module for the documentation.
|
150 |
+
*/
|
151 |
+
var Documentation = {
|
152 |
+
|
153 |
+
init : function() {
|
154 |
+
this.fixFirefoxAnchorBug();
|
155 |
+
this.highlightSearchWords();
|
156 |
+
this.initIndexTable();
|
157 |
+
if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
|
158 |
+
this.initOnKeyListeners();
|
159 |
+
}
|
160 |
+
},
|
161 |
+
|
162 |
+
/**
|
163 |
+
* i18n support
|
164 |
+
*/
|
165 |
+
TRANSLATIONS : {},
|
166 |
+
PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
|
167 |
+
LOCALE : 'unknown',
|
168 |
+
|
169 |
+
// gettext and ngettext don't access this so that the functions
|
170 |
+
// can safely bound to a different name (_ = Documentation.gettext)
|
171 |
+
gettext : function(string) {
|
172 |
+
var translated = Documentation.TRANSLATIONS[string];
|
173 |
+
if (typeof translated === 'undefined')
|
174 |
+
return string;
|
175 |
+
return (typeof translated === 'string') ? translated : translated[0];
|
176 |
+
},
|
177 |
+
|
178 |
+
ngettext : function(singular, plural, n) {
|
179 |
+
var translated = Documentation.TRANSLATIONS[singular];
|
180 |
+
if (typeof translated === 'undefined')
|
181 |
+
return (n == 1) ? singular : plural;
|
182 |
+
return translated[Documentation.PLURALEXPR(n)];
|
183 |
+
},
|
184 |
+
|
185 |
+
addTranslations : function(catalog) {
|
186 |
+
for (var key in catalog.messages)
|
187 |
+
this.TRANSLATIONS[key] = catalog.messages[key];
|
188 |
+
this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')');
|
189 |
+
this.LOCALE = catalog.locale;
|
190 |
+
},
|
191 |
+
|
192 |
+
/**
|
193 |
+
* add context elements like header anchor links
|
194 |
+
*/
|
195 |
+
addContextElements : function() {
|
196 |
+
$('div[id] > :header:first').each(function() {
|
197 |
+
$('<a class="headerlink">\u00B6</a>').
|
198 |
+
attr('href', '#' + this.id).
|
199 |
+
attr('title', _('Permalink to this headline')).
|
200 |
+
appendTo(this);
|
201 |
+
});
|
202 |
+
$('dt[id]').each(function() {
|
203 |
+
$('<a class="headerlink">\u00B6</a>').
|
204 |
+
attr('href', '#' + this.id).
|
205 |
+
attr('title', _('Permalink to this definition')).
|
206 |
+
appendTo(this);
|
207 |
+
});
|
208 |
+
},
|
209 |
+
|
210 |
+
/**
|
211 |
+
* workaround a firefox stupidity
|
212 |
+
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
|
213 |
+
*/
|
214 |
+
fixFirefoxAnchorBug : function() {
|
215 |
+
if (document.location.hash && $.browser.mozilla)
|
216 |
+
window.setTimeout(function() {
|
217 |
+
document.location.href += '';
|
218 |
+
}, 10);
|
219 |
+
},
|
220 |
+
|
221 |
+
/**
|
222 |
+
* highlight the search words provided in the url in the text
|
223 |
+
*/
|
224 |
+
highlightSearchWords : function() {
|
225 |
+
var params = $.getQueryParameters();
|
226 |
+
var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
|
227 |
+
if (terms.length) {
|
228 |
+
var body = $('div.body');
|
229 |
+
if (!body.length) {
|
230 |
+
body = $('body');
|
231 |
+
}
|
232 |
+
window.setTimeout(function() {
|
233 |
+
$.each(terms, function() {
|
234 |
+
body.highlightText(this.toLowerCase(), 'highlighted');
|
235 |
+
});
|
236 |
+
}, 10);
|
237 |
+
$('<p class="highlight-link"><a href="javascript:Documentation.' +
|
238 |
+
'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>')
|
239 |
+
.appendTo($('#searchbox'));
|
240 |
+
}
|
241 |
+
},
|
242 |
+
|
243 |
+
/**
|
244 |
+
* init the domain index toggle buttons
|
245 |
+
*/
|
246 |
+
initIndexTable : function() {
|
247 |
+
var togglers = $('img.toggler').click(function() {
|
248 |
+
var src = $(this).attr('src');
|
249 |
+
var idnum = $(this).attr('id').substr(7);
|
250 |
+
$('tr.cg-' + idnum).toggle();
|
251 |
+
if (src.substr(-9) === 'minus.png')
|
252 |
+
$(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
|
253 |
+
else
|
254 |
+
$(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
|
255 |
+
}).css('display', '');
|
256 |
+
if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) {
|
257 |
+
togglers.click();
|
258 |
+
}
|
259 |
+
},
|
260 |
+
|
261 |
+
/**
|
262 |
+
* helper function to hide the search marks again
|
263 |
+
*/
|
264 |
+
hideSearchWords : function() {
|
265 |
+
$('#searchbox .highlight-link').fadeOut(300);
|
266 |
+
$('span.highlighted').removeClass('highlighted');
|
267 |
+
},
|
268 |
+
|
269 |
+
/**
|
270 |
+
* make the url absolute
|
271 |
+
*/
|
272 |
+
makeURL : function(relativeURL) {
|
273 |
+
return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL;
|
274 |
+
},
|
275 |
+
|
276 |
+
/**
|
277 |
+
* get the current relative url
|
278 |
+
*/
|
279 |
+
getCurrentURL : function() {
|
280 |
+
var path = document.location.pathname;
|
281 |
+
var parts = path.split(/\//);
|
282 |
+
$.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
|
283 |
+
if (this === '..')
|
284 |
+
parts.pop();
|
285 |
+
});
|
286 |
+
var url = parts.join('/');
|
287 |
+
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
|
288 |
+
},
|
289 |
+
|
290 |
+
initOnKeyListeners: function() {
|
291 |
+
$(document).keydown(function(event) {
|
292 |
+
var activeElementType = document.activeElement.tagName;
|
293 |
+
// don't navigate when in search box, textarea, dropdown or button
|
294 |
+
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
|
295 |
+
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
|
296 |
+
&& !event.shiftKey) {
|
297 |
+
switch (event.keyCode) {
|
298 |
+
case 37: // left
|
299 |
+
var prevHref = $('link[rel="prev"]').prop('href');
|
300 |
+
if (prevHref) {
|
301 |
+
window.location.href = prevHref;
|
302 |
+
return false;
|
303 |
+
}
|
304 |
+
break;
|
305 |
+
case 39: // right
|
306 |
+
var nextHref = $('link[rel="next"]').prop('href');
|
307 |
+
if (nextHref) {
|
308 |
+
window.location.href = nextHref;
|
309 |
+
return false;
|
310 |
+
}
|
311 |
+
break;
|
312 |
+
}
|
313 |
+
}
|
314 |
+
});
|
315 |
+
}
|
316 |
+
};
|
317 |
+
|
318 |
+
// quick alias for translations
|
319 |
+
_ = Documentation.gettext;
|
320 |
+
|
321 |
+
$(document).ready(function() {
|
322 |
+
Documentation.init();
|
323 |
+
});
|
docs/build/html/_static/documentation_options.js
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var DOCUMENTATION_OPTIONS = {
|
2 |
+
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
|
3 |
+
VERSION: '0.1.0beta2',
|
4 |
+
LANGUAGE: 'None',
|
5 |
+
COLLAPSE_INDEX: false,
|
6 |
+
BUILDER: 'html',
|
7 |
+
FILE_SUFFIX: '.html',
|
8 |
+
LINK_SUFFIX: '.html',
|
9 |
+
HAS_SOURCE: true,
|
10 |
+
SOURCELINK_SUFFIX: '.txt',
|
11 |
+
NAVIGATION_WITH_KEYS: false
|
12 |
+
};
|
docs/build/html/_static/file.png
ADDED
docs/build/html/_static/jquery-3.5.1.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
docs/build/html/_static/jquery.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
|
2 |
+
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
|
docs/build/html/_static/js/badge_only.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t,r){}});
|
docs/build/html/_static/js/html5shiv-printshiv.min.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
3 |
+
*/
|
4 |
+
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),y.elements=c+" "+a,j(b)}function f(a){var b=x[a[v]];return b||(b={},w++,a[v]=w,x[w]=b),b}function g(a,c,d){if(c||(c=b),q)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():u.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||t.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),q)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return y.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(y,b.frag)}function j(a){a||(a=b);var d=f(a);return!y.shivCSS||p||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),q||i(a,d),a}function k(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(l(b)));return g}function l(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(A+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function m(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+A+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function n(a){for(var b=a.length;b--;)a[b].removeNode()}function o(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,e,g=f(a),h=a.namespaces,i=a.parentWindow;return!B||a.printShived?a:("undefined"==typeof h[A]&&h.add(A),i.attachEvent("onbeforeprint",function(){b();for(var f,g,h,i=a.styleSheets,j=[],l=i.length,n=Array(l);l--;)n[l]=i[l];for(;h=n.pop();)if(!h.disabled&&z.test(h.media)){try{f=h.imports,g=f.length}catch(o){g=0}for(l=0;g>l;l++)n.push(f[l]);try{j.push(h.cssText)}catch(o){}}j=m(j.reverse().join("")),e=k(a),d=c(a,j)}),i.attachEvent("onafterprint",function(){n(e),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var p,q,r="3.7.3",s=a.html5||{},t=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,v="_html5shiv",w=0,x={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",p="hidden"in a,q=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){p=!0,q=!0}}();var y={elements:s.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:r,shivCSS:s.shivCSS!==!1,supportsUnknownElements:q,shivMethods:s.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=y,j(b);var z=/^$|\b(?:all|print)\b/,A="html5shiv",B=!q&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();y.type+=" print",y.shivPrint=o,o(b),"object"==typeof module&&module.exports&&(module.exports=y)}("undefined"!=typeof window?window:this,document);
|
docs/build/html/_static/js/html5shiv.min.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
3 |
+
*/
|
4 |
+
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3-pre",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document);
|
docs/build/html/_static/js/theme.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){t(1),n.exports=t(3)},function(n,e,t){(function(){var e="undefined"!=typeof window?window.jQuery:t(2);n.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var t=this;void 0===n&&(n=!0),t.isRunning||(t.isRunning=!0,e((function(e){t.init(e),t.reset(),t.win.on("hashchange",t.reset),n&&t.win.on("scroll",(function(){t.linkScroll||t.winScroll||(t.winScroll=!0,requestAnimationFrame((function(){t.onScroll()})))})),t.win.on("resize",(function(){t.winResize||(t.winResize=!0,requestAnimationFrame((function(){t.onResize()})))})),t.onResize()})))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n("div.wy-side-scroll:first"),this.win=n(window),n(document).on("click","[data-toggle='wy-nav-top']",(function(){n("[data-toggle='wy-nav-shift']").toggleClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift")})).on("click",".wy-menu-vertical .current ul li a",(function(){var t=n(this);n("[data-toggle='wy-nav-shift']").removeClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift"),e.toggleCurrent(t),e.hashChange()})).on("click","[data-toggle='rst-current-version']",(function(){n("[data-toggle='rst-versions']").toggleClass("shift-up")})),n("table.docutils:not(.field-list,.footnote,.citation)").wrap("<div class='wy-table-responsive'></div>"),n("table.docutils.footnote").wrap("<div class='wy-table-responsive footnote'></div>"),n("table.docutils.citation").wrap("<div class='wy-table-responsive citation'></div>"),n(".wy-menu-vertical ul").not(".simple").siblings("a").each((function(){var t=n(this);expand=n('<button class="toctree-expand" title="Open/close menu"></button>'),expand.on("click",(function(n){return e.toggleCurrent(t),n.stopPropagation(),!1})),t.prepend(expand)}))},reset:function(){var n=encodeURI(window.location.hash)||"#";try{var e=$(".wy-menu-vertical"),t=e.find('[href="'+n+'"]');if(0===t.length){var i=$('.document [id="'+n.substring(1)+'"]').closest("div.section");0===(t=e.find('[href="#'+i.attr("id")+'"]')).length&&(t=e.find('[href="#"]'))}if(t.length>0){$(".wy-menu-vertical .current").removeClass("current").attr("aria-expanded","false"),t.addClass("current").attr("aria-expanded","true"),t.closest("li.toctree-l1").parent().addClass("current").attr("aria-expanded","true");for(let n=1;n<=10;n++)t.closest("li.toctree-l"+n).addClass("current").attr("aria-expanded","true");t[0].scrollIntoView()}}catch(n){console.log("Error expanding nav for anchor",n)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,t=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(t),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one("hashchange",(function(){this.linkScroll=!1}))},toggleCurrent:function(n){var e=n.closest("li");e.siblings("li.current").removeClass("current").attr("aria-expanded","false"),e.siblings().find("li.current").removeClass("current").attr("aria-expanded","false");var t=e.find("> ul li");t.length&&(t.removeClass("current").attr("aria-expanded","false"),e.toggleClass("current").attr("aria-expanded",(function(n,e){return"true"==e?"false":"true"})))}},"undefined"!=typeof window&&(window.SphinxRtdTheme={Navigation:n.exports.ThemeNav,StickyNav:n.exports.ThemeNav}),function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),o=Math.max(0,16-(i-n)),r=window.setTimeout((function(){e(i+o)}),o);return n=i+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})}()}).call(window)},function(n,e){n.exports=jQuery},function(n,e,t){}]);
|
docs/build/html/_static/language_data.js
ADDED
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* language_data.js
|
3 |
+
* ~~~~~~~~~~~~~~~~
|
4 |
+
*
|
5 |
+
* This script contains the language-specific data used by searchtools.js,
|
6 |
+
* namely the list of stopwords, stemmer, scorer and splitter.
|
7 |
+
*
|
8 |
+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
|
9 |
+
* :license: BSD, see LICENSE for details.
|
10 |
+
*
|
11 |
+
*/
|
12 |
+
|
13 |
+
var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
|
14 |
+
|
15 |
+
|
16 |
+
/* Non-minified version is copied as a separate JS file, is available */
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Porter Stemmer
|
20 |
+
*/
|
21 |
+
var Stemmer = function() {
|
22 |
+
|
23 |
+
var step2list = {
|
24 |
+
ational: 'ate',
|
25 |
+
tional: 'tion',
|
26 |
+
enci: 'ence',
|
27 |
+
anci: 'ance',
|
28 |
+
izer: 'ize',
|
29 |
+
bli: 'ble',
|
30 |
+
alli: 'al',
|
31 |
+
entli: 'ent',
|
32 |
+
eli: 'e',
|
33 |
+
ousli: 'ous',
|
34 |
+
ization: 'ize',
|
35 |
+
ation: 'ate',
|
36 |
+
ator: 'ate',
|
37 |
+
alism: 'al',
|
38 |
+
iveness: 'ive',
|
39 |
+
fulness: 'ful',
|
40 |
+
ousness: 'ous',
|
41 |
+
aliti: 'al',
|
42 |
+
iviti: 'ive',
|
43 |
+
biliti: 'ble',
|
44 |
+
logi: 'log'
|
45 |
+
};
|
46 |
+
|
47 |
+
var step3list = {
|
48 |
+
icate: 'ic',
|
49 |
+
ative: '',
|
50 |
+
alize: 'al',
|
51 |
+
iciti: 'ic',
|
52 |
+
ical: 'ic',
|
53 |
+
ful: '',
|
54 |
+
ness: ''
|
55 |
+
};
|
56 |
+
|
57 |
+
var c = "[^aeiou]"; // consonant
|
58 |
+
var v = "[aeiouy]"; // vowel
|
59 |
+
var C = c + "[^aeiouy]*"; // consonant sequence
|
60 |
+
var V = v + "[aeiou]*"; // vowel sequence
|
61 |
+
|
62 |
+
var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
|
63 |
+
var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1
|
64 |
+
var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1
|
65 |
+
var s_v = "^(" + C + ")?" + v; // vowel in stem
|
66 |
+
|
67 |
+
this.stemWord = function (w) {
|
68 |
+
var stem;
|
69 |
+
var suffix;
|
70 |
+
var firstch;
|
71 |
+
var origword = w;
|
72 |
+
|
73 |
+
if (w.length < 3)
|
74 |
+
return w;
|
75 |
+
|
76 |
+
var re;
|
77 |
+
var re2;
|
78 |
+
var re3;
|
79 |
+
var re4;
|
80 |
+
|
81 |
+
firstch = w.substr(0,1);
|
82 |
+
if (firstch == "y")
|
83 |
+
w = firstch.toUpperCase() + w.substr(1);
|
84 |
+
|
85 |
+
// Step 1a
|
86 |
+
re = /^(.+?)(ss|i)es$/;
|
87 |
+
re2 = /^(.+?)([^s])s$/;
|
88 |
+
|
89 |
+
if (re.test(w))
|
90 |
+
w = w.replace(re,"$1$2");
|
91 |
+
else if (re2.test(w))
|
92 |
+
w = w.replace(re2,"$1$2");
|
93 |
+
|
94 |
+
// Step 1b
|
95 |
+
re = /^(.+?)eed$/;
|
96 |
+
re2 = /^(.+?)(ed|ing)$/;
|
97 |
+
if (re.test(w)) {
|
98 |
+
var fp = re.exec(w);
|
99 |
+
re = new RegExp(mgr0);
|
100 |
+
if (re.test(fp[1])) {
|
101 |
+
re = /.$/;
|
102 |
+
w = w.replace(re,"");
|
103 |
+
}
|
104 |
+
}
|
105 |
+
else if (re2.test(w)) {
|
106 |
+
var fp = re2.exec(w);
|
107 |
+
stem = fp[1];
|
108 |
+
re2 = new RegExp(s_v);
|
109 |
+
if (re2.test(stem)) {
|
110 |
+
w = stem;
|
111 |
+
re2 = /(at|bl|iz)$/;
|
112 |
+
re3 = new RegExp("([^aeiouylsz])\\1$");
|
113 |
+
re4 = new RegExp("^" + C + v + "[^aeiouwxy]$");
|
114 |
+
if (re2.test(w))
|
115 |
+
w = w + "e";
|
116 |
+
else if (re3.test(w)) {
|
117 |
+
re = /.$/;
|
118 |
+
w = w.replace(re,"");
|
119 |
+
}
|
120 |
+
else if (re4.test(w))
|
121 |
+
w = w + "e";
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
// Step 1c
|
126 |
+
re = /^(.+?)y$/;
|
127 |
+
if (re.test(w)) {
|
128 |
+
var fp = re.exec(w);
|
129 |
+
stem = fp[1];
|
130 |
+
re = new RegExp(s_v);
|
131 |
+
if (re.test(stem))
|
132 |
+
w = stem + "i";
|
133 |
+
}
|
134 |
+
|
135 |
+
// Step 2
|
136 |
+
re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;
|
137 |
+
if (re.test(w)) {
|
138 |
+
var fp = re.exec(w);
|
139 |
+
stem = fp[1];
|
140 |
+
suffix = fp[2];
|
141 |
+
re = new RegExp(mgr0);
|
142 |
+
if (re.test(stem))
|
143 |
+
w = stem + step2list[suffix];
|
144 |
+
}
|
145 |
+
|
146 |
+
// Step 3
|
147 |
+
re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;
|
148 |
+
if (re.test(w)) {
|
149 |
+
var fp = re.exec(w);
|
150 |
+
stem = fp[1];
|
151 |
+
suffix = fp[2];
|
152 |
+
re = new RegExp(mgr0);
|
153 |
+
if (re.test(stem))
|
154 |
+
w = stem + step3list[suffix];
|
155 |
+
}
|
156 |
+
|
157 |
+
// Step 4
|
158 |
+
re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;
|
159 |
+
re2 = /^(.+?)(s|t)(ion)$/;
|
160 |
+
if (re.test(w)) {
|
161 |
+
var fp = re.exec(w);
|
162 |
+
stem = fp[1];
|
163 |
+
re = new RegExp(mgr1);
|
164 |
+
if (re.test(stem))
|
165 |
+
w = stem;
|
166 |
+
}
|
167 |
+
else if (re2.test(w)) {
|
168 |
+
var fp = re2.exec(w);
|
169 |
+
stem = fp[1] + fp[2];
|
170 |
+
re2 = new RegExp(mgr1);
|
171 |
+
if (re2.test(stem))
|
172 |
+
w = stem;
|
173 |
+
}
|
174 |
+
|
175 |
+
// Step 5
|
176 |
+
re = /^(.+?)e$/;
|
177 |
+
if (re.test(w)) {
|
178 |
+
var fp = re.exec(w);
|
179 |
+
stem = fp[1];
|
180 |
+
re = new RegExp(mgr1);
|
181 |
+
re2 = new RegExp(meq1);
|
182 |
+
re3 = new RegExp("^" + C + v + "[^aeiouwxy]$");
|
183 |
+
if (re.test(stem) || (re2.test(stem) && !(re3.test(stem))))
|
184 |
+
w = stem;
|
185 |
+
}
|
186 |
+
re = /ll$/;
|
187 |
+
re2 = new RegExp(mgr1);
|
188 |
+
if (re.test(w) && re2.test(w)) {
|
189 |
+
re = /.$/;
|
190 |
+
w = w.replace(re,"");
|
191 |
+
}
|
192 |
+
|
193 |
+
// and turn initial Y back to y
|
194 |
+
if (firstch == "y")
|
195 |
+
w = firstch.toLowerCase() + w.substr(1);
|
196 |
+
return w;
|
197 |
+
}
|
198 |
+
}
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
+
var splitChars = (function() {
|
204 |
+
var result = {};
|
205 |
+
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,
|
206 |
+
1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702,
|
207 |
+
2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971,
|
208 |
+
2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345,
|
209 |
+
3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761,
|
210 |
+
3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823,
|
211 |
+
4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125,
|
212 |
+
8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695,
|
213 |
+
11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587,
|
214 |
+
43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141];
|
215 |
+
var i, j, start, end;
|
216 |
+
for (i = 0; i < singles.length; i++) {
|
217 |
+
result[singles[i]] = true;
|
218 |
+
}
|
219 |
+
var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709],
|
220 |
+
[722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161],
|
221 |
+
[1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568],
|
222 |
+
[1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807],
|
223 |
+
[1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047],
|
224 |
+
[2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383],
|
225 |
+
[2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450],
|
226 |
+
[2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547],
|
227 |
+
[2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673],
|
228 |
+
[2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820],
|
229 |
+
[2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946],
|
230 |
+
[2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023],
|
231 |
+
[3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173],
|
232 |
+
[3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332],
|
233 |
+
[3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481],
|
234 |
+
[3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718],
|
235 |
+
[3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791],
|
236 |
+
[3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095],
|
237 |
+
[4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205],
|
238 |
+
[4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687],
|
239 |
+
[4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968],
|
240 |
+
[4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869],
|
241 |
+
[5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102],
|
242 |
+
[6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271],
|
243 |
+
[6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592],
|
244 |
+
[6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822],
|
245 |
+
[6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167],
|
246 |
+
[7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959],
|
247 |
+
[7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143],
|
248 |
+
[8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318],
|
249 |
+
[8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483],
|
250 |
+
[8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101],
|
251 |
+
[10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567],
|
252 |
+
[11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292],
|
253 |
+
[12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444],
|
254 |
+
[12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783],
|
255 |
+
[12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311],
|
256 |
+
[19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511],
|
257 |
+
[42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774],
|
258 |
+
[42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071],
|
259 |
+
[43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263],
|
260 |
+
[43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519],
|
261 |
+
[43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647],
|
262 |
+
[43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967],
|
263 |
+
[44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295],
|
264 |
+
[57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274],
|
265 |
+
[64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007],
|
266 |
+
[65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381],
|
267 |
+
[65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]];
|
268 |
+
for (i = 0; i < ranges.length; i++) {
|
269 |
+
start = ranges[i][0];
|
270 |
+
end = ranges[i][1];
|
271 |
+
for (j = start; j <= end; j++) {
|
272 |
+
result[j] = true;
|
273 |
+
}
|
274 |
+
}
|
275 |
+
return result;
|
276 |
+
})();
|
277 |
+
|
278 |
+
function splitQuery(query) {
|
279 |
+
var result = [];
|
280 |
+
var start = -1;
|
281 |
+
for (var i = 0; i < query.length; i++) {
|
282 |
+
if (splitChars[query.charCodeAt(i)]) {
|
283 |
+
if (start !== -1) {
|
284 |
+
result.push(query.slice(start, i));
|
285 |
+
start = -1;
|
286 |
+
}
|
287 |
+
} else if (start === -1) {
|
288 |
+
start = i;
|
289 |
+
}
|
290 |
+
}
|
291 |
+
if (start !== -1) {
|
292 |
+
result.push(query.slice(start));
|
293 |
+
}
|
294 |
+
return result;
|
295 |
+
}
|
296 |
+
|
297 |
+
|
docs/build/html/_static/minus.png
ADDED
docs/build/html/_static/plus.png
ADDED
docs/build/html/_static/pygments.css
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
pre { line-height: 125%; margin: 0; }
|
2 |
+
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
|
3 |
+
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
|
4 |
+
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
|
5 |
+
span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
|
6 |
+
.highlight .hll { background-color: #ffffcc }
|
7 |
+
.highlight { background: #f8f8f8; }
|
8 |
+
.highlight .c { color: #408080; font-style: italic } /* Comment */
|
9 |
+
.highlight .err { border: 1px solid #FF0000 } /* Error */
|
10 |
+
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
|
11 |
+
.highlight .o { color: #666666 } /* Operator */
|
12 |
+
.highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
|
13 |
+
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
|
14 |
+
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
|
15 |
+
.highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
|
16 |
+
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
|
17 |
+
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
|
18 |
+
.highlight .gd { color: #A00000 } /* Generic.Deleted */
|
19 |
+
.highlight .ge { font-style: italic } /* Generic.Emph */
|
20 |
+
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
21 |
+
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
22 |
+
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
23 |
+
.highlight .go { color: #888888 } /* Generic.Output */
|
24 |
+
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
|
25 |
+
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
26 |
+
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
27 |
+
.highlight .gt { color: #0044DD } /* Generic.Traceback */
|
28 |
+
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
|
29 |
+
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
|
30 |
+
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
|
31 |
+
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
|
32 |
+
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
|
33 |
+
.highlight .kt { color: #B00040 } /* Keyword.Type */
|
34 |
+
.highlight .m { color: #666666 } /* Literal.Number */
|
35 |
+
.highlight .s { color: #BA2121 } /* Literal.String */
|
36 |
+
.highlight .na { color: #7D9029 } /* Name.Attribute */
|
37 |
+
.highlight .nb { color: #008000 } /* Name.Builtin */
|
38 |
+
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
|
39 |
+
.highlight .no { color: #880000 } /* Name.Constant */
|
40 |
+
.highlight .nd { color: #AA22FF } /* Name.Decorator */
|
41 |
+
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
|
42 |
+
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
|
43 |
+
.highlight .nf { color: #0000FF } /* Name.Function */
|
44 |
+
.highlight .nl { color: #A0A000 } /* Name.Label */
|
45 |
+
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
|
46 |
+
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
|
47 |
+
.highlight .nv { color: #19177C } /* Name.Variable */
|
48 |
+
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
|
49 |
+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
50 |
+
.highlight .mb { color: #666666 } /* Literal.Number.Bin */
|
51 |
+
.highlight .mf { color: #666666 } /* Literal.Number.Float */
|
52 |
+
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
|
53 |
+
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
|
54 |
+
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
|
55 |
+
.highlight .sa { color: #BA2121 } /* Literal.String.Affix */
|
56 |
+
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
|
57 |
+
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
|
58 |
+
.highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */
|
59 |
+
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
|
60 |
+
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
|
61 |
+
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
|
62 |
+
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
|
63 |
+
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
|
64 |
+
.highlight .sx { color: #008000 } /* Literal.String.Other */
|
65 |
+
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
|
66 |
+
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
|
67 |
+
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
|
68 |
+
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
|
69 |
+
.highlight .fm { color: #0000FF } /* Name.Function.Magic */
|
70 |
+
.highlight .vc { color: #19177C } /* Name.Variable.Class */
|
71 |
+
.highlight .vg { color: #19177C } /* Name.Variable.Global */
|
72 |
+
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
|
73 |
+
.highlight .vm { color: #19177C } /* Name.Variable.Magic */
|
74 |
+
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
|
docs/build/html/_static/searchtools.js
ADDED
@@ -0,0 +1,529 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* searchtools.js
|
3 |
+
* ~~~~~~~~~~~~~~~~
|
4 |
+
*
|
5 |
+
* Sphinx JavaScript utilities for the full-text search.
|
6 |
+
*
|
7 |
+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
|
8 |
+
* :license: BSD, see LICENSE for details.
|
9 |
+
*
|
10 |
+
*/
|
11 |
+
|
12 |
+
if (!Scorer) {
|
13 |
+
/**
|
14 |
+
* Simple result scoring code.
|
15 |
+
*/
|
16 |
+
var Scorer = {
|
17 |
+
// Implement the following function to further tweak the score for each result
|
18 |
+
// The function takes a result array [filename, title, anchor, descr, score]
|
19 |
+
// and returns the new score.
|
20 |
+
/*
|
21 |
+
score: function(result) {
|
22 |
+
return result[4];
|
23 |
+
},
|
24 |
+
*/
|
25 |
+
|
26 |
+
// query matches the full name of an object
|
27 |
+
objNameMatch: 11,
|
28 |
+
// or matches in the last dotted part of the object name
|
29 |
+
objPartialMatch: 6,
|
30 |
+
// Additive scores depending on the priority of the object
|
31 |
+
objPrio: {0: 15, // used to be importantResults
|
32 |
+
1: 5, // used to be objectResults
|
33 |
+
2: -5}, // used to be unimportantResults
|
34 |
+
// Used when the priority is not in the mapping.
|
35 |
+
objPrioDefault: 0,
|
36 |
+
|
37 |
+
// query found in title
|
38 |
+
title: 15,
|
39 |
+
partialTitle: 7,
|
40 |
+
// query found in terms
|
41 |
+
term: 5,
|
42 |
+
partialTerm: 2
|
43 |
+
};
|
44 |
+
}
|
45 |
+
|
46 |
+
if (!splitQuery) {
|
47 |
+
function splitQuery(query) {
|
48 |
+
return query.split(/\s+/);
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Search Module
|
54 |
+
*/
|
55 |
+
var Search = {
|
56 |
+
|
57 |
+
_index : null,
|
58 |
+
_queued_query : null,
|
59 |
+
_pulse_status : -1,
|
60 |
+
|
61 |
+
htmlToText : function(htmlString) {
|
62 |
+
var virtualDocument = document.implementation.createHTMLDocument('virtual');
|
63 |
+
var htmlElement = $(htmlString, virtualDocument);
|
64 |
+
htmlElement.find('.headerlink').remove();
|
65 |
+
docContent = htmlElement.find('[role=main]')[0];
|
66 |
+
if(docContent === undefined) {
|
67 |
+
console.warn("Content block not found. Sphinx search tries to obtain it " +
|
68 |
+
"via '[role=main]'. Could you check your theme or template.");
|
69 |
+
return "";
|
70 |
+
}
|
71 |
+
return docContent.textContent || docContent.innerText;
|
72 |
+
},
|
73 |
+
|
74 |
+
init : function() {
|
75 |
+
var params = $.getQueryParameters();
|
76 |
+
if (params.q) {
|
77 |
+
var query = params.q[0];
|
78 |
+
$('input[name="q"]')[0].value = query;
|
79 |
+
this.performSearch(query);
|
80 |
+
}
|
81 |
+
},
|
82 |
+
|
83 |
+
loadIndex : function(url) {
|
84 |
+
$.ajax({type: "GET", url: url, data: null,
|
85 |
+
dataType: "script", cache: true,
|
86 |
+
complete: function(jqxhr, textstatus) {
|
87 |
+
if (textstatus != "success") {
|
88 |
+
document.getElementById("searchindexloader").src = url;
|
89 |
+
}
|
90 |
+
}});
|
91 |
+
},
|
92 |
+
|
93 |
+
setIndex : function(index) {
|
94 |
+
var q;
|
95 |
+
this._index = index;
|
96 |
+
if ((q = this._queued_query) !== null) {
|
97 |
+
this._queued_query = null;
|
98 |
+
Search.query(q);
|
99 |
+
}
|
100 |
+
},
|
101 |
+
|
102 |
+
hasIndex : function() {
|
103 |
+
return this._index !== null;
|
104 |
+
},
|
105 |
+
|
106 |
+
deferQuery : function(query) {
|
107 |
+
this._queued_query = query;
|
108 |
+
},
|
109 |
+
|
110 |
+
stopPulse : function() {
|
111 |
+
this._pulse_status = 0;
|
112 |
+
},
|
113 |
+
|
114 |
+
startPulse : function() {
|
115 |
+
if (this._pulse_status >= 0)
|
116 |
+
return;
|
117 |
+
function pulse() {
|
118 |
+
var i;
|
119 |
+
Search._pulse_status = (Search._pulse_status + 1) % 4;
|
120 |
+
var dotString = '';
|
121 |
+
for (i = 0; i < Search._pulse_status; i++)
|
122 |
+
dotString += '.';
|
123 |
+
Search.dots.text(dotString);
|
124 |
+
if (Search._pulse_status > -1)
|
125 |
+
window.setTimeout(pulse, 500);
|
126 |
+
}
|
127 |
+
pulse();
|
128 |
+
},
|
129 |
+
|
130 |
+
/**
|
131 |
+
* perform a search for something (or wait until index is loaded)
|
132 |
+
*/
|
133 |
+
performSearch : function(query) {
|
134 |
+
// create the required interface elements
|
135 |
+
this.out = $('#search-results');
|
136 |
+
this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out);
|
137 |
+
this.dots = $('<span></span>').appendTo(this.title);
|
138 |
+
this.status = $('<p class="search-summary"> </p>').appendTo(this.out);
|
139 |
+
this.output = $('<ul class="search"/>').appendTo(this.out);
|
140 |
+
|
141 |
+
$('#search-progress').text(_('Preparing search...'));
|
142 |
+
this.startPulse();
|
143 |
+
|
144 |
+
// index already loaded, the browser was quick!
|
145 |
+
if (this.hasIndex())
|
146 |
+
this.query(query);
|
147 |
+
else
|
148 |
+
this.deferQuery(query);
|
149 |
+
},
|
150 |
+
|
151 |
+
/**
|
152 |
+
* execute search (requires search index to be loaded)
|
153 |
+
*/
|
154 |
+
query : function(query) {
|
155 |
+
var i;
|
156 |
+
|
157 |
+
// stem the searchterms and add them to the correct list
|
158 |
+
var stemmer = new Stemmer();
|
159 |
+
var searchterms = [];
|
160 |
+
var excluded = [];
|
161 |
+
var hlterms = [];
|
162 |
+
var tmp = splitQuery(query);
|
163 |
+
var objectterms = [];
|
164 |
+
for (i = 0; i < tmp.length; i++) {
|
165 |
+
if (tmp[i] !== "") {
|
166 |
+
objectterms.push(tmp[i].toLowerCase());
|
167 |
+
}
|
168 |
+
|
169 |
+
if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i] === "") {
|
170 |
+
// skip this "word"
|
171 |
+
continue;
|
172 |
+
}
|
173 |
+
// stem the word
|
174 |
+
var word = stemmer.stemWord(tmp[i].toLowerCase());
|
175 |
+
// prevent stemmer from cutting word smaller than two chars
|
176 |
+
if(word.length < 3 && tmp[i].length >= 3) {
|
177 |
+
word = tmp[i];
|
178 |
+
}
|
179 |
+
var toAppend;
|
180 |
+
// select the correct list
|
181 |
+
if (word[0] == '-') {
|
182 |
+
toAppend = excluded;
|
183 |
+
word = word.substr(1);
|
184 |
+
}
|
185 |
+
else {
|
186 |
+
toAppend = searchterms;
|
187 |
+
hlterms.push(tmp[i].toLowerCase());
|
188 |
+
}
|
189 |
+
// only add if not already in the list
|
190 |
+
if (!$u.contains(toAppend, word))
|
191 |
+
toAppend.push(word);
|
192 |
+
}
|
193 |
+
var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" "));
|
194 |
+
|
195 |
+
// console.debug('SEARCH: searching for:');
|
196 |
+
// console.info('required: ', searchterms);
|
197 |
+
// console.info('excluded: ', excluded);
|
198 |
+
|
199 |
+
// prepare search
|
200 |
+
var terms = this._index.terms;
|
201 |
+
var titleterms = this._index.titleterms;
|
202 |
+
|
203 |
+
// array of [filename, title, anchor, descr, score]
|
204 |
+
var results = [];
|
205 |
+
$('#search-progress').empty();
|
206 |
+
|
207 |
+
// lookup as object
|
208 |
+
for (i = 0; i < objectterms.length; i++) {
|
209 |
+
var others = [].concat(objectterms.slice(0, i),
|
210 |
+
objectterms.slice(i+1, objectterms.length));
|
211 |
+
results = results.concat(this.performObjectSearch(objectterms[i], others));
|
212 |
+
}
|
213 |
+
|
214 |
+
// lookup as search terms in fulltext
|
215 |
+
results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms));
|
216 |
+
|
217 |
+
// let the scorer override scores with a custom scoring function
|
218 |
+
if (Scorer.score) {
|
219 |
+
for (i = 0; i < results.length; i++)
|
220 |
+
results[i][4] = Scorer.score(results[i]);
|
221 |
+
}
|
222 |
+
|
223 |
+
// now sort the results by score (in opposite order of appearance, since the
|
224 |
+
// display function below uses pop() to retrieve items) and then
|
225 |
+
// alphabetically
|
226 |
+
results.sort(function(a, b) {
|
227 |
+
var left = a[4];
|
228 |
+
var right = b[4];
|
229 |
+
if (left > right) {
|
230 |
+
return 1;
|
231 |
+
} else if (left < right) {
|
232 |
+
return -1;
|
233 |
+
} else {
|
234 |
+
// same score: sort alphabetically
|
235 |
+
left = a[1].toLowerCase();
|
236 |
+
right = b[1].toLowerCase();
|
237 |
+
return (left > right) ? -1 : ((left < right) ? 1 : 0);
|
238 |
+
}
|
239 |
+
});
|
240 |
+
|
241 |
+
// for debugging
|
242 |
+
//Search.lastresults = results.slice(); // a copy
|
243 |
+
//console.info('search results:', Search.lastresults);
|
244 |
+
|
245 |
+
// print the results
|
246 |
+
var resultCount = results.length;
|
247 |
+
function displayNextItem() {
|
248 |
+
// results left, load the summary and display it
|
249 |
+
if (results.length) {
|
250 |
+
var item = results.pop();
|
251 |
+
var listItem = $('<li></li>');
|
252 |
+
var requestUrl = "";
|
253 |
+
var linkUrl = "";
|
254 |
+
if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
|
255 |
+
// dirhtml builder
|
256 |
+
var dirname = item[0] + '/';
|
257 |
+
if (dirname.match(/\/index\/$/)) {
|
258 |
+
dirname = dirname.substring(0, dirname.length-6);
|
259 |
+
} else if (dirname == 'index/') {
|
260 |
+
dirname = '';
|
261 |
+
}
|
262 |
+
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname;
|
263 |
+
linkUrl = requestUrl;
|
264 |
+
|
265 |
+
} else {
|
266 |
+
// normal html builders
|
267 |
+
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX;
|
268 |
+
linkUrl = item[0] + DOCUMENTATION_OPTIONS.LINK_SUFFIX;
|
269 |
+
}
|
270 |
+
listItem.append($('<a/>').attr('href',
|
271 |
+
linkUrl +
|
272 |
+
highlightstring + item[2]).html(item[1]));
|
273 |
+
if (item[3]) {
|
274 |
+
listItem.append($('<span> (' + item[3] + ')</span>'));
|
275 |
+
Search.output.append(listItem);
|
276 |
+
setTimeout(function() {
|
277 |
+
displayNextItem();
|
278 |
+
}, 5);
|
279 |
+
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
280 |
+
$.ajax({url: requestUrl,
|
281 |
+
dataType: "text",
|
282 |
+
complete: function(jqxhr, textstatus) {
|
283 |
+
var data = jqxhr.responseText;
|
284 |
+
if (data !== '' && data !== undefined) {
|
285 |
+
var summary = Search.makeSearchSummary(data, searchterms, hlterms);
|
286 |
+
if (summary) {
|
287 |
+
listItem.append(summary);
|
288 |
+
}
|
289 |
+
}
|
290 |
+
Search.output.append(listItem);
|
291 |
+
setTimeout(function() {
|
292 |
+
displayNextItem();
|
293 |
+
}, 5);
|
294 |
+
}});
|
295 |
+
} else {
|
296 |
+
// no source available, just display title
|
297 |
+
Search.output.append(listItem);
|
298 |
+
setTimeout(function() {
|
299 |
+
displayNextItem();
|
300 |
+
}, 5);
|
301 |
+
}
|
302 |
+
}
|
303 |
+
// search finished, update title and status message
|
304 |
+
else {
|
305 |
+
Search.stopPulse();
|
306 |
+
Search.title.text(_('Search Results'));
|
307 |
+
if (!resultCount)
|
308 |
+
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
|
309 |
+
else
|
310 |
+
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
|
311 |
+
Search.status.fadeIn(500);
|
312 |
+
}
|
313 |
+
}
|
314 |
+
displayNextItem();
|
315 |
+
},
|
316 |
+
|
317 |
+
/**
|
318 |
+
* search for object names
|
319 |
+
*/
|
320 |
+
performObjectSearch : function(object, otherterms) {
|
321 |
+
var filenames = this._index.filenames;
|
322 |
+
var docnames = this._index.docnames;
|
323 |
+
var objects = this._index.objects;
|
324 |
+
var objnames = this._index.objnames;
|
325 |
+
var titles = this._index.titles;
|
326 |
+
|
327 |
+
var i;
|
328 |
+
var results = [];
|
329 |
+
|
330 |
+
for (var prefix in objects) {
|
331 |
+
for (var iMatch = 0; iMatch != objects[prefix].length; ++iMatch) {
|
332 |
+
var match = objects[prefix][iMatch];
|
333 |
+
var name = match[4];
|
334 |
+
var fullname = (prefix ? prefix + '.' : '') + name;
|
335 |
+
var fullnameLower = fullname.toLowerCase()
|
336 |
+
if (fullnameLower.indexOf(object) > -1) {
|
337 |
+
var score = 0;
|
338 |
+
var parts = fullnameLower.split('.');
|
339 |
+
// check for different match types: exact matches of full name or
|
340 |
+
// "last name" (i.e. last dotted part)
|
341 |
+
if (fullnameLower == object || parts[parts.length - 1] == object) {
|
342 |
+
score += Scorer.objNameMatch;
|
343 |
+
// matches in last name
|
344 |
+
} else if (parts[parts.length - 1].indexOf(object) > -1) {
|
345 |
+
score += Scorer.objPartialMatch;
|
346 |
+
}
|
347 |
+
var objname = objnames[match[1]][2];
|
348 |
+
var title = titles[match[0]];
|
349 |
+
// If more than one term searched for, we require other words to be
|
350 |
+
// found in the name/title/description
|
351 |
+
if (otherterms.length > 0) {
|
352 |
+
var haystack = (prefix + ' ' + name + ' ' +
|
353 |
+
objname + ' ' + title).toLowerCase();
|
354 |
+
var allfound = true;
|
355 |
+
for (i = 0; i < otherterms.length; i++) {
|
356 |
+
if (haystack.indexOf(otherterms[i]) == -1) {
|
357 |
+
allfound = false;
|
358 |
+
break;
|
359 |
+
}
|
360 |
+
}
|
361 |
+
if (!allfound) {
|
362 |
+
continue;
|
363 |
+
}
|
364 |
+
}
|
365 |
+
var descr = objname + _(', in ') + title;
|
366 |
+
|
367 |
+
var anchor = match[3];
|
368 |
+
if (anchor === '')
|
369 |
+
anchor = fullname;
|
370 |
+
else if (anchor == '-')
|
371 |
+
anchor = objnames[match[1]][1] + '-' + fullname;
|
372 |
+
// add custom score for some objects according to scorer
|
373 |
+
if (Scorer.objPrio.hasOwnProperty(match[2])) {
|
374 |
+
score += Scorer.objPrio[match[2]];
|
375 |
+
} else {
|
376 |
+
score += Scorer.objPrioDefault;
|
377 |
+
}
|
378 |
+
results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]);
|
379 |
+
}
|
380 |
+
}
|
381 |
+
}
|
382 |
+
|
383 |
+
return results;
|
384 |
+
},
|
385 |
+
|
386 |
+
/**
|
387 |
+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
388 |
+
*/
|
389 |
+
escapeRegExp : function(string) {
|
390 |
+
return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
391 |
+
},
|
392 |
+
|
393 |
+
/**
|
394 |
+
* search for full-text terms in the index
|
395 |
+
*/
|
396 |
+
performTermsSearch : function(searchterms, excluded, terms, titleterms) {
|
397 |
+
var docnames = this._index.docnames;
|
398 |
+
var filenames = this._index.filenames;
|
399 |
+
var titles = this._index.titles;
|
400 |
+
|
401 |
+
var i, j, file;
|
402 |
+
var fileMap = {};
|
403 |
+
var scoreMap = {};
|
404 |
+
var results = [];
|
405 |
+
|
406 |
+
// perform the search on the required terms
|
407 |
+
for (i = 0; i < searchterms.length; i++) {
|
408 |
+
var word = searchterms[i];
|
409 |
+
var files = [];
|
410 |
+
var _o = [
|
411 |
+
{files: terms[word], score: Scorer.term},
|
412 |
+
{files: titleterms[word], score: Scorer.title}
|
413 |
+
];
|
414 |
+
// add support for partial matches
|
415 |
+
if (word.length > 2) {
|
416 |
+
var word_regex = this.escapeRegExp(word);
|
417 |
+
for (var w in terms) {
|
418 |
+
if (w.match(word_regex) && !terms[word]) {
|
419 |
+
_o.push({files: terms[w], score: Scorer.partialTerm})
|
420 |
+
}
|
421 |
+
}
|
422 |
+
for (var w in titleterms) {
|
423 |
+
if (w.match(word_regex) && !titleterms[word]) {
|
424 |
+
_o.push({files: titleterms[w], score: Scorer.partialTitle})
|
425 |
+
}
|
426 |
+
}
|
427 |
+
}
|
428 |
+
|
429 |
+
// no match but word was a required one
|
430 |
+
if ($u.every(_o, function(o){return o.files === undefined;})) {
|
431 |
+
break;
|
432 |
+
}
|
433 |
+
// found search word in contents
|
434 |
+
$u.each(_o, function(o) {
|
435 |
+
var _files = o.files;
|
436 |
+
if (_files === undefined)
|
437 |
+
return
|
438 |
+
|
439 |
+
if (_files.length === undefined)
|
440 |
+
_files = [_files];
|
441 |
+
files = files.concat(_files);
|
442 |
+
|
443 |
+
// set score for the word in each file to Scorer.term
|
444 |
+
for (j = 0; j < _files.length; j++) {
|
445 |
+
file = _files[j];
|
446 |
+
if (!(file in scoreMap))
|
447 |
+
scoreMap[file] = {};
|
448 |
+
scoreMap[file][word] = o.score;
|
449 |
+
}
|
450 |
+
});
|
451 |
+
|
452 |
+
// create the mapping
|
453 |
+
for (j = 0; j < files.length; j++) {
|
454 |
+
file = files[j];
|
455 |
+
if (file in fileMap && fileMap[file].indexOf(word) === -1)
|
456 |
+
fileMap[file].push(word);
|
457 |
+
else
|
458 |
+
fileMap[file] = [word];
|
459 |
+
}
|
460 |
+
}
|
461 |
+
|
462 |
+
// now check if the files don't contain excluded terms
|
463 |
+
for (file in fileMap) {
|
464 |
+
var valid = true;
|
465 |
+
|
466 |
+
// check if all requirements are matched
|
467 |
+
var filteredTermCount = // as search terms with length < 3 are discarded: ignore
|
468 |
+
searchterms.filter(function(term){return term.length > 2}).length
|
469 |
+
if (
|
470 |
+
fileMap[file].length != searchterms.length &&
|
471 |
+
fileMap[file].length != filteredTermCount
|
472 |
+
) continue;
|
473 |
+
|
474 |
+
// ensure that none of the excluded terms is in the search result
|
475 |
+
for (i = 0; i < excluded.length; i++) {
|
476 |
+
if (terms[excluded[i]] == file ||
|
477 |
+
titleterms[excluded[i]] == file ||
|
478 |
+
$u.contains(terms[excluded[i]] || [], file) ||
|
479 |
+
$u.contains(titleterms[excluded[i]] || [], file)) {
|
480 |
+
valid = false;
|
481 |
+
break;
|
482 |
+
}
|
483 |
+
}
|
484 |
+
|
485 |
+
// if we have still a valid result we can add it to the result list
|
486 |
+
if (valid) {
|
487 |
+
// select one (max) score for the file.
|
488 |
+
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
|
489 |
+
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
|
490 |
+
results.push([docnames[file], titles[file], '', null, score, filenames[file]]);
|
491 |
+
}
|
492 |
+
}
|
493 |
+
return results;
|
494 |
+
},
|
495 |
+
|
496 |
+
/**
|
497 |
+
* helper function to return a node containing the
|
498 |
+
* search summary for a given text. keywords is a list
|
499 |
+
* of stemmed words, hlwords is the list of normal, unstemmed
|
500 |
+
* words. the first one is used to find the occurrence, the
|
501 |
+
* latter for highlighting it.
|
502 |
+
*/
|
503 |
+
makeSearchSummary : function(htmlText, keywords, hlwords) {
|
504 |
+
var text = Search.htmlToText(htmlText);
|
505 |
+
if (text == "") {
|
506 |
+
return null;
|
507 |
+
}
|
508 |
+
var textLower = text.toLowerCase();
|
509 |
+
var start = 0;
|
510 |
+
$.each(keywords, function() {
|
511 |
+
var i = textLower.indexOf(this.toLowerCase());
|
512 |
+
if (i > -1)
|
513 |
+
start = i;
|
514 |
+
});
|
515 |
+
start = Math.max(start - 120, 0);
|
516 |
+
var excerpt = ((start > 0) ? '...' : '') +
|
517 |
+
$.trim(text.substr(start, 240)) +
|
518 |
+
((start + 240 - text.length) ? '...' : '');
|
519 |
+
var rv = $('<p class="context"></p>').text(excerpt);
|
520 |
+
$.each(hlwords, function() {
|
521 |
+
rv = rv.highlightText(this, 'highlighted');
|
522 |
+
});
|
523 |
+
return rv;
|
524 |
+
}
|
525 |
+
};
|
526 |
+
|
527 |
+
$(document).ready(function() {
|
528 |
+
Search.init();
|
529 |
+
});
|
docs/build/html/_static/underscore-1.13.1.js
ADDED
@@ -0,0 +1,2042 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function (global, factory) {
|
2 |
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
3 |
+
typeof define === 'function' && define.amd ? define('underscore', factory) :
|
4 |
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
|
5 |
+
var current = global._;
|
6 |
+
var exports = global._ = factory();
|
7 |
+
exports.noConflict = function () { global._ = current; return exports; };
|
8 |
+
}()));
|
9 |
+
}(this, (function () {
|
10 |
+
// Underscore.js 1.13.1
|
11 |
+
// https://underscorejs.org
|
12 |
+
// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
13 |
+
// Underscore may be freely distributed under the MIT license.
|
14 |
+
|
15 |
+
// Current version.
|
16 |
+
var VERSION = '1.13.1';
|
17 |
+
|
18 |
+
// Establish the root object, `window` (`self`) in the browser, `global`
|
19 |
+
// on the server, or `this` in some virtual machines. We use `self`
|
20 |
+
// instead of `window` for `WebWorker` support.
|
21 |
+
var root = typeof self == 'object' && self.self === self && self ||
|
22 |
+
typeof global == 'object' && global.global === global && global ||
|
23 |
+
Function('return this')() ||
|
24 |
+
{};
|
25 |
+
|
26 |
+
// Save bytes in the minified (but not gzipped) version:
|
27 |
+
var ArrayProto = Array.prototype, ObjProto = Object.prototype;
|
28 |
+
var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
|
29 |
+
|
30 |
+
// Create quick reference variables for speed access to core prototypes.
|
31 |
+
var push = ArrayProto.push,
|
32 |
+
slice = ArrayProto.slice,
|
33 |
+
toString = ObjProto.toString,
|
34 |
+
hasOwnProperty = ObjProto.hasOwnProperty;
|
35 |
+
|
36 |
+
// Modern feature detection.
|
37 |
+
var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',
|
38 |
+
supportsDataView = typeof DataView !== 'undefined';
|
39 |
+
|
40 |
+
// All **ECMAScript 5+** native function implementations that we hope to use
|
41 |
+
// are declared here.
|
42 |
+
var nativeIsArray = Array.isArray,
|
43 |
+
nativeKeys = Object.keys,
|
44 |
+
nativeCreate = Object.create,
|
45 |
+
nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;
|
46 |
+
|
47 |
+
// Create references to these builtin functions because we override them.
|
48 |
+
var _isNaN = isNaN,
|
49 |
+
_isFinite = isFinite;
|
50 |
+
|
51 |
+
// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
|
52 |
+
var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
|
53 |
+
var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
|
54 |
+
'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
55 |
+
|
56 |
+
// The largest integer that can be represented exactly.
|
57 |
+
var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
|
58 |
+
|
59 |
+
// Some functions take a variable number of arguments, or a few expected
|
60 |
+
// arguments at the beginning and then a variable number of values to operate
|
61 |
+
// on. This helper accumulates all remaining arguments past the function’s
|
62 |
+
// argument length (or an explicit `startIndex`), into an array that becomes
|
63 |
+
// the last argument. Similar to ES6’s "rest parameter".
|
64 |
+
function restArguments(func, startIndex) {
|
65 |
+
startIndex = startIndex == null ? func.length - 1 : +startIndex;
|
66 |
+
return function() {
|
67 |
+
var length = Math.max(arguments.length - startIndex, 0),
|
68 |
+
rest = Array(length),
|
69 |
+
index = 0;
|
70 |
+
for (; index < length; index++) {
|
71 |
+
rest[index] = arguments[index + startIndex];
|
72 |
+
}
|
73 |
+
switch (startIndex) {
|
74 |
+
case 0: return func.call(this, rest);
|
75 |
+
case 1: return func.call(this, arguments[0], rest);
|
76 |
+
case 2: return func.call(this, arguments[0], arguments[1], rest);
|
77 |
+
}
|
78 |
+
var args = Array(startIndex + 1);
|
79 |
+
for (index = 0; index < startIndex; index++) {
|
80 |
+
args[index] = arguments[index];
|
81 |
+
}
|
82 |
+
args[startIndex] = rest;
|
83 |
+
return func.apply(this, args);
|
84 |
+
};
|
85 |
+
}
|
86 |
+
|
87 |
+
// Is a given variable an object?
|
88 |
+
function isObject(obj) {
|
89 |
+
var type = typeof obj;
|
90 |
+
return type === 'function' || type === 'object' && !!obj;
|
91 |
+
}
|
92 |
+
|
93 |
+
// Is a given value equal to null?
|
94 |
+
function isNull(obj) {
|
95 |
+
return obj === null;
|
96 |
+
}
|
97 |
+
|
98 |
+
// Is a given variable undefined?
|
99 |
+
function isUndefined(obj) {
|
100 |
+
return obj === void 0;
|
101 |
+
}
|
102 |
+
|
103 |
+
// Is a given value a boolean?
|
104 |
+
function isBoolean(obj) {
|
105 |
+
return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
|
106 |
+
}
|
107 |
+
|
108 |
+
// Is a given value a DOM element?
|
109 |
+
function isElement(obj) {
|
110 |
+
return !!(obj && obj.nodeType === 1);
|
111 |
+
}
|
112 |
+
|
113 |
+
// Internal function for creating a `toString`-based type tester.
|
114 |
+
function tagTester(name) {
|
115 |
+
var tag = '[object ' + name + ']';
|
116 |
+
return function(obj) {
|
117 |
+
return toString.call(obj) === tag;
|
118 |
+
};
|
119 |
+
}
|
120 |
+
|
121 |
+
var isString = tagTester('String');
|
122 |
+
|
123 |
+
var isNumber = tagTester('Number');
|
124 |
+
|
125 |
+
var isDate = tagTester('Date');
|
126 |
+
|
127 |
+
var isRegExp = tagTester('RegExp');
|
128 |
+
|
129 |
+
var isError = tagTester('Error');
|
130 |
+
|
131 |
+
var isSymbol = tagTester('Symbol');
|
132 |
+
|
133 |
+
var isArrayBuffer = tagTester('ArrayBuffer');
|
134 |
+
|
135 |
+
var isFunction = tagTester('Function');
|
136 |
+
|
137 |
+
// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old
|
138 |
+
// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
|
139 |
+
var nodelist = root.document && root.document.childNodes;
|
140 |
+
if (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {
|
141 |
+
isFunction = function(obj) {
|
142 |
+
return typeof obj == 'function' || false;
|
143 |
+
};
|
144 |
+
}
|
145 |
+
|
146 |
+
var isFunction$1 = isFunction;
|
147 |
+
|
148 |
+
var hasObjectTag = tagTester('Object');
|
149 |
+
|
150 |
+
// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.
|
151 |
+
// In IE 11, the most common among them, this problem also applies to
|
152 |
+
// `Map`, `WeakMap` and `Set`.
|
153 |
+
var hasStringTagBug = (
|
154 |
+
supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))
|
155 |
+
),
|
156 |
+
isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));
|
157 |
+
|
158 |
+
var isDataView = tagTester('DataView');
|
159 |
+
|
160 |
+
// In IE 10 - Edge 13, we need a different heuristic
|
161 |
+
// to determine whether an object is a `DataView`.
|
162 |
+
function ie10IsDataView(obj) {
|
163 |
+
return obj != null && isFunction$1(obj.getInt8) && isArrayBuffer(obj.buffer);
|
164 |
+
}
|
165 |
+
|
166 |
+
var isDataView$1 = (hasStringTagBug ? ie10IsDataView : isDataView);
|
167 |
+
|
168 |
+
// Is a given value an array?
|
169 |
+
// Delegates to ECMA5's native `Array.isArray`.
|
170 |
+
var isArray = nativeIsArray || tagTester('Array');
|
171 |
+
|
172 |
+
// Internal function to check whether `key` is an own property name of `obj`.
|
173 |
+
function has$1(obj, key) {
|
174 |
+
return obj != null && hasOwnProperty.call(obj, key);
|
175 |
+
}
|
176 |
+
|
177 |
+
var isArguments = tagTester('Arguments');
|
178 |
+
|
179 |
+
// Define a fallback version of the method in browsers (ahem, IE < 9), where
|
180 |
+
// there isn't any inspectable "Arguments" type.
|
181 |
+
(function() {
|
182 |
+
if (!isArguments(arguments)) {
|
183 |
+
isArguments = function(obj) {
|
184 |
+
return has$1(obj, 'callee');
|
185 |
+
};
|
186 |
+
}
|
187 |
+
}());
|
188 |
+
|
189 |
+
var isArguments$1 = isArguments;
|
190 |
+
|
191 |
+
// Is a given object a finite number?
|
192 |
+
function isFinite$1(obj) {
|
193 |
+
return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));
|
194 |
+
}
|
195 |
+
|
196 |
+
// Is the given value `NaN`?
|
197 |
+
function isNaN$1(obj) {
|
198 |
+
return isNumber(obj) && _isNaN(obj);
|
199 |
+
}
|
200 |
+
|
201 |
+
// Predicate-generating function. Often useful outside of Underscore.
|
202 |
+
function constant(value) {
|
203 |
+
return function() {
|
204 |
+
return value;
|
205 |
+
};
|
206 |
+
}
|
207 |
+
|
208 |
+
// Common internal logic for `isArrayLike` and `isBufferLike`.
|
209 |
+
function createSizePropertyCheck(getSizeProperty) {
|
210 |
+
return function(collection) {
|
211 |
+
var sizeProperty = getSizeProperty(collection);
|
212 |
+
return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
// Internal helper to generate a function to obtain property `key` from `obj`.
|
217 |
+
function shallowProperty(key) {
|
218 |
+
return function(obj) {
|
219 |
+
return obj == null ? void 0 : obj[key];
|
220 |
+
};
|
221 |
+
}
|
222 |
+
|
223 |
+
// Internal helper to obtain the `byteLength` property of an object.
|
224 |
+
var getByteLength = shallowProperty('byteLength');
|
225 |
+
|
226 |
+
// Internal helper to determine whether we should spend extensive checks against
|
227 |
+
// `ArrayBuffer` et al.
|
228 |
+
var isBufferLike = createSizePropertyCheck(getByteLength);
|
229 |
+
|
230 |
+
// Is a given value a typed array?
|
231 |
+
var typedArrayPattern = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
|
232 |
+
function isTypedArray(obj) {
|
233 |
+
// `ArrayBuffer.isView` is the most future-proof, so use it when available.
|
234 |
+
// Otherwise, fall back on the above regular expression.
|
235 |
+
return nativeIsView ? (nativeIsView(obj) && !isDataView$1(obj)) :
|
236 |
+
isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));
|
237 |
+
}
|
238 |
+
|
239 |
+
var isTypedArray$1 = supportsArrayBuffer ? isTypedArray : constant(false);
|
240 |
+
|
241 |
+
// Internal helper to obtain the `length` property of an object.
|
242 |
+
var getLength = shallowProperty('length');
|
243 |
+
|
244 |
+
// Internal helper to create a simple lookup structure.
|
245 |
+
// `collectNonEnumProps` used to depend on `_.contains`, but this led to
|
246 |
+
// circular imports. `emulatedSet` is a one-off solution that only works for
|
247 |
+
// arrays of strings.
|
248 |
+
function emulatedSet(keys) {
|
249 |
+
var hash = {};
|
250 |
+
for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
|
251 |
+
return {
|
252 |
+
contains: function(key) { return hash[key]; },
|
253 |
+
push: function(key) {
|
254 |
+
hash[key] = true;
|
255 |
+
return keys.push(key);
|
256 |
+
}
|
257 |
+
};
|
258 |
+
}
|
259 |
+
|
260 |
+
// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't
|
261 |
+
// be iterated by `for key in ...` and thus missed. Extends `keys` in place if
|
262 |
+
// needed.
|
263 |
+
function collectNonEnumProps(obj, keys) {
|
264 |
+
keys = emulatedSet(keys);
|
265 |
+
var nonEnumIdx = nonEnumerableProps.length;
|
266 |
+
var constructor = obj.constructor;
|
267 |
+
var proto = isFunction$1(constructor) && constructor.prototype || ObjProto;
|
268 |
+
|
269 |
+
// Constructor is a special case.
|
270 |
+
var prop = 'constructor';
|
271 |
+
if (has$1(obj, prop) && !keys.contains(prop)) keys.push(prop);
|
272 |
+
|
273 |
+
while (nonEnumIdx--) {
|
274 |
+
prop = nonEnumerableProps[nonEnumIdx];
|
275 |
+
if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {
|
276 |
+
keys.push(prop);
|
277 |
+
}
|
278 |
+
}
|
279 |
+
}
|
280 |
+
|
281 |
+
// Retrieve the names of an object's own properties.
|
282 |
+
// Delegates to **ECMAScript 5**'s native `Object.keys`.
|
283 |
+
function keys(obj) {
|
284 |
+
if (!isObject(obj)) return [];
|
285 |
+
if (nativeKeys) return nativeKeys(obj);
|
286 |
+
var keys = [];
|
287 |
+
for (var key in obj) if (has$1(obj, key)) keys.push(key);
|
288 |
+
// Ahem, IE < 9.
|
289 |
+
if (hasEnumBug) collectNonEnumProps(obj, keys);
|
290 |
+
return keys;
|
291 |
+
}
|
292 |
+
|
293 |
+
// Is a given array, string, or object empty?
|
294 |
+
// An "empty" object has no enumerable own-properties.
|
295 |
+
function isEmpty(obj) {
|
296 |
+
if (obj == null) return true;
|
297 |
+
// Skip the more expensive `toString`-based type checks if `obj` has no
|
298 |
+
// `.length`.
|
299 |
+
var length = getLength(obj);
|
300 |
+
if (typeof length == 'number' && (
|
301 |
+
isArray(obj) || isString(obj) || isArguments$1(obj)
|
302 |
+
)) return length === 0;
|
303 |
+
return getLength(keys(obj)) === 0;
|
304 |
+
}
|
305 |
+
|
306 |
+
// Returns whether an object has a given set of `key:value` pairs.
|
307 |
+
function isMatch(object, attrs) {
|
308 |
+
var _keys = keys(attrs), length = _keys.length;
|
309 |
+
if (object == null) return !length;
|
310 |
+
var obj = Object(object);
|
311 |
+
for (var i = 0; i < length; i++) {
|
312 |
+
var key = _keys[i];
|
313 |
+
if (attrs[key] !== obj[key] || !(key in obj)) return false;
|
314 |
+
}
|
315 |
+
return true;
|
316 |
+
}
|
317 |
+
|
318 |
+
// If Underscore is called as a function, it returns a wrapped object that can
|
319 |
+
// be used OO-style. This wrapper holds altered versions of all functions added
|
320 |
+
// through `_.mixin`. Wrapped objects may be chained.
|
321 |
+
function _$1(obj) {
|
322 |
+
if (obj instanceof _$1) return obj;
|
323 |
+
if (!(this instanceof _$1)) return new _$1(obj);
|
324 |
+
this._wrapped = obj;
|
325 |
+
}
|
326 |
+
|
327 |
+
_$1.VERSION = VERSION;
|
328 |
+
|
329 |
+
// Extracts the result from a wrapped and chained object.
|
330 |
+
_$1.prototype.value = function() {
|
331 |
+
return this._wrapped;
|
332 |
+
};
|
333 |
+
|
334 |
+
// Provide unwrapping proxies for some methods used in engine operations
|
335 |
+
// such as arithmetic and JSON stringification.
|
336 |
+
_$1.prototype.valueOf = _$1.prototype.toJSON = _$1.prototype.value;
|
337 |
+
|
338 |
+
_$1.prototype.toString = function() {
|
339 |
+
return String(this._wrapped);
|
340 |
+
};
|
341 |
+
|
342 |
+
// Internal function to wrap or shallow-copy an ArrayBuffer,
|
343 |
+
// typed array or DataView to a new view, reusing the buffer.
|
344 |
+
function toBufferView(bufferSource) {
|
345 |
+
return new Uint8Array(
|
346 |
+
bufferSource.buffer || bufferSource,
|
347 |
+
bufferSource.byteOffset || 0,
|
348 |
+
getByteLength(bufferSource)
|
349 |
+
);
|
350 |
+
}
|
351 |
+
|
352 |
+
// We use this string twice, so give it a name for minification.
|
353 |
+
var tagDataView = '[object DataView]';
|
354 |
+
|
355 |
+
// Internal recursive comparison function for `_.isEqual`.
|
356 |
+
function eq(a, b, aStack, bStack) {
|
357 |
+
// Identical objects are equal. `0 === -0`, but they aren't identical.
|
358 |
+
// See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).
|
359 |
+
if (a === b) return a !== 0 || 1 / a === 1 / b;
|
360 |
+
// `null` or `undefined` only equal to itself (strict comparison).
|
361 |
+
if (a == null || b == null) return false;
|
362 |
+
// `NaN`s are equivalent, but non-reflexive.
|
363 |
+
if (a !== a) return b !== b;
|
364 |
+
// Exhaust primitive checks
|
365 |
+
var type = typeof a;
|
366 |
+
if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;
|
367 |
+
return deepEq(a, b, aStack, bStack);
|
368 |
+
}
|
369 |
+
|
370 |
+
// Internal recursive comparison function for `_.isEqual`.
|
371 |
+
function deepEq(a, b, aStack, bStack) {
|
372 |
+
// Unwrap any wrapped objects.
|
373 |
+
if (a instanceof _$1) a = a._wrapped;
|
374 |
+
if (b instanceof _$1) b = b._wrapped;
|
375 |
+
// Compare `[[Class]]` names.
|
376 |
+
var className = toString.call(a);
|
377 |
+
if (className !== toString.call(b)) return false;
|
378 |
+
// Work around a bug in IE 10 - Edge 13.
|
379 |
+
if (hasStringTagBug && className == '[object Object]' && isDataView$1(a)) {
|
380 |
+
if (!isDataView$1(b)) return false;
|
381 |
+
className = tagDataView;
|
382 |
+
}
|
383 |
+
switch (className) {
|
384 |
+
// These types are compared by value.
|
385 |
+
case '[object RegExp]':
|
386 |
+
// RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
|
387 |
+
case '[object String]':
|
388 |
+
// Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
|
389 |
+
// equivalent to `new String("5")`.
|
390 |
+
return '' + a === '' + b;
|
391 |
+
case '[object Number]':
|
392 |
+
// `NaN`s are equivalent, but non-reflexive.
|
393 |
+
// Object(NaN) is equivalent to NaN.
|
394 |
+
if (+a !== +a) return +b !== +b;
|
395 |
+
// An `egal` comparison is performed for other numeric values.
|
396 |
+
return +a === 0 ? 1 / +a === 1 / b : +a === +b;
|
397 |
+
case '[object Date]':
|
398 |
+
case '[object Boolean]':
|
399 |
+
// Coerce dates and booleans to numeric primitive values. Dates are compared by their
|
400 |
+
// millisecond representations. Note that invalid dates with millisecond representations
|
401 |
+
// of `NaN` are not equivalent.
|
402 |
+
return +a === +b;
|
403 |
+
case '[object Symbol]':
|
404 |
+
return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);
|
405 |
+
case '[object ArrayBuffer]':
|
406 |
+
case tagDataView:
|
407 |
+
// Coerce to typed array so we can fall through.
|
408 |
+
return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);
|
409 |
+
}
|
410 |
+
|
411 |
+
var areArrays = className === '[object Array]';
|
412 |
+
if (!areArrays && isTypedArray$1(a)) {
|
413 |
+
var byteLength = getByteLength(a);
|
414 |
+
if (byteLength !== getByteLength(b)) return false;
|
415 |
+
if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;
|
416 |
+
areArrays = true;
|
417 |
+
}
|
418 |
+
if (!areArrays) {
|
419 |
+
if (typeof a != 'object' || typeof b != 'object') return false;
|
420 |
+
|
421 |
+
// Objects with different constructors are not equivalent, but `Object`s or `Array`s
|
422 |
+
// from different frames are.
|
423 |
+
var aCtor = a.constructor, bCtor = b.constructor;
|
424 |
+
if (aCtor !== bCtor && !(isFunction$1(aCtor) && aCtor instanceof aCtor &&
|
425 |
+
isFunction$1(bCtor) && bCtor instanceof bCtor)
|
426 |
+
&& ('constructor' in a && 'constructor' in b)) {
|
427 |
+
return false;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
// Assume equality for cyclic structures. The algorithm for detecting cyclic
|
431 |
+
// structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
|
432 |
+
|
433 |
+
// Initializing stack of traversed objects.
|
434 |
+
// It's done here since we only need them for objects and arrays comparison.
|
435 |
+
aStack = aStack || [];
|
436 |
+
bStack = bStack || [];
|
437 |
+
var length = aStack.length;
|
438 |
+
while (length--) {
|
439 |
+
// Linear search. Performance is inversely proportional to the number of
|
440 |
+
// unique nested structures.
|
441 |
+
if (aStack[length] === a) return bStack[length] === b;
|
442 |
+
}
|
443 |
+
|
444 |
+
// Add the first object to the stack of traversed objects.
|
445 |
+
aStack.push(a);
|
446 |
+
bStack.push(b);
|
447 |
+
|
448 |
+
// Recursively compare objects and arrays.
|
449 |
+
if (areArrays) {
|
450 |
+
// Compare array lengths to determine if a deep comparison is necessary.
|
451 |
+
length = a.length;
|
452 |
+
if (length !== b.length) return false;
|
453 |
+
// Deep compare the contents, ignoring non-numeric properties.
|
454 |
+
while (length--) {
|
455 |
+
if (!eq(a[length], b[length], aStack, bStack)) return false;
|
456 |
+
}
|
457 |
+
} else {
|
458 |
+
// Deep compare objects.
|
459 |
+
var _keys = keys(a), key;
|
460 |
+
length = _keys.length;
|
461 |
+
// Ensure that both objects contain the same number of properties before comparing deep equality.
|
462 |
+
if (keys(b).length !== length) return false;
|
463 |
+
while (length--) {
|
464 |
+
// Deep compare each member
|
465 |
+
key = _keys[length];
|
466 |
+
if (!(has$1(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
|
467 |
+
}
|
468 |
+
}
|
469 |
+
// Remove the first object from the stack of traversed objects.
|
470 |
+
aStack.pop();
|
471 |
+
bStack.pop();
|
472 |
+
return true;
|
473 |
+
}
|
474 |
+
|
475 |
+
// Perform a deep comparison to check if two objects are equal.
|
476 |
+
function isEqual(a, b) {
|
477 |
+
return eq(a, b);
|
478 |
+
}
|
479 |
+
|
480 |
+
// Retrieve all the enumerable property names of an object.
|
481 |
+
function allKeys(obj) {
|
482 |
+
if (!isObject(obj)) return [];
|
483 |
+
var keys = [];
|
484 |
+
for (var key in obj) keys.push(key);
|
485 |
+
// Ahem, IE < 9.
|
486 |
+
if (hasEnumBug) collectNonEnumProps(obj, keys);
|
487 |
+
return keys;
|
488 |
+
}
|
489 |
+
|
490 |
+
// Since the regular `Object.prototype.toString` type tests don't work for
|
491 |
+
// some types in IE 11, we use a fingerprinting heuristic instead, based
|
492 |
+
// on the methods. It's not great, but it's the best we got.
|
493 |
+
// The fingerprint method lists are defined below.
|
494 |
+
function ie11fingerprint(methods) {
|
495 |
+
var length = getLength(methods);
|
496 |
+
return function(obj) {
|
497 |
+
if (obj == null) return false;
|
498 |
+
// `Map`, `WeakMap` and `Set` have no enumerable keys.
|
499 |
+
var keys = allKeys(obj);
|
500 |
+
if (getLength(keys)) return false;
|
501 |
+
for (var i = 0; i < length; i++) {
|
502 |
+
if (!isFunction$1(obj[methods[i]])) return false;
|
503 |
+
}
|
504 |
+
// If we are testing against `WeakMap`, we need to ensure that
|
505 |
+
// `obj` doesn't have a `forEach` method in order to distinguish
|
506 |
+
// it from a regular `Map`.
|
507 |
+
return methods !== weakMapMethods || !isFunction$1(obj[forEachName]);
|
508 |
+
};
|
509 |
+
}
|
510 |
+
|
511 |
+
// In the interest of compact minification, we write
|
512 |
+
// each string in the fingerprints only once.
|
513 |
+
var forEachName = 'forEach',
|
514 |
+
hasName = 'has',
|
515 |
+
commonInit = ['clear', 'delete'],
|
516 |
+
mapTail = ['get', hasName, 'set'];
|
517 |
+
|
518 |
+
// `Map`, `WeakMap` and `Set` each have slightly different
|
519 |
+
// combinations of the above sublists.
|
520 |
+
var mapMethods = commonInit.concat(forEachName, mapTail),
|
521 |
+
weakMapMethods = commonInit.concat(mapTail),
|
522 |
+
setMethods = ['add'].concat(commonInit, forEachName, hasName);
|
523 |
+
|
524 |
+
var isMap = isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');
|
525 |
+
|
526 |
+
var isWeakMap = isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');
|
527 |
+
|
528 |
+
var isSet = isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');
|
529 |
+
|
530 |
+
var isWeakSet = tagTester('WeakSet');
|
531 |
+
|
532 |
+
// Retrieve the values of an object's properties.
|
533 |
+
function values(obj) {
|
534 |
+
var _keys = keys(obj);
|
535 |
+
var length = _keys.length;
|
536 |
+
var values = Array(length);
|
537 |
+
for (var i = 0; i < length; i++) {
|
538 |
+
values[i] = obj[_keys[i]];
|
539 |
+
}
|
540 |
+
return values;
|
541 |
+
}
|
542 |
+
|
543 |
+
// Convert an object into a list of `[key, value]` pairs.
|
544 |
+
// The opposite of `_.object` with one argument.
|
545 |
+
function pairs(obj) {
|
546 |
+
var _keys = keys(obj);
|
547 |
+
var length = _keys.length;
|
548 |
+
var pairs = Array(length);
|
549 |
+
for (var i = 0; i < length; i++) {
|
550 |
+
pairs[i] = [_keys[i], obj[_keys[i]]];
|
551 |
+
}
|
552 |
+
return pairs;
|
553 |
+
}
|
554 |
+
|
555 |
+
// Invert the keys and values of an object. The values must be serializable.
|
556 |
+
function invert(obj) {
|
557 |
+
var result = {};
|
558 |
+
var _keys = keys(obj);
|
559 |
+
for (var i = 0, length = _keys.length; i < length; i++) {
|
560 |
+
result[obj[_keys[i]]] = _keys[i];
|
561 |
+
}
|
562 |
+
return result;
|
563 |
+
}
|
564 |
+
|
565 |
+
// Return a sorted list of the function names available on the object.
|
566 |
+
function functions(obj) {
|
567 |
+
var names = [];
|
568 |
+
for (var key in obj) {
|
569 |
+
if (isFunction$1(obj[key])) names.push(key);
|
570 |
+
}
|
571 |
+
return names.sort();
|
572 |
+
}
|
573 |
+
|
574 |
+
// An internal function for creating assigner functions.
|
575 |
+
function createAssigner(keysFunc, defaults) {
|
576 |
+
return function(obj) {
|
577 |
+
var length = arguments.length;
|
578 |
+
if (defaults) obj = Object(obj);
|
579 |
+
if (length < 2 || obj == null) return obj;
|
580 |
+
for (var index = 1; index < length; index++) {
|
581 |
+
var source = arguments[index],
|
582 |
+
keys = keysFunc(source),
|
583 |
+
l = keys.length;
|
584 |
+
for (var i = 0; i < l; i++) {
|
585 |
+
var key = keys[i];
|
586 |
+
if (!defaults || obj[key] === void 0) obj[key] = source[key];
|
587 |
+
}
|
588 |
+
}
|
589 |
+
return obj;
|
590 |
+
};
|
591 |
+
}
|
592 |
+
|
593 |
+
// Extend a given object with all the properties in passed-in object(s).
|
594 |
+
var extend = createAssigner(allKeys);
|
595 |
+
|
596 |
+
// Assigns a given object with all the own properties in the passed-in
|
597 |
+
// object(s).
|
598 |
+
// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
|
599 |
+
var extendOwn = createAssigner(keys);
|
600 |
+
|
601 |
+
// Fill in a given object with default properties.
|
602 |
+
var defaults = createAssigner(allKeys, true);
|
603 |
+
|
604 |
+
// Create a naked function reference for surrogate-prototype-swapping.
|
605 |
+
function ctor() {
|
606 |
+
return function(){};
|
607 |
+
}
|
608 |
+
|
609 |
+
// An internal function for creating a new object that inherits from another.
|
610 |
+
function baseCreate(prototype) {
|
611 |
+
if (!isObject(prototype)) return {};
|
612 |
+
if (nativeCreate) return nativeCreate(prototype);
|
613 |
+
var Ctor = ctor();
|
614 |
+
Ctor.prototype = prototype;
|
615 |
+
var result = new Ctor;
|
616 |
+
Ctor.prototype = null;
|
617 |
+
return result;
|
618 |
+
}
|
619 |
+
|
620 |
+
// Creates an object that inherits from the given prototype object.
|
621 |
+
// If additional properties are provided then they will be added to the
|
622 |
+
// created object.
|
623 |
+
function create(prototype, props) {
|
624 |
+
var result = baseCreate(prototype);
|
625 |
+
if (props) extendOwn(result, props);
|
626 |
+
return result;
|
627 |
+
}
|
628 |
+
|
629 |
+
// Create a (shallow-cloned) duplicate of an object.
|
630 |
+
function clone(obj) {
|
631 |
+
if (!isObject(obj)) return obj;
|
632 |
+
return isArray(obj) ? obj.slice() : extend({}, obj);
|
633 |
+
}
|
634 |
+
|
635 |
+
// Invokes `interceptor` with the `obj` and then returns `obj`.
|
636 |
+
// The primary purpose of this method is to "tap into" a method chain, in
|
637 |
+
// order to perform operations on intermediate results within the chain.
|
638 |
+
function tap(obj, interceptor) {
|
639 |
+
interceptor(obj);
|
640 |
+
return obj;
|
641 |
+
}
|
642 |
+
|
643 |
+
// Normalize a (deep) property `path` to array.
|
644 |
+
// Like `_.iteratee`, this function can be customized.
|
645 |
+
function toPath$1(path) {
|
646 |
+
return isArray(path) ? path : [path];
|
647 |
+
}
|
648 |
+
_$1.toPath = toPath$1;
|
649 |
+
|
650 |
+
// Internal wrapper for `_.toPath` to enable minification.
|
651 |
+
// Similar to `cb` for `_.iteratee`.
|
652 |
+
function toPath(path) {
|
653 |
+
return _$1.toPath(path);
|
654 |
+
}
|
655 |
+
|
656 |
+
// Internal function to obtain a nested property in `obj` along `path`.
|
657 |
+
function deepGet(obj, path) {
|
658 |
+
var length = path.length;
|
659 |
+
for (var i = 0; i < length; i++) {
|
660 |
+
if (obj == null) return void 0;
|
661 |
+
obj = obj[path[i]];
|
662 |
+
}
|
663 |
+
return length ? obj : void 0;
|
664 |
+
}
|
665 |
+
|
666 |
+
// Get the value of the (deep) property on `path` from `object`.
|
667 |
+
// If any property in `path` does not exist or if the value is
|
668 |
+
// `undefined`, return `defaultValue` instead.
|
669 |
+
// The `path` is normalized through `_.toPath`.
|
670 |
+
function get(object, path, defaultValue) {
|
671 |
+
var value = deepGet(object, toPath(path));
|
672 |
+
return isUndefined(value) ? defaultValue : value;
|
673 |
+
}
|
674 |
+
|
675 |
+
// Shortcut function for checking if an object has a given property directly on
|
676 |
+
// itself (in other words, not on a prototype). Unlike the internal `has`
|
677 |
+
// function, this public version can also traverse nested properties.
|
678 |
+
function has(obj, path) {
|
679 |
+
path = toPath(path);
|
680 |
+
var length = path.length;
|
681 |
+
for (var i = 0; i < length; i++) {
|
682 |
+
var key = path[i];
|
683 |
+
if (!has$1(obj, key)) return false;
|
684 |
+
obj = obj[key];
|
685 |
+
}
|
686 |
+
return !!length;
|
687 |
+
}
|
688 |
+
|
689 |
+
// Keep the identity function around for default iteratees.
|
690 |
+
function identity(value) {
|
691 |
+
return value;
|
692 |
+
}
|
693 |
+
|
694 |
+
// Returns a predicate for checking whether an object has a given set of
|
695 |
+
// `key:value` pairs.
|
696 |
+
function matcher(attrs) {
|
697 |
+
attrs = extendOwn({}, attrs);
|
698 |
+
return function(obj) {
|
699 |
+
return isMatch(obj, attrs);
|
700 |
+
};
|
701 |
+
}
|
702 |
+
|
703 |
+
// Creates a function that, when passed an object, will traverse that object’s
|
704 |
+
// properties down the given `path`, specified as an array of keys or indices.
|
705 |
+
function property(path) {
|
706 |
+
path = toPath(path);
|
707 |
+
return function(obj) {
|
708 |
+
return deepGet(obj, path);
|
709 |
+
};
|
710 |
+
}
|
711 |
+
|
712 |
+
// Internal function that returns an efficient (for current engines) version
|
713 |
+
// of the passed-in callback, to be repeatedly applied in other Underscore
|
714 |
+
// functions.
|
715 |
+
function optimizeCb(func, context, argCount) {
|
716 |
+
if (context === void 0) return func;
|
717 |
+
switch (argCount == null ? 3 : argCount) {
|
718 |
+
case 1: return function(value) {
|
719 |
+
return func.call(context, value);
|
720 |
+
};
|
721 |
+
// The 2-argument case is omitted because we’re not using it.
|
722 |
+
case 3: return function(value, index, collection) {
|
723 |
+
return func.call(context, value, index, collection);
|
724 |
+
};
|
725 |
+
case 4: return function(accumulator, value, index, collection) {
|
726 |
+
return func.call(context, accumulator, value, index, collection);
|
727 |
+
};
|
728 |
+
}
|
729 |
+
return function() {
|
730 |
+
return func.apply(context, arguments);
|
731 |
+
};
|
732 |
+
}
|
733 |
+
|
734 |
+
// An internal function to generate callbacks that can be applied to each
|
735 |
+
// element in a collection, returning the desired result — either `_.identity`,
|
736 |
+
// an arbitrary callback, a property matcher, or a property accessor.
|
737 |
+
function baseIteratee(value, context, argCount) {
|
738 |
+
if (value == null) return identity;
|
739 |
+
if (isFunction$1(value)) return optimizeCb(value, context, argCount);
|
740 |
+
if (isObject(value) && !isArray(value)) return matcher(value);
|
741 |
+
return property(value);
|
742 |
+
}
|
743 |
+
|
744 |
+
// External wrapper for our callback generator. Users may customize
|
745 |
+
// `_.iteratee` if they want additional predicate/iteratee shorthand styles.
|
746 |
+
// This abstraction hides the internal-only `argCount` argument.
|
747 |
+
function iteratee(value, context) {
|
748 |
+
return baseIteratee(value, context, Infinity);
|
749 |
+
}
|
750 |
+
_$1.iteratee = iteratee;
|
751 |
+
|
752 |
+
// The function we call internally to generate a callback. It invokes
|
753 |
+
// `_.iteratee` if overridden, otherwise `baseIteratee`.
|
754 |
+
function cb(value, context, argCount) {
|
755 |
+
if (_$1.iteratee !== iteratee) return _$1.iteratee(value, context);
|
756 |
+
return baseIteratee(value, context, argCount);
|
757 |
+
}
|
758 |
+
|
759 |
+
// Returns the results of applying the `iteratee` to each element of `obj`.
|
760 |
+
// In contrast to `_.map` it returns an object.
|
761 |
+
function mapObject(obj, iteratee, context) {
|
762 |
+
iteratee = cb(iteratee, context);
|
763 |
+
var _keys = keys(obj),
|
764 |
+
length = _keys.length,
|
765 |
+
results = {};
|
766 |
+
for (var index = 0; index < length; index++) {
|
767 |
+
var currentKey = _keys[index];
|
768 |
+
results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
|
769 |
+
}
|
770 |
+
return results;
|
771 |
+
}
|
772 |
+
|
773 |
+
// Predicate-generating function. Often useful outside of Underscore.
|
774 |
+
function noop(){}
|
775 |
+
|
776 |
+
// Generates a function for a given object that returns a given property.
|
777 |
+
function propertyOf(obj) {
|
778 |
+
if (obj == null) return noop;
|
779 |
+
return function(path) {
|
780 |
+
return get(obj, path);
|
781 |
+
};
|
782 |
+
}
|
783 |
+
|
784 |
+
// Run a function **n** times.
|
785 |
+
function times(n, iteratee, context) {
|
786 |
+
var accum = Array(Math.max(0, n));
|
787 |
+
iteratee = optimizeCb(iteratee, context, 1);
|
788 |
+
for (var i = 0; i < n; i++) accum[i] = iteratee(i);
|
789 |
+
return accum;
|
790 |
+
}
|
791 |
+
|
792 |
+
// Return a random integer between `min` and `max` (inclusive).
|
793 |
+
function random(min, max) {
|
794 |
+
if (max == null) {
|
795 |
+
max = min;
|
796 |
+
min = 0;
|
797 |
+
}
|
798 |
+
return min + Math.floor(Math.random() * (max - min + 1));
|
799 |
+
}
|
800 |
+
|
801 |
+
// A (possibly faster) way to get the current timestamp as an integer.
|
802 |
+
var now = Date.now || function() {
|
803 |
+
return new Date().getTime();
|
804 |
+
};
|
805 |
+
|
806 |
+
// Internal helper to generate functions for escaping and unescaping strings
|
807 |
+
// to/from HTML interpolation.
|
808 |
+
function createEscaper(map) {
|
809 |
+
var escaper = function(match) {
|
810 |
+
return map[match];
|
811 |
+
};
|
812 |
+
// Regexes for identifying a key that needs to be escaped.
|
813 |
+
var source = '(?:' + keys(map).join('|') + ')';
|
814 |
+
var testRegexp = RegExp(source);
|
815 |
+
var replaceRegexp = RegExp(source, 'g');
|
816 |
+
return function(string) {
|
817 |
+
string = string == null ? '' : '' + string;
|
818 |
+
return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
|
819 |
+
};
|
820 |
+
}
|
821 |
+
|
822 |
+
// Internal list of HTML entities for escaping.
|
823 |
+
var escapeMap = {
|
824 |
+
'&': '&',
|
825 |
+
'<': '<',
|
826 |
+
'>': '>',
|
827 |
+
'"': '"',
|
828 |
+
"'": ''',
|
829 |
+
'`': '`'
|
830 |
+
};
|
831 |
+
|
832 |
+
// Function for escaping strings to HTML interpolation.
|
833 |
+
var _escape = createEscaper(escapeMap);
|
834 |
+
|
835 |
+
// Internal list of HTML entities for unescaping.
|
836 |
+
var unescapeMap = invert(escapeMap);
|
837 |
+
|
838 |
+
// Function for unescaping strings from HTML interpolation.
|
839 |
+
var _unescape = createEscaper(unescapeMap);
|
840 |
+
|
841 |
+
// By default, Underscore uses ERB-style template delimiters. Change the
|
842 |
+
// following template settings to use alternative delimiters.
|
843 |
+
var templateSettings = _$1.templateSettings = {
|
844 |
+
evaluate: /<%([\s\S]+?)%>/g,
|
845 |
+
interpolate: /<%=([\s\S]+?)%>/g,
|
846 |
+
escape: /<%-([\s\S]+?)%>/g
|
847 |
+
};
|
848 |
+
|
849 |
+
// When customizing `_.templateSettings`, if you don't want to define an
|
850 |
+
// interpolation, evaluation or escaping regex, we need one that is
|
851 |
+
// guaranteed not to match.
|
852 |
+
var noMatch = /(.)^/;
|
853 |
+
|
854 |
+
// Certain characters need to be escaped so that they can be put into a
|
855 |
+
// string literal.
|
856 |
+
var escapes = {
|
857 |
+
"'": "'",
|
858 |
+
'\\': '\\',
|
859 |
+
'\r': 'r',
|
860 |
+
'\n': 'n',
|
861 |
+
'\u2028': 'u2028',
|
862 |
+
'\u2029': 'u2029'
|
863 |
+
};
|
864 |
+
|
865 |
+
var escapeRegExp = /\\|'|\r|\n|\u2028|\u2029/g;
|
866 |
+
|
867 |
+
function escapeChar(match) {
|
868 |
+
return '\\' + escapes[match];
|
869 |
+
}
|
870 |
+
|
871 |
+
// In order to prevent third-party code injection through
|
872 |
+
// `_.templateSettings.variable`, we test it against the following regular
|
873 |
+
// expression. It is intentionally a bit more liberal than just matching valid
|
874 |
+
// identifiers, but still prevents possible loopholes through defaults or
|
875 |
+
// destructuring assignment.
|
876 |
+
var bareIdentifier = /^\s*(\w|\$)+\s*$/;
|
877 |
+
|
878 |
+
// JavaScript micro-templating, similar to John Resig's implementation.
|
879 |
+
// Underscore templating handles arbitrary delimiters, preserves whitespace,
|
880 |
+
// and correctly escapes quotes within interpolated code.
|
881 |
+
// NB: `oldSettings` only exists for backwards compatibility.
|
882 |
+
function template(text, settings, oldSettings) {
|
883 |
+
if (!settings && oldSettings) settings = oldSettings;
|
884 |
+
settings = defaults({}, settings, _$1.templateSettings);
|
885 |
+
|
886 |
+
// Combine delimiters into one regular expression via alternation.
|
887 |
+
var matcher = RegExp([
|
888 |
+
(settings.escape || noMatch).source,
|
889 |
+
(settings.interpolate || noMatch).source,
|
890 |
+
(settings.evaluate || noMatch).source
|
891 |
+
].join('|') + '|$', 'g');
|
892 |
+
|
893 |
+
// Compile the template source, escaping string literals appropriately.
|
894 |
+
var index = 0;
|
895 |
+
var source = "__p+='";
|
896 |
+
text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
|
897 |
+
source += text.slice(index, offset).replace(escapeRegExp, escapeChar);
|
898 |
+
index = offset + match.length;
|
899 |
+
|
900 |
+
if (escape) {
|
901 |
+
source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
|
902 |
+
} else if (interpolate) {
|
903 |
+
source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
|
904 |
+
} else if (evaluate) {
|
905 |
+
source += "';\n" + evaluate + "\n__p+='";
|
906 |
+
}
|
907 |
+
|
908 |
+
// Adobe VMs need the match returned to produce the correct offset.
|
909 |
+
return match;
|
910 |
+
});
|
911 |
+
source += "';\n";
|
912 |
+
|
913 |
+
var argument = settings.variable;
|
914 |
+
if (argument) {
|
915 |
+
// Insure against third-party code injection. (CVE-2021-23358)
|
916 |
+
if (!bareIdentifier.test(argument)) throw new Error(
|
917 |
+
'variable is not a bare identifier: ' + argument
|
918 |
+
);
|
919 |
+
} else {
|
920 |
+
// If a variable is not specified, place data values in local scope.
|
921 |
+
source = 'with(obj||{}){\n' + source + '}\n';
|
922 |
+
argument = 'obj';
|
923 |
+
}
|
924 |
+
|
925 |
+
source = "var __t,__p='',__j=Array.prototype.join," +
|
926 |
+
"print=function(){__p+=__j.call(arguments,'');};\n" +
|
927 |
+
source + 'return __p;\n';
|
928 |
+
|
929 |
+
var render;
|
930 |
+
try {
|
931 |
+
render = new Function(argument, '_', source);
|
932 |
+
} catch (e) {
|
933 |
+
e.source = source;
|
934 |
+
throw e;
|
935 |
+
}
|
936 |
+
|
937 |
+
var template = function(data) {
|
938 |
+
return render.call(this, data, _$1);
|
939 |
+
};
|
940 |
+
|
941 |
+
// Provide the compiled source as a convenience for precompilation.
|
942 |
+
template.source = 'function(' + argument + '){\n' + source + '}';
|
943 |
+
|
944 |
+
return template;
|
945 |
+
}
|
946 |
+
|
947 |
+
// Traverses the children of `obj` along `path`. If a child is a function, it
|
948 |
+
// is invoked with its parent as context. Returns the value of the final
|
949 |
+
// child, or `fallback` if any child is undefined.
|
950 |
+
function result(obj, path, fallback) {
|
951 |
+
path = toPath(path);
|
952 |
+
var length = path.length;
|
953 |
+
if (!length) {
|
954 |
+
return isFunction$1(fallback) ? fallback.call(obj) : fallback;
|
955 |
+
}
|
956 |
+
for (var i = 0; i < length; i++) {
|
957 |
+
var prop = obj == null ? void 0 : obj[path[i]];
|
958 |
+
if (prop === void 0) {
|
959 |
+
prop = fallback;
|
960 |
+
i = length; // Ensure we don't continue iterating.
|
961 |
+
}
|
962 |
+
obj = isFunction$1(prop) ? prop.call(obj) : prop;
|
963 |
+
}
|
964 |
+
return obj;
|
965 |
+
}
|
966 |
+
|
967 |
+
// Generate a unique integer id (unique within the entire client session).
|
968 |
+
// Useful for temporary DOM ids.
|
969 |
+
var idCounter = 0;
|
970 |
+
function uniqueId(prefix) {
|
971 |
+
var id = ++idCounter + '';
|
972 |
+
return prefix ? prefix + id : id;
|
973 |
+
}
|
974 |
+
|
975 |
+
// Start chaining a wrapped Underscore object.
|
976 |
+
function chain(obj) {
|
977 |
+
var instance = _$1(obj);
|
978 |
+
instance._chain = true;
|
979 |
+
return instance;
|
980 |
+
}
|
981 |
+
|
982 |
+
// Internal function to execute `sourceFunc` bound to `context` with optional
|
983 |
+
// `args`. Determines whether to execute a function as a constructor or as a
|
984 |
+
// normal function.
|
985 |
+
function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
|
986 |
+
if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
|
987 |
+
var self = baseCreate(sourceFunc.prototype);
|
988 |
+
var result = sourceFunc.apply(self, args);
|
989 |
+
if (isObject(result)) return result;
|
990 |
+
return self;
|
991 |
+
}
|
992 |
+
|
993 |
+
// Partially apply a function by creating a version that has had some of its
|
994 |
+
// arguments pre-filled, without changing its dynamic `this` context. `_` acts
|
995 |
+
// as a placeholder by default, allowing any combination of arguments to be
|
996 |
+
// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.
|
997 |
+
var partial = restArguments(function(func, boundArgs) {
|
998 |
+
var placeholder = partial.placeholder;
|
999 |
+
var bound = function() {
|
1000 |
+
var position = 0, length = boundArgs.length;
|
1001 |
+
var args = Array(length);
|
1002 |
+
for (var i = 0; i < length; i++) {
|
1003 |
+
args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];
|
1004 |
+
}
|
1005 |
+
while (position < arguments.length) args.push(arguments[position++]);
|
1006 |
+
return executeBound(func, bound, this, this, args);
|
1007 |
+
};
|
1008 |
+
return bound;
|
1009 |
+
});
|
1010 |
+
|
1011 |
+
partial.placeholder = _$1;
|
1012 |
+
|
1013 |
+
// Create a function bound to a given object (assigning `this`, and arguments,
|
1014 |
+
// optionally).
|
1015 |
+
var bind = restArguments(function(func, context, args) {
|
1016 |
+
if (!isFunction$1(func)) throw new TypeError('Bind must be called on a function');
|
1017 |
+
var bound = restArguments(function(callArgs) {
|
1018 |
+
return executeBound(func, bound, context, this, args.concat(callArgs));
|
1019 |
+
});
|
1020 |
+
return bound;
|
1021 |
+
});
|
1022 |
+
|
1023 |
+
// Internal helper for collection methods to determine whether a collection
|
1024 |
+
// should be iterated as an array or as an object.
|
1025 |
+
// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
|
1026 |
+
// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
|
1027 |
+
var isArrayLike = createSizePropertyCheck(getLength);
|
1028 |
+
|
1029 |
+
// Internal implementation of a recursive `flatten` function.
|
1030 |
+
function flatten$1(input, depth, strict, output) {
|
1031 |
+
output = output || [];
|
1032 |
+
if (!depth && depth !== 0) {
|
1033 |
+
depth = Infinity;
|
1034 |
+
} else if (depth <= 0) {
|
1035 |
+
return output.concat(input);
|
1036 |
+
}
|
1037 |
+
var idx = output.length;
|
1038 |
+
for (var i = 0, length = getLength(input); i < length; i++) {
|
1039 |
+
var value = input[i];
|
1040 |
+
if (isArrayLike(value) && (isArray(value) || isArguments$1(value))) {
|
1041 |
+
// Flatten current level of array or arguments object.
|
1042 |
+
if (depth > 1) {
|
1043 |
+
flatten$1(value, depth - 1, strict, output);
|
1044 |
+
idx = output.length;
|
1045 |
+
} else {
|
1046 |
+
var j = 0, len = value.length;
|
1047 |
+
while (j < len) output[idx++] = value[j++];
|
1048 |
+
}
|
1049 |
+
} else if (!strict) {
|
1050 |
+
output[idx++] = value;
|
1051 |
+
}
|
1052 |
+
}
|
1053 |
+
return output;
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
// Bind a number of an object's methods to that object. Remaining arguments
|
1057 |
+
// are the method names to be bound. Useful for ensuring that all callbacks
|
1058 |
+
// defined on an object belong to it.
|
1059 |
+
var bindAll = restArguments(function(obj, keys) {
|
1060 |
+
keys = flatten$1(keys, false, false);
|
1061 |
+
var index = keys.length;
|
1062 |
+
if (index < 1) throw new Error('bindAll must be passed function names');
|
1063 |
+
while (index--) {
|
1064 |
+
var key = keys[index];
|
1065 |
+
obj[key] = bind(obj[key], obj);
|
1066 |
+
}
|
1067 |
+
return obj;
|
1068 |
+
});
|
1069 |
+
|
1070 |
+
// Memoize an expensive function by storing its results.
|
1071 |
+
function memoize(func, hasher) {
|
1072 |
+
var memoize = function(key) {
|
1073 |
+
var cache = memoize.cache;
|
1074 |
+
var address = '' + (hasher ? hasher.apply(this, arguments) : key);
|
1075 |
+
if (!has$1(cache, address)) cache[address] = func.apply(this, arguments);
|
1076 |
+
return cache[address];
|
1077 |
+
};
|
1078 |
+
memoize.cache = {};
|
1079 |
+
return memoize;
|
1080 |
+
}
|
1081 |
+
|
1082 |
+
// Delays a function for the given number of milliseconds, and then calls
|
1083 |
+
// it with the arguments supplied.
|
1084 |
+
var delay = restArguments(function(func, wait, args) {
|
1085 |
+
return setTimeout(function() {
|
1086 |
+
return func.apply(null, args);
|
1087 |
+
}, wait);
|
1088 |
+
});
|
1089 |
+
|
1090 |
+
// Defers a function, scheduling it to run after the current call stack has
|
1091 |
+
// cleared.
|
1092 |
+
var defer = partial(delay, _$1, 1);
|
1093 |
+
|
1094 |
+
// Returns a function, that, when invoked, will only be triggered at most once
|
1095 |
+
// during a given window of time. Normally, the throttled function will run
|
1096 |
+
// as much as it can, without ever going more than once per `wait` duration;
|
1097 |
+
// but if you'd like to disable the execution on the leading edge, pass
|
1098 |
+
// `{leading: false}`. To disable execution on the trailing edge, ditto.
|
1099 |
+
function throttle(func, wait, options) {
|
1100 |
+
var timeout, context, args, result;
|
1101 |
+
var previous = 0;
|
1102 |
+
if (!options) options = {};
|
1103 |
+
|
1104 |
+
var later = function() {
|
1105 |
+
previous = options.leading === false ? 0 : now();
|
1106 |
+
timeout = null;
|
1107 |
+
result = func.apply(context, args);
|
1108 |
+
if (!timeout) context = args = null;
|
1109 |
+
};
|
1110 |
+
|
1111 |
+
var throttled = function() {
|
1112 |
+
var _now = now();
|
1113 |
+
if (!previous && options.leading === false) previous = _now;
|
1114 |
+
var remaining = wait - (_now - previous);
|
1115 |
+
context = this;
|
1116 |
+
args = arguments;
|
1117 |
+
if (remaining <= 0 || remaining > wait) {
|
1118 |
+
if (timeout) {
|
1119 |
+
clearTimeout(timeout);
|
1120 |
+
timeout = null;
|
1121 |
+
}
|
1122 |
+
previous = _now;
|
1123 |
+
result = func.apply(context, args);
|
1124 |
+
if (!timeout) context = args = null;
|
1125 |
+
} else if (!timeout && options.trailing !== false) {
|
1126 |
+
timeout = setTimeout(later, remaining);
|
1127 |
+
}
|
1128 |
+
return result;
|
1129 |
+
};
|
1130 |
+
|
1131 |
+
throttled.cancel = function() {
|
1132 |
+
clearTimeout(timeout);
|
1133 |
+
previous = 0;
|
1134 |
+
timeout = context = args = null;
|
1135 |
+
};
|
1136 |
+
|
1137 |
+
return throttled;
|
1138 |
+
}
|
1139 |
+
|
1140 |
+
// When a sequence of calls of the returned function ends, the argument
|
1141 |
+
// function is triggered. The end of a sequence is defined by the `wait`
|
1142 |
+
// parameter. If `immediate` is passed, the argument function will be
|
1143 |
+
// triggered at the beginning of the sequence instead of at the end.
|
1144 |
+
function debounce(func, wait, immediate) {
|
1145 |
+
var timeout, previous, args, result, context;
|
1146 |
+
|
1147 |
+
var later = function() {
|
1148 |
+
var passed = now() - previous;
|
1149 |
+
if (wait > passed) {
|
1150 |
+
timeout = setTimeout(later, wait - passed);
|
1151 |
+
} else {
|
1152 |
+
timeout = null;
|
1153 |
+
if (!immediate) result = func.apply(context, args);
|
1154 |
+
// This check is needed because `func` can recursively invoke `debounced`.
|
1155 |
+
if (!timeout) args = context = null;
|
1156 |
+
}
|
1157 |
+
};
|
1158 |
+
|
1159 |
+
var debounced = restArguments(function(_args) {
|
1160 |
+
context = this;
|
1161 |
+
args = _args;
|
1162 |
+
previous = now();
|
1163 |
+
if (!timeout) {
|
1164 |
+
timeout = setTimeout(later, wait);
|
1165 |
+
if (immediate) result = func.apply(context, args);
|
1166 |
+
}
|
1167 |
+
return result;
|
1168 |
+
});
|
1169 |
+
|
1170 |
+
debounced.cancel = function() {
|
1171 |
+
clearTimeout(timeout);
|
1172 |
+
timeout = args = context = null;
|
1173 |
+
};
|
1174 |
+
|
1175 |
+
return debounced;
|
1176 |
+
}
|
1177 |
+
|
1178 |
+
// Returns the first function passed as an argument to the second,
|
1179 |
+
// allowing you to adjust arguments, run code before and after, and
|
1180 |
+
// conditionally execute the original function.
|
1181 |
+
function wrap(func, wrapper) {
|
1182 |
+
return partial(wrapper, func);
|
1183 |
+
}
|
1184 |
+
|
1185 |
+
// Returns a negated version of the passed-in predicate.
|
1186 |
+
function negate(predicate) {
|
1187 |
+
return function() {
|
1188 |
+
return !predicate.apply(this, arguments);
|
1189 |
+
};
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
// Returns a function that is the composition of a list of functions, each
|
1193 |
+
// consuming the return value of the function that follows.
|
1194 |
+
function compose() {
|
1195 |
+
var args = arguments;
|
1196 |
+
var start = args.length - 1;
|
1197 |
+
return function() {
|
1198 |
+
var i = start;
|
1199 |
+
var result = args[start].apply(this, arguments);
|
1200 |
+
while (i--) result = args[i].call(this, result);
|
1201 |
+
return result;
|
1202 |
+
};
|
1203 |
+
}
|
1204 |
+
|
1205 |
+
// Returns a function that will only be executed on and after the Nth call.
|
1206 |
+
function after(times, func) {
|
1207 |
+
return function() {
|
1208 |
+
if (--times < 1) {
|
1209 |
+
return func.apply(this, arguments);
|
1210 |
+
}
|
1211 |
+
};
|
1212 |
+
}
|
1213 |
+
|
1214 |
+
// Returns a function that will only be executed up to (but not including) the
|
1215 |
+
// Nth call.
|
1216 |
+
function before(times, func) {
|
1217 |
+
var memo;
|
1218 |
+
return function() {
|
1219 |
+
if (--times > 0) {
|
1220 |
+
memo = func.apply(this, arguments);
|
1221 |
+
}
|
1222 |
+
if (times <= 1) func = null;
|
1223 |
+
return memo;
|
1224 |
+
};
|
1225 |
+
}
|
1226 |
+
|
1227 |
+
// Returns a function that will be executed at most one time, no matter how
|
1228 |
+
// often you call it. Useful for lazy initialization.
|
1229 |
+
var once = partial(before, 2);
|
1230 |
+
|
1231 |
+
// Returns the first key on an object that passes a truth test.
|
1232 |
+
function findKey(obj, predicate, context) {
|
1233 |
+
predicate = cb(predicate, context);
|
1234 |
+
var _keys = keys(obj), key;
|
1235 |
+
for (var i = 0, length = _keys.length; i < length; i++) {
|
1236 |
+
key = _keys[i];
|
1237 |
+
if (predicate(obj[key], key, obj)) return key;
|
1238 |
+
}
|
1239 |
+
}
|
1240 |
+
|
1241 |
+
// Internal function to generate `_.findIndex` and `_.findLastIndex`.
|
1242 |
+
function createPredicateIndexFinder(dir) {
|
1243 |
+
return function(array, predicate, context) {
|
1244 |
+
predicate = cb(predicate, context);
|
1245 |
+
var length = getLength(array);
|
1246 |
+
var index = dir > 0 ? 0 : length - 1;
|
1247 |
+
for (; index >= 0 && index < length; index += dir) {
|
1248 |
+
if (predicate(array[index], index, array)) return index;
|
1249 |
+
}
|
1250 |
+
return -1;
|
1251 |
+
};
|
1252 |
+
}
|
1253 |
+
|
1254 |
+
// Returns the first index on an array-like that passes a truth test.
|
1255 |
+
var findIndex = createPredicateIndexFinder(1);
|
1256 |
+
|
1257 |
+
// Returns the last index on an array-like that passes a truth test.
|
1258 |
+
var findLastIndex = createPredicateIndexFinder(-1);
|
1259 |
+
|
1260 |
+
// Use a comparator function to figure out the smallest index at which
|
1261 |
+
// an object should be inserted so as to maintain order. Uses binary search.
|
1262 |
+
function sortedIndex(array, obj, iteratee, context) {
|
1263 |
+
iteratee = cb(iteratee, context, 1);
|
1264 |
+
var value = iteratee(obj);
|
1265 |
+
var low = 0, high = getLength(array);
|
1266 |
+
while (low < high) {
|
1267 |
+
var mid = Math.floor((low + high) / 2);
|
1268 |
+
if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
|
1269 |
+
}
|
1270 |
+
return low;
|
1271 |
+
}
|
1272 |
+
|
1273 |
+
// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.
|
1274 |
+
function createIndexFinder(dir, predicateFind, sortedIndex) {
|
1275 |
+
return function(array, item, idx) {
|
1276 |
+
var i = 0, length = getLength(array);
|
1277 |
+
if (typeof idx == 'number') {
|
1278 |
+
if (dir > 0) {
|
1279 |
+
i = idx >= 0 ? idx : Math.max(idx + length, i);
|
1280 |
+
} else {
|
1281 |
+
length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
|
1282 |
+
}
|
1283 |
+
} else if (sortedIndex && idx && length) {
|
1284 |
+
idx = sortedIndex(array, item);
|
1285 |
+
return array[idx] === item ? idx : -1;
|
1286 |
+
}
|
1287 |
+
if (item !== item) {
|
1288 |
+
idx = predicateFind(slice.call(array, i, length), isNaN$1);
|
1289 |
+
return idx >= 0 ? idx + i : -1;
|
1290 |
+
}
|
1291 |
+
for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
|
1292 |
+
if (array[idx] === item) return idx;
|
1293 |
+
}
|
1294 |
+
return -1;
|
1295 |
+
};
|
1296 |
+
}
|
1297 |
+
|
1298 |
+
// Return the position of the first occurrence of an item in an array,
|
1299 |
+
// or -1 if the item is not included in the array.
|
1300 |
+
// If the array is large and already in sort order, pass `true`
|
1301 |
+
// for **isSorted** to use binary search.
|
1302 |
+
var indexOf = createIndexFinder(1, findIndex, sortedIndex);
|
1303 |
+
|
1304 |
+
// Return the position of the last occurrence of an item in an array,
|
1305 |
+
// or -1 if the item is not included in the array.
|
1306 |
+
var lastIndexOf = createIndexFinder(-1, findLastIndex);
|
1307 |
+
|
1308 |
+
// Return the first value which passes a truth test.
|
1309 |
+
function find(obj, predicate, context) {
|
1310 |
+
var keyFinder = isArrayLike(obj) ? findIndex : findKey;
|
1311 |
+
var key = keyFinder(obj, predicate, context);
|
1312 |
+
if (key !== void 0 && key !== -1) return obj[key];
|
1313 |
+
}
|
1314 |
+
|
1315 |
+
// Convenience version of a common use case of `_.find`: getting the first
|
1316 |
+
// object containing specific `key:value` pairs.
|
1317 |
+
function findWhere(obj, attrs) {
|
1318 |
+
return find(obj, matcher(attrs));
|
1319 |
+
}
|
1320 |
+
|
1321 |
+
// The cornerstone for collection functions, an `each`
|
1322 |
+
// implementation, aka `forEach`.
|
1323 |
+
// Handles raw objects in addition to array-likes. Treats all
|
1324 |
+
// sparse array-likes as if they were dense.
|
1325 |
+
function each(obj, iteratee, context) {
|
1326 |
+
iteratee = optimizeCb(iteratee, context);
|
1327 |
+
var i, length;
|
1328 |
+
if (isArrayLike(obj)) {
|
1329 |
+
for (i = 0, length = obj.length; i < length; i++) {
|
1330 |
+
iteratee(obj[i], i, obj);
|
1331 |
+
}
|
1332 |
+
} else {
|
1333 |
+
var _keys = keys(obj);
|
1334 |
+
for (i = 0, length = _keys.length; i < length; i++) {
|
1335 |
+
iteratee(obj[_keys[i]], _keys[i], obj);
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
+
return obj;
|
1339 |
+
}
|
1340 |
+
|
1341 |
+
// Return the results of applying the iteratee to each element.
|
1342 |
+
function map(obj, iteratee, context) {
|
1343 |
+
iteratee = cb(iteratee, context);
|
1344 |
+
var _keys = !isArrayLike(obj) && keys(obj),
|
1345 |
+
length = (_keys || obj).length,
|
1346 |
+
results = Array(length);
|
1347 |
+
for (var index = 0; index < length; index++) {
|
1348 |
+
var currentKey = _keys ? _keys[index] : index;
|
1349 |
+
results[index] = iteratee(obj[currentKey], currentKey, obj);
|
1350 |
+
}
|
1351 |
+
return results;
|
1352 |
+
}
|
1353 |
+
|
1354 |
+
// Internal helper to create a reducing function, iterating left or right.
|
1355 |
+
function createReduce(dir) {
|
1356 |
+
// Wrap code that reassigns argument variables in a separate function than
|
1357 |
+
// the one that accesses `arguments.length` to avoid a perf hit. (#1991)
|
1358 |
+
var reducer = function(obj, iteratee, memo, initial) {
|
1359 |
+
var _keys = !isArrayLike(obj) && keys(obj),
|
1360 |
+
length = (_keys || obj).length,
|
1361 |
+
index = dir > 0 ? 0 : length - 1;
|
1362 |
+
if (!initial) {
|
1363 |
+
memo = obj[_keys ? _keys[index] : index];
|
1364 |
+
index += dir;
|
1365 |
+
}
|
1366 |
+
for (; index >= 0 && index < length; index += dir) {
|
1367 |
+
var currentKey = _keys ? _keys[index] : index;
|
1368 |
+
memo = iteratee(memo, obj[currentKey], currentKey, obj);
|
1369 |
+
}
|
1370 |
+
return memo;
|
1371 |
+
};
|
1372 |
+
|
1373 |
+
return function(obj, iteratee, memo, context) {
|
1374 |
+
var initial = arguments.length >= 3;
|
1375 |
+
return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);
|
1376 |
+
};
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
// **Reduce** builds up a single result from a list of values, aka `inject`,
|
1380 |
+
// or `foldl`.
|
1381 |
+
var reduce = createReduce(1);
|
1382 |
+
|
1383 |
+
// The right-associative version of reduce, also known as `foldr`.
|
1384 |
+
var reduceRight = createReduce(-1);
|
1385 |
+
|
1386 |
+
// Return all the elements that pass a truth test.
|
1387 |
+
function filter(obj, predicate, context) {
|
1388 |
+
var results = [];
|
1389 |
+
predicate = cb(predicate, context);
|
1390 |
+
each(obj, function(value, index, list) {
|
1391 |
+
if (predicate(value, index, list)) results.push(value);
|
1392 |
+
});
|
1393 |
+
return results;
|
1394 |
+
}
|
1395 |
+
|
1396 |
+
// Return all the elements for which a truth test fails.
|
1397 |
+
function reject(obj, predicate, context) {
|
1398 |
+
return filter(obj, negate(cb(predicate)), context);
|
1399 |
+
}
|
1400 |
+
|
1401 |
+
// Determine whether all of the elements pass a truth test.
|
1402 |
+
function every(obj, predicate, context) {
|
1403 |
+
predicate = cb(predicate, context);
|
1404 |
+
var _keys = !isArrayLike(obj) && keys(obj),
|
1405 |
+
length = (_keys || obj).length;
|
1406 |
+
for (var index = 0; index < length; index++) {
|
1407 |
+
var currentKey = _keys ? _keys[index] : index;
|
1408 |
+
if (!predicate(obj[currentKey], currentKey, obj)) return false;
|
1409 |
+
}
|
1410 |
+
return true;
|
1411 |
+
}
|
1412 |
+
|
1413 |
+
// Determine if at least one element in the object passes a truth test.
|
1414 |
+
function some(obj, predicate, context) {
|
1415 |
+
predicate = cb(predicate, context);
|
1416 |
+
var _keys = !isArrayLike(obj) && keys(obj),
|
1417 |
+
length = (_keys || obj).length;
|
1418 |
+
for (var index = 0; index < length; index++) {
|
1419 |
+
var currentKey = _keys ? _keys[index] : index;
|
1420 |
+
if (predicate(obj[currentKey], currentKey, obj)) return true;
|
1421 |
+
}
|
1422 |
+
return false;
|
1423 |
+
}
|
1424 |
+
|
1425 |
+
// Determine if the array or object contains a given item (using `===`).
|
1426 |
+
function contains(obj, item, fromIndex, guard) {
|
1427 |
+
if (!isArrayLike(obj)) obj = values(obj);
|
1428 |
+
if (typeof fromIndex != 'number' || guard) fromIndex = 0;
|
1429 |
+
return indexOf(obj, item, fromIndex) >= 0;
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
// Invoke a method (with arguments) on every item in a collection.
|
1433 |
+
var invoke = restArguments(function(obj, path, args) {
|
1434 |
+
var contextPath, func;
|
1435 |
+
if (isFunction$1(path)) {
|
1436 |
+
func = path;
|
1437 |
+
} else {
|
1438 |
+
path = toPath(path);
|
1439 |
+
contextPath = path.slice(0, -1);
|
1440 |
+
path = path[path.length - 1];
|
1441 |
+
}
|
1442 |
+
return map(obj, function(context) {
|
1443 |
+
var method = func;
|
1444 |
+
if (!method) {
|
1445 |
+
if (contextPath && contextPath.length) {
|
1446 |
+
context = deepGet(context, contextPath);
|
1447 |
+
}
|
1448 |
+
if (context == null) return void 0;
|
1449 |
+
method = context[path];
|
1450 |
+
}
|
1451 |
+
return method == null ? method : method.apply(context, args);
|
1452 |
+
});
|
1453 |
+
});
|
1454 |
+
|
1455 |
+
// Convenience version of a common use case of `_.map`: fetching a property.
|
1456 |
+
function pluck(obj, key) {
|
1457 |
+
return map(obj, property(key));
|
1458 |
+
}
|
1459 |
+
|
1460 |
+
// Convenience version of a common use case of `_.filter`: selecting only
|
1461 |
+
// objects containing specific `key:value` pairs.
|
1462 |
+
function where(obj, attrs) {
|
1463 |
+
return filter(obj, matcher(attrs));
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
// Return the maximum element (or element-based computation).
|
1467 |
+
function max(obj, iteratee, context) {
|
1468 |
+
var result = -Infinity, lastComputed = -Infinity,
|
1469 |
+
value, computed;
|
1470 |
+
if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {
|
1471 |
+
obj = isArrayLike(obj) ? obj : values(obj);
|
1472 |
+
for (var i = 0, length = obj.length; i < length; i++) {
|
1473 |
+
value = obj[i];
|
1474 |
+
if (value != null && value > result) {
|
1475 |
+
result = value;
|
1476 |
+
}
|
1477 |
+
}
|
1478 |
+
} else {
|
1479 |
+
iteratee = cb(iteratee, context);
|
1480 |
+
each(obj, function(v, index, list) {
|
1481 |
+
computed = iteratee(v, index, list);
|
1482 |
+
if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
|
1483 |
+
result = v;
|
1484 |
+
lastComputed = computed;
|
1485 |
+
}
|
1486 |
+
});
|
1487 |
+
}
|
1488 |
+
return result;
|
1489 |
+
}
|
1490 |
+
|
1491 |
+
// Return the minimum element (or element-based computation).
|
1492 |
+
function min(obj, iteratee, context) {
|
1493 |
+
var result = Infinity, lastComputed = Infinity,
|
1494 |
+
value, computed;
|
1495 |
+
if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {
|
1496 |
+
obj = isArrayLike(obj) ? obj : values(obj);
|
1497 |
+
for (var i = 0, length = obj.length; i < length; i++) {
|
1498 |
+
value = obj[i];
|
1499 |
+
if (value != null && value < result) {
|
1500 |
+
result = value;
|
1501 |
+
}
|
1502 |
+
}
|
1503 |
+
} else {
|
1504 |
+
iteratee = cb(iteratee, context);
|
1505 |
+
each(obj, function(v, index, list) {
|
1506 |
+
computed = iteratee(v, index, list);
|
1507 |
+
if (computed < lastComputed || computed === Infinity && result === Infinity) {
|
1508 |
+
result = v;
|
1509 |
+
lastComputed = computed;
|
1510 |
+
}
|
1511 |
+
});
|
1512 |
+
}
|
1513 |
+
return result;
|
1514 |
+
}
|
1515 |
+
|
1516 |
+
// Sample **n** random values from a collection using the modern version of the
|
1517 |
+
// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
|
1518 |
+
// If **n** is not specified, returns a single random element.
|
1519 |
+
// The internal `guard` argument allows it to work with `_.map`.
|
1520 |
+
function sample(obj, n, guard) {
|
1521 |
+
if (n == null || guard) {
|
1522 |
+
if (!isArrayLike(obj)) obj = values(obj);
|
1523 |
+
return obj[random(obj.length - 1)];
|
1524 |
+
}
|
1525 |
+
var sample = isArrayLike(obj) ? clone(obj) : values(obj);
|
1526 |
+
var length = getLength(sample);
|
1527 |
+
n = Math.max(Math.min(n, length), 0);
|
1528 |
+
var last = length - 1;
|
1529 |
+
for (var index = 0; index < n; index++) {
|
1530 |
+
var rand = random(index, last);
|
1531 |
+
var temp = sample[index];
|
1532 |
+
sample[index] = sample[rand];
|
1533 |
+
sample[rand] = temp;
|
1534 |
+
}
|
1535 |
+
return sample.slice(0, n);
|
1536 |
+
}
|
1537 |
+
|
1538 |
+
// Shuffle a collection.
|
1539 |
+
function shuffle(obj) {
|
1540 |
+
return sample(obj, Infinity);
|
1541 |
+
}
|
1542 |
+
|
1543 |
+
// Sort the object's values by a criterion produced by an iteratee.
|
1544 |
+
function sortBy(obj, iteratee, context) {
|
1545 |
+
var index = 0;
|
1546 |
+
iteratee = cb(iteratee, context);
|
1547 |
+
return pluck(map(obj, function(value, key, list) {
|
1548 |
+
return {
|
1549 |
+
value: value,
|
1550 |
+
index: index++,
|
1551 |
+
criteria: iteratee(value, key, list)
|
1552 |
+
};
|
1553 |
+
}).sort(function(left, right) {
|
1554 |
+
var a = left.criteria;
|
1555 |
+
var b = right.criteria;
|
1556 |
+
if (a !== b) {
|
1557 |
+
if (a > b || a === void 0) return 1;
|
1558 |
+
if (a < b || b === void 0) return -1;
|
1559 |
+
}
|
1560 |
+
return left.index - right.index;
|
1561 |
+
}), 'value');
|
1562 |
+
}
|
1563 |
+
|
1564 |
+
// An internal function used for aggregate "group by" operations.
|
1565 |
+
function group(behavior, partition) {
|
1566 |
+
return function(obj, iteratee, context) {
|
1567 |
+
var result = partition ? [[], []] : {};
|
1568 |
+
iteratee = cb(iteratee, context);
|
1569 |
+
each(obj, function(value, index) {
|
1570 |
+
var key = iteratee(value, index, obj);
|
1571 |
+
behavior(result, value, key);
|
1572 |
+
});
|
1573 |
+
return result;
|
1574 |
+
};
|
1575 |
+
}
|
1576 |
+
|
1577 |
+
// Groups the object's values by a criterion. Pass either a string attribute
|
1578 |
+
// to group by, or a function that returns the criterion.
|
1579 |
+
var groupBy = group(function(result, value, key) {
|
1580 |
+
if (has$1(result, key)) result[key].push(value); else result[key] = [value];
|
1581 |
+
});
|
1582 |
+
|
1583 |
+
// Indexes the object's values by a criterion, similar to `_.groupBy`, but for
|
1584 |
+
// when you know that your index values will be unique.
|
1585 |
+
var indexBy = group(function(result, value, key) {
|
1586 |
+
result[key] = value;
|
1587 |
+
});
|
1588 |
+
|
1589 |
+
// Counts instances of an object that group by a certain criterion. Pass
|
1590 |
+
// either a string attribute to count by, or a function that returns the
|
1591 |
+
// criterion.
|
1592 |
+
var countBy = group(function(result, value, key) {
|
1593 |
+
if (has$1(result, key)) result[key]++; else result[key] = 1;
|
1594 |
+
});
|
1595 |
+
|
1596 |
+
// Split a collection into two arrays: one whose elements all pass the given
|
1597 |
+
// truth test, and one whose elements all do not pass the truth test.
|
1598 |
+
var partition = group(function(result, value, pass) {
|
1599 |
+
result[pass ? 0 : 1].push(value);
|
1600 |
+
}, true);
|
1601 |
+
|
1602 |
+
// Safely create a real, live array from anything iterable.
|
1603 |
+
var reStrSymbol = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
|
1604 |
+
function toArray(obj) {
|
1605 |
+
if (!obj) return [];
|
1606 |
+
if (isArray(obj)) return slice.call(obj);
|
1607 |
+
if (isString(obj)) {
|
1608 |
+
// Keep surrogate pair characters together.
|
1609 |
+
return obj.match(reStrSymbol);
|
1610 |
+
}
|
1611 |
+
if (isArrayLike(obj)) return map(obj, identity);
|
1612 |
+
return values(obj);
|
1613 |
+
}
|
1614 |
+
|
1615 |
+
// Return the number of elements in a collection.
|
1616 |
+
function size(obj) {
|
1617 |
+
if (obj == null) return 0;
|
1618 |
+
return isArrayLike(obj) ? obj.length : keys(obj).length;
|
1619 |
+
}
|
1620 |
+
|
1621 |
+
// Internal `_.pick` helper function to determine whether `key` is an enumerable
|
1622 |
+
// property name of `obj`.
|
1623 |
+
function keyInObj(value, key, obj) {
|
1624 |
+
return key in obj;
|
1625 |
+
}
|
1626 |
+
|
1627 |
+
// Return a copy of the object only containing the allowed properties.
|
1628 |
+
var pick = restArguments(function(obj, keys) {
|
1629 |
+
var result = {}, iteratee = keys[0];
|
1630 |
+
if (obj == null) return result;
|
1631 |
+
if (isFunction$1(iteratee)) {
|
1632 |
+
if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);
|
1633 |
+
keys = allKeys(obj);
|
1634 |
+
} else {
|
1635 |
+
iteratee = keyInObj;
|
1636 |
+
keys = flatten$1(keys, false, false);
|
1637 |
+
obj = Object(obj);
|
1638 |
+
}
|
1639 |
+
for (var i = 0, length = keys.length; i < length; i++) {
|
1640 |
+
var key = keys[i];
|
1641 |
+
var value = obj[key];
|
1642 |
+
if (iteratee(value, key, obj)) result[key] = value;
|
1643 |
+
}
|
1644 |
+
return result;
|
1645 |
+
});
|
1646 |
+
|
1647 |
+
// Return a copy of the object without the disallowed properties.
|
1648 |
+
var omit = restArguments(function(obj, keys) {
|
1649 |
+
var iteratee = keys[0], context;
|
1650 |
+
if (isFunction$1(iteratee)) {
|
1651 |
+
iteratee = negate(iteratee);
|
1652 |
+
if (keys.length > 1) context = keys[1];
|
1653 |
+
} else {
|
1654 |
+
keys = map(flatten$1(keys, false, false), String);
|
1655 |
+
iteratee = function(value, key) {
|
1656 |
+
return !contains(keys, key);
|
1657 |
+
};
|
1658 |
+
}
|
1659 |
+
return pick(obj, iteratee, context);
|
1660 |
+
});
|
1661 |
+
|
1662 |
+
// Returns everything but the last entry of the array. Especially useful on
|
1663 |
+
// the arguments object. Passing **n** will return all the values in
|
1664 |
+
// the array, excluding the last N.
|
1665 |
+
function initial(array, n, guard) {
|
1666 |
+
return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
|
1667 |
+
}
|
1668 |
+
|
1669 |
+
// Get the first element of an array. Passing **n** will return the first N
|
1670 |
+
// values in the array. The **guard** check allows it to work with `_.map`.
|
1671 |
+
function first(array, n, guard) {
|
1672 |
+
if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
|
1673 |
+
if (n == null || guard) return array[0];
|
1674 |
+
return initial(array, array.length - n);
|
1675 |
+
}
|
1676 |
+
|
1677 |
+
// Returns everything but the first entry of the `array`. Especially useful on
|
1678 |
+
// the `arguments` object. Passing an **n** will return the rest N values in the
|
1679 |
+
// `array`.
|
1680 |
+
function rest(array, n, guard) {
|
1681 |
+
return slice.call(array, n == null || guard ? 1 : n);
|
1682 |
+
}
|
1683 |
+
|
1684 |
+
// Get the last element of an array. Passing **n** will return the last N
|
1685 |
+
// values in the array.
|
1686 |
+
function last(array, n, guard) {
|
1687 |
+
if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
|
1688 |
+
if (n == null || guard) return array[array.length - 1];
|
1689 |
+
return rest(array, Math.max(0, array.length - n));
|
1690 |
+
}
|
1691 |
+
|
1692 |
+
// Trim out all falsy values from an array.
|
1693 |
+
function compact(array) {
|
1694 |
+
return filter(array, Boolean);
|
1695 |
+
}
|
1696 |
+
|
1697 |
+
// Flatten out an array, either recursively (by default), or up to `depth`.
|
1698 |
+
// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
|
1699 |
+
function flatten(array, depth) {
|
1700 |
+
return flatten$1(array, depth, false);
|
1701 |
+
}
|
1702 |
+
|
1703 |
+
// Take the difference between one array and a number of other arrays.
|
1704 |
+
// Only the elements present in just the first array will remain.
|
1705 |
+
var difference = restArguments(function(array, rest) {
|
1706 |
+
rest = flatten$1(rest, true, true);
|
1707 |
+
return filter(array, function(value){
|
1708 |
+
return !contains(rest, value);
|
1709 |
+
});
|
1710 |
+
});
|
1711 |
+
|
1712 |
+
// Return a version of the array that does not contain the specified value(s).
|
1713 |
+
var without = restArguments(function(array, otherArrays) {
|
1714 |
+
return difference(array, otherArrays);
|
1715 |
+
});
|
1716 |
+
|
1717 |
+
// Produce a duplicate-free version of the array. If the array has already
|
1718 |
+
// been sorted, you have the option of using a faster algorithm.
|
1719 |
+
// The faster algorithm will not work with an iteratee if the iteratee
|
1720 |
+
// is not a one-to-one function, so providing an iteratee will disable
|
1721 |
+
// the faster algorithm.
|
1722 |
+
function uniq(array, isSorted, iteratee, context) {
|
1723 |
+
if (!isBoolean(isSorted)) {
|
1724 |
+
context = iteratee;
|
1725 |
+
iteratee = isSorted;
|
1726 |
+
isSorted = false;
|
1727 |
+
}
|
1728 |
+
if (iteratee != null) iteratee = cb(iteratee, context);
|
1729 |
+
var result = [];
|
1730 |
+
var seen = [];
|
1731 |
+
for (var i = 0, length = getLength(array); i < length; i++) {
|
1732 |
+
var value = array[i],
|
1733 |
+
computed = iteratee ? iteratee(value, i, array) : value;
|
1734 |
+
if (isSorted && !iteratee) {
|
1735 |
+
if (!i || seen !== computed) result.push(value);
|
1736 |
+
seen = computed;
|
1737 |
+
} else if (iteratee) {
|
1738 |
+
if (!contains(seen, computed)) {
|
1739 |
+
seen.push(computed);
|
1740 |
+
result.push(value);
|
1741 |
+
}
|
1742 |
+
} else if (!contains(result, value)) {
|
1743 |
+
result.push(value);
|
1744 |
+
}
|
1745 |
+
}
|
1746 |
+
return result;
|
1747 |
+
}
|
1748 |
+
|
1749 |
+
// Produce an array that contains the union: each distinct element from all of
|
1750 |
+
// the passed-in arrays.
|
1751 |
+
var union = restArguments(function(arrays) {
|
1752 |
+
return uniq(flatten$1(arrays, true, true));
|
1753 |
+
});
|
1754 |
+
|
1755 |
+
// Produce an array that contains every item shared between all the
|
1756 |
+
// passed-in arrays.
|
1757 |
+
function intersection(array) {
|
1758 |
+
var result = [];
|
1759 |
+
var argsLength = arguments.length;
|
1760 |
+
for (var i = 0, length = getLength(array); i < length; i++) {
|
1761 |
+
var item = array[i];
|
1762 |
+
if (contains(result, item)) continue;
|
1763 |
+
var j;
|
1764 |
+
for (j = 1; j < argsLength; j++) {
|
1765 |
+
if (!contains(arguments[j], item)) break;
|
1766 |
+
}
|
1767 |
+
if (j === argsLength) result.push(item);
|
1768 |
+
}
|
1769 |
+
return result;
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
// Complement of zip. Unzip accepts an array of arrays and groups
|
1773 |
+
// each array's elements on shared indices.
|
1774 |
+
function unzip(array) {
|
1775 |
+
var length = array && max(array, getLength).length || 0;
|
1776 |
+
var result = Array(length);
|
1777 |
+
|
1778 |
+
for (var index = 0; index < length; index++) {
|
1779 |
+
result[index] = pluck(array, index);
|
1780 |
+
}
|
1781 |
+
return result;
|
1782 |
+
}
|
1783 |
+
|
1784 |
+
// Zip together multiple lists into a single array -- elements that share
|
1785 |
+
// an index go together.
|
1786 |
+
var zip = restArguments(unzip);
|
1787 |
+
|
1788 |
+
// Converts lists into objects. Pass either a single array of `[key, value]`
|
1789 |
+
// pairs, or two parallel arrays of the same length -- one of keys, and one of
|
1790 |
+
// the corresponding values. Passing by pairs is the reverse of `_.pairs`.
|
1791 |
+
function object(list, values) {
|
1792 |
+
var result = {};
|
1793 |
+
for (var i = 0, length = getLength(list); i < length; i++) {
|
1794 |
+
if (values) {
|
1795 |
+
result[list[i]] = values[i];
|
1796 |
+
} else {
|
1797 |
+
result[list[i][0]] = list[i][1];
|
1798 |
+
}
|
1799 |
+
}
|
1800 |
+
return result;
|
1801 |
+
}
|
1802 |
+
|
1803 |
+
// Generate an integer Array containing an arithmetic progression. A port of
|
1804 |
+
// the native Python `range()` function. See
|
1805 |
+
// [the Python documentation](https://docs.python.org/library/functions.html#range).
|
1806 |
+
function range(start, stop, step) {
|
1807 |
+
if (stop == null) {
|
1808 |
+
stop = start || 0;
|
1809 |
+
start = 0;
|
1810 |
+
}
|
1811 |
+
if (!step) {
|
1812 |
+
step = stop < start ? -1 : 1;
|
1813 |
+
}
|
1814 |
+
|
1815 |
+
var length = Math.max(Math.ceil((stop - start) / step), 0);
|
1816 |
+
var range = Array(length);
|
1817 |
+
|
1818 |
+
for (var idx = 0; idx < length; idx++, start += step) {
|
1819 |
+
range[idx] = start;
|
1820 |
+
}
|
1821 |
+
|
1822 |
+
return range;
|
1823 |
+
}
|
1824 |
+
|
1825 |
+
// Chunk a single array into multiple arrays, each containing `count` or fewer
|
1826 |
+
// items.
|
1827 |
+
function chunk(array, count) {
|
1828 |
+
if (count == null || count < 1) return [];
|
1829 |
+
var result = [];
|
1830 |
+
var i = 0, length = array.length;
|
1831 |
+
while (i < length) {
|
1832 |
+
result.push(slice.call(array, i, i += count));
|
1833 |
+
}
|
1834 |
+
return result;
|
1835 |
+
}
|
1836 |
+
|
1837 |
+
// Helper function to continue chaining intermediate results.
|
1838 |
+
function chainResult(instance, obj) {
|
1839 |
+
return instance._chain ? _$1(obj).chain() : obj;
|
1840 |
+
}
|
1841 |
+
|
1842 |
+
// Add your own custom functions to the Underscore object.
|
1843 |
+
function mixin(obj) {
|
1844 |
+
each(functions(obj), function(name) {
|
1845 |
+
var func = _$1[name] = obj[name];
|
1846 |
+
_$1.prototype[name] = function() {
|
1847 |
+
var args = [this._wrapped];
|
1848 |
+
push.apply(args, arguments);
|
1849 |
+
return chainResult(this, func.apply(_$1, args));
|
1850 |
+
};
|
1851 |
+
});
|
1852 |
+
return _$1;
|
1853 |
+
}
|
1854 |
+
|
1855 |
+
// Add all mutator `Array` functions to the wrapper.
|
1856 |
+
each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
|
1857 |
+
var method = ArrayProto[name];
|
1858 |
+
_$1.prototype[name] = function() {
|
1859 |
+
var obj = this._wrapped;
|
1860 |
+
if (obj != null) {
|
1861 |
+
method.apply(obj, arguments);
|
1862 |
+
if ((name === 'shift' || name === 'splice') && obj.length === 0) {
|
1863 |
+
delete obj[0];
|
1864 |
+
}
|
1865 |
+
}
|
1866 |
+
return chainResult(this, obj);
|
1867 |
+
};
|
1868 |
+
});
|
1869 |
+
|
1870 |
+
// Add all accessor `Array` functions to the wrapper.
|
1871 |
+
each(['concat', 'join', 'slice'], function(name) {
|
1872 |
+
var method = ArrayProto[name];
|
1873 |
+
_$1.prototype[name] = function() {
|
1874 |
+
var obj = this._wrapped;
|
1875 |
+
if (obj != null) obj = method.apply(obj, arguments);
|
1876 |
+
return chainResult(this, obj);
|
1877 |
+
};
|
1878 |
+
});
|
1879 |
+
|
1880 |
+
// Named Exports
|
1881 |
+
|
1882 |
+
var allExports = {
|
1883 |
+
__proto__: null,
|
1884 |
+
VERSION: VERSION,
|
1885 |
+
restArguments: restArguments,
|
1886 |
+
isObject: isObject,
|
1887 |
+
isNull: isNull,
|
1888 |
+
isUndefined: isUndefined,
|
1889 |
+
isBoolean: isBoolean,
|
1890 |
+
isElement: isElement,
|
1891 |
+
isString: isString,
|
1892 |
+
isNumber: isNumber,
|
1893 |
+
isDate: isDate,
|
1894 |
+
isRegExp: isRegExp,
|
1895 |
+
isError: isError,
|
1896 |
+
isSymbol: isSymbol,
|
1897 |
+
isArrayBuffer: isArrayBuffer,
|
1898 |
+
isDataView: isDataView$1,
|
1899 |
+
isArray: isArray,
|
1900 |
+
isFunction: isFunction$1,
|
1901 |
+
isArguments: isArguments$1,
|
1902 |
+
isFinite: isFinite$1,
|
1903 |
+
isNaN: isNaN$1,
|
1904 |
+
isTypedArray: isTypedArray$1,
|
1905 |
+
isEmpty: isEmpty,
|
1906 |
+
isMatch: isMatch,
|
1907 |
+
isEqual: isEqual,
|
1908 |
+
isMap: isMap,
|
1909 |
+
isWeakMap: isWeakMap,
|
1910 |
+
isSet: isSet,
|
1911 |
+
isWeakSet: isWeakSet,
|
1912 |
+
keys: keys,
|
1913 |
+
allKeys: allKeys,
|
1914 |
+
values: values,
|
1915 |
+
pairs: pairs,
|
1916 |
+
invert: invert,
|
1917 |
+
functions: functions,
|
1918 |
+
methods: functions,
|
1919 |
+
extend: extend,
|
1920 |
+
extendOwn: extendOwn,
|
1921 |
+
assign: extendOwn,
|
1922 |
+
defaults: defaults,
|
1923 |
+
create: create,
|
1924 |
+
clone: clone,
|
1925 |
+
tap: tap,
|
1926 |
+
get: get,
|
1927 |
+
has: has,
|
1928 |
+
mapObject: mapObject,
|
1929 |
+
identity: identity,
|
1930 |
+
constant: constant,
|
1931 |
+
noop: noop,
|
1932 |
+
toPath: toPath$1,
|
1933 |
+
property: property,
|
1934 |
+
propertyOf: propertyOf,
|
1935 |
+
matcher: matcher,
|
1936 |
+
matches: matcher,
|
1937 |
+
times: times,
|
1938 |
+
random: random,
|
1939 |
+
now: now,
|
1940 |
+
escape: _escape,
|
1941 |
+
unescape: _unescape,
|
1942 |
+
templateSettings: templateSettings,
|
1943 |
+
template: template,
|
1944 |
+
result: result,
|
1945 |
+
uniqueId: uniqueId,
|
1946 |
+
chain: chain,
|
1947 |
+
iteratee: iteratee,
|
1948 |
+
partial: partial,
|
1949 |
+
bind: bind,
|
1950 |
+
bindAll: bindAll,
|
1951 |
+
memoize: memoize,
|
1952 |
+
delay: delay,
|
1953 |
+
defer: defer,
|
1954 |
+
throttle: throttle,
|
1955 |
+
debounce: debounce,
|
1956 |
+
wrap: wrap,
|
1957 |
+
negate: negate,
|
1958 |
+
compose: compose,
|
1959 |
+
after: after,
|
1960 |
+
before: before,
|
1961 |
+
once: once,
|
1962 |
+
findKey: findKey,
|
1963 |
+
findIndex: findIndex,
|
1964 |
+
findLastIndex: findLastIndex,
|
1965 |
+
sortedIndex: sortedIndex,
|
1966 |
+
indexOf: indexOf,
|
1967 |
+
lastIndexOf: lastIndexOf,
|
1968 |
+
find: find,
|
1969 |
+
detect: find,
|
1970 |
+
findWhere: findWhere,
|
1971 |
+
each: each,
|
1972 |
+
forEach: each,
|
1973 |
+
map: map,
|
1974 |
+
collect: map,
|
1975 |
+
reduce: reduce,
|
1976 |
+
foldl: reduce,
|
1977 |
+
inject: reduce,
|
1978 |
+
reduceRight: reduceRight,
|
1979 |
+
foldr: reduceRight,
|
1980 |
+
filter: filter,
|
1981 |
+
select: filter,
|
1982 |
+
reject: reject,
|
1983 |
+
every: every,
|
1984 |
+
all: every,
|
1985 |
+
some: some,
|
1986 |
+
any: some,
|
1987 |
+
contains: contains,
|
1988 |
+
includes: contains,
|
1989 |
+
include: contains,
|
1990 |
+
invoke: invoke,
|
1991 |
+
pluck: pluck,
|
1992 |
+
where: where,
|
1993 |
+
max: max,
|
1994 |
+
min: min,
|
1995 |
+
shuffle: shuffle,
|
1996 |
+
sample: sample,
|
1997 |
+
sortBy: sortBy,
|
1998 |
+
groupBy: groupBy,
|
1999 |
+
indexBy: indexBy,
|
2000 |
+
countBy: countBy,
|
2001 |
+
partition: partition,
|
2002 |
+
toArray: toArray,
|
2003 |
+
size: size,
|
2004 |
+
pick: pick,
|
2005 |
+
omit: omit,
|
2006 |
+
first: first,
|
2007 |
+
head: first,
|
2008 |
+
take: first,
|
2009 |
+
initial: initial,
|
2010 |
+
last: last,
|
2011 |
+
rest: rest,
|
2012 |
+
tail: rest,
|
2013 |
+
drop: rest,
|
2014 |
+
compact: compact,
|
2015 |
+
flatten: flatten,
|
2016 |
+
without: without,
|
2017 |
+
uniq: uniq,
|
2018 |
+
unique: uniq,
|
2019 |
+
union: union,
|
2020 |
+
intersection: intersection,
|
2021 |
+
difference: difference,
|
2022 |
+
unzip: unzip,
|
2023 |
+
transpose: unzip,
|
2024 |
+
zip: zip,
|
2025 |
+
object: object,
|
2026 |
+
range: range,
|
2027 |
+
chunk: chunk,
|
2028 |
+
mixin: mixin,
|
2029 |
+
'default': _$1
|
2030 |
+
};
|
2031 |
+
|
2032 |
+
// Default Export
|
2033 |
+
|
2034 |
+
// Add all of the Underscore functions to the wrapper object.
|
2035 |
+
var _ = mixin(allExports);
|
2036 |
+
// Legacy Node.js API.
|
2037 |
+
_._ = _;
|
2038 |
+
|
2039 |
+
return _;
|
2040 |
+
|
2041 |
+
})));
|
2042 |
+
//# sourceMappingURL=underscore-umd.js.map
|
docs/build/html/_static/underscore.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){
|
2 |
+
// Underscore.js 1.13.1
|
3 |
+
// https://underscorejs.org
|
4 |
+
// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
5 |
+
// Underscore may be freely distributed under the MIT license.
|
6 |
+
var n="1.13.1",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},t=Array.prototype,e=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,o=t.push,i=t.slice,a=e.toString,f=e.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,l="undefined"!=typeof DataView,s=Array.isArray,p=Object.keys,v=Object.create,h=c&&ArrayBuffer.isView,y=isNaN,d=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],m=Math.pow(2,53)-1;function j(n,r){return r=null==r?n.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),e=Array(t),u=0;u<t;u++)e[u]=arguments[u+r];switch(r){case 0:return n.call(this,e);case 1:return n.call(this,arguments[0],e);case 2:return n.call(this,arguments[0],arguments[1],e)}var o=Array(r+1);for(u=0;u<r;u++)o[u]=arguments[u];return o[r]=e,n.apply(this,o)}}function _(n){var r=typeof n;return"function"===r||"object"===r&&!!n}function w(n){return void 0===n}function A(n){return!0===n||!1===n||"[object Boolean]"===a.call(n)}function x(n){var r="[object "+n+"]";return function(n){return a.call(n)===r}}var S=x("String"),O=x("Number"),M=x("Date"),E=x("RegExp"),B=x("Error"),N=x("Symbol"),I=x("ArrayBuffer"),T=x("Function"),k=r.document&&r.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof k&&(T=function(n){return"function"==typeof n||!1});var D=T,R=x("Object"),F=l&&R(new DataView(new ArrayBuffer(8))),V="undefined"!=typeof Map&&R(new Map),P=x("DataView");var q=F?function(n){return null!=n&&D(n.getInt8)&&I(n.buffer)}:P,U=s||x("Array");function W(n,r){return null!=n&&f.call(n,r)}var z=x("Arguments");!function(){z(arguments)||(z=function(n){return W(n,"callee")})}();var L=z;function $(n){return O(n)&&y(n)}function C(n){return function(){return n}}function K(n){return function(r){var t=n(r);return"number"==typeof t&&t>=0&&t<=m}}function J(n){return function(r){return null==r?void 0:r[n]}}var G=J("byteLength"),H=K(G),Q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var X=c?function(n){return h?h(n)&&!q(n):H(n)&&Q.test(a.call(n))}:C(!1),Y=J("length");function Z(n,r){r=function(n){for(var r={},t=n.length,e=0;e<t;++e)r[n[e]]=!0;return{contains:function(n){return r[n]},push:function(t){return r[t]=!0,n.push(t)}}}(r);var t=b.length,u=n.constructor,o=D(u)&&u.prototype||e,i="constructor";for(W(n,i)&&!r.contains(i)&&r.push(i);t--;)(i=b[t])in n&&n[i]!==o[i]&&!r.contains(i)&&r.push(i)}function nn(n){if(!_(n))return[];if(p)return p(n);var r=[];for(var t in n)W(n,t)&&r.push(t);return g&&Z(n,r),r}function rn(n,r){var t=nn(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function tn(n){return n instanceof tn?n:this instanceof tn?void(this._wrapped=n):new tn(n)}function en(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,G(n))}tn.VERSION=n,tn.prototype.value=function(){return this._wrapped},tn.prototype.valueOf=tn.prototype.toJSON=tn.prototype.value,tn.prototype.toString=function(){return String(this._wrapped)};var un="[object DataView]";function on(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;if(null==n||null==r)return!1;if(n!=n)return r!=r;var o=typeof n;return("function"===o||"object"===o||"object"==typeof r)&&function n(r,t,e,o){r instanceof tn&&(r=r._wrapped);t instanceof tn&&(t=t._wrapped);var i=a.call(r);if(i!==a.call(t))return!1;if(F&&"[object Object]"==i&&q(r)){if(!q(t))return!1;i=un}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return u.valueOf.call(r)===u.valueOf.call(t);case"[object ArrayBuffer]":case un:return n(en(r),en(t),e,o)}var f="[object Array]"===i;if(!f&&X(r)){if(G(r)!==G(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;f=!0}if(!f){if("object"!=typeof r||"object"!=typeof t)return!1;var c=r.constructor,l=t.constructor;if(c!==l&&!(D(c)&&c instanceof c&&D(l)&&l instanceof l)&&"constructor"in r&&"constructor"in t)return!1}o=o||[];var s=(e=e||[]).length;for(;s--;)if(e[s]===r)return o[s]===t;if(e.push(r),o.push(t),f){if((s=r.length)!==t.length)return!1;for(;s--;)if(!on(r[s],t[s],e,o))return!1}else{var p,v=nn(r);if(s=v.length,nn(t).length!==s)return!1;for(;s--;)if(p=v[s],!W(t,p)||!on(r[p],t[p],e,o))return!1}return e.pop(),o.pop(),!0}(n,r,t,e)}function an(n){if(!_(n))return[];var r=[];for(var t in n)r.push(t);return g&&Z(n,r),r}function fn(n){var r=Y(n);return function(t){if(null==t)return!1;var e=an(t);if(Y(e))return!1;for(var u=0;u<r;u++)if(!D(t[n[u]]))return!1;return n!==hn||!D(t[cn])}}var cn="forEach",ln="has",sn=["clear","delete"],pn=["get",ln,"set"],vn=sn.concat(cn,pn),hn=sn.concat(pn),yn=["add"].concat(sn,cn,ln),dn=V?fn(vn):x("Map"),gn=V?fn(hn):x("WeakMap"),bn=V?fn(yn):x("Set"),mn=x("WeakSet");function jn(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function _n(n){for(var r={},t=nn(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function wn(n){var r=[];for(var t in n)D(n[t])&&r.push(t);return r.sort()}function An(n,r){return function(t){var e=arguments.length;if(r&&(t=Object(t)),e<2||null==t)return t;for(var u=1;u<e;u++)for(var o=arguments[u],i=n(o),a=i.length,f=0;f<a;f++){var c=i[f];r&&void 0!==t[c]||(t[c]=o[c])}return t}}var xn=An(an),Sn=An(nn),On=An(an,!0);function Mn(n){if(!_(n))return{};if(v)return v(n);var r=function(){};r.prototype=n;var t=new r;return r.prototype=null,t}function En(n){return _(n)?U(n)?n.slice():xn({},n):n}function Bn(n){return U(n)?n:[n]}function Nn(n){return tn.toPath(n)}function In(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function Tn(n,r,t){var e=In(n,Nn(r));return w(e)?t:e}function kn(n){return n}function Dn(n){return n=Sn({},n),function(r){return rn(r,n)}}function Rn(n){return n=Nn(n),function(r){return In(r,n)}}function Fn(n,r,t){if(void 0===r)return n;switch(null==t?3:t){case 1:return function(t){return n.call(r,t)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)}}return function(){return n.apply(r,arguments)}}function Vn(n,r,t){return null==n?kn:D(n)?Fn(n,r,t):_(n)&&!U(n)?Dn(n):Rn(n)}function Pn(n,r){return Vn(n,r,1/0)}function qn(n,r,t){return tn.iteratee!==Pn?tn.iteratee(n,r):Vn(n,r,t)}function Un(){}function Wn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}tn.toPath=Bn,tn.iteratee=Pn;var zn=Date.now||function(){return(new Date).getTime()};function Ln(n){var r=function(r){return n[r]},t="(?:"+nn(n).join("|")+")",e=RegExp(t),u=RegExp(t,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}}var $n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Cn=Ln($n),Kn=Ln(_n($n)),Jn=tn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Gn=/(.)^/,Hn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Qn=/\\|'|\r|\n|\u2028|\u2029/g;function Xn(n){return"\\"+Hn[n]}var Yn=/^\s*(\w|\$)+\s*$/;var Zn=0;function nr(n,r,t,e,u){if(!(e instanceof r))return n.apply(t,u);var o=Mn(n.prototype),i=n.apply(o,u);return _(i)?i:o}var rr=j((function(n,r){var t=rr.placeholder,e=function(){for(var u=0,o=r.length,i=Array(o),a=0;a<o;a++)i[a]=r[a]===t?arguments[u++]:r[a];for(;u<arguments.length;)i.push(arguments[u++]);return nr(n,e,this,this,i)};return e}));rr.placeholder=tn;var tr=j((function(n,r,t){if(!D(n))throw new TypeError("Bind must be called on a function");var e=j((function(u){return nr(n,e,r,this,t.concat(u))}));return e})),er=K(Y);function ur(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=Y(n);o<i;o++){var a=n[o];if(er(a)&&(U(a)||L(a)))if(r>1)ur(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var or=j((function(n,r){var t=(r=ur(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=tr(n[e],n)}return n}));var ir=j((function(n,r,t){return setTimeout((function(){return n.apply(null,t)}),r)})),ar=rr(ir,tn,1);function fr(n){return function(){return!n.apply(this,arguments)}}function cr(n,r){var t;return function(){return--n>0&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var lr=rr(cr,2);function sr(n,r,t){r=qn(r,t);for(var e,u=nn(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function pr(n){return function(r,t,e){t=qn(t,e);for(var u=Y(r),o=n>0?0:u-1;o>=0&&o<u;o+=n)if(t(r[o],o,r))return o;return-1}}var vr=pr(1),hr=pr(-1);function yr(n,r,t,e){for(var u=(t=qn(t,e,1))(r),o=0,i=Y(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function dr(n,r,t){return function(e,u,o){var a=0,f=Y(e);if("number"==typeof o)n>0?a=o>=0?o:Math.max(o+f,a):f=o>=0?Math.min(o+1,f):o+f+1;else if(t&&o&&f)return e[o=t(e,u)]===u?o:-1;if(u!=u)return(o=r(i.call(e,a,f),$))>=0?o+a:-1;for(o=n>0?a:f-1;o>=0&&o<f;o+=n)if(e[o]===u)return o;return-1}}var gr=dr(1,vr,yr),br=dr(-1,hr);function mr(n,r,t){var e=(er(n)?vr:sr)(n,r,t);if(void 0!==e&&-1!==e)return n[e]}function jr(n,r,t){var e,u;if(r=Fn(r,t),er(n))for(e=0,u=n.length;e<u;e++)r(n[e],e,n);else{var o=nn(n);for(e=0,u=o.length;e<u;e++)r(n[o[e]],o[e],n)}return n}function _r(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function wr(n){var r=function(r,t,e,u){var o=!er(r)&&nn(r),i=(o||r).length,a=n>0?0:i-1;for(u||(e=r[o?o[a]:a],a+=n);a>=0&&a<i;a+=n){var f=o?o[a]:a;e=t(e,r[f],f,r)}return e};return function(n,t,e,u){var o=arguments.length>=3;return r(n,Fn(t,u,4),e,o)}}var Ar=wr(1),xr=wr(-1);function Sr(n,r,t){var e=[];return r=qn(r,t),jr(n,(function(n,t,u){r(n,t,u)&&e.push(n)})),e}function Or(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function Mr(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function Er(n,r,t,e){return er(n)||(n=jn(n)),("number"!=typeof t||e)&&(t=0),gr(n,r,t)>=0}var Br=j((function(n,r,t){var e,u;return D(r)?u=r:(r=Nn(r),e=r.slice(0,-1),r=r[r.length-1]),_r(n,(function(n){var o=u;if(!o){if(e&&e.length&&(n=In(n,e)),null==n)return;o=n[r]}return null==o?o:o.apply(n,t)}))}));function Nr(n,r){return _r(n,Rn(r))}function Ir(n,r,t){var e,u,o=-1/0,i=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=er(n)?n:jn(n)).length;a<f;a++)null!=(e=n[a])&&e>o&&(o=e);else r=qn(r,t),jr(n,(function(n,t,e){((u=r(n,t,e))>i||u===-1/0&&o===-1/0)&&(o=n,i=u)}));return o}function Tr(n,r,t){if(null==r||t)return er(n)||(n=jn(n)),n[Wn(n.length-1)];var e=er(n)?En(n):jn(n),u=Y(e);r=Math.max(Math.min(r,u),0);for(var o=u-1,i=0;i<r;i++){var a=Wn(i,o),f=e[i];e[i]=e[a],e[a]=f}return e.slice(0,r)}function kr(n,r){return function(t,e,u){var o=r?[[],[]]:{};return e=qn(e,u),jr(t,(function(r,u){var i=e(r,u,t);n(o,r,i)})),o}}var Dr=kr((function(n,r,t){W(n,t)?n[t].push(r):n[t]=[r]})),Rr=kr((function(n,r,t){n[t]=r})),Fr=kr((function(n,r,t){W(n,t)?n[t]++:n[t]=1})),Vr=kr((function(n,r,t){n[t?0:1].push(r)}),!0),Pr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function qr(n,r,t){return r in t}var Ur=j((function(n,r){var t={},e=r[0];if(null==n)return t;D(e)?(r.length>1&&(e=Fn(e,r[1])),r=an(n)):(e=qr,r=ur(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}return t})),Wr=j((function(n,r){var t,e=r[0];return D(e)?(e=fr(e),r.length>1&&(t=r[1])):(r=_r(ur(r,!1,!1),String),e=function(n,t){return!Er(r,t)}),Ur(n,e,t)}));function zr(n,r,t){return i.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Lr(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:zr(n,n.length-r)}function $r(n,r,t){return i.call(n,null==r||t?1:r)}var Cr=j((function(n,r){return r=ur(r,!0,!0),Sr(n,(function(n){return!Er(r,n)}))})),Kr=j((function(n,r){return Cr(n,r)}));function Jr(n,r,t,e){A(r)||(e=t,t=r,r=!1),null!=t&&(t=qn(t,e));for(var u=[],o=[],i=0,a=Y(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?Er(o,c)||(o.push(c),u.push(f)):Er(u,f)||u.push(f)}return u}var Gr=j((function(n){return Jr(ur(n,!0,!0))}));function Hr(n){for(var r=n&&Ir(n,Y).length||0,t=Array(r),e=0;e<r;e++)t[e]=Nr(n,e);return t}var Qr=j(Hr);function Xr(n,r){return n._chain?tn(r).chain():r}function Yr(n){return jr(wn(n),(function(r){var t=tn[r]=n[r];tn.prototype[r]=function(){var n=[this._wrapped];return o.apply(n,arguments),Xr(this,t.apply(tn,n))}})),tn}jr(["pop","push","reverse","shift","sort","splice","unshift"],(function(n){var r=t[n];tn.prototype[n]=function(){var t=this._wrapped;return null!=t&&(r.apply(t,arguments),"shift"!==n&&"splice"!==n||0!==t.length||delete t[0]),Xr(this,t)}})),jr(["concat","join","slice"],(function(n){var r=t[n];tn.prototype[n]=function(){var n=this._wrapped;return null!=n&&(n=r.apply(n,arguments)),Xr(this,n)}}));var Zr=Yr({__proto__:null,VERSION:n,restArguments:j,isObject:_,isNull:function(n){return null===n},isUndefined:w,isBoolean:A,isElement:function(n){return!(!n||1!==n.nodeType)},isString:S,isNumber:O,isDate:M,isRegExp:E,isError:B,isSymbol:N,isArrayBuffer:I,isDataView:q,isArray:U,isFunction:D,isArguments:L,isFinite:function(n){return!N(n)&&d(n)&&!isNaN(parseFloat(n))},isNaN:$,isTypedArray:X,isEmpty:function(n){if(null==n)return!0;var r=Y(n);return"number"==typeof r&&(U(n)||S(n)||L(n))?0===r:0===Y(nn(n))},isMatch:rn,isEqual:function(n,r){return on(n,r)},isMap:dn,isWeakMap:gn,isSet:bn,isWeakSet:mn,keys:nn,allKeys:an,values:jn,pairs:function(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:_n,functions:wn,methods:wn,extend:xn,extendOwn:Sn,assign:Sn,defaults:On,create:function(n,r){var t=Mn(n);return r&&Sn(t,r),t},clone:En,tap:function(n,r){return r(n),n},get:Tn,has:function(n,r){for(var t=(r=Nn(r)).length,e=0;e<t;e++){var u=r[e];if(!W(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=qn(r,t);for(var e=nn(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:kn,constant:C,noop:Un,toPath:Bn,property:Rn,propertyOf:function(n){return null==n?Un:function(r){return Tn(n,r)}},matcher:Dn,matches:Dn,times:function(n,r,t){var e=Array(Math.max(0,n));r=Fn(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Wn,now:zn,escape:Cn,unescape:Kn,templateSettings:Jn,template:function(n,r,t){!r&&t&&(r=t),r=On({},r,tn.templateSettings);var e=RegExp([(r.escape||Gn).source,(r.interpolate||Gn).source,(r.evaluate||Gn).source].join("|")+"|$","g"),u=0,o="__p+='";n.replace(e,(function(r,t,e,i,a){return o+=n.slice(u,a).replace(Qn,Xn),u=a+r.length,t?o+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?o+="'+\n((__t=("+e+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),r})),o+="';\n";var i,a=r.variable;if(a){if(!Yn.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(a,"_",o)}catch(n){throw n.source=o,n}var f=function(n){return i.call(this,n,tn)};return f.source="function("+a+"){\n"+o+"}",f},result:function(n,r,t){var e=(r=Nn(r)).length;if(!e)return D(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=D(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Zn+"";return n?n+r:r},chain:function(n){var r=tn(n);return r._chain=!0,r},iteratee:Pn,partial:rr,bind:tr,bindAll:or,memoize:function(n,r){var t=function(e){var u=t.cache,o=""+(r?r.apply(this,arguments):e);return W(u,o)||(u[o]=n.apply(this,arguments)),u[o]};return t.cache={},t},delay:ir,defer:ar,throttle:function(n,r,t){var e,u,o,i,a=0;t||(t={});var f=function(){a=!1===t.leading?0:zn(),e=null,i=n.apply(u,o),e||(u=o=null)},c=function(){var c=zn();a||!1!==t.leading||(a=c);var l=r-(c-a);return u=this,o=arguments,l<=0||l>r?(e&&(clearTimeout(e),e=null),a=c,i=n.apply(u,o),e||(u=o=null)):e||!1===t.trailing||(e=setTimeout(f,l)),i};return c.cancel=function(){clearTimeout(e),a=0,e=u=o=null},c},debounce:function(n,r,t){var e,u,o,i,a,f=function(){var c=zn()-u;r>c?e=setTimeout(f,r-c):(e=null,t||(i=n.apply(a,o)),e||(o=a=null))},c=j((function(c){return a=this,o=c,u=zn(),e||(e=setTimeout(f,r),t&&(i=n.apply(a,o))),i}));return c.cancel=function(){clearTimeout(e),e=o=a=null},c},wrap:function(n,r){return rr(r,n)},negate:fr,compose:function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:cr,once:lr,findKey:sr,findIndex:vr,findLastIndex:hr,sortedIndex:yr,indexOf:gr,lastIndexOf:br,find:mr,detect:mr,findWhere:function(n,r){return mr(n,Dn(r))},each:jr,forEach:jr,map:_r,collect:_r,reduce:Ar,foldl:Ar,inject:Ar,reduceRight:xr,foldr:xr,filter:Sr,select:Sr,reject:function(n,r,t){return Sr(n,fr(qn(r)),t)},every:Or,all:Or,some:Mr,any:Mr,contains:Er,includes:Er,include:Er,invoke:Br,pluck:Nr,where:function(n,r){return Sr(n,Dn(r))},max:Ir,min:function(n,r,t){var e,u,o=1/0,i=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=er(n)?n:jn(n)).length;a<f;a++)null!=(e=n[a])&&e<o&&(o=e);else r=qn(r,t),jr(n,(function(n,t,e){((u=r(n,t,e))<i||u===1/0&&o===1/0)&&(o=n,i=u)}));return o},shuffle:function(n){return Tr(n,1/0)},sample:Tr,sortBy:function(n,r,t){var e=0;return r=qn(r,t),Nr(_r(n,(function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}})).sort((function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(t>e||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index})),"value")},groupBy:Dr,indexBy:Rr,countBy:Fr,partition:Vr,toArray:function(n){return n?U(n)?i.call(n):S(n)?n.match(Pr):er(n)?_r(n,kn):jn(n):[]},size:function(n){return null==n?0:er(n)?n.length:nn(n).length},pick:Ur,omit:Wr,first:Lr,head:Lr,take:Lr,initial:zr,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:$r(n,Math.max(0,n.length-r))},rest:$r,tail:$r,drop:$r,compact:function(n){return Sr(n,Boolean)},flatten:function(n,r){return ur(n,r,!1)},without:Kr,uniq:Jr,unique:Jr,union:Gr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=Y(n);e<u;e++){var o=n[e];if(!Er(r,o)){var i;for(i=1;i<t&&Er(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Cr,unzip:Hr,transpose:Hr,zip:Qr,object:function(n,r){for(var t={},e=0,u=Y(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t||(t=r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(i.call(n,e,e+=r));return t},mixin:Yr,default:tn});return Zr._=Zr,Zr}));
|
docs/build/html/examples.html
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html class="writer-html5" lang="en" >
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
5 |
+
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
+
<title>Examples — radiobee 0.1.0beta2 documentation</title>
|
8 |
+
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
9 |
+
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
10 |
+
<!--[if lt IE 9]>
|
11 |
+
<script src="_static/js/html5shiv.min.js"></script>
|
12 |
+
<![endif]-->
|
13 |
+
|
14 |
+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
|
15 |
+
<script src="_static/jquery.js"></script>
|
16 |
+
<script src="_static/underscore.js"></script>
|
17 |
+
<script src="_static/doctools.js"></script>
|
18 |
+
<script src="_static/js/theme.js"></script>
|
19 |
+
<link rel="index" title="Index" href="genindex.html" />
|
20 |
+
<link rel="search" title="Search" href="search.html" />
|
21 |
+
<link rel="prev" title="radiobee package" href="radiobee.html" />
|
22 |
+
</head>
|
23 |
+
|
24 |
+
<body class="wy-body-for-nav">
|
25 |
+
<div class="wy-grid-for-nav">
|
26 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
27 |
+
<div class="wy-side-scroll">
|
28 |
+
<div class="wy-side-nav-search" >
|
29 |
+
<a href="index.html" class="icon icon-home"> radiobee
|
30 |
+
</a>
|
31 |
+
<div role="search">
|
32 |
+
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
33 |
+
<input type="text" name="q" placeholder="Search docs" />
|
34 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
35 |
+
<input type="hidden" name="area" value="default" />
|
36 |
+
</form>
|
37 |
+
</div>
|
38 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
39 |
+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
40 |
+
<ul class="current">
|
41 |
+
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
42 |
+
<li class="toctree-l1"><a class="reference internal" href="radiobee.html">radiobee package</a></li>
|
43 |
+
<li class="toctree-l1 current"><a class="current reference internal" href="#">Examples</a><ul>
|
44 |
+
<li class="toctree-l2"><a class="reference internal" href="#installation-usage">Installation/Usage:</a></li>
|
45 |
+
</ul>
|
46 |
+
</li>
|
47 |
+
</ul>
|
48 |
+
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
</nav>
|
52 |
+
|
53 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
54 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
55 |
+
<a href="index.html">radiobee</a>
|
56 |
+
</nav>
|
57 |
+
|
58 |
+
<div class="wy-nav-content">
|
59 |
+
<div class="rst-content">
|
60 |
+
<div role="navigation" aria-label="Page navigation">
|
61 |
+
<ul class="wy-breadcrumbs">
|
62 |
+
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
63 |
+
<li>Examples</li>
|
64 |
+
<li class="wy-breadcrumbs-aside">
|
65 |
+
<a href="_sources/examples.rst.txt" rel="nofollow"> View page source</a>
|
66 |
+
</li>
|
67 |
+
</ul>
|
68 |
+
<hr/>
|
69 |
+
</div>
|
70 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
71 |
+
<div itemprop="articleBody">
|
72 |
+
|
73 |
+
<section id="examples">
|
74 |
+
<h1>Examples<a class="headerlink" href="#examples" title="Permalink to this headline"></a></h1>
|
75 |
+
<section id="installation-usage">
|
76 |
+
<h2>Installation/Usage:<a class="headerlink" href="#installation-usage" title="Permalink to this headline"></a></h2>
|
77 |
+
<p>As the package has not been published on PyPi yet, it CANNOT be install using pip.</p>
|
78 |
+
<p>For now, the suggested method is to download the zipped package or use the online version at <a class="reference external" href="https://huggingface.co/spaces/mikeee/radiobee-aligner/">https://huggingface.co/spaces/mikeee/radiobee-aligner/</a></p>
|
79 |
+
</section>
|
80 |
+
</section>
|
81 |
+
|
82 |
+
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
86 |
+
<a href="radiobee.html" class="btn btn-neutral float-left" title="radiobee package" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
87 |
+
</div>
|
88 |
+
|
89 |
+
<hr/>
|
90 |
+
|
91 |
+
<div role="contentinfo">
|
92 |
+
<p>© Copyright 2022, mu.</p>
|
93 |
+
</div>
|
94 |
+
|
95 |
+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
|
96 |
+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
97 |
+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
98 |
+
|
99 |
+
|
100 |
+
</footer>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
</section>
|
104 |
+
</div>
|
105 |
+
<script>
|
106 |
+
jQuery(function () {
|
107 |
+
SphinxRtdTheme.Navigation.enable(true);
|
108 |
+
});
|
109 |
+
</script>
|
110 |
+
|
111 |
+
</body>
|
112 |
+
</html>
|