inequality-grammar 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +200 -200
- package/dist/inequality-grammar.js +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2018 Andrea Franceschini
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2018 Andrea Franceschini
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
201
|
limitations under the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["inequality-grammar"]=t():e["inequality-grammar"]=t()}(this,(()=>(()=>{var e={8326:(e,t,r)=>{!function(){function t(e){return e[0]}var n=s(r(361)),o=(s(r(1609)),s(r(8446)),s(r(5161)),s(r(6604)),s(r(7557)),s(r(6579)),r(353));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){var n;return n=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"==a(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=null;try{p=window}catch(e){p={innerWidth:800,innerHeight:600}}var l=function(e){var t=(0,n.default)(e[0]),r=(0,n.default)(e[e.length-1]),s=(0,o._findRightmost)(t),a="";switch(e[2].toLowerCase()){case"AND":case"and":case"&":case"∧":case".":a="and";break;case"OR":case"or":case"|":case"∨":case"v":case"+":a="or";break;case"XOR":case"xor":case"^":case"⊻":a="xor";break;default:a=""}return s.children.right={type:"LogicBinaryOperation",properties:{operation:a},children:{right:r}},t},f=function(e){return{type:"LogicNot",children:{argument:e[2]}}},h={Lexer:void 0,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(e){var t=(0,n.default)(e[1]);return t.position={x:p.innerWidth/4,y:p.innerHeight/3},t.expression={latex:"",python:""},(0,o._simplify)(t)}},{name:"main",symbols:["_","AS","_",{literal:"="},"_","AS","_"],postprocess:function(e){var t=(0,n.default)(e[1]),r=(0,n.default)(e[5]),s={type:"Relation",properties:{relation:"=="===e[3].text?"=":e[3].text},children:{right:r}};return(0,o._findRightmost)(t).children.right=s,u(u({},t=(0,o._simplify)(t)),{},{position:{x:p.innerWidth/4,y:p.innerHeight/3},expression:{latex:"",python:""}})}},{name:"AS$string$1",symbols:[{literal:"O"},{literal:"R"}],postprocess:function(e){return e.join("")}},{name:"AS",symbols:["AS","_","AS$string$1","_","MD"],postprocess:l},{name:"AS$string$2",symbols:[{literal:"o"},{literal:"r"}],postprocess:function(e){return e.join("")}},{name:"AS",symbols:["AS","_","AS$string$2","_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"|"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"∨"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"v"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"+"},"_","MD"],postprocess:l},{name:"AS",symbols:["MD"],postprocess:t},{name:"MD$string$1",symbols:[{literal:"A"},{literal:"N"},{literal:"D"}],postprocess:function(e){return e.join("")}},{name:"MD",symbols:["MD","_","MD$string$1","_","XOR"],postprocess:l},{name:"MD$string$2",symbols:[{literal:"a"},{literal:"n"},{literal:"d"}],postprocess:function(e){return e.join("")}},{name:"MD",symbols:["MD","_","MD$string$2","_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"&"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"∧"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"."},"_","XOR"],postprocess:l},{name:"MD",symbols:["XOR"],postprocess:t},{name:"XOR$string$1",symbols:[{literal:"X"},{literal:"O"},{literal:"R"}],postprocess:function(e){return e.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$1","_","P"],postprocess:l},{name:"XOR$string$2",symbols:[{literal:"x"},{literal:"o"},{literal:"r"}],postprocess:function(e){return e.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$2","_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"^"},"_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"⊻"},"_","P"],postprocess:l},{name:"XOR",symbols:["P"],postprocess:t},{name:"P",symbols:[{literal:"("},"_","AS","_",{literal:")"}],postprocess:function(e){return{type:"Brackets",properties:{type:"round"},children:{argument:e[2]}}}},{name:"P",symbols:["N"],postprocess:t},{name:"N$string$1",symbols:[{literal:"N"},{literal:"O"},{literal:"T"}],postprocess:function(e){return e.join("")}},{name:"N",symbols:["N$string$1","_","P"],postprocess:f},{name:"N$string$2",symbols:[{literal:"n"},{literal:"o"},{literal:"t"}],postprocess:function(e){return e.join("")}},{name:"N",symbols:["N$string$2","_","P"],postprocess:f},{name:"N",symbols:[{literal:"!"},"_","P"],postprocess:f},{name:"N",symbols:[{literal:"~"},"_","P"],postprocess:f},{name:"N",symbols:[{literal:"¬"},"_","P"],postprocess:f},{name:"N",symbols:["L"],postprocess:t},{name:"L$string$1",symbols:[{literal:"t"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(e){return e.join("")}},{name:"L",symbols:["L$string$1"],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$2",symbols:[{literal:"T"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(e){return e.join("")}},{name:"L",symbols:["L$string$2"],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"T"}],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"1"}],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$3",symbols:[{literal:"f"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(e){return e.join("")}},{name:"L",symbols:["L$string$3"],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L$string$4",symbols:[{literal:"F"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(e){return e.join("")}},{name:"L",symbols:["L$string$4"],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"F"}],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"0"}],postprocess:function(e){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[/[A-EG-SU-Z]/],postprocess:function(e){return{type:"Symbol",properties:{letter:e[0]},children:{}}}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(e){return e[0].concat([e[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(e){return null}}],ParserStart:"main"};void 0!==e.exports?e.exports=h:window.grammar=h}()},5338:(e,t,r)=>{!function(){function t(e){return e[0]}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var s=new RegExp(e,n);return t.set(s,o||t.get(e)),a(s,r.prototype)}function i(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){var o=n[r];if("number"==typeof o)t[r]=e[o];else{for(var s=0;void 0===e[o[s]]&&s+1<o.length;)s++;t[r]=e[o[s]]}return t}),Object.create(null))}return s(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=i(r,this);var n=r.indices;n&&(n.groups=i(n,this))}return r},r.prototype[Symbol.replace]=function(r,o){if("string"==typeof o){var s=t.get(this);return e[Symbol.replace].call(this,r,o.replace(/\$<([^>]+)>/g,(function(e,t){var r=s[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=n(e[e.length-1])&&(e=[].slice.call(e)).push(i(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,r,o)},o.apply(this,arguments)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var i=r(9271),u=i.compile({LB:{match:/(?:\n|\r\n)+/,lineBreaks:!0},WS:{match:/[ \t\n\r]+/,lineBreaks:!0},End:[";"],Arrow:{match:/(?:<=>|->)/,type:i.keywords({DArr:"<=>",SArr:"->"})},Charge:{match:/(?:-|\^{(?:[1-9][0-9]*)?(?:\+|-)})/,type:i.keywords({Positive:"^{+}",Negative:["^{-}","-"]})},Sub:/_{[1-9][0-9]*}/,Num:/[1-9][0-9]*/,Frac:/\\frac{[1-9][0-9]*}{[1-9[0-9]*}/,Slash:["/"],State:/\((?:s|l|g|m|aq)\)/,Element:/A[cglmrstu]|B[aehikr]?|C[adeflmnorsu]?|D[bsy]|E[rsu]|F[elmr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airuv]|M[cdgnot]|N[abdehiop]?|O[gs]?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilms]|U|V|W|Xe|Yb?|Z[nr]/,Water:/\.[\s]*(?:[1-9][0-9]*)?[\s]*H2O/,Plus:"+",LParen:"(",RParen:")",LSquare:"[",RSquare:"]",Electron:/(?:e|\\electron)\^{-}/,Nop:"{}",Error:{match:/[^]/,lineBreaks:!0}}),c=function(e){return{type:"statement",left:e[0],right:e[4],arrow:e[2].type}},p=function(e){return{type:"compound",head:e[0],tail:e[1]}},l=function(e){return{type:"bracket",compound:e[1],coeff:e[3]}},f={Lexer:u,ParserRules:[{name:"main",symbols:["_","Statement","_"],postprocess:function(e){return{result:e[1]}}},{name:"Statement",symbols:["Expression"],postprocess:t},{name:"Statement",symbols:["Expression","_",u.has("DArr")?{type:"DArr"}:DArr,"_","Expression"],postprocess:c},{name:"Statement",symbols:["Expression","_",u.has("SArr")?{type:"SArr"}:SArr,"_","Expression"],postprocess:c},{name:"Expression",symbols:["Term"],postprocess:t},{name:"Expression",symbols:["Term","_",u.has("Plus")?{type:"Plus"}:Plus,"_","Expression"],postprocess:function(e){return{type:"expr",term:e[0],rest:e[4]}}},{name:"Term",symbols:["OptCoeff","Ion","OptState"],postprocess:function(e){return{type:"term",value:e[1],coeff:e[0],state:e[2],hydrate:0,isElectron:!1,isHydrate:!1}}},{name:"Term",symbols:["OptCoeff","Compound","_",u.has("Water")?{type:"Water"}:Water,"OptState"],postprocess:function(e){var t=o(/\.\s*([1-9][0-9]*)\s*H2O/,{num:1}),r=e[3].text.match(t);return{type:"term",value:e[1],coeff:e[0],state:e[4],hydrate:parseInt(r.groups.num),isElectron:!1,isHydrate:!0}}},{name:"Term",symbols:["OptCoeff",u.has("Electron")?{type:"Electron"}:Electron],postprocess:function(e){return{type:"term",value:{type:"electron"},coeff:e[0],state:"",hydrate:0,isElectron:!0,isHydrate:!1}}},{name:"Ion",symbols:["Molecule"],postprocess:t},{name:"Ion",symbols:["Molecule","Charge"],postprocess:function(e){return{type:"ion",molecule:e[0],charge:e[1]}}},{name:"Ion",symbols:["Molecule","Charge","Ion"],postprocess:function(e){return{type:"ion",molecule:e[0],charge:e[1],chain:e[2]}}},{name:"Molecule",symbols:["Element"],postprocess:t},{name:"Molecule",symbols:["Compound"],postprocess:t},{name:"Compound",symbols:["Bracket"],postprocess:t},{name:"Compound",symbols:["Bracket","RemComp"],postprocess:p},{name:"Compound",symbols:["Element","RemComp"],postprocess:p},{name:"RemComp",symbols:["Element"],postprocess:t},{name:"RemComp",symbols:["Bracket"],postprocess:t},{name:"RemComp",symbols:["Element","RemComp"],postprocess:p},{name:"RemComp",symbols:["Bracket","RemComp"],postprocess:p},{name:"Bracket",symbols:[u.has("LParen")?{type:"LParen"}:LParen,"Compound",u.has("RParen")?{type:"RParen"}:RParen,"OptNum"],postprocess:l},{name:"Bracket",symbols:[u.has("LSquare")?{type:"LSquare"}:LSquare,"Compound",u.has("RSquare")?{type:"RSquare"}:RSquare,"OptNum"],postprocess:l},{name:"Element",symbols:[u.has("Element")?{type:"Element"}:Element,"OptNum"],postprocess:function(e){return{type:"element",value:e[0].text,coeff:e[1]}}},{name:"Element",symbols:[u.has("Element")?{type:"Element"}:Element,u.has("Sub")?{type:"Sub"}:Sub],postprocess:function(e){var t=o(/_\{([1-9][0-9]*)\}/,{num:1}),r=e[1].text.match(t);return{type:"element",value:e[0].text,coeff:parseInt(r.groups.num)}}},{name:"Charge",symbols:[u.has("Positive")?{type:"Positive"}:Positive],postprocess:function(e){return 1}},{name:"Charge",symbols:[u.has("Plus")?{type:"Plus"}:Plus],postprocess:function(e){return 1}},{name:"Charge",symbols:[u.has("Negative")?{type:"Negative"}:Negative],postprocess:function(e){return-1}},{name:"Charge",symbols:[u.has("Charge")?{type:"Charge"}:Charge],postprocess:function(e){var t=o(/\^\{([1-9][0-9]*)(\+|\x2D)\}/,{value:1,sign:2}),r=e[0].text.match(t);return"-"===r.groups.sign?0-parseInt(r.groups.value):parseInt(r.groups.value)}},{name:"OptCoeff",symbols:[],postprocess:function(e){return{numerator:1,denominator:1}}},{name:"OptCoeff",symbols:[u.has("Num")?{type:"Num"}:Num,"_"],postprocess:function(e){return{numerator:parseInt(e[0].value),denominator:1}}},{name:"OptCoeff",symbols:[u.has("Frac")?{type:"Frac"}:Frac,"_"],postprocess:function(e){var t=o(/\\frac\{([1-9][0-9]*)\}\{([1-9[0-9]*)\}/,{num:1,den:2}),r=e[0].text.match(t);return{numerator:parseInt(r.groups.num),denominator:parseInt(r.groups.den)}}},{name:"OptCoeff",symbols:[u.has("Num")?{type:"Num"}:Num,u.has("Slash")?{type:"Slash"}:Slash,u.has("Num")?{type:"Num"}:Num,"_"],postprocess:function(e){return{numerator:parseInt(e[0].text),denominator:parseInt(e[2].text)}}},{name:"OptNum",symbols:[],postprocess:function(e){return 1}},{name:"OptNum",symbols:[u.has("Num")?{type:"Num"}:Num],postprocess:function(e){return parseInt(e[0].text)}},{name:"OptState",symbols:[],postprocess:function(e){return""}},{name:"OptState",symbols:["_",u.has("State")?{type:"State"}:State],postprocess:function(e){return e[1].value}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",u.has("WS")?{type:"WS"}:WS],postprocess:function(e){return e[0].concat([e[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(e){return null}}],ParserStart:"main"};void 0!==e.exports?e.exports=f:window.grammar=f}()},1647:(e,t,r)=>{!function(){function t(e){return e[0]}var n=c(r(361)),o=(c(r(1609)),c(r(8446))),s=c(r(5161)),a=c(r(7557)),i=c(r(6579)),u=r(353);function c(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){var n;return n=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"==p(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"},b=r(9271),d=b.compile({Int:/[0-9]+/,IdMod:/[a-zA-ZΑ-ΡΣ-Ωα-ω]+_(?:prime)/,Id:{match:/[a-zA-ZΑ-ΡΣ-Ωα-ω]+(?:_[a-zA-Z0-9]+)?/,type:b.keywords({TrigFn:["cos","sin","tan","cosec","sec","cot","cosh","sinh","tanh","cosech","sech","coth","acos","asin","atan","acosec","asec","acot","acosh","asinh","atanh","acosech","asech","acoth","arccos","arcsin","arctan","arccosec","arcsec","arccot","arccosh","arcsinh","arctanh","arccosech","arcsech","arccoth","arcosh","arsinh","artanh","arcosech","arsech","arcoth"],Fn:["ln","abs","factorial"],Log:["log"],Radix:["sqrt"],Derivative:["diff","Derivative"]})},Rel:["=","==","<","<=",">",">="],Factorial:["!"],PlusMinus:["+","-","±","-","-"],Pow:["**","^"],Mul:["*","×"],Div:["/","÷"],Lparen:"(",Rparen:")",Comma:",",c:/./}),g=null;try{g=window}catch(e){g={innerWidth:800,innerHeight:600}}var x=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new RegExp("^(arc|ar|a)((?:sin|cos|tan|sec|cosec|cot)h?)$"),s=e.text,a=!1;o.test(s)&&(s=o.exec(s)[2],a=1);var i,u=(0,n.default)(t),c=(0,n.default)(r);if(i=null===c?{type:"Fn",properties:{name:s,allowSubscript:!1,innerSuperscript:!0},children:{argument:u}}:{type:"Fn",properties:{name:s,allowSubscript:!1,innerSuperscript:!0},children:{superscript:c,argument:u}},a)if(i.children.superscript){var p=(0,n.default)(i.children.superscript),l=(0,n.default)(i);l.children.superscript={type:"Num",properties:{significand:"-1"},children:{}},i={type:"Brackets",properties:{type:"round"},children:{argument:l,superscript:p}}}else i.children.superscript={type:"Num",properties:{significand:"-1"},children:{}};return i},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"Fn",properties:{name:"log",allowSubscript:!0,innerSuperscript:!1},children:{argument:e}};return null!==t?"Num"!==t.type&&"Symbol"!==t.type||(r.children.subscript=(0,n.default)(t)):r.children.subscript={type:"Num",properties:{significand:"10"},children:{}},r},w=function(e){var t=(0,n.default)(e[0]),r=(0,n.default)(e[e.length-1]);return(0,u._findRightmost)(t).children.right=r,t},S=function(e){var t=(0,s.default)(e.split(""),(function(e){return/[0-9]/.test(e)?j([{text:e}]):{type:"Symbol",properties:{letter:e},children:{}}}));return(0,i.default)(t,(function(e,t){return t.children.right=e,t}))},j=function(e){return{type:"Num",properties:{significand:e[0].text},children:{}}},O={Lexer:d,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(e){var t=(0,n.default)(e[1]);return t.position={x:g.innerWidth/4,y:g.innerHeight/3},t.expression={latex:"",python:""},(0,u._simplify)(t)}},{name:"main",symbols:["_","AS","_",d.has("Rel")?{type:"Rel"}:Rel,"_","AS","_"],postprocess:function(e){var t=(0,n.default)(e[1]),r=(0,n.default)(e[5]),o={type:"Relation",properties:{relation:"=="===e[3].text?"=":e[3].text},children:{right:r}};return(0,u._findRightmost)(t).children.right=o,y(y({},t=(0,u._simplify)(t)),{},{position:{x:g.innerWidth/4,y:g.innerHeight/3},expression:{latex:"",python:""}})}},{name:"P",symbols:[d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return{type:"Brackets",properties:{type:"round"},children:{argument:(0,n.default)(e[2])}}}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return x(e[0],e[3],null)}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Pow")?{type:"Pow"}:Pow,"NUM",d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return x(e[0],e[5],e[2])}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen,d.has("Pow")?{type:"Pow"}:Pow,"NUM"],postprocess:function(e){return x(e[0],e[3],e[7])}},{name:"P",symbols:[d.has("Derivative")?{type:"Derivative"}:Derivative,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","ARGS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){var t={type:"Differential",properties:{letter:"d"},children:{argument:e[3]}},r=e[7].reduce((function(e,t){if(0==e.length)return[{object:t,order:1}];var r=e[e.length-1];return"Num"===t.type?(r.order=parseInt(t.properties.significand),[].concat(l(e.slice(0,e.length-1)),[r])):(0,o.default)(t,r.object)?(r.order=r.order+1,[].concat(l(e.slice(0,e.length-1)),[r])):[].concat(l(e),[{object:t,order:1}])}),[]).map((function(e){var t={type:"Differential",properties:{letter:"d"},children:{argument:e.object}};return e.order>1&&(t.children.order={type:"Num",properties:{significand:"".concat(e.order)},children:{}}),t})),n=r.reduce((function(e,t){return e+parseInt(t.children.order?t.children.order.properties.significand:"1")}),0);return n>1&&(t.children.order={type:"Num",properties:{significand:"".concat(n)},children:{}}),{type:"Derivative",children:{numerator:t,denominator:(0,i.default)(r,(function(e,t){return t.children.right=e,t}))}}}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return _(e[3])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","VAR","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return _(e[3],e[7])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","NUM","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return _(e[3],e[7])}},{name:"P",symbols:[d.has("Radix")?{type:"Radix"}:Radix,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){return{type:"Radix",children:{argument:(0,n.default)(e[3])}}}},{name:"P",symbols:[d.has("Fn")?{type:"Fn"}:Fn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(e){var t=(0,n.default)(e[3]);return"abs"===e[0].text?{type:"AbsoluteValue",children:{argument:t}}:"factorial"===e[0].text?{type:"UnaryOperation",properties:{type:"postfix",operation:"!"},children:{argument:t}}:{type:"Fn",properties:{name:e[0].text,allowSubscript:"ln"!==e[0].text,innerSuperscript:!1},children:{argument:t}}}},{name:"P",symbols:["VAR"],postprocess:t},{name:"P",symbols:["NUM"],postprocess:t},{name:"P",symbols:[d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","P"],postprocess:function(e){return{type:"BinaryOperation",properties:{operation:e[0].text},children:{right:e[2]}}}},{name:"P",symbols:["P","_",d.has("Factorial")?{type:"Factorial"}:Factorial],postprocess:function(e){return{type:"UnaryOperation",properties:{type:"postfix",operation:e[2].text},children:{argument:e[0]}}}},{name:"ARGS",symbols:["AS"],postprocess:function(e){return[e[0]]}},{name:"ARGS",symbols:["ARGS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","AS"],postprocess:function(e){return e[0].concat(e[4])}},{name:"E",symbols:["P","_",d.has("Pow")?{type:"Pow"}:Pow,"_","E"],postprocess:function(e){var t=(0,n.default)(e[0]),r=(0,n.default)(e[4]),o=(0,u._findRightmost)(t);if("BinaryOperation"===r.type){var s=(0,n.default)(r.children.right.children.right);s&&(t.children.right=s,r.children.right.children=(0,a.default)(r.children.right.children,"right"))}else{var i=(0,n.default)(r.children.right);i&&(o.children.right=i,r.children=(0,a.default)(r.children,"right"))}if(!(["Fn","Log","TrigFn"].indexOf(t.type)>-1))return o.children.superscript=r,t;switch(t.properties.name){case"ln":case"log":return{type:"Brackets",properties:{type:"round"},children:{argument:t,superscript:r}};default:return o.children.superscript=r,t}}},{name:"E",symbols:["P"],postprocess:t},{name:"MD",symbols:["MD","_",d.has("Mul")?{type:"Mul"}:Mul,"_","E"],postprocess:w},{name:"MD",symbols:["MD","_",d.has("Div")?{type:"Div"}:Div,"_","E"],postprocess:function(e){var t=null;"BinaryOperation"===e[4].type?(t=(0,n.default)(e[4].children.right.children.right),e[4].children.right.children=(0,a.default)(e[4].children.right.children,"right")):(t=(0,n.default)(e[4].children.right),e[4].children=(0,a.default)(e[4].children,"right"));var r=(0,n.default)(e[0]),o=(0,u._rightChainToArray)(r).map((function(e){return e.children=(0,a.default)(e.children,"right"),e})),s={type:"Fraction",children:{numerator:o.pop(),denominator:(0,n.default)(e[4])}};return t&&(s.children.right=t),o.length>0?(o[o.length-1].children.right=s,o.reduceRight((function(e,t){return t.children.right=e,t}))):s}},{name:"MD",symbols:["MD","_","E"],postprocess:w},{name:"MD",symbols:["E"],postprocess:t},{name:"AS",symbols:["AS","_",d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","MD"],postprocess:function(e){var t=(0,n.default)(e[0]),r=(0,n.default)(e[4]);return(0,u._findRightmost)(t).children.right={type:"BinaryOperation",properties:{operation:e[2].text},children:{right:r}},t}},{name:"AS",symbols:["MD"],postprocess:t},{name:"VAR",symbols:[d.has("Id")?{type:"Id"}:Id],postprocess:function e(t){var r=Object.keys(v),n=t[0].text.split("_"),o=["[a-zA-Z]"].concat(r).join("|"),s=new RegExp("^((?:d|D)(?:elta)?)(".concat(o,")$")),a=n[0].match(s);if(a)return{type:"Differential",properties:{letter:v[a[1]]||a[1]},children:{argument:e([{text:t[0].text.substring(a[1].length)}])}};r.indexOf(n[0])>-1&&(n[0]=v[n[0]]);var i=S(n[0]);if(n.length>1){r.indexOf(n[1])>-1&&(n[1]=v[n[1]]);var c=S(n[1]);(0,u._findRightmost)(i).children.subscript=c}return i}},{name:"VAR",symbols:[d.has("IdMod")?{type:"IdMod"}:IdMod],postprocess:function(e){var t=Object.keys(v),r=e[0].text.split("_");t.indexOf(r[0])>-1&&(r[0]=v[r[0]]);var n=S(r[0]);return(0,u._findRightmost)(n).properties.modifier=r[1],n}},{name:"NUM",symbols:[d.has("Int")?{type:"Int"}:Int],postprocess:j},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(e){return e[0].concat([e[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==e.exports?e.exports=O:window.grammar=O}()},5459:(e,t,r)=>{!function(){function t(e){return e[0]}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,s,a,i=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(i.push(n.value),i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(){a=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,o){var s=new RegExp(e,n);return t.set(s,o||t.get(e)),u(s,r.prototype)}function o(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){var o=n[r];if("number"==typeof o)t[r]=e[o];else{for(var s=0;void 0===e[o[s]]&&s+1<o.length;)s++;t[r]=e[o[s]]}return t}),Object.create(null))}return i(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=o(r,this);var n=r.indices;n&&(n.groups=o(n,this))}return r},r.prototype[Symbol.replace]=function(r,s){if("string"==typeof s){var a=t.get(this);return e[Symbol.replace].call(this,r,s.replace(/\$<([^>]+)>/g,(function(e,t){var r=a[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof s){var i=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=n(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,i)),s.apply(this,e)}))}return e[Symbol.replace].call(this,r,s)},a.apply(this,arguments)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var c=r(9271),p=c.compile({LB:{match:/(?:\n|\r\n)+/,lineBreaks:!0},WS:{match:/[ \t\n\r]+/,lineBreaks:!0},End:[";"],Arrow:"->",Mass:/\^{(?:[1-9][0-9]*|0)}/,Atomic:/_{(?:-?[1-9][0-9]*|0)}/,Charge:{match:/(?:-|\^{(?:[1-9][0-9]*)?(?:\+|\-)})/,type:c.keywords({Positive:"^{+}",Negative:["^{-}","-"]})},Num:/[1-9][0-9]*/,Element:/A[cglmrstu]|B[aehikr]?|C[adeflmnorsu]?|D[bsy]|E[rsu]|F[elmr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airuv]|M[cdgnot]|N[abdehiop]?|O[gs]?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilms]|U|V|W|Xe|Yb?|Z[nr]/,Plus:"+",LParen:"(",RParen:")",LSquare:"[",RSquare:"]",Alpha:"\\alphaparticle",Beta:"\\betaparticle",Gamma:"\\gammaray",Neutrino:"\\neutrino",AntiNeutrino:"\\antineutrino",Electron:/(?:e|\\electron)/,Positron:"\\positron",Neutron:"\\neutron",Proton:"\\proton",Nop:"{}",Error:{match:/[^]/,lineBreaks:!0}}),l=function(e){var t=a(/\^\{([1-9][0-9]*|0)\}_\{(\x2D?[1-9][0-9]*|0)\}/,{mass:1,atomic:2}),r=e.match(t);return[parseInt(r.groups.mass),parseInt(r.groups.atomic)]},f=function(e){var t=e[1].type,r=o(l(e[0]),2),n=r[0],s=r[1],a=null;switch(t){case"Alpha":a="alphaparticle";break;case"Beta":a="betaparticle";break;case"Gamma":a="gammaray";break;default:a=t.toLowerCase()}return{type:"particle",particle:a,mass:n,atomic:s}},h=function(e){var t=o(l(e[0]),2);return{type:"particle",particle:"positron",mass:t[0],atomic:t[1]}},y={Lexer:p,ParserRules:[{name:"main",symbols:["_","Statement","_"],postprocess:function(e){return{result:e[1]}}},{name:"Statement",symbols:["Expression"],postprocess:t},{name:"Statement",symbols:["Expression","_",p.has("Arrow")?{type:"Arrow"}:Arrow,"_","Expression"],postprocess:function(e){return{type:"statement",left:e[0],right:e[4]}}},{name:"Expression",symbols:["Term"],postprocess:t},{name:"Expression",symbols:["Term","_",p.has("Plus")?{type:"Plus"}:Plus,"_","Expression"],postprocess:function(e){return{type:"expr",term:e[0],rest:e[4]}}},{name:"Term",symbols:["Isotope"],postprocess:function(e){return{type:"term",value:e[0],coeff:1,isParticle:!1}}},{name:"Term",symbols:["OptNum","Particle"],postprocess:function(e){return{type:"term",value:e[1],coeff:e[0],isParticle:!0}}},{name:"Isotope",symbols:["Prescript",p.has("Element")?{type:"Element"}:Element],postprocess:function(e){var t=o(l(e[0]),2),r=t[0],n=t[1];return{type:"isotope",element:e[1].text,mass:r,atomic:n}}},{name:"Particle",symbols:["Prescript",p.has("Alpha")?{type:"Alpha"}:Alpha],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Beta")?{type:"Beta"}:Beta],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Gamma")?{type:"Gamma"}:Gamma],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Neutrino")?{type:"Neutrino"}:Neutrino],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("AntiNeutrino")?{type:"AntiNeutrino"}:AntiNeutrino],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Electron")?{type:"Electron"}:Electron],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Positron")?{type:"Positron"}:Positron],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Neutron")?{type:"Neutron"}:Neutron],postprocess:f},{name:"Particle",symbols:["Prescript",p.has("Proton")?{type:"Proton"}:Proton],postprocess:f},{name:"Particle",symbols:[p.has("Gamma")?{type:"Gamma"}:Gamma],postprocess:function(e){return{type:"particle",particle:"gammaray",mass:0,atomic:0}}},{name:"Particle",symbols:["Prescript",p.has("Beta")?{type:"Beta"}:Beta,p.has("Positive")?{type:"Positive"}:Positive],postprocess:h},{name:"Particle",symbols:["Prescript",p.has("Beta")?{type:"Beta"}:Beta,p.has("Plus")?{type:"Plus"}:Plus],postprocess:h},{name:"Particle",symbols:["Prescript",p.has("Electron")?{type:"Electron"}:Electron,p.has("Positive")?{type:"Positive"}:Positive],postprocess:h},{name:"Particle",symbols:["Prescript",p.has("Beta")?{type:"Beta"}:Beta,p.has("Negative")?{type:"Negative"}:Negative],postprocess:function(e){var t=o(l(e[0]),2);return{type:"particle",particle:"betaparticle",mass:t[0],atomic:t[1]}}},{name:"Particle",symbols:["Prescript",p.has("Electron")?{type:"Electron"}:Electron,p.has("Negative")?{type:"Negative"}:Negative],postprocess:function(e){var t=o(l(e[0]),2);return{type:"particle",particle:"electron",mass:t[0],atomic:t[1]}}},{name:"Prescript",symbols:[p.has("Mass")?{type:"Mass"}:Mass,p.has("Atomic")?{type:"Atomic"}:Atomic],postprocess:function(e){return e[0].text+e[1].text}},{name:"Prescript",symbols:[p.has("Atomic")?{type:"Atomic"}:Atomic,p.has("Mass")?{type:"Mass"}:Mass],postprocess:function(e){return e[1].text+e[0].text}},{name:"Prescript",symbols:[p.has("Nop")?{type:"Nop"}:Nop,p.has("Mass")?{type:"Mass"}:Mass,p.has("Atomic")?{type:"Atomic"}:Atomic],postprocess:function(e){return e[1].text+e[2].text}},{name:"Prescript",symbols:[p.has("Nop")?{type:"Nop"}:Nop,p.has("Atomic")?{type:"Atomic"}:Atomic,p.has("Mass")?{type:"Mass"}:Mass],postprocess:function(e){return e[2].text+e[1].text}},{name:"OptNum",symbols:[],postprocess:function(e){return 1}},{name:"OptNum",symbols:[p.has("Num")?{type:"Num"}:Num],postprocess:function(e){return parseInt(e[0].text)}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",p.has("WS")?{type:"WS"}:WS],postprocess:function(e){return e[0].concat([e[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(e){return null}}],ParserStart:"main"};void 0!==e.exports?e.exports=y:window.grammar=y}()},353:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_findRightmost:()=>l,_rightChainToArray:()=>p,_safeToRemove:()=>f,_simplify:()=>h}),r(361);var n=r(1609),o=r.n(n),s=(r(8446),r(5161),r(6604)),a=r.n(s),i=r(7557),u=r.n(i);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(6579);var p=function(e){for(var t=e,r=[t];t.children.right;)t=t.children.right,r=[].concat(function(e){if(Array.isArray(e))return c(e)}(n=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t]);var n;return r},l=function(e){for(var t=e;t.children.right;)t=t.children.right;return t},f=function(e){return e&&"Brackets"===e.type&&o()(u()(e.children,"argument"))},h=function e(t){if(t.children=a()(t.children,(function(t,r,n){return e(t)})),"Brackets"===t.type||"Fn"===t.type){var r=t.children.argument;f(r)&&(t.children.argument=r.children.argument)}if("Fraction"===t.type){var n=t.children.numerator;f(n)&&(t.children.numerator=n.children.argument);var o=t.children.denominator;f(o)&&(t.children.denominator=o.children.argument)}var s=t.children.superscript;return f(s)&&(t.children.superscript=s.children.argument),t}},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),s=r(7667),a=r(1327),i=r(1866);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=i,e.exports=u},8407:(e,t,r)=>{var n=r(7040),o=r(4125),s=r(2117),a=r(7518),i=r(4705);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=i,e.exports=u},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),s=r(6e3),a=r(9916),i=r(5265);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=i,e.exports=u},3818:(e,t,r)=>{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),o=r(619),s=r(2385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=s,e.exports=a},6384:(e,t,r)=>{var n=r(8407),o=r(7465),s=r(3779),a=r(7599),i=r(4758),u=r(4309);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=s,c.prototype.get=a,c.prototype.has=i,c.prototype.set=u,e.exports=c},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7412:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[o++]=a)}return s}},7443:(e,t,r)=>{var n=r(2118);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},1196:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},4636:(e,t,r)=>{var n=r(2545),o=r(5694),s=r(1469),a=r(4144),i=r(5776),u=r(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),p=!r&&o(e),l=!r&&!p&&a(e),f=!r&&!p&&!l&&u(e),h=r||p||l||f,y=h?n(e.length,String):[],m=y.length;for(var v in e)!t&&!c.call(e,v)||h&&("length"==v||l&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,m))||y.push(v);return y}},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},2549:e=>{e.exports=function(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}},2908:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},4865:(e,t,r)=>{var n=r(9465),o=r(7813),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];s.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4037:(e,t,r)=>{var n=r(8363),o=r(3674);e.exports=function(e,t){return e&&n(t,o(t),e)}},3886:(e,t,r)=>{var n=r(8363),o=r(1704);e.exports=function(e,t){return e&&n(t,o(t),e)}},9465:(e,t,r)=>{var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},5990:(e,t,r)=>{var n=r(6384),o=r(7412),s=r(4865),a=r(4037),i=r(3886),u=r(4626),c=r(278),p=r(8805),l=r(1911),f=r(8234),h=r(6904),y=r(4160),m=r(3824),v=r(9148),b=r(8517),d=r(1469),g=r(4144),x=r(6688),_=r(3218),w=r(2928),S=r(3674),j=r(1704),O="[object Arguments]",P="[object Function]",A="[object Object]",E={};E[O]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[A]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[P]=E["[object WeakMap]"]=!1,e.exports=function e(t,r,k,R,L,$){var M,N=1&r,C=2&r,T=4&r;if(k&&(M=L?k(t,R,L,$):k(t)),void 0!==M)return M;if(!_(t))return t;var D=d(t);if(D){if(M=m(t),!N)return c(t,M)}else{var I=y(t),B=I==P||"[object GeneratorFunction]"==I;if(g(t))return u(t,N);if(I==A||I==O||B&&!L){if(M=C||B?{}:b(t),!N)return C?l(t,i(M,t)):p(t,a(M,t))}else{if(!E[I])return L?t:{};M=v(t,I,N)}}$||($=new n);var F=$.get(t);if(F)return F;$.set(t,M),w(t)?t.forEach((function(n){M.add(e(n,r,k,n,t,$))})):x(t)&&t.forEach((function(n,o){M.set(o,e(n,r,k,o,t,$))}));var U=D?void 0:(T?C?h:f:C?j:S)(t);return o(U||t,(function(n,o){U&&(n=t[o=n]),s(M,o,e(n,r,k,o,t,$))})),M}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,s=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=s},9881:(e,t,r)=>{var n=r(7816),o=r(9291)(n);e.exports=o},5865:(e,t,r)=>{var n=r(4370),o=r(9291)(n,!0);e.exports=o},1848:e=>{e.exports=function(e,t,r,n){for(var o=e.length,s=r+(n?1:-1);n?s--:++s<o;)if(t(e[s],s,e))return s;return-1}},1078:(e,t,r)=>{var n=r(2488),o=r(7285);e.exports=function e(t,r,s,a,i){var u=-1,c=t.length;for(s||(s=o),i||(i=[]);++u<c;){var p=t[u];r>0&&s(p)?r>1?e(p,r-1,s,a,i):n(i,p):a||(i[i.length]=p)}return i}},8483:(e,t,r)=>{var n=r(5063)();e.exports=n},7816:(e,t,r)=>{var n=r(8483),o=r(3674);e.exports=function(e,t){return e&&n(e,t,o)}},4370:(e,t,r)=>{var n=r(7473),o=r(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7473:(e,t,r)=>{var n=r(5063)(!0);e.exports=n},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,s=(t=n(t,e)).length;null!=e&&r<s;)e=e[o(t[r++])];return r&&r==s?e:void 0}},8866:(e,t,r)=>{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var s=t(e);return o(e)?s:n(s,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),s=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):s(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,r)=>{var n=r(1848),o=r(2722),s=r(2351);e.exports=function(e,t,r){return t==t?s(e,t,r):n(e,o,r)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),o=r(7005);e.exports=function e(t,r,s,a,i){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,s,a,e,i))}},2492:(e,t,r)=>{var n=r(6384),o=r(7114),s=r(8351),a=r(6096),i=r(4160),u=r(1469),c=r(4144),p=r(6719),l="[object Arguments]",f="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,v,b){var d=u(e),g=u(t),x=d?f:i(e),_=g?f:i(t),w=(x=x==l?h:x)==h,S=(_=_==l?h:_)==h,j=x==_;if(j&&c(e)){if(!c(t))return!1;d=!0,w=!1}if(j&&!w)return b||(b=new n),d||p(e)?o(e,t,r,m,v,b):s(e,t,x,r,m,v,b);if(!(1&r)){var O=w&&y.call(e,"__wrapped__"),P=S&&y.call(t,"__wrapped__");if(O||P){var A=O?e.value():e,E=P?t.value():t;return b||(b=new n),v(A,E,r,m,b)}}return!!j&&(b||(b=new n),a(e,t,r,m,v,b))}},5588:(e,t,r)=>{var n=r(4160),o=r(7005);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},2958:(e,t,r)=>{var n=r(6384),o=r(939);e.exports=function(e,t,r,s){var a=r.length,i=a,u=!s;if(null==e)return!i;for(e=Object(e);a--;){var c=r[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<i;){var p=(c=r[a])[0],l=e[p],f=c[1];if(u&&c[2]){if(void 0===l&&!(p in e))return!1}else{var h=new n;if(s)var y=s(l,f,p,e,t,h);if(!(void 0===y?o(f,l,3,s,h):y))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),s=r(3218),a=r(346),i=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,p=u.toString,l=c.hasOwnProperty,f=RegExp("^"+p.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||o(e))&&(n(e)?f:i).test(a(e))}},9221:(e,t,r)=>{var n=r(4160),o=r(7005);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),s=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&o(e.length)&&!!a[n(e)]}},7206:(e,t,r)=>{var n=r(1573),o=r(6432),s=r(6557),a=r(1469),i=r(9601);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):i(e)}},280:(e,t,r)=>{var n=r(5726),o=r(6916),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},313:(e,t,r)=>{var n=r(3218),o=r(5726),s=r(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=o(e),r=[];for(var i in e)("constructor"!=i||!t&&a.call(e,i))&&r.push(i);return r}},9199:(e,t,r)=>{var n=r(9881),o=r(8612);e.exports=function(e,t){var r=-1,s=o(e)?Array(e.length):[];return n(e,(function(e,n,o){s[++r]=t(e,n,o)})),s}},1573:(e,t,r)=>{var n=r(2958),o=r(1499),s=r(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},6432:(e,t,r)=>{var n=r(939),o=r(7361),s=r(9095),a=r(5403),i=r(9162),u=r(2634),c=r(327);e.exports=function(e,t){return a(e)&&i(t)?u(c(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?s(r,e):n(t,a,3)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,r)=>{var n=r(7786);e.exports=function(e){return function(t){return n(t,e)}}},107:e=>{e.exports=function(e,t,r,n,o){return o(e,(function(e,o,s){r=n?(n=!1,e):t(r,e,o,s)})),r}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),s=r(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:s;e.exports=a},4259:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},531:(e,t,r)=>{var n=r(2705),o=r(9932),s=r(1469),a=r(3448),i=n?n.prototype:void 0,u=i?i.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},5652:(e,t,r)=>{var n=r(8668),o=r(7443),s=r(1196),a=r(4757),i=r(3593),u=r(1814);e.exports=function(e,t,r){var c=-1,p=o,l=e.length,f=!0,h=[],y=h;if(r)f=!1,p=s;else if(l>=200){var m=t?null:i(e);if(m)return u(m);f=!1,p=a,y=new n}else y=t?[]:h;e:for(;++c<l;){var v=e[c],b=t?t(v):v;if(v=r||0!==v?v:0,f&&b==b){for(var d=y.length;d--;)if(y[d]===b)continue e;t&&y.push(b),h.push(v)}else p(y,b,r)||(y!==h&&y.push(b),h.push(v))}return h}},7406:(e,t,r)=>{var n=r(1811),o=r(928),s=r(292),a=r(327);e.exports=function(e,t){return t=n(t,e),null==(e=s(e,t))||delete e[a(o(t))]}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),s=r(5514),a=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:s(a(e))}},4318:(e,t,r)=>{var n=r(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4626:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?n.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}},7157:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},419:(e,t,r)=>{var n=r(2705),o=n?n.prototype:void 0,s=o?o.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},7133:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},8363:(e,t,r)=>{var n=r(4865),o=r(9465);e.exports=function(e,t,r,s){var a=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],p=s?s(r[c],e[c],c,r,e):void 0;void 0===p&&(p=e[c]),a?o(r,c,p):n(r,c,p)}return r}},8805:(e,t,r)=>{var n=r(8363),o=r(9551);e.exports=function(e,t){return n(e,o(e),t)}},1911:(e,t,r)=>{var n=r(8363),o=r(1442);e.exports=function(e,t){return n(e,o(e),t)}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},9291:(e,t,r)=>{var n=r(8612);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var s=r.length,a=t?s:-1,i=Object(r);(t?a--:++a<s)&&!1!==o(i[a],a,i););return r}}},5063:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,s=Object(t),a=n(t),i=a.length;i--;){var u=a[e?i:++o];if(!1===r(s[u],u,s))break}return t}}},3593:(e,t,r)=>{var n=r(8525),o=r(308),s=r(1814),a=n&&1/s(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},696:(e,t,r)=>{var n=r(8630);e.exports=function(e){return n(e)?void 0:e}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,r)=>{var n=r(8668),o=r(2908),s=r(4757);e.exports=function(e,t,r,a,i,u){var c=1&r,p=e.length,l=t.length;if(p!=l&&!(c&&l>p))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var y=-1,m=!0,v=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++y<p;){var b=e[y],d=t[y];if(a)var g=c?a(d,b,y,t,e,u):a(b,d,y,e,t,u);if(void 0!==g){if(g)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!s(v,t)&&(b===e||i(b,e,r,a,u)))return v.push(t)}))){m=!1;break}}else if(b!==d&&!i(b,d,r,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},8351:(e,t,r)=>{var n=r(2705),o=r(1149),s=r(7813),a=r(7114),i=r(8776),u=r(1814),c=n?n.prototype:void 0,p=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,l,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=i;case"[object Set]":var y=1&n;if(h||(h=u),e.size!=t.size&&!y)return!1;var m=f.get(e);if(m)return m==t;n|=2,f.set(e,t);var v=a(h(e),h(t),n,c,l,f);return f.delete(e),v;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,s,a,i){var u=1&r,c=n(e),p=c.length;if(p!=n(t).length&&!u)return!1;for(var l=p;l--;){var f=c[l];if(!(u?f in t:o.call(t,f)))return!1}var h=i.get(e),y=i.get(t);if(h&&y)return h==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var v=u;++l<p;){var b=e[f=c[l]],d=t[f];if(s)var g=u?s(d,b,f,t,e,i):s(b,d,f,e,t,i);if(!(void 0===g?b===d||a(b,d,r,s,i):g)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(m=!1)}return i.delete(e),i.delete(t),m}},9021:(e,t,r)=>{var n=r(5564),o=r(5357),s=r(61);e.exports=function(e){return s(o(e,void 0,n),e+"")}},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),s=r(3674);e.exports=function(e){return n(e,s,o)}},6904:(e,t,r)=>{var n=r(8866),o=r(1442),s=r(1704);e.exports=function(e){return n(e,s,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:(e,t,r)=>{var n=r(9162),o=r(3674);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var s=t[r],a=e[s];t[r]=[s,a,n(a)]}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[i]=r:delete e[i]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return s.call(e,t)})))}:o;e.exports=i},1442:(e,t,r)=>{var n=r(2488),o=r(5924),s=r(9551),a=r(479),i=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,s(e)),e=o(e);return t}:a;e.exports=i},4160:(e,t,r)=>{var n=r(8552),o=r(7071),s=r(3818),a=r(8525),i=r(577),u=r(4239),c=r(346),p="[object Map]",l="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",m=c(n),v=c(o),b=c(s),d=c(a),g=c(i),x=u;(n&&x(new n(new ArrayBuffer(1)))!=y||o&&x(new o)!=p||s&&x(s.resolve())!=l||a&&x(new a)!=f||i&&x(new i)!=h)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return y;case v:return p;case b:return l;case d:return f;case g:return h}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,r)=>{var n=r(1811),o=r(5694),s=r(1469),a=r(5776),i=r(1780),u=r(327);e.exports=function(e,t,r){for(var c=-1,p=(t=n(t,e)).length,l=!1;++c<p;){var f=u(t[c]);if(!(l=null!=e&&r(e,f)))break;e=e[f]}return l||++c!=p?l:!!(p=null==e?0:e.length)&&i(p)&&a(f,p)&&(s(e)||o(e))}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},9148:(e,t,r)=>{var n=r(4318),o=r(7157),s=r(3147),a=r(419),i=r(7133);e.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return s(e);case"[object Symbol]":return a(e)}}},8517:(e,t,r)=>{var n=r(3118),o=r(5924),s=r(5726);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:n(o(e))}},7285:(e,t,r)=>{var n=r(2705),o=r(5694),s=r(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||o(e)||!!(a&&e&&e[a])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},5403:(e,t,r)=>{var n=r(1469),o=r(3448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||a.test(e)||!s.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),s=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!s&&s in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9162:(e,t,r)=>{var n=r(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),s=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},2634:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o&&n.process,i=function(){try{return s&&s.require&&s.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,i=o(s.length-t,0),u=Array(i);++a<i;)u[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=r(u),n(e,this,c)}}},292:(e,t,r)=>{var n=r(7786),o=r(4259);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,s=n||o||Function("return this")();e.exports=s},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),s=16-(o-n);if(n=o,s>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),s=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}},2351:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(s,"$1"):r||e)})),t}));e.exports=a},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:(e,t,r)=>{var n=r(5990);e.exports=function(e){return n(e,5)}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5564:(e,t,r)=>{var n=r(1078);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},9095:(e,t,r)=>{var n=r(13),o=r(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),s=Object.prototype,a=s.hasOwnProperty,i=s.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!i.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,i=a&&a.exports===s?n.Buffer:void 0,u=(i?i.isBuffer:void 0)||o;e.exports=u},1609:(e,t,r)=>{var n=r(280),o=r(4160),s=r(5694),a=r(1469),i=r(8612),u=r(4144),c=r(5726),p=r(6719),l=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(i(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||p(e)||s(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(l.call(e,r))return!1;return!0}},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,r)=>{var n=r(5588),o=r(1717),s=r(1167),a=s&&s.isMap,i=a?o(a):n;e.exports=i},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,r)=>{var n=r(4239),o=r(5924),s=r(7005),a=Function.prototype,i=Object.prototype,u=a.toString,c=i.hasOwnProperty,p=u.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==p}},2928:(e,t,r)=>{var n=r(9221),o=r(1717),s=r(1167),a=s&&s.isSet,i=a?o(a):n;e.exports=i},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),o=r(1717),s=r(1167),a=s&&s.isTypedArray,i=a?o(a):n;e.exports=i},3674:(e,t,r)=>{var n=r(4636),o=r(280),s=r(8612);e.exports=function(e){return s(e)?n(e):o(e)}},1704:(e,t,r)=>{var n=r(4636),o=r(313),s=r(8612);e.exports=function(e){return s(e)?n(e,!0):o(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5161:(e,t,r)=>{var n=r(9932),o=r(7206),s=r(9199),a=r(1469);e.exports=function(e,t){return(a(e)?n:s)(e,o(t,3))}},6604:(e,t,r)=>{var n=r(9465),o=r(7816),s=r(7206);e.exports=function(e,t){var r={};return t=s(t,3),o(e,(function(e,o,s){n(r,o,t(e,o,s))})),r}},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},308:e=>{e.exports=function(){}},7557:(e,t,r)=>{var n=r(9932),o=r(5990),s=r(7406),a=r(1811),i=r(8363),u=r(696),c=r(9021),p=r(6904),l=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),i(e,p(e),r),c&&(r=o(r,7,u));for(var l=t.length;l--;)s(r,t[l]);return r}));e.exports=l},9601:(e,t,r)=>{var n=r(371),o=r(9152),s=r(5403),a=r(327);e.exports=function(e){return s(e)?n(a(e)):o(e)}},6579:(e,t,r)=>{var n=r(2549),o=r(5865),s=r(7206),a=r(107),i=r(1469);e.exports=function(e,t,r){var u=i(e)?n:a,c=arguments.length<3;return u(e,s(t,4),r,c,o)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},7185:(e,t,r)=>{var n=r(5652);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?n(e,void 0,t):[]}},9271:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function o(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function s(e){return"("+e+")"}function a(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function i(e){if("string"==typeof e)return"(?:"+(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function u(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function c(t,r){if(o(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var s={defaultType:t,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var a in r)e.call(r,a)&&(s[a]=r[a]);if("string"==typeof s.type&&t!==s.type)throw new Error("Type transform cannot be a string (type '"+s.type+"' for token '"+t+"')");var i=s.match;return s.match=Array.isArray(i)?i:i?[i]:[],s.match.sort((function(e,t){return n(e)&&n(t)?0:n(t)?-1:n(e)?1:t.length-e.length})),s}function p(e){return Array.isArray(e)?function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(n.include)for(var o=[].concat(n.include),s=0;s<o.length;s++)t.push({include:o[s]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));t.push(c(n.type,n))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),r=[],n=0;n<t.length;n++){var s=t[n],a=e[s],i=[].concat(a);if("include"!==s){var u=[];i.forEach((function(e){o(e)?(u.length&&r.push(c(s,u)),r.push(c(s,e)),u=[]):u.push(e)})),u.length&&r.push(c(s,u))}else for(var p=0;p<i.length;p++)r.push({include:i[p]})}return r}(e)}var l=c("error",{lineBreaks:!0,shouldThrow:!0});function f(e,t){for(var o=null,u=Object.create(null),c=!0,p=null,f=[],h=[],y=0;y<e.length;y++)e[y].fallback&&(c=!1);for(y=0;y<e.length;y++){var m=e[y];if(m.include)throw new Error("Inheritance is not allowed in stateless lexers");if(m.error||m.fallback){if(o)throw!m.fallback==!o.fallback?new Error("Multiple "+(m.fallback?"fallback":"error")+" rules not allowed (for token '"+m.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+m.defaultType+"')");o=m}var v=m.match.slice();if(c)for(;v.length&&"string"==typeof v[0]&&1===v[0].length;)u[v.shift().charCodeAt(0)]=m;if(m.pop||m.push||m.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+m.defaultType+"')");if(m.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+m.defaultType+"')")}if(0!==v.length){c=!1,f.push(m);for(var b=0;b<v.length;b++){var d=v[b];if(n(d))if(null===p)p=d.unicode;else if(p!==d.unicode&&!1===m.fallback)throw new Error("If one rule is /u then all must be")}var g=a(v.map(i)),x=new RegExp(g);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(new RegExp("|"+g).exec("").length-1>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: … ) instead");if(!m.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(s(g))}}var _=o&&o.fallback,w=r&&!_?"ym":"gm",S=r||_?"":"|";return!0===p&&(w+="u"),{regexp:new RegExp(a(h)+S,w),groups:f,fast:u,error:o||l}}function h(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var y=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};y.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},y.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},y.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},y.prototype.popState=function(){this.setState(this.stack.pop())},y.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var m=r?function(e,t){return e.exec(t)}:function(e,t){var r=e.exec(t);return 0===r[0].length?null:r};function v(){return this.value}if(y.prototype._getGroup=function(e){for(var t=this.groups.length,r=0;r<t;r++)if(void 0!==e[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},y.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var r=this.buffer;if(e!==r.length){if(a=this.fast[r.charCodeAt(e)])return this._token(a,r.charAt(e),e);var n=this.re;n.lastIndex=e;var o=m(n,r),s=this.error;if(null==o)return this._token(s,r.slice(e,r.length),e);var a=this._getGroup(o),i=o[0];return s.fallback&&o.index!==e?(this.queuedGroup=a,this.queuedText=i,this._token(s,r.slice(e,o.index),e)):this._token(a,i,e)}},y.prototype._token=function(e,t,r){var n=0;if(e.lineBreaks){var o=/\n/g,s=1;if("\n"===t)n=1;else for(;o.exec(t);)n++,s=o.lastIndex}var a={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:v,offset:r,lineBreaks:n,line:this.line,col:this.col},i=t.length;if(this.index+=i,this.line+=n,0!==n?this.col=i-s+1:this.col+=i,e.shouldThrow)throw new Error(this.formatError(a,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),a},"undefined"!=typeof Symbol&&Symbol.iterator){var b=function(e){this.lexer=e};b.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},b.prototype[Symbol.iterator]=function(){return this},y.prototype[Symbol.iterator]=function(){return new b(this)}}return y.prototype.formatError=function(e,t){if(null==e){var r=this.buffer.slice(this.index);e={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(e.line-2,1),o=e.line+2,s=String(o).length,a=function(e,t){for(var r=e.length,n=0;;){var o=e.lastIndexOf("\n",r-1);if(-1===o)break;if(r=o,++n===t)break;if(0===r)break}var s=n<t?0:r+1;return e.substring(s).split("\n")}(this.buffer,this.line-e.line+2+1).slice(0,5),i=[];i.push(t+" at line "+e.line+" col "+e.col+":"),i.push("");for(var c=0;c<a.length;c++){var p=a[c],l=n+c;i.push(u(String(l),s)+" "+p),l===e.line&&i.push(u("",s+e.col+1)+"^")}return i.join("\n")},y.prototype.clone=function(){return new y(this.states,this.state)},y.prototype.has=function(e){return!0},{compile:function(e){var t=f(p(e));return new y({start:t},"start")},states:function(e,t){var r=e.$all?p(e.$all):[];delete e.$all;var n=Object.getOwnPropertyNames(e);t||(t=n[0]);for(var o=Object.create(null),s=0;s<n.length;s++)o[g=n[s]]=p(e[g]).concat(r);for(s=0;s<n.length;s++)for(var a=o[g=n[s]],i=Object.create(null),u=0;u<a.length;u++){var c=a[u];if(c.include){var l=[u,1];if(c.include!==g&&!i[c.include]){i[c.include]=!0;var m=o[c.include];if(!m)throw new Error("Cannot include nonexistent state '"+c.include+"' (in state '"+g+"')");for(var v=0;v<m.length;v++){var b=m[v];-1===a.indexOf(b)&&l.push(b)}}a.splice.apply(a,l),u--}}var d=Object.create(null);for(s=0;s<n.length;s++){var g;d[g=n[s]]=f(o[g],!0)}for(s=0;s<n.length;s++){var x=n[s],_=d[x],w=_.groups;for(u=0;u<w.length;u++)h(w[u],x,d);var S=Object.getOwnPropertyNames(_.fast);for(u=0;u<S.length;u++)h(_.fast[S[u]],x,d)}return new y(d,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,r=t?new Map:Object.create(null),n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var s=n[o],a=e[s];(Array.isArray(a)?a:[a]).forEach((function(e){if("string"!=typeof e)throw new Error("keyword must be string (in keyword '"+s+"')");t?r.set(e,s):r[e]=s}))}return function(e){return t?r.get(e):r[e]}}}})?r.apply(t,[]):r)||(e.exports=n)},9654:function(e){var t;t=function(){function e(t,r,n){return this.id=++e.highestId,this.name=t,this.symbols=r,this.postprocess=n,this}function t(e,t,r,n){this.rule=e,this.dot=t,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function r(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,t){this.rules=e,this.start=t||this.rules[0].name;var r=this.byName={};this.rules.forEach((function(e){r.hasOwnProperty(e.name)||(r[e.name]=[]),r[e.name].push(e)}))}function o(){this.reset("")}function s(e,t,s){if(e instanceof n){var a=e;s=t}else a=n.fromCompiled(e,t);for(var i in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},s||{})this.options[i]=s[i];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(a,0);this.table=[u],u.wants[a.start]=[],u.predict(a.start),u.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";throw new Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var r=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=e,r.isComplete&&(r.data=r.build(),r.right=void 0),r},t.prototype.build=function(){var e=[],t=this;do{e.push(t.right.data),t=t.left}while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,s.fail))},r.prototype.process=function(e){for(var t=this.states,r=this.wants,n=this.completed,o=0;o<t.length;o++){var a=t[o];if(a.isComplete){if(a.finish(),a.data!==s.fail){for(var i=a.wantedBy,u=i.length;u--;){var c=i[u];this.complete(c,a)}if(a.reference===this.index){var p=a.rule.name;(this.completed[p]=this.completed[p]||[]).push(a)}}}else{if("string"!=typeof(p=a.rule.symbols[a.dot])){this.scannable.push(a);continue}if(r[p]){if(r[p].push(a),n.hasOwnProperty(p)){var l=n[p];for(u=0;u<l.length;u++){var f=l[u];this.complete(a,f)}}}else r[p]=[a],this.predict(p)}}},r.prototype.predict=function(e){for(var r=this.grammar.byName[e]||[],n=0;n<r.length;n++){var o=r[n],s=this.wants[e],a=new t(o,0,this.index,s);this.states.push(a)}},r.prototype.complete=function(e,t){var r=e.nextState(t);this.states.push(r)},n.fromCompiled=function(t,r){var o=t.Lexer;t.ParserStart&&(r=t.ParserStart,t=t.ParserRules);var s=new n(t=t.map((function(t){return new e(t.name,t.symbols,t.postprocess)})),r);return s.lexer=o,s},o.prototype.reset=function(e,t){this.buffer=e,this.index=0,this.line=t?t.line:1,this.lastLineBreak=t?-t.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var e=this.buffer[this.index++];return"\n"===e&&(this.line+=1,this.lastLineBreak=this.index),{value:e}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(e,t){var r=this.buffer;if("string"==typeof r){var n=r.split("\n").slice(Math.max(0,this.line-5),this.line),o=r.indexOf("\n",this.index);-1===o&&(o=r.length);var s=this.index-this.lastLineBreak,a=String(this.line).length;return t+=" at line "+this.line+" col "+s+":\n\n",(t+=n.map((function(e,t){return i(this.line-n.length+t+1,a)+" "+e}),this).join("\n"))+"\n"+i("",a+s)+"^\n"}return t+" at index "+(this.index-1);function i(e,t){var r=String(e);return Array(t-r.length+1).join(" ")+r}},s.fail={},s.prototype.feed=function(e){var t,n=this.lexer;for(n.reset(e,this.lexerState);;){try{if(!(t=n.next()))break}catch(e){var s=new r(this.grammar,this.current+1);throw this.table.push(s),(u=new Error(this.reportLexerError(e))).offset=this.current,u.token=e.token,u}var a=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var i=this.current+1;s=new r(this.grammar,i),this.table.push(s);for(var u,c=void 0!==t.text?t.text:t.value,p=n.constructor===o?t.value:t,l=a.scannable,f=l.length;f--;){var h=l[f],y=h.rule.symbols[h.dot];if(y.test?y.test(p):y.type?y.type===t.type:y.literal===c){var m=h.nextState({data:p,token:t,isToken:!0,reference:i-1});s.states.push(m)}}if(s.process(),0===s.states.length)throw(u=new Error(this.reportError(t))).offset=this.current,u.token=t,u;this.options.keepHistory&&(a.lexerState=n.save()),this.current++}return a&&(this.lexerState=n.save()),this.results=this.finish(),this},s.prototype.reportLexerError=function(e){var t,r,n=e.token;return n?(t="input "+JSON.stringify(n.text[0])+" (lexer error)",r=this.lexer.formatError(n,"Syntax error")):(t="input (lexer error)",r=e.message),this.reportErrorCommon(r,t)},s.prototype.reportError=function(e){var t=(e.type?e.type+" token: ":"")+JSON.stringify(void 0!==e.value?e.value:e),r=this.lexer.formatError(e,"Syntax error");return this.reportErrorCommon(r,t)},s.prototype.reportErrorCommon=function(e,t){var r=[];r.push(e);var n=this.table.length-2,o=this.table[n],s=o.states.filter((function(e){var t=e.rule.symbols[e.dot];return t&&"string"!=typeof t}));return 0===s.length?(r.push("Unexpected "+t+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(o.states,r)):(r.push("Unexpected "+t+". Instead, I was expecting to see one of the following:\n"),s.map((function(e){return this.buildFirstStateStack(e,[])||[e]}),this).forEach((function(e){var t=e[0],n=t.rule.symbols[t.dot],o=this.getSymbolDisplay(n);r.push("A "+o+" based on:"),this.displayStateStack(e,r)}),this)),r.push(""),r.join("\n")},s.prototype.displayStateStack=function(e,t){for(var r,n=0,o=0;o<e.length;o++){var s=e[o],a=s.rule.toString(s.dot);a===r?n++:(n>0&&t.push(" ^ "+n+" more lines identical to this"),n=0,t.push(" "+a)),r=a}},s.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw new Error("Unknown symbol type: "+e)}}(e)},s.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var r=e.wantedBy[0],n=[e].concat(t),o=this.buildFirstStateStack(r,n);return null===o?null:[e].concat(o)},s.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},s.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},s.prototype.rewind=function(e){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},s.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(r){r.rule.name===t&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==s.fail&&e.push(r)})),e.map((function(e){return e.data}))},{Parser:s,Grammar:n,Rule:e}},e.exports?e.exports=t():this.nearley=t()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{parseBooleanExpression:()=>y,parseChemistryExpression:()=>x,parseExpression:()=>A,parseMathsExpression:()=>p,parseNuclearExpression:()=>P});var e=r(7185),t=r.n(e),o=r(8446),s=r.n(o),a=r(9654),i=r(1647),u=r.n(i),c=a.Grammar.fromCompiled(u());function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new a.Parser(c),n=null;try{n=t()(r.feed(e).results,s())}catch(e){console.log(e),n={error:e}}return n}var l=r(8326),f=r.n(l),h=a.Grammar.fromCompiled(f());function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new a.Parser(h),n=null;try{n=t()(r.feed(e).results,s())}catch(e){console.log(e),n={error:e}}return n}var m=r(5338),v=r.n(m);function b(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=a.Grammar.fromCompiled(v());function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new a.Parser(g),n=null;try{n=t()(r.feed(e).results,s())}catch(e){if("Error"===e.name){var o=e.token,i=e.message.match(/(?<=A ).*(?= based on:)/g),u=null!==i?i.map((function(e){return e.replace(/\s+token/i,"")})):[];return[{result:{type:"error",value:o.value,expected:b(new Set(u)),loc:(o.line,o.col)}}]}return console.log(e.message),[{result:{type:e.name,value:e.message,expected:[],loc:0}}]}return n}var _=r(5459),w=r.n(_);function S(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=a.Grammar.fromCompiled(w());function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new a.Parser(O),n=null;try{n=t()(r.feed(e).results,s())}catch(e){if("Error"===e.name){var o=e.token,i=e.message.match(/(?<=A ).*(?= based on:)/g),u=null!==i?i.map((function(e){return e.replace(/\s+token/i,"")})):[];return[{result:{type:"error",value:o.value,expected:S(new Set(u)),loc:(o.line,o.col)}}]}return console.log(e.message),[{result:{type:e.name,value:e.message,expected:[],loc:0}}]}return n}var A=p})(),n})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["inequality-grammar"]=e():t["inequality-grammar"]=e()}(self,(()=>(()=>{var t={8326:(t,e,r)=>{!function(){function e(t){return t[0]}var n=i(r(361)),o=(i(r(1609)),i(r(8446)),i(r(5161)),i(r(6604)),i(r(7557)),i(r(6579)),r(353));function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=null;try{c=window}catch(t){c={innerWidth:800,innerHeight:600}}var l=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]),i=(0,o._findRightmost)(e),s="";switch(t[2].toLowerCase()){case"AND":case"and":case"&":case"∧":case".":s="and";break;case"OR":case"or":case"|":case"∨":case"v":case"+":s="or";break;case"XOR":case"xor":case"^":case"⊻":s="xor";break;default:s=""}return i.children.right={type:"LogicBinaryOperation",properties:{operation:s},children:{right:r}},e},p=function(t){return{type:"LogicNot",children:{argument:t[2]}}},f={Lexer:void 0,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:c.innerWidth/4,y:c.innerHeight/3},e.expression={latex:"",python:""},(0,o._simplify)(e)}},{name:"main",symbols:["_","AS","_",{literal:"="},"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),i={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,o._findRightmost)(e).children.right=i,a(a({},e=(0,o._simplify)(e)),{},{position:{x:c.innerWidth/4,y:c.innerHeight/3},expression:{latex:"",python:""}})}},{name:"AS$string$1",symbols:[{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$1","_","MD"],postprocess:l},{name:"AS$string$2",symbols:[{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$2","_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"|"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"∨"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"v"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"+"},"_","MD"],postprocess:l},{name:"AS",symbols:["MD"],postprocess:e},{name:"MD$string$1",symbols:[{literal:"A"},{literal:"N"},{literal:"D"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$1","_","XOR"],postprocess:l},{name:"MD$string$2",symbols:[{literal:"a"},{literal:"n"},{literal:"d"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$2","_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"&"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"∧"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"."},"_","XOR"],postprocess:l},{name:"MD",symbols:["XOR"],postprocess:e},{name:"XOR$string$1",symbols:[{literal:"X"},{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$1","_","P"],postprocess:l},{name:"XOR$string$2",symbols:[{literal:"x"},{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$2","_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"^"},"_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"⊻"},"_","P"],postprocess:l},{name:"XOR",symbols:["P"],postprocess:e},{name:"P",symbols:[{literal:"("},"_","AS","_",{literal:")"}],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:t[2]}}}},{name:"P",symbols:["N"],postprocess:e},{name:"N$string$1",symbols:[{literal:"N"},{literal:"O"},{literal:"T"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$1","_","P"],postprocess:p},{name:"N$string$2",symbols:[{literal:"n"},{literal:"o"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$2","_","P"],postprocess:p},{name:"N",symbols:[{literal:"!"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"~"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"¬"},"_","P"],postprocess:p},{name:"N",symbols:["L"],postprocess:e},{name:"L$string$1",symbols:[{literal:"t"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$1"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$2",symbols:[{literal:"T"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$2"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"T"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"1"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$3",symbols:[{literal:"f"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$3"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L$string$4",symbols:[{literal:"F"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$4"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"F"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"0"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[/[A-EG-SU-Z]/],postprocess:function(t){return{type:"Symbol",properties:{letter:t[0]},children:{}}}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(t){return null}}],ParserStart:"main"};void 0!==t.exports?t.exports=f:window.grammar=f}()},1647:(t,e,r)=>{!function(){function e(t){return t[0]}var n=c(r(361)),o=(c(r(1609)),c(r(8446))),i=c(r(5161)),s=c(r(7557)),a=c(r(6579)),u=r(353);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"},d=r(9271).compile({Int:/[0-9]+/,IdMod:/[a-zA-ZΑ-Ωα-ω]+_(?:prime)/,Id:{match:/[a-zA-ZΑ-Ωα-ω]+(?:_[a-zA-Z0-9]+)?/,type:function(t){for(var e=new Map,r=Object.getOwnPropertyNames(t),n=function(n){var o=r[n],i=t[o];(Array.isArray(i)?i:[i]).forEach((function(t){if("string"!=typeof t)throw new Error("keyword must be string (in keyword '"+o+"')");e.set(t,o)}))},o=0;o<r.length;o++)n(o);return function(t){return e.get(t)}}({TrigFn:["cos","sin","tan","cosec","sec","cot","cosh","sinh","tanh","cosech","sech","coth","arccos","arcsin","arctan","arccosec","arcsec","arccot","arccosh","arcsinh","arctanh","arccosech","arcsech","arccoth","acos","asin","atan","acosec","asec","acot","acosh","asinh","atanh","acosech","asech","acoth"],Fn:["ln","abs","factorial"],Log:["log"],Radix:["sqrt"],Derivative:["diff","Derivative"]})},Rel:["=","==","<","<=",">",">="],Factorial:["!"],PlusMinus:["+","-","±","-","-"],Pow:["**","^"],Mul:["*","×"],Div:["/","÷"],Lparen:"(",Rparen:")",Comma:",",c:/./}),b=null;try{b=window}catch(t){b={innerWidth:800,innerHeight:600}}var m=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new RegExp("^(?:a|arc)([^r].+)$"),i=t.text,s=!1;o.test(i)&&(i=o.exec(i)[1],s=1);var a,u=(0,n.default)(e),c=(0,n.default)(r);if(a=null===c?{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{argument:u}}:{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{superscript:c,argument:u}},s)if(a.children.superscript){var l=(0,n.default)(a.children.superscript),p=(0,n.default)(a);p.children.superscript={type:"Num",properties:{significand:"-1"},children:{}},a={type:"Brackets",properties:{type:"round"},children:{argument:p,superscript:l}}}else a.children.superscript={type:"Num",properties:{significand:"-1"},children:{}};return a},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"Fn",properties:{name:"log",allowSubscript:!0,innerSuperscript:!1},children:{argument:t}};return null!==e?"Num"!==e.type&&"Symbol"!==e.type||(r.children.subscript=(0,n.default)(e)):r.children.subscript={type:"Num",properties:{significand:"10"},children:{}},r},x=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]);return(0,u._findRightmost)(e).children.right=r,e},_=function(t){var e=(0,i.default)(t.split(""),(function(t){return/[0-9]/.test(t)?w([{text:t}]):{type:"Symbol",properties:{letter:t},children:{}}}));return(0,a.default)(e,(function(t,e){return e.children.right=t,e}))},w=function(t){return{type:"Num",properties:{significand:t[0].text},children:{}}},j={Lexer:d,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:b.innerWidth/4,y:b.innerHeight/3},e.expression={latex:"",python:""},(0,u._simplify)(e)}},{name:"main",symbols:["_","AS","_",d.has("Rel")?{type:"Rel"}:Rel,"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),o={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,u._findRightmost)(e).children.right=o,h(h({},e=(0,u._simplify)(e)),{},{position:{x:b.innerWidth/4,y:b.innerHeight/3},expression:{latex:"",python:""}})}},{name:"P",symbols:[d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:(0,n.default)(t[2])}}}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[3],null)}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Pow")?{type:"Pow"}:Pow,"NUM",d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[5],t[2])}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen,d.has("Pow")?{type:"Pow"}:Pow,"NUM"],postprocess:function(t){return m(t[0],t[3],t[7])}},{name:"P",symbols:[d.has("Derivative")?{type:"Derivative"}:Derivative,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","ARGS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t[3]}},r=t[7].reduce((function(t,e){if(0==t.length)return[{object:e,order:1}];var r=t[t.length-1];return"Num"===e.type?(r.order=parseInt(e.properties.significand),[].concat(l(t.slice(0,t.length-1)),[r])):(0,o.default)(e,r.object)?(r.order=r.order+1,[].concat(l(t.slice(0,t.length-1)),[r])):[].concat(l(t),[{object:e,order:1}])}),[]).map((function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t.object}};return t.order>1&&(e.children.order={type:"Num",properties:{significand:"".concat(t.order)},children:{}}),e})),n=r.reduce((function(t,e){return t+parseInt(e.children.order?e.children.order.properties.significand:"1")}),0);return n>1&&(e.children.order={type:"Num",properties:{significand:"".concat(n)},children:{}}),{type:"Derivative",children:{numerator:e,denominator:(0,a.default)(r,(function(t,e){return e.children.right=t,e}))}}}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","VAR","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","NUM","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Radix")?{type:"Radix"}:Radix,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Radix",children:{argument:(0,n.default)(t[3])}}}},{name:"P",symbols:[d.has("Fn")?{type:"Fn"}:Fn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e=(0,n.default)(t[3]);return"abs"===t[0].text?{type:"AbsoluteValue",children:{argument:e}}:"factorial"===t[0].text?{type:"UnaryOperation",properties:{type:"postfix",operation:"!"},children:{argument:e}}:{type:"Fn",properties:{name:t[0].text,allowSubscript:"ln"!==t[0].text,innerSuperscript:!1},children:{argument:e}}}},{name:"P",symbols:["VAR"],postprocess:e},{name:"P",symbols:["NUM"],postprocess:e},{name:"P",symbols:[d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","P"],postprocess:function(t){return{type:"BinaryOperation",properties:{operation:t[0].text},children:{right:t[2]}}}},{name:"P",symbols:["P","_",d.has("Factorial")?{type:"Factorial"}:Factorial],postprocess:function(t){return{type:"UnaryOperation",properties:{type:"postfix",operation:t[2].text},children:{argument:t[0]}}}},{name:"ARGS",symbols:["AS"],postprocess:function(t){return[t[0]]}},{name:"ARGS",symbols:["ARGS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","AS"],postprocess:function(t){return t[0].concat(t[4])}},{name:"E",symbols:["P","_",d.has("Pow")?{type:"Pow"}:Pow,"_","E"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]),o=(0,u._findRightmost)(e);if("BinaryOperation"===r.type){var i=(0,n.default)(r.children.right.children.right);i&&(e.children.right=i,r.children.right.children=(0,s.default)(r.children.right.children,"right"))}else{var a=(0,n.default)(r.children.right);a&&(o.children.right=a,r.children=(0,s.default)(r.children,"right"))}if(!(["Fn","Log","TrigFn"].indexOf(e.type)>-1))return o.children.superscript=r,e;switch(e.properties.name){case"ln":case"log":return{type:"Brackets",properties:{type:"round"},children:{argument:e,superscript:r}};default:return o.children.superscript=r,e}}},{name:"E",symbols:["P"],postprocess:e},{name:"MD",symbols:["MD","_",d.has("Mul")?{type:"Mul"}:Mul,"_","E"],postprocess:x},{name:"MD",symbols:["MD","_",d.has("Div")?{type:"Div"}:Div,"_","E"],postprocess:function(t){var e=null;"BinaryOperation"===t[4].type?(e=(0,n.default)(t[4].children.right.children.right),t[4].children.right.children=(0,s.default)(t[4].children.right.children,"right")):(e=(0,n.default)(t[4].children.right),t[4].children=(0,s.default)(t[4].children,"right"));var r=(0,n.default)(t[0]),o=(0,u._rightChainToArray)(r).map((function(t){return t.children=(0,s.default)(t.children,"right"),t})),i={type:"Fraction",children:{numerator:o.pop(),denominator:(0,n.default)(t[4])}};return e&&(i.children.right=e),o.length>0?(o[o.length-1].children.right=i,o.reduceRight((function(t,e){return e.children.right=t,e}))):i}},{name:"MD",symbols:["MD","_","E"],postprocess:x},{name:"MD",symbols:["E"],postprocess:e},{name:"AS",symbols:["AS","_",d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","MD"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]);return(0,u._findRightmost)(e).children.right={type:"BinaryOperation",properties:{operation:t[2].text},children:{right:r}},e}},{name:"AS",symbols:["MD"],postprocess:e},{name:"VAR",symbols:[d.has("Id")?{type:"Id"}:Id],postprocess:function t(e){var r=Object.keys(v),n=e[0].text.split("_"),o=["[a-zA-Z]"].concat(r).join("|"),i=new RegExp("^((?:d|D)(?:elta)?)(".concat(o,")$")),s=n[0].match(i);if(s)return{type:"Differential",properties:{letter:v[s[1]]||s[1]},children:{argument:t([{text:e[0].text.substring(s[1].length)}])}};r.indexOf(n[0])>-1&&(n[0]=v[n[0]]);var a=_(n[0]);if(n.length>1){r.indexOf(n[1])>-1&&(n[1]=v[n[1]]);var c=_(n[1]);(0,u._findRightmost)(a).children.subscript=c}return a}},{name:"VAR",symbols:[d.has("IdMod")?{type:"IdMod"}:IdMod],postprocess:function(t){var e=Object.keys(v),r=t[0].text.split("_");e.indexOf(r[0])>-1&&(r[0]=v[r[0]]);var n=_(r[0]);return(0,u._findRightmost)(n).properties.modifier=r[1],n}},{name:"NUM",symbols:[d.has("Int")?{type:"Int"}:Int],postprocess:w},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=j:window.grammar=j}()},353:(t,e,r)=>{"use strict";r.r(e),r.d(e,{_findRightmost:()=>p,_rightChainToArray:()=>l,_safeToRemove:()=>f,_simplify:()=>h}),r(361);var n=r(1609),o=r.n(n),i=(r(8446),r(5161),r(6604)),s=r.n(i),a=r(7557),u=r.n(a);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(6579);var l=function(t){for(var e=t,r=[e];e.children.right;)e=e.children.right,r=[].concat(function(t){if(Array.isArray(t))return c(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]);var n;return r},p=function(t){for(var e=t;e.children.right;)e=e.children.right;return e},f=function(t){return t&&"Brackets"===t.type&&o()(u()(t.children,"argument"))},h=function t(e){if(e.children=s()(e.children,(function(e,r,n){return t(e)})),"Brackets"===e.type||"Fn"===e.type){var r=e.children.argument;f(r)&&(e.children.argument=r.children.argument)}if("Fraction"===e.type){var n=e.children.numerator;f(n)&&(e.children.numerator=n.children.argument);var o=e.children.denominator;f(o)&&(e.children.denominator=o.children.argument)}var i=e.children.superscript;return f(i)&&(e.children.superscript=i.children.argument),e}},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),s=r(1327),a=r(1866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,r)=>{var n=r(7040),o=r(4125),i=r(2117),s=r(7518),a=r(4705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),s=r(9916),a=r(5265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},6384:(t,e,r)=>{var n=r(8407),o=r(7465),i=r(3779),s=r(7599),a=r(4758),u=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}},7443:(t,e,r)=>{var n=r(2118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4636:(t,e,r)=>{var n=r(2545),o=r(5694),i=r(1469),s=r(4144),a=r(5776),u=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),p=!r&&!l&&s(t),f=!r&&!l&&!p&&u(t),h=r||l||p||f,y=h?n(t.length,String):[],v=y.length;for(var d in t)!e&&!c.call(t,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||f&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,v))||y.push(d);return y}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2549:t=>{t.exports=function(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4865:(t,e,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];i.call(t,e)&&o(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),i=r(4865),s=r(4037),a=r(3886),u=r(4626),c=r(278),l=r(8805),p=r(1911),f=r(8234),h=r(6904),y=r(4160),v=r(3824),d=r(9148),b=r(8517),m=r(1469),g=r(4144),x=r(6688),_=r(3218),w=r(2928),j=r(3674),O=r(1704),S="[object Arguments]",A="[object Function]",P="[object Object]",k={};k[S]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[A]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,R,E,L,$){var M,D=1&r,T=2&r,F=4&r;if(R&&(M=L?R(e,E,L,$):R(e)),void 0!==M)return M;if(!_(e))return e;var N=m(e);if(N){if(M=v(e),!D)return c(e,M)}else{var I=y(e),B=I==A||"[object GeneratorFunction]"==I;if(g(e))return u(e,D);if(I==P||I==S||B&&!L){if(M=T||B?{}:b(e),!D)return T?p(e,a(M,e)):l(e,s(M,e))}else{if(!k[I])return L?e:{};M=d(e,I,D)}}$||($=new n);var C=$.get(e);if(C)return C;$.set(e,M),w(e)?e.forEach((function(n){M.add(t(n,r,R,n,e,$))})):x(e)&&e.forEach((function(n,o){M.set(o,t(n,r,R,o,e,$))}));var z=N?void 0:(F?T?h:f:T?O:j)(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(M,o,t(n,r,R,o,e,$))})),M}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},9881:(t,e,r)=>{var n=r(7816),o=r(9291)(n);t.exports=o},5865:(t,e,r)=>{var n=r(4370),o=r(9291)(n,!0);t.exports=o},1848:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},1078:(t,e,r)=>{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,s,a){var u=-1,c=e.length;for(i||(i=o),a||(a=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,s,a):n(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},4370:(t,e,r)=>{var n=r(7473),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7473:(t,e,r)=>{var n=r(5063)(!0);t.exports=n},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),s=r(6096),a=r(4160),u=r(1469),c=r(4144),l=r(6719),p="[object Arguments]",f="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=u(t),g=u(e),x=m?f:a(t),_=g?f:a(e),w=(x=x==p?h:x)==h,j=(_=_==p?h:_)==h,O=x==_;if(O&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(O&&!w)return b||(b=new n),m||l(t)?o(t,e,r,v,d,b):i(t,e,x,r,v,d,b);if(!(1&r)){var S=w&&y.call(t,"__wrapped__"),A=j&&y.call(e,"__wrapped__");if(S||A){var P=S?t.value():t,k=A?e.value():e;return b||(b=new n),d(P,k,r,v,b)}}return!!O&&(b||(b=new n),s(t,e,r,v,d,b))}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var s=r.length,a=s,u=!i;if(null==t)return!a;for(t=Object(t);s--;){var c=r[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=r[s])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var h=new n;if(i)var y=i(p,f,l,t,e,h);if(!(void 0===y?o(f,p,3,i,h):y))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),s=r(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:a).test(s(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),s=r(1469),a=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):n(t):a(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),i=r(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},9199:(t,e,r)=>{var n=r(9881),o=r(8612);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),s=r(5403),a=r(9162),u=r(2634),c=r(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(r){var s=o(r,t);return void 0===s&&s===e?i(r,t):n(e,s,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},107:t=>{t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=s},4259:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),o=r(9932),i=r(1469),s=r(3448),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),s=r(4757),a=r(3593),u=r(1814);t.exports=function(t,e,r){var c=-1,l=o,p=t.length,f=!0,h=[],y=h;if(r)f=!1,l=i;else if(p>=200){var v=e?null:a(t);if(v)return u(v);f=!1,l=s,y=new n}else y=e?[]:h;t:for(;++c<p;){var d=t[c],b=e?e(d):d;if(d=r||0!==d?d:0,f&&b==b){for(var m=y.length;m--;)if(y[m]===b)continue t;e&&y.push(b),h.push(d)}else l(y,b,r)||(y!==h&&y.push(b),h.push(d))}return h}},7406:(t,e,r)=>{var n=r(1811),o=r(928),i=r(292),s=r(327);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[s(o(e))]}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),s=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(s(t))}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},8363:(t,e,r)=>{var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var s=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),s?o(r,c,l):n(r,c,l)}return r}},8805:(t,e,r)=>{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,r)=>{var n=r(8612);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,s=e?i:-1,a=Object(r);(e?s--:++s<i)&&!1!==o(a[s],s,a););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),s=n(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===r(i[u],u,i))break}return e}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),s=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=s},696:(t,e,r)=>{var n=r(8630);t.exports=function(t){return n(t)?void 0:t}},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,s,a,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),h=u.get(e);if(f&&h)return f==e&&h==t;var y=-1,v=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y<l;){var b=t[y],m=e[y];if(s)var g=c?s(m,b,y,e,t,u):s(b,m,y,t,e,u);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||a(b,t,r,s,u)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!a(b,m,r,s,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},8351:(t,e,r)=>{var n=r(2705),o=r(1149),i=r(7813),s=r(7114),a=r(8776),u=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var y=1&n;if(h||(h=u),t.size!=e.size&&!y)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var d=s(h(t),h(e),n,c,p,f);return f.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,s,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:o.call(e,f)))return!1}var h=a.get(t),y=a.get(e);if(h&&y)return h==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var d=u;++p<l;){var b=t[f=c[p]],m=e[f];if(i)var g=u?i(m,b,f,e,t,a):i(b,m,f,t,e,a);if(!(void 0===g?b===m||s(b,m,r,i,a):g)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(v=!1)}return a.delete(t),a.delete(e),v}},9021:(t,e,r)=>{var n=r(5564),o=r(5357),i=r(61);t.exports=function(t){return i(o(t,void 0,n),t+"")}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],s=t[i];e[r]=[i,s,n(s)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=s.call(t);return n&&(e?t[a]=r:delete t[a]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},1442:(t,e,r)=>{var n=r(2488),o=r(5924),i=r(9551),s=r(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:s;t.exports=a},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),s=r(8525),a=r(577),u=r(4239),c=r(346),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",v=c(n),d=c(o),b=c(i),m=c(s),g=c(a),x=u;(n&&x(new n(new ArrayBuffer(1)))!=y||o&&x(new o)!=l||i&&x(i.resolve())!=p||s&&x(new s)!=f||a&&x(new a)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return y;case d:return l;case b:return p;case m:return f;case g:return h}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),s=r(5776),a=r(1780),u=r(327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(i(t)||o(t))}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),i=r(3147),s=r(419),a=r(7133);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return s(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},5403:(t,e,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&n.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,a=o(i.length-e,0),u=Array(a);++s<a;)u[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=r(u),n(t,this,c)}}},292:(t,e,r)=>{var n=r(7786),o=r(4259);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},5514:(t,e,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=s},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5564:(t,e,r)=>{var n=r(1078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;t.exports=u},1609:(t,e,r)=>{var n=r(280),o=r(4160),i=r(5694),s=r(1469),a=r(8612),u=r(4144),c=r(5726),l=r(6719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),i=r(1167),s=i&&i.isMap,a=s?o(s):n;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,r)=>{var n=r(4239),o=r(5924),i=r(7005),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),i=r(1167),s=i&&i.isSet,a=s?o(s):n;t.exports=a},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,r)=>{var n=r(9932),o=r(7206),i=r(9199),s=r(1469);t.exports=function(t,e){return(s(t)?n:i)(t,o(e,3))}},6604:(t,e,r)=>{var n=r(9465),o=r(7816),i=r(7206);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},308:t=>{t.exports=function(){}},7557:(t,e,r)=>{var n=r(9932),o=r(5990),i=r(7406),s=r(1811),a=r(8363),u=r(696),c=r(9021),l=r(6904),p=c((function(t,e){var r={};if(null==t)return r;var c=!1;e=n(e,(function(e){return e=s(e,t),c||(c=e.length>1),e})),a(t,l(t),r),c&&(r=o(r,7,u));for(var p=e.length;p--;)i(r,e[p]);return r}));t.exports=p},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),s=r(327);t.exports=function(t){return i(t)?n(s(t)):o(t)}},6579:(t,e,r)=>{var n=r(2549),o=r(5865),i=r(7206),s=r(107),a=r(1469);t.exports=function(t,e,r){var u=a(t)?n:s,c=arguments.length<3;return u(t,i(e,4),r,c,o)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},7185:(t,e,r)=>{var n=r(5652);t.exports=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?n(t,void 0,e):[]}},9271:function(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(t){return t&&"[object RegExp]"===e.call(t)}function o(t){return t&&"object"==typeof t&&!n(t)&&!Array.isArray(t)}function i(t){return"("+t+")"}function s(t){return t.length?"(?:"+t.map((function(t){return"(?:"+t+")"})).join("|")+")":"(?!)"}function a(t){if("string"==typeof t)return"(?:"+(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(t)){if(t.ignoreCase)throw new Error("RegExp /i flag not allowed");if(t.global)throw new Error("RegExp /g flag is implied");if(t.sticky)throw new Error("RegExp /y flag is implied");if(t.multiline)throw new Error("RegExp /m flag is implied");return t.source}throw new Error("Not a pattern: "+t)}function u(e,r){if(o(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var i={defaultType:e,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)t.call(r,s)&&(i[s]=r[s]);if("string"==typeof i.type&&e!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+e+"')");var a=i.match;return i.match=Array.isArray(a)?a:a?[a]:[],i.match.sort((function(t,e){return n(t)&&n(e)?0:n(e)?-1:n(t)?1:e.length-t.length})),i}function c(t){return Array.isArray(t)?function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.include)for(var o=[].concat(n.include),i=0;i<o.length;i++)e.push({include:o[i]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));e.push(u(n.type,n))}}return e}(t):function(t){for(var e=Object.getOwnPropertyNames(t),r=[],n=0;n<e.length;n++){var i=e[n],s=t[i],a=[].concat(s);if("include"!==i){var c=[];a.forEach((function(t){o(t)?(c.length&&r.push(u(i,c)),r.push(u(i,t)),c=[]):c.push(t)})),c.length&&r.push(u(i,c))}else for(var l=0;l<a.length;l++)r.push({include:a[l]})}return r}(t)}var l=u("error",{lineBreaks:!0,shouldThrow:!0});function p(t,e){for(var o=null,u=Object.create(null),c=!0,p=null,f=[],h=[],y=0;y<t.length;y++)t[y].fallback&&(c=!1);for(y=0;y<t.length;y++){var v=t[y];if(v.include)throw new Error("Inheritance is not allowed in stateless lexers");if(v.error||v.fallback){if(o)throw!v.fallback==!o.fallback?new Error("Multiple "+(v.fallback?"fallback":"error")+" rules not allowed (for token '"+v.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+v.defaultType+"')");o=v}var d=v.match.slice();if(c)for(;d.length&&"string"==typeof d[0]&&1===d[0].length;)u[d.shift().charCodeAt(0)]=v;if(v.pop||v.push||v.next){if(!e)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+v.defaultType+"')");if(v.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+v.defaultType+"')")}if(0!==d.length){c=!1,f.push(v);for(var b=0;b<d.length;b++){var m=d[b];if(n(m))if(null===p)p=m.unicode;else if(p!==m.unicode&&!1===v.fallback)throw new Error("If one rule is /u then all must be")}var g=s(d.map(a)),x=new RegExp(g);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(new RegExp("|"+g).exec("").length-1>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: … ) instead");if(!v.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(i(g))}}var _=o&&o.fallback,w=r&&!_?"ym":"gm",j=r||_?"":"|";return!0===p&&(w+="u"),{regexp:new RegExp(s(h)+j,w),groups:f,fast:u,error:o||l}}function f(t,e,r){var n=t&&(t.push||t.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+t.defaultType+"' of state '"+e+"')");if(t&&t.pop&&1!=+t.pop)throw new Error("pop must be 1 (in token '"+t.defaultType+"' of state '"+e+"')")}var h=function(t,e){this.startState=e,this.states=t,this.buffer="",this.stack=[],this.reset()};h.prototype.reset=function(t,e){return this.buffer=t||"",this.index=0,this.line=e?e.line:1,this.col=e?e.col:1,this.queuedToken=e?e.queuedToken:null,this.queuedThrow=e?e.queuedThrow:null,this.setState(e?e.state:this.startState),this.stack=e&&e.stack?e.stack.slice():[],this},h.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},h.prototype.setState=function(t){if(t&&this.state!==t){this.state=t;var e=this.states[t];this.groups=e.groups,this.error=e.error,this.re=e.regexp,this.fast=e.fast}},h.prototype.popState=function(){this.setState(this.stack.pop())},h.prototype.pushState=function(t){this.stack.push(this.state),this.setState(t)};var y=r?function(t,e){return t.exec(e)}:function(t,e){var r=t.exec(e);return 0===r[0].length?null:r};function v(){return this.value}if(h.prototype._getGroup=function(t){for(var e=this.groups.length,r=0;r<e;r++)if(void 0!==t[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},h.prototype.next=function(){var t=this.index;if(this.queuedGroup){var e=this._token(this.queuedGroup,this.queuedText,t);return this.queuedGroup=null,this.queuedText="",e}var r=this.buffer;if(t!==r.length){if(s=this.fast[r.charCodeAt(t)])return this._token(s,r.charAt(t),t);var n=this.re;n.lastIndex=t;var o=y(n,r),i=this.error;if(null==o)return this._token(i,r.slice(t,r.length),t);var s=this._getGroup(o),a=o[0];return i.fallback&&o.index!==t?(this.queuedGroup=s,this.queuedText=a,this._token(i,r.slice(t,o.index),t)):this._token(s,a,t)}},h.prototype._token=function(t,e,r){var n=0;if(t.lineBreaks){var o=/\n/g,i=1;if("\n"===e)n=1;else for(;o.exec(e);)n++,i=o.lastIndex}var s={type:"function"==typeof t.type&&t.type(e)||t.defaultType,value:"function"==typeof t.value?t.value(e):e,text:e,toString:v,offset:r,lineBreaks:n,line:this.line,col:this.col},a=e.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-i+1:this.col+=a,t.shouldThrow)throw new Error(this.formatError(s,"invalid syntax"));return t.pop?this.popState():t.push?this.pushState(t.push):t.next&&this.setState(t.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var d=function(t){this.lexer=t};d.prototype.next=function(){var t=this.lexer.next();return{value:t,done:!t}},d.prototype[Symbol.iterator]=function(){return this},h.prototype[Symbol.iterator]=function(){return new d(this)}}return h.prototype.formatError=function(t,e){if(null==t){var r=this.buffer.slice(this.index);t={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(0,t.offset-t.col+1),o=t.lineBreaks?t.text.indexOf("\n"):t.text.length,i=this.buffer.substring(n,t.offset+o);return e+=" at line "+t.line+" col "+t.col+":\n\n",(e+=" "+i+"\n")+" "+Array(t.col).join(" ")+"^"},h.prototype.clone=function(){return new h(this.states,this.state)},h.prototype.has=function(t){return!0},{compile:function(t){var e=p(c(t));return new h({start:e},"start")},states:function(t,e){var r=t.$all?c(t.$all):[];delete t.$all;var n=Object.getOwnPropertyNames(t);e||(e=n[0]);for(var o=Object.create(null),i=0;i<n.length;i++)o[g=n[i]]=c(t[g]).concat(r);for(i=0;i<n.length;i++)for(var s=o[g=n[i]],a=Object.create(null),u=0;u<s.length;u++){var l=s[u];if(l.include){var y=[u,1];if(l.include!==g&&!a[l.include]){a[l.include]=!0;var v=o[l.include];if(!v)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+g+"')");for(var d=0;d<v.length;d++){var b=v[d];-1===s.indexOf(b)&&y.push(b)}}s.splice.apply(s,y),u--}}var m=Object.create(null);for(i=0;i<n.length;i++){var g;m[g=n[i]]=p(o[g],!0)}for(i=0;i<n.length;i++){var x=n[i],_=m[x],w=_.groups;for(u=0;u<w.length;u++)f(w[u],x,m);var j=Object.getOwnPropertyNames(_.fast);for(u=0;u<j.length;u++)f(_.fast[j[u]],x,m)}return new h(m,e)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(t){for(var e=Object.create(null),r=Object.create(null),n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var i=n[o],s=t[i];(Array.isArray(s)?s:[s]).forEach((function(t){if((r[t.length]=r[t.length]||[]).push(t),"string"!=typeof t)throw new Error("keyword must be string (in keyword '"+i+"')");e[t]=i}))}function a(t){return JSON.stringify(t)}var u="";for(var c in u+="switch (value.length) {\n",r){var l=r[c];u+="case "+c+":\n",u+="switch (value) {\n",l.forEach((function(t){var r=e[t];u+="case "+a(t)+": return "+a(r)+"\n"})),u+="}\n"}return u+="}\n",Function("value",u)}}})?r.apply(e,[]):r)||(t.exports=n)},9654:function(t){var e;e=function(){function t(e,r,n){return this.id=++t.highestId,this.name=e,this.symbols=r,this.postprocess=n,this}function e(t,e,r,n){this.rule=t,this.dot=e,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===t.symbols.length}function r(t,e){this.grammar=t,this.index=e,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(t,e){this.rules=t,this.start=e||this.rules[0].name;var r=this.byName={};this.rules.forEach((function(t){r.hasOwnProperty(t.name)||(r[t.name]=[]),r[t.name].push(t)}))}function o(){this.reset("")}function i(t,e,i){if(t instanceof n){var s=t;i=e}else s=n.fromCompiled(t,e);for(var a in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new o},i||{})this.options[a]=i[a];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(s,0);this.table=[u],u.wants[s.start]=[],u.predict(s.start),u.process(),this.current=0}function s(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return t.toString();if(t.type)return"%"+t.type;if(t.test)return"<"+String(t.test)+">";throw new Error("Unknown symbol type: "+t)}}return t.highestId=0,t.prototype.toString=function(t){var e=void 0===t?this.symbols.map(s).join(" "):this.symbols.slice(0,t).map(s).join(" ")+" ● "+this.symbols.slice(t).map(s).join(" ");return this.name+" → "+e},e.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},e.prototype.nextState=function(t){var r=new e(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=t,r.isComplete&&(r.data=r.build(),r.right=void 0),r},e.prototype.build=function(){var t=[],e=this;do{t.push(e.right.data),e=e.left}while(e.left);return t.reverse(),t},e.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(t){for(var e=this.states,r=this.wants,n=this.completed,o=0;o<e.length;o++){var s=e[o];if(s.isComplete){if(s.finish(),s.data!==i.fail){for(var a=s.wantedBy,u=a.length;u--;){var c=a[u];this.complete(c,s)}if(s.reference===this.index){var l=s.rule.name;(this.completed[l]=this.completed[l]||[]).push(s)}}}else{if("string"!=typeof(l=s.rule.symbols[s.dot])){this.scannable.push(s);continue}if(r[l]){if(r[l].push(s),n.hasOwnProperty(l)){var p=n[l];for(u=0;u<p.length;u++){var f=p[u];this.complete(s,f)}}}else r[l]=[s],this.predict(l)}}},r.prototype.predict=function(t){for(var r=this.grammar.byName[t]||[],n=0;n<r.length;n++){var o=r[n],i=this.wants[t],s=new e(o,0,this.index,i);this.states.push(s)}},r.prototype.complete=function(t,e){var r=t.nextState(e);this.states.push(r)},n.fromCompiled=function(e,r){var o=e.Lexer;e.ParserStart&&(r=e.ParserStart,e=e.ParserRules);var i=new n(e=e.map((function(e){return new t(e.name,e.symbols,e.postprocess)})),r);return i.lexer=o,i},o.prototype.reset=function(t,e){this.buffer=t,this.index=0,this.line=e?e.line:1,this.lastLineBreak=e?-e.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var t=this.buffer[this.index++];return"\n"===t&&(this.line+=1,this.lastLineBreak=this.index),{value:t}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(t,e){var r=this.buffer;if("string"==typeof r){var n=r.split("\n").slice(Math.max(0,this.line-5),this.line),o=r.indexOf("\n",this.index);-1===o&&(o=r.length);var i=this.index-this.lastLineBreak,s=String(this.line).length;return e+=" at line "+this.line+" col "+i+":\n\n",(e+=n.map((function(t,e){return a(this.line-n.length+e+1,s)+" "+t}),this).join("\n"))+"\n"+a("",s+i)+"^\n"}return e+" at index "+(this.index-1);function a(t,e){var r=String(t);return Array(e-r.length+1).join(" ")+r}},i.fail={},i.prototype.feed=function(t){var e,n=this.lexer;for(n.reset(t,this.lexerState);;){try{if(!(e=n.next()))break}catch(t){var i=new r(this.grammar,this.current+1);throw this.table.push(i),(u=new Error(this.reportLexerError(t))).offset=this.current,u.token=t.token,u}var s=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var a=this.current+1;i=new r(this.grammar,a),this.table.push(i);for(var u,c=void 0!==e.text?e.text:e.value,l=n.constructor===o?e.value:e,p=s.scannable,f=p.length;f--;){var h=p[f],y=h.rule.symbols[h.dot];if(y.test?y.test(l):y.type?y.type===e.type:y.literal===c){var v=h.nextState({data:l,token:e,isToken:!0,reference:a-1});i.states.push(v)}}if(i.process(),0===i.states.length)throw(u=new Error(this.reportError(e))).offset=this.current,u.token=e,u;this.options.keepHistory&&(s.lexerState=n.save()),this.current++}return s&&(this.lexerState=n.save()),this.results=this.finish(),this},i.prototype.reportLexerError=function(t){var e,r,n=t.token;return n?(e="input "+JSON.stringify(n.text[0])+" (lexer error)",r=this.lexer.formatError(n,"Syntax error")):(e="input (lexer error)",r=t.message),this.reportErrorCommon(r,e)},i.prototype.reportError=function(t){var e=(t.type?t.type+" token: ":"")+JSON.stringify(void 0!==t.value?t.value:t),r=this.lexer.formatError(t,"Syntax error");return this.reportErrorCommon(r,e)},i.prototype.reportErrorCommon=function(t,e){var r=[];r.push(t);var n=this.table.length-2,o=this.table[n],i=o.states.filter((function(t){var e=t.rule.symbols[t.dot];return e&&"string"!=typeof e}));return 0===i.length?(r.push("Unexpected "+e+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(o.states,r)):(r.push("Unexpected "+e+". Instead, I was expecting to see one of the following:\n"),i.map((function(t){return this.buildFirstStateStack(t,[])||[t]}),this).forEach((function(t){var e=t[0],n=e.rule.symbols[e.dot],o=this.getSymbolDisplay(n);r.push("A "+o+" based on:"),this.displayStateStack(t,r)}),this)),r.push(""),r.join("\n")},i.prototype.displayStateStack=function(t,e){for(var r,n=0,o=0;o<t.length;o++){var i=t[o],s=i.rule.toString(i.dot);s===r?n++:(n>0&&e.push(" ^ "+n+" more lines identical to this"),n=0,e.push(" "+s)),r=s}},i.prototype.getSymbolDisplay=function(t){return function(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return"character matching "+t;if(t.type)return t.type+" token";if(t.test)return"token matching "+String(t.test);throw new Error("Unknown symbol type: "+t)}}(t)},i.prototype.buildFirstStateStack=function(t,e){if(-1!==e.indexOf(t))return null;if(0===t.wantedBy.length)return[t];var r=t.wantedBy[0],n=[t].concat(e),o=this.buildFirstStateStack(r,n);return null===o?null:[t].concat(o)},i.prototype.save=function(){var t=this.table[this.current];return t.lexerState=this.lexerState,t},i.prototype.restore=function(t){var e=t.index;this.current=e,this.table[e]=t,this.table.splice(e+1),this.lexerState=t.lexerState,this.results=this.finish()},i.prototype.rewind=function(t){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[t])},i.prototype.finish=function(){var t=[],e=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(r){r.rule.name===e&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&t.push(r)})),t.map((function(t){return t.data}))},{Parser:i,Grammar:n,Rule:t}},t.exports?t.exports=e():this.nearley=e()}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{parseBooleanExpression:()=>y,parseExpression:()=>v,parseMathsExpression:()=>l});var t=r(7185),e=r.n(t),o=r(8446),i=r.n(o),s=r(9654),a=r(1647),u=r.n(a),c=s.Grammar.fromCompiled(u());function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(c),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var p=r(8326),f=r.n(p),h=s.Grammar.fromCompiled(f());function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(h),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var v=l})(),n})()));
|