diff --git a/LICENSE b/LICENSE
index f288702d2..be3f7b28e 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,5 +1,5 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
@@ -7,17 +7,15 @@
Preamble
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
+our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
+software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
@@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
The precise terms and conditions for copying, distribution and
modification follow.
@@ -72,7 +60,7 @@ modification follow.
0. Definitions.
- "This License" refers to version 3 of the GNU General Public License.
+ "This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
@@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
- 13. Use with the GNU Affero General Public License.
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
+under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
+Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
+GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
+versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
@@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
+ it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ GNU Affero General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- Copyright (C)
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
+For more information on this, and how to apply and follow the GNU AGPL, see
.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-.
diff --git a/README.md b/README.md
index 876e76fcb..78ad71d3b 100644
--- a/README.md
+++ b/README.md
@@ -27,8 +27,10 @@ There are multiple npm packages you can use to use strudel, or only parts of it,
- [`tone`](./packages/tone): bindings for Tone.js instruments and effects
- [`osc`](./packages/osc): bindings to communicate via OSC
- [`midi`](./packages/midi): webmidi bindings
+- [`serial`](./packages/serial): webserial bindings
- [`tonal`](./packages/tonal): tonal functions
- [`xen`](./packages/xen): microtonal / xenharmonic functions
+- ... [and there are more](./packages/)
Click on the package names to find out more about each one.
diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json
index 3af3cafc2..0047d54eb 100644
--- a/docs/asset-manifest.json
+++ b/docs/asset-manifest.json
@@ -1,16 +1,16 @@
{
"files": {
- "main.css": "/static/css/main.0d689283.css",
- "main.js": "/static/js/main.fafba4eb.js",
+ "main.css": "/static/css/main.13bac14b.css",
+ "main.js": "/static/js/main.289a0f18.js",
"static/js/787.1c52cb78.chunk.js": "/static/js/787.1c52cb78.chunk.js",
"static/media/logo.svg": "/static/media/logo.ac95051720b3dccfe511e0e02d8e1029.svg",
"index.html": "/index.html",
- "main.0d689283.css.map": "/static/css/main.0d689283.css.map",
- "main.fafba4eb.js.map": "/static/js/main.fafba4eb.js.map",
+ "main.13bac14b.css.map": "/static/css/main.13bac14b.css.map",
+ "main.289a0f18.js.map": "/static/js/main.289a0f18.js.map",
"787.1c52cb78.chunk.js.map": "/static/js/787.1c52cb78.chunk.js.map"
},
"entrypoints": [
- "static/css/main.0d689283.css",
- "static/js/main.fafba4eb.js"
+ "static/css/main.13bac14b.css",
+ "static/js/main.289a0f18.js"
]
}
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index dcaf23746..e547d9e4b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1 +1 @@
-Strudel REPL
\ No newline at end of file
+Strudel REPL
\ No newline at end of file
diff --git a/docs/static/css/main.0d689283.css.map b/docs/static/css/main.0d689283.css.map
deleted file mode 100644
index 6bdabc3fe..000000000
--- a/docs/static/css/main.0d689283.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/css/main.0d689283.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAKF,CAEA,KACE,uEAEF,CCVA,YAIE,UAAY,CACZ,aAAc,CAHd,qBAAsB,CACtB,YAGF,CAIA,kBACE,aACF,CACA,qEAEE,aACF,CAEA,uDACE,qBACF,CAIA,oBAEE,wBAAyB,CADzB,2BAA4B,CAE5B,kBACF,CAEA,uBAIE,UAAW,CAFX,cAAe,CADf,mBAAoB,CAEpB,gBAAiB,CAEjB,kBACF,CAEA,yBAA2B,UAAc,CACzC,gCAAkC,UAAa,CAI/C,mBACE,0BAA4B,CAC5B,iBAAkB,CAClB,OACF,CAEA,2CACE,4BACF,CACA,kCAGE,eAAgB,CADhB,kBAAoB,CADpB,UAGF,CACA,sCACE,SACF,CACA,gJAE2D,sBAAyB,CACpF,+JAEgE,sBAAyB,CACzF,eAAiB,uBAA0B,CAM3C,yBAEE,IAAM,4BAA+B,CAEvC,CACA,iBAEE,IAAM,4BAA+B,CAEvC,CAKA,QAAU,oBAAqB,CAAE,uBAA0B,CAE3D,mBAEiC,QAAS,CAAxC,MAAO,CACP,eAAgB,CAFhB,iBAAkB,CACT,OAAQ,CAAE,SAErB,CACA,kBACE,0BAA2B,CACnB,QAAS,CACjB,iBAAkB,CADlB,KAEF,CAIA,yBAA0B,UAAY,CACtC,wBAAyB,UAAY,CACrC,aAAc,UAAY,CAC1B,aAAc,UAAY,CAC1B,sBAAwB,eAAkB,CAC1C,OAAQ,iBAAmB,CAC3B,SAAU,yBAA2B,CACrC,kBAAmB,4BAA8B,CAEjD,0BAA2B,UAAY,CACvC,uBAAwB,UAAY,CACpC,yBAA0B,UAAY,CACtC,sBAAuB,UAAY,CAKnC,6BAA8B,UAAY,CAC1C,oDAAsD,UAAY,CAClE,0BAA2B,UAAY,CACvC,yBAA0B,UAAY,CACtC,2BAA4B,UAAY,CAExC,mDAA6B,UAAY,CACzC,0BAA2B,UAAY,CACvC,0BAA2B,UAAY,CACvC,sBAAuB,UAAY,CACnC,4BAA6B,UAAY,CACzC,qBAAsB,UAAY,CAClC,uBAAwB,UAAY,CAGpC,wCAAiB,SAAY,CAE7B,sBAAwB,uBAA0B,CAIlD,+CAAgD,UAAY,CAC5D,kDAAmD,UAAY,CAC/D,wBAA0B,6BAAmC,CAC7D,kCAAmC,kBAAoB,CAOvD,YAGE,eAAiB,CADjB,eAAgB,CADhB,iBAGF,CAEA,mBAME,WAAY,CAFZ,mBAAoB,CAAE,kBAAmB,CAGzC,YAAa,CANb,yBAA2B,CAI3B,mBAAoB,CAGpB,iBAAkB,CAClB,SACF,CACA,kBAEE,mCAAoC,CADpC,iBAEF,CAKA,qGAGE,YAAa,CACb,YAAa,CAHb,iBAAkB,CAClB,SAGF,CACA,uBAEE,iBAAkB,CAClB,iBAAkB,CAFlB,OAAQ,CAAE,KAGZ,CACA,uBACE,QAAS,CAAE,MAAO,CAElB,iBAAkB,CADlB,iBAEF,CACA,6BACY,QAAS,CAAnB,OACF,CACA,0BACW,QAAS,CAAlB,MACF,CAEA,oBACsB,MAAO,CAC3B,eAAgB,CADhB,iBAAkB,CAAW,KAAM,CAEnC,SACF,CACA,mBAGE,oBAAqB,CADrB,WAAY,CAGZ,mBAAoB,CADpB,kBAAmB,CAHnB,kBAKF,CACA,2BAGE,yBAA2B,CAC3B,qBAAuB,CAHvB,iBAAkB,CAClB,SAGF,CACA,8BAEU,QAAS,CADjB,iBAAkB,CAClB,KAAM,CACN,SACF,CACA,uBAEE,cAAe,CADf,iBAAkB,CAElB,SACF,CACA,uCAAyC,4BAA8B,CACvE,4CAA8C,4BAA8B,CAE5E,kBACE,WAAY,CACZ,cACF,CACA,qEAUE,gBAAiB,CAMjB,uCAAwC,CAExC,oCAAkC,CAAlC,4BAAkC,CAblC,sBAAuB,CAF0B,eAAgB,CACjE,cAAe,CAQf,aAAc,CANd,mBAAoB,CACpB,iBAAkB,CAUlB,yCAA0C,CAC1C,iCAAkC,CAPlC,mBAAoB,CAHpB,QAAS,CAOT,gBAAiB,CADjB,iBAAkB,CALlB,eAAgB,CAIhB,SAMF,CACA,+EAEE,oBAAqB,CACrB,oBAAqB,CACrB,iBACF,CAEA,2BAE6B,QAAS,CAApC,MAAO,CADP,iBAAkB,CACT,OAAQ,CAAE,KAAM,CACzB,SACF,CAEA,uBAGE,YAAc,CAFd,iBAAkB,CAClB,SAEF,CAIA,oBAAsB,aAAgB,CAEtC,iBACE,YACF,CAGA,mGAME,sBACF,CAEA,oBAGE,QAAS,CACT,eAAgB,CAHhB,iBAAkB,CAIlB,iBAAkB,CAHlB,UAIF,CAEA,mBAEE,mBAAoB,CADpB,iBAEF,CACA,wBAA0B,eAAkB,CAE5C,uBAEE,iBAAkB,CADlB,iBAAkB,CAElB,SACF,CAKA,sEACE,kBACF,CAEA,qBAAuB,kBAAqB,CAC5C,yCAA2C,kBAAqB,CAChE,sBAAwB,gBAAmB,CAC3C,mGAA6G,kBAAqB,CAClI,kHAA4H,kBAAqB,CAEjJ,cACE,qBAAsB,CACtB,mCACF,CAGA,iBAAmB,kBAAqB,CAExC,aAEE,mCACE,iBACF,CACF,CAGA,wBAA0B,UAAa,CAGvC,6BAA+B,eAAkB,CCjVjD,0BACE,wBAAyB,CACzB,UACF,CAEA,mCACE,kBAAmB,CAEnB,WAAY,CADZ,aAEF,CAEA,6HAGE,aACF,CAEA,kCACE,0BACF,CAIA,sFACE,oCACF,CAMA,iGACE,+BACF,CAEA,gJAGE,+BACF,CAEA,+JAGE,+BACF,CAEA,iDACE,yBACF,CAEA,2BACE,aACF,CAEA,4BACE,aACF,CAEA,8BACE,UACF,CAEA,sDAEE,aACF,CAEA,2BACE,aACF,CAEA,wBACE,aACF,CAEA,0BACE,aACF,CAEA,uBACE,aACF,CAEA,0BACE,aACF,CAEA,4BACE,aACF,CAEA,2BACE,aACF,CAEA,4BACE,aACF,CAEA,uBACE,aACF,CAEA,wBACE,aACF,CAMA,yDACE,aACF,CAMA,mFAEE,aACF,CAGA,yBAEE,wBAAyB,CADzB,UAEF,CAEA,2CAEE,oBAAuB,CADvB,yBAEF;;AC5IA;;CAAc,CAAd,iBCWE,sBAAwD,CAHxD,qBDRY,CAAd,eCgBE,eDhBY,CAAd,KC4BE,6BAA8B,CAG9B,gMAAsP,CAJtP,eAAgB,CAGhB,UD9BY,CAAd,KCyCE,mBAAoB,CADpB,QDxCY,CAAd,GCqDE,oBAAqB,CADrB,aAAc,CADd,QDnDY,CAAd,oBC6DE,wCAAiC,CAAjC,gCD7DY,CAAd,kBC0EE,iBAAkB,CAClB,mBD3EY,CAAd,ECmFE,aAAc,CACd,uBDpFY,CAAd,SC6FE,kBD7FY,CAAd,kBCyGE,mGAAyI,CACzI,aD1GY,CAAd,MCkHE,aDlHY,CAAd,QC2HE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,uBD9HY,CAAd,ICkIE,aDlIY,CAAd,ICsIE,SDtIY,CAAd,MCkJE,wBAAyB,CADzB,oBAAqB,CADrB,aDhJY,CAAd,sCCmKE,aAAc,CAHd,mBAAoB,CACpB,cAAe,CACf,mBAAoB,CAEpB,QAAS,CACT,SDrKY,CAAd,cC8KE,mBD9KY,CAAd,gDC0LE,yBAA0B,CAC1B,4BAA6B,CAC7B,qBD5LY,CAAd,gBCoME,YDpMY,CAAd,iBC4ME,eD5MY,CAAd,SCoNE,uBDpNY,CAAd,wDC6NE,WD7NY,CAAd,cCsOE,4BAA6B,CAC7B,mBDvOY,CAAd,4BC+OE,uBD/OY,CAAd,6BCwPE,yBAA0B,CAC1B,YDzPY,CAAd,QCiQE,iBDjQY,CAAd,mDCqRE,QDrRY,CAAd,SCyRE,QDzRY,CAAd,gBC0RE,SD1RY,CAAd,WCoSE,eAAgB,CAChB,QAAS,CACT,SDtSY,CAAd,SC8SE,eD9SY,CAAd,qECyTE,aAAwC,CADxC,SDxTY,CAAd,2DCyTE,aAAwC,CADxC,SDxTY,CAAd,yCCyTE,aAAwC,CADxC,SDxTY,CAAd,qBCkUE,cDlUY,CAAd,UCyUE,cDzUY,CAAd,+CC0VE,aAAc,CACd,qBD3VY,CAAd,UCqWE,WAAY,CADZ,cDpWY,CAAd,SC6WE,YD7WY,CEAd,i4B,CFCA,OEDA,yCFCoB,CAApB,+DEDA,gGFCoB,CAApB,mDEDA,qEFCoB,CAApB,wDEDA,0CFCoB,CAApB,oDEDA,4CFCoB,CAApB,4DEDA,2BFCoB,CAApB,4DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,4DEDA,2BFCoB,CAApB,4DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,8DEDA,uBFCoB,CAApB,oDEDA,yCFCoB,CAApB,+DEDA,8CFCoB,CAApB,+DEDA,6BFCoB,CAApB,oDEDA,qFFCoB,CAApB,4DEDA,iOFCoB,CAApB,mFEDA,kBFCoB,CAApB,iFEDA,mBFCoB,CAApB,oDEDA,2HFCoB,CAApB,2DEDA,eFCoB,CAApB,oDEDA,qHFCoB,CAApB,2DEDA,eFCoB,CAApB,oDEDA,mHFCoB,CAApB,2DEDA,eFCoB,CAApB,oDEDA,kGFCoB,CAApB,2DEDA,eFCoB,CAApB,0DEDA,4BFCoB,CAApB,4DEDA,2FFCoB,CAApB,sDEDA,2DFCoB,CAApB,6DEDA,WFCoB,CAApB,4DEDA,WFCoB,CAApB,wDEDA,2BFCoB,CAApB,qDEDA,mPFCoB,CAApB,0DEDA,iKFCoB,CAApB,iEEDA,YFCoB,CAApB,gEEDA,YFCoB,CAApB,uDEDA,oHFCoB,CAApB,uDEDA,sEFCoB,CAApB,0DEDA,+IFCoB,CAApB,0DEDA,sEFCoB,CAApB,qEEDA,qBFCoB,CAApB,0DEDA,0CFCoB,CAApB,OEDA,g+BFCoB,CAApB,mDEDA,sCFCoB,CAApB,qDEDA,gCFCoB,CAApB,uDEDA,gCFCoB,CAApB,wDEDA,gCFCoB,CAApB,yDEDA,gBFCoB,CAApB,yDEDA,cFCoB,CAApB,oDEDA,kCFCoB,CAApB,uDEDA,mBFCoB,CAApB,uDEDA,mBFCoB,CAApB,yDEDA,oCFCoB,CAApB,oEEDA,iBFCoB,CAApB,mEEDA,oBFCoB,CAApB,oEEDA,iBFCoB,CAApB,mEEDA,oBFCoB,CAApB,yEEDA,oCFCoB,CAApB,sDEDA,YFCoB,CAApB,sDEDA,YFCoB,CAApB,sDEDA,YFCoB,CAApB,sDEDA,YFCoB,CAApB,sEEDA,cFCoB,CAApB,qEEDA,eFCoB,CAApB,sEEDA,cFCoB,CAApB,qEEDA,eFCoB,CAApB,8DEDA,YFCoB,CAApB,6DEDA,eFCoB,CACpB,qBEFA,mBFEmB,CAAnB,QEFA,eFEmB,CAAnB,OEFA,cFEmB,CAAnB,UEFA,iBFEmB,CAAnB,UEFA,iBFEmB,CAAnB,OEFA,KFEmB,CAAnB,SEFA,OFEmB,CAAnB,SEFA,WFEmB,CAAnB,UEFA,YFEmB,CAAnB,SEFA,UFEmB,CAAnB,UEFA,UFEmB,CAAnB,UEFA,UFEmB,CAAnB,MEFA,YFEmB,CAAnB,aEFA,mBFEmB,CAAnB,MEFA,aFEmB,CAAnB,MEFA,WFEmB,CAAnB,KEFA,cFEmB,CAAnB,QEFA,WFEmB,CAAnB,MEFA,WFEmB,CAAnB,cEFA,gBFEmB,CAAnB,QEFA,UFEmB,CAAnB,MEFA,UFEmB,CAAnB,MEFA,UFEmB,CAAnB,KEFA,aFEmB,CAAnB,WEFA,eFEmB,CAAnB,WEFA,SFEmB,CAAnB,MEFA,WFEmB,CAAnB,yBEFA,c,CFEmB,CAAnB,iBEFA,c,CFEmB,CAAnB,eEFA,+GFEmB,CAAnB,oBEFA,kBFEmB,CAAnB,aEFA,WFEmB,CAAnB,UEFA,qBFEmB,CAAnB,cEFA,kBFEmB,CAAnB,gBEFA,sBFEmB,CAAnB,iBEFA,6BFEmB,CAAnB,yCEFA,iIFEmB,CAAnB,yCEFA,+HFEmB,CAAnB,yCEFA,6HFEmB,CAAnB,eEFA,aFEmB,CAAnB,iBEFA,eFEmB,CAAnB,gBEFA,eFEmB,CAAnB,YEFA,qBFEmB,CAAnB,UEFA,cFEmB,CAAnB,UEFA,uBFEmB,CAAnB,UEFA,oBFEmB,CAAnB,UEFA,sBFEmB,CAAnB,iBEFA,4EFEmB,CAAnB,kBEFA,0EFEmB,CAAnB,kBEFA,4EFEmB,CAAnB,gBEFA,4BFEmB,CAAnB,UEFA,wEFEmB,CAAnB,oBEFA,4BFEmB,CAAnB,cEFA,qEFEmB,CAAnB,cEFA,sEFEmB,CAAnB,KEFA,YFEmB,CAAnB,KEFA,cFEmB,CAAnB,MEFA,kBFEmB,CAAnB,YEFA,mBFEmB,CAAnB,YEFA,gBFEmB,CAAnB,UEFA,iCFEmB,CAAnB,SEFA,iCFEmB,CAAnB,SEFA,qCFEmB,CAAnB,YEFA,iEFEmB,CAAnB,eEFA,iEFEmB,CAAnB,cEFA,+DFEmB,CAAnB,gBEFA,iEFEmB,CAAnB,cEFA,iEFEmB,CAAnB,WEFA,SFEmB,CAAnB,aEFA,SFEmB,CAAnB,SEFA,mBFEmB,CAAnB,QEFA,yWFEmB,CAAnB,oBEFA,uGFEmB,CAEnB,KACE,wBACF,CAEA,+BAGE,sCAAwC,CACxC,cAAe,CAFf,qBAAuB,CAGvB,UACF,CAEA,sBACE,0BACF,CAEA,eAQE,eAAiB,CAPjB,WAAY,CAMZ,aAAc,CADd,YAAa,CAFb,MAAO,CAKP,UAAY,CAPZ,iBAAkB,CAClB,KAAM,CAEN,WAKF,CA9BA,2BEAA,sE,CFAA,2BEAA,yE,CFAA,6BEAA,wE","sources":["index.css","../node_modules/codemirror/lib/codemirror.css","../node_modules/codemirror/theme/material.css","App.css","%3Cinput%20css%20lu7Na6%3E","../"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n","/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n","@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\nbody {\n background-color: #2a3236;\n}\n\n.react-codemirror2,\n.CodeMirror {\n height: 100% !important;\n background-color: transparent !important;\n font-size: 15px;\n z-index:20\n}\n\n.CodeMirror-line > span {\n background-color: #2a323699;\n}\n\n.darken::before {\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n display: block;\n background: black;\n opacity: 0.5;\n}","/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"); /* 4 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace); /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/*\nEnsure the default browser behavior of the `hidden` attribute.\n*/\n\n[hidden] {\n display: none;\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/docs/static/css/main.0d689283.css b/docs/static/css/main.13bac14b.css
similarity index 50%
rename from docs/static/css/main.0d689283.css
rename to docs/static/css/main.13bac14b.css
index adca12412..aa43a5b88 100644
--- a/docs/static/css/main.0d689283.css
+++ b/docs/static/css/main.13bac14b.css
@@ -1,6 +1,6 @@
-body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;border:none;color:#546e7a}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material .cm-animate-fat-cursor,.cm-s-material.cm-fat-cursor .CodeMirror-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#decb6b}.cm-s-material .cm-error{background-color:#ff5370;color:#fff}.cm-s-material .CodeMirror-matchingbracket{color:#fff!important;text-decoration:underline}
+body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
/*
! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com
-*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){border-left-color:var(--tw-prose-quote-borders);border-left-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-left:1em;quotes:"\201C""\201D""\2018""\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:var(--tw-prose-links)}.prose :where(pre):not(:where([class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:left;width:100%}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-bottom:.5714286em;padding-left:.5714286em;padding-right:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){padding:.5714286em;vertical-align:baseline}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(img):not(:where([class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(h2 code):not(:where([class~=not-prose] *)){font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){font-size:.9em}.prose :where(li):not(:where([class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose>:where(ul>li p):not(:where([class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose>:where(ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose>:where(ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose>:where(ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose>:where(ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose>:where(:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose>:where(:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.right-2{right:.5rem}.bottom-2{bottom:.5rem}.right-4{right:1rem}.z-\[10\]{z-index:10}.z-\[11\]{z-index:11}.flex{display:flex}.inline-flex{display:inline-flex}.h-14{height:3.5rem}.h-12{height:3rem}.h-5{height:1.25rem}.h-full{height:100%}.h-16{height:4rem}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-12{width:3rem}.w-16{width:4rem}.w-5{width:1.25rem}.max-w-3xl{max-width:48rem}.flex-none{flex:none}.grow{flex-grow:1}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-pre{white-space:pre}.rounded-md{border-radius:.375rem}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity))}.border-slate-500{--tw-border-opacity:1;border-color:rgb(100 116 139/var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-\[transparent\]{background-color:transparent}.bg-slate-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1{padding:.25rem}.px-2{padding-left:.5rem}.pr-2,.px-2{padding-right:.5rem}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline{outline-style:solid}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}body{background-color:#2a3236}.CodeMirror,.react-codemirror2{background-color:transparent!important;font-size:15px;height:100%!important;z-index:20}.CodeMirror-line>span{background-color:#2a323699}.darken:before{background:#000;content:" ";display:block;height:100vh;left:0;opacity:.5;position:absolute;top:0;width:100vw}.hover\:bg-slate-600:hover{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\:ring-slate-800:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(30 41 59/var(--tw-ring-opacity))}
-/*# sourceMappingURL=main.0d689283.css.map*/
\ No newline at end of file
+*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){border-left-color:var(--tw-prose-quote-borders);border-left-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-left:1em;quotes:"\201C""\201D""\2018""\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:var(--tw-prose-links)}.prose :where(pre):not(:where([class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:left;width:100%}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-bottom:.5714286em;padding-left:.5714286em;padding-right:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){padding:.5714286em;vertical-align:baseline}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(img):not(:where([class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(h2 code):not(:where([class~=not-prose] *)){font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){font-size:.9em}.prose :where(li):not(:where([class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose>:where(ul>li p):not(:where([class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose>:where(ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose>:where(ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose>:where(ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose>:where(ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose>:where(:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose>:where(:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.right-2{right:.5rem}.bottom-2{bottom:.5rem}.right-4{right:1rem}.z-\[10\]{z-index:10}.z-\[11\]{z-index:11}.flex{display:flex}.inline-flex{display:inline-flex}.h-14{height:3.5rem}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-16{height:4rem}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-10{width:2.5rem}.w-16{width:4rem}.w-5{width:1.25rem}.max-w-3xl{max-width:48rem}.flex-none{flex:none}.grow{flex-grow:1}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-pre{white-space:pre}.rounded-md{border-radius:.375rem}.border-0{border-width:0}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity))}.border-slate-500{--tw-border-opacity:1;border-color:rgb(100 116 139/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-\[transparent\]{background-color:transparent}.bg-\[\#444C57\]{--tw-bg-opacity:1;background-color:rgb(68 76 87/var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-2{padding-left:.5rem}.pr-2,.px-2{padding-right:.5rem}.text-right{text-align:right}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.outline{outline-style:solid}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:#2a3236}.CodeMirror,.react-codemirror2{background-color:transparent!important;font-size:15px;height:100%!important;z-index:20}.CodeMirror-line>span{background-color:#2a323699}.darken:before{background:#000;content:" ";display:block;height:100vh;left:0;opacity:.5;position:absolute;top:0;width:100vw}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}
+/*# sourceMappingURL=main.13bac14b.css.map*/
\ No newline at end of file
diff --git a/docs/static/css/main.13bac14b.css.map b/docs/static/css/main.13bac14b.css.map
new file mode 100644
index 000000000..6a2cefb33
--- /dev/null
+++ b/docs/static/css/main.13bac14b.css.map
@@ -0,0 +1 @@
+{"version":3,"file":"static/css/main.13bac14b.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAKF,CAEA,KACE,uEAEF;;ACZA;;CAAc,CAAd,iBCWE,sBAAwD,CAHxD,qBDRY,CAAd,eCgBE,eDhBY,CAAd,KC4BE,6BAA8B,CAG9B,gMAAsP,CAJtP,eAAgB,CAGhB,UD9BY,CAAd,KCyCE,mBAAoB,CADpB,QDxCY,CAAd,GCqDE,oBAAqB,CADrB,aAAc,CADd,QDnDY,CAAd,oBC6DE,wCAAiC,CAAjC,gCD7DY,CAAd,kBC0EE,iBAAkB,CAClB,mBD3EY,CAAd,ECmFE,aAAc,CACd,uBDpFY,CAAd,SC6FE,kBD7FY,CAAd,kBCyGE,mGAAyI,CACzI,aD1GY,CAAd,MCkHE,aDlHY,CAAd,QC2HE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,uBD9HY,CAAd,ICkIE,aDlIY,CAAd,ICsIE,SDtIY,CAAd,MCkJE,wBAAyB,CADzB,oBAAqB,CADrB,aDhJY,CAAd,sCCmKE,aAAc,CAHd,mBAAoB,CACpB,cAAe,CACf,mBAAoB,CAEpB,QAAS,CACT,SDrKY,CAAd,cC8KE,mBD9KY,CAAd,gDC0LE,yBAA0B,CAC1B,4BAA6B,CAC7B,qBD5LY,CAAd,gBCoME,YDpMY,CAAd,iBC4ME,eD5MY,CAAd,SCoNE,uBDpNY,CAAd,wDC6NE,WD7NY,CAAd,cCsOE,4BAA6B,CAC7B,mBDvOY,CAAd,4BC+OE,uBD/OY,CAAd,6BCwPE,yBAA0B,CAC1B,YDzPY,CAAd,QCiQE,iBDjQY,CAAd,mDCqRE,QDrRY,CAAd,SCyRE,QDzRY,CAAd,gBC0RE,SD1RY,CAAd,WCoSE,eAAgB,CAChB,QAAS,CACT,SDtSY,CAAd,SC8SE,eD9SY,CAAd,qECyTE,aAAwC,CADxC,SDxTY,CAAd,2DCyTE,aAAwC,CADxC,SDxTY,CAAd,yCCyTE,aAAwC,CADxC,SDxTY,CAAd,qBCkUE,cDlUY,CAAd,UCyUE,cDzUY,CAAd,+CC0VE,aAAc,CACd,qBD3VY,CAAd,UCqWE,WAAY,CADZ,cDpWY,CAAd,SC6WE,YD7WY,CEAd,i4B,CFCA,OEDA,yCFCoB,CAApB,+DEDA,gGFCoB,CAApB,mDEDA,qEFCoB,CAApB,wDEDA,0CFCoB,CAApB,oDEDA,4CFCoB,CAApB,4DEDA,2BFCoB,CAApB,4DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,4DEDA,2BFCoB,CAApB,4DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,8DEDA,2BFCoB,CAApB,8DEDA,uBFCoB,CAApB,oDEDA,yCFCoB,CAApB,+DEDA,8CFCoB,CAApB,+DEDA,6BFCoB,CAApB,oDEDA,qFFCoB,CAApB,4DEDA,iOFCoB,CAApB,mFEDA,kBFCoB,CAApB,iFEDA,mBFCoB,CAApB,oDEDA,2HFCoB,CAApB,2DEDA,eFCoB,CAApB,oDEDA,qHFCoB,CAApB,2DEDA,eFCoB,CAApB,oDEDA,mHFCoB,CAApB,2DEDA,eFCoB,CAApB,oDEDA,kGFCoB,CAApB,2DEDA,eFCoB,CAApB,0DEDA,4BFCoB,CAApB,4DEDA,2FFCoB,CAApB,sDEDA,2DFCoB,CAApB,6DEDA,WFCoB,CAApB,4DEDA,WFCoB,CAApB,wDEDA,2BFCoB,CAApB,qDEDA,mPFCoB,CAApB,0DEDA,iKFCoB,CAApB,iEEDA,YFCoB,CAApB,gEEDA,YFCoB,CAApB,uDEDA,oHFCoB,CAApB,uDEDA,sEFCoB,CAApB,0DEDA,+IFCoB,CAApB,0DEDA,sEFCoB,CAApB,qEEDA,qBFCoB,CAApB,0DEDA,0CFCoB,CAApB,OEDA,g+BFCoB,CAApB,mDEDA,sCFCoB,CAApB,qDEDA,gCFCoB,CAApB,uDEDA,gCFCoB,CAApB,wDEDA,gCFCoB,CAApB,yDEDA,gBFCoB,CAApB,yDEDA,cFCoB,CAApB,oDEDA,kCFCoB,CAApB,uDEDA,mBFCoB,CAApB,uDEDA,mBFCoB,CAApB,yDEDA,oCFCoB,CAApB,oEEDA,iBFCoB,CAApB,mEEDA,oBFCoB,CAApB,oEEDA,iBFCoB,CAApB,mEEDA,oBFCoB,CAApB,yEEDA,oCFCoB,CAApB,sDEDA,YFCoB,CAApB,sDEDA,YFCoB,CAApB,sDEDA,YFCoB,CAApB,sDEDA,YFCoB,CAApB,sEEDA,cFCoB,CAApB,qEEDA,eFCoB,CAApB,sEEDA,cFCoB,CAApB,qEEDA,eFCoB,CAApB,8DEDA,YFCoB,CAApB,6DEDA,eFCoB,CACpB,qBEFA,mBFEmB,CAAnB,QEFA,eFEmB,CAAnB,OEFA,cFEmB,CAAnB,UEFA,iBFEmB,CAAnB,UEFA,iBFEmB,CAAnB,OEFA,KFEmB,CAAnB,SEFA,OFEmB,CAAnB,SEFA,WFEmB,CAAnB,UEFA,YFEmB,CAAnB,SEFA,UFEmB,CAAnB,UEFA,UFEmB,CAAnB,UEFA,UFEmB,CAAnB,MEFA,YFEmB,CAAnB,aEFA,mBFEmB,CAAnB,MEFA,aFEmB,CAAnB,MEFA,aFEmB,CAAnB,KEFA,cFEmB,CAAnB,MEFA,WFEmB,CAAnB,cEFA,gBFEmB,CAAnB,QEFA,UFEmB,CAAnB,MEFA,YFEmB,CAAnB,MEFA,UFEmB,CAAnB,KEFA,aFEmB,CAAnB,WEFA,eFEmB,CAAnB,WEFA,SFEmB,CAAnB,MEFA,WFEmB,CAAnB,yBEFA,c,CFEmB,CAAnB,iBEFA,c,CFEmB,CAAnB,eEFA,+GFEmB,CAAnB,oBEFA,kBFEmB,CAAnB,aEFA,WFEmB,CAAnB,UEFA,qBFEmB,CAAnB,cEFA,kBFEmB,CAAnB,gBEFA,sBFEmB,CAAnB,iBEFA,6BFEmB,CAAnB,yCEFA,iIFEmB,CAAnB,yCEFA,6HFEmB,CAAnB,yCEFA,+HFEmB,CAAnB,eEFA,aFEmB,CAAnB,iBEFA,eFEmB,CAAnB,gBEFA,eFEmB,CAAnB,YEFA,qBFEmB,CAAnB,UEFA,cFEmB,CAAnB,QEFA,gBFEmB,CAAnB,UEFA,uBFEmB,CAAnB,UEFA,oBFEmB,CAAnB,UEFA,sBFEmB,CAAnB,iBEFA,4EFEmB,CAAnB,kBEFA,0EFEmB,CAAnB,kBEFA,4EFEmB,CAAnB,aEFA,wEFEmB,CAAnB,oBEFA,4BFEmB,CAAnB,iBEFA,qEFEmB,CAAnB,cEFA,qEFEmB,CAAnB,cEFA,sEFEmB,CAAnB,UEFA,wEFEmB,CAAnB,KEFA,aFEmB,CAAnB,KEFA,YFEmB,CAAnB,KEFA,cFEmB,CAAnB,MEFA,kBFEmB,CAAnB,YEFA,mBFEmB,CAAnB,YEFA,gBFEmB,CAAnB,SEFA,qCFEmB,CAAnB,SEFA,iCFEmB,CAAnB,SEFA,qCFEmB,CAAnB,UEFA,iCFEmB,CAAnB,eEFA,iEFEmB,CAAnB,cEFA,+DFEmB,CAAnB,YEFA,iEFEmB,CAAnB,gBEFA,iEFEmB,CAAnB,cEFA,iEFEmB,CAAnB,SEFA,mBFEmB,CAAnB,QEFA,yWFEmB,CAEnB,KACE,wBACF,CAEA,+BAGE,sCAAwC,CACxC,cAAe,CAFf,qBAAuB,CAGvB,UACF,CAEA,sBACE,0BACF,CAEA,eAQE,eAAiB,CAPjB,WAAY,CAMZ,aAAc,CADd,YAAa,CAFb,MAAO,CAKP,UAAY,CAPZ,iBAAkB,CAClB,KAAM,CAEN,WAKF,CA9BA,0BEAA,wE,CFAA,2BEAA,sE","sources":["index.css","App.css","%3Cinput%20css%20jbtEsC%3E","../"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\nbody {\n background-color: #2a3236;\n}\n\n.react-codemirror2,\n.CodeMirror {\n height: 100% !important;\n background-color: transparent !important;\n font-size: 15px;\n z-index:20\n}\n\n.CodeMirror-line > span {\n background-color: #2a323699;\n}\n\n.darken::before {\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n display: block;\n background: black;\n opacity: 0.5;\n}","/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"); /* 4 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace); /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/*\nEnsure the default browser behavior of the `hidden` attribute.\n*/\n\n[hidden] {\n display: none;\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/docs/static/js/main.289a0f18.js b/docs/static/js/main.289a0f18.js
new file mode 100644
index 000000000..d51355ac5
--- /dev/null
+++ b/docs/static/js/main.289a0f18.js
@@ -0,0 +1,3 @@
+/*! For license information please see main.289a0f18.js.LICENSE.txt */
+(function(){var __webpack_modules__={5365:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&d<=127?d:null,v=void 0===s?null:440*Math.pow(2,(d-69)/12);var y,g;return{empty:!1,acc:r,alt:a,chroma:f,coord:u,freq:v,height:d,letter:n,midi:p,name:c,oct:s,pc:l,step:o}}(e):c(e)?E(function(e){var t=e.step,n=e.alt,r=e.oct,i=y(t);if(!i)return"";var o=i+g(n);return r||0===r?o+r:o}(e)):u(e)?E(e.name):m;return v.set(e,n),n}var b=/^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;function D(e){var t=b.exec(e);return[t[1].toUpperCase(),t[2].replace(/x/g,"##"),t[3],t[4]]}function O(e){return E(p(e))}var k=[0,2,4,5,7,9,11];var A={empty:!0,name:"",acc:""},w=new RegExp("^([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})|(AA|A|P|M|m|d|dd)([-+]?\\d+)$");function x(e){var t=w.exec("".concat(e));return null===t?["",""]:t[1]?[t[1],t[2]]:[t[4],t[3]]}var C={};function S(e){return"string"===typeof e?C[e]||(C[e]=function(e){var t=x(e);if(""===t[0])return A;var n=+t[0],r=t[1],i=(Math.abs(n)-1)%7,o=F[i];if("M"===o&&"P"===r)return A;var a="M"===o?"majorable":"perfectable",s=""+n+r,u=n<0?-1:1,c=8===n||-8===n?n:u*(i+1),l=function(e,t){return"M"===t&&"majorable"===e||"P"===t&&"perfectable"===e?0:"m"===t&&"majorable"===e?-1:/^A+$/.test(t)?t.length:/^d+$/.test(t)?-1*("perfectable"===e?t.length:t.length+1):0}(a,r),f=Math.floor((Math.abs(n)-1)/7),d=u*(T[i]+l+12*f),p=(u*(T[i]+l)%12+12)%12,m=h({step:i,alt:l,oct:f,dir:u});return{empty:!1,name:s,num:n,q:r,step:i,alt:l,dir:u,type:a,simple:c,semitones:d,chroma:p,coord:m,oct:f}}(e)):c(e)?S(function(e){var t=e.step,n=e.alt,r=e.oct,i=void 0===r?0:r,o=e.dir;if(!o)return"";var s=t+1+7*i;return(o<0?"-":"")+(0===s?t+1:s)+function(e,t){return 0===t?"majorable"===e?"M":"P":-1===t&&"majorable"===e?"m":t>0?a("A",t):a("d","perfectable"===e?t:t+1)}("M"===F[t]?"majorable":"perfectable",n)}(e)):u(e)?S(e.name):A}var T=[0,2,4,5,7,9,11],F="PMMPPMM";function q(e,t){var n=(0,o.Z)(e,2),r=n[0],i=n[1],a=void 0===i?0:i;return S(p(t||7*r+12*a<0?[-r,-a,-1]:[r,a,1]))}function B(e,t){var n=E(e),r=S(t);if(n.empty||r.empty)return"";var i=n.coord,o=r.coord;return O(1===i.length?[i[0]+o[0]]:[i[0]+o[0],i[1]+o[1]]).name}function P(e,t){var n=E(e),r=E(t);if(n.empty||r.empty)return"";var i=n.coord,o=r.coord,a=o[0]-i[0];return q([a,2===i.length&&2===o.length?o[1]-i[1]:-Math.floor(7*a/12)],r.height===n.height&&null!==r.midi&&null!==n.midi&&n.step>r.step).name}var M=function(e,t){return Array(t+1).join(e)},R=/^(_{1,}|=|\^{1,}|)([abcdefgABCDEFG])([,']*)$/;function I(e){var t=R.exec(e);return t?[t[1],t[2],t[3]]:["","",""]}function N(e){var t=I(e),n=(0,o.Z)(t,3),r=n[0],i=n[1],a=n[2];if(""===i)return"";for(var s=4,u=0;u96?i.toUpperCase()+c+(s+1):i+c+s}function L(e){var t=E(e);if(t.empty||!t.oct&&0!==t.oct)return"";var n=t.letter,r=t.acc,i=t.oct;return("b"===r[0]?r.replace(/b/g,"_"):r.replace(/#/g,"^"))+(i>4?n.toLowerCase():n)+(5===i?"":i>4?M("'",i-5):M(",",4-i))}var j={abcToScientificNotation:N,scientificToAbcNotation:L,tokenize:I,transpose:function(e,t){return L(B(N(e),t))},distance:function(e,t){return P(N(e),N(t))}};function Z(e,t){return e1&&void 0!==arguments[1]?arguments[1]:Math.random,i=e.length;i;)t=Math.floor(r()*i--),n=e[i],e[i]=e[t],e[t]=n;return e}function $(e){return 0===e.length?[[]]:$(e.slice(1)).reduce((function(t,n){return t.concat(e.map((function(t,r){var i=n.slice();return i.splice(r,0,e[0]),i})))}),[])}var z=n(1413),U=n(4942);function Y(e,t){return e1&&void 0!==arguments[1]?arguments[1]:Math.random,i=e.length;i;)t=Math.floor(r()*i--),n=e[i],e[i]=e[t],e[t]=n;return e}},ee=J,te={empty:!0,name:"",setNum:0,chroma:"000000000000",normalized:"000000000000",intervals:[]},ne=function(e){return Number(e).toString(2)},re=function(e){return parseInt(e,2)},ie=/^[01]{12}$/;function oe(e){return ie.test(e)}var ae=(0,U.Z)({},te.chroma,te);function se(e){var t,n=oe(e)?e:"number"===typeof(t=e)&&t>=0&&t<=4095?ne(e):Array.isArray(e)?function(e){if(0===e.length)return te.chroma;for(var t,n=[0,0,0,0,0,0,0,0,0,0,0,0],r=0;r=2048})).sort()[0],r=ne(n),i=function(e){for(var t=[],n=0;n<12;n++)"1"===e.charAt(n)&&t.push(ce[n]);return t}(e);return{empty:!1,name:"",setNum:t,chroma:e,normalized:r,intervals:i}}(n)}var ue=s("Pcset.pcset","Pcset.get",se),ce=["1P","2m","2M","3m","3M","4P","5d","5P","6m","6M","7m","7M"];function le(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=se(e),r=n.chroma.split("");return K(r.map((function(e,n){var i=X(n,r);return t&&"0"===i[0]?null:i.join("")})))}function fe(e){var t=se(e).setNum;return function(e){var n=se(e).setNum;return t&&t!==n&&(n&t)===n}}function he(e){var t=se(e).setNum;return function(e){var n=se(e).setNum;return t&&t!==n&&(n|t)===n}}function de(e){var t=se(e);return function(e){var n=E(e);return t&&!n.empty&&"1"===t.chroma.charAt(n.chroma)}}var pe={get:se,chroma:function(e){return se(e).chroma},num:function(e){return se(e).setNum},intervals:function(e){return se(e).intervals},chromas:function(){return Y(2048,4095).map(ne)},isSupersetOf:he,isSubsetOf:fe,isNoteIncludedIn:de,isEqual:function(e,t){return se(e).setNum===se(t).setNum},filter:function(e){var t=de(e);return function(e){return e.filter(t)}},modes:le,pcset:ue};var me=(0,z.Z)((0,z.Z)({},te),{},{name:"",quality:"Unknown",intervals:[],aliases:[]}),ve=[],ye={};function ge(e){return ye[e]||me}var _e=s("ChordType.chordType","ChordType.get",ge);function Ee(){return ve.slice()}var be=s("ChordType.entries","ChordType.all",Ee);function De(e,t,n){var r=function(e){var t=function(t){return-1!==e.indexOf(t)};return t("5A")?"Augmented":t("3M")?"Major":t("5d")?"Diminished":t("3m")?"Minor":"Unknown"}(e),i=(0,z.Z)((0,z.Z)({},se(e)),{},{name:n||"",quality:r,intervals:e,aliases:t});ve.push(i),i.name&&(ye[i.name]=i),ye[i.setNum]=i,ye[i.chroma]=i,i.aliases.forEach((function(e){return function(e,t){ye[t]=e}(i,e)}))}[["1P 3M 5P","major","M ^ "],["1P 3M 5P 7M","major seventh","maj7 \u0394 ma7 M7 Maj7 ^7"],["1P 3M 5P 7M 9M","major ninth","maj9 \u03949 ^9"],["1P 3M 5P 7M 9M 13M","major thirteenth","maj13 Maj13 ^13"],["1P 3M 5P 6M","sixth","6 add6 add13 M6"],["1P 3M 5P 6M 9M","sixth/ninth","6/9 69 M69"],["1P 3M 6m 7M","major seventh flat sixth","M7b6 ^7b6"],["1P 3M 5P 7M 11A","major seventh sharp eleventh","maj#4 \u0394#4 \u0394#11 M7#11 ^7#11 maj7#11"],["1P 3m 5P","minor","m min -"],["1P 3m 5P 7m","minor seventh","m7 min7 mi7 -7"],["1P 3m 5P 7M","minor/major seventh","m/ma7 m/maj7 mM7 mMaj7 m/M7 -\u03947 m\u0394 -^7"],["1P 3m 5P 6M","minor sixth","m6 -6"],["1P 3m 5P 7m 9M","minor ninth","m9 -9"],["1P 3m 5P 7M 9M","minor/major ninth","mM9 mMaj9 -^9"],["1P 3m 5P 7m 9M 11P","minor eleventh","m11 -11"],["1P 3m 5P 7m 9M 13M","minor thirteenth","m13 -13"],["1P 3m 5d","diminished","dim \xb0 o"],["1P 3m 5d 7d","diminished seventh","dim7 \xb07 o7"],["1P 3m 5d 7m","half-diminished","m7b5 \xf8 -7b5 h7 h"],["1P 3M 5P 7m","dominant seventh","7 dom"],["1P 3M 5P 7m 9M","dominant ninth","9"],["1P 3M 5P 7m 9M 13M","dominant thirteenth","13"],["1P 3M 5P 7m 11A","lydian dominant seventh","7#11 7#4"],["1P 3M 5P 7m 9m","dominant flat ninth","7b9"],["1P 3M 5P 7m 9A","dominant sharp ninth","7#9"],["1P 3M 7m 9m","altered","alt7"],["1P 4P 5P","suspended fourth","sus4 sus"],["1P 2M 5P","suspended second","sus2"],["1P 4P 5P 7m","suspended fourth seventh","7sus4 7sus"],["1P 5P 7m 9M 11P","eleventh","11"],["1P 4P 5P 7m 9m","suspended fourth flat ninth","b9sus phryg 7b9sus 7b9sus4"],["1P 5P","fifth","5"],["1P 3M 5A","augmented","aug + +5 ^#5"],["1P 3m 5A","minor augmented","m#5 -#5 m+"],["1P 3M 5A 7M","augmented seventh","maj7#5 maj7+5 +maj7 ^7#5"],["1P 3M 5P 7M 9M 11A","major sharp eleventh (lydian)","maj9#11 \u03949#11 ^9#11"],["1P 2M 4P 5P","","sus24 sus4add9"],["1P 3M 5A 7M 9M","","maj9#5 Maj9#5"],["1P 3M 5A 7m","","7#5 +7 7+ 7aug aug7"],["1P 3M 5A 7m 9A","","7#5#9 7#9#5 7alt"],["1P 3M 5A 7m 9M","","9#5 9+"],["1P 3M 5A 7m 9M 11A","","9#5#11"],["1P 3M 5A 7m 9m","","7#5b9 7b9#5"],["1P 3M 5A 7m 9m 11A","","7#5b9#11"],["1P 3M 5A 9A","","+add#9"],["1P 3M 5A 9M","","M#5add9 +add9"],["1P 3M 5P 6M 11A","","M6#11 M6b5 6#11 6b5"],["1P 3M 5P 6M 7M 9M","","M7add13"],["1P 3M 5P 6M 9M 11A","","69#11"],["1P 3m 5P 6M 9M","","m69 -69"],["1P 3M 5P 6m 7m","","7b6"],["1P 3M 5P 7M 9A 11A","","maj7#9#11"],["1P 3M 5P 7M 9M 11A 13M","","M13#11 maj13#11 M13+4 M13#4"],["1P 3M 5P 7M 9m","","M7b9"],["1P 3M 5P 7m 11A 13m","","7#11b13 7b5b13"],["1P 3M 5P 7m 13M","","7add6 67 7add13"],["1P 3M 5P 7m 9A 11A","","7#9#11 7b5#9 7#9b5"],["1P 3M 5P 7m 9A 11A 13M","","13#9#11"],["1P 3M 5P 7m 9A 11A 13m","","7#9#11b13"],["1P 3M 5P 7m 9A 13M","","13#9"],["1P 3M 5P 7m 9A 13m","","7#9b13"],["1P 3M 5P 7m 9M 11A","","9#11 9+4 9#4"],["1P 3M 5P 7m 9M 11A 13M","","13#11 13+4 13#4"],["1P 3M 5P 7m 9M 11A 13m","","9#11b13 9b5b13"],["1P 3M 5P 7m 9m 11A","","7b9#11 7b5b9 7b9b5"],["1P 3M 5P 7m 9m 11A 13M","","13b9#11"],["1P 3M 5P 7m 9m 11A 13m","","7b9b13#11 7b9#11b13 7b5b9b13"],["1P 3M 5P 7m 9m 13M","","13b9"],["1P 3M 5P 7m 9m 13m","","7b9b13"],["1P 3M 5P 7m 9m 9A","","7b9#9"],["1P 3M 5P 9M","","Madd9 2 add9 add2"],["1P 3M 5P 9m","","Maddb9"],["1P 3M 5d","","Mb5"],["1P 3M 5d 6M 7m 9M","","13b5"],["1P 3M 5d 7M","","M7b5"],["1P 3M 5d 7M 9M","","M9b5"],["1P 3M 5d 7m","","7b5"],["1P 3M 5d 7m 9M","","9b5"],["1P 3M 7m","","7no5"],["1P 3M 7m 13m","","7b13"],["1P 3M 7m 9M","","9no5"],["1P 3M 7m 9M 13M","","13no5"],["1P 3M 7m 9M 13m","","9b13"],["1P 3m 4P 5P","","madd4"],["1P 3m 5P 6m 7M","","mMaj7b6"],["1P 3m 5P 6m 7M 9M","","mMaj9b6"],["1P 3m 5P 7m 11P","","m7add11 m7add4"],["1P 3m 5P 9M","","madd9"],["1P 3m 5d 6M 7M","","o7M7"],["1P 3m 5d 7M","","oM7"],["1P 3m 6m 7M","","mb6M7"],["1P 3m 6m 7m","","m7#5"],["1P 3m 6m 7m 9M","","m9#5"],["1P 3m 5A 7m 9M 11P","","m11A"],["1P 3m 6m 9m","","mb6b9"],["1P 2M 3m 5d 7m","","m9b5"],["1P 4P 5A 7M","","M7#5sus4"],["1P 4P 5A 7M 9M","","M9#5sus4"],["1P 4P 5A 7m","","7#5sus4"],["1P 4P 5P 7M","","M7sus4"],["1P 4P 5P 7M 9M","","M9sus4"],["1P 4P 5P 7m 9M","","9sus4 9sus"],["1P 4P 5P 7m 9M 13M","","13sus4 13sus"],["1P 4P 5P 7m 9m 13m","","7sus4b9b13 7b9b13sus4"],["1P 4P 7m 10m","","4 quartal"],["1P 5P 7m 9m 11P","","11b9"]].forEach((function(e){var t=(0,o.Z)(e,3),n=t[0],r=t[1],i=t[2];return De(n.split(" "),i.split(" "),r)})),ve.sort((function(e,t){return e.setNum-t.setNum}));var Oe={names:function(){return ve.map((function(e){return e.name})).filter((function(e){return e}))},symbols:function(){return ve.map((function(e){return e.aliases[0]})).filter((function(e){return e}))},get:ge,all:Ee,add:De,removeAll:function(){ve=[],ye={}},keys:function(){return Object.keys(ye)},entries:be,chordType:_e};function ke(e){var t=e.map((function(e){return E(e).pc})).filter((function(e){return e}));if(0===E.length)return[];var n=function(e,t){var n=e[0],r=E(n).chroma,i=function(e){var t=e.reduce((function(e,t){var n=E(t).chroma;return void 0!==n&&(e[n]=e[n]||E(t).name),e}),{});return function(e){return t[e]}}(e),o=le(e,!1),a=[];return o.forEach((function(e,o){var s=Ee().filter((function(t){return t.chroma===e}));s.forEach((function(e){var s=e.aliases[0],u=i(o);o!==r?a.push({weight:.5*t,name:"".concat(u).concat(s,"/").concat(n)}):a.push({weight:1*t,name:"".concat(u).concat(s)})}))})),a}(t,1);return n.filter((function(e){return e.weight})).sort((function(e,t){return t.weight-e.weight})).map((function(e){return e.name}))}var Ae=n(3878),we=n(9199),xe=n(181),Ce=n(5267);var Se=(0,z.Z)((0,z.Z)({},te),{},{intervals:[],aliases:[]}),Te=[],Fe={};function qe(){return Te.map((function(e){return e.name}))}function Be(e){return Fe[e]||Se}var Pe=s("ScaleDictionary.scaleType","ScaleType.get",Be);function Me(){return Te.slice()}var Re=s("ScaleDictionary.entries","ScaleType.all",Me);function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=(0,z.Z)((0,z.Z)({},se(e)),{},{name:t,intervals:e,aliases:n});return Te.push(r),Fe[r.name]=r,Fe[r.setNum]=r,Fe[r.chroma]=r,r.aliases.forEach((function(e){return Ne(r,e)})),r}function Ne(e,t){Fe[t]=e}[["1P 2M 3M 5P 6M","major pentatonic","pentatonic"],["1P 3M 4P 5P 7M","ionian pentatonic"],["1P 3M 4P 5P 7m","mixolydian pentatonic","indian"],["1P 2M 4P 5P 6M","ritusen"],["1P 2M 4P 5P 7m","egyptian"],["1P 3M 4P 5d 7m","neopolitan major pentatonic"],["1P 3m 4P 5P 6m","vietnamese 1"],["1P 2m 3m 5P 6m","pelog"],["1P 2m 4P 5P 6m","kumoijoshi"],["1P 2M 3m 5P 6m","hirajoshi"],["1P 2m 4P 5d 7m","iwato"],["1P 2m 4P 5P 7m","in-sen"],["1P 3M 4A 5P 7M","lydian pentatonic","chinese"],["1P 3m 4P 6m 7m","malkos raga"],["1P 3m 4P 5d 7m","locrian pentatonic","minor seven flat five pentatonic"],["1P 3m 4P 5P 7m","minor pentatonic","vietnamese 2"],["1P 3m 4P 5P 6M","minor six pentatonic"],["1P 2M 3m 5P 6M","flat three pentatonic","kumoi"],["1P 2M 3M 5P 6m","flat six pentatonic"],["1P 2m 3M 5P 6M","scriabin"],["1P 3M 5d 6m 7m","whole tone pentatonic"],["1P 3M 4A 5A 7M","lydian #5P pentatonic"],["1P 3M 4A 5P 7m","lydian dominant pentatonic"],["1P 3m 4P 5P 7M","minor #7M pentatonic"],["1P 3m 4d 5d 7m","super locrian pentatonic"],["1P 2M 3m 4P 5P 7M","minor hexatonic"],["1P 2A 3M 5P 5A 7M","augmented"],["1P 2M 3m 3M 5P 6M","major blues"],["1P 2M 4P 5P 6M 7m","piongio"],["1P 2m 3M 4A 6M 7m","prometheus neopolitan"],["1P 2M 3M 4A 6M 7m","prometheus"],["1P 2m 3M 5d 6m 7m","mystery #1"],["1P 2m 3M 4P 5A 6M","six tone symmetric"],["1P 2M 3M 4A 5A 7m","whole tone","messiaen's mode #1"],["1P 2m 4P 4A 5P 7M","messiaen's mode #5"],["1P 3m 4P 5d 5P 7m","minor blues","blues"],["1P 2M 3M 4P 5d 6m 7m","locrian major","arabian"],["1P 2m 3M 4A 5P 6m 7M","double harmonic lydian"],["1P 2M 3m 4P 5P 6m 7M","harmonic minor"],["1P 2m 2A 3M 4A 6m 7m","altered","super locrian","diminished whole tone","pomeroy"],["1P 2M 3m 4P 5d 6m 7m","locrian #2","half-diminished","aeolian b5"],["1P 2M 3M 4P 5P 6m 7m","mixolydian b6","melodic minor fifth mode","hindu"],["1P 2M 3M 4A 5P 6M 7m","lydian dominant","lydian b7","overtone"],["1P 2M 3M 4A 5P 6M 7M","lydian"],["1P 2M 3M 4A 5A 6M 7M","lydian augmented"],["1P 2m 3m 4P 5P 6M 7m","dorian b2","phrygian #6","melodic minor second mode"],["1P 2M 3m 4P 5P 6M 7M","melodic minor"],["1P 2m 3m 4P 5d 6m 7m","locrian"],["1P 2m 3m 4d 5d 6m 7d","ultralocrian","superlocrian bb7","superlocrian diminished"],["1P 2m 3m 4P 5d 6M 7m","locrian 6","locrian natural 6","locrian sharp 6"],["1P 2A 3M 4P 5P 5A 7M","augmented heptatonic"],["1P 2M 3m 4A 5P 6M 7m","dorian #4","ukrainian dorian","romanian minor","altered dorian"],["1P 2M 3m 4A 5P 6M 7M","lydian diminished"],["1P 2m 3m 4P 5P 6m 7m","phrygian"],["1P 2M 3M 4A 5A 7m 7M","leading whole tone"],["1P 2M 3M 4A 5P 6m 7m","lydian minor"],["1P 2m 3M 4P 5P 6m 7m","phrygian dominant","spanish","phrygian major"],["1P 2m 3m 4P 5P 6m 7M","balinese"],["1P 2m 3m 4P 5P 6M 7M","neopolitan major"],["1P 2M 3m 4P 5P 6m 7m","aeolian","minor"],["1P 2M 3M 4P 5P 6m 7M","harmonic major"],["1P 2m 3M 4P 5P 6m 7M","double harmonic major","gypsy"],["1P 2M 3m 4P 5P 6M 7m","dorian"],["1P 2M 3m 4A 5P 6m 7M","hungarian minor"],["1P 2A 3M 4A 5P 6M 7m","hungarian major"],["1P 2m 3M 4P 5d 6M 7m","oriental"],["1P 2m 3m 3M 4A 5P 7m","flamenco"],["1P 2m 3m 4A 5P 6m 7M","todi raga"],["1P 2M 3M 4P 5P 6M 7m","mixolydian","dominant"],["1P 2m 3M 4P 5d 6m 7M","persian"],["1P 2M 3M 4P 5P 6M 7M","major","ionian"],["1P 2m 3M 5d 6m 7m 7M","enigmatic"],["1P 2M 3M 4P 5A 6M 7M","major augmented","major #5","ionian augmented","ionian #5"],["1P 2A 3M 4A 5P 6M 7M","lydian #9"],["1P 2m 2M 4P 4A 5P 6m 7M","messiaen's mode #4"],["1P 2m 3M 4P 4A 5P 6m 7M","purvi raga"],["1P 2m 3m 3M 4P 5P 6m 7m","spanish heptatonic"],["1P 2M 3M 4P 5P 6M 7m 7M","bebop"],["1P 2M 3m 3M 4P 5P 6M 7m","bebop minor"],["1P 2M 3M 4P 5P 5A 6M 7M","bebop major"],["1P 2m 3m 4P 5d 5P 6m 7m","bebop locrian"],["1P 2M 3m 4P 5P 6m 7m 7M","minor bebop"],["1P 2M 3m 4P 5d 6m 6M 7M","diminished","whole-half diminished"],["1P 2M 3M 4P 5d 5P 6M 7M","ichikosucho"],["1P 2M 3m 4P 5P 6m 6M 7M","minor six diminished"],["1P 2m 3m 3M 4A 5P 6M 7m","half-whole diminished","dominant diminished","messiaen's mode #2"],["1P 3m 3M 4P 5P 6M 7m 7M","kafi raga"],["1P 2M 3M 4P 4A 5A 6A 7M","messiaen's mode #6"],["1P 2M 3m 3M 4P 5d 5P 6M 7m","composite blues"],["1P 2M 3m 3M 4A 5P 6m 7m 7M","messiaen's mode #3"],["1P 2m 2M 3m 4P 4A 5P 6m 6M 7M","messiaen's mode #7"],["1P 2m 2M 3m 3M 4P 5d 5P 6m 6M 7m 7M","chromatic"]].forEach((function(e){var t,n=(t=e,(0,Ae.Z)(t)||(0,we.Z)(t)||(0,xe.Z)(t)||(0,Ce.Z)()),r=n[0],i=n[1],o=n.slice(2);return Ie(r.split(" "),i,o)}));var Le={names:qe,get:Be,all:Me,add:Ie,removeAll:function(){Te=[],Fe={}},keys:function(){return Object.keys(Fe)},entries:Re,scaleType:Pe},je={empty:!0,name:"",symbol:"",root:"",rootDegree:0,type:"",tonic:null,setNum:NaN,quality:"Unknown",chroma:"",normalized:"",aliases:[],notes:[],intervals:[]},Ze=/^(6|64|7|9|11|13)$/;function Qe(e){var t=D(e),n=(0,o.Z)(t,4),r=n[0],i=n[1],a=n[2],s=n[3];return""===r?["",e]:"A"===r&&"ug"===s?["","aug"]:s||"4"!==a&&"5"!==a?Ze.test(a)?[r+i,a+s]:[r+i+a,s]:[r+i,a]}function We(e){if(""===e)return je;if(Array.isArray(e)&&2===e.length)return Ge(e[1],e[0]);var t=Qe(e),n=(0,o.Z)(t,2),r=n[0],i=Ge(n[1],r);return i.empty?Ge(e):i}function Ge(e,t,n){var r=ge(e),i=E(t||""),o=E(n||"");if(r.empty||t&&i.empty||n&&o.empty)return je;var a=P(i.pc,o.pc),s=r.intervals.indexOf(a)+1;if(!o.empty&&!s)return je;for(var u=Array.from(r.intervals),c=1;c1&&n?" over "+o.pc:"");return(0,z.Z)((0,z.Z)({},r),{},{name:m,symbol:p,type:r.name,root:o.name,intervals:u,rootDegree:s,tonic:i.name,notes:d})}var Ve={getChord:Ge,get:We,detect:ke,chordScales:function(e){var t=he(We(e).chroma);return Me().filter((function(e){return t(e.chroma)})).map((function(e){return e.name}))},extended:function(e){var t=We(e),n=he(t.chroma);return Ee().filter((function(e){return n(e.chroma)})).map((function(e){return t.tonic+e.aliases[0]}))},reduced:function(e){var t=We(e),n=fe(t.chroma);return Ee().filter((function(e){return n(e.chroma)})).map((function(e){return t.tonic+e.aliases[0]}))},tokenize:Qe,transpose:function(e,t){var n=Qe(e),r=(0,o.Z)(n,2),i=r[0],a=r[1];return i?B(i,t)+a:e},chord:s("Chord.chord","Chord.get",We)},He=[];[[.125,"dl",["large","duplex longa","maxima","octuple","octuple whole"]],[.25,"l",["long","longa"]],[.5,"d",["double whole","double","breve"]],[1,"w",["whole","semibreve"]],[2,"h",["half","minim"]],[4,"q",["quarter","crotchet"]],[8,"e",["eighth","quaver"]],[16,"s",["sixteenth","semiquaver"]],[32,"t",["thirty-second","demisemiquaver"]],[64,"sf",["sixty-fourth","hemidemisemiquaver"]],[128,"h",["hundred twenty-eighth"]],[256,"th",["two hundred fifty-sixth"]]].forEach((function(e){var t=(0,o.Z)(e,3);return function(e,t,n){He.push({empty:!1,dots:"",name:"",value:1/e,fraction:e<1?[1/e,1]:[1,e],shorthand:t,names:n})}(t[0],t[1],t[2])}));var $e={empty:!0,name:"",value:0,fraction:[0,0],shorthand:"",dots:"",names:[]};var ze=/^([^.]+)(\.*)$/;function Ue(e){var t=ze.exec(e)||[],n=(0,o.Z)(t,3),r=(n[0],n[1]),i=n[2],a=He.find((function(e){return e.shorthand===r||e.names.includes(r)}));if(!a)return $e;var s=function(e,t){for(var n=Math.pow(2,t),r=e[0]*n,i=e[1]*n,o=r,a=0;a=0&&+e<=127}function ct(e){if(ut(e))return+e;var t=E(e);return t.empty?null:t.midi}var lt=Math.log(2),ft=Math.log(440);function ht(e){var t=12*(Math.log(e)-ft)/lt+69;return Math.round(100*t)/100}var dt="C C# D D# E F F# G G# A A# B".split(" "),pt="C Db D Eb E F Gb G Ab A Bb B".split(" ");function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(isNaN(e)||e===-1/0||e===1/0)return"";e=Math.round(e);var n=!0===t.sharps?dt:pt,r=n[e%12];if(t.pitchClass)return r;var i=Math.floor(e/12)-1;return r+i}var vt={isMidi:ut,toMidi:ct,midiToFreq:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:440;return Math.pow(2,(e-69)/12)*t},midiToNoteName:mt,freqToMidi:ht},yt=["C","D","E","F","G","A","B"],gt=function(e){return e.name},_t=function(e){return e.map(E).filter((function(e){return!e.empty}))};var Et=E;function bt(e){return mt(e)}var Dt=B,Ot=function(e){return function(t){return Dt(t,e)}},kt=function(e){return function(t){return Dt(e,t)}};function At(e,t){var n=Et(e);if(n.empty)return"";var r=(0,o.Z)(n.coord,2),i=r[0],a=r[1];return O(void 0===a?[i+t]:[i+t,a]).name}var wt=function(e,t){return e.height-t.height};function xt(e,t){return t=t||wt,_t(e).sort(t).map(gt)}function Ct(e){return xt(e,wt).filter((function(e,t,n){return 0===t||e!==n[t-1]}))}function St(e,t){var n=Et(e);if(n.empty)return"";var r=Et(t||mt(n.midi||n.chroma,{sharps:n.alt<0,pitchClass:!0}));if(r.empty||r.chroma!==n.chroma)return"";if(void 0===n.oct)return r.pc;var i=n.chroma-n.alt,o=r.chroma-r.alt,a=i>11||o<0?-1:i<0||o>11?1:0,s=n.oct+a;return r.pc+s}var Tt={names:function(e){return void 0===e?yt.slice():Array.isArray(e)?_t(e).map(gt):[]},get:Et,name:function(e){return Et(e).name},pitchClass:function(e){return Et(e).pc},accidentals:function(e){return Et(e).acc},octave:function(e){return Et(e).oct},midi:function(e){return Et(e).midi},ascending:wt,descending:function(e,t){return t.height-e.height},sortedNames:xt,sortedUniqNames:Ct,fromMidi:bt,fromMidiSharps:function(e){return mt(e,{sharps:!0})},freq:function(e){return Et(e).freq},fromFreq:function(e){return mt(ht(e))},fromFreqSharps:function(e){return mt(ht(e),{sharps:!0})},chroma:function(e){return Et(e).chroma},transpose:Dt,tr:B,transposeBy:Ot,trBy:Ot,transposeFrom:kt,trFrom:kt,transposeFifths:At,trFifths:At,simplify:function(e){var t=Et(e);return t.empty?"":mt(t.midi||t.chroma,{sharps:t.alt>0,pitchClass:null===t.midi})},enharmonic:St},Ft={empty:!0,name:"",chordType:""},qt={};function Bt(e){return"string"===typeof e?qt[e]||(qt[e]=function(e){var t=(u=e,Mt.exec(u)||["","","",""]),n=(0,o.Z)(t,4),r=n[0],i=n[1],a=n[2],s=n[3];var u;if(!a)return Ft;var c=a.toUpperCase(),l=It.indexOf(c),f=_(i),h=1;return{empty:!1,name:r,roman:a,interval:S({step:l,alt:f,dir:h}).name,acc:i,chordType:s,alt:f,step:l,major:a===c,oct:0,dir:h}}(e)):"number"===typeof e?Bt(It[e]||""):c(e)?Bt(g((t=e).alt)+It[t.step]):u(e)?Bt(e.name):Ft;var t}var Pt=s("RomanNumeral.romanNumeral","RomanNumeral.get",Bt);var Mt=/^(#{1,}|b{1,}|x{1,}|)(IV|I{1,3}|VI{0,2}|iv|i{1,3}|vi{0,2})([^IViv]*)$/;var Rt="I II III IV V VI VII",It=Rt.split(" "),Nt=Rt.toLowerCase().split(" ");var Lt={names:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(e?It:Nt).slice()},get:Bt,romanNumeral:Pt},jt=Object.freeze([]),Zt={type:"major",tonic:"",alteration:0,keySignature:""},Qt={tonic:"",grades:jt,intervals:jt,scale:jt,chords:jt,chordsHarmonicFunction:jt,chordScales:jt},Wt=(0,z.Z)((0,z.Z)((0,z.Z)({},Zt),Qt),{},{type:"major",minorRelative:"",scale:jt,secondaryDominants:jt,secondaryDominantsMinorRelative:jt,substituteDominants:jt,substituteDominantsMinorRelative:jt}),Gt=(0,z.Z)((0,z.Z)({},Zt),{},{type:"minor",relativeMajor:"",natural:Qt,harmonic:Qt,melodic:Qt}),Vt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.map((function(t,r){return"".concat(e[r]).concat(n).concat(t)}))};function Ht(e,t,n,r){return function(i){var o=e.map((function(e){return Bt(e).interval||""})),a=o.map((function(e){return B(i,e)}));return{tonic:i,grades:e,intervals:o,scale:a,chords:Vt(a,t),chordsHarmonicFunction:n.slice(),chordScales:Vt(a,r," ")}}}var $t=function(e,t){var n=E(e),r=E(t);return n.empty||r.empty?0:r.coord[0]-n.coord[0]},zt=Ht("I II III IV V VI VII".split(" "),"maj7 m7 m7 maj7 7 m7 m7b5".split(" "),"T SD T SD D T D".split(" "),"major,dorian,phrygian,lydian,mixolydian,minor,locrian".split(",")),Ut=Ht("I II bIII IV V bVI bVII".split(" "),"m7 m7b5 maj7 m7 m7 maj7 7".split(" "),"T SD T SD D SD SD".split(" "),"minor,locrian,major,dorian,phrygian,lydian,mixolydian".split(",")),Yt=Ht("I II bIII IV V bVI VII".split(" "),"mMaj7 m7b5 +maj7 m7 7 maj7 o7".split(" "),"T SD T SD D SD D".split(" "),"harmonic minor,locrian 6,major augmented,lydian diminished,phrygian dominant,lydian #9,ultralocrian".split(",")),Xt=Ht("I II bIII IV V VI VII".split(" "),"m6 m7 +maj7 7 7 m7b5 m7b5".split(" "),"T SD T SD D ".split(" "),"melodic minor,dorian b2,lydian augmented,lydian dominant,mixolydian b6,locrian #2,altered".split(","));var Kt={majorKey:function(e){var t=E(e).pc;if(!t)return Wt;var n=zt(t),r=$t("C",t),i=function(t){var n=Bt(t);return n.empty?"":B(e,n.interval)+n.chordType};return(0,z.Z)((0,z.Z)({},n),{},{type:"major",minorRelative:B(t,"-3m"),alteration:r,keySignature:g(r),secondaryDominants:"- VI7 VII7 I7 II7 III7 -".split(" ").map(i),secondaryDominantsMinorRelative:"- IIIm7b5 IV#m7 Vm7 VIm7 VIIm7b5 -".split(" ").map(i),substituteDominants:"- bIII7 IV7 bV7 bVI7 bVII7 -".split(" ").map(i),substituteDominantsMinorRelative:"- IIIm7 Im7 IIbm7 VIm7 IVm7 -".split(" ").map(i)})},majorTonicFromKeySignature:function(e){return"number"===typeof e?At("C",e):"string"===typeof e&&/^b+|#+$/.test(e)?At("C",_(e)):null},minorKey:function(e){var t=E(e).pc;if(!t)return Gt;var n=$t("C",t)-3;return{type:"minor",tonic:t,relativeMajor:B(t,"3m"),alteration:n,keySignature:g(n),natural:Ut(t),harmonic:Yt(t),melodic:Xt(t)}}},Jt=[[0,2773,0,"ionian","","Maj7","major"],[1,2902,2,"dorian","m","m7"],[2,3418,4,"phrygian","m","m7"],[3,2741,-1,"lydian","","Maj7"],[4,2774,1,"mixolydian","","7"],[5,2906,3,"aeolian","m","m7","minor"],[6,3434,5,"locrian","dim","m7b5"]],en=(0,z.Z)((0,z.Z)({},te),{},{name:"",alt:0,modeNum:NaN,triad:"",seventh:"",aliases:[]}),tn=Jt.map((function(e){var t=(0,o.Z)(e,7),n=t[0],r=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=c?[c]:[],f=Number(r).toString(2);return{empty:!1,intervals:Be(a).intervals,modeNum:n,chroma:f,normalized:f,name:a,setNum:r,alt:i,triad:s,seventh:u,aliases:l}})),nn={};function rn(e){return"string"===typeof e?nn[e.toLowerCase()]||en:e&&e.name?rn(e.name):en}tn.forEach((function(e){nn[e.name]=e,e.aliases.forEach((function(t){nn[t]=e}))}));var on=s("Mode.mode","Mode.get",rn);function an(){return tn.slice()}var sn=s("Mode.mode","Mode.all",an);function un(e){return function(t,n){var r=rn(t);if(r.empty)return[];var i=X(r.modeNum,e),o=r.intervals.map((function(e){return B(n,e)}));return i.map((function(e,t){return o[t]+e}))}}function cn(e,t){var n=rn(t),r=rn(e);return n.empty||r.empty?"":Je(ot("1P",r.alt-n.alt))}var ln={get:rn,names:function(){return tn.map((function(e){return e.name}))},all:an,distance:cn,relativeTonic:function(e,t,n){return B(n,cn(e,t))},notes:function(e,t){return rn(e).intervals.map((function(e){return B(t,e)}))},triads:un(Jt.map((function(e){return e[4]}))),seventhChords:un(Jt.map((function(e){return e[5]}))),entries:sn,mode:on};var fn={fromRomanNumerals:function(e,t){return t.map(Bt).map((function(t){return B(e,S(t))+t.chordType}))},toRomanNumerals:function(e,t){return t.map((function(t){var n=Qe(t),r=(0,o.Z)(n,2),i=r[0],a=r[1];return Bt(S(P(e,i))).name+a}))}};function hn(e){var t=K(e.map(ct));return e.length&&t.length===e.length?t.reduce((function(e,t){var n=e[e.length-1];return e.concat(Y(n,t).slice(1))}),[t[0]]):[]}var dn={numeric:hn,chromatic:function(e,t){return hn(e).map((function(e){return mt(e,t)}))}},pn={empty:!0,name:"",type:"",tonic:null,setNum:NaN,chroma:"",normalized:"",aliases:[],notes:[],intervals:[]};function mn(e){if("string"!==typeof e)return["",""];var t=e.indexOf(" "),n=E(e.substring(0,t));if(n.empty){var r=E(e);return r.empty?["",e]:[r.name,""]}var i=e.substring(n.name.length+1);return[n.name,i.length?i:""]}function vn(e){var t=Array.isArray(e)?e:mn(e),n=E(t[0]).name,r=Be(t[1]);if(r.empty)return pn;var i=r.name,o=n?r.intervals.map((function(e){return B(n,e)})):[],a=n?n+" "+i:i;return(0,z.Z)((0,z.Z)({},r),{},{name:a,type:i,tonic:n,notes:o})}function yn(e){var t=e.map((function(e){return E(e).pc})).filter((function(e){return e})),n=t[0],r=Ct(t);return X(r.indexOf(n),r)}var gn={get:vn,names:qe,extended:function(e){var t=he(vn(e).chroma);return Me().filter((function(e){return t(e.chroma)})).map((function(e){return e.name}))},modeNames:function(e){var t=vn(e);if(t.empty)return[];var n=t.tonic?t.notes:t.intervals;return le(t.chroma).map((function(e,t){var r=vn(e).name;return r?[n[t],r]:["",""]})).filter((function(e){return e[0]}))},reduced:function(e){var t=fe(vn(e).chroma);return Me().filter((function(e){return t(e.chroma)})).map((function(e){return e.name}))},scaleChords:function(e){var t=fe(vn(e).chroma);return Ee().filter((function(e){return t(e.chroma)})).map((function(e){return e.aliases[0]}))},scaleNotes:yn,tokenize:mn,rangeOf:function(e){var t=function(e){var t=Array.isArray(e)?yn(e):vn(e).notes,n=t.map((function(e){return E(e).chroma}));return function(e){var r=E("number"===typeof e?bt(e):e),i=r.height;if(void 0!==i){var o=i%12,a=n.indexOf(o);if(-1!==a)return St(r.name,t[a])}}}(e);return function(e,n){var r=E(e).height,i=E(n).height;return void 0===r||void 0===i?[]:Y(r,i).map(t).filter((function(e){return e}))}},scale:s("Scale.scale","Scale.get",vn)},_n={empty:!0,name:"",upper:void 0,lower:void 0,type:void 0,additive:[]},En=["4/4","3/4","2/4","2/2","12/8","9/8","6/8","3/8"];var bn=/^(\d?\d(?:\+\d)*)\/(\d)$/,Dn=new Map;function On(e){if("string"===typeof e){var t=bn.exec(e)||[],n=(0,o.Z)(t,3);n[0];return On([n[1],n[2]])}var r=(0,o.Z)(e,2),i=r[0],a=+r[1];if("number"===typeof i)return[i,a];var s=i.split("+").map((function(e){return+e}));return 1===s.length?[s[0],a]:[s,a]}var kn={names:function(){return En.slice()},parse:On,get:function(e){var t=Dn.get(e);if(t)return t;var n=function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1],i=Array.isArray(n)?n.reduce((function(e,t){return e+t}),0):n,a=r;if(0===i||0===a)return _n;var s=Array.isArray(n)?"".concat(n.join("+"),"/").concat(r):"".concat(n,"/").concat(r),u=Array.isArray(n)?n:[];return{empty:!1,name:s,type:4===a||2===a?"simple":8===a&&i%3===0?"compound":"irregular",upper:i,lower:a,additive:u}}(On(e));return Dn.set(e,n),n}},An=r,wn=pe,xn=Oe,Cn=Le},7292:function(e,t,n){!function(e,t,n,r){"use strict";function i(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var o=i(t),a=i(n),s=i(r),u=function(e,t,n){return{endTime:t,insertTime:n,type:"exponentialRampToValue",value:e}},c=function(e,t,n){return{endTime:t,insertTime:n,type:"linearRampToValue",value:e}},l=function(e,t){return{startTime:t,type:"setValue",value:e}},f=function(e,t,n){return{duration:n,startTime:t,type:"setValueCurve",values:e}},h=function(e,t,n){var r=n.startTime,i=n.target,o=n.timeConstant;return i+(t-i)*Math.exp((r-e)/o)},d=function(e){return"exponentialRampToValue"===e.type},p=function(e){return"linearRampToValue"===e.type},m=function(e){return d(e)||p(e)},v=function(e){return"setValue"===e.type},y=function(e){return"setValueCurve"===e.type},g=function e(t,n,r,i){var o=t[n];return void 0===o?i:m(o)||v(o)?o.value:y(o)?o.values[o.values.length-1]:h(r,e(t,n-1,o.startTime,i),o)},_=function(e,t,n,r,i){return void 0===n?[r.insertTime,i]:m(n)?[n.endTime,n.value]:v(n)?[n.startTime,n.value]:y(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,g(e,t-1,n.startTime,i)]},E=function(e){return"cancelAndHold"===e.type},b=function(e){return"cancelScheduledValues"===e.type},D=function(e){return E(e)||b(e)?e.cancelTime:d(e)||p(e)?e.endTime:e.startTime},O=function(e,t,n,r){var i=r.endTime,o=r.value;return n===o?o:0=t:D(n)>=t})),r=this._automationEvents[n];if(-1!==n&&(this._automationEvents=this._automationEvents.slice(0,n)),E(e)){var i=this._automationEvents[this._automationEvents.length-1];if(void 0!==r&&m(r)){if(x(i))throw new Error("The internal list is malformed.");var o=y(i)?i.startTime+i.duration:D(i),a=y(i)?i.values[i.values.length-1]:i.value,s=d(r)?O(t,o,a,r):k(t,o,a,r),h=d(r)?u(s,t,this._currenTime):c(s,t,this._currenTime);this._automationEvents.push(h)}void 0!==i&&x(i)&&this._automationEvents.push(l(this.getValue(t),t)),void 0!==i&&y(i)&&i.startTime+i.duration>t&&(this._automationEvents[this._automationEvents.length-1]=f(new Float32Array([6,7]),i.startTime,t-i.startTime))}}else{var v=this._automationEvents.findIndex((function(e){return D(e)>t})),g=-1===v?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[v-1];if(void 0!==g&&y(g)&&D(g)+g.duration>t)return!1;var _=d(e)?u(e.value,e.endTime,this._currenTime):p(e)?c(e.value,t,this._currenTime):e;if(-1===v)this._automationEvents.push(_);else{if(y(e)&&t+e.duration>D(this._automationEvents[v]))return!1;this._automationEvents.splice(v,0,_)}}return!0}},{key:"flush",value:function(e){var t=this._automationEvents.findIndex((function(t){return D(t)>e}));if(t>1){var n=this._automationEvents.slice(t-1),r=n[0];x(r)&&n.unshift(l(g(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=n}}},{key:"getValue",value:function(e){if(0===this._automationEvents.length)return this._defaultValue;var t=this._automationEvents.findIndex((function(t){return D(t)>e})),n=this._automationEvents[t],r=(-1===t?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(void 0!==i&&x(i)&&(void 0===n||!m(n)||n.insertTime>e))return h(e,g(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(void 0!==i&&v(i)&&(void 0===n||!m(n)))return i.value;if(void 0!==i&&y(i)&&(void 0===n||!m(n)||i.startTime+i.duration>e))return e1;)r.push(Math.floor(o/i[a])),i.push(o%i[a]),o=i[a],a++;return r.push(o),function e(t){if(-1==t)n.push(0);else if(-2==t)n.push(1);else{for(var o=0;on?t(e,n):t(n,e)}},9273:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;--n)if(e[n].node===t)return!0;return!1}function m(e,t){return(new f).traverse(e,t)}function v(e,t){var n;return n=function(e,t){var n,r,i,o;for(r=e.length,i=0;r;)t(e[o=i+(n=r>>>1)])?r=n:(i=o+1,r-=n+1);return i}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},r={Break:o={},Skip:a={},Remove:s={}},c.prototype.replace=function(e){this.parent[this.key]=e},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var e,t,n,r,i;function o(e,t){if(Array.isArray(t))for(n=0,r=t.length;n=0;)if(g=s[f=y[m]])if(Array.isArray(g)){for(v=g.length;(v-=1)>=0;)if(g[v]&&!p(r,g[v])){if(d(u,y[m]))i=new l(g[v],[f,v],"Property",null);else{if(!h(g[v]))continue;i=new l(g[v],[f,v],null,null)}n.push(i)}}else if(h(g)){if(p(r,g))continue;n.push(new l(g,f,null,null))}}}else if(i=r.pop(),c=this.__execute(t.leave,i),this.__state===o||c===o)return},f.prototype.replace=function(e,t){var n,r,i,u,f,p,m,v,y,g,_,E,b;function D(e){var t,r,i,o;if(e.ref.remove())for(r=e.ref.key,o=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===o){if(i.ref.key=0;)if(g=i[b=y[m]])if(Array.isArray(g)){for(v=g.length;(v-=1)>=0;)if(g[v]){if(d(u,y[m]))p=new l(g[v],[b,v],"Property",new c(g,v));else{if(!h(g[v]))continue;p=new l(g[v],[b,v],null,new c(g,v))}n.push(p)}}else h(g)&&n.push(new l(g,b,null,new c(i,b)))}}else if(p=r.pop(),void 0!==(f=this.__execute(t.leave,p))&&f!==o&&f!==a&&f!==s&&p.ref.replace(f),this.__state!==s&&f!==s||D(p),this.__state===o||f===o)return E.root;return E.root},t.Syntax=n,t.traverse=m,t.replace=function(e,t){return(new f).replace(e,t)},t.attachComments=function(e,t,n){var i,o,a,s,c=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,o=t.length;ae.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),c.splice(s,1)):s+=1;return s===c.length?r.Break:c[s].extendedRange[0]>e.range[1]?r.Skip:void 0}}),s=0,m(e,{leave:function(e){for(var t;se.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=f,t.cloneEnvironment=function(){return e({})},t}(t)},6876:function(e){!function(){"use strict";function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()},2162:function(e){!function(){"use strict";var t,n,r,i,o,a;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},2502:function(e,t,n){!function(){"use strict";var t=n(2162);function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return s(e)&&!o(e,t)},isIdentifierES6:function(e,t){return u(e)&&!a(e,t)}}}()},1670:function(e,t,n){!function(){"use strict";t.ast=n(6876),t.code=n(2162),t.keyword=n(2502)}()},9214:function(e){"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)r(u,this,t);else{var c=u.length,l=p(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2518:function(e,t){var n;!function(r){"use strict";var i={s:1,n:0,d:1};function o(e,t){if(isNaN(e=parseInt(e,10)))throw l.InvalidParameter;return e*t}function a(e,t){if(0===t)throw l.DivisionByZero;var n=Object.create(l.prototype);n.s=e<0?-1:1;var r=c(e=e<0?-e:e,t);return n.n=e/r,n.d=t/r,n}function s(e){for(var t={},n=e,r=2,i=4;i<=n;){for(;n%r===0;)n/=r,t[r]=(t[r]||0)+1;i+=1+2*r++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var u=function(e,t){var n,r=0,a=1,s=1,u=0,c=0,f=0,h=1,d=1,p=0,m=1,v=1,y=1,g=1e7;if(void 0===e||null===e);else if(void 0!==t){if(s=(r=e)*(a=t),r%1!==0||a%1!==0)throw l.NonIntegerParameter}else switch(typeof e){case"object":if("d"in e&&"n"in e)r=e.n,a=e.d,"s"in e&&(r*=e.s);else{if(!(0 in e))throw l.InvalidParameter;r=e[0],1 in e&&(a=e[1])}s=r*a;break;case"number":if(e<0&&(s=e,e=-e),e%1===0)r=e;else if(e>0){for(e>=1&&(e/=d=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)));m<=g&&y<=g;){if(e===(n=(p+v)/(m+y))){m+y<=g?(r=p+v,a=m+y):y>m?(r=v,a=y):(r=p,a=m);break}e>n?(p+=v,m+=y):(v+=p,y+=m),m>g?(r=v,a=y):(r=p,a=m)}r*=d}else(isNaN(e)||isNaN(t))&&(a=r=NaN);break;case"string":if(null===(m=e.match(/\d+|./g)))throw l.InvalidParameter;if("-"===m[p]?(s=-1,p++):"+"===m[p]&&p++,m.length===p+1?c=o(m[p++],s):"."===m[p+1]||"."===m[p]?("."!==m[p]&&(u=o(m[p++],s)),(++p+1===m.length||"("===m[p+1]&&")"===m[p+3]||"'"===m[p+1]&&"'"===m[p+3])&&(c=o(m[p],s),h=Math.pow(10,m[p].length),p++),("("===m[p]&&")"===m[p+2]||"'"===m[p]&&"'"===m[p+2])&&(f=o(m[p+1],s),d=Math.pow(10,m[p+1].length)-1,p+=3)):"/"===m[p+1]||":"===m[p+1]?(c=o(m[p],s),h=o(m[p+2],1),p+=3):"/"===m[p+3]&&" "===m[p+1]&&(u=o(m[p],s),c=o(m[p+2],s),h=o(m[p+4],1),p+=5),m.length<=p){s=r=f+(a=h*d)*u+d*c;break}default:throw l.InvalidParameter}if(0===a)throw l.DivisionByZero;i.s=s<0?-1:1,i.n=Math.abs(r),i.d=Math.abs(a)};function c(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function l(e,t){if(u(e,t),!(this instanceof l))return a(i.s*i.n,i.d);e=c(i.d,i.n),this.s=i.s,this.n=i.n/e,this.d=i.d/e}l.DivisionByZero=new Error("Division by Zero"),l.InvalidParameter=new Error("Invalid argument"),l.NonIntegerParameter=new Error("Parameters must be integer"),l.prototype={s:1,n:0,d:1,abs:function(){return a(this.n,this.d)},neg:function(){return a(-this.s*this.n,this.d)},add:function(e,t){return u(e,t),a(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(e,t){return u(e,t),a(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(e,t){return u(e,t),a(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(e,t){return u(e,t),a(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return a(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new l(NaN);if(void 0===e)return a(this.s*this.n%this.d,1);if(u(e,t),0===i.n&&0===this.d)throw l.DivisionByZero;return a(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(e,t){return u(e,t),a(c(i.n,this.n)*c(i.d,this.d),i.d*this.d)},lcm:function(e,t){return u(e,t),0===i.n&&0===this.n?a(0,1):a(i.n*this.n,c(i.n,this.n)*c(i.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):a(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):a(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):a(Math.round(e*this.s*this.n/this.d),e)},inverse:function(){return a(this.s*this.d,this.n)},pow:function(e,t){if(u(e,t),1===i.d)return i.s<0?a(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):a(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var n=s(this.n),r=s(this.d),o=1,c=1;for(var l in n)if("1"!==l){if("0"===l){o=0;break}if(n[l]*=i.n,n[l]%i.d!==0)return null;n[l]/=i.d,o*=Math.pow(l,n[l])}for(var l in r)if("1"!==l){if(r[l]*=i.n,r[l]%i.d!==0)return null;r[l]/=i.d,c*=Math.pow(l,r[l])}return i.s<0?a(c,o):a(o,c)},equals:function(e,t){return u(e,t),this.s*this.n*i.d===i.s*i.n*this.d},compare:function(e,t){u(e,t);var n=this.s*this.n*i.d-i.s*i.n*this.d;return(0=0;o--)i=i.inverse().add(n[o]);if(i.sub(t).abs().valueOf()0&&(n+=t,n+=" ",r%=i),n+=r,n+="/",n+=i),n},toLatex:function(e){var t,n="",r=this.n,i=this.d;return this.s<0&&(n+="-"),1===i?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,r%=i),n+="\\frac{",n+=r,n+="}{",n+=i,n+="}"),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do{r.push(Math.floor(t/n)),e=t%n,t=n,n=e}while(1!==t);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return"NaN";e=e||15;var r=function(e,t){for(;t%2===0;t/=2);for(;t%5===0;t/=5);if(1===t)return 0;for(var n=10%t,r=1;1!==n;r++)if(n=10*n%t,r>2e3)return 0;return r}(0,n),i=function(e,t,n){for(var r=1,i=function(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)1&t&&(r=r*e%n);return r}(10,n,t),o=0;o<300;o++){if(r===i)return o;r=10*r%t,i=10*i%t}return 0}(0,n,r),o=this.s<0?"-":"";if(o+=t/n|0,t%=n,(t*=10)&&(o+="."),r){for(var a=i;a--;)o+=t/n|0,t%=n,t*=10;o+="(";for(a=r;a--;)o+=t/n|0,t%=n,t*=10;o+=")"}else for(a=e;t&&a--;)o+=t/n|0,t%=n,t*=10;return o}},void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n)}()},5318:function(e,t,n){"use strict";var r;function i(e,t){for(var n,r=e.keys();!(n=r.next()).done;)t(e.get(n.value),n.value,e)}e=n.nmd(e);var o=function(){var e,t;function n(t){var r=this;r._map=e,n.Map&&(r._map=n.Map),r._=r._map?new r._map:{},t&&t.forEach((function(e){r.set(e[0],e[1])}))}"undefined"!==typeof Map&&(e=Map,Map.prototype.keys||(Map.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),e})),n.prototype.get=function(e){return this._map?this._.get(e):this._[e]},n.prototype.set=function(e,t){var n=Array.prototype.slice.call(arguments);e=n.shift();var r=this.get(e);return r||(r=[],this._map?this._.set(e,r):this._[e]=r),Array.prototype.push.apply(r,n),this},n.prototype.delete=function(e,t){if(!this.has(e))return!1;if(1==arguments.length)return this._map?this._.delete(e):delete this._[e],!0;var n=this.get(e),r=n.indexOf(t);return-1!=r&&(n.splice(r,1),!0)},n.prototype.has=function(e,t){var n=this._map?this._.has(e):this._.hasOwnProperty(e);if(1==arguments.length||!n)return n;var r=this.get(e)||[];return-1!=r.indexOf(t)},n.prototype.keys=function(){return this._map?r(this._.keys()):r(Object.keys(this._))},n.prototype.values=function(){var e=[];return this.forEachEntry((function(t){Array.prototype.push.apply(e,t)})),r(e)},n.prototype.forEachEntry=function(e){i(this,e)},n.prototype.forEach=function(e){var t=this;t.forEachEntry((function(n,r){n.forEach((function(n){e(n,r,t)}))}))},n.prototype.clear=function(){this._map?this._.clear():this._={}},Object.defineProperty(n.prototype,"size",{configurable:!1,enumerable:!0,get:function(){var e=0;return i(this,(function(t){e+=t.length})),e}}),Object.defineProperty(n.prototype,"count",{configurable:!1,enumerable:!0,get:function(){return this._.size}});try{t=new Function("iterator","makeIterator","var keysArray = []; for(var key of iterator){keysArray.push(key);} return makeIterator(keysArray).next;")}catch(o){}function r(e){if(Array.isArray(e)){var n=0;return{next:function(){return n1&&"/"===t[t.length-1]&&(t=t.slice(0,t.length-1)),t.length>1&&"/"!==t[0]&&(t="/".concat(t)),t;throw new Error("OSC prepareAddress() needs addresses of type array or string")}function F(e){if(!v(e))throw new Error("OSC prepareRegExPattern() needs strings");return e.replace(/\./g,"\\.").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!/g,"[^").replace(/\?/g,".").replace(/\*/g,".*")}var q=function(){function e(){r(this,e),this.data=[],this.byteLength=0}return o(e,[{key:"add",value:function(e){if(y(e)||g(e)||A(e))return this;var t=e.pack();return this.byteLength+=t.byteLength,this.data.push(t),this}},{key:"merge",value:function(){var e=new Uint8Array(this.byteLength),t=0;return this.data.forEach((function(n){e.set(n,t),t+=n.byteLength})),e}}]),e}(),B=function(){function e(t){r(this,e),this.value=t,this.offset=0}return o(e,[{key:"pack",value:function(e,t){if(!e||!t)throw new Error("OSC Atomic cant't be packed without given method or byteLength");var n=new Uint8Array(t),r=new DataView(n.buffer);if(k(this.value))throw new Error("OSC Atomic cant't be encoded with empty value");return r[e](this.offset,this.value,!1),n}},{key:"unpack",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!(e&&t&&n))throw new Error("OSC Atomic cant't be unpacked without given dataView, method or byteLength");if(!(e instanceof DataView))throw new Error("OSC Atomic expects an instance of type DataView");return this.value=e[t](r,!1),this.offset=r+n,this.offset}}]),e}(),P=function(e){s(n,e);var t=f(n);function n(e){if(r(this,n),e&&!p(e))throw new Error("OSC AtomicInt32 constructor expects value of type number");return t.call(this,e)}return o(n,[{key:"pack",value:function(){return d(u(n.prototype),"pack",this).call(this,"setInt32",4)}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return d(u(n.prototype),"unpack",this).call(this,e,"getInt32",4,t)}}]),n}(B),M="utf-8";function R(e){if(x("Buffer"))return Buffer.from(e).toString(M);if(x("TextDecoder"))return new TextDecoder(M).decode(new Int8Array(e));for(var t="",n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(!(e instanceof DataView))throw new Error("OSC AtomicString expects an instance of type DataView");for(var n,r=t,i=[];r0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(r(this,e),!p(t)||!p(n))throw new Error("OSC Timetag constructor expects values of type integer number");this.seconds=t,this.fractions=n}return o(e,[{key:"timestamp",value:function(e){var t;if("number"==typeof e){t=e/1e3;var n=Math.floor(t);return this.seconds=n+L,this.fractions=Math.round(j*(t-n)),e}return 1e3*((t=this.seconds-L)+Math.round(this.fractions/j))}}]),e}(),Q=function(e){s(n,e);var t=f(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();r(this,n);var i=new Z;return e instanceof Z?i=e:p(e)?i.timestamp(e):O(e)&&i.timestamp(e.getTime()),t.call(this,i)}return o(n,[{key:"pack",value:function(){if(k(this.value))throw new Error("OSC AtomicTimetag can not be encoded with empty value");var e=this.value,t=e.seconds,n=e.fractions,r=new Uint8Array(8),i=new DataView(r.buffer);return i.setInt32(0,t,!1),i.setInt32(4,n,!1),r}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(e instanceof DataView))throw new Error("OSC AtomicTimetag expects an instance of type DataView");var n=e.getUint32(t,!1),r=e.getUint32(t+4,!1);return this.value=new Z(n,r),this.offset=t+8,this.offset}}]),n}(B),W=function(e){s(n,e);var t=f(n);function n(e){if(r(this,n),e&&!D(e))throw new Error("OSC AtomicBlob constructor expects value of type Uint8Array");return t.call(this,e)}return o(n,[{key:"pack",value:function(){if(k(this.value))throw new Error("OSC AtomicBlob can not be encoded with empty value");var e=w(this.value.byteLength),t=new Uint8Array(e+4);return new DataView(t.buffer).setInt32(0,this.value.byteLength,!1),t.set(this.value,4),t}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(e instanceof DataView))throw new Error("OSC AtomicBlob expects an instance of type DataView");var n=e.getInt32(t,!1);return this.value=new Uint8Array(e.buffer,t+4,n),this.offset=w(t+4+n),this.offset}}]),n}(B),G=function(e){s(n,e);var t=f(n);function n(e){if(r(this,n),e&&!m(e))throw new Error("OSC AtomicFloat32 constructor expects value of type float");return t.call(this,e)}return o(n,[{key:"pack",value:function(){return d(u(n.prototype),"pack",this).call(this,"setFloat32",4)}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return d(u(n.prototype),"unpack",this).call(this,e,"getFloat32",4,t)}}]),n}(B),V=function(e){s(n,e);var t=f(n);function n(e){if(r(this,n),e&&!m(e))throw new Error("OSC AtomicFloat64 constructor expects value of type float");return t.call(this,e)}return o(n,[{key:"pack",value:function(){return d(u(n.prototype),"pack",this).call(this,"setFloat64",8)}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return d(u(n.prototype),"unpack",this).call(this,e,"getFloat64",8,t)}}]),n}(B),H=BigInt("9223372036854775807"),$=BigInt("-9223372036854775808"),z=function(e){s(n,e);var t=f(n);function n(e){if(r(this,n),e&&"bigint"!=typeof e)throw new Error("OSC AtomicInt64 constructor expects value of type BigInt");if(e&&(e<$||e>H))throw new Error("OSC AtomicInt64 value is out of bounds");var i;return e&&(i=BigInt.asIntN(64,e)),t.call(this,i)}return o(n,[{key:"pack",value:function(){return d(u(n.prototype),"pack",this).call(this,"setBigInt64",8)}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return d(u(n.prototype),"unpack",this).call(this,e,"getBigInt64",8,t)}}]),n}(B),U=BigInt("18446744073709551615"),Y=function(e){s(n,e);var t=f(n);function n(e){if(r(this,n),e&&"bigint"!=typeof e)throw new Error("OSC AtomicUInt64 constructor expects value of type BigInt");if(e&&(e<0||e>U))throw new Error("OSC AtomicUInt64 value is out of bounds");var i;return e&&(i=BigInt.asUintN(64,e)),t.call(this,i)}return o(n,[{key:"pack",value:function(){return d(u(n.prototype),"pack",this).call(this,"setBigUint64",8)}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return d(u(n.prototype),"unpack",this).call(this,e,"getBigUint64",8,t)}}]),n}(B),X=!0,K=!1,J=null,ee=1/0,te=function(){function e(t,n){var i=this;if(r(this,e),this.offset=0,this.address="",this.types="",this.args=[],!k(t)){if(!v(t)&&!_(t))throw new Error("OSC Message constructor first argument (address) must be a string or array");this.address=T(t)}if(!k(n)){if(!_(n))throw new Error("OSC Message constructor second argument (args) must be an array");n.forEach((function(e){return i.add(e.type,e.value)}))}}return o(e,[{key:"add",value:function(e,t){if(k(e))throw new Error("OSC Message needs a valid OSC Atomic Data Type");"N"===e?this.args.push(J):"T"===e?this.args.push(X):"F"===e?this.args.push(K):"I"===e?this.args.push(ee):this.args.push(t),this.types+=e}},{key:"pack",value:function(){var e=this;if(0===this.address.length||"/"!==this.address[0])throw new Error("OSC Message has an invalid address");var t=new q;if(t.add(new N(this.address)),t.add(new N(",".concat(this.types))),this.args.length>0){var n;if(this.args.length>this.types.length)throw new Error("OSC Message argument and type tag mismatch");this.args.forEach((function(r,i){var o=e.types[i];if("i"===o)n=new P(r);else if("h"===o)n=new z(r);else if("t"===o)n=new Y(r);else if("f"===o)n=new G(r);else if("d"===o)n=new V(r);else if("s"===o)n=new N(r);else if("b"===o)n=new W(r);else if("T"===o)n=X;else if("F"===o)n=K;else if("N"===o)n=J;else{if("I"!==o)throw new Error("OSC Message found unknown argument type");n=ee}t.add(n)}))}return t.merge()}},{key:"unpack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(e instanceof DataView))throw new Error("OSC Message expects an instance of type DataView.");var n=new N;n.unpack(e,t);var r=new N;if(r.unpack(e,n.offset),0===n.value.length||"/"!==n.value[0])throw new Error("OSC Message found malformed or missing address string");if(0===r.value.length&&","!==r.value[0])throw new Error("OSC Message found malformed or missing type string");for(var i,o,a=r.offset,s=[],u=1;u0&&(i=s.shift()),s.length>0&&s[0]instanceof Array&&(o=s.shift()),e=t.call(this,i,o),s.length>0&&(e.types=s.map((function(e){return S(e)})).join(""),e.args=s),e}return o(n,[{key:"add",value:function(e){d(u(n.prototype),"add",this).call(this,S(e),e)}}]),n}(te),re="#bundle",ie=function(){function e(){var t=this;r(this,e),this.offset=0,this.timetag=new Q,this.bundleElements=[];for(var n=arguments.length,i=new Array(n),o=0;o0&&(i[0]instanceof Date||p(i[0])?this.timetag=new Q(i[0]):_(i[0])?(i[0].forEach((function(e){t.add(e)})),i.length>1&&(i[1]instanceof Date||p(i[1]))&&(this.timetag=new Q(i[1]))):i.forEach((function(e){t.add(e)})))}return o(e,[{key:"timestamp",value:function(e){if(!p(e))throw new Error("OSC Bundle needs an integer for setting the timestamp");this.timetag=new Q(e)}},{key:"add",value:function(t){if(!(t instanceof ne||t instanceof e))throw new Error("OSC Bundle contains only Messages and Bundles");this.bundleElements.push(t)}},{key:"pack",value:function(){var e=new q;return e.add(new N(re)),this.timetag||(this.timetag=new Q),e.add(this.timetag),this.bundleElements.forEach((function(t){e.add(new P(t.pack().byteLength)),e.add(t)})),e.merge()}},{key:"unpack",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(t instanceof DataView))throw new Error("OSC Bundle expects an instance of type DataView");var r=new N;if(r.unpack(t,n),r.value!==re)throw new Error("OSC Bundle does not contain a valid #bundle head");var i=new Q,o=i.unpack(t,r.offset);for(this.bundleElements=[];o1&&void 0!==arguments[1]?arguments[1]:0;if(!(e instanceof DataView))throw new Error("OSC Packet expects an instance of type DataView");if(e.byteLength%4!=0)throw new Error("OSC Packet byteLength has to be a multiple of four");var n,r=new N;return r.unpack(e,t),(n=r.value===re?new ie:new ne).unpack(e,t),this.offset=n.offset,this.value=n,this.offset}}]),e}(),ae={discardLateMessages:!1},se=function(){function e(n){r(this,e),this.options=t(t({},ae),n),this.addressHandlers=[],this.eventHandlers={open:[],error:[],close:[]},this.uuid=0}return o(e,[{key:"dispatch",value:function(e,t){var n=this;if(!(e instanceof oe))throw new Error("OSC EventHander dispatch() accepts only arguments of type Packet");if(!e.value)throw new Error("OSC EventHander dispatch() can't read empty Packets");if(e.value instanceof ie){var r=e.value;return r.bundleElements.forEach((function(e){if(e instanceof ie){if(r.timetag.value.timestamp()1&&(o=t[1]);var a=null;if(t.length>2)if(p(t[2]))a=t[2];else{if(!(t[2]instanceof Date))throw new Error("OSC EventHandler timestamp has to be a number or Date");a=t[2].getTime()}var s=null;if(t.length>=3&&(s=t[3]),a){var u=Date.now();if(u>a&&!this.options.discardLateMessages)return this.call(i,o,s);var c=this;return setTimeout((function(){c.call(i,o,s)}),a-u),!0}return this.call(i,o,s)}},{key:"on",value:function(e,t){if(!v(e)&&!_(e))throw new Error("OSC EventHandler accepts only strings or arrays for address patterns");if(!b(t))throw new Error("OSC EventHandler callback has to be a function");this.uuid+=1;var n={id:this.uuid,callback:t};if(v(e)&&e in this.eventHandlers)return this.eventHandlers[e].push(n),this.uuid;var r=T(e);return r in this.addressHandlers||(this.addressHandlers[r]=[]),this.addressHandlers[r].push(n),this.uuid}},{key:"off",value:function(e,t){if(!v(e)&&!_(e))throw new Error("OSC EventHandler accepts only strings or arrays for address patterns");if(!p(t))throw new Error("OSC EventHandler subscription id has to be a number");var n,r;return v(e)&&e in this.eventHandlers?(n=e,r=this.eventHandlers):(n=T(e),r=this.addressHandlers),n in r&&r[n].some((function(e,i){return e.id===t&&(r[n].splice(i,1),!0)}))}}]),e}(),ue=0,ce=1,le=2,fe=3,he=function(){function e(){throw r(this,e),new Error("DatagramPlugin can not be used in browser context")}return o(e,[{key:"registerNotify",value:function(e){this.notify=e}},{key:"status",value:function(){return this.socketStatus}},{key:"open",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t(t({},this.options.open),n),i=r.port,o=r.exclusive;this.socketStatus=ue,this.socket.bind({address:r.host,port:i,exclusive:o},(function(){e.socketStatus=ce,e.notify("open")}))}},{key:"close",value:function(){var e=this;this.socketStatus=le,this.socket.close((function(){e.socketStatus=fe,e.notify("close")}))}},{key:"send",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t(t({},this.options.send),n),i=r.port,o=r.host;this.socket.send(Buffer.from(e),0,e.byteLength,i,o)}}]),e}();"undefined"!=typeof WebSocket?I=WebSocket:"undefined"!=typeof MozWebSocket?I=MozWebSocket:"undefined"!=typeof n.g?I=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?I=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(I=self.WebSocket||self.MozWebSocket);var de=void 0,pe=I,me=0,ve=1,ye=2,ge=3,_e={udpServer:{host:"localhost",port:41234,exclusive:!1},udpClient:{host:"localhost",port:41235},wsServer:{host:"localhost",port:8080},receiver:"ws"};function Ee(e,n){return t(t(t(t({},_e),e),n),{},{udpServer:t(t(t({},_e.udpServer),e.udpServer),n.udpServer),udpClient:t(t(t({},_e.udpClient),e.udpClient),n.udpClient),wsServer:t(t(t({},_e.wsServer),e.wsServer),n.wsServer)})}var be=function(){function e(){throw r(this,e),new Error("BridgePlugin can not be used in browser context")}return o(e,[{key:"registerNotify",value:function(e){this.notify=e}},{key:"status",value:function(){return this.socketStatus}},{key:"open",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Ee(this.options,t);this.socketStatus=me,this.socket.bind({address:n.udpServer.host,port:n.udpServer.port,exclusive:n.udpServer.exclusive},(function(){var t={};n.wsServer.server?t.server=n.wsServer.server:t=n.wsServer,e.websocket=new de(t),e.websocket.binaryType="arraybuffer",e.websocket.on("listening",(function(){e.socketStatus=ve,e.notify("open")})),e.websocket.on("error",(function(t){e.notify("error",t)})),e.websocket.on("connection",(function(t){t.on("message",(function(t,n){e.send(t,{receiver:"udp"}),e.notify(new Uint8Array(t),n)}))}))}))}},{key:"close",value:function(){var e=this;this.socketStatus=ye,this.socket.close((function(){e.websocket.close((function(){e.socketStatus=ge,e.notify("close")}))}))}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ee(this.options,t),r=n.receiver;if("udp"===r){var i=e instanceof Buffer?e:Buffer.from(e);this.socket.send(i,0,i.byteLength,n.udpClient.port,n.udpClient.host)}else{if("ws"!==r)throw new Error("BridgePlugin can not send message to unknown receiver");this.websocket.clients.forEach((function(t){t.send(e,{binary:!0})}))}}}]),e}(),De=-1,Oe=0,ke=1,Ae=2,we=3,xe={host:"localhost",port:8080,secure:!1,protocol:[]},Ce=function(){function e(n){if(r(this,e),!pe)throw new Error("WebsocketClientPlugin can't find a WebSocket class");this.options=t(t({},xe),n),this.socket=null,this.socketStatus=De,this.notify=function(){}}return o(e,[{key:"registerNotify",value:function(e){this.notify=e}},{key:"status",value:function(){return this.socketStatus}},{key:"open",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t(t({},this.options),n),i=r.port,o=r.host,a=r.secure,s=r.protocol;this.socket&&this.close();var u=a?"wss":"ws",c={address:o,family:u,port:i,size:0};this.socket=new pe("".concat(u,"://").concat(o,":").concat(i),s),this.socket.binaryType="arraybuffer",this.socketStatus=Oe,this.socket.onopen=function(){e.socketStatus=ke,e.notify("open")},this.socket.onclose=function(){e.socketStatus=we,e.notify("close")},this.socket.onerror=function(t){e.notify("error",t)},this.socket.onmessage=function(t){e.notify(t.data,c)}}},{key:"close",value:function(){this.socketStatus=Ae,this.socket.close()}},{key:"send",value:function(e){this.socket.send(e)}}]),e}(),Se=0,Te=1,Fe=2,qe=3,Be=function(){function e(t){throw r(this,e),new Error("WebsocketServerPlugin can not be used in browser context")}return o(e,[{key:"registerNotify",value:function(e){this.notify=e}},{key:"status",value:function(){return this.socketStatus}},{key:"open",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t(t({},this.options),n),i=r.port,o=r.host,a={address:o,family:"wsserver",port:i,size:0};this.socket&&this.close(),r.server?this.socket=new de({server:r.server}):this.socket=new de({host:o,port:i}),this.socket.binaryType="arraybuffer",this.socketStatus=Se,this.socket.on("listening",(function(){e.socketStatus=Te,e.notify("open")})),this.socket.on("error",(function(t){e.notify("error",t)})),this.socket.on("connection",(function(t){t.on("message",(function(t){e.notify(new Uint8Array(t),a)}))}))}},{key:"close",value:function(){var e=this;this.socketStatus=Fe,this.socket.close((function(){e.socketStatus=qe,e.notify("close")}))}},{key:"send",value:function(e){this.socket.clients.forEach((function(t){t.send(e,{binary:!0})}))}}]),e}(),Pe={discardLateMessages:!1,plugin:new Ce},Me=function(){function e(n){if(r(this,e),n&&!E(n))throw new Error("OSC options argument has to be an object.");this.options=t(t({},Pe),n),this.eventHandler=new se({discardLateMessages:this.options.discardLateMessages});var i=this.eventHandler;this.options.plugin&&this.options.plugin.registerNotify&&this.options.plugin.registerNotify((function(){return i.notify.apply(i,arguments)}))}return o(e,[{key:"on",value:function(e,t){if(!v(e)||!b(t))throw new Error("OSC on() needs event- or address string and callback function");return this.eventHandler.on(e,t)}},{key:"off",value:function(e,t){if(!v(e)||!p(t))throw new Error("OSC off() needs string and number (subscriptionId) to unsubscribe");return this.eventHandler.off(e,t)}},{key:"open",value:function(e){if(e&&!E(e))throw new Error("OSC open() options argument needs to be an object");if(!this.options.plugin||!b(this.options.plugin.open))throw new Error("OSC Plugin API #open is not implemented!");return this.options.plugin.open(e)}},{key:"status",value:function(){if(!this.options.plugin||!b(this.options.plugin.status))throw new Error("OSC Plugin API #status is not implemented!");return this.options.plugin.status()}},{key:"close",value:function(){if(!this.options.plugin||!b(this.options.plugin.close))throw new Error("OSC Plugin API #close is not implemented!");return this.options.plugin.close()}},{key:"send",value:function(e,t){if(!this.options.plugin||!b(this.options.plugin.send))throw new Error("OSC Plugin API #send is not implemented!");if(!(e instanceof te||e instanceof ne||e instanceof ie||e instanceof oe))throw new Error("OSC send() needs Messages, Bundles or Packets");if(t&&!E(t))throw new Error("OSC send() options argument has to be an object");return this.options.plugin.send(e.pack(),t)}}]),e}();return Me.STATUS={IS_NOT_INITIALIZED:-1,IS_CONNECTING:0,IS_OPEN:1,IS_CLOSING:2,IS_CLOSED:3},Me.Packet=oe,Me.Bundle=ie,Me.Message=ne,Me.TypedMessage=te,Me.DatagramPlugin=he,Me.WebsocketClientPlugin=Ce,Me.WebsocketServerPlugin=Be,Me.BridgePlugin=be,Me}()},7329:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.M_=function e(t){var r=t.elements;n(this,e),this.type="ArrayExpression",this.elements=r},t.Lt=function e(t){var r=t.callee,i=t.arguments;n(this,e),this.type="CallExpression",this.callee=r,this.arguments=i},t.YI=function e(t){var r=t.name;n(this,e),this.type="IdentifierExpression",this.name=r},t.g4=function e(t){var r=t.value;n(this,e),this.type="LiteralNumericExpression",this.value=r},t.kK=function e(t){var r=t.value;n(this,e),this.type="LiteralStringExpression",this.value=r},t.Jo=function e(t){var r=t.expression;n(this,e),this.type="ReturnStatement",this.expression=r},t.AR=function e(t){var r=t.object,i=t.property;n(this,e),this.type="StaticMemberExpression",this.object=r,this.property=i}},3350:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;nn?"'":'"';t+=s;for(var u=0;u":a.Relational,"<=":a.Relational,">=":a.Relational,in:a.Relational,instanceof:a.Relational,"<<":a.BitwiseSHIFT,">>":a.BitwiseSHIFT,">>>":a.BitwiseSHIFT,"+":a.Additive,"-":a.Additive,"*":a.Multiplicative,"%":a.Multiplicative,"/":a.Multiplicative,"**":a.Exponential};var u=t.CodeRep=function(){function e(){o(this,e),this.containsIn=!1,this.containsGroup=!1,this.startsWithCurly=!1,this.startsWithFunctionOrClass=!1,this.startsWithLet=!1,this.startsWithLetSquareBracket=!1,this.endsWithMissingElse=!1}return n(e,[{key:"forEach",value:function(e){e(this)}}]),e}(),c=(t.Empty=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return i(t,e),n(t,[{key:"emit",value:function(){}}]),t}(u),t.Token=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.token=e,i.isRegExp=n,i}return i(t,e),n(t,[{key:"emit",value:function(e){e.put(this.token,this.isRegExp)}}]),t}(u));t.RawToken=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.token=e,n}return i(t,e),n(t,[{key:"emit",value:function(e){e.putRaw(this.token)}}]),t}(u),t.NumberCodeRep=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.number=e,n}return i(t,e),n(t,[{key:"emit",value:function(e){e.putNumber(this.number)}}]),t}(u),t.Paren=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.expr=e,n}return i(t,e),n(t,[{key:"emit",value:function(e){e.put("("),this.expr.emit(e,!1),e.put(")")}},{key:"forEach",value:function(e){e(this),this.expr.forEach(e)}}]),t}(u),t.Bracket=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.expr=e,n}return i(t,e),n(t,[{key:"emit",value:function(e){e.put("["),this.expr.emit(e,!1),e.put("]")}},{key:"forEach",value:function(e){e(this),this.expr.forEach(e)}}]),t}(u),t.Brace=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.expr=e,n}return i(t,e),n(t,[{key:"emit",value:function(e){e.put("{"),this.expr.emit(e,!1),e.put("}")}},{key:"forEach",value:function(e){e(this),this.expr.forEach(e)}}]),t}(u),t.NoIn=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.expr=e,n}return i(t,e),n(t,[{key:"emit",value:function(e){this.expr.emit(e,!0)}},{key:"forEach",value:function(e){e(this),this.expr.forEach(e)}}]),t}(u),t.ContainsIn=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.expr=e,n}return i(t,e),n(t,[{key:"emit",value:function(e,t){t?(e.put("("),this.expr.emit(e,!1),e.put(")")):this.expr.emit(e,!1)}},{key:"forEach",value:function(e){e(this),this.expr.forEach(e)}}]),t}(u),t.Seq=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.children=e,n}return i(t,e),n(t,[{key:"emit",value:function(e,t){this.children.forEach((function(n){return n.emit(e,t)}))}},{key:"forEach",value:function(e){e(this),this.children.forEach((function(t){return t.forEach(e)}))}}]),t}(u),t.Semi=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,";"))}return i(t,e),t}(c),t.CommaSep=function(e){function t(e){o(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.children=e,n}return i(t,e),n(t,[{key:"emit",value:function(e,t){var n=!0;this.children.forEach((function(r){n?n=!1:e.put(","),r.emit(e,t)}))}},{key:"forEach",value:function(e){e(this),this.children.forEach((function(t){return t.forEach(e)}))}}]),t}(u),t.SemiOp=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return i(t,e),n(t,[{key:"emit",value:function(e){e.putOptionalSemi()}}]),t}(u)},6845:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormattedCodeGen=t.ExtensibleCodeGen=t.Sep=void 0;var r,i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return new u.Token(e,t)}},{key:"p",value:function(e,t,n){return(0,u.getPrecedence)(e)0&&null==r[r.length-1]&&(i=y(i,this.sep(_.ARRAY_BEFORE_COMMA),this.t(","),this.sep(_.ARRAY_AFTER_COMMA))),this.bracket(i,_.ARRAY_INITIAL,_.ARRAY_FINAL)}},{key:"reduceAwaitExpression",value:function(e,t){var n=t.expression;return y(this.t("await"),this.sep(_.AWAIT),this.p(e.expression,(0,u.getPrecedence)(e),n))}},{key:"reduceSpreadElement",value:function(e,t){var n=t.expression;return y(this.t("..."),this.sep(_.SPREAD),this.p(e.expression,u.Precedence.Assignment,n))}},{key:"reduceSpreadProperty",value:function(e,t){var n=t.expression;return y(this.t("..."),this.sep(_.SPREAD),this.getAssignmentExpr(n))}},{key:"reduceAssignmentExpression",value:function(e,t){var n=t.binding,r=t.expression,i=n,o=r,s=r.containsIn,c=n.startsWithCurly,l=n.startsWithLetSquareBracket,f=n.startsWithFunctionOrClass;return(0,u.getPrecedence)(e.expression)<(0,u.getPrecedence)(e)&&(o=this.paren(o,_.EXPRESSION_PAREN_BEFORE,_.EXPRESSION_PAREN_AFTER),s=!1),(0,a.default)(y(i,this.sep(_.BEFORE_ASSIGN_OP("=")),this.t("="),this.sep(_.AFTER_ASSIGN_OP("=")),o),{containsIn:s,startsWithCurly:c,startsWithLetSquareBracket:l,startsWithFunctionOrClass:f})}},{key:"reduceAssignmentTargetIdentifier",value:function(e){var t=this.t(e.name);return"let"===e.name&&(t.startsWithLet=!0),t}},{key:"reduceAssignmentTargetWithDefault",value:function(e,t){var n=t.binding,r=t.init;return y(n,this.sep(_.BEFORE_DEFAULT_EQUALS),this.t("="),this.sep(_.AFTER_DEFAULT_EQUALS),this.p(e.init,u.Precedence.Assignment,r))}},{key:"reduceCompoundAssignmentExpression",value:function(e,t){var n=t.binding,r=t.expression,i=n,o=r,s=r.containsIn,c=n.startsWithCurly,l=n.startsWithLetSquareBracket,f=n.startsWithFunctionOrClass;return(0,u.getPrecedence)(e.expression)<(0,u.getPrecedence)(e)&&(o=this.paren(o,_.EXPRESSION_PAREN_BEFORE,_.EXPRESSION_PAREN_AFTER),s=!1),(0,a.default)(y(i,this.sep(_.BEFORE_ASSIGN_OP(e.operator)),this.t(e.operator),this.sep(_.AFTER_ASSIGN_OP(e.operator)),o),{containsIn:s,startsWithCurly:c,startsWithLetSquareBracket:l,startsWithFunctionOrClass:f})}},{key:"reduceBinaryExpression",value:function(e,t){var n=t.left,r=t.right,i=n,o=n.startsWithCurly,s=n.startsWithLetSquareBracket,c=n.startsWithFunctionOrClass,l=n.containsIn,f="**"===e.operator;((0,u.getPrecedence)(e.left)<(0,u.getPrecedence)(e)||f&&((0,u.getPrecedence)(e.left)===(0,u.getPrecedence)(e)||"UnaryExpression"===e.left.type))&&(i=this.paren(i,_.EXPRESSION_PAREN_BEFORE,_.EXPRESSION_PAREN_AFTER),o=!1,s=!1,c=!1,l=!1);var h=r,d=r.containsIn;return((0,u.getPrecedence)(e.right)<(0,u.getPrecedence)(e)||!f&&(0,u.getPrecedence)(e.right)===(0,u.getPrecedence)(e))&&(h=this.paren(h,_.EXPRESSION_PAREN_BEFORE,_.EXPRESSION_PAREN_AFTER),d=!1),(0,a.default)(y(i,this.sep(_.BEFORE_BINOP(e.operator)),this.t(e.operator),this.sep(_.AFTER_BINOP(e.operator)),h),{containsIn:l||d||"in"===e.operator,containsGroup:","===e.operator,startsWithCurly:o,startsWithLetSquareBracket:s,startsWithFunctionOrClass:c})}},{key:"reduceBindingWithDefault",value:function(e,t){var n=t.binding,r=t.init;return y(n,this.sep(_.BEFORE_DEFAULT_EQUALS),this.t("="),this.sep(_.AFTER_DEFAULT_EQUALS),this.p(e.init,u.Precedence.Assignment,r))}},{key:"reduceBindingIdentifier",value:function(e){var t=this.t(e.name);return"let"===e.name&&(t.startsWithLet=!0),t}},{key:"reduceArrayAssignmentTarget",value:function(e,t){var n=this,r=t.elements,i=t.rest,o=void 0;return 0===r.length?o=null==i?p():y(this.t("..."),this.sep(_.REST),i):(r=r.concat(null==i?[]:[y(this.t("..."),this.sep(_.REST),i)]),o=this.commaSep(r.map((function(e){return n.getAssignmentExpr(e)})),_.ARRAY_BEFORE_COMMA,_.ARRAY_AFTER_COMMA),r.length>0&&null==r[r.length-1]&&(o=y(o,this.sep(_.ARRAY_BEFORE_COMMA),this.t(","),this.sep(_.ARRAY_AFTER_COMMA)))),this.bracket(o,_.ARRAY_INITIAL,_.ARRAY_FINAL,_.ARRAY_EMPTY)}},{key:"reduceArrayBinding",value:function(e,t){var n=this,r=t.elements,i=t.rest,o=void 0;return 0===r.length?o=null==i?p():y(this.t("..."),this.sep(_.REST),i):(r=r.concat(null==i?[]:[y(this.t("..."),this.sep(_.REST),i)]),o=this.commaSep(r.map((function(e){return n.getAssignmentExpr(e)})),_.ARRAY_BEFORE_COMMA,_.ARRAY_AFTER_COMMA),r.length>0&&null==r[r.length-1]&&(o=y(o,this.sep(_.ARRAY_BEFORE_COMMA),this.t(","),this.sep(_.ARRAY_AFTER_COMMA)))),this.bracket(o,_.ARRAY_INITIAL,_.ARRAY_FINAL,_.ARRAY_EMPTY)}},{key:"reduceObjectAssignmentTarget",value:function(e,t){var n=t.properties,r=t.rest,i=void 0;0===n.length?i=null==r?p():y(this.t("..."),this.sep(_.REST),r):(i=this.commaSep(n,_.OBJECT_BEFORE_COMMA,_.OBJECT_AFTER_COMMA),i=null==r?i:this.commaSep([i,y(this.t("..."),this.sep(_.REST),r)],_.OBJECT_BEFORE_COMMA,_.OBJECT_AFTER_COMMA));var o=this.brace(i,e,_.OBJECT_BRACE_INITIAL,_.OBJECT_BRACE_FINAL,_.OBJECT_EMPTY);return o.startsWithCurly=!0,o}},{key:"reduceObjectBinding",value:function(e,t){var n=t.properties,r=t.rest,i=void 0;0===n.length?i=null==r?p():y(this.t("..."),this.sep(_.REST),r):(i=this.commaSep(n,_.OBJECT_BEFORE_COMMA,_.OBJECT_AFTER_COMMA),i=null==r?i:this.commaSep([i,y(this.t("..."),this.sep(_.REST),r)],_.OBJECT_BEFORE_COMMA,_.OBJECT_AFTER_COMMA));var o=this.brace(i,e,_.OBJECT_BRACE_INITIAL,_.OBJECT_BRACE_FINAL,_.OBJECT_EMPTY);return o.startsWithCurly=!0,o}},{key:"reduceAssignmentTargetPropertyIdentifier",value:function(e,t){var n=t.binding,r=t.init;return null==e.init?n:y(n,this.sep(_.BEFORE_DEFAULT_EQUALS),this.t("="),this.sep(_.AFTER_DEFAULT_EQUALS),this.p(e.init,u.Precedence.Assignment,r))}},{key:"reduceAssignmentTargetPropertyProperty",value:function(e,t){var n=t.name,r=t.binding;return y(n,this.sep(_.BEFORE_PROP),this.t(":"),this.sep(_.AFTER_PROP),r)}},{key:"reduceBindingPropertyIdentifier",value:function(e,t){var n=t.binding,r=t.init;return null==e.init?n:y(n,this.sep(_.BEFORE_DEFAULT_EQUALS),this.t("="),this.sep(_.AFTER_DEFAULT_EQUALS),this.p(e.init,u.Precedence.Assignment,r))}},{key:"reduceBindingPropertyProperty",value:function(e,t){var n=t.name,r=t.binding;return y(n,this.sep(_.BEFORE_PROP),this.t(":"),this.sep(_.AFTER_PROP),r)}},{key:"reduceBlock",value:function(e,t){var n=t.statements;return this.brace(y.apply(void 0,c(n)),e,_.BLOCK_BRACE_INITIAL,_.BLOCK_BRACE_FINAL,_.BLOCK_EMPTY)}},{key:"reduceBlockStatement",value:function(e,t){return y(t.block,this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceBreakStatement",value:function(e){return y(this.t("break"),e.label?y(this.sep(_.BEFORE_JUMP_LABEL),this.t(e.label)):p(),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceCallExpression",value:function(e,t){var n=this,r=t.callee,i=t.arguments.map((function(t,r){return n.p(e.arguments[r],u.Precedence.Assignment,t)}));return(0,a.default)(y(this.p(e.callee,(0,u.getPrecedence)(e),r),this.sep(_.CALL),this.paren(this.commaSep(i,_.ARGS_BEFORE_COMMA,_.ARGS_AFTER_COMMA),_.CALL_PAREN_BEFORE,_.CALL_PAREN_AFTER,_.CALL_PAREN_EMPTY)),{startsWithCurly:r.startsWithCurly,startsWithLet:r.startsWithLet,startsWithLetSquareBracket:r.startsWithLetSquareBracket,startsWithFunctionOrClass:r.startsWithFunctionOrClass})}},{key:"reduceCatchClause",value:function(e,t){var n=t.binding,r=t.body;return y(this.t("catch"),this.sep(_.BEFORE_CATCH_BINDING),this.paren(n,_.CATCH_PAREN_BEFORE,_.CATCH_PAREN_AFTER),this.sep(_.AFTER_CATCH_BINDING),r)}},{key:"reduceClassDeclaration",value:function(e,t){var n=t.name,r=t.super,i=t.elements,o=y(this.t("class"),"*default*"===e.name.name?p():y(this.sep(_.BEFORE_CLASS_NAME),n));return null!=r&&(o=y(o,this.sep(_.BEFORE_EXTENDS),this.t("extends"),this.sep(_.AFTER_EXTENDS),this.p(e.super,u.Precedence.New,r))),o=y(o,this.sep(_.BEFORE_CLASS_DECLARATION_ELEMENTS),this.brace(y.apply(void 0,c(i)),e,_.CLASS_BRACE_INITIAL,_.CLASS_BRACE_FINAL,_.CLASS_EMPTY),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceClassExpression",value:function(e,t){var n=t.name,r=t.super,i=t.elements,o=this.t("class");return null!=n&&(o=y(o,this.sep(_.BEFORE_CLASS_NAME),n)),null!=r&&(o=y(o,this.sep(_.BEFORE_EXTENDS),this.t("extends"),this.sep(_.AFTER_EXTENDS),this.p(e.super,u.Precedence.New,r))),(o=y(o,this.sep(_.BEFORE_CLASS_EXPRESSION_ELEMENTS),this.brace(y.apply(void 0,c(i)),e,_.CLASS_EXPRESSION_BRACE_INITIAL,_.CLASS_EXPRESSION_BRACE_FINAL,_.CLASS_EXPRESSION_BRACE_EMPTY))).startsWithFunctionOrClass=!0,o}},{key:"reduceClassElement",value:function(e,t){var n=t.method;return n=y(this.sep(_.BEFORE_CLASS_ELEMENT),n,this.sep(_.AFTER_CLASS_ELEMENT)),e.isStatic?y(this.t("static"),this.sep(_.AFTER_STATIC),n):n}},{key:"reduceComputedMemberAssignmentTarget",value:function(e,t){var n=t.object,r=t.expression,i=n.startsWithLetSquareBracket||"IdentifierExpression"===e.object.type&&"let"===e.object.name;return(0,a.default)(y(this.p(e.object,(0,u.getPrecedence)(e),n),this.sep(_.COMPUTED_MEMBER_ASSIGNMENT_TARGET),this.bracket(r,_.COMPUTED_MEMBER_ASSIGNMENT_TARGET_BRACKET_INTIAL,_.COMPUTED_MEMBER_ASSIGNMENT_TARGET_BRACKET_FINAL)),{startsWithLet:n.startsWithLet,startsWithLetSquareBracket:i,startsWithCurly:n.startsWithCurly,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceComputedMemberExpression",value:function(e,t){var n=t.object,r=t.expression,i=n.startsWithLetSquareBracket||"IdentifierExpression"===e.object.type&&"let"===e.object.name;return(0,a.default)(y(this.p(e.object,(0,u.getPrecedence)(e),n),this.sep(_.COMPUTED_MEMBER_EXPRESSION),this.bracket(r,_.COMPUTED_MEMBER_BRACKET_INTIAL,_.COMPUTED_MEMBER_BRACKET_FINAL)),{startsWithLet:n.startsWithLet,startsWithLetSquareBracket:i,startsWithCurly:n.startsWithCurly,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceComputedPropertyName",value:function(e,t){var n=t.expression;return this.bracket(this.p(e.expression,u.Precedence.Assignment,n),_.COMPUTED_PROPERTY_BRACKET_INTIAL,_.COMPUTED_PROPERTY_BRACKET_FINAL)}},{key:"reduceConditionalExpression",value:function(e,t){var n=t.test,r=t.consequent,i=t.alternate,o=n.containsIn||i.containsIn,s=n.startsWithCurly,c=n.startsWithLetSquareBracket,l=n.startsWithFunctionOrClass;return(0,a.default)(y(this.p(e.test,u.Precedence.LogicalOR,n),this.sep(_.BEFORE_TERNARY_QUESTION),this.t("?"),this.sep(_.AFTER_TERNARY_QUESTION),this.p(e.consequent,u.Precedence.Assignment,r),this.sep(_.BEFORE_TERNARY_COLON),this.t(":"),this.sep(_.AFTER_TERNARY_COLON),this.p(e.alternate,u.Precedence.Assignment,i)),{containsIn:o,startsWithCurly:s,startsWithLetSquareBracket:c,startsWithFunctionOrClass:l})}},{key:"reduceContinueStatement",value:function(e){return y(this.t("continue"),e.label?y(this.sep(_.BEFORE_JUMP_LABEL),this.t(e.label)):p(),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceDataProperty",value:function(e,t){var n=t.name,r=t.expression;return y(n,this.sep(_.BEFORE_PROP),this.t(":"),this.sep(_.AFTER_PROP),this.getAssignmentExpr(r))}},{key:"reduceDebuggerStatement",value:function(e){return y(this.t("debugger"),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceDoWhileStatement",value:function(e,t){var n=t.body,r=t.test;return y(this.t("do"),this.sep(_.AFTER_DO),n,this.sep(_.BEFORE_DOWHILE_WHILE),this.t("while"),this.sep(_.AFTER_DOWHILE_WHILE),this.paren(r,_.DO_WHILE_TEST_PAREN_BEFORE,_.DO_WHILE_TEST_PAREN_AFTER),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceEmptyStatement",value:function(e){return y(this.t(";"),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceExpressionStatement",value:function(e,t){var n=t.expression;return y(n.startsWithCurly||n.startsWithLetSquareBracket||n.startsWithFunctionOrClass?this.paren(n,_.EXPRESSION_STATEMENT_PAREN_BEFORE,_.EXPRESSION_STATEMENT_PAREN_AFTER):n,this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceForInStatement",value:function(e,t){var n=t.left,r=t.right,i=t.body;return n="VariableDeclaration"===e.left.type?m(v(n)):n,(0,a.default)(y(this.t("for"),this.sep(_.AFTER_FORIN_FOR),this.paren(y(n.startsWithLet?this.paren(n,_.FOR_IN_LET_PAREN_BEFORE,_.FOR_IN_LET_PAREN_AFTER):n,this.sep(_.BEFORE_FORIN_IN),this.t("in"),this.sep(_.AFTER_FORIN_FOR),r),_.FOR_IN_PAREN_BEFORE,_.FOR_IN_PAREN_AFTER),this.sep(_.BEFORE_FORIN_BODY),i,this.sep(_.AFTER_STATEMENT(e))),{endsWithMissingElse:i.endsWithMissingElse})}},{key:"reduceForOfStatement",value:function(e,t){var n=t.left,r=t.right,i=t.body;return n="VariableDeclaration"===e.left.type?m(v(n)):n,(0,a.default)(y(this.t("for"),this.sep(_.AFTER_FOROF_FOR),this.paren(y(n.startsWithLet?this.paren(n,_.FOR_OF_LET_PAREN_BEFORE,_.FOR_OF_LET_PAREN_AFTER):n,this.sep(_.BEFORE_FOROF_OF),this.t("of"),this.sep(_.AFTER_FOROF_FOR),this.p(e.right,u.Precedence.Assignment,r)),_.FOR_OF_PAREN_BEFORE,_.FOR_OF_PAREN_AFTER),this.sep(_.BEFORE_FOROF_BODY),i,this.sep(_.AFTER_STATEMENT(e))),{endsWithMissingElse:i.endsWithMissingElse})}},{key:"reduceForStatement",value:function(e,t){var n=t.init,r=t.test,i=t.update,o=t.body;return n&&(n.startsWithLetSquareBracket&&(n=this.paren(n,_.FOR_LET_PAREN_BEFORE,_.FOR_LET_PAREN_AFTER)),n=m(v(n))),(0,a.default)(y(this.t("for"),this.sep(_.AFTER_FOR_FOR),this.paren(y(n?y(this.sep(_.BEFORE_FOR_INIT),n,this.sep(_.AFTER_FOR_INIT)):this.sep(_.EMPTY_FOR_INIT),this.t(";"),r?y(this.sep(_.BEFORE_FOR_TEST),r,this.sep(_.AFTER_FOR_TEST)):this.sep(_.EMPTY_FOR_TEST),this.t(";"),i?y(this.sep(_.BEFORE_FOR_UPDATE),i,this.sep(_.AFTER_FOR_UPDATE)):this.sep(_.EMPTY_FOR_UPDATE))),this.sep(_.BEFORE_FOR_BODY),o,this.sep(_.AFTER_STATEMENT(e))),{endsWithMissingElse:o.endsWithMissingElse})}},{key:"reduceForAwaitStatement",value:function(e,t){var n=t.left,r=t.right,i=t.body;return n="VariableDeclaration"===e.left.type?m(v(n)):n,(0,a.default)(y(this.t("for"),this.sep(_.AFTER_FOROF_FOR),this.t("await"),this.sep(_.AFTER_FORAWAIT_AWAIT),this.paren(y(n.startsWithLet?this.paren(n,_.FOR_OF_LET_PAREN_BEFORE,_.FOR_OF_LET_PAREN_AFTER):n,this.sep(_.BEFORE_FOROF_OF),this.t("of"),this.sep(_.AFTER_FOROF_FOR),this.p(e.right,u.Precedence.Assignment,r)),_.FOR_OF_PAREN_BEFORE,_.FOR_OF_PAREN_AFTER),this.sep(_.BEFORE_FOROF_BODY),i,this.sep(_.AFTER_STATEMENT(e))),{endsWithMissingElse:i.endsWithMissingElse})}},{key:"reduceFunctionBody",value:function(e,t){var n=t.directives,r=t.statements;return r.length&&(r[0]=this.parenToAvoidBeingDirective(e.statements[0],r[0])),y.apply(void 0,c(n).concat([n.length?this.sep(_.AFTER_FUNCTION_DIRECTIVES):p()],c(r)))}},{key:"reduceFunctionDeclaration",value:function(e,t){var n=t.name,r=t.params,i=t.body;return y(e.isAsync?this.t("async"):p(),this.t("function"),e.isGenerator?y(this.sep(_.BEFORE_GENERATOR_STAR),this.t("*"),this.sep(_.AFTER_GENERATOR_STAR)):p(),this.sep(_.BEFORE_FUNCTION_NAME(e)),"*default*"===e.name.name?p():n,this.sep(_.BEFORE_FUNCTION_PARAMS),this.paren(r,_.PARAMETERS_PAREN_BEFORE,_.PARAMETERS_PAREN_AFTER,_.PARAMETERS_PAREN_EMPTY),this.sep(_.BEFORE_FUNCTION_DECLARATION_BODY),this.brace(i,e,_.FUNCTION_BRACE_INITIAL,_.FUNCTION_BRACE_FINAL,_.FUNCTION_EMPTY),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceFunctionExpression",value:function(e,t){var n=t.name,r=t.params,i=t.body,o=y(e.isAsync?this.t("async"):p(),this.t("function"),e.isGenerator?y(this.sep(_.BEFORE_GENERATOR_STAR),this.t("*"),this.sep(_.AFTER_GENERATOR_STAR)):p(),this.sep(_.BEFORE_FUNCTION_NAME(e)),n||p(),this.sep(_.BEFORE_FUNCTION_PARAMS),this.paren(r,_.PARAMETERS_PAREN_BEFORE,_.PARAMETERS_PAREN_AFTER,_.PARAMETERS_PAREN_EMPTY),this.sep(_.BEFORE_FUNCTION_EXPRESSION_BODY),this.brace(i,e,_.FUNCTION_EXPRESSION_BRACE_INITIAL,_.FUNCTION_EXPRESSION_BRACE_FINAL,_.FUNCTION_EXPRESSION_EMPTY));return o.startsWithFunctionOrClass=!0,o}},{key:"reduceFormalParameters",value:function(e,t){var n=t.items,r=t.rest;return this.commaSep(n.concat(null==r?[]:[y(this.t("..."),this.sep(_.REST),r)]),_.PARAMETER_BEFORE_COMMA,_.PARAMETER_AFTER_COMMA)}},{key:"reduceArrowExpression",value:function(e,t){var n=t.params,r=t.body;null==e.params.rest&&1===e.params.items.length&&"BindingIdentifier"===e.params.items[0].type||(n=this.paren(n,_.ARROW_PARAMETERS_PAREN_BEFORE,_.ARROW_PARAMETERS_PAREN_AFTER,_.ARROW_PARAMETERS_PAREN_EMPTY));var i=!1;return"FunctionBody"===e.body.type?r=this.brace(r,e,_.ARROW_BRACE_INITIAL,_.ARROW_BRACE_FINAL,_.ARROW_BRACE_EMPTY):r.startsWithCurly?r=this.paren(r,_.ARROW_BODY_PAREN_BEFORE,_.ARROW_BODY_PAREN_AFTER):r.containsIn&&(i=!0),(0,a.default)(y(e.isAsync?y(this.t("async"),this.sep(_.BEFORE_ARROW_ASYNC_PARAMS)):p(),n,this.sep(_.BEFORE_ARROW),this.t("=>"),this.sep(_.AFTER_ARROW),this.p(e.body,u.Precedence.Assignment,r)),{containsIn:i})}},{key:"reduceGetter",value:function(e,t){var n=t.name,r=t.body;return y(this.t("get"),this.sep(_.AFTER_GET),n,this.sep(_.BEFORE_GET_PARAMS),this.paren(p(),null,null,_.GETTER_PARAMS),this.sep(_.BEFORE_GET_BODY),this.brace(r,e,_.GET_BRACE_INTIAL,_.GET_BRACE_FINAL,_.GET_BRACE_EMPTY))}},{key:"reduceIdentifierExpression",value:function(e){var t=this.t(e.name);return"let"===e.name&&(t.startsWithLet=!0),t}},{key:"reduceIfStatement",value:function(e,t){var n=t.test,r=t.consequent,i=t.alternate;return i&&r.endsWithMissingElse&&(r=this.brace(r,e,_.MISSING_ELSE_INTIIAL,_.MISSING_ELSE_FINAL,_.MISSING_ELSE_EMPTY)),(0,a.default)(y(this.t("if"),this.sep(_.AFTER_IF),this.paren(n,_.IF_PAREN_BEFORE,_.IF_PAREN_AFTER),this.sep(_.AFTER_IF_TEST),r,i?y(this.sep(_.BEFORE_ELSE),this.t("else"),this.sep(_.AFTER_ELSE),i):p(),this.sep(_.AFTER_STATEMENT(e))),{endsWithMissingElse:!i||i.endsWithMissingElse})}},{key:"reduceImport",value:function(e,t){var n=t.defaultBinding,r=t.namedImports,i=[];return null!=n&&i.push(n),r.length>0&&i.push(this.brace(this.commaSep(r,_.NAMED_IMPORT_BEFORE_COMMA,_.NAMED_IMPORT_AFTER_COMMA),e,_.IMPORT_BRACE_INTIAL,_.IMPORT_BRACE_FINAL,_.IMPORT_BRACE_EMPTY)),0===i.length?y(this.t("import"),this.sep(_.BEFORE_IMPORT_MODULE),this.t((0,u.escapeStringLiteral)(e.moduleSpecifier)),this.semiOp(),this.sep(_.AFTER_STATEMENT(e))):y(this.t("import"),this.sep(_.BEFORE_IMPORT_BINDINGS),this.commaSep(i,_.IMPORT_BEFORE_COMMA,_.IMPORT_AFTER_COMMA),this.sep(_.AFTER_IMPORT_BINDINGS),this.t("from"),this.sep(_.AFTER_FROM),this.t((0,u.escapeStringLiteral)(e.moduleSpecifier)),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceImportNamespace",value:function(e,t){var n=t.defaultBinding,r=t.namespaceBinding;return y(this.t("import"),this.sep(_.BEFORE_IMPORT_NAMESPACE),null==n?p():y(n,this.sep(_.IMPORT_BEFORE_COMMA),this.t(","),this.sep(_.IMPORT_AFTER_COMMA)),this.sep(_.BEFORE_IMPORT_STAR),this.t("*"),this.sep(_.AFTER_IMPORT_STAR),this.t("as"),this.sep(_.AFTER_IMPORT_AS),r,this.sep(_.AFTER_NAMESPACE_BINDING),this.t("from"),this.sep(_.AFTER_FROM),this.t((0,u.escapeStringLiteral)(e.moduleSpecifier)),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceImportSpecifier",value:function(e,t){var n=t.binding;return null==e.name?n:y(this.t(e.name),this.sep(_.BEFORE_IMPORT_AS),this.t("as"),this.sep(_.AFTER_IMPORT_AS),n)}},{key:"reduceExportAllFrom",value:function(e){return y(this.t("export"),this.sep(_.BEFORE_EXPORT_STAR),this.t("*"),this.sep(_.AFTER_EXPORT_STAR),this.t("from"),this.sep(_.AFTER_FROM),this.t((0,u.escapeStringLiteral)(e.moduleSpecifier)),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceExportFrom",value:function(e,t){var n=t.namedExports;return y(this.t("export"),this.sep(_.BEFORE_EXPORT_BINDINGS),this.brace(this.commaSep(n,_.EXPORTS_BEFORE_COMMA,_.EXPORTS_AFTER_COMMA),e,_.EXPORT_BRACE_INITIAL,_.EXPORT_BRACE_FINAL,_.EXPORT_BRACE_EMPTY),this.sep(_.AFTER_EXPORT_FROM_BINDINGS),this.t("from"),this.sep(_.AFTER_FROM),this.t((0,u.escapeStringLiteral)(e.moduleSpecifier)),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceExportLocals",value:function(e,t){var n=t.namedExports;return y(this.t("export"),this.sep(_.BEFORE_EXPORT_BINDINGS),this.brace(this.commaSep(n,_.EXPORTS_BEFORE_COMMA,_.EXPORTS_AFTER_COMMA),e,_.EXPORT_BRACE_INITIAL,_.EXPORT_BRACE_FINAL,_.EXPORT_BRACE_EMPTY),this.sep(_.AFTER_EXPORT_LOCAL_BINDINGS),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceExport",value:function(e,t){var n=t.declaration;switch(e.declaration.type){case"FunctionDeclaration":case"ClassDeclaration":break;default:n=y(n,this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}return y(this.t("export"),this.sep(_.AFTER_EXPORT),n)}},{key:"reduceExportDefault",value:function(e,t){var n=t.body;switch(n=n.startsWithFunctionOrClass?this.paren(n,_.EXPORT_PAREN_BEFORE,_.EXPORT_PAREN_AFTER):n,e.body.type){case"FunctionDeclaration":case"ClassDeclaration":return y(this.t("export"),this.sep(_.EXPORT_DEFAULT),this.t("default"),this.sep(_.AFTER_EXPORT_DEFAULT),n);default:return y(this.t("export"),this.sep(_.EXPORT_DEFAULT),this.t("default"),this.sep(_.AFTER_EXPORT_DEFAULT),this.p(e.body,u.Precedence.Assignment,n),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}}},{key:"reduceExportFromSpecifier",value:function(e){return null==e.exportedName?this.t(e.name):y(this.t(e.name),this.sep(_.BEFORE_EXPORT_AS),this.t("as"),this.sep(_.AFTER_EXPORT_AS),this.t(e.exportedName))}},{key:"reduceExportLocalSpecifier",value:function(e,t){var n=t.name;return null==e.exportedName?n:y(n,this.sep(_.BEFORE_EXPORT_AS),this.t("as"),this.sep(_.AFTER_EXPORT_AS),this.t(e.exportedName))}},{key:"reduceLabeledStatement",value:function(e,t){var n=t.body;return(0,a.default)(y(this.t(e.label),this.sep(_.BEFORE_LABEL_COLON),this.t(":"),this.sep(_.AFTER_LABEL_COLON),n),{endsWithMissingElse:n.endsWithMissingElse})}},{key:"reduceLiteralBooleanExpression",value:function(e){return this.t(e.value.toString())}},{key:"reduceLiteralNullExpression",value:function(){return this.t("null")}},{key:"reduceLiteralInfinityExpression",value:function(){return this.t("2e308")}},{key:"reduceLiteralNumericExpression",value:function(e){return new u.NumberCodeRep(e.value)}},{key:"reduceLiteralRegExpExpression",value:function(e){return this.t("/"+e.pattern+"/"+(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiLine?"m":"")+(e.dotAll?"s":"")+(e.unicode?"u":"")+(e.sticky?"y":""),!0)}},{key:"reduceLiteralStringExpression",value:function(e){return this.t((0,u.escapeStringLiteral)(e.value))}},{key:"reduceMethod",value:function(e,t){var n=t.name,r=t.params,i=t.body;return y(e.isAsync?y(this.t("async"),this.sep(_.AFTER_METHOD_ASYNC)):p(),e.isGenerator?y(this.t("*"),this.sep(_.AFTER_METHOD_GENERATOR_STAR)):p(),n,this.sep(_.AFTER_METHOD_NAME),this.paren(r,_.PARAMETERS_PAREN_BEFORE,_.PARAMETERS_PAREN_AFTER,_.PARAMETERS_PAREN_EMPTY),this.sep(_.BEFORE_METHOD_BODY),this.brace(i,e,_.METHOD_BRACE_INTIAL,_.METHOD_BRACE_FINAL,_.METHOD_BRACE_EMPTY))}},{key:"reduceModule",value:function(e,t){var n=t.directives,r=t.items;return r.length&&(r[0]=this.parenToAvoidBeingDirective(e.items[0],r[0])),y.apply(void 0,c(n).concat([n.length?this.sep(_.AFTER_MODULE_DIRECTIVES):p()],c(r)))}},{key:"reduceNewExpression",value:function(e,t){var n=this,r=t.callee,i=t.arguments,o=i.map((function(t,r){return n.p(e.arguments[r],u.Precedence.Assignment,t)})),a=(0,u.getPrecedence)(e.callee)===u.Precedence.Call?this.paren(r,_.NEW_CALLEE_PAREN_BEFORE,_.NEW_CALLEE_PAREN_AFTER):this.p(e.callee,(0,u.getPrecedence)(e),r);return y(this.t("new"),this.sep(_.AFTER_NEW),a,0===i.length?this.sep(_.EMPTY_NEW_CALL):y(this.sep(_.BEFORE_NEW_ARGS),this.paren(this.commaSep(o,_.ARGS_BEFORE_COMMA,_.ARGS_AFTER_COMMA),_.NEW_PAREN_BEFORE,_.NEW_PAREN_AFTER,_.NEW_PAREN_EMPTY)))}},{key:"reduceNewTargetExpression",value:function(){return y(this.t("new"),this.sep(_.NEW_TARGET_BEFORE_DOT),this.t("."),this.sep(_.NEW_TARGET_AFTER_DOT),this.t("target"))}},{key:"reduceObjectExpression",value:function(e,t){var n=t.properties,r=this.brace(this.commaSep(n,_.OBJECT_BEFORE_COMMA,_.OBJECT_AFTER_COMMA),e,_.OBJECT_BRACE_INITIAL,_.OBJECT_BRACE_FINAL,_.OBJECT_EMPTY);return r.startsWithCurly=!0,r}},{key:"reduceUpdateExpression",value:function(e,t){var n=t.operand;return e.isPrefix?this.reduceUnaryExpression.apply(this,arguments):(0,a.default)(y(this.p(e.operand,u.Precedence.New,n),this.sep(_.BEFORE_POSTFIX(e.operator)),this.t(e.operator)),{startsWithCurly:n.startsWithCurly,startsWithLetSquareBracket:n.startsWithLetSquareBracket,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceUnaryExpression",value:function(e,t){var n=t.operand;return y(this.t(e.operator),this.sep(_.UNARY(e.operator)),this.p(e.operand,(0,u.getPrecedence)(e),n))}},{key:"reduceReturnStatement",value:function(e,t){var n=t.expression;return y(this.t("return"),n?y(this.sep(_.RETURN),n):p(),this.semiOp(),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceScript",value:function(e,t){var n=t.directives,r=t.statements;return r.length&&(r[0]=this.parenToAvoidBeingDirective(e.statements[0],r[0])),y.apply(void 0,c(n).concat([n.length?this.sep(_.AFTER_SCRIPT_DIRECTIVES):p()],c(r)))}},{key:"reduceSetter",value:function(e,t){var n=t.name,r=t.param,i=t.body;return y(this.t("set"),this.sep(_.AFTER_SET),n,this.sep(_.BEFORE_SET_PARAMS),this.paren(r,_.SETTER_PARAM_BEFORE,_.SETTER_PARAM_AFTER),this.sep(_.BEFORE_SET_BODY),this.brace(i,e,_.SET_BRACE_INTIIAL,_.SET_BRACE_FINAL,_.SET_BRACE_EMPTY))}},{key:"reduceShorthandProperty",value:function(e,t){return t.name}},{key:"reduceStaticMemberAssignmentTarget",value:function(e,t){var n=t.object,r=y(this.p(e.object,(0,u.getPrecedence)(e),n),this.sep(_.BEFORE_STATIC_MEMBER_ASSIGNMENT_TARGET_DOT),this.t("."),this.sep(_.AFTER_STATIC_MEMBER_ASSIGNMENT_TARGET_DOT),this.t(e.property));return r.startsWithLet=n.startsWithLet,r.startsWithCurly=n.startsWithCurly,r.startsWithLetSquareBracket=n.startsWithLetSquareBracket,r.startsWithFunctionOrClass=n.startsWithFunctionOrClass,r}},{key:"reduceStaticMemberExpression",value:function(e,t){var n=t.object,r=y(this.p(e.object,(0,u.getPrecedence)(e),n),this.sep(_.BEFORE_STATIC_MEMBER_DOT),this.t("."),this.sep(_.AFTER_STATIC_MEMBER_DOT),this.t(e.property));return r.startsWithLet=n.startsWithLet,r.startsWithCurly=n.startsWithCurly,r.startsWithLetSquareBracket=n.startsWithLetSquareBracket,r.startsWithFunctionOrClass=n.startsWithFunctionOrClass,r}},{key:"reduceStaticPropertyName",value:function(e){if(s.keyword.isIdentifierNameES6(e.value))return this.t(e.value);var t=parseFloat(e.value);return t>=0&&t.toString()===e.value?new u.NumberCodeRep(t):this.t((0,u.escapeStringLiteral)(e.value))}},{key:"reduceSuper",value:function(){return this.t("super")}},{key:"reduceSwitchCase",value:function(e,t){var n=t.test,r=t.consequent;return y(this.t("case"),this.sep(_.BEFORE_CASE_TEST),n,this.sep(_.AFTER_CASE_TEST),this.t(":"),this.sep(_.BEFORE_CASE_BODY),y.apply(void 0,c(r)),this.sep(_.AFTER_CASE_BODY))}},{key:"reduceSwitchDefault",value:function(e,t){var n=t.consequent;return y(this.t("default"),this.sep(_.DEFAULT),this.t(":"),this.sep(_.BEFORE_CASE_BODY),y.apply(void 0,c(n)),this.sep(_.AFTER_DEFAULT_BODY))}},{key:"reduceSwitchStatement",value:function(e,t){var n=t.discriminant,r=t.cases;return y(this.t("switch"),this.sep(_.BEFORE_SWITCH_DISCRIM),this.paren(n,_.SWITCH_DISCRIM_PAREN_BEFORE,_.SWITCH_DISCRIM_PAREN_AFTER),this.sep(_.BEFORE_SWITCH_BODY),this.brace(y.apply(void 0,c(r)),e,_.SWITCH_BRACE_INTIAL,_.SWITCH_BRACE_FINAL,_.SWITCH_BRACE_EMPTY),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceSwitchStatementWithDefault",value:function(e,t){var n=t.discriminant,r=t.preDefaultCases,i=t.defaultCase,o=t.postDefaultCases;return y(this.t("switch"),this.sep(_.BEFORE_SWITCH_DISCRIM),this.paren(n,_.SWITCH_DISCRIM_PAREN_BEFORE,_.SWITCH_DISCRIM_PAREN_AFTER),this.sep(_.BEFORE_SWITCH_BODY),this.brace(y.apply(void 0,c(r).concat([i],c(o))),e,_.SWITCH_BRACE_INTIAL,_.SWITCH_BRACE_FINAL,_.SWITCH_BRACE_EMPTY),this.sep(_.AFTER_STATEMENT(e)))}},{key:"reduceTemplateExpression",value:function(e,t){var n=t.tag,r=t.elements,i=null==e.tag?p():y(this.p(e.tag,(0,u.getPrecedence)(e),n),this.sep(_.TEMPLATE_TAG));i=y(i,this.t("`"));for(var o=0,a=e.elements.length;o0&&(s+="}"),s+=e.elements[o].rawValue,o1&&void 0!==arguments[1]?arguments[1]:new c.default,n=new u.TokenStream,r=(0,s.default)(t,e);return r.emit(n),n.result};var r=n(8266);Object.defineProperty(t,"MinimalCodeGen",{enumerable:!0,get:function(){return l(r).default}});var i=n(6845);Object.defineProperty(t,"ExtensibleCodeGen",{enumerable:!0,get:function(){return i.ExtensibleCodeGen}}),Object.defineProperty(t,"FormattedCodeGen",{enumerable:!0,get:function(){return i.FormattedCodeGen}}),Object.defineProperty(t,"Sep",{enumerable:!0,get:function(){return i.Sep}});var o=n(3350);Object.defineProperty(t,"Precedence",{enumerable:!0,get:function(){return o.Precedence}}),Object.defineProperty(t,"getPrecedence",{enumerable:!0,get:function(){return o.getPrecedence}}),Object.defineProperty(t,"escapeStringLiteral",{enumerable:!0,get:function(){return o.escapeStringLiteral}}),Object.defineProperty(t,"CodeRep",{enumerable:!0,get:function(){return o.CodeRep}}),Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return o.Empty}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return o.Token}}),Object.defineProperty(t,"NumberCodeRep",{enumerable:!0,get:function(){return o.NumberCodeRep}}),Object.defineProperty(t,"Paren",{enumerable:!0,get:function(){return o.Paren}}),Object.defineProperty(t,"Bracket",{enumerable:!0,get:function(){return o.Bracket}}),Object.defineProperty(t,"Brace",{enumerable:!0,get:function(){return o.Brace}}),Object.defineProperty(t,"NoIn",{enumerable:!0,get:function(){return o.NoIn}}),Object.defineProperty(t,"ContainsIn",{enumerable:!0,get:function(){return o.ContainsIn}}),Object.defineProperty(t,"Seq",{enumerable:!0,get:function(){return o.Seq}}),Object.defineProperty(t,"Semi",{enumerable:!0,get:function(){return o.Semi}}),Object.defineProperty(t,"CommaSep",{enumerable:!0,get:function(){return o.CommaSep}}),Object.defineProperty(t,"SemiOp",{enumerable:!0,get:function(){return o.SemiOp}});var a=n(5733);Object.defineProperty(t,"codeGenWithLocation",{enumerable:!0,get:function(){return l(a).default}});var s=l(n(4041)),u=n(7898),c=l(r);function l(e){return e&&e.__esModule?e:{default:e}}},8266:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return new u.Token(e,t)}function h(e){return new u.Paren(e)}function d(e){return new u.Brace(e)}function p(e){return new u.Bracket(e)}function m(e){return new u.NoIn(e)}function v(e){return e.containsIn?new u.ContainsIn(e):e}function y(){for(var e=arguments.length,t=Array(e),n=0;n0&&null==n[n.length-1]&&(r=y(r,f(","))),p(r)}},{key:"reduceAwaitExpression",value:function(e,t){var n=t.expression;return y(f("await"),l(e.expression,(0,u.getPrecedence)(e),n))}},{key:"reduceSpreadElement",value:function(e,t){var n=t.expression;return y(f("..."),l(e.expression,u.Precedence.Assignment,n))}},{key:"reduceSpreadProperty",value:function(e,t){var n=t.expression;return y(f("..."),D(n))}},{key:"reduceAssignmentExpression",value:function(e,t){var n=t.binding,r=t.expression,i=n,o=r,s=r.containsIn,c=n.startsWithCurly,l=n.startsWithLetSquareBracket,d=n.startsWithFunctionOrClass;return(0,u.getPrecedence)(e.expression)<(0,u.getPrecedence)(e)&&(o=h(o),s=!1),(0,a.default)(y(i,f("="),o),{containsIn:s,startsWithCurly:c,startsWithLetSquareBracket:l,startsWithFunctionOrClass:d})}},{key:"reduceAssignmentTargetIdentifier",value:function(e){var t=f(e.name);return"let"===e.name&&(t.startsWithLet=!0),t}},{key:"reduceAssignmentTargetWithDefault",value:function(e,t){var n=t.binding,r=t.init;return y(n,f("="),l(e.init,u.Precedence.Assignment,r))}},{key:"reduceCompoundAssignmentExpression",value:function(e,t){var n=t.binding,r=t.expression,i=n,o=r,s=r.containsIn,c=n.startsWithCurly,l=n.startsWithLetSquareBracket,d=n.startsWithFunctionOrClass;return(0,u.getPrecedence)(e.expression)<(0,u.getPrecedence)(e)&&(o=h(o),s=!1),(0,a.default)(y(i,f(e.operator),o),{containsIn:s,startsWithCurly:c,startsWithLetSquareBracket:l,startsWithFunctionOrClass:d})}},{key:"reduceBinaryExpression",value:function(e,t){var n=t.left,r=t.right,i=n,o=n.startsWithCurly,s=n.startsWithLetSquareBracket,c=n.startsWithFunctionOrClass,l=n.containsIn,d="**"===e.operator;((0,u.getPrecedence)(e.left)<(0,u.getPrecedence)(e)||d&&((0,u.getPrecedence)(e.left)===(0,u.getPrecedence)(e)||"UnaryExpression"===e.left.type))&&(i=h(i),o=!1,s=!1,c=!1,l=!1);var p=r,m=r.containsIn;return((0,u.getPrecedence)(e.right)<(0,u.getPrecedence)(e)||!d&&(0,u.getPrecedence)(e.right)===(0,u.getPrecedence)(e))&&(p=h(p),m=!1),(0,a.default)(y(i,f(e.operator),p),{containsIn:l||m||"in"===e.operator,containsGroup:","===e.operator,startsWithCurly:o,startsWithLetSquareBracket:s,startsWithFunctionOrClass:c})}},{key:"reduceBindingWithDefault",value:function(e,t){var n=t.binding,r=t.init;return y(n,f("="),l(e.init,u.Precedence.Assignment,r))}},{key:"reduceBindingIdentifier",value:function(e){var t=f(e.name);return"let"===e.name&&(t.startsWithLet=!0),t}},{key:"reduceArrayAssignmentTarget",value:function(e,t){var n=t.elements,r=t.rest,i=void 0;return 0===n.length?i=null==r?E():y(f("..."),r):(i=b((n=n.concat(null==r?[]:[y(f("..."),r)])).map(D)),n.length>0&&null==n[n.length-1]&&(i=y(i,f(",")))),p(i)}},{key:"reduceArrayBinding",value:function(e,t){var n=t.elements,r=t.rest,i=void 0;return 0===n.length?i=null==r?E():y(f("..."),r):(i=b((n=n.concat(null==r?[]:[y(f("..."),r)])).map(D)),n.length>0&&null==n[n.length-1]&&(i=y(i,f(",")))),p(i)}},{key:"reduceObjectAssignmentTarget",value:function(e,t){var n=t.properties,r=t.rest,i=b(n),o=d(i=0===n.length?null==r?E():y(f("..."),r):null==r?i:y(i,f(","),f("..."),r));return o.startsWithCurly=!0,o}},{key:"reduceObjectBinding",value:function(e,t){var n=t.properties,r=t.rest,i=b(n),o=d(i=0===n.length?null==r?E():y(f("..."),r):null==r?i:y(i,f(","),f("..."),r));return o.startsWithCurly=!0,o}},{key:"reduceAssignmentTargetPropertyIdentifier",value:function(e,t){var n=t.binding,r=t.init;return null==e.init?n:y(n,f("="),l(e.init,u.Precedence.Assignment,r))}},{key:"reduceAssignmentTargetPropertyProperty",value:function(e,t){var n=t.name,r=t.binding;return y(n,f(":"),r)}},{key:"reduceBindingPropertyIdentifier",value:function(e,t){var n=t.binding,r=t.init;return null==e.init?n:y(n,f("="),l(e.init,u.Precedence.Assignment,r))}},{key:"reduceBindingPropertyProperty",value:function(e,t){var n=t.name,r=t.binding;return y(n,f(":"),r)}},{key:"reduceBlock",value:function(e,t){var n=t.statements;return d(y.apply(void 0,c(n)))}},{key:"reduceBlockStatement",value:function(e,t){return t.block}},{key:"reduceBreakStatement",value:function(e){return y(f("break"),e.label?f(e.label):E(),_())}},{key:"reduceCallExpression",value:function(e,t){var n=t.callee,r=t.arguments.map((function(t,n){return l(e.arguments[n],u.Precedence.Assignment,t)}));return(0,a.default)(y(l(e.callee,(0,u.getPrecedence)(e),n),h(b(r))),{startsWithCurly:n.startsWithCurly,startsWithLet:n.startsWithLet,startsWithLetSquareBracket:n.startsWithLetSquareBracket,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceCatchClause",value:function(e,t){var n=t.binding,r=t.body;return y(f("catch"),h(n),r)}},{key:"reduceClassDeclaration",value:function(e,t){var n=t.name,r=t.super,i=t.elements,o=y(f("class"),"*default*"===e.name.name?E():n);return null!=r&&(o=y(o,f("extends"),l(e.super,u.Precedence.New,r))),o=y.apply(void 0,[o,f("{")].concat(c(i),[f("}")]))}},{key:"reduceClassExpression",value:function(e,t){var n=t.name,r=t.super,i=t.elements,o=f("class");return null!=n&&(o=y(o,n)),null!=r&&(o=y(o,f("extends"),l(e.super,u.Precedence.New,r))),(o=y.apply(void 0,[o,f("{")].concat(c(i),[f("}")]))).startsWithFunctionOrClass=!0,o}},{key:"reduceClassElement",value:function(e,t){var n=t.method;return e.isStatic?y(f("static"),n):n}},{key:"reduceComputedMemberAssignmentTarget",value:function(e,t){var n=t.object,r=t.expression,i=n.startsWithLetSquareBracket||"IdentifierExpression"===e.object.type&&"let"===e.object.name;return(0,a.default)(y(l(e.object,(0,u.getPrecedence)(e),n),p(r)),{startsWithLet:n.startsWithLet,startsWithLetSquareBracket:i,startsWithCurly:n.startsWithCurly,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceComputedMemberExpression",value:function(e,t){var n=t.object,r=t.expression,i=n.startsWithLetSquareBracket||"IdentifierExpression"===e.object.type&&"let"===e.object.name;return(0,a.default)(y(l(e.object,(0,u.getPrecedence)(e),n),p(r)),{startsWithLet:n.startsWithLet,startsWithLetSquareBracket:i,startsWithCurly:n.startsWithCurly,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceComputedPropertyName",value:function(e,t){var n=t.expression;return p(l(e.expression,u.Precedence.Assignment,n))}},{key:"reduceConditionalExpression",value:function(e,t){var n=t.test,r=t.consequent,i=t.alternate,o=n.containsIn||i.containsIn,s=n.startsWithCurly,c=n.startsWithLetSquareBracket,h=n.startsWithFunctionOrClass;return(0,a.default)(y(l(e.test,u.Precedence.LogicalOR,n),f("?"),l(e.consequent,u.Precedence.Assignment,r),f(":"),l(e.alternate,u.Precedence.Assignment,i)),{containsIn:o,startsWithCurly:s,startsWithLetSquareBracket:c,startsWithFunctionOrClass:h})}},{key:"reduceContinueStatement",value:function(e){return y(f("continue"),e.label?f(e.label):E(),_())}},{key:"reduceDataProperty",value:function(e,t){var n=t.name,r=t.expression;return y(n,f(":"),D(r))}},{key:"reduceDebuggerStatement",value:function(){return y(f("debugger"),_())}},{key:"reduceDoWhileStatement",value:function(e,t){var n=t.body,r=t.test;return y(f("do"),n,f("while"),h(r),_())}},{key:"reduceEmptyStatement",value:function(){return g()}},{key:"reduceExpressionStatement",value:function(e,t){var n=t.expression;return y(n.startsWithCurly||n.startsWithLetSquareBracket||n.startsWithFunctionOrClass?h(n):n,_())}},{key:"reduceForInStatement",value:function(e,t){var n=t.left,r=t.right,i=t.body;return n="VariableDeclaration"===e.left.type?m(v(n)):n,(0,a.default)(y(f("for"),h(y(n.startsWithLet?h(n):n,f("in"),r)),i),{endsWithMissingElse:i.endsWithMissingElse})}},{key:"reduceForOfStatement",value:function(e,t){var n=t.left,r=t.right,i=t.body;return n="VariableDeclaration"===e.left.type?m(v(n)):n,(0,a.default)(y(f("for"),h(y(n.startsWithLet?h(n):n,f("of"),l(e.right,u.Precedence.Assignment,r))),i),{endsWithMissingElse:i.endsWithMissingElse})}},{key:"reduceForStatement",value:function(e,t){var n=t.init,r=t.test,i=t.update,o=t.body;return n&&(n.startsWithLetSquareBracket&&(n=h(n)),n=m(v(n))),(0,a.default)(y(f("for"),h(y(n||E(),g(),r||E(),g(),i||E())),o),{endsWithMissingElse:o.endsWithMissingElse})}},{key:"reduceForAwaitStatement",value:function(e,t){var n=t.left,r=t.right,i=t.body;return n="VariableDeclaration"===e.left.type?m(v(n)):n,(0,a.default)(y(f("for"),f("await"),h(y(n.startsWithLet?h(n):n,f("of"),l(e.right,u.Precedence.Assignment,r))),i),{endsWithMissingElse:i.endsWithMissingElse})}},{key:"reduceFunctionBody",value:function(e,t){var n=t.directives,r=t.statements;return r.length&&(r[0]=this.parenToAvoidBeingDirective(e.statements[0],r[0])),d(y.apply(void 0,c(n).concat(c(r))))}},{key:"reduceFunctionDeclaration",value:function(e,t){var n=t.name,r=t.params,i=t.body;return y(e.isAsync?f("async"):E(),f("function"),e.isGenerator?f("*"):E(),"*default*"===e.name.name?E():n,r,i)}},{key:"reduceFunctionExpression",value:function(e,t){var n=t.name,r=t.params,i=t.body,o=y(e.isAsync?f("async"):E(),f("function"),e.isGenerator?f("*"):E(),n||E(),r,i);return o.startsWithFunctionOrClass=!0,o}},{key:"reduceFormalParameters",value:function(e,t){var n=t.items,r=t.rest;return h(b(n.concat(null==r?[]:[y(f("..."),r)])))}},{key:"reduceArrowExpression",value:function(e,t){var n=t.params,r=t.body;n=this.regenerateArrowParams(e.params,n);var i=!1;return"FunctionBody"!==e.body.type&&(r.startsWithCurly?r=h(r):r.containsIn&&(i=!0)),(0,a.default)(y(e.isAsync?f("async"):E(),n,f("=>"),l(e.body,u.Precedence.Assignment,r)),{containsIn:i})}},{key:"reduceGetter",value:function(e,t){var n=t.name,r=t.body;return y(f("get"),n,h(E()),r)}},{key:"reduceIdentifierExpression",value:function(e){var t=f(e.name);return"let"===e.name&&(t.startsWithLet=!0),t}},{key:"reduceIfStatement",value:function(e,t){var n=t.test,r=t.consequent,i=t.alternate;return i&&r.endsWithMissingElse&&(r=d(r)),(0,a.default)(y(f("if"),h(n),r,i?y(f("else"),i):E()),{endsWithMissingElse:!i||i.endsWithMissingElse})}},{key:"reduceImport",value:function(e,t){var n=t.defaultBinding,r=t.namedImports,i=[];return null!=n&&i.push(n),r.length>0&&i.push(d(b(r))),0===i.length?y(f("import"),f((0,u.escapeStringLiteral)(e.moduleSpecifier)),_()):y(f("import"),b(i),f("from"),f((0,u.escapeStringLiteral)(e.moduleSpecifier)),_())}},{key:"reduceImportNamespace",value:function(e,t){var n=t.defaultBinding,r=t.namespaceBinding;return y(f("import"),null==n?E():y(n,f(",")),f("*"),f("as"),r,f("from"),f((0,u.escapeStringLiteral)(e.moduleSpecifier)),_())}},{key:"reduceImportSpecifier",value:function(e,t){var n=t.binding;return null==e.name?n:y(f(e.name),f("as"),n)}},{key:"reduceExportAllFrom",value:function(e){return y(f("export"),f("*"),f("from"),f((0,u.escapeStringLiteral)(e.moduleSpecifier)),_())}},{key:"reduceExportFrom",value:function(e,t){var n=t.namedExports;return y(f("export"),d(b(n)),f("from"),f((0,u.escapeStringLiteral)(e.moduleSpecifier)),_())}},{key:"reduceExportLocals",value:function(e,t){var n=t.namedExports;return y(f("export"),d(b(n)),_())}},{key:"reduceExport",value:function(e,t){var n=t.declaration;switch(e.declaration.type){case"FunctionDeclaration":case"ClassDeclaration":break;default:n=y(n,_())}return y(f("export"),n)}},{key:"reduceExportDefault",value:function(e,t){var n=t.body;switch(n=n.startsWithFunctionOrClass?h(n):n,e.body.type){case"FunctionDeclaration":case"ClassDeclaration":return y(f("export default"),n);default:return y(f("export default"),l(e.body,u.Precedence.Assignment,n),_())}}},{key:"reduceExportFromSpecifier",value:function(e){return null==e.exportedName?f(e.name):y(f(e.name),f("as"),f(e.exportedName))}},{key:"reduceExportLocalSpecifier",value:function(e,t){var n=t.name;return null==e.exportedName?n:y(n,f("as"),f(e.exportedName))}},{key:"reduceLabeledStatement",value:function(e,t){var n=t.body;return(0,a.default)(y(f(e.label+":"),n),{endsWithMissingElse:n.endsWithMissingElse})}},{key:"reduceLiteralBooleanExpression",value:function(e){return f(e.value.toString())}},{key:"reduceLiteralNullExpression",value:function(){return f("null")}},{key:"reduceLiteralInfinityExpression",value:function(){return f("2e308")}},{key:"reduceLiteralNumericExpression",value:function(e){return new u.NumberCodeRep(e.value)}},{key:"reduceLiteralRegExpExpression",value:function(e){return f("/"+e.pattern+"/"+(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiLine?"m":"")+(e.dotAll?"s":"")+(e.unicode?"u":"")+(e.sticky?"y":""),!0)}},{key:"reduceLiteralStringExpression",value:function(e){return f((0,u.escapeStringLiteral)(e.value))}},{key:"reduceMethod",value:function(e,t){var n=t.name,r=t.params,i=t.body;return y(e.isAsync?f("async"):E(),e.isGenerator?f("*"):E(),n,r,i)}},{key:"reduceModule",value:function(e,t){var n=t.directives,r=t.items;return r.length&&(r[0]=this.parenToAvoidBeingDirective(e.items[0],r[0])),y.apply(void 0,c(n).concat(c(r)))}},{key:"reduceNewExpression",value:function(e,t){var n=t.callee,r=t.arguments,i=r.map((function(t,n){return l(e.arguments[n],u.Precedence.Assignment,t)})),o=(0,u.getPrecedence)(e.callee)===u.Precedence.Call?h(n):l(e.callee,(0,u.getPrecedence)(e),n);return y(f("new"),o,0===r.length?E():h(b(i)))}},{key:"reduceNewTargetExpression",value:function(){return f("new.target")}},{key:"reduceObjectExpression",value:function(e,t){var n=d(b(t.properties));return n.startsWithCurly=!0,n}},{key:"reduceUpdateExpression",value:function(e,t){var n=t.operand;return e.isPrefix?this.reduceUnaryExpression.apply(this,arguments):(0,a.default)(y(l(e.operand,u.Precedence.New,n),f(e.operator)),{startsWithCurly:n.startsWithCurly,startsWithLetSquareBracket:n.startsWithLetSquareBracket,startsWithFunctionOrClass:n.startsWithFunctionOrClass})}},{key:"reduceUnaryExpression",value:function(e,t){var n=t.operand;return y(f(e.operator),l(e.operand,(0,u.getPrecedence)(e),n))}},{key:"reduceReturnStatement",value:function(e,t){var n=t.expression;return y(f("return"),n||E(),_())}},{key:"reduceScript",value:function(e,t){var n=t.directives,r=t.statements;return r.length&&(r[0]=this.parenToAvoidBeingDirective(e.statements[0],r[0])),y.apply(void 0,c(n).concat(c(r)))}},{key:"reduceSetter",value:function(e,t){var n=t.name,r=t.param,i=t.body;return y(f("set"),n,h(r),i)}},{key:"reduceShorthandProperty",value:function(e,t){return t.name}},{key:"reduceStaticMemberAssignmentTarget",value:function(e,t){var n=t.object,r=y(l(e.object,(0,u.getPrecedence)(e),n),f("."),f(e.property));return r.startsWithLet=n.startsWithLet,r.startsWithCurly=n.startsWithCurly,r.startsWithLetSquareBracket=n.startsWithLetSquareBracket,r.startsWithFunctionOrClass=n.startsWithFunctionOrClass,r}},{key:"reduceStaticMemberExpression",value:function(e,t){var n=t.object,r=y(l(e.object,(0,u.getPrecedence)(e),n),f("."),f(e.property));return r.startsWithLet=n.startsWithLet,r.startsWithCurly=n.startsWithCurly,r.startsWithLetSquareBracket=n.startsWithLetSquareBracket,r.startsWithFunctionOrClass=n.startsWithFunctionOrClass,r}},{key:"reduceStaticPropertyName",value:function(e){if(s.keyword.isIdentifierNameES6(e.value))return f(e.value);var t=parseFloat(e.value);return t>=0&&t.toString()===e.value?new u.NumberCodeRep(t):f((0,u.escapeStringLiteral)(e.value))}},{key:"reduceSuper",value:function(){return f("super")}},{key:"reduceSwitchCase",value:function(e,t){var n=t.test,r=t.consequent;return y(f("case"),n,f(":"),y.apply(void 0,c(r)))}},{key:"reduceSwitchDefault",value:function(e,t){var n=t.consequent;return y(f("default:"),y.apply(void 0,c(n)))}},{key:"reduceSwitchStatement",value:function(e,t){var n=t.discriminant,r=t.cases;return y(f("switch"),h(n),d(y.apply(void 0,c(r))))}},{key:"reduceSwitchStatementWithDefault",value:function(e,t){var n=t.discriminant,r=t.preDefaultCases,i=t.defaultCase,o=t.postDefaultCases;return y(f("switch"),h(n),d(y.apply(void 0,c(r).concat([i],c(o)))))}},{key:"reduceTemplateExpression",value:function(e,t){var n=t.tag,r=t.elements,i=null==e.tag?E():l(e.tag,(0,u.getPrecedence)(e),n);i=y(i,f("`"));for(var o=0,a=e.elements.length;o0?f("}"):E(),r[o],o=1e3&&e%10===0?(t=e.toString(10),/[eE]/.test(t)?t.replace(/[eE]\+/,"e"):e.toString(10).replace(/0{3,}$/,(function(e){return"e"+e.length}))):e%1===0?e>1e15&&e<1e20?"0x"+e.toString(16).toUpperCase():e.toString(10).replace(/[eE]\+/,"e"):e.toString(10).replace(/^0\./,".").replace(/[eE]\+/,"e")}(e);this.put(t),this.lastNumber=t}},{key:"putOptionalSemi",value:function(){this.optionalSemi=!0}},{key:"putRaw",value:function(e){this.result+=e,this.lastTokenStr=e}},{key:"put",value:function(e,t){if(this.optionalSemi&&(this.optionalSemi=!1,"}"!==e&&(this.result+=";",this.lastCodePoint=";",this.previousWasRegExp=!1)),null!==this.lastNumber&&1===e.length&&"."===e)return this.result+=a(this.lastNumber)?"..":".",this.lastNumber=null,void(this.lastCodePoint=".");var n=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){this.lastNumber=null;var r=String.fromCodePoint(e.codePointAt(0)),i=this.lastCodePoint;this.lastCodePoint=String.fromCodePoint(e.codePointAt(n-1));var s=this.previousWasRegExp;this.previousWasRegExp=t,i&&(("+"===i||"-"===i)&&i===r||o(i)&&o(r)||"/"===i&&"/"===r||s&&"i"===r||this.partialHtmlComment&&e.startsWith("--"))&&(this.result+=" ")}this.partialHtmlComment=this.lastTokenStr.endsWith("<")&&"!"===e,this.result+=e,this.lastTokenStr=e}}]),e}()},3797:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.whitespaceArray=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],t.whitespaceBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],t.idStartLargeRegex=/^[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]$/,t.idStartBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1],t.idContinueLargeRegex=/^[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]$/,t.idContinueBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1]},5733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:new c.default,n=new l,r=(0,a.reduce)(h(t),e);return r.emit(n),{source:n.result,locations:n.locations}};var o,a=n(4041),s=n(7898),u=n(8266),c=(o=u)&&o.__esModule?o:{default:o};var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.line=1,e.column=0,e.startingNodes=[],e.finishingStatements=[],e.lastNumberNode=null,e.locations=new WeakMap,e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"putRaw",value:function(e){var n=this.result.length;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"putRaw",this).call(this,e),this.startNodes(e,n)}},{key:"put",value:function(e,n){if(this.optionalSemi&&"}"!==e){var r=!0,o=!1,a=void 0;try{for(var u,c=this.finishingStatements[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var l=u.value;++l.end.column,++l.end.offset}}catch(d){o=!0,a=d}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}if(this.finishingStatements=[],null!==this.lastNumber&&"."===e&&(0,s.needsDoubleDot)(this.lastNumber)){var f=this.locations.get(this.lastNumberNode).end;++f.column,++f.offset}this.lastNumberNode=null;var h=this.result.length;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"put",this).call(this,e,n),this.startNodes(e,h)}},{key:"startNodes",value:function(e,t){for(var n=/\r\n?|[\n\u2028\u2029]/g,r=!1,i=void 0,o=this.line,a=this.column;i=n.exec(e);)++this.line,this.column=e.length-i.index-i[0].length,r=!0;r||(this.column+=this.result.length-t,a=this.column-e.length);var s=!0,u=!1,c=void 0;try{for(var l,f=this.startingNodes[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var h=l.value;this.locations.set(h,{start:{line:o,column:a,offset:this.result.length-e.length},end:null})}}catch(d){u=!0,c=d}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}this.startingNodes=[]}},{key:"startEmit",value:function(e){this.startingNodes.push(e)}},{key:"finishEmit",value:function(e){var t;this.locations.get(e).end={line:this.line,column:this.column,offset:this.result.length},t=e.type,/(Import)|(Export)|(Statement)|(Directive)|(SwitchCase)|(SwitchDefault)/.test(t)&&this.finishingStatements.push(this.locations.get(e))}}]),t}(s.TokenStream);function f(e,t){var n=e.emit.bind(e);return"Script"===t.type||"Module"===t.type?e.emit=function(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?t-1:0),r=1;r1&&n.slice(1).forEach((function(n){t.addError(e(n))}))})),this}},{key:"enforceConflictingLexicallyDeclaredNames",value:function(e,t){var n=this;return this.lexicallyDeclaredNames.forEachEntry((function(r,i){e.has(i)&&r.forEach((function(e){n.addError(t(e))}))})),this}},{key:"observeFunctionDeclaration",value:function(){return this.observeVarBoundary(),u(this.functionDeclarationNames,this.boundNames),this.boundNames=new a.default,this}},{key:"functionDeclarationNamesAreLexical",value:function(){return u(this.lexicallyDeclaredNames,this.functionDeclarationNames),this.functionDeclarationNames=new a.default,this}},{key:"observeVarDeclaration",value:function(){return u(this.varDeclaredNames,this.boundNames),this.boundNames=new a.default,this}},{key:"recordForOfVars",value:function(){var e=this;return this.varDeclaredNames.forEach((function(t){e.forOfVarDeclaredNames.push(t)})),this}},{key:"observeVarBoundary",value:function(){return this.lexicallyDeclaredNames=new a.default,this.functionDeclarationNames=new a.default,this.varDeclaredNames=new a.default,this.forOfVarDeclaredNames=[],this}},{key:"exportName",value:function(e,t){return this.exportedNames.set(e,t),this}},{key:"exportDeclaredNames",value:function(){return u(this.exportedNames,this.lexicallyDeclaredNames,this.varDeclaredNames),u(this.exportedBindings,this.lexicallyDeclaredNames,this.varDeclaredNames),this}},{key:"exportBinding",value:function(e,t){return this.exportedBindings.set(e,t),this}},{key:"clearExportedBindings",value:function(){return this.exportedBindings=new a.default,this}},{key:"observeYieldExpression",value:function(e){return this.yieldExpressions.push(e),this}},{key:"clearYieldExpressions",value:function(){return this.yieldExpressions=[],this}},{key:"observeAwaitExpression",value:function(e){return this.awaitExpressions.push(e),this}},{key:"clearAwaitExpressions",value:function(){return this.awaitExpressions=[],this}},{key:"addError",value:function(e){return this.errors.push(e),this}},{key:"addStrictError",value:function(e){return this.strictErrors.push(e),this}},{key:"enforceStrictErrors",value:function(){return[].push.apply(this.errors,this.strictErrors),this.strictErrors=[],this}},{key:"concat",value:function(e){return this===c?e:(e===c||([].push.apply(this.errors,e.errors),[].push.apply(this.strictErrors,e.strictErrors),[].push.apply(this.usedLabelNames,e.usedLabelNames),[].push.apply(this.freeBreakStatements,e.freeBreakStatements),[].push.apply(this.freeContinueStatements,e.freeContinueStatements),[].push.apply(this.freeLabeledBreakStatements,e.freeLabeledBreakStatements),[].push.apply(this.freeLabeledContinueStatements,e.freeLabeledContinueStatements),[].push.apply(this.newTargetExpressions,e.newTargetExpressions),u(this.boundNames,e.boundNames),u(this.lexicallyDeclaredNames,e.lexicallyDeclaredNames),u(this.functionDeclarationNames,e.functionDeclarationNames),u(this.varDeclaredNames,e.varDeclaredNames),[].push.apply(this.forOfVarDeclaredNames,e.forOfVarDeclaredNames),u(this.exportedNames,e.exportedNames),u(this.exportedBindings,e.exportedBindings),[].push.apply(this.superCallExpressions,e.superCallExpressions),[].push.apply(this.superCallExpressionsInConstructorMethod,e.superCallExpressionsInConstructorMethod),[].push.apply(this.superPropertyExpressions,e.superPropertyExpressions),[].push.apply(this.yieldExpressions,e.yieldExpressions),[].push.apply(this.awaitExpressions,e.awaitExpressions)),this)}}],[{key:"empty",value:function(){return c}}]),e}();c=new l,Object.getOwnPropertyNames(l.prototype).forEach((function(e){"constructor"!==e&&Object.defineProperty(c,e,{value:function(){return l.prototype[e].apply(new l,arguments)},enumerable:!1,writable:!0,configurable:!0})}));t.EarlyError=function(e){function t(e,n){s(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.node=e,r.message=n,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}()},3950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EarlyErrorChecker=void 0;var r,i=function(){function e(e,t){for(var n=0;n1&&n.slice(1).forEach((function(e){t=t.addError(new l.EarlyError(e,"Duplicate constructor method in class"))})),t}var y=function(e){return new l.EarlyError(e,c.ErrorMessages.ILLEGAL_SUPER_CALL)},g=function(e){return new l.EarlyError(e,"Member access on super must be in a method")},_=function(e){return new l.EarlyError(e,"Duplicate binding "+JSON.stringify(e.name))},E=function(e){return new l.EarlyError(e,"Continue statement must be nested within an iteration statement")},b=function(e){return new l.EarlyError(e,"Continue statement must be nested within an iteration statement with label "+JSON.stringify(e.label))},D=function(e){return new l.EarlyError(e,"Break statement must be nested within an iteration statement or a switch statement")},O=function(e){return new l.EarlyError(e,"Break statement must be nested within a statement with label "+JSON.stringify(e.label))};t.EarlyErrorChecker=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.EarlyErrorState))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"reduceAssignmentExpression",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceAssignmentExpression",this).apply(this,arguments).clearBoundNames()}},{key:"reduceAssignmentTargetIdentifier",value:function(e){var t=this.identity;return("eval"===e.name||"arguments"===e.name||(0,u.isStrictModeReservedWord)(e.name))&&(t=t.addStrictError(new l.EarlyError(e,"The identifier "+JSON.stringify(e.name)+" must not be in binding position in strict mode"))),t}},{key:"reduceArrowExpression",value:function(e,n){var r=n.params,i=n.body,a=null==e.params.rest&&e.params.items.every((function(e){return"BindingIdentifier"===e.type}));r=r.enforceDuplicateLexicallyDeclaredNames(_),"FunctionBody"===e.body.type&&(i=i.enforceConflictingLexicallyDeclaredNames(r.lexicallyDeclaredNames,_),h(e.body)&&(r=r.enforceStrictErrors(),i=i.enforceStrictErrors())),r.yieldExpressions.forEach((function(e){r=r.addError(new l.EarlyError(e,"Arrow parameters must not contain yield expressions"))})),r.awaitExpressions.forEach((function(e){r=r.addError(new l.EarlyError(e,"Arrow parameters must not contain await expressions"))}));var s=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceArrowExpression",this).call(this,e,{params:r,body:i});return!a&&"FunctionBody"===e.body.type&&h(e.body)&&(s=s.addError(new l.EarlyError(e,'Functions with non-simple parameter lists may not contain a "use strict" directive'))),s=(s=(s=s.clearYieldExpressions()).clearAwaitExpressions()).observeVarBoundary()}},{key:"reduceAwaitExpression",value:function(e,t){return t.expression.observeAwaitExpression(e)}},{key:"reduceBindingIdentifier",value:function(e){var t=this.identity;return("eval"===e.name||"arguments"===e.name||(0,u.isStrictModeReservedWord)(e.name))&&(t=t.addStrictError(new l.EarlyError(e,"The identifier "+JSON.stringify(e.name)+" must not be in binding position in strict mode"))),t=t.bindName(e.name,e)}},{key:"reduceBlock",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceBlock",this).apply(this,arguments);return e=(e=(e=(e=e.functionDeclarationNamesAreLexical()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(e.varDeclaredNames,_)).observeLexicalBoundary()}},{key:"reduceBreakStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceBreakStatement",this).apply(this,arguments);return n=null==e.label?n.addFreeBreakStatement(e):n.addFreeLabeledBreakStatement(e)}},{key:"reduceCallExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceCallExpression",this).apply(this,arguments);return"Super"===e.callee.type&&(n=n.observeSuperCallExpression(e)),n}},{key:"reduceCatchClause",value:function(e,n){var r=n.binding,i=n.body;(r=(r=(r=r.observeLexicalDeclaration()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(i.previousLexicallyDeclaredNames,_)).lexicallyDeclaredNames.forEachEntry((function(e,t){i.varDeclaredNames.has(t)&&i.varDeclaredNames.get(t).forEach((function(e){i.forOfVarDeclaredNames.indexOf(e)>=0&&(r=r.addError(_(e)))}))}));var a=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceCatchClause",this).call(this,e,{binding:r,body:i});return a=a.observeLexicalBoundary()}},{key:"reduceClassDeclaration",value:function(e,t){var n=t.name,r=t.super,i=t.elements,o=n.enforceStrictErrors(),a=this.append.apply(this,f(i));return a=a.enforceStrictErrors(),null!=e.super&&(r=r.enforceStrictErrors(),o=this.append(o,r),a=a.clearSuperCallExpressionsInConstructorMethod()),o=(o=v(e,o=this.append(o,a))).observeLexicalDeclaration()}},{key:"reduceClassElement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceClassElement",this).apply(this,arguments);return!e.isStatic&&m(e.method)&&(n=n.addError(new l.EarlyError(e,c.ErrorMessages.ILLEGAL_CONSTRUCTORS))),e.isStatic&&"StaticPropertyName"===e.method.name.type&&"prototype"===e.method.name.value&&(n=n.addError(new l.EarlyError(e,'Static class methods cannot be named "prototype"'))),n}},{key:"reduceClassExpression",value:function(e,t){var n=t.name,r=t.super,i=t.elements,o=null==e.name?this.identity:n.enforceStrictErrors(),a=this.append.apply(this,f(i));return a=a.enforceStrictErrors(),null!=e.super&&(r=r.enforceStrictErrors(),o=this.append(o,r),a=a.clearSuperCallExpressionsInConstructorMethod()),o=(o=v(e,o=this.append(o,a))).clearBoundNames()}},{key:"reduceCompoundAssignmentExpression",value:function(){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceCompoundAssignmentExpression",this).apply(this,arguments).clearBoundNames()}},{key:"reduceComputedMemberExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceComputedMemberExpression",this).apply(this,arguments);return"Super"===e.object.type&&(n=n.observeSuperPropertyExpression(e)),n}},{key:"reduceContinueStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceContinueStatement",this).apply(this,arguments);return n=null==e.label?n.addFreeContinueStatement(e):n.addFreeLabeledContinueStatement(e)}},{key:"reduceDoWhileStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceDoWhileStatement",this).apply(this,arguments);return d(e.body)&&(n=n.addError(new l.EarlyError(e.body,"The body of a do-while statement must not be a labeled function declaration"))),n=(n=n.clearFreeContinueStatements()).clearFreeBreakStatements()}},{key:"reduceExport",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceExport",this).apply(this,arguments);return e=(e=e.functionDeclarationNamesAreLexical()).exportDeclaredNames()}},{key:"reduceExportFrom",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceExportFrom",this).apply(this,arguments);return e=e.clearExportedBindings()}},{key:"reduceExportFromSpecifier",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceExportFromSpecifier",this).apply(this,arguments);return n=(n=n.exportName(e.exportedName||e.name,e)).exportBinding(e.name,e)}},{key:"reduceExportLocalSpecifier",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceExportLocalSpecifier",this).apply(this,arguments);return n=(n=n.exportName(e.exportedName||e.name.name,e)).exportBinding(e.name.name,e)}},{key:"reduceExportDefault",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceExportDefault",this).apply(this,arguments);return n=(n=n.functionDeclarationNamesAreLexical()).exportName("default",e)}},{key:"reduceFormalParameters",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceFormalParameters",this).apply(this,arguments);return e=e.observeLexicalDeclaration()}},{key:"reduceForStatement",value:function(e,n){var r=n.init,i=n.test,a=n.update,s=n.body;null!=r&&(r=(r=r.enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(s.varDeclaredNames,_));var u=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceForStatement",this).call(this,e,{init:r,test:i,update:a,body:s});return null!=e.init&&"VariableDeclaration"===e.init.type&&"const"===e.init.kind&&e.init.declarators.forEach((function(e){null==e.init&&(u=u.addError(new l.EarlyError(e,"Constant lexical declarations must have an initialiser")))})),d(e.body)&&(u=u.addError(new l.EarlyError(e.body,"The body of a for statement must not be a labeled function declaration"))),u=(u=(u=u.clearFreeContinueStatements()).clearFreeBreakStatements()).observeLexicalBoundary()}},{key:"reduceForInStatement",value:function(e,n){var r=n.left,i=n.right,a=n.body;r=(r=r.enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(a.varDeclaredNames,_);var s=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceForInStatement",this).call(this,e,{left:r,right:i,body:a});return d(e.body)&&(s=s.addError(new l.EarlyError(e.body,"The body of a for-in statement must not be a labeled function declaration"))),s=(s=(s=s.clearFreeContinueStatements()).clearFreeBreakStatements()).observeLexicalBoundary()}},{key:"reduceForOfStatement",value:function(e,n){var r=n.left,i=n.right,a=n.body;r=(r=(r=r.recordForOfVars()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(a.varDeclaredNames,_);var s=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceForOfStatement",this).call(this,e,{left:r,right:i,body:a});return d(e.body)&&(s=s.addError(new l.EarlyError(e.body,"The body of a for-of statement must not be a labeled function declaration"))),s=(s=(s=s.clearFreeContinueStatements()).clearFreeBreakStatements()).observeLexicalBoundary()}},{key:"reduceForAwaitStatement",value:function(e,n){var r=n.left,i=n.right,a=n.body;r=(r=(r=r.recordForOfVars()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(a.varDeclaredNames,_);var s=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceForOfStatement",this).call(this,e,{left:r,right:i,body:a});return d(e.body)&&(s=s.addError(new l.EarlyError(e.body,"The body of a for-await statement must not be a labeled function declaration"))),s=(s=(s=s.clearFreeContinueStatements()).clearFreeBreakStatements()).observeLexicalBoundary()}},{key:"reduceFunctionBody",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceFunctionBody",this).apply(this,arguments);return n=(n=(n=(n=(n=(n=(n=(n=(n=n.enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(n.varDeclaredNames,_)).enforceFreeContinueStatementErrors(E)).enforceFreeLabeledContinueStatementErrors(b)).enforceFreeBreakStatementErrors(D)).enforceFreeLabeledBreakStatementErrors(O)).clearUsedLabelNames()).clearYieldExpressions()).clearAwaitExpressions(),h(e)&&(n=n.enforceStrictErrors()),n}},{key:"reduceFunctionDeclaration",value:function(e,n){var r=n.name,i=n.params,a=n.body,s=null==e.params.rest&&e.params.items.every((function(e){return"BindingIdentifier"===e.type})),u=!s||e.isGenerator?"addError":"addStrictError";i.lexicallyDeclaredNames.forEachEntry((function(e){e.length>1&&e.slice(1).forEach((function(e){i=i[u](_(e))}))})),a=(a=(a=a.enforceConflictingLexicallyDeclaredNames(i.lexicallyDeclaredNames,_)).enforceSuperCallExpressions(y)).enforceSuperPropertyExpressions(g),i=(i=i.enforceSuperCallExpressions(y)).enforceSuperPropertyExpressions(g),e.isGenerator&&i.yieldExpressions.forEach((function(e){i=i.addError(new l.EarlyError(e,"Generator parameters must not contain yield expressions"))})),e.isAsync&&i.awaitExpressions.forEach((function(e){i=i.addError(new l.EarlyError(e,"Async function parameters must not contain await expressions"))})),i=i.clearNewTargetExpressions(),a=a.clearNewTargetExpressions(),h(e.body)&&(i=i.enforceStrictErrors(),a=a.enforceStrictErrors());var c=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceFunctionDeclaration",this).call(this,e,{name:r,params:i,body:a});return!s&&h(e.body)&&(c=c.addError(new l.EarlyError(e,'Functions with non-simple parameter lists may not contain a "use strict" directive'))),c=(c=(c=c.clearYieldExpressions()).clearAwaitExpressions()).observeFunctionDeclaration()}},{key:"reduceFunctionExpression",value:function(e,n){var r=n.name,i=n.params,a=n.body,s=null==e.params.rest&&e.params.items.every((function(e){return"BindingIdentifier"===e.type})),u=!s||e.isGenerator?"addError":"addStrictError";i.lexicallyDeclaredNames.forEachEntry((function(e,t){e.length>1&&e.slice(1).forEach((function(e){i=i[u](new l.EarlyError(e,"Duplicate binding "+JSON.stringify(t)))}))})),a=(a=(a=a.enforceConflictingLexicallyDeclaredNames(i.lexicallyDeclaredNames,_)).enforceSuperCallExpressions(y)).enforceSuperPropertyExpressions(g),i=(i=i.enforceSuperCallExpressions(y)).enforceSuperPropertyExpressions(g),e.isGenerator&&i.yieldExpressions.forEach((function(e){i=i.addError(new l.EarlyError(e,"Generator parameters must not contain yield expressions"))})),e.isAsync&&i.awaitExpressions.forEach((function(e){i=i.addError(new l.EarlyError(e,"Async function parameters must not contain await expressions"))})),i=i.clearNewTargetExpressions(),a=a.clearNewTargetExpressions(),h(e.body)&&(i=i.enforceStrictErrors(),a=a.enforceStrictErrors());var c=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceFunctionExpression",this).call(this,e,{name:r,params:i,body:a});return!s&&h(e.body)&&(c=c.addError(new l.EarlyError(e,'Functions with non-simple parameter lists may not contain a "use strict" directive'))),c=(c=(c=(c=c.clearBoundNames()).clearYieldExpressions()).clearAwaitExpressions()).observeVarBoundary()}},{key:"reduceGetter",value:function(e,n){var r=n.name,i=n.body;i=(i=(i=i.enforceSuperCallExpressions(y)).clearSuperPropertyExpressions()).clearNewTargetExpressions(),h(e.body)&&(i=i.enforceStrictErrors());var a=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceGetter",this).call(this,e,{name:r,body:i});return a=a.observeVarBoundary()}},{key:"reduceIdentifierExpression",value:function(e){var t=this.identity;return(0,u.isStrictModeReservedWord)(e.name)&&(t=t.addStrictError(new l.EarlyError(e,"The identifier "+JSON.stringify(e.name)+" must not be in expression position in strict mode"))),t}},{key:"reduceIfStatement",value:function(e,n){var r=n.test,i=n.consequent,a=n.alternate;return d(e.consequent)&&(i=i.addError(new l.EarlyError(e.consequent,"The consequent of an if statement must not be a labeled function declaration"))),null!=e.alternate&&d(e.alternate)&&(a=a.addError(new l.EarlyError(e.alternate,"The alternate of an if statement must not be a labeled function declaration"))),"FunctionDeclaration"===e.consequent.type&&(i=(i=i.addStrictError(new l.EarlyError(e.consequent,"FunctionDeclarations in IfStatements are disallowed in strict mode"))).observeLexicalBoundary()),null!=e.alternate&&"FunctionDeclaration"===e.alternate.type&&(a=(a=a.addStrictError(new l.EarlyError(e.alternate,"FunctionDeclarations in IfStatements are disallowed in strict mode"))).observeLexicalBoundary()),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceIfStatement",this).call(this,e,{test:r,consequent:i,alternate:a})}},{key:"reduceImport",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceImport",this).apply(this,arguments);return e=e.observeLexicalDeclaration()}},{key:"reduceImportNamespace",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceImportNamespace",this).apply(this,arguments);return e=e.observeLexicalDeclaration()}},{key:"reduceLabeledStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceLabeledStatement",this).apply(this,arguments);return("yield"===e.label||(0,u.isStrictModeReservedWord)(e.label))&&(n=n.addStrictError(new l.EarlyError(e,"The identifier "+JSON.stringify(e.label)+" must not be in label position in strict mode"))),n.usedLabelNames.indexOf(e.label)>=0&&(n=n.addError(new l.EarlyError(e,"Label "+JSON.stringify(e.label)+" has already been declared"))),"FunctionDeclaration"===e.body.type&&(n=n.addStrictError(new l.EarlyError(e,"Labeled FunctionDeclarations are disallowed in strict mode"))),n=p(e.body)?n.observeIterationLabel(e.label):n.observeNonIterationLabel(e.label)}},{key:"reduceLiteralRegExpExpression",value:function(){return this.identity}},{key:"reduceMethod",value:function(e,n){var r=n.name,i=n.params,a=n.body,s=null==e.params.rest&&e.params.items.every((function(e){return"BindingIdentifier"===e.type}));i=i.enforceDuplicateLexicallyDeclaredNames(_),a=a.enforceConflictingLexicallyDeclaredNames(i.lexicallyDeclaredNames,_),"StaticPropertyName"===e.name.type&&"constructor"===e.name.value?(a=a.observeConstructorMethod(),i=i.observeConstructorMethod()):(a=a.enforceSuperCallExpressions(y),i=i.enforceSuperCallExpressions(y)),e.isGenerator&&i.yieldExpressions.forEach((function(e){i=i.addError(new l.EarlyError(e,"Generator parameters must not contain yield expressions"))})),e.isAsync&&i.awaitExpressions.forEach((function(e){i=i.addError(new l.EarlyError(e,"Async function parameters must not contain await expressions"))})),a=a.clearSuperPropertyExpressions(),i=(i=i.clearSuperPropertyExpressions()).clearNewTargetExpressions(),a=a.clearNewTargetExpressions(),h(e.body)&&(i=i.enforceStrictErrors(),a=a.enforceStrictErrors());var u=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceMethod",this).call(this,e,{name:r,params:i,body:a});return!s&&h(e.body)&&(u=u.addError(new l.EarlyError(e,'Functions with non-simple parameter lists may not contain a "use strict" directive'))),u=(u=(u=u.clearYieldExpressions()).clearAwaitExpressions()).observeVarBoundary()}},{key:"reduceModule",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceModule",this).apply(this,arguments);return(e=(e=(e=e.functionDeclarationNamesAreLexical()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(e.varDeclaredNames,_)).exportedNames.forEachEntry((function(t,n){t.length>1&&t.slice(1).forEach((function(t){e=e.addError(new l.EarlyError(t,"Duplicate export "+JSON.stringify(n)))}))})),e.exportedBindings.forEachEntry((function(t,n){e.lexicallyDeclaredNames.has(n)||e.varDeclaredNames.has(n)||t.forEach((function(t){e=e.addError(new l.EarlyError(t,"Exported binding "+JSON.stringify(n)+" is not declared"))}))})),e.newTargetExpressions.forEach((function(t){e=e.addError(new l.EarlyError(t,"new.target must be within function (but not arrow expression) code"))})),e=(e=(e=(e=(e=(e=(e=e.enforceFreeContinueStatementErrors(E)).enforceFreeLabeledContinueStatementErrors(b)).enforceFreeBreakStatementErrors(D)).enforceFreeLabeledBreakStatementErrors(O)).enforceSuperCallExpressions(y)).enforceSuperPropertyExpressions(g)).enforceStrictErrors()}},{key:"reduceNewTargetExpression",value:function(e){return this.identity.observeNewTargetExpression(e)}},{key:"reduceObjectExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceObjectExpression",this).apply(this,arguments);n=n.enforceSuperCallExpressionsInConstructorMethod(y);var r=e.properties.filter((function(e){return"DataProperty"===e.type&&"StaticPropertyName"===e.name.type&&"__proto__"===e.name.value}));return r.slice(1).forEach((function(e){n=n.addError(new l.EarlyError(e,"Duplicate __proto__ property in object literal not allowed"))})),n}},{key:"reduceUpdateExpression",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceUpdateExpression",this).apply(this,arguments);return e=e.clearBoundNames()}},{key:"reduceUnaryExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceUnaryExpression",this).apply(this,arguments);return"delete"===e.operator&&"IdentifierExpression"===e.operand.type&&(n=n.addStrictError(new l.EarlyError(e,"Identifier expressions must not be deleted in strict mode"))),n}},{key:"reduceScript",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceScript",this).apply(this,arguments);return(n=(n=n.enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(n.varDeclaredNames,_)).newTargetExpressions.forEach((function(e){n=n.addError(new l.EarlyError(e,"new.target must be within function (but not arrow expression) code"))})),n=(n=(n=(n=(n=(n=n.enforceFreeContinueStatementErrors(E)).enforceFreeLabeledContinueStatementErrors(b)).enforceFreeBreakStatementErrors(D)).enforceFreeLabeledBreakStatementErrors(O)).enforceSuperCallExpressions(y)).enforceSuperPropertyExpressions(g),h(e)&&(n=n.enforceStrictErrors()),n}},{key:"reduceSetter",value:function(e,n){var r=n.name,i=n.param,a=n.body,s="BindingIdentifier"===e.param.type;i=(i=i.observeLexicalDeclaration()).enforceDuplicateLexicallyDeclaredNames(_),a=a.enforceConflictingLexicallyDeclaredNames(i.lexicallyDeclaredNames,_),i=i.enforceSuperCallExpressions(y),a=a.enforceSuperCallExpressions(y),i=i.clearSuperPropertyExpressions(),a=a.clearSuperPropertyExpressions(),i=i.clearNewTargetExpressions(),a=a.clearNewTargetExpressions(),h(e.body)&&(i=i.enforceStrictErrors(),a=a.enforceStrictErrors());var u=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceSetter",this).call(this,e,{name:r,param:i,body:a});return!s&&h(e.body)&&(u=u.addError(new l.EarlyError(e,'Functions with non-simple parameter lists may not contain a "use strict" directive'))),u=u.observeVarBoundary()}},{key:"reduceStaticMemberExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceStaticMemberExpression",this).apply(this,arguments);return"Super"===e.object.type&&(n=n.observeSuperPropertyExpression(e)),n}},{key:"reduceSwitchStatement",value:function(e,t){var n=t.discriminant,r=t.cases,i=this.append.apply(this,f(r));i=(i=(i=(i=i.functionDeclarationNamesAreLexical()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(i.varDeclaredNames,_)).observeLexicalBoundary();var o=this.append(n,i);return o=o.clearFreeBreakStatements()}},{key:"reduceSwitchStatementWithDefault",value:function(e,t){var n=t.discriminant,r=t.preDefaultCases,i=t.defaultCase,o=t.postDefaultCases,a=this.append.apply(this,[i].concat(f(r),f(o)));a=(a=(a=(a=a.functionDeclarationNamesAreLexical()).enforceDuplicateLexicallyDeclaredNames(_)).enforceConflictingLexicallyDeclaredNames(a.varDeclaredNames,_)).observeLexicalBoundary();var s=this.append(n,a);return s=s.clearFreeBreakStatements()}},{key:"reduceVariableDeclaration",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceVariableDeclaration",this).apply(this,arguments);switch(e.kind){case"const":case"let":(n=n.observeLexicalDeclaration()).lexicallyDeclaredNames.has("let")&&n.lexicallyDeclaredNames.get("let").forEach((function(e){n=n.addError(new l.EarlyError(e,'Lexical declarations must not have a binding named "let"'))}));break;case"var":n=n.observeVarDeclaration()}return n}},{key:"reduceVariableDeclarationStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceVariableDeclarationStatement",this).apply(this,arguments);return"const"===e.declaration.kind&&e.declaration.declarators.forEach((function(e){null==e.init&&(n=n.addError(new l.EarlyError(e,"Constant lexical declarations must have an initialiser")))})),n}},{key:"reduceWhileStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceWhileStatement",this).apply(this,arguments);return d(e.body)&&(n=n.addError(new l.EarlyError(e.body,"The body of a while statement must not be a labeled function declaration"))),n=n.clearFreeContinueStatements().clearFreeBreakStatements()}},{key:"reduceWithStatement",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceWithStatement",this).apply(this,arguments);return d(e.body)&&(n=n.addError(new l.EarlyError(e.body,"The body of a with statement must not be a labeled function declaration"))),n=n.addStrictError(new l.EarlyError(e,"Strict mode code must not include a with statement"))}},{key:"reduceYieldExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceYieldExpression",this).apply(this,arguments);return n=n.observeYieldExpression(e)}},{key:"reduceYieldGeneratorExpression",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"reduceYieldGeneratorExpression",this).apply(this,arguments);return n=n.observeYieldExpression(e)}}],[{key:"check",value:function(e){return(0,s.default)(new t,e).errors}}]),t}(a.MonoidalReducer)},3229:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ErrorMessages={UNEXPECTED_TOKEN:function(e){return"Unexpected token "+JSON.stringify(e)},UNEXPECTED_ILLEGAL_TOKEN:function(e){return"Unexpected "+JSON.stringify(e)},UNEXPECTED_ESCAPED_KEYWORD:"Unexpected escaped keyword",UNEXPECTED_NUMBER:"Unexpected number",UNEXPECTED_STRING:"Unexpected string",UNEXPECTED_IDENTIFIER:"Unexpected identifier",UNEXPECTED_RESERVED_WORD:"Unexpected reserved word",UNEXPECTED_TEMPLATE:"Unexpected template",UNEXPECTED_EOS:"Unexpected end of input",UNEXPECTED_LINE_TERMINATOR:"Unexpected line terminator",UNEXPECTED_COMMA_AFTER_REST:"Unexpected comma after rest",UNEXPECTED_REST_PARAMETERS_INITIALIZATION:"Rest parameter may not have a default initializer",NEWLINE_AFTER_THROW:"Illegal newline after throw",UNTERMINATED_REGEXP:"Invalid regular expression: missing /",INVALID_LAST_REST_PARAMETER:"Rest parameter must be last formal parameter",INVALID_REST_PARAMETERS_INITIALIZATION:"Rest parameter may not have a default initializer",INVALID_REGEXP_FLAGS:"Invalid regular expression flags",INVALID_REGEX:"Invalid regular expression",INVALID_LHS_IN_ASSIGNMENT:"Invalid left-hand side in assignment",INVALID_LHS_IN_BINDING:"Invalid left-hand side in binding",INVALID_LHS_IN_FOR_IN:"Invalid left-hand side in for-in",INVALID_LHS_IN_FOR_OF:"Invalid left-hand side in for-of",INVALID_LHS_IN_FOR_AWAIT:"Invalid left-hand side in for-await",INVALID_UPDATE_OPERAND:"Increment/decrement target must be an identifier or member expression",INVALID_EXPONENTIATION_LHS:"Unary expressions as the left operand of an exponentation expression must be disambiguated with parentheses",MULTIPLE_DEFAULTS_IN_SWITCH:"More than one default clause in switch statement",NO_CATCH_OR_FINALLY:"Missing catch or finally after try",ILLEGAL_RETURN:"Illegal return statement",ILLEGAL_ARROW_FUNCTION_PARAMS:"Illegal arrow function parameter list",INVALID_ASYNC_PARAMS:"Async function parameters must not contain await expressions",INVALID_VAR_INIT_FOR_IN:"Invalid variable declaration in for-in statement",INVALID_VAR_INIT_FOR_OF:"Invalid variable declaration in for-of statement",INVALID_VAR_INIT_FOR_AWAIT:"Invalid variable declaration in for-await statement",UNINITIALIZED_BINDINGPATTERN_IN_FOR_INIT:"Binding pattern appears without initializer in for statement init",ILLEGAL_PROPERTY:"Illegal property initializer",INVALID_ID_BINDING_STRICT_MODE:function(e){return"The identifier "+JSON.stringify(e)+" must not be in binding position in strict mode"},INVALID_ID_IN_LABEL_STRICT_MODE:function(e){return"The identifier "+JSON.stringify(e)+" must not be in label position in strict mode"},INVALID_ID_IN_EXPRESSION_STRICT_MODE:function(e){return"The identifier "+JSON.stringify(e)+" must not be in expression position in strict mode"},INVALID_CALL_TO_SUPER:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',INVALID_DELETE_STRICT_MODE:"Identifier expressions must not be deleted in strict mode",DUPLICATE_BINDING:function(e){return"Duplicate binding "+JSON.stringify(e)},ILLEGAL_ID_IN_LEXICAL_DECLARATION:function(e){return"Lexical declarations must not have a binding named "+JSON.stringify(e)},UNITIALIZED_CONST:"Constant lexical declarations must have an initialiser",ILLEGAL_LABEL_IN_BODY:function(e){return"The body of a "+e+" statement must not be a labeled function declaration"},ILLEGEAL_LABEL_IN_IF:"The consequent of an if statement must not be a labeled function declaration",ILLEGAL_LABEL_IN_ELSE:"The alternate of an if statement must not be a labeled function declaration",ILLEGAL_CONTINUE_WITHOUT_ITERATION_WITH_ID:function(e){return"Continue statement must be nested within an iteration statement with label "+JSON.stringify(e)},ILLEGAL_CONTINUE_WITHOUT_ITERATION:"Continue statement must be nested within an iteration statement",ILLEGAL_BREAK_WITHOUT_ITERATION_OR_SWITCH:"Break statement must be nested within an iteration statement or a switch statement",ILLEGAL_WITH_STRICT_MODE:"Strict mode code must not include a with statement",ILLEGAL_ACCESS_SUPER_MEMBER:"Member access on super must be in a method",ILLEGAL_SUPER_CALL:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',DUPLICATE_LABEL_DECLARATION:function(e){return"Label "+JSON.stringify(e)+" has already been declared"},ILLEGAL_BREAK_WITHIN_LABEL:function(e){return"Break statement must be nested within a statement with label "+JSON.stringify(e)},ILLEGAL_YIELD_EXPRESSIONS:function(e){return e+" parameters must not contain yield expressions"},ILLEGAL_YIELD_IDENTIFIER:'"yield" may not be used as an identifier in this context',ILLEGAL_AWAIT_IDENTIFIER:'"await" may not be used as an identifier in this context',DUPLICATE_CONSTRUCTOR:"Duplicate constructor method in class",ILLEGAL_CONSTRUCTORS:"Constructors cannot be async, generators, getters or setters",ILLEGAL_STATIC_CLASS_NAME:'Static class methods cannot be named "prototype"',NEW_TARGET_ERROR:"new.target must be within function (but not arrow expression) code",DUPLICATE_EXPORT:function(e){return"Duplicate export "+JSON.stringify(e)},UNDECLARED_BINDING:function(e){return"Exported binding "+JSON.stringify(e)+" is not declared"},DUPLICATE_PROPTO_PROP:"Duplicate __proto__ property in object literal not allowed",ILLEGAL_LABEL_FUNC_DECLARATION:"Labeled FunctionDeclarations are disallowed in strict mode",ILLEGAL_FUNC_DECL_IF:"FunctionDeclarations in IfStatements are disallowed in strict mode",ILLEGAL_USE_STRICT:'Functions with non-simple parameter lists may not contain a "use strict" directive',ILLEGAL_EXPORTED_NAME:"Names of variables used in an export specifier from the current module must be identifiers",NO_OCTALS_IN_TEMPLATES:"Template literals may not contain octal escape sequences",NO_AWAIT_IN_ASYNC_PARAMS:'Async arrow parameters may not contain "await"'}},4394:function(e,t,n){"use strict";t.Mi=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=n.earlyErrors,i=void 0===r||r,u=new a.GenericParser(t),c=u[e]();if(i){var l=s.EarlyErrorChecker.check(c);if(l.length>0)throw new o.JsError(0,1,0,l[0].message)}return c}}function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.earlyErrors,i=void 0===r||r,a=new c(t),u=a[e]();if(i){var l=s.EarlyErrorChecker.check(u);if(l.length>0){var f=l[0],h=f.node,d=f.message,p=a.locations.get(h).start,m=p.offset,v=p.line,y=p.column;throw new o.JsError(m,v,y,d)}}return{tree:u,locations:a.locations,comments:a.comments}}}l("parseModule");var h=l("parseScript");f("parseModule"),t.Mi=f("parseScript");s.EarlyErrorChecker,a.GenericParser},3310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericParser=void 0;var r=function(){function e(e,t){for(var n=0;n":h,"<=":h,">=":h,in:h,instanceof:h,"<<":d,">>":d,">>>":d,"+":p,"-":p,"*":m,"%":m,"/":m};function y(e){if(null==e)return!1;switch(e.type){case"IdentifierExpression":case"ComputedMemberExpression":case"StaticMemberExpression":return!0}return!1}function g(e){return e.type===a.TokenType.INC||e.type===a.TokenType.DEC}t.GenericParser=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.allowIn=!0,n.inFunctionBody=!1,n.inParameter=!1,n.allowYieldExpression=!1,n.allowAwaitExpression=!1,n.firstAwaitLocation=null,n.module=!1,n.moduleIsTheGoalSymbol=!1,n.strict=!1,n.isBindingElement=!0,n.isAssignmentTarget=!0,n.firstExprError=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"match",value:function(e){return this.lookahead.type===e}},{key:"matchIdentifier",value:function(){switch(this.lookahead.type){case a.TokenType.IDENTIFIER:case a.TokenType.LET:case a.TokenType.YIELD:case a.TokenType.ASYNC:return!0;case a.TokenType.AWAIT:return!this.moduleIsTheGoalSymbol&&(null===this.firstAwaitLocation&&(this.firstAwaitLocation=this.getLocation()),!0);case a.TokenType.ESCAPED_KEYWORD:return"await"!==this.lookahead.value||this.moduleIsTheGoalSymbol?"let"===this.lookahead.value||"yield"===this.lookahead.value||"async"===this.lookahead.value:(null===this.firstAwaitLocation&&(this.firstAwaitLocation=this.getLocation()),!0)}return!1}},{key:"eat",value:function(e){return this.lookahead.type===e?this.lex():null}},{key:"expect",value:function(e){if(this.lookahead.type===e)return this.lex();throw this.createUnexpected(this.lookahead)}},{key:"matchContextualKeyword",value:function(e){return this.lookahead.type===a.TokenType.IDENTIFIER&&!this.lookahead.escaped&&this.lookahead.value===e}},{key:"expectContextualKeyword",value:function(e){if(this.lookahead.type===a.TokenType.IDENTIFIER&&!this.lookahead.escaped&&this.lookahead.value===e)return this.lex();throw this.createUnexpected(this.lookahead)}},{key:"eatContextualKeyword",value:function(e){return this.lookahead.type!==a.TokenType.IDENTIFIER||this.lookahead.escaped||this.lookahead.value!==e?null:this.lex()}},{key:"consumeSemicolon",value:function(){if(!this.eat(a.TokenType.SEMICOLON)&&!this.hasLineTerminatorBeforeNext&&!this.eof()&&!this.match(a.TokenType.RBRACE))throw this.createUnexpected(this.lookahead)}},{key:"startNode",value:function(e){return e}},{key:"copyNode",value:function(e,t){return t}},{key:"finishNode",value:function(e){return e}},{key:"parseModule",value:function(){this.moduleIsTheGoalSymbol=this.module=this.strict=!0,this.lookahead=this.advance();var e=this.startNode(),t=this.parseBody(),n=t.directives,r=t.statements;if(!this.match(a.TokenType.EOS))throw this.createUnexpected(this.lookahead);return this.finishNode(new u.Module({directives:n,items:r}),e)}},{key:"parseScript",value:function(){this.lookahead=this.advance();var e=this.startNode(),t=this.parseBody(),n=t.directives,r=t.statements;if(!this.match(a.TokenType.EOS))throw this.createUnexpected(this.lookahead);return this.finishNode(new u.Script({directives:n,statements:r}),e)}},{key:"parseFunctionBody",value:function(){var e=this.inFunctionBody,t=this.module,n=this.strict;this.inFunctionBody=!0,this.module=!1;var r=this.startNode();this.expect(a.TokenType.LBRACE);var i=new u.FunctionBody(this.parseBody());return this.expect(a.TokenType.RBRACE),i=this.finishNode(i,r),this.inFunctionBody=e,this.module=t,this.strict=n,i}},{key:"parseBody",value:function(){for(var e=[],t=[],n=!0,r=null;!this.eof()&&!this.match(a.TokenType.RBRACE);){var i=this.lookahead,o=i.slice.text,s=i.type===a.TokenType.STRING,c=this.module,l=this.getLocation(),f=this.startNode(),h=c?this.parseModuleItem():this.parseStatementListItem();if(n)if(s&&"ExpressionStatement"===h.type&&"LiteralStringExpression"===h.expression.type){!r&&i.octal&&(r=this.createErrorWithLocation(l,"Unexpected legacy octal escape sequence: \\"+i.octal));var d=o.slice(1,-1);"use strict"===d&&(this.strict=!0),e.push(this.finishNode(new u.Directive({rawValue:d}),f))}else{if(n=!1,r&&this.strict)throw r;t.push(h)}else t.push(h)}if(r&&this.strict)throw r;return{directives:e,statements:t}}},{key:"parseImportSpecifier",value:function(){var e=this.startNode(),t=void 0;if(this.matchIdentifier()){if(t=this.parseIdentifier(),!this.eatContextualKeyword("as"))return this.finishNode(new u.ImportSpecifier({name:null,binding:this.finishNode(new u.BindingIdentifier({name:t}),e)}),e)}else this.lookahead.type.klass.isIdentifierName&&(t=this.parseIdentifierName(),this.expectContextualKeyword("as"));return this.finishNode(new u.ImportSpecifier({name:t,binding:this.parseBindingIdentifier()}),e)}},{key:"parseNameSpaceBinding",value:function(){return this.expect(a.TokenType.MUL),this.expectContextualKeyword("as"),this.parseBindingIdentifier()}},{key:"parseNamedImports",value:function(){var e=[];for(this.expect(a.TokenType.LBRACE);!this.eat(a.TokenType.RBRACE);)if(e.push(this.parseImportSpecifier()),!this.eat(a.TokenType.COMMA)){this.expect(a.TokenType.RBRACE);break}return e}},{key:"parseFromClause",value:function(){return this.expectContextualKeyword("from"),this.expect(a.TokenType.STRING).str}},{key:"parseImportDeclaration",value:function(){var e=this.startNode(),t=null,n=void 0;if(this.expect(a.TokenType.IMPORT),this.match(a.TokenType.STRING))return n=this.lex().str,this.consumeSemicolon(),this.finishNode(new u.Import({defaultBinding:null,namedImports:[],moduleSpecifier:n}),e);if(this.matchIdentifier()&&(t=this.parseBindingIdentifier(),!this.eat(a.TokenType.COMMA))){var r=new u.Import({defaultBinding:t,namedImports:[],moduleSpecifier:this.parseFromClause()});return this.consumeSemicolon(),this.finishNode(r,e)}if(this.match(a.TokenType.MUL)){var i=new u.ImportNamespace({defaultBinding:t,namespaceBinding:this.parseNameSpaceBinding(),moduleSpecifier:this.parseFromClause()});return this.consumeSemicolon(),this.finishNode(i,e)}if(this.match(a.TokenType.LBRACE)){var o=new u.Import({defaultBinding:t,namedImports:this.parseNamedImports(),moduleSpecifier:this.parseFromClause()});return this.consumeSemicolon(),this.finishNode(o,e)}throw this.createUnexpected(this.lookahead)}},{key:"parseExportSpecifier",value:function(){var e=this.startNode(),t=this.finishNode({type:"ExportNameOfUnknownType",isIdentifier:this.matchIdentifier(),value:this.parseIdentifierName()},e);if(this.eatContextualKeyword("as")){var n=this.parseIdentifierName();return this.finishNode({name:t,exportedName:n},e)}return this.finishNode({name:t,exportedName:null},e)}},{key:"parseExportClause",value:function(){this.expect(a.TokenType.LBRACE);for(var e=[];!this.eat(a.TokenType.RBRACE);)if(e.push(this.parseExportSpecifier()),!this.eat(a.TokenType.COMMA)){this.expect(a.TokenType.RBRACE);break}return e}},{key:"parseExportDeclaration",value:function(){var e=this,t=this.startNode(),n=void 0;switch(this.expect(a.TokenType.EXPORT),this.lookahead.type){case a.TokenType.MUL:this.lex(),n=new u.ExportAllFrom({moduleSpecifier:this.parseFromClause()}),this.consumeSemicolon();break;case a.TokenType.LBRACE:var r=this.parseExportClause(),o=null;this.matchContextualKeyword("from")?(o=this.parseFromClause(),n=new u.ExportFrom({namedExports:r.map((function(t){return e.copyNode(t,new u.ExportFromSpecifier({name:t.name.value,exportedName:t.exportedName}))})),moduleSpecifier:o})):(r.forEach((function(t){if(!t.name.isIdentifier)throw e.createError(i.ErrorMessages.ILLEGAL_EXPORTED_NAME)})),n=new u.ExportLocals({namedExports:r.map((function(t){return e.copyNode(t,new u.ExportLocalSpecifier({name:e.copyNode(t.name,new u.IdentifierExpression({name:t.name.value})),exportedName:t.exportedName}))}))})),this.consumeSemicolon();break;case a.TokenType.CLASS:n=new u.Export({declaration:this.parseClass({isExpr:!1,inDefault:!1})});break;case a.TokenType.FUNCTION:n=new u.Export({declaration:this.parseFunction({isExpr:!1,inDefault:!1,allowGenerator:!0,isAsync:!1})});break;case a.TokenType.ASYNC:var s=this.startNode();this.lex(),n=new u.Export({declaration:this.parseFunction({isExpr:!1,inDefault:!1,allowGenerator:!0,isAsync:!0,startState:s})});break;case a.TokenType.DEFAULT:switch(this.lex(),this.lookahead.type){case a.TokenType.FUNCTION:n=new u.ExportDefault({body:this.parseFunction({isExpr:!1,inDefault:!0,allowGenerator:!0,isAsync:!1})});break;case a.TokenType.CLASS:n=new u.ExportDefault({body:this.parseClass({isExpr:!1,inDefault:!0})});break;case a.TokenType.ASYNC:var c=this.startNode(),l=this.saveLexerState();if(this.lex(),!this.hasLineTerminatorBeforeNext&&this.match(a.TokenType.FUNCTION)){n=new u.ExportDefault({body:this.parseFunction({isExpr:!1,inDefault:!0,allowGenerator:!1,isAsync:!0,startState:c})});break}this.restoreLexerState(l);default:n=new u.ExportDefault({body:this.parseAssignmentExpression()}),this.consumeSemicolon()}break;case a.TokenType.VAR:case a.TokenType.LET:case a.TokenType.CONST:n=new u.Export({declaration:this.parseVariableDeclaration(!0)}),this.consumeSemicolon();break;default:throw this.createUnexpected(this.lookahead)}return this.finishNode(n,t)}},{key:"parseModuleItem",value:function(){switch(this.lookahead.type){case a.TokenType.IMPORT:return this.parseImportDeclaration();case a.TokenType.EXPORT:return this.parseExportDeclaration();default:return this.parseStatementListItem()}}},{key:"lookaheadLexicalDeclaration",value:function(){if(this.match(a.TokenType.LET)||this.match(a.TokenType.CONST)){var e=this.saveLexerState();if(this.lex(),this.matchIdentifier()||this.match(a.TokenType.LBRACE)||this.match(a.TokenType.LBRACK))return this.restoreLexerState(e),!0;this.restoreLexerState(e)}return!1}},{key:"parseStatementListItem",value:function(){if(this.eof())throw this.createUnexpected(this.lookahead);switch(this.lookahead.type){case a.TokenType.FUNCTION:return this.parseFunction({isExpr:!1,inDefault:!1,allowGenerator:!0,isAsync:!1});case a.TokenType.CLASS:return this.parseClass({isExpr:!1,inDefault:!1});case a.TokenType.ASYNC:var e=this.getLocation(),t=this.saveLexerState();return this.lex(),!this.hasLineTerminatorBeforeNext&&this.match(a.TokenType.FUNCTION)?this.parseFunction({isExpr:!1,inDefault:!1,allowGenerator:!0,isAsync:!0,startState:e}):(this.restoreLexerState(t),this.parseStatement());default:if(this.lookaheadLexicalDeclaration()){var n=this.startNode();return this.finishNode(this.parseVariableDeclarationStatement(),n)}return this.parseStatement()}}},{key:"parseStatement",value:function(){var e=this.startNode(),t=this.isolateCoverGrammar(this.parseStatementHelper);return this.finishNode(t,e)}},{key:"parseStatementHelper",value:function(){if(this.eof())throw this.createUnexpected(this.lookahead);switch(this.lookahead.type){case a.TokenType.SEMICOLON:return this.parseEmptyStatement();case a.TokenType.LBRACE:return this.parseBlockStatement();case a.TokenType.LPAREN:return this.parseExpressionStatement();case a.TokenType.BREAK:return this.parseBreakStatement();case a.TokenType.CONTINUE:return this.parseContinueStatement();case a.TokenType.DEBUGGER:return this.parseDebuggerStatement();case a.TokenType.DO:return this.parseDoWhileStatement();case a.TokenType.FOR:return this.parseForStatement();case a.TokenType.IF:return this.parseIfStatement();case a.TokenType.RETURN:return this.parseReturnStatement();case a.TokenType.SWITCH:return this.parseSwitchStatement();case a.TokenType.THROW:return this.parseThrowStatement();case a.TokenType.TRY:return this.parseTryStatement();case a.TokenType.VAR:return this.parseVariableDeclarationStatement();case a.TokenType.WHILE:return this.parseWhileStatement();case a.TokenType.WITH:return this.parseWithStatement();case a.TokenType.FUNCTION:case a.TokenType.CLASS:throw this.createUnexpected(this.lookahead);default:var e=this.saveLexerState();if(this.eat(a.TokenType.LET)){if(this.match(a.TokenType.LBRACK))throw this.restoreLexerState(e),this.createUnexpected(this.lookahead);this.restoreLexerState(e)}else if(this.eat(a.TokenType.ASYNC)){if(!this.hasLineTerminatorBeforeNext&&this.match(a.TokenType.FUNCTION))throw this.createUnexpected(this.lookahead);this.restoreLexerState(e)}var t=this.parseExpression();if("IdentifierExpression"===t.type&&this.eat(a.TokenType.COLON)){var n=this.match(a.TokenType.FUNCTION)?this.parseFunction({isExpr:!1,inDefault:!1,allowGenerator:!1,isAsync:!1}):this.parseStatement();return new u.LabeledStatement({label:t.name,body:n})}return this.consumeSemicolon(),new u.ExpressionStatement({expression:t})}}},{key:"parseEmptyStatement",value:function(){return this.lex(),new u.EmptyStatement}},{key:"parseBlockStatement",value:function(){return new u.BlockStatement({block:this.parseBlock()})}},{key:"parseExpressionStatement",value:function(){var e=this.parseExpression();return this.consumeSemicolon(),new u.ExpressionStatement({expression:e})}},{key:"parseBreakStatement",value:function(){if(this.lex(),this.eat(a.TokenType.SEMICOLON)||this.hasLineTerminatorBeforeNext)return new u.BreakStatement({label:null});var e=null;return this.matchIdentifier()&&(e=this.parseIdentifier()),this.consumeSemicolon(),new u.BreakStatement({label:e})}},{key:"parseContinueStatement",value:function(){if(this.lex(),this.eat(a.TokenType.SEMICOLON)||this.hasLineTerminatorBeforeNext)return new u.ContinueStatement({label:null});var e=null;return this.matchIdentifier()&&(e=this.parseIdentifier()),this.consumeSemicolon(),new u.ContinueStatement({label:e})}},{key:"parseDebuggerStatement",value:function(){return this.lex(),this.consumeSemicolon(),new u.DebuggerStatement}},{key:"parseDoWhileStatement",value:function(){this.lex();var e=this.parseStatement();this.expect(a.TokenType.WHILE),this.expect(a.TokenType.LPAREN);var t=this.parseExpression();return this.expect(a.TokenType.RPAREN),this.eat(a.TokenType.SEMICOLON),new u.DoWhileStatement({body:e,test:t})}},{key:"parseForStatement",value:function(){this.lex();var e=this.allowAwaitExpression&&this.eat(a.TokenType.AWAIT);this.expect(a.TokenType.LPAREN);var t=null,n=null;if(e&&this.match(a.TokenType.SEMICOLON))throw this.createUnexpected(this.lookahead);if(this.eat(a.TokenType.SEMICOLON))return this.match(a.TokenType.SEMICOLON)||(t=this.parseExpression()),this.expect(a.TokenType.SEMICOLON),this.match(a.TokenType.RPAREN)||(n=this.parseExpression()),new u.ForStatement({init:null,test:t,update:n,body:this.getIteratorStatementEpilogue()});var r=this.match(a.TokenType.LET),o=this.lookaheadLexicalDeclaration(),s=this.startNode();if(this.match(a.TokenType.VAR)||o){var c=this.allowIn;this.allowIn=!1;var l=this.parseVariableDeclaration(!1);if(this.allowIn=c,1===l.declarators.length&&(this.match(a.TokenType.IN)||this.matchContextualKeyword("of"))){var f=void 0,h=l.declarators[0];if(this.match(a.TokenType.IN)){if(e)throw this.createUnexpected(this.lookahead);if(null!==h.init&&(this.strict||"var"!==l.kind||"BindingIdentifier"!==h.binding.type))throw this.createError(i.ErrorMessages.INVALID_VAR_INIT_FOR_IN);f=u.ForInStatement,this.lex(),n=this.parseExpression()}else{if(null!==h.init)throw this.createError(e?i.ErrorMessages.INVALID_VAR_INIT_FOR_AWAIT:i.ErrorMessages.INVALID_VAR_INIT_FOR_OF);f=e?u.ForAwaitStatement:u.ForOfStatement,this.lex(),n=this.parseAssignmentExpression()}return new f({left:l,right:n,body:this.getIteratorStatementEpilogue()})}if(e)throw this.createUnexpected(this.lookahead);if(this.expect(a.TokenType.SEMICOLON),l.declarators.some((function(e){return"BindingIdentifier"!==e.binding.type&&null===e.init})))throw this.createError(i.ErrorMessages.UNINITIALIZED_BINDINGPATTERN_IN_FOR_INIT);return this.match(a.TokenType.SEMICOLON)||(t=this.parseExpression()),this.expect(a.TokenType.SEMICOLON),this.match(a.TokenType.RPAREN)||(n=this.parseExpression()),new u.ForStatement({init:l,test:t,update:n,body:this.getIteratorStatementEpilogue()})}var d=this.allowIn;this.allowIn=!1;var p=this.inheritCoverGrammar(this.parseAssignmentExpressionOrTarget);if(this.allowIn=d,this.isAssignmentTarget&&"AssignmentExpression"!==p.type&&(this.match(a.TokenType.IN)||this.matchContextualKeyword("of"))){if("ObjectAssignmentTarget"!==p.type&&"ArrayAssignmentTarget"!==p.type||(this.firstExprError=null),r&&this.matchContextualKeyword("of"))throw this.createError(e?i.ErrorMessages.INVALID_LHS_IN_FOR_AWAIT:i.ErrorMessages.INVALID_LHS_IN_FOR_OF);var m=void 0;if(this.match(a.TokenType.IN)){if(e)throw this.createUnexpected(this.lookahead);m=u.ForInStatement,this.lex(),n=this.parseExpression()}else m=e?u.ForAwaitStatement:u.ForOfStatement,this.lex(),n=this.parseAssignmentExpression();return new m({left:this.transformDestructuring(p),right:n,body:this.getIteratorStatementEpilogue()})}if(e)throw this.createError(i.ErrorMessages.INVALID_LHS_IN_FOR_AWAIT);if(this.firstExprError)throw this.firstExprError;for(;this.eat(a.TokenType.COMMA);){var v=this.parseAssignmentExpression();p=this.finishNode(new u.BinaryExpression({left:p,operator:",",right:v}),s)}if(this.match(a.TokenType.IN))throw this.createError(i.ErrorMessages.INVALID_LHS_IN_FOR_IN);if(this.matchContextualKeyword("of"))throw this.createError(i.ErrorMessages.INVALID_LHS_IN_FOR_OF);return this.expect(a.TokenType.SEMICOLON),this.match(a.TokenType.SEMICOLON)||(t=this.parseExpression()),this.expect(a.TokenType.SEMICOLON),this.match(a.TokenType.RPAREN)||(n=this.parseExpression()),new u.ForStatement({init:p,test:t,update:n,body:this.getIteratorStatementEpilogue()})}},{key:"getIteratorStatementEpilogue",value:function(){return this.expect(a.TokenType.RPAREN),this.parseStatement()}},{key:"parseIfStatementChild",value:function(){return this.match(a.TokenType.FUNCTION)?this.parseFunction({isExpr:!1,inDefault:!1,allowGenerator:!1,isAsync:!1}):this.parseStatement()}},{key:"parseIfStatement",value:function(){this.lex(),this.expect(a.TokenType.LPAREN);var e=this.parseExpression();this.expect(a.TokenType.RPAREN);var t=this.parseIfStatementChild(),n=null;return this.eat(a.TokenType.ELSE)&&(n=this.parseIfStatementChild()),new u.IfStatement({test:e,consequent:t,alternate:n})}},{key:"parseReturnStatement",value:function(){if(!this.inFunctionBody)throw this.createError(i.ErrorMessages.ILLEGAL_RETURN);if(this.lex(),this.eat(a.TokenType.SEMICOLON)||this.hasLineTerminatorBeforeNext)return new u.ReturnStatement({expression:null});var e=null;return this.match(a.TokenType.RBRACE)||this.eof()||(e=this.parseExpression()),this.consumeSemicolon(),new u.ReturnStatement({expression:e})}},{key:"parseSwitchStatement",value:function(){this.lex(),this.expect(a.TokenType.LPAREN);var e=this.parseExpression();if(this.expect(a.TokenType.RPAREN),this.expect(a.TokenType.LBRACE),this.eat(a.TokenType.RBRACE))return new u.SwitchStatement({discriminant:e,cases:[]});var t=this.parseSwitchCases();if(this.match(a.TokenType.DEFAULT)){var n=this.parseSwitchDefault(),r=this.parseSwitchCases();if(this.match(a.TokenType.DEFAULT))throw this.createError(i.ErrorMessages.MULTIPLE_DEFAULTS_IN_SWITCH);return this.expect(a.TokenType.RBRACE),new u.SwitchStatementWithDefault({discriminant:e,preDefaultCases:t,defaultCase:n,postDefaultCases:r})}return this.expect(a.TokenType.RBRACE),new u.SwitchStatement({discriminant:e,cases:t})}},{key:"parseSwitchCases",value:function(){for(var e=[];!(this.eof()||this.match(a.TokenType.RBRACE)||this.match(a.TokenType.DEFAULT));)e.push(this.parseSwitchCase());return e}},{key:"parseSwitchCase",value:function(){var e=this.startNode();return this.expect(a.TokenType.CASE),this.finishNode(new u.SwitchCase({test:this.parseExpression(),consequent:this.parseSwitchCaseBody()}),e)}},{key:"parseSwitchDefault",value:function(){var e=this.startNode();return this.expect(a.TokenType.DEFAULT),this.finishNode(new u.SwitchDefault({consequent:this.parseSwitchCaseBody()}),e)}},{key:"parseSwitchCaseBody",value:function(){return this.expect(a.TokenType.COLON),this.parseStatementListInSwitchCaseBody()}},{key:"parseStatementListInSwitchCaseBody",value:function(){for(var e=[];!(this.eof()||this.match(a.TokenType.RBRACE)||this.match(a.TokenType.DEFAULT)||this.match(a.TokenType.CASE));)e.push(this.parseStatementListItem());return e}},{key:"parseThrowStatement",value:function(){var e=this.lex();if(this.hasLineTerminatorBeforeNext)throw this.createErrorWithLocation(e,i.ErrorMessages.NEWLINE_AFTER_THROW);var t=this.parseExpression();return this.consumeSemicolon(),new u.ThrowStatement({expression:t})}},{key:"parseTryStatement",value:function(){this.lex();var e=this.parseBlock();if(this.match(a.TokenType.CATCH)){var t=this.parseCatchClause();if(this.eat(a.TokenType.FINALLY)){var n=this.parseBlock();return new u.TryFinallyStatement({body:e,catchClause:t,finalizer:n})}return new u.TryCatchStatement({body:e,catchClause:t})}if(this.eat(a.TokenType.FINALLY)){var r=this.parseBlock();return new u.TryFinallyStatement({body:e,catchClause:null,finalizer:r})}throw this.createError(i.ErrorMessages.NO_CATCH_OR_FINALLY)}},{key:"parseVariableDeclarationStatement",value:function(){var e=this.parseVariableDeclaration(!0);return this.consumeSemicolon(),new u.VariableDeclarationStatement({declaration:e})}},{key:"parseWhileStatement",value:function(){this.lex(),this.expect(a.TokenType.LPAREN);var e=this.parseExpression(),t=this.getIteratorStatementEpilogue();return new u.WhileStatement({test:e,body:t})}},{key:"parseWithStatement",value:function(){this.lex(),this.expect(a.TokenType.LPAREN);var e=this.parseExpression();this.expect(a.TokenType.RPAREN);var t=this.parseStatement();return new u.WithStatement({object:e,body:t})}},{key:"parseCatchClause",value:function(){var e=this.startNode();if(this.lex(),this.expect(a.TokenType.LPAREN),this.match(a.TokenType.RPAREN)||this.match(a.TokenType.LPAREN))throw this.createUnexpected(this.lookahead);var t=this.parseBindingTarget();this.expect(a.TokenType.RPAREN);var n=this.parseBlock();return this.finishNode(new u.CatchClause({binding:t,body:n}),e)}},{key:"parseBlock",value:function(){var e=this.startNode();this.expect(a.TokenType.LBRACE);for(var t=[];!this.match(a.TokenType.RBRACE);)t.push(this.parseStatementListItem());return this.expect(a.TokenType.RBRACE),this.finishNode(new u.Block({statements:t}),e)}},{key:"parseVariableDeclaration",value:function(e){var t=this.startNode(),n=this.lex(),r=n.type===a.TokenType.VAR?"var":n.type===a.TokenType.CONST?"const":"let",i=this.parseVariableDeclaratorList(e);return this.finishNode(new u.VariableDeclaration({kind:r,declarators:i}),t)}},{key:"parseVariableDeclaratorList",value:function(e){var t=[];do{t.push(this.parseVariableDeclarator(e))}while(this.eat(a.TokenType.COMMA));return t}},{key:"parseVariableDeclarator",value:function(e){var t=this.startNode();if(this.match(a.TokenType.LPAREN))throw this.createUnexpected(this.lookahead);var n=this.allowIn;this.allowIn=!0;var r=this.parseBindingTarget();this.allowIn=n,e&&"BindingIdentifier"!==r.type&&!this.match(a.TokenType.ASSIGN)&&this.expect(a.TokenType.ASSIGN);var i=null;return this.eat(a.TokenType.ASSIGN)&&(i=this.parseAssignmentExpression()),this.finishNode(new u.VariableDeclarator({binding:r,init:i}),t)}},{key:"isolateCoverGrammar",value:function(e){var t,n=this.isBindingElement,r=this.isAssignmentTarget,i=this.firstExprError;if(this.isBindingElement=this.isAssignmentTarget=!0,this.firstExprError=null,t=e.call(this),null!==this.firstExprError)throw this.firstExprError;return this.isBindingElement=n,this.isAssignmentTarget=r,this.firstExprError=i,t}},{key:"inheritCoverGrammar",value:function(e){var t,n=this.isBindingElement,r=this.isAssignmentTarget,i=this.firstExprError;return this.isBindingElement=this.isAssignmentTarget=!0,this.firstExprError=null,t=e.call(this),this.isBindingElement=this.isBindingElement&&n,this.isAssignmentTarget=this.isAssignmentTarget&&r,this.firstExprError=i||this.firstExprError,t}},{key:"parseExpression",value:function(){var e=this.startNode(),t=this.parseAssignmentExpression();if(this.match(a.TokenType.COMMA))for(;!this.eof()&&this.match(a.TokenType.COMMA);){this.lex();var n=this.parseAssignmentExpression();t=this.finishNode(new u.BinaryExpression({left:t,operator:",",right:n}),e)}return t}},{key:"finishArrowParams",value:function(e){var t=e.params,n=void 0===t?null:t,r=e.rest,i=void 0===r?null:r;if(e.type!==l){if("IdentifierExpression"!==e.type)throw this.createUnexpected(this.lookahead);n=[this.targetToBinding(this.transformDestructuring(e))]}return this.copyNode(e,new u.FormalParameters({items:n,rest:i}))}},{key:"parseArrowExpressionTail",value:function(e,t,n){this.expect(a.TokenType.ARROW);var r=this.allowYieldExpression,i=this.allowAwaitExpression,o=this.firstAwaitLocation;this.allowYieldExpression=!1,this.allowAwaitExpression=t,this.firstAwaitLocation=null;var s=void 0;if(this.match(a.TokenType.LBRACE)){var c=this.allowIn;this.allowIn=!0,s=this.parseFunctionBody(),this.allowIn=c}else s=this.parseAssignmentExpression();return this.allowYieldExpression=r,this.allowAwaitExpression=i,this.firstAwaitLocation=o,this.finishNode(new u.ArrowExpression({isAsync:t,params:e,body:s}),n)}},{key:"parseAssignmentExpression",value:function(){return this.isolateCoverGrammar(this.parseAssignmentExpressionOrTarget)}},{key:"parseAssignmentExpressionOrTarget",value:function(){var e=this.startNode();if(this.allowYieldExpression&&this.match(a.TokenType.YIELD))return this.isBindingElement=this.isAssignmentTarget=!1,this.parseYieldExpression();var t=this.parseConditionalExpression();if(!this.hasLineTerminatorBeforeNext&&this.match(a.TokenType.ARROW)){this.isBindingElement=this.isAssignmentTarget=!1,this.firstExprError=null;var n=t.type===l&&t.isAsync;return this.parseArrowExpressionTail(this.finishArrowParams(t),n,e)}var r=!1,o=this.lookahead;switch(o.type){case a.TokenType.ASSIGN_BIT_OR:case a.TokenType.ASSIGN_BIT_XOR:case a.TokenType.ASSIGN_BIT_AND:case a.TokenType.ASSIGN_SHL:case a.TokenType.ASSIGN_SHR:case a.TokenType.ASSIGN_SHR_UNSIGNED:case a.TokenType.ASSIGN_ADD:case a.TokenType.ASSIGN_SUB:case a.TokenType.ASSIGN_MUL:case a.TokenType.ASSIGN_DIV:case a.TokenType.ASSIGN_MOD:case a.TokenType.ASSIGN_EXP:r=!0}if(r){if(!this.isAssignmentTarget||!y(t))throw this.createError(i.ErrorMessages.INVALID_LHS_IN_ASSIGNMENT);t=this.transformDestructuring(t)}else{if(o.type!==a.TokenType.ASSIGN)return t;if(!this.isAssignmentTarget)throw this.createError(i.ErrorMessages.INVALID_LHS_IN_ASSIGNMENT);t=this.transformDestructuring(t)}this.lex();var s=this.parseAssignmentExpression();this.firstExprError=null;var c=void 0;return o.type===a.TokenType.ASSIGN?c=new u.AssignmentExpression({binding:t,expression:s}):(c=new u.CompoundAssignmentExpression({binding:t,operator:o.type.name,expression:s}),this.isBindingElement=this.isAssignmentTarget=!1),this.finishNode(c,e)}},{key:"targetToBinding",value:function(e){var t=this;if(null===e)return null;switch(e.type){case"AssignmentTargetIdentifier":return this.copyNode(e,new u.BindingIdentifier({name:e.name}));case"ArrayAssignmentTarget":return this.copyNode(e,new u.ArrayBinding({elements:e.elements.map((function(e){return t.targetToBinding(e)})),rest:this.targetToBinding(e.rest)}));case"ObjectAssignmentTarget":return this.copyNode(e,new u.ObjectBinding({properties:e.properties.map((function(e){return t.targetToBinding(e)})),rest:this.targetToBinding(e.rest)}));case"AssignmentTargetPropertyIdentifier":return this.copyNode(e,new u.BindingPropertyIdentifier({binding:this.targetToBinding(e.binding),init:e.init}));case"AssignmentTargetPropertyProperty":return this.copyNode(e,new u.BindingPropertyProperty({name:e.name,binding:this.targetToBinding(e.binding)}));case"AssignmentTargetWithDefault":return this.copyNode(e,new u.BindingWithDefault({binding:this.targetToBinding(e.binding),init:e.init}))}throw new Error("Not reached")}},{key:"transformDestructuring",value:function(e){var t=this;switch(e.type){case"DataProperty":return this.copyNode(e,new u.AssignmentTargetPropertyProperty({name:e.name,binding:this.transformDestructuringWithDefault(e.expression)}));case"ShorthandProperty":return this.copyNode(e,new u.AssignmentTargetPropertyIdentifier({binding:this.copyNode(e,new u.AssignmentTargetIdentifier({name:e.name.name})),init:null}));case"ObjectExpression":var n=e.properties.length>0?e.properties[e.properties.length-1]:void 0;return null!=n&&"SpreadProperty"===n.type?this.copyNode(e,new u.ObjectAssignmentTarget({properties:e.properties.slice(0,-1).map((function(e){return e&&t.transformDestructuringWithDefault(e)})),rest:this.transformDestructuring(n.expression)})):this.copyNode(e,new u.ObjectAssignmentTarget({properties:e.properties.map((function(e){return e&&t.transformDestructuringWithDefault(e)})),rest:null}));case"ArrayExpression":var r=e.elements[e.elements.length-1];return null!=r&&"SpreadElement"===r.type?this.copyNode(e,new u.ArrayAssignmentTarget({elements:e.elements.slice(0,-1).map((function(e){return e&&t.transformDestructuringWithDefault(e)})),rest:this.copyNode(r.expression,this.transformDestructuring(r.expression))})):this.copyNode(e,new u.ArrayAssignmentTarget({elements:e.elements.map((function(e){return e&&t.transformDestructuringWithDefault(e)})),rest:null}));case"IdentifierExpression":return this.copyNode(e,new u.AssignmentTargetIdentifier({name:e.name}));case"StaticPropertyName":return this.copyNode(e,new u.AssignmentTargetIdentifier({name:e.value}));case"ComputedMemberExpression":return this.copyNode(e,new u.ComputedMemberAssignmentTarget({object:e.object,expression:e.expression}));case"StaticMemberExpression":return this.copyNode(e,new u.StaticMemberAssignmentTarget({object:e.object,property:e.property}));case"ArrayAssignmentTarget":case"ObjectAssignmentTarget":case"ComputedMemberAssignmentTarget":case"StaticMemberAssignmentTarget":case"AssignmentTargetIdentifier":case"AssignmentTargetPropertyIdentifier":case"AssignmentTargetPropertyProperty":case"AssignmentTargetWithDefault":return e}throw new Error("Not reached")}},{key:"transformDestructuringWithDefault",value:function(e){return"AssignmentExpression"===e.type?this.copyNode(e,new u.AssignmentTargetWithDefault({binding:this.transformDestructuring(e.binding),init:e.expression})):this.transformDestructuring(e)}},{key:"lookaheadAssignmentExpression",value:function(){if(this.matchIdentifier())return!0;switch(this.lookahead.type){case a.TokenType.ADD:case a.TokenType.ASSIGN_DIV:case a.TokenType.BIT_NOT:case a.TokenType.CLASS:case a.TokenType.DEC:case a.TokenType.DELETE:case a.TokenType.DIV:case a.TokenType.FALSE:case a.TokenType.FUNCTION:case a.TokenType.INC:case a.TokenType.LBRACE:case a.TokenType.LBRACK:case a.TokenType.LPAREN:case a.TokenType.NEW:case a.TokenType.NOT:case a.TokenType.NULL:case a.TokenType.NUMBER:case a.TokenType.STRING:case a.TokenType.SUB:case a.TokenType.SUPER:case a.TokenType.THIS:case a.TokenType.TRUE:case a.TokenType.TYPEOF:case a.TokenType.VOID:case a.TokenType.TEMPLATE:return!0}return!1}},{key:"parseYieldExpression",value:function(){var e=this.startNode();if(this.lex(),this.hasLineTerminatorBeforeNext)return this.finishNode(new u.YieldExpression({expression:null}),e);var t=!!this.eat(a.TokenType.MUL),n=null;(t||this.lookaheadAssignmentExpression())&&(n=this.parseAssignmentExpression());var r=t?u.YieldGeneratorExpression:u.YieldExpression;return this.finishNode(new r({expression:n}),e)}},{key:"parseConditionalExpression",value:function(){var e=this.startNode(),t=this.parseBinaryExpression();if(this.firstExprError)return t;if(this.eat(a.TokenType.CONDITIONAL)){this.isBindingElement=this.isAssignmentTarget=!1;var n=this.allowIn;this.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.allowIn=n,this.expect(a.TokenType.COLON);var i=this.isolateCoverGrammar(this.parseAssignmentExpression);return this.finishNode(new u.ConditionalExpression({test:t,consequent:r,alternate:i}),e)}return t}},{key:"isBinaryOperator",value:function(e){switch(e){case a.TokenType.OR:case a.TokenType.AND:case a.TokenType.BIT_OR:case a.TokenType.BIT_XOR:case a.TokenType.BIT_AND:case a.TokenType.EQ:case a.TokenType.NE:case a.TokenType.EQ_STRICT:case a.TokenType.NE_STRICT:case a.TokenType.LT:case a.TokenType.GT:case a.TokenType.LTE:case a.TokenType.GTE:case a.TokenType.INSTANCEOF:case a.TokenType.SHL:case a.TokenType.SHR:case a.TokenType.SHR_UNSIGNED:case a.TokenType.ADD:case a.TokenType.SUB:case a.TokenType.MUL:case a.TokenType.DIV:case a.TokenType.MOD:return!0;case a.TokenType.IN:return this.allowIn;default:return!1}}},{key:"parseBinaryExpression",value:function(){var e=this,t=this.startNode(),n=this.parseExponentiationExpression();if(this.firstExprError)return n;var r=this.lookahead.type;if(!this.isBinaryOperator(r))return n;this.isBindingElement=this.isAssignmentTarget=!1,this.lex();var i=[];i.push({startState:t,left:n,operator:r,precedence:v[r.name]}),t=this.startNode();var o=this.isolateCoverGrammar(this.parseExponentiationExpression);for(r=this.lookahead.type;this.isBinaryOperator(r);){for(var a=v[r.name];i.length&&a<=i[i.length-1].precedence;){var s=i[i.length-1],c=s.operator;n=s.left,i.pop(),t=s.startState,o=this.finishNode(new u.BinaryExpression({left:n,operator:c.name,right:o}),t)}this.lex(),i.push({startState:t,left:o,operator:r,precedence:a}),t=this.startNode(),o=this.isolateCoverGrammar(this.parseExponentiationExpression),r=this.lookahead.type}return i.reduceRight((function(t,n){return e.finishNode(new u.BinaryExpression({left:n.left,operator:n.operator.name,right:t}),n.startState)}),o)}},{key:"parseExponentiationExpression",value:function(){var e=this.startNode(),t=this.lookahead.type===a.TokenType.LPAREN,n=this.parseUnaryExpression();if(this.lookahead.type!==a.TokenType.EXP)return n;if("UnaryExpression"===n.type&&!t)throw this.createError(i.ErrorMessages.INVALID_EXPONENTIATION_LHS);this.lex(),this.isBindingElement=this.isAssignmentTarget=!1;var r=this.isolateCoverGrammar(this.parseExponentiationExpression);return this.finishNode(new u.BinaryExpression({left:n,operator:"**",right:r}),e)}},{key:"parseUnaryExpression",value:function(){if(this.lookahead.type.klass!==a.TokenClass.Punctuator&&this.lookahead.type.klass!==a.TokenClass.Keyword)return this.parseUpdateExpression();var e=this.startNode();if(this.allowAwaitExpression&&this.eat(a.TokenType.AWAIT)){this.isBindingElement=this.isAssignmentTarget=!1;var t=this.isolateCoverGrammar(this.parseUnaryExpression);return this.finishNode(new u.AwaitExpression({expression:t}),e)}var n=this.lookahead;if(!function(e){switch(e.type){case a.TokenType.INC:case a.TokenType.DEC:case a.TokenType.ADD:case a.TokenType.SUB:case a.TokenType.BIT_NOT:case a.TokenType.NOT:case a.TokenType.DELETE:case a.TokenType.VOID:case a.TokenType.TYPEOF:return!0}return!1}(n))return this.parseUpdateExpression();this.lex(),this.isBindingElement=this.isAssignmentTarget=!1;var r=void 0;if(g(n)){var o=this.getLocation(),s=this.isolateCoverGrammar(this.parseUnaryExpression);if(!y(s))throw this.createErrorWithLocation(o,i.ErrorMessages.INVALID_UPDATE_OPERAND);s=this.transformDestructuring(s),r=new u.UpdateExpression({isPrefix:!0,operator:n.value,operand:s})}else{var c=this.isolateCoverGrammar(this.parseUnaryExpression);r=new u.UnaryExpression({operator:n.value,operand:c})}return this.finishNode(r,e)}},{key:"parseUpdateExpression",value:function(){var e=this.getLocation(),t=this.startNode(),n=this.parseLeftHandSideExpression({allowCall:!0});if(this.firstExprError||this.hasLineTerminatorBeforeNext)return n;var r=this.lookahead;if(!g(r))return n;if(this.lex(),this.isBindingElement=this.isAssignmentTarget=!1,!y(n))throw this.createErrorWithLocation(e,i.ErrorMessages.INVALID_UPDATE_OPERAND);return n=this.transformDestructuring(n),this.finishNode(new u.UpdateExpression({isPrefix:!1,operator:r.value,operand:n}),t)}},{key:"parseLeftHandSideExpression",value:function(e){var t=this,n=e.allowCall,r=this.startNode(),o=this.allowIn;this.allowIn=!0;var s=void 0,c=this.lookahead;if(this.eat(a.TokenType.SUPER))if(this.isBindingElement=!1,this.isAssignmentTarget=!1,s=this.finishNode(new u.Super,r),this.match(a.TokenType.LPAREN)){if(!n)throw this.createUnexpected(c);s=this.finishNode(new u.CallExpression({callee:s,arguments:this.parseArgumentList().args}),r)}else if(this.match(a.TokenType.LBRACK))s=this.finishNode(new u.ComputedMemberExpression({object:s,expression:this.parseComputedMember()}),r),this.isAssignmentTarget=!0;else{if(!this.match(a.TokenType.PERIOD))throw this.createUnexpected(c);s=this.finishNode(new u.StaticMemberExpression({object:s,property:this.parseStaticMember()}),r),this.isAssignmentTarget=!0}else if(this.match(a.TokenType.NEW))this.isBindingElement=this.isAssignmentTarget=!1,s=this.parseNewExpression();else if(this.match(a.TokenType.ASYNC)){if("IdentifierExpression"===(s=this.parsePrimaryExpression()).type&&n&&!this.hasLineTerminatorBeforeNext){if(this.matchIdentifier()){var f=this.startNode(),h=this.allowAwaitExpression;this.allowAwaitExpression=!0;var d=this.parseBindingIdentifier();return this.allowAwaitExpression=h,this.ensureArrow(),this.finishNode({type:l,params:[d],rest:null,isAsync:!0},f)}if(this.match(a.TokenType.LPAREN)){var p=this.startNode(),m=this.firstAwaitLocation;this.firstAwaitLocation=null;var v=this.parseArgumentList(),y=v.args,g=v.locationFollowingFirstSpread;if(this.isBindingElement&&!this.hasLineTerminatorBeforeNext&&this.match(a.TokenType.ARROW)){if(null!==g)throw this.createErrorWithLocation(g,i.ErrorMessages.UNEXPECTED_TOKEN(","));if(null!==this.firstAwaitLocation)throw this.createErrorWithLocation(this.firstAwaitLocation,i.ErrorMessages.NO_AWAIT_IN_ASYNC_PARAMS);var _=null;if(y.length>0&&"SpreadElement"===y[y.length-1].type){if(null!=(_=this.targetToBinding(this.transformDestructuringWithDefault(y[y.length-1].expression))).init)throw this.createError(i.ErrorMessages.UNEXPECTED_REST_PARAMETERS_INITIALIZATION);y=y.slice(0,-1)}var E=y.map((function(e){return t.targetToBinding(t.transformDestructuringWithDefault(e))}));return this.finishNode({type:l,params:E,rest:_,isAsync:!0},p)}this.firstAwaitLocation=m||this.firstAwaitLocation,this.isBindingElement=this.isAssignmentTarget=!1,s=this.finishNode(new u.CallExpression({callee:s,arguments:y}),r)}}}else if(s=this.parsePrimaryExpression(),this.firstExprError)return s;for(;;)if(n&&this.match(a.TokenType.LPAREN))this.isBindingElement=this.isAssignmentTarget=!1,s=this.finishNode(new u.CallExpression({callee:s,arguments:this.parseArgumentList().args}),r);else if(this.match(a.TokenType.LBRACK))this.isBindingElement=!1,this.isAssignmentTarget=!0,s=this.finishNode(new u.ComputedMemberExpression({object:s,expression:this.parseComputedMember()}),r);else if(this.match(a.TokenType.PERIOD))this.isBindingElement=!1,this.isAssignmentTarget=!0,s=this.finishNode(new u.StaticMemberExpression({object:s,property:this.parseStaticMember()}),r);else{if(!this.match(a.TokenType.TEMPLATE))break;this.isBindingElement=this.isAssignmentTarget=!1,s=this.finishNode(new u.TemplateExpression({tag:s,elements:this.parseTemplateElements()}),r)}return this.allowIn=o,s}},{key:"parseTemplateElements",value:function(){var e=this.startNode(),t=this.lookahead;if(t.tail)return this.lex(),[this.finishNode(new u.TemplateElement({rawValue:t.slice.text.slice(1,-1)}),e)];for(var n=[this.finishNode(new u.TemplateElement({rawValue:this.lex().slice.text.slice(1,-2)}),e)];;){if(n.push(this.parseExpression()),!this.match(a.TokenType.RBRACE))throw this.createILLEGAL();if(this.index=this.startIndex,this.line=this.startLine,this.lineStart=this.startLineStart,this.lookahead=this.scanTemplateElement(),e=this.startNode(),(t=this.lex()).tail)return n.push(this.finishNode(new u.TemplateElement({rawValue:t.slice.text.slice(1,-1)}),e)),n;n.push(this.finishNode(new u.TemplateElement({rawValue:t.slice.text.slice(1,-2)}),e))}}},{key:"parseStaticMember",value:function(){if(this.lex(),this.lookahead.type.klass.isIdentifierName)return this.lex().value;throw this.createUnexpected(this.lookahead)}},{key:"parseComputedMember",value:function(){this.lex();var e=this.parseExpression();return this.expect(a.TokenType.RBRACK),e}},{key:"parseNewExpression",value:function(){var e=this,t=this.startNode();if(this.lex(),this.eat(a.TokenType.PERIOD))return this.expectContextualKeyword("target"),this.finishNode(new u.NewTargetExpression,t);var n=this.isolateCoverGrammar((function(){return e.parseLeftHandSideExpression({allowCall:!1})}));return this.finishNode(new u.NewExpression({callee:n,arguments:this.match(a.TokenType.LPAREN)?this.parseArgumentList().args:[]}),t)}},{key:"parseRegexFlags",value:function(e){for(var t=!1,n=!1,r=!1,i=!1,o=!1,a=!1,s=0;s"},Ident:{name:"Identifier",isIdentifierName:!0},Keyword:{name:"Keyword",isIdentifierName:!0},NumericLiteral:{name:"Numeric"},TemplateElement:{name:"Template"},Punctuator:{name:"Punctuator"},StringLiteral:{name:"String"},RegularExpression:{name:"RegularExpression"},Illegal:{name:"Illegal"}},c=t.TokenType={EOS:{klass:u.Eof,name:"EOS"},LPAREN:{klass:u.Punctuator,name:"("},RPAREN:{klass:u.Punctuator,name:")"},LBRACK:{klass:u.Punctuator,name:"["},RBRACK:{klass:u.Punctuator,name:"]"},LBRACE:{klass:u.Punctuator,name:"{"},RBRACE:{klass:u.Punctuator,name:"}"},COLON:{klass:u.Punctuator,name:":"},SEMICOLON:{klass:u.Punctuator,name:";"},PERIOD:{klass:u.Punctuator,name:"."},ELLIPSIS:{klass:u.Punctuator,name:"..."},ARROW:{klass:u.Punctuator,name:"=>"},CONDITIONAL:{klass:u.Punctuator,name:"?"},INC:{klass:u.Punctuator,name:"++"},DEC:{klass:u.Punctuator,name:"--"},ASSIGN:{klass:u.Punctuator,name:"="},ASSIGN_BIT_OR:{klass:u.Punctuator,name:"|="},ASSIGN_BIT_XOR:{klass:u.Punctuator,name:"^="},ASSIGN_BIT_AND:{klass:u.Punctuator,name:"&="},ASSIGN_SHL:{klass:u.Punctuator,name:"<<="},ASSIGN_SHR:{klass:u.Punctuator,name:">>="},ASSIGN_SHR_UNSIGNED:{klass:u.Punctuator,name:">>>="},ASSIGN_ADD:{klass:u.Punctuator,name:"+="},ASSIGN_SUB:{klass:u.Punctuator,name:"-="},ASSIGN_MUL:{klass:u.Punctuator,name:"*="},ASSIGN_DIV:{klass:u.Punctuator,name:"/="},ASSIGN_MOD:{klass:u.Punctuator,name:"%="},ASSIGN_EXP:{klass:u.Punctuator,name:"**="},COMMA:{klass:u.Punctuator,name:","},OR:{klass:u.Punctuator,name:"||"},AND:{klass:u.Punctuator,name:"&&"},BIT_OR:{klass:u.Punctuator,name:"|"},BIT_XOR:{klass:u.Punctuator,name:"^"},BIT_AND:{klass:u.Punctuator,name:"&"},SHL:{klass:u.Punctuator,name:"<<"},SHR:{klass:u.Punctuator,name:">>"},SHR_UNSIGNED:{klass:u.Punctuator,name:">>>"},ADD:{klass:u.Punctuator,name:"+"},SUB:{klass:u.Punctuator,name:"-"},MUL:{klass:u.Punctuator,name:"*"},DIV:{klass:u.Punctuator,name:"/"},MOD:{klass:u.Punctuator,name:"%"},EXP:{klass:u.Punctuator,name:"**"},EQ:{klass:u.Punctuator,name:"=="},NE:{klass:u.Punctuator,name:"!="},EQ_STRICT:{klass:u.Punctuator,name:"==="},NE_STRICT:{klass:u.Punctuator,name:"!=="},LT:{klass:u.Punctuator,name:"<"},GT:{klass:u.Punctuator,name:">"},LTE:{klass:u.Punctuator,name:"<="},GTE:{klass:u.Punctuator,name:">="},INSTANCEOF:{klass:u.Keyword,name:"instanceof"},IN:{klass:u.Keyword,name:"in"},NOT:{klass:u.Punctuator,name:"!"},BIT_NOT:{klass:u.Punctuator,name:"~"},ASYNC:{klass:u.Keyword,name:"async"},AWAIT:{klass:u.Keyword,name:"await"},ENUM:{klass:u.Keyword,name:"enum"},DELETE:{klass:u.Keyword,name:"delete"},TYPEOF:{klass:u.Keyword,name:"typeof"},VOID:{klass:u.Keyword,name:"void"},BREAK:{klass:u.Keyword,name:"break"},CASE:{klass:u.Keyword,name:"case"},CATCH:{klass:u.Keyword,name:"catch"},CLASS:{klass:u.Keyword,name:"class"},CONTINUE:{klass:u.Keyword,name:"continue"},DEBUGGER:{klass:u.Keyword,name:"debugger"},DEFAULT:{klass:u.Keyword,name:"default"},DO:{klass:u.Keyword,name:"do"},ELSE:{klass:u.Keyword,name:"else"},EXPORT:{klass:u.Keyword,name:"export"},EXTENDS:{klass:u.Keyword,name:"extends"},FINALLY:{klass:u.Keyword,name:"finally"},FOR:{klass:u.Keyword,name:"for"},FUNCTION:{klass:u.Keyword,name:"function"},IF:{klass:u.Keyword,name:"if"},IMPORT:{klass:u.Keyword,name:"import"},LET:{klass:u.Keyword,name:"let"},NEW:{klass:u.Keyword,name:"new"},RETURN:{klass:u.Keyword,name:"return"},SUPER:{klass:u.Keyword,name:"super"},SWITCH:{klass:u.Keyword,name:"switch"},THIS:{klass:u.Keyword,name:"this"},THROW:{klass:u.Keyword,name:"throw"},TRY:{klass:u.Keyword,name:"try"},VAR:{klass:u.Keyword,name:"var"},WHILE:{klass:u.Keyword,name:"while"},WITH:{klass:u.Keyword,name:"with"},NULL:{klass:u.Keyword,name:"null"},TRUE:{klass:u.Keyword,name:"true"},FALSE:{klass:u.Keyword,name:"false"},YIELD:{klass:u.Keyword,name:"yield"},NUMBER:{klass:u.NumericLiteral,name:""},STRING:{klass:u.StringLiteral,name:""},REGEXP:{klass:u.RegularExpression,name:""},IDENTIFIER:{klass:u.Ident,name:""},CONST:{klass:u.Keyword,name:"const"},TEMPLATE:{klass:u.TemplateElement,name:""},ESCAPED_KEYWORD:{klass:u.Keyword,name:""},ILLEGAL:{klass:u.Illegal,name:""}},l=c.ILLEGAL,f=!1,h=!0,d=[l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,c.NOT,l,l,l,c.MOD,c.BIT_AND,l,c.LPAREN,c.RPAREN,c.MUL,c.ADD,c.COMMA,c.SUB,c.PERIOD,c.DIV,l,l,l,l,l,l,l,l,l,l,c.COLON,c.SEMICOLON,c.LT,c.ASSIGN,c.GT,c.CONDITIONAL,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,c.LBRACK,l,c.RBRACK,c.BIT_XOR,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,c.LBRACE,c.BIT_OR,c.RBRACE,c.BIT_NOT],p=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,h,f,f,f,h,h,f,h,h,h,h,h,h,f,h,f,f,f,f,f,f,f,f,f,f,h,h,h,h,h,h,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,h,f,h,h,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,h,h,h,h,f],m=t.JsError=function(e){function t(e,n,r,i){s(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i));o.index=e;try{o.line=n,o.column=r}catch(a){}return o.parseErrorLine=n,o.parseErrorColumn=r,o.description=i,o.message="["+n+":"+r+"]: "+i,o}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}();function v(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}var y=function(){function e(t){s(this,e),this.source=t,this.index=0,this.line=0,this.lineStart=0,this.startIndex=0,this.startLine=0,this.startLineStart=0,this.lastIndex=0,this.lastLine=0,this.lastLineStart=0,this.hasLineTerminatorBeforeNext=!1,this.tokenIndex=0}return i(e,[{key:"saveLexerState",value:function(){return{source:this.source,index:this.index,line:this.line,lineStart:this.lineStart,startIndex:this.startIndex,startLine:this.startLine,startLineStart:this.startLineStart,lastIndex:this.lastIndex,lastLine:this.lastLine,lastLineStart:this.lastLineStart,lookahead:this.lookahead,hasLineTerminatorBeforeNext:this.hasLineTerminatorBeforeNext,tokenIndex:this.tokenIndex}}},{key:"restoreLexerState",value:function(e){this.source=e.source,this.index=e.index,this.line=e.line,this.lineStart=e.lineStart,this.startIndex=e.startIndex,this.startLine=e.startLine,this.startLineStart=e.startLineStart,this.lastIndex=e.lastIndex,this.lastLine=e.lastLine,this.lastLineStart=e.lastLineStart,this.lookahead=e.lookahead,this.hasLineTerminatorBeforeNext=e.hasLineTerminatorBeforeNext,this.tokenIndex=e.tokenIndex}},{key:"createILLEGAL",value:function(){return this.startIndex=this.index,this.startLine=this.line,this.startLineStart=this.lineStart,this.index1?n-1:0),i=1;i10)return c.IDENTIFIER;switch(t.length){case 2:switch(t.charAt(0)){case"i":switch(t.charAt(1)){case"f":return c.IF;case"n":return c.IN}break;case"d":if("o"===t.charAt(1))return c.DO}break;case 3:switch(t.charAt(0)){case"v":if(e.cse2(t,"a","r"))return c.VAR;break;case"f":if(e.cse2(t,"o","r"))return c.FOR;break;case"n":if(e.cse2(t,"e","w"))return c.NEW;break;case"t":if(e.cse2(t,"r","y"))return c.TRY;break;case"l":if(e.cse2(t,"e","t"))return c.LET}break;case 4:switch(t.charAt(0)){case"t":if(e.cse3(t,"h","i","s"))return c.THIS;if(e.cse3(t,"r","u","e"))return c.TRUE;break;case"n":if(e.cse3(t,"u","l","l"))return c.NULL;break;case"e":if(e.cse3(t,"l","s","e"))return c.ELSE;if(e.cse3(t,"n","u","m"))return c.ENUM;break;case"c":if(e.cse3(t,"a","s","e"))return c.CASE;break;case"v":if(e.cse3(t,"o","i","d"))return c.VOID;break;case"w":if(e.cse3(t,"i","t","h"))return c.WITH}break;case 5:switch(t.charAt(0)){case"a":if(e.cse4(t,"s","y","n","c"))return c.ASYNC;if(e.cse4(t,"w","a","i","t"))return c.AWAIT;break;case"w":if(e.cse4(t,"h","i","l","e"))return c.WHILE;break;case"b":if(e.cse4(t,"r","e","a","k"))return c.BREAK;break;case"f":if(e.cse4(t,"a","l","s","e"))return c.FALSE;break;case"c":if(e.cse4(t,"a","t","c","h"))return c.CATCH;if(e.cse4(t,"o","n","s","t"))return c.CONST;if(e.cse4(t,"l","a","s","s"))return c.CLASS;break;case"t":if(e.cse4(t,"h","r","o","w"))return c.THROW;break;case"y":if(e.cse4(t,"i","e","l","d"))return c.YIELD;break;case"s":if(e.cse4(t,"u","p","e","r"))return c.SUPER}break;case 6:switch(t.charAt(0)){case"r":if(e.cse5(t,"e","t","u","r","n"))return c.RETURN;break;case"t":if(e.cse5(t,"y","p","e","o","f"))return c.TYPEOF;break;case"d":if(e.cse5(t,"e","l","e","t","e"))return c.DELETE;break;case"s":if(e.cse5(t,"w","i","t","c","h"))return c.SWITCH;break;case"e":if(e.cse5(t,"x","p","o","r","t"))return c.EXPORT;break;case"i":if(e.cse5(t,"m","p","o","r","t"))return c.IMPORT}break;case 7:switch(t.charAt(0)){case"d":if(e.cse6(t,"e","f","a","u","l","t"))return c.DEFAULT;break;case"f":if(e.cse6(t,"i","n","a","l","l","y"))return c.FINALLY;break;case"e":if(e.cse6(t,"x","t","e","n","d","s"))return c.EXTENDS}break;case 8:switch(t.charAt(0)){case"f":if(e.cse7(t,"u","n","c","t","i","o","n"))return c.FUNCTION;break;case"c":if(e.cse7(t,"o","n","t","i","n","u","e"))return c.CONTINUE;break;case"d":if(e.cse7(t,"e","b","u","g","g","e","r"))return c.DEBUGGER}break;case 10:if("instanceof"===t)return c.INSTANCEOF}return c.IDENTIFIER}},{key:"skipSingleLineComment",value:function(e){for(this.index+=e;this.index=t)break;if(47===(n=this.source.charCodeAt(this.index+1)))this.skipSingleLineComment(2),e=!0;else{if(42!==n)break;e=this.skipMultiLineComment()||e}}else if(!this.moduleIsTheGoalSymbol&&e&&45===n){if(this.index+2>=t)break;if("-"!==this.source.charAt(this.index+1)||">"!==this.source.charAt(this.index+2))break;this.skipSingleLineComment(3)}else{if(this.moduleIsTheGoalSymbol||60!==n)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.skipSingleLineComment(4),e=!0}}}},{key:"scanHexEscape2",value:function(){if(this.index+2>this.source.length)return-1;var e=(0,o.getHexValue)(this.source.charAt(this.index));if(-1===e)return-1;var t=(0,o.getHexValue)(this.source.charAt(this.index+1));return-1===t?-1:(this.index+=2,e<<4|t)}},{key:"scanUnicode",value:function(){if("{"===this.source.charAt(this.index)){for(var e=this.index+1,t=0,n=void 0;e1114111)throw this.createILLEGAL();e++}if("}"!==n)throw this.createILLEGAL();if(e===this.index+1)throw++this.index,this.createILLEGAL();return this.index=e+1,t}if(this.index+4>this.source.length)return-1;var i=(0,o.getHexValue)(this.source.charAt(this.index));if(-1===i)return-1;var a=(0,o.getHexValue)(this.source.charAt(this.index+1));if(-1===a)return-1;var s=(0,o.getHexValue)(this.source.charAt(this.index+2));if(-1===s)return-1;var u=(0,o.getHexValue)(this.source.charAt(this.index+3));return-1===u?-1:(this.index+=4,i<<12|a<<8|s<<4|u)}},{key:"getEscapedIdentifier",value:function(){for(var e="",t=o.isIdentifierStart;this.index=this.source.length)throw this.createILLEGAL();if("u"!==this.source.charAt(this.index))throw this.createILLEGAL();if(++this.index,(r=this.scanUnicode())<0)throw this.createILLEGAL();n=v(r)}else if(r>=55296&&r<=56319){if(this.index>=this.source.length)throw this.createILLEGAL();var a=this.source.charCodeAt(this.index);if(++this.index,!(a>=56320&&a<=57343))throw this.createILLEGAL();n=v(r=1024*(r-55296)+(a-56320)+65536)}if(!t(r)){if(e.length<1)throw this.createILLEGAL();return this.index=i,e}t=o.isIdentifierPart,e+=n}return e}},{key:"getIdentifier",value:function(){for(var e=this.index,t=this.source.length,n=this.index,r=o.isIdentifierStart;n=55296&&a<=56319)return this.index=e,this.getEscapedIdentifier();if(!r(a))return this.index=n,this.source.slice(e,n);++n,r=o.isIdentifierPart}return this.index=n,this.source.slice(e,n)}},{key:"scanIdentifier",value:function(){var e=this.getLocation(),t=this.index,n="\\"===this.source.charAt(this.index)?this.getEscapedIdentifier():this.getIdentifier(),r=this.getSlice(t,e);r.text=n;var i=this.index-t!==n.length,o=this.getKeyword(n);return i&&o!==c.IDENTIFIER&&(o=c.ESCAPED_KEYWORD),{type:o,value:n,slice:r,escaped:i}}},{key:"getLocation",value:function(){return{line:this.startLine+1,column:this.startIndex-this.startLineStart,offset:this.startIndex}}},{key:"getLastTokenEndLocation",value:function(){return{line:this.lastLine+1,column:this.lastIndex-this.lastLineStart,offset:this.lastIndex}}},{key:"getSlice",value:function(e,t){return{text:this.source.slice(e,this.index),start:e,startLocation:t,end:this.index}}},{key:"scanPunctuatorHelper",value:function(){var e=this.source.charAt(this.index);switch(e){case".":return"."!==this.source.charAt(this.index+1)||"."!==this.source.charAt(this.index+2)?c.PERIOD:c.ELLIPSIS;case"(":return c.LPAREN;case")":case";":case",":case"}":case"[":case"]":case":":case"?":case"~":return d[e.charCodeAt(0)];case"{":return c.LBRACE;default:if(this.index+1":return c.GTE;case"/":return c.ASSIGN_DIV;case"%":return c.ASSIGN_MOD;case"^":return c.ASSIGN_BIT_XOR;case"&":return c.ASSIGN_BIT_AND}}if(this.index+1"===e&&">"===n)return this.index+3"===e&&"="===n)return c.ASSIGN_SHR;if("*"===e&&"="===n)return c.ASSIGN_EXP}switch(e){case"*":return c.EXP;case"+":return c.INC;case"-":return c.DEC;case"<":return c.SHL;case">":return c.SHR;case"&":return c.AND;case"|":return c.OR}}else if("="===e&&">"===t)return c.ARROW}return d[e.charCodeAt(0)]}},{key:"scanPunctuator",value:function(){var e=this.getLocation(),t=this.index,n=this.scanPunctuatorHelper();return this.index+=n.name.length,{type:n,value:n.name,slice:this.getSlice(t,e)}}},{key:"scanHexLiteral",value:function(e,t){for(var n=this.index;n="0"&&n<="7")){if((0,o.isIdentifierPart)(n.charCodeAt(0)))throw this.createILLEGAL();break}this.index++}if(this.index-e===2)throw this.createILLEGAL();return{type:c.NUMBER,value:parseInt(this.getSlice(e,t).text.substr(2),8),slice:this.getSlice(e,t),octal:!1,noctal:!1}}},{key:"scanLegacyOctalLiteral",value:function(e,t){for(var n=!0;this.index="0"&&r<="7")this.index++;else{if("8"!==r&&"9"!==r){if((0,o.isIdentifierPart)(r.charCodeAt(0)))throw this.createILLEGAL();break}n=!1,this.index++}}var i=this.getSlice(e,t);return n?{type:c.NUMBER,slice:i,value:parseInt(i.text.substr(1),8),octal:!0,noctal:!n}:(this.eatDecimalLiteralSuffix(),{type:c.NUMBER,slice:i,value:+i.text,octal:!0,noctal:!n})}},{key:"scanNumericLiteral",value:function(){var e=this.source.charAt(this.index),t=this.getLocation(),n=this.index;if("0"===e){if(this.index++,!(this.index="0"&&e<="9")return this.scanLegacyOctalLiteral(n,t)}else if("."!==e)for(e=this.source.charAt(this.index);e>="0"&&e<="9";){if(this.index++,this.index===this.source.length){var i=this.getSlice(n,t);return{type:c.NUMBER,value:+i.text,slice:i,octal:!1,noctal:!1}}e=this.source.charAt(this.index)}if(this.eatDecimalLiteralSuffix(),this.index!==this.source.length&&(0,o.isIdentifierStart)(this.source.charCodeAt(this.index)))throw this.createILLEGAL();var a=this.getSlice(n,t);return{type:c.NUMBER,value:+a.text,slice:a,octal:!1,noctal:!1}}},{key:"eatDecimalLiteralSuffix",value:function(){var e=this.source.charAt(this.index);if("."===e){if(this.index++,this.index===this.source.length)return;for(e=this.source.charAt(this.index);e>="0"&&e<="9";){if(this.index++,this.index===this.source.length)return;e=this.source.charAt(this.index)}}if("e"===e||"E"===e){if(this.index++,this.index===this.source.length)throw this.createILLEGAL();if("+"===(e=this.source.charAt(this.index))||"-"===e){if(this.index++,this.index===this.source.length)throw this.createILLEGAL();e=this.source.charAt(this.index)}if(!(e>="0"&&e<="9"))throw this.createILLEGAL();for(;e>="0"&&e<="9"&&(this.index++,this.index!==this.source.length);)e=this.source.charAt(this.index)}}},{key:"scanStringEscape",value:function(e,t){if(this.index++,this.index===this.source.length)throw this.createILLEGAL();var n=this.source.charAt(this.index);if((0,o.isLineTerminator)(n.charCodeAt(0)))this.index++,"\r"===n&&"\n"===this.source.charAt(this.index)&&this.index++,this.lineStart=this.index,this.line++;else switch(n){case"n":e+="\n",this.index++;break;case"r":e+="\r",this.index++;break;case"t":e+="\t",this.index++;break;case"u":case"x":var r;if(this.index++,this.index>=this.source.length)throw this.createILLEGAL();if((r="u"===n?this.scanUnicode():this.scanHexEscape2())<0)throw this.createILLEGAL();e+=v(r);break;case"b":e+="\b",this.index++;break;case"f":e+="\f",this.index++;break;case"v":e+="\v",this.index++;break;default:if(n>="0"&&n<="7"){var i=this.index,a=1;n>="0"&&n<="3"&&(a=0);for(var s=0;a<3&&n>="0"&&n<="7";){if(this.index++,(a>0||"0"!==n)&&(t=this.source.slice(i,this.index)),s*=8,s+=n-"0",a++,this.index===this.source.length)throw this.createILLEGAL();n=this.source.charAt(this.index)}0!==s||1!==a||"8"!==n&&"9"!==n||(t=this.source.slice(i,this.index+1)),e+=String.fromCharCode(s)}else{if("8"===n||"9"===n)throw this.createILLEGAL();e+=n,this.index++}}return[e,t]}},{key:"scanStringLiteral",value:function(){var e="",t=this.source.charAt(this.index),n=this.getLocation(),i=this.index;this.index++;for(var a=null;this.index=this.source.length)return{type:c.EOS,slice:this.getSlice(this.index,e)};var t=this.source.charCodeAt(this.index);if(t<128){if(p[t])return this.scanPunctuator();if((0,o.isIdentifierStart)(t)||92===t)return this.scanIdentifier();if(46===t)return this.index+1=48&&t<=57)return this.scanNumericLiteral();throw this.createILLEGAL()}if((0,o.isIdentifierStart)(t)||t>=55296&&t<=56319)return this.scanIdentifier();throw this.createILLEGAL()}},{key:"eof",value:function(){return this.lookahead.type===c.EOS}},{key:"lex",value:function(){var e=this.lookahead;return this.lookahead=this.advance(),this.tokenIndex++,e}}],[{key:"cse2",value:function(e,t,n){return e.charAt(1)===t&&e.charAt(2)===n}},{key:"cse3",value:function(e,t,n,r){return e.charAt(1)===t&&e.charAt(2)===n&&e.charAt(3)===r}},{key:"cse4",value:function(e,t,n,r,i){return e.charAt(1)===t&&e.charAt(2)===n&&e.charAt(3)===r&&e.charAt(4)===i}},{key:"cse5",value:function(e,t,n,r,i,o){return e.charAt(1)===t&&e.charAt(2)===n&&e.charAt(3)===r&&e.charAt(4)===i&&e.charAt(5)===o}},{key:"cse6",value:function(e,t,n,r,i,o,a){return e.charAt(1)===t&&e.charAt(2)===n&&e.charAt(3)===r&&e.charAt(4)===i&&e.charAt(5)===o&&e.charAt(6)===a}},{key:"cse7",value:function(e,t,n,r,i,o,a,s){return e.charAt(1)===t&&e.charAt(2)===n&&e.charAt(3)===r&&e.charAt(4)===i&&e.charAt(5)===o&&e.charAt(6)===a&&e.charAt(7)===s}}]),e}();t.default=y},8194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.whitespaceArray=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],t.whitespaceBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],t.idStartLargeRegex=/^[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]$/,t.idStartBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1],t.idContinueLargeRegex=/^[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]$/,t.idContinueBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1]},1509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStrictModeReservedWord=function(e){return-1!==i.indexOf(e)},t.isWhiteSpace=function(e){return e<128?r.whitespaceBool[e]:160===e||e>5759&&-1!==r.whitespaceArray.indexOf(e)},t.isLineTerminator=function(e){return 10===e||13===e||8232===e||8233===e},t.isIdentifierStart=function(e){return e<128?r.idStartBool[e]:r.idStartLargeRegex.test(String.fromCodePoint(e))},t.isIdentifierPart=function(e){return e<128?r.idContinueBool[e]:r.idContinueLargeRegex.test(String.fromCodePoint(e))},t.isDecimalDigit=function(e){return e>=48&&e<=57},t.getHexValue=function(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="f")return e.charCodeAt(0)-87;if(e>="A"&&e<="F")return e.charCodeAt(0)-55;return-1};var r=n(8194),i=["null","true","false","implements","interface","package","private","protected","public","static","let","if","in","do","var","for","new","try","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"]},614:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});t.ArrayAssignmentTarget=function e(t){var r=t.elements,i=t.rest;n(this,e),this.type="ArrayAssignmentTarget",this.elements=r,this.rest=i},t.ArrayBinding=function e(t){var r=t.elements,i=t.rest;n(this,e),this.type="ArrayBinding",this.elements=r,this.rest=i},t.ArrayExpression=function e(t){var r=t.elements;n(this,e),this.type="ArrayExpression",this.elements=r},t.ArrowExpression=function e(t){var r=t.isAsync,i=t.params,o=t.body;n(this,e),this.type="ArrowExpression",this.isAsync=r,this.params=i,this.body=o},t.AssignmentExpression=function e(t){var r=t.binding,i=t.expression;n(this,e),this.type="AssignmentExpression",this.binding=r,this.expression=i},t.AssignmentTargetIdentifier=function e(t){var r=t.name;n(this,e),this.type="AssignmentTargetIdentifier",this.name=r},t.AssignmentTargetPropertyIdentifier=function e(t){var r=t.binding,i=t.init;n(this,e),this.type="AssignmentTargetPropertyIdentifier",this.binding=r,this.init=i},t.AssignmentTargetPropertyProperty=function e(t){var r=t.name,i=t.binding;n(this,e),this.type="AssignmentTargetPropertyProperty",this.name=r,this.binding=i},t.AssignmentTargetWithDefault=function e(t){var r=t.binding,i=t.init;n(this,e),this.type="AssignmentTargetWithDefault",this.binding=r,this.init=i},t.AwaitExpression=function e(t){var r=t.expression;n(this,e),this.type="AwaitExpression",this.expression=r},t.BinaryExpression=function e(t){var r=t.left,i=t.operator,o=t.right;n(this,e),this.type="BinaryExpression",this.left=r,this.operator=i,this.right=o},t.BindingIdentifier=function e(t){var r=t.name;n(this,e),this.type="BindingIdentifier",this.name=r},t.BindingPropertyIdentifier=function e(t){var r=t.binding,i=t.init;n(this,e),this.type="BindingPropertyIdentifier",this.binding=r,this.init=i},t.BindingPropertyProperty=function e(t){var r=t.name,i=t.binding;n(this,e),this.type="BindingPropertyProperty",this.name=r,this.binding=i},t.BindingWithDefault=function e(t){var r=t.binding,i=t.init;n(this,e),this.type="BindingWithDefault",this.binding=r,this.init=i},t.Block=function e(t){var r=t.statements;n(this,e),this.type="Block",this.statements=r},t.BlockStatement=function e(t){var r=t.block;n(this,e),this.type="BlockStatement",this.block=r},t.BreakStatement=function e(t){var r=t.label;n(this,e),this.type="BreakStatement",this.label=r},t.CallExpression=function e(t){var r=t.callee,i=t.arguments;n(this,e),this.type="CallExpression",this.callee=r,this.arguments=i},t.CatchClause=function e(t){var r=t.binding,i=t.body;n(this,e),this.type="CatchClause",this.binding=r,this.body=i},t.ClassDeclaration=function e(t){var r=t.name,i=t.super,o=t.elements;n(this,e),this.type="ClassDeclaration",this.name=r,this.super=i,this.elements=o},t.ClassElement=function e(t){var r=t.isStatic,i=t.method;n(this,e),this.type="ClassElement",this.isStatic=r,this.method=i},t.ClassExpression=function e(t){var r=t.name,i=t.super,o=t.elements;n(this,e),this.type="ClassExpression",this.name=r,this.super=i,this.elements=o},t.CompoundAssignmentExpression=function e(t){var r=t.binding,i=t.operator,o=t.expression;n(this,e),this.type="CompoundAssignmentExpression",this.binding=r,this.operator=i,this.expression=o},t.ComputedMemberAssignmentTarget=function e(t){var r=t.object,i=t.expression;n(this,e),this.type="ComputedMemberAssignmentTarget",this.object=r,this.expression=i},t.ComputedMemberExpression=function e(t){var r=t.object,i=t.expression;n(this,e),this.type="ComputedMemberExpression",this.object=r,this.expression=i},t.ComputedPropertyName=function e(t){var r=t.expression;n(this,e),this.type="ComputedPropertyName",this.expression=r},t.ConditionalExpression=function e(t){var r=t.test,i=t.consequent,o=t.alternate;n(this,e),this.type="ConditionalExpression",this.test=r,this.consequent=i,this.alternate=o},t.ContinueStatement=function e(t){var r=t.label;n(this,e),this.type="ContinueStatement",this.label=r},t.DataProperty=function e(t){var r=t.name,i=t.expression;n(this,e),this.type="DataProperty",this.name=r,this.expression=i},t.DebuggerStatement=function e(){n(this,e),this.type="DebuggerStatement"},t.Directive=function e(t){var r=t.rawValue;n(this,e),this.type="Directive",this.rawValue=r},t.DoWhileStatement=function e(t){var r=t.body,i=t.test;n(this,e),this.type="DoWhileStatement",this.body=r,this.test=i},t.EmptyStatement=function e(){n(this,e),this.type="EmptyStatement"},t.Export=function e(t){var r=t.declaration;n(this,e),this.type="Export",this.declaration=r},t.ExportAllFrom=function e(t){var r=t.moduleSpecifier;n(this,e),this.type="ExportAllFrom",this.moduleSpecifier=r},t.ExportDefault=function e(t){var r=t.body;n(this,e),this.type="ExportDefault",this.body=r},t.ExportFrom=function e(t){var r=t.namedExports,i=t.moduleSpecifier;n(this,e),this.type="ExportFrom",this.namedExports=r,this.moduleSpecifier=i},t.ExportFromSpecifier=function e(t){var r=t.name,i=t.exportedName;n(this,e),this.type="ExportFromSpecifier",this.name=r,this.exportedName=i},t.ExportLocalSpecifier=function e(t){var r=t.name,i=t.exportedName;n(this,e),this.type="ExportLocalSpecifier",this.name=r,this.exportedName=i},t.ExportLocals=function e(t){var r=t.namedExports;n(this,e),this.type="ExportLocals",this.namedExports=r},t.ExpressionStatement=function e(t){var r=t.expression;n(this,e),this.type="ExpressionStatement",this.expression=r},t.ForAwaitStatement=function e(t){var r=t.left,i=t.right,o=t.body;n(this,e),this.type="ForAwaitStatement",this.left=r,this.right=i,this.body=o},t.ForInStatement=function e(t){var r=t.left,i=t.right,o=t.body;n(this,e),this.type="ForInStatement",this.left=r,this.right=i,this.body=o},t.ForOfStatement=function e(t){var r=t.left,i=t.right,o=t.body;n(this,e),this.type="ForOfStatement",this.left=r,this.right=i,this.body=o},t.ForStatement=function e(t){var r=t.init,i=t.test,o=t.update,a=t.body;n(this,e),this.type="ForStatement",this.init=r,this.test=i,this.update=o,this.body=a},t.FormalParameters=function e(t){var r=t.items,i=t.rest;n(this,e),this.type="FormalParameters",this.items=r,this.rest=i},t.FunctionBody=function e(t){var r=t.directives,i=t.statements;n(this,e),this.type="FunctionBody",this.directives=r,this.statements=i},t.FunctionDeclaration=function e(t){var r=t.isAsync,i=t.isGenerator,o=t.name,a=t.params,s=t.body;n(this,e),this.type="FunctionDeclaration",this.isAsync=r,this.isGenerator=i,this.name=o,this.params=a,this.body=s},t.FunctionExpression=function e(t){var r=t.isAsync,i=t.isGenerator,o=t.name,a=t.params,s=t.body;n(this,e),this.type="FunctionExpression",this.isAsync=r,this.isGenerator=i,this.name=o,this.params=a,this.body=s},t.Getter=function e(t){var r=t.name,i=t.body;n(this,e),this.type="Getter",this.name=r,this.body=i},t.IdentifierExpression=function e(t){var r=t.name;n(this,e),this.type="IdentifierExpression",this.name=r},t.IfStatement=function e(t){var r=t.test,i=t.consequent,o=t.alternate;n(this,e),this.type="IfStatement",this.test=r,this.consequent=i,this.alternate=o},t.Import=function e(t){var r=t.defaultBinding,i=t.namedImports,o=t.moduleSpecifier;n(this,e),this.type="Import",this.defaultBinding=r,this.namedImports=i,this.moduleSpecifier=o},t.ImportNamespace=function e(t){var r=t.defaultBinding,i=t.namespaceBinding,o=t.moduleSpecifier;n(this,e),this.type="ImportNamespace",this.defaultBinding=r,this.namespaceBinding=i,this.moduleSpecifier=o},t.ImportSpecifier=function e(t){var r=t.name,i=t.binding;n(this,e),this.type="ImportSpecifier",this.name=r,this.binding=i},t.LabeledStatement=function e(t){var r=t.label,i=t.body;n(this,e),this.type="LabeledStatement",this.label=r,this.body=i},t.LiteralBooleanExpression=function e(t){var r=t.value;n(this,e),this.type="LiteralBooleanExpression",this.value=r},t.LiteralInfinityExpression=function e(){n(this,e),this.type="LiteralInfinityExpression"},t.LiteralNullExpression=function e(){n(this,e),this.type="LiteralNullExpression"},t.LiteralNumericExpression=function e(t){var r=t.value;n(this,e),this.type="LiteralNumericExpression",this.value=r},t.LiteralRegExpExpression=function e(t){var r=t.pattern,i=t.global,o=t.ignoreCase,a=t.multiLine,s=t.dotAll,u=t.unicode,c=t.sticky;n(this,e),this.type="LiteralRegExpExpression",this.pattern=r,this.global=i,this.ignoreCase=o,this.multiLine=a,this.dotAll=s,this.unicode=u,this.sticky=c},t.LiteralStringExpression=function e(t){var r=t.value;n(this,e),this.type="LiteralStringExpression",this.value=r},t.Method=function e(t){var r=t.isAsync,i=t.isGenerator,o=t.name,a=t.params,s=t.body;n(this,e),this.type="Method",this.isAsync=r,this.isGenerator=i,this.name=o,this.params=a,this.body=s},t.Module=function e(t){var r=t.directives,i=t.items;n(this,e),this.type="Module",this.directives=r,this.items=i},t.NewExpression=function e(t){var r=t.callee,i=t.arguments;n(this,e),this.type="NewExpression",this.callee=r,this.arguments=i},t.NewTargetExpression=function e(){n(this,e),this.type="NewTargetExpression"},t.ObjectAssignmentTarget=function e(t){var r=t.properties,i=t.rest;n(this,e),this.type="ObjectAssignmentTarget",this.properties=r,this.rest=i},t.ObjectBinding=function e(t){var r=t.properties,i=t.rest;n(this,e),this.type="ObjectBinding",this.properties=r,this.rest=i},t.ObjectExpression=function e(t){var r=t.properties;n(this,e),this.type="ObjectExpression",this.properties=r},t.ReturnStatement=function e(t){var r=t.expression;n(this,e),this.type="ReturnStatement",this.expression=r},t.Script=function e(t){var r=t.directives,i=t.statements;n(this,e),this.type="Script",this.directives=r,this.statements=i},t.Setter=function e(t){var r=t.name,i=t.param,o=t.body;n(this,e),this.type="Setter",this.name=r,this.param=i,this.body=o},t.ShorthandProperty=function e(t){var r=t.name;n(this,e),this.type="ShorthandProperty",this.name=r},t.SpreadElement=function e(t){var r=t.expression;n(this,e),this.type="SpreadElement",this.expression=r},t.SpreadProperty=function e(t){var r=t.expression;n(this,e),this.type="SpreadProperty",this.expression=r},t.StaticMemberAssignmentTarget=function e(t){var r=t.object,i=t.property;n(this,e),this.type="StaticMemberAssignmentTarget",this.object=r,this.property=i},t.StaticMemberExpression=function e(t){var r=t.object,i=t.property;n(this,e),this.type="StaticMemberExpression",this.object=r,this.property=i},t.StaticPropertyName=function e(t){var r=t.value;n(this,e),this.type="StaticPropertyName",this.value=r},t.Super=function e(){n(this,e),this.type="Super"},t.SwitchCase=function e(t){var r=t.test,i=t.consequent;n(this,e),this.type="SwitchCase",this.test=r,this.consequent=i},t.SwitchDefault=function e(t){var r=t.consequent;n(this,e),this.type="SwitchDefault",this.consequent=r},t.SwitchStatement=function e(t){var r=t.discriminant,i=t.cases;n(this,e),this.type="SwitchStatement",this.discriminant=r,this.cases=i},t.SwitchStatementWithDefault=function e(t){var r=t.discriminant,i=t.preDefaultCases,o=t.defaultCase,a=t.postDefaultCases;n(this,e),this.type="SwitchStatementWithDefault",this.discriminant=r,this.preDefaultCases=i,this.defaultCase=o,this.postDefaultCases=a},t.TemplateElement=function e(t){var r=t.rawValue;n(this,e),this.type="TemplateElement",this.rawValue=r},t.TemplateExpression=function e(t){var r=t.tag,i=t.elements;n(this,e),this.type="TemplateExpression",this.tag=r,this.elements=i},t.ThisExpression=function e(){n(this,e),this.type="ThisExpression"},t.ThrowStatement=function e(t){var r=t.expression;n(this,e),this.type="ThrowStatement",this.expression=r},t.TryCatchStatement=function e(t){var r=t.body,i=t.catchClause;n(this,e),this.type="TryCatchStatement",this.body=r,this.catchClause=i},t.TryFinallyStatement=function e(t){var r=t.body,i=t.catchClause,o=t.finalizer;n(this,e),this.type="TryFinallyStatement",this.body=r,this.catchClause=i,this.finalizer=o},t.UnaryExpression=function e(t){var r=t.operator,i=t.operand;n(this,e),this.type="UnaryExpression",this.operator=r,this.operand=i},t.UpdateExpression=function e(t){var r=t.isPrefix,i=t.operator,o=t.operand;n(this,e),this.type="UpdateExpression",this.isPrefix=r,this.operator=i,this.operand=o},t.VariableDeclaration=function e(t){var r=t.kind,i=t.declarators;n(this,e),this.type="VariableDeclaration",this.kind=r,this.declarators=i},t.VariableDeclarationStatement=function e(t){var r=t.declaration;n(this,e),this.type="VariableDeclarationStatement",this.declaration=r},t.VariableDeclarator=function e(t){var r=t.binding,i=t.init;n(this,e),this.type="VariableDeclarator",this.binding=r,this.init=i},t.WhileStatement=function e(t){var r=t.test,i=t.body;n(this,e),this.type="WhileStatement",this.test=r,this.body=i},t.WithStatement=function e(t){var r=t.object,i=t.body;n(this,e),this.type="WithStatement",this.object=r,this.body=i},t.YieldExpression=function e(t){var r=t.expression;n(this,e),this.type="YieldExpression",this.expression=r},t.YieldGeneratorExpression=function e(t){var r=t.expression;n(this,e),this.type="YieldGeneratorExpression",this.expression=r}},8175:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0};!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(n(5331));t.default=function(e,t){var n;return n={__proto__:t,reduceArrayAssignmentTarget:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceArrayAssignmentTarget",this).call(this,t,i),t)},reduceArrayBinding:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceArrayBinding",this).call(this,t,i),t)},reduceArrayExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceArrayExpression",this).call(this,t,i),t)},reduceArrowExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceArrowExpression",this).call(this,t,i),t)},reduceAssignmentExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceAssignmentExpression",this).call(this,t,i),t)},reduceAssignmentTargetIdentifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceAssignmentTargetIdentifier",this).call(this,t,i),t)},reduceAssignmentTargetPropertyIdentifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceAssignmentTargetPropertyIdentifier",this).call(this,t,i),t)},reduceAssignmentTargetPropertyProperty:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceAssignmentTargetPropertyProperty",this).call(this,t,i),t)},reduceAssignmentTargetWithDefault:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceAssignmentTargetWithDefault",this).call(this,t,i),t)},reduceAwaitExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceAwaitExpression",this).call(this,t,i),t)},reduceBinaryExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBinaryExpression",this).call(this,t,i),t)},reduceBindingIdentifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBindingIdentifier",this).call(this,t,i),t)},reduceBindingPropertyIdentifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBindingPropertyIdentifier",this).call(this,t,i),t)},reduceBindingPropertyProperty:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBindingPropertyProperty",this).call(this,t,i),t)},reduceBindingWithDefault:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBindingWithDefault",this).call(this,t,i),t)},reduceBlock:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBlock",this).call(this,t,i),t)},reduceBlockStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBlockStatement",this).call(this,t,i),t)},reduceBreakStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceBreakStatement",this).call(this,t,i),t)},reduceCallExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceCallExpression",this).call(this,t,i),t)},reduceCatchClause:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceCatchClause",this).call(this,t,i),t)},reduceClassDeclaration:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceClassDeclaration",this).call(this,t,i),t)},reduceClassElement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceClassElement",this).call(this,t,i),t)},reduceClassExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceClassExpression",this).call(this,t,i),t)},reduceCompoundAssignmentExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceCompoundAssignmentExpression",this).call(this,t,i),t)},reduceComputedMemberAssignmentTarget:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceComputedMemberAssignmentTarget",this).call(this,t,i),t)},reduceComputedMemberExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceComputedMemberExpression",this).call(this,t,i),t)},reduceComputedPropertyName:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceComputedPropertyName",this).call(this,t,i),t)},reduceConditionalExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceConditionalExpression",this).call(this,t,i),t)},reduceContinueStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceContinueStatement",this).call(this,t,i),t)},reduceDataProperty:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceDataProperty",this).call(this,t,i),t)},reduceDebuggerStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceDebuggerStatement",this).call(this,t,i),t)},reduceDirective:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceDirective",this).call(this,t,i),t)},reduceDoWhileStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceDoWhileStatement",this).call(this,t,i),t)},reduceEmptyStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceEmptyStatement",this).call(this,t,i),t)},reduceExport:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExport",this).call(this,t,i),t)},reduceExportAllFrom:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExportAllFrom",this).call(this,t,i),t)},reduceExportDefault:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExportDefault",this).call(this,t,i),t)},reduceExportFrom:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExportFrom",this).call(this,t,i),t)},reduceExportFromSpecifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExportFromSpecifier",this).call(this,t,i),t)},reduceExportLocalSpecifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExportLocalSpecifier",this).call(this,t,i),t)},reduceExportLocals:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExportLocals",this).call(this,t,i),t)},reduceExpressionStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceExpressionStatement",this).call(this,t,i),t)},reduceForAwaitStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceForAwaitStatement",this).call(this,t,i),t)},reduceForInStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceForInStatement",this).call(this,t,i),t)},reduceForOfStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceForOfStatement",this).call(this,t,i),t)},reduceForStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceForStatement",this).call(this,t,i),t)},reduceFormalParameters:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceFormalParameters",this).call(this,t,i),t)},reduceFunctionBody:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceFunctionBody",this).call(this,t,i),t)},reduceFunctionDeclaration:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceFunctionDeclaration",this).call(this,t,i),t)},reduceFunctionExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceFunctionExpression",this).call(this,t,i),t)},reduceGetter:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceGetter",this).call(this,t,i),t)},reduceIdentifierExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceIdentifierExpression",this).call(this,t,i),t)},reduceIfStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceIfStatement",this).call(this,t,i),t)},reduceImport:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceImport",this).call(this,t,i),t)},reduceImportNamespace:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceImportNamespace",this).call(this,t,i),t)},reduceImportSpecifier:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceImportSpecifier",this).call(this,t,i),t)},reduceLabeledStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLabeledStatement",this).call(this,t,i),t)},reduceLiteralBooleanExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLiteralBooleanExpression",this).call(this,t,i),t)},reduceLiteralInfinityExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLiteralInfinityExpression",this).call(this,t,i),t)},reduceLiteralNullExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLiteralNullExpression",this).call(this,t,i),t)},reduceLiteralNumericExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLiteralNumericExpression",this).call(this,t,i),t)},reduceLiteralRegExpExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLiteralRegExpExpression",this).call(this,t,i),t)},reduceLiteralStringExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceLiteralStringExpression",this).call(this,t,i),t)},reduceMethod:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceMethod",this).call(this,t,i),t)},reduceModule:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceModule",this).call(this,t,i),t)},reduceNewExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceNewExpression",this).call(this,t,i),t)},reduceNewTargetExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceNewTargetExpression",this).call(this,t,i),t)},reduceObjectAssignmentTarget:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceObjectAssignmentTarget",this).call(this,t,i),t)},reduceObjectBinding:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceObjectBinding",this).call(this,t,i),t)},reduceObjectExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceObjectExpression",this).call(this,t,i),t)},reduceReturnStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceReturnStatement",this).call(this,t,i),t)},reduceScript:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceScript",this).call(this,t,i),t)},reduceSetter:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSetter",this).call(this,t,i),t)},reduceShorthandProperty:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceShorthandProperty",this).call(this,t,i),t)},reduceSpreadElement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSpreadElement",this).call(this,t,i),t)},reduceSpreadProperty:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSpreadProperty",this).call(this,t,i),t)},reduceStaticMemberAssignmentTarget:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceStaticMemberAssignmentTarget",this).call(this,t,i),t)},reduceStaticMemberExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceStaticMemberExpression",this).call(this,t,i),t)},reduceStaticPropertyName:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceStaticPropertyName",this).call(this,t,i),t)},reduceSuper:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSuper",this).call(this,t,i),t)},reduceSwitchCase:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSwitchCase",this).call(this,t,i),t)},reduceSwitchDefault:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSwitchDefault",this).call(this,t,i),t)},reduceSwitchStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSwitchStatement",this).call(this,t,i),t)},reduceSwitchStatementWithDefault:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceSwitchStatementWithDefault",this).call(this,t,i),t)},reduceTemplateElement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceTemplateElement",this).call(this,t,i),t)},reduceTemplateExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceTemplateExpression",this).call(this,t,i),t)},reduceThisExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceThisExpression",this).call(this,t,i),t)},reduceThrowStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceThrowStatement",this).call(this,t,i),t)},reduceTryCatchStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceTryCatchStatement",this).call(this,t,i),t)},reduceTryFinallyStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceTryFinallyStatement",this).call(this,t,i),t)},reduceUnaryExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceUnaryExpression",this).call(this,t,i),t)},reduceUpdateExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceUpdateExpression",this).call(this,t,i),t)},reduceVariableDeclaration:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceVariableDeclaration",this).call(this,t,i),t)},reduceVariableDeclarationStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceVariableDeclarationStatement",this).call(this,t,i),t)},reduceVariableDeclarator:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceVariableDeclarator",this).call(this,t,i),t)},reduceWhileStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceWhileStatement",this).call(this,t,i),t)},reduceWithStatement:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceWithStatement",this).call(this,t,i),t)},reduceYieldExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceYieldExpression",this).call(this,t,i),t)},reduceYieldGeneratorExpression:function(t,i){return e(r(n.__proto__||Object.getPrototypeOf(n),"reduceYieldGeneratorExpression",this).call(this,t,i),t)}}}},3894:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=this.pattern.length}},{key:"backreference",value:function(e){e>this.largestBackreference&&(this.largestBackreference=e)}},{key:"nextCodePoint",value:function(){return this.empty()?null:this.unicode?String.fromCodePoint(this.pattern.codePointAt(this.index)):this.pattern.charAt(this.index)}},{key:"skipCodePoint",value:function(){this.index+=this.nextCodePoint().length}},{key:"eat",value:function(e){return!(this.index+e.length>this.pattern.length||this.pattern.slice(this.index,this.index+e.length)!==e)&&(this.index+=e.length,!0)}},{key:"eatIdentifierCodePoint",value:function(){var e=void 0,t=this.index,n=void 0;if(this.match("\\u")){if(this.skipCodePoint(),!(e=O(this)).matched)return this.index=t,null;e=e.value,n=String.fromCodePoint(e)}else{if(null==(n=this.nextCodePoint()))return this.index=t,null;this.index+=n.length,e=n.codePointAt(0)}return{character:n,characterValue:e}}},{key:"eatIdentifierStart",value:function(){var e,t=this.index,n=this.eatIdentifierCodePoint();return null===n?(this.index=t,null):"_"===n.character||"$"===n.character||((e=n.characterValue)<128?u.idStartBool[e]:u.idStartLargeRegex.test(String.fromCodePoint(e)))?n.character:(this.index=t,null)}},{key:"eatIdentifierPart",value:function(){var e,t=this.index,n=this.eatIdentifierCodePoint();return null===n?(this.index=t,null):"\u200c"===n.character||"\u200d"===n.character||"$"===n.character||((e=n.characterValue)<128?u.idContinueBool[e]:u.idContinueLargeRegex.test(String.fromCodePoint(e)))?n.character:(this.index=t,null)}},{key:"eatAny",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.unicode,r=void 0!==n&&n,i=new b(e,r),o=k(i);if(o.matched){if(i.unicode&&i.largestBackreference>i.capturingGroups)return!1;if(i.groupingNames.length>0||i.unicode){var a=!0,s=!1,u=void 0;try{for(var c,l=i.backreferenceNames[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;if(-1===i.groupingNames.indexOf(f))return!1}}catch(h){s=!0,u=h}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}}return o.matched};var D=function(e){return function(t){var n=t.index,r=t.largestBackreference,i=t.capturingGroups,o=e(t);return o.matched||(t.index=n,t.largestBackreference=r,t.capturingGroups=i),o}},O=D((function(e){if(!e.eat("u"))return{matched:!1};if(e.unicode&&e.eat("{")){for(var t=[];!e.eat("}");){var n=e.eatAny.apply(e,l(y));if(null===n)return{matched:!1};t.push(n)}var r=parseInt(t.join(""),16);return r>1114111?{matched:!1}:{matched:!0,value:r}}var i=[0,0,0,0].map((function(){return e.eatAny.apply(e,l(y))}));if(i.some((function(e){return null===e})))return{matched:!1};var o=parseInt(i.join(""),16);if(e.unicode&&o>=55296&&o<=56319){var a=D((function(e){if(!e.eat("\\u"))return{matched:!1};var t=[0,0,0,0].map((function(){return e.eatAny.apply(e,l(y))}));if(t.some((function(e){return null===e})))return{matched:!1};var n=parseInt(t.join(""),16);return n<56320||n>=57344?{matched:!1}:{matched:!0,value:65536+((1023&o)<<10)+(1023&n)}}))(e);if(a.matched)return a}return{matched:!0,value:o}})),k=function(e,t){do{if(void 0!==t&&e.eat(t))return{matched:!0};if(!e.match("|")&&!A(e,t).matched)return{matched:!1}}while(e.eat("|"));return{matched:void 0===t||!!e.eat(t)}},A=function(e,t){for(;!e.match("|")&&!e.empty()&&(void 0===t||!e.match(t));)if(!x(e).matched)return{matched:!1};return{matched:!0}},w=function(){for(var e=arguments.length,t=Array(e),n=0;nparseInt(n))return{matched:!1}}return e.eat("}")?(e.eat("?"),{matched:!0}):{matched:!1}}))(t);return n.matched?n:{matched:!t.unicode}}return t.eatAny("*","+","?")&&t.eat("?"),{matched:!0}}))},B=function(e){return function(t){var n=t.nextCodePoint();return null===n||-1!==e.indexOf(n)?{matched:!1}:(t.skipCodePoint(),{matched:!0})}},P=B(h),M=B(d),R=function(e){if(e.unicode)return w(P,(function(e){return{matched:!!e.eat(".")}}),D((function(e){return e.eat("\\")?z(e):{matched:!1}})),U,C((function(e){return e.eat("?:")})),I)(e);var t=w((function(e){return{matched:!!e.eat(".")}}),D((function(e){return e.eat("\\")?z(e):{matched:!1}})),D((function(e){return{matched:e.eat("\\")&&e.match("c")}})),U,C((function(e){return e.eat("?:")})),I)(e);return!t.matched&&function(e){return D((function(e){return{matched:!(!e.eat("{")||!F(e).matched||e.eat(",")&&!e.match("}")&&!F(e).matched||!e.eat("}"))}}))(e)}(e).matched?{matched:!1}:t.matched?t:M(e)},I=D((function(e){if(!e.eat("("))return{matched:!1};var t=D((function(t){return e.eat("?")?$(t):{matched:!1}}))(e);if(!k(e,")").matched)return{matched:!1};if(t.matched){if(-1!==e.groupingNames.indexOf(t.data))return{matched:!1};e.groupingNames.push(t.data)}return e.capturingGroups++,{matched:!0}})),N=D((function(e){var t=e.eatAny.apply(e,l(g));return null===t?{matched:!1}:("0"===t||e.backreference(parseInt(t+(e.eatNaturalNumber()||""))),{matched:!0})})),L=function(e){return e.eatAny("d","D","s","S","w","W")?{matched:!0}:e.unicode?D((function(e){return(e.eat("p{")||e.eat("P{"))&&G(e).matched?{matched:!!e.eat("}")}:{matched:!1}}))(e):{matched:!1}},j=function(e){for(var t=[],n=void 0;n=e.eatAny.apply(e,l(v).concat(l(g),["_"]));)t.push(n);return{matched:t.length>0,data:t.join("")}},Z=["General_Category","Script","Script_Extensions","scx","sc","gc"],Q=o.default.get("General_Category"),W=function(e){var t=j(e);return!t.matched||Z.includes(t.data)?{matched:!1}:{matched:f((function(){return(0,a.default)(t.data)}))||null!=Q.get(t.data)}},G=function(e){return w(D((function(e){var t=function(e){for(var t=[],n=void 0;n=e.eatAny.apply(e,l(v).concat(["_"]));)t.push(n);return{matched:t.length>0,data:t.join("")}}(e);if(!t.matched||!e.eat("="))return{matched:!1};var n=j(e);return n.matched?{matched:f((function(){return(0,i.default)(s.default.get(t.data)||t.data,n.data)}))}:{matched:!1}})),D(W))(e)},V=w((function(e){var t=e.eatAny.apply(e,l(p));return null===t?{matched:!1}:{matched:!0,value:m[t]}}),D((function(e){if(!e.eat("c"))return{matched:!1};var t=e.eatAny.apply(e,l(v));return null===t?{matched:!1}:{matched:!0,value:t.charCodeAt(0)%32}})),D((function(e){return!e.eat("0")||e.eatAny.apply(e,l(g))?{matched:!1}:{matched:!0,value:0}})),D((function(e){if(!e.eat("x"))return{matched:!1};var t=[0,0].map((function(){return e.eatAny.apply(e,l(y))}));return t.some((function(e){return null===e}))?{matched:!1}:{matched:!0,value:parseInt(t.join(""),16)}})),O,D((function(e){if(e.unicode)return{matched:!1};var t=e.eatAny.apply(e,l(_));if(null===t)return{matched:!1};var n=parseInt(t,8);if(-1===_.indexOf(e.nextCodePoint()))return{matched:!0,value:n};var r=e.eatAny.apply(e,l(_)),i=parseInt(r,8);if(n<4){if(-1===_.indexOf(e.nextCodePoint()))return{matched:!0,value:n<<3|i};var o=e.eatAny.apply(e,l(_));return{matched:!0,value:n<<6|i<<3|parseInt(o,8)}}return{matched:!0,value:n<<3|i}})),D((function(e){if(!e.unicode)return{matched:!1};var t=e.eatAny.apply(e,l(h));return null===t?{matched:!1}:{matched:!0,value:t.charCodeAt(0)}})),(function(e){return e.unicode&&e.eat("/")?{matched:!0,value:"/".charCodeAt(0)}:{matched:!1}}),D((function(e){if(e.unicode)return{matched:!1};var t=e.nextCodePoint();return null!==t&&"c"!==t&&"k"!==t?(e.skipCodePoint(),{matched:!0,value:t.codePointAt(0)}):{matched:!1}}))),H=D((function(e){if(!e.eat("k"))return{matched:!1};var t=$(e);return t.matched?(e.backreferenceNames.push(t.data),{matched:!0}):(e.backreferenceNames.push(E),{matched:!0})})),$=D((function(e){if(!e.eat("<"))return{matched:!1};var t=[],n=e.eatIdentifierStart();if(!n)return{matched:!1};t.push(n);for(var r=void 0;r=e.eatIdentifierPart();)t.push(r);return e.eat(">")?{matched:t.length>0,data:t.join("")}:{matched:!1}})),z=w(N,L,V,H),U=D((function(e){if(!e.eat("["))return{matched:!1};e.eat("^");var t=w((function(e){return{matched:!!e.eat("b"),value:8}}),(function(e){return{matched:e.unicode&&!!e.eat("-"),value:"-".charCodeAt(0)}}),D((function(e){if(e.unicode||!e.eat("c"))return{matched:!1};var t=e.eatAny.apply(e,l(g).concat(["_"]));return null===t?{matched:!1}:{matched:!0,value:t.charCodeAt(0)%32}})),L,V,(function(e){return{matched:!e.unicode&&!!e.eat("k"),value:107}})),n=function(e){var n=e.nextCodePoint();if("]"===n||"-"===n||null===n)return{matched:!1};if("\\"!==n)return e.skipCodePoint(),{matched:!0,value:n.codePointAt(0)};e.eat("\\");var r=t(e);return r.matched||"c"!==e.nextCodePoint()||e.unicode?r:{matched:!0,value:"\\".charCodeAt(0)}},r=function(e){return e.eat("-")?{matched:!0,value:"-".charCodeAt(0)}:n(e)},i=function(e,t){var n=function(e){return void 0===e.value&&e.matched};if(e.eat("-")){if(e.match("]"))return{matched:!0};var i=r(e);return i.matched?e.unicode&&(n(t)||n(i))||(e.unicode||!n(t)&&!n(i))&&t.value>i.value?{matched:!1}:e.match("]")?{matched:!0}:o(e):{matched:!1}}return e.match("]")?{matched:!0}:a(e)},o=function(e){var t=r(e);return t.matched?i(e,t):{matched:!1}},a=function(e){var t=n(e);return t.matched?i(e,t):{matched:!1}};if(e.eat("]"))return{matched:!0};var s=o(e);return s.matched&&e.eat("]"),s}))},3542:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.whitespaceArray=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],t.whitespaceBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],t.idStartLargeRegex=/^[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]$/,t.idStartBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1],t.idContinueLargeRegex=/^[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]$/,t.idContinueBool=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1]},251:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e={},t={typeName:"Boolean"},n={typeName:"String"};function r(e){return{typeName:"Maybe",argument:e}}function i(e){return{typeName:"List",argument:e}}function o(e){return{typeName:"Const",argument:e}}function a(){return{typeName:"Union",arguments:[].slice.call(arguments,0)}}var s={typeName:"Enum",values:["ArrayAssignmentTarget","ArrayBinding","ArrayExpression","ArrowExpression","AssignmentExpression","AssignmentTargetIdentifier","AssignmentTargetPropertyIdentifier","AssignmentTargetPropertyProperty","AssignmentTargetWithDefault","AwaitExpression","BinaryExpression","BindingIdentifier","BindingPropertyIdentifier","BindingPropertyProperty","BindingWithDefault","Block","BlockStatement","BreakStatement","CallExpression","CatchClause","ClassDeclaration","ClassElement","ClassExpression","CompoundAssignmentExpression","ComputedMemberAssignmentTarget","ComputedMemberExpression","ComputedPropertyName","ConditionalExpression","ContinueStatement","DataProperty","DebuggerStatement","Directive","DoWhileStatement","EmptyStatement","Export","ExportAllFrom","ExportDefault","ExportFrom","ExportFromSpecifier","ExportLocalSpecifier","ExportLocals","ExpressionStatement","ForAwaitStatement","ForInStatement","ForOfStatement","ForStatement","FormalParameters","FunctionBody","FunctionDeclaration","FunctionExpression","Getter","IdentifierExpression","IfStatement","Import","ImportNamespace","ImportSpecifier","LabeledStatement","LiteralBooleanExpression","LiteralInfinityExpression","LiteralNullExpression","LiteralNumericExpression","LiteralRegExpExpression","LiteralStringExpression","Method","Module","NewExpression","NewTargetExpression","ObjectAssignmentTarget","ObjectBinding","ObjectExpression","ReturnStatement","Script","Setter","ShorthandProperty","SpreadElement","SpreadProperty","StaticMemberAssignmentTarget","StaticMemberExpression","StaticPropertyName","Super","SwitchCase","SwitchDefault","SwitchStatement","SwitchStatementWithDefault","TemplateElement","TemplateExpression","ThisExpression","ThrowStatement","TryCatchStatement","TryFinallyStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarationStatement","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","YieldGeneratorExpression"]},u=e.ArrayAssignmentTarget={},c=e.ArrayBinding={},l=e.ArrayExpression={},f=e.ArrowExpression={},h=e.AssignmentExpression={},d=e.AssignmentTargetIdentifier={},p=e.AssignmentTargetPropertyIdentifier={},m=e.AssignmentTargetPropertyProperty={},v=e.AssignmentTargetWithDefault={},y=e.AwaitExpression={},g=e.BinaryExpression={},_=e.BindingIdentifier={},E=e.BindingPropertyIdentifier={},b=e.BindingPropertyProperty={},D=e.BindingWithDefault={},O=e.Block={},k=e.BlockStatement={},A=e.BreakStatement={},w=e.CallExpression={},x=e.CatchClause={},C=e.ClassDeclaration={},S=e.ClassElement={},T=e.ClassExpression={},F=e.CompoundAssignmentExpression={},q=e.ComputedMemberAssignmentTarget={},B=e.ComputedMemberExpression={},P=e.ComputedPropertyName={},M=e.ConditionalExpression={},R=e.ContinueStatement={},I=e.DataProperty={},N=e.DebuggerStatement={},L=e.Directive={},j=e.DoWhileStatement={},Z=e.EmptyStatement={},Q=e.Export={},W=e.ExportAllFrom={},G=e.ExportDefault={},V=e.ExportFrom={},H=e.ExportFromSpecifier={},$=e.ExportLocalSpecifier={},z=e.ExportLocals={},U=e.ExpressionStatement={},Y=e.ForAwaitStatement={},X=e.ForInStatement={},K=e.ForOfStatement={},J=e.ForStatement={},ee=e.FormalParameters={},te=e.FunctionBody={},ne=e.FunctionDeclaration={},re=e.FunctionExpression={},ie=e.Getter={},oe=e.IdentifierExpression={},ae=e.IfStatement={},se=e.Import={},ue=e.ImportNamespace={},ce=e.ImportSpecifier={},le=e.LabeledStatement={},fe=e.LiteralBooleanExpression={},he=e.LiteralInfinityExpression={},de=e.LiteralNullExpression={},pe=e.LiteralNumericExpression={},me=e.LiteralRegExpExpression={},ve=e.LiteralStringExpression={},ye=e.Method={},ge=e.Module={},_e=e.NewExpression={},Ee=e.NewTargetExpression={},be=e.ObjectAssignmentTarget={},De=e.ObjectBinding={},Oe=e.ObjectExpression={},ke=e.ReturnStatement={},Ae=e.Script={},we=e.Setter={},xe=e.ShorthandProperty={},Ce=e.SpreadElement={},Se=e.SpreadProperty={},Te=e.StaticMemberAssignmentTarget={},Fe=e.StaticMemberExpression={},qe=e.StaticPropertyName={},Be=e.Super={},Pe=e.SwitchCase={},Me=e.SwitchDefault={},Re=e.SwitchStatement={},Ie=e.SwitchStatementWithDefault={},Ne=e.TemplateElement={},Le=e.TemplateExpression={},je=e.ThisExpression={},Ze=e.ThrowStatement={},Qe=e.TryCatchStatement={},We=e.TryFinallyStatement={},Ge=e.UnaryExpression={},Ve=e.UpdateExpression={},He=e.VariableDeclaration={},$e=e.VariableDeclarationStatement={},ze=e.VariableDeclarator={},Ue=e.WhileStatement={},Ye=e.WithStatement={},Xe=e.YieldExpression={},Ke=e.YieldGeneratorExpression={},Je=a(B,Fe),et=a(p,m),tt=(a(C,T),a(Q,W,G,V,z)),nt=a(P,qe),rt=(a(ne,re),a(se,ue)),it=a(j,Y,X,K,J,Ue),ot=a(q,Te),at=a(E,b),st=a(ie,ye,we),ut=a(ge,Ae),ct=a(d,_,oe),lt=a(I,st),ft=a(l,f,h,y,g,w,T,F,M,re,oe,fe,he,de,pe,me,ve,Je,_e,Ee,Oe,Le,je,Ge,Ve,Xe,Ke),ht=a(k,A,C,R,N,Z,U,ne,ae,it,le,ke,Re,Ie,Ze,Qe,We,$e,Ye),dt=a(lt,xe,Se);a(u,c,et,v,at,D,O,x,S,L,tt,H,$,ft,ee,te,rt,ce,ot,be,De,dt,ut,nt,Ce,ht,Be,Pe,Me,Ne,He,ze,ct);return u.typeName="ArrayAssignmentTarget",u.fields=[{name:"type",type:o(s),value:"ArrayAssignmentTarget"},{name:"elements",type:i(r(a(v,a(a(u,be),a(d,ot)))))},{name:"rest",type:r(a(a(u,be),a(d,ot)))}],c.typeName="ArrayBinding",c.fields=[{name:"type",type:o(s),value:"ArrayBinding"},{name:"elements",type:i(r(a(D,a(_,a(c,De)))))},{name:"rest",type:r(a(_,a(c,De)))}],l.typeName="ArrayExpression",l.fields=[{name:"type",type:o(s),value:"ArrayExpression"},{name:"elements",type:i(r(a(ft,Ce)))}],f.typeName="ArrowExpression",f.fields=[{name:"type",type:o(s),value:"ArrowExpression"},{name:"isAsync",type:t},{name:"params",type:ee},{name:"body",type:a(ft,te)}],h.typeName="AssignmentExpression",h.fields=[{name:"type",type:o(s),value:"AssignmentExpression"},{name:"binding",type:a(a(u,be),a(d,ot))},{name:"expression",type:ft}],d.typeName="AssignmentTargetIdentifier",d.fields=[{name:"type",type:o(s),value:"AssignmentTargetIdentifier"},{name:"name",type:n}],p.typeName="AssignmentTargetPropertyIdentifier",p.fields=[{name:"type",type:o(s),value:"AssignmentTargetPropertyIdentifier"},{name:"binding",type:d},{name:"init",type:r(ft)}],m.typeName="AssignmentTargetPropertyProperty",m.fields=[{name:"type",type:o(s),value:"AssignmentTargetPropertyProperty"},{name:"name",type:nt},{name:"binding",type:a(v,a(a(u,be),a(d,ot)))}],v.typeName="AssignmentTargetWithDefault",v.fields=[{name:"type",type:o(s),value:"AssignmentTargetWithDefault"},{name:"binding",type:a(a(u,be),a(d,ot))},{name:"init",type:ft}],y.typeName="AwaitExpression",y.fields=[{name:"type",type:o(s),value:"AwaitExpression"},{name:"expression",type:ft}],g.typeName="BinaryExpression",g.fields=[{name:"type",type:o(s),value:"BinaryExpression"},{name:"left",type:ft},{name:"operator",type:{typeName:"Enum",values:["==","!=","===","!==","<","<=",">",">=","in","instanceof","<<",">>",">>>","+","-","*","/","%","**",",","||","&&","|","^","&"]}},{name:"right",type:ft}],_.typeName="BindingIdentifier",_.fields=[{name:"type",type:o(s),value:"BindingIdentifier"},{name:"name",type:n}],E.typeName="BindingPropertyIdentifier",E.fields=[{name:"type",type:o(s),value:"BindingPropertyIdentifier"},{name:"binding",type:_},{name:"init",type:r(ft)}],b.typeName="BindingPropertyProperty",b.fields=[{name:"type",type:o(s),value:"BindingPropertyProperty"},{name:"name",type:nt},{name:"binding",type:a(D,a(_,a(c,De)))}],D.typeName="BindingWithDefault",D.fields=[{name:"type",type:o(s),value:"BindingWithDefault"},{name:"binding",type:a(_,a(c,De))},{name:"init",type:ft}],O.typeName="Block",O.fields=[{name:"type",type:o(s),value:"Block"},{name:"statements",type:i(ht)}],k.typeName="BlockStatement",k.fields=[{name:"type",type:o(s),value:"BlockStatement"},{name:"block",type:O}],A.typeName="BreakStatement",A.fields=[{name:"type",type:o(s),value:"BreakStatement"},{name:"label",type:r(n)}],w.typeName="CallExpression",w.fields=[{name:"type",type:o(s),value:"CallExpression"},{name:"callee",type:a(ft,Be)},{name:"arguments",type:i(a(ft,Ce))}],x.typeName="CatchClause",x.fields=[{name:"type",type:o(s),value:"CatchClause"},{name:"binding",type:a(_,a(c,De))},{name:"body",type:O}],C.typeName="ClassDeclaration",C.fields=[{name:"type",type:o(s),value:"ClassDeclaration"},{name:"name",type:_},{name:"super",type:r(ft)},{name:"elements",type:i(S)}],S.typeName="ClassElement",S.fields=[{name:"type",type:o(s),value:"ClassElement"},{name:"isStatic",type:t},{name:"method",type:st}],T.typeName="ClassExpression",T.fields=[{name:"type",type:o(s),value:"ClassExpression"},{name:"name",type:r(_)},{name:"super",type:r(ft)},{name:"elements",type:i(S)}],F.typeName="CompoundAssignmentExpression",F.fields=[{name:"type",type:o(s),value:"CompoundAssignmentExpression"},{name:"binding",type:a(d,ot)},{name:"operator",type:{typeName:"Enum",values:["+=","-=","*=","/=","%=","**=","<<=",">>=",">>>=","|=","^=","&="]}},{name:"expression",type:ft}],q.typeName="ComputedMemberAssignmentTarget",q.fields=[{name:"type",type:o(s),value:"ComputedMemberAssignmentTarget"},{name:"object",type:a(ft,Be)},{name:"expression",type:ft}],B.typeName="ComputedMemberExpression",B.fields=[{name:"type",type:o(s),value:"ComputedMemberExpression"},{name:"object",type:a(ft,Be)},{name:"expression",type:ft}],P.typeName="ComputedPropertyName",P.fields=[{name:"type",type:o(s),value:"ComputedPropertyName"},{name:"expression",type:ft}],M.typeName="ConditionalExpression",M.fields=[{name:"type",type:o(s),value:"ConditionalExpression"},{name:"test",type:ft},{name:"consequent",type:ft},{name:"alternate",type:ft}],R.typeName="ContinueStatement",R.fields=[{name:"type",type:o(s),value:"ContinueStatement"},{name:"label",type:r(n)}],I.typeName="DataProperty",I.fields=[{name:"type",type:o(s),value:"DataProperty"},{name:"name",type:nt},{name:"expression",type:ft}],N.typeName="DebuggerStatement",N.fields=[{name:"type",type:o(s),value:"DebuggerStatement"}],L.typeName="Directive",L.fields=[{name:"type",type:o(s),value:"Directive"},{name:"rawValue",type:n}],j.typeName="DoWhileStatement",j.fields=[{name:"type",type:o(s),value:"DoWhileStatement"},{name:"body",type:ht},{name:"test",type:ft}],Z.typeName="EmptyStatement",Z.fields=[{name:"type",type:o(s),value:"EmptyStatement"}],Q.typeName="Export",Q.fields=[{name:"type",type:o(s),value:"Export"},{name:"declaration",type:a(C,ne,He)}],W.typeName="ExportAllFrom",W.fields=[{name:"type",type:o(s),value:"ExportAllFrom"},{name:"moduleSpecifier",type:n}],G.typeName="ExportDefault",G.fields=[{name:"type",type:o(s),value:"ExportDefault"},{name:"body",type:a(C,ft,ne)}],V.typeName="ExportFrom",V.fields=[{name:"type",type:o(s),value:"ExportFrom"},{name:"namedExports",type:i(H)},{name:"moduleSpecifier",type:n}],H.typeName="ExportFromSpecifier",H.fields=[{name:"type",type:o(s),value:"ExportFromSpecifier"},{name:"name",type:n},{name:"exportedName",type:r(n)}],$.typeName="ExportLocalSpecifier",$.fields=[{name:"type",type:o(s),value:"ExportLocalSpecifier"},{name:"name",type:oe},{name:"exportedName",type:r(n)}],z.typeName="ExportLocals",z.fields=[{name:"type",type:o(s),value:"ExportLocals"},{name:"namedExports",type:i($)}],U.typeName="ExpressionStatement",U.fields=[{name:"type",type:o(s),value:"ExpressionStatement"},{name:"expression",type:ft}],Y.typeName="ForAwaitStatement",Y.fields=[{name:"type",type:o(s),value:"ForAwaitStatement"},{name:"left",type:a(a(a(u,be),a(d,ot)),He)},{name:"right",type:ft},{name:"body",type:ht}],X.typeName="ForInStatement",X.fields=[{name:"type",type:o(s),value:"ForInStatement"},{name:"left",type:a(a(a(u,be),a(d,ot)),He)},{name:"right",type:ft},{name:"body",type:ht}],K.typeName="ForOfStatement",K.fields=[{name:"type",type:o(s),value:"ForOfStatement"},{name:"left",type:a(a(a(u,be),a(d,ot)),He)},{name:"right",type:ft},{name:"body",type:ht}],J.typeName="ForStatement",J.fields=[{name:"type",type:o(s),value:"ForStatement"},{name:"init",type:r(a(ft,He))},{name:"test",type:r(ft)},{name:"update",type:r(ft)},{name:"body",type:ht}],ee.typeName="FormalParameters",ee.fields=[{name:"type",type:o(s),value:"FormalParameters"},{name:"items",type:i(a(D,a(_,a(c,De))))},{name:"rest",type:r(a(_,a(c,De)))}],te.typeName="FunctionBody",te.fields=[{name:"type",type:o(s),value:"FunctionBody"},{name:"directives",type:i(L)},{name:"statements",type:i(ht)}],ne.typeName="FunctionDeclaration",ne.fields=[{name:"type",type:o(s),value:"FunctionDeclaration"},{name:"isAsync",type:t},{name:"isGenerator",type:t},{name:"name",type:_},{name:"params",type:ee},{name:"body",type:te}],re.typeName="FunctionExpression",re.fields=[{name:"type",type:o(s),value:"FunctionExpression"},{name:"isAsync",type:t},{name:"isGenerator",type:t},{name:"name",type:r(_)},{name:"params",type:ee},{name:"body",type:te}],ie.typeName="Getter",ie.fields=[{name:"type",type:o(s),value:"Getter"},{name:"name",type:nt},{name:"body",type:te}],oe.typeName="IdentifierExpression",oe.fields=[{name:"type",type:o(s),value:"IdentifierExpression"},{name:"name",type:n}],ae.typeName="IfStatement",ae.fields=[{name:"type",type:o(s),value:"IfStatement"},{name:"test",type:ft},{name:"consequent",type:ht},{name:"alternate",type:r(ht)}],se.typeName="Import",se.fields=[{name:"type",type:o(s),value:"Import"},{name:"defaultBinding",type:r(_)},{name:"namedImports",type:i(ce)},{name:"moduleSpecifier",type:n}],ue.typeName="ImportNamespace",ue.fields=[{name:"type",type:o(s),value:"ImportNamespace"},{name:"defaultBinding",type:r(_)},{name:"namespaceBinding",type:_},{name:"moduleSpecifier",type:n}],ce.typeName="ImportSpecifier",ce.fields=[{name:"type",type:o(s),value:"ImportSpecifier"},{name:"name",type:r(n)},{name:"binding",type:_}],le.typeName="LabeledStatement",le.fields=[{name:"type",type:o(s),value:"LabeledStatement"},{name:"label",type:n},{name:"body",type:ht}],fe.typeName="LiteralBooleanExpression",fe.fields=[{name:"type",type:o(s),value:"LiteralBooleanExpression"},{name:"value",type:t}],he.typeName="LiteralInfinityExpression",he.fields=[{name:"type",type:o(s),value:"LiteralInfinityExpression"}],de.typeName="LiteralNullExpression",de.fields=[{name:"type",type:o(s),value:"LiteralNullExpression"}],pe.typeName="LiteralNumericExpression",pe.fields=[{name:"type",type:o(s),value:"LiteralNumericExpression"},{name:"value",type:{typeName:"Number"}}],me.typeName="LiteralRegExpExpression",me.fields=[{name:"type",type:o(s),value:"LiteralRegExpExpression"},{name:"pattern",type:n},{name:"global",type:t},{name:"ignoreCase",type:t},{name:"multiLine",type:t},{name:"dotAll",type:t},{name:"unicode",type:t},{name:"sticky",type:t}],ve.typeName="LiteralStringExpression",ve.fields=[{name:"type",type:o(s),value:"LiteralStringExpression"},{name:"value",type:n}],ye.typeName="Method",ye.fields=[{name:"type",type:o(s),value:"Method"},{name:"isAsync",type:t},{name:"isGenerator",type:t},{name:"name",type:nt},{name:"params",type:ee},{name:"body",type:te}],ge.typeName="Module",ge.fields=[{name:"type",type:o(s),value:"Module"},{name:"directives",type:i(L)},{name:"items",type:i(a(tt,rt,ht))}],_e.typeName="NewExpression",_e.fields=[{name:"type",type:o(s),value:"NewExpression"},{name:"callee",type:ft},{name:"arguments",type:i(a(ft,Ce))}],Ee.typeName="NewTargetExpression",Ee.fields=[{name:"type",type:o(s),value:"NewTargetExpression"}],be.typeName="ObjectAssignmentTarget",be.fields=[{name:"type",type:o(s),value:"ObjectAssignmentTarget"},{name:"properties",type:i(et)},{name:"rest",type:r(a(a(u,be),a(d,ot)))}],De.typeName="ObjectBinding",De.fields=[{name:"type",type:o(s),value:"ObjectBinding"},{name:"properties",type:i(at)},{name:"rest",type:r(a(_,a(c,De)))}],Oe.typeName="ObjectExpression",Oe.fields=[{name:"type",type:o(s),value:"ObjectExpression"},{name:"properties",type:i(dt)}],ke.typeName="ReturnStatement",ke.fields=[{name:"type",type:o(s),value:"ReturnStatement"},{name:"expression",type:r(ft)}],Ae.typeName="Script",Ae.fields=[{name:"type",type:o(s),value:"Script"},{name:"directives",type:i(L)},{name:"statements",type:i(ht)}],we.typeName="Setter",we.fields=[{name:"type",type:o(s),value:"Setter"},{name:"name",type:nt},{name:"param",type:a(D,a(_,a(c,De)))},{name:"body",type:te}],xe.typeName="ShorthandProperty",xe.fields=[{name:"type",type:o(s),value:"ShorthandProperty"},{name:"name",type:oe}],Ce.typeName="SpreadElement",Ce.fields=[{name:"type",type:o(s),value:"SpreadElement"},{name:"expression",type:ft}],Se.typeName="SpreadProperty",Se.fields=[{name:"type",type:o(s),value:"SpreadProperty"},{name:"expression",type:ft}],Te.typeName="StaticMemberAssignmentTarget",Te.fields=[{name:"type",type:o(s),value:"StaticMemberAssignmentTarget"},{name:"object",type:a(ft,Be)},{name:"property",type:n}],Fe.typeName="StaticMemberExpression",Fe.fields=[{name:"type",type:o(s),value:"StaticMemberExpression"},{name:"object",type:a(ft,Be)},{name:"property",type:n}],qe.typeName="StaticPropertyName",qe.fields=[{name:"type",type:o(s),value:"StaticPropertyName"},{name:"value",type:n}],Be.typeName="Super",Be.fields=[{name:"type",type:o(s),value:"Super"}],Pe.typeName="SwitchCase",Pe.fields=[{name:"type",type:o(s),value:"SwitchCase"},{name:"test",type:ft},{name:"consequent",type:i(ht)}],Me.typeName="SwitchDefault",Me.fields=[{name:"type",type:o(s),value:"SwitchDefault"},{name:"consequent",type:i(ht)}],Re.typeName="SwitchStatement",Re.fields=[{name:"type",type:o(s),value:"SwitchStatement"},{name:"discriminant",type:ft},{name:"cases",type:i(Pe)}],Ie.typeName="SwitchStatementWithDefault",Ie.fields=[{name:"type",type:o(s),value:"SwitchStatementWithDefault"},{name:"discriminant",type:ft},{name:"preDefaultCases",type:i(Pe)},{name:"defaultCase",type:Me},{name:"postDefaultCases",type:i(Pe)}],Ne.typeName="TemplateElement",Ne.fields=[{name:"type",type:o(s),value:"TemplateElement"},{name:"rawValue",type:n}],Le.typeName="TemplateExpression",Le.fields=[{name:"type",type:o(s),value:"TemplateExpression"},{name:"tag",type:r(ft)},{name:"elements",type:i(a(ft,Ne))}],je.typeName="ThisExpression",je.fields=[{name:"type",type:o(s),value:"ThisExpression"}],Ze.typeName="ThrowStatement",Ze.fields=[{name:"type",type:o(s),value:"ThrowStatement"},{name:"expression",type:ft}],Qe.typeName="TryCatchStatement",Qe.fields=[{name:"type",type:o(s),value:"TryCatchStatement"},{name:"body",type:O},{name:"catchClause",type:x}],We.typeName="TryFinallyStatement",We.fields=[{name:"type",type:o(s),value:"TryFinallyStatement"},{name:"body",type:O},{name:"catchClause",type:r(x)},{name:"finalizer",type:O}],Ge.typeName="UnaryExpression",Ge.fields=[{name:"type",type:o(s),value:"UnaryExpression"},{name:"operator",type:{typeName:"Enum",values:["+","-","!","~","typeof","void","delete"]}},{name:"operand",type:ft}],Ve.typeName="UpdateExpression",Ve.fields=[{name:"type",type:o(s),value:"UpdateExpression"},{name:"isPrefix",type:t},{name:"operator",type:{typeName:"Enum",values:["++","--"]}},{name:"operand",type:a(d,ot)}],He.typeName="VariableDeclaration",He.fields=[{name:"type",type:o(s),value:"VariableDeclaration"},{name:"kind",type:{typeName:"Enum",values:["var","let","const"]}},{name:"declarators",type:i(ze)}],$e.typeName="VariableDeclarationStatement",$e.fields=[{name:"type",type:o(s),value:"VariableDeclarationStatement"},{name:"declaration",type:He}],ze.typeName="VariableDeclarator",ze.fields=[{name:"type",type:o(s),value:"VariableDeclarator"},{name:"binding",type:a(_,a(c,De))},{name:"init",type:r(ft)}],Ue.typeName="WhileStatement",Ue.fields=[{name:"type",type:o(s),value:"WhileStatement"},{name:"test",type:ft},{name:"body",type:ht}],Ye.typeName="WithStatement",Ye.fields=[{name:"type",type:o(s),value:"WithStatement"},{name:"object",type:ft},{name:"body",type:ht}],Xe.typeName="YieldExpression",Xe.fields=[{name:"type",type:o(s),value:"YieldExpression"},{name:"expression",type:r(ft)}],Ke.typeName="YieldGeneratorExpression",Ke.fields=[{name:"type",type:o(s),value:"YieldGeneratorExpression"},{name:"expression",type:ft}],e}()},1892:function(e){e.exports=new Set(["General_Category","Script","Script_Extensions","Alphabetic","Any","ASCII","ASCII_Hex_Digit","Assigned","Bidi_Control","Bidi_Mirrored","Case_Ignorable","Cased","Changes_When_Casefolded","Changes_When_Casemapped","Changes_When_Lowercased","Changes_When_NFKC_Casefolded","Changes_When_Titlecased","Changes_When_Uppercased","Dash","Default_Ignorable_Code_Point","Deprecated","Diacritic","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extended_Pictographic","Extender","Grapheme_Base","Grapheme_Extend","Hex_Digit","ID_Continue","ID_Start","Ideographic","IDS_Binary_Operator","IDS_Trinary_Operator","Join_Control","Logical_Order_Exception","Lowercase","Math","Noncharacter_Code_Point","Pattern_Syntax","Pattern_White_Space","Quotation_Mark","Radical","Regional_Indicator","Sentence_Terminal","Soft_Dotted","Terminal_Punctuation","Unified_Ideograph","Uppercase","Variation_Selector","White_Space","XID_Continue","XID_Start"])},6060:function(e,t,n){"use strict";var r=n(1892),i=n(4483);e.exports=function(e){if(r.has(e))return e;if(i.has(e))return i.get(e);throw new Error("Unknown property: ".concat(e))}},9506:function(e){e.exports=new Map([["General_Category",new Map([["C","Other"],["Cc","Control"],["cntrl","Control"],["Cf","Format"],["Cn","Unassigned"],["Co","Private_Use"],["Cs","Surrogate"],["L","Letter"],["LC","Cased_Letter"],["Ll","Lowercase_Letter"],["Lm","Modifier_Letter"],["Lo","Other_Letter"],["Lt","Titlecase_Letter"],["Lu","Uppercase_Letter"],["M","Mark"],["Combining_Mark","Mark"],["Mc","Spacing_Mark"],["Me","Enclosing_Mark"],["Mn","Nonspacing_Mark"],["N","Number"],["Nd","Decimal_Number"],["digit","Decimal_Number"],["Nl","Letter_Number"],["No","Other_Number"],["P","Punctuation"],["punct","Punctuation"],["Pc","Connector_Punctuation"],["Pd","Dash_Punctuation"],["Pe","Close_Punctuation"],["Pf","Final_Punctuation"],["Pi","Initial_Punctuation"],["Po","Other_Punctuation"],["Ps","Open_Punctuation"],["S","Symbol"],["Sc","Currency_Symbol"],["Sk","Modifier_Symbol"],["Sm","Math_Symbol"],["So","Other_Symbol"],["Z","Separator"],["Zl","Line_Separator"],["Zp","Paragraph_Separator"],["Zs","Space_Separator"],["Other","Other"],["Control","Control"],["Format","Format"],["Unassigned","Unassigned"],["Private_Use","Private_Use"],["Surrogate","Surrogate"],["Letter","Letter"],["Cased_Letter","Cased_Letter"],["Lowercase_Letter","Lowercase_Letter"],["Modifier_Letter","Modifier_Letter"],["Other_Letter","Other_Letter"],["Titlecase_Letter","Titlecase_Letter"],["Uppercase_Letter","Uppercase_Letter"],["Mark","Mark"],["Spacing_Mark","Spacing_Mark"],["Enclosing_Mark","Enclosing_Mark"],["Nonspacing_Mark","Nonspacing_Mark"],["Number","Number"],["Decimal_Number","Decimal_Number"],["Letter_Number","Letter_Number"],["Other_Number","Other_Number"],["Punctuation","Punctuation"],["Connector_Punctuation","Connector_Punctuation"],["Dash_Punctuation","Dash_Punctuation"],["Close_Punctuation","Close_Punctuation"],["Final_Punctuation","Final_Punctuation"],["Initial_Punctuation","Initial_Punctuation"],["Other_Punctuation","Other_Punctuation"],["Open_Punctuation","Open_Punctuation"],["Symbol","Symbol"],["Currency_Symbol","Currency_Symbol"],["Modifier_Symbol","Modifier_Symbol"],["Math_Symbol","Math_Symbol"],["Other_Symbol","Other_Symbol"],["Separator","Separator"],["Line_Separator","Line_Separator"],["Paragraph_Separator","Paragraph_Separator"],["Space_Separator","Space_Separator"]])],["Script",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Dogr","Dogra"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gong","Gunjala_Gondi"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Maka","Makasar"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Medf","Medefaidrin"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Rohg","Hanifi_Rohingya"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sogd","Sogdian"],["Sogo","Old_Sogdian"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Dogra","Dogra"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Gunjala_Gondi","Gunjala_Gondi"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Makasar","Makasar"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Medefaidrin","Medefaidrin"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Hanifi_Rohingya","Hanifi_Rohingya"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sogdian","Sogdian"],["Old_Sogdian","Old_Sogdian"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])],["Script_Extensions",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Dogr","Dogra"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gong","Gunjala_Gondi"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Maka","Makasar"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Medf","Medefaidrin"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Rohg","Hanifi_Rohingya"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sogd","Sogdian"],["Sogo","Old_Sogdian"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Dogra","Dogra"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Gunjala_Gondi","Gunjala_Gondi"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Makasar","Makasar"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Medefaidrin","Medefaidrin"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Hanifi_Rohingya","Hanifi_Rohingya"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sogdian","Sogdian"],["Old_Sogdian","Old_Sogdian"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])]])},2451:function(e,t,n){"use strict";var r=n(9506);e.exports=function(e,t){var n=r.get(e);if(!n)throw new Error("Unknown property `".concat(e,"`."));var i=n.get(t);if(i)return i;throw new Error("Unknown value `".concat(t,"` for property `").concat(e,"`."))}},4483:function(e){e.exports=new Map([["scx","Script_Extensions"],["sc","Script"],["gc","General_Category"],["AHex","ASCII_Hex_Digit"],["Alpha","Alphabetic"],["Bidi_C","Bidi_Control"],["Bidi_M","Bidi_Mirrored"],["Cased","Cased"],["CI","Case_Ignorable"],["CWCF","Changes_When_Casefolded"],["CWCM","Changes_When_Casemapped"],["CWKCF","Changes_When_NFKC_Casefolded"],["CWL","Changes_When_Lowercased"],["CWT","Changes_When_Titlecased"],["CWU","Changes_When_Uppercased"],["Dash","Dash"],["Dep","Deprecated"],["DI","Default_Ignorable_Code_Point"],["Dia","Diacritic"],["Ext","Extender"],["Gr_Base","Grapheme_Base"],["Gr_Ext","Grapheme_Extend"],["Hex","Hex_Digit"],["IDC","ID_Continue"],["Ideo","Ideographic"],["IDS","ID_Start"],["IDSB","IDS_Binary_Operator"],["IDST","IDS_Trinary_Operator"],["Join_C","Join_Control"],["LOE","Logical_Order_Exception"],["Lower","Lowercase"],["Math","Math"],["NChar","Noncharacter_Code_Point"],["Pat_Syn","Pattern_Syntax"],["Pat_WS","Pattern_White_Space"],["QMark","Quotation_Mark"],["Radical","Radical"],["RI","Regional_Indicator"],["SD","Soft_Dotted"],["STerm","Sentence_Terminal"],["Term","Terminal_Punctuation"],["UIdeo","Unified_Ideograph"],["Upper","Uppercase"],["VS","Variation_Selector"],["WSpace","White_Space"],["space","White_Space"],["XIDC","XID_Continue"],["XIDS","XID_Start"]])},6951:function(e,t){var n;!function(r){"use strict";function i(){if(i.prototype._singleton)throw new Error("WebMidi is a singleton, it cannot be instantiated directly.");(i.prototype._singleton=this)._inputs=[],this._outputs=[],this._userHandlers={},this._stateChangeQueue=[],this._processingStateChange=!1,this._midiInterfaceEvents=["connected","disconnected"],this._nrpnBuffer=[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]],this._nrpnEventsEnabled=!0,this._nrpnTypes=["entry","increment","decrement"],this._notes=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],this._semitones={C:0,D:2,E:4,F:5,G:7,A:9,B:11},Object.defineProperties(this,{MIDI_SYSTEM_MESSAGES:{value:{sysex:240,timecode:241,songposition:242,songselect:243,tuningrequest:246,sysexend:247,clock:248,start:250,continue:251,stop:252,activesensing:254,reset:255,midimessage:0,unknownsystemmessage:-1},writable:!1,enumerable:!0,configurable:!1},MIDI_CHANNEL_MESSAGES:{value:{noteoff:8,noteon:9,keyaftertouch:10,controlchange:11,channelmode:11,nrpn:11,programchange:12,channelaftertouch:13,pitchbend:14},writable:!1,enumerable:!0,configurable:!1},MIDI_REGISTERED_PARAMETER:{value:{pitchbendrange:[0,0],channelfinetuning:[0,1],channelcoarsetuning:[0,2],tuningprogram:[0,3],tuningbank:[0,4],modulationrange:[0,5],azimuthangle:[61,0],elevationangle:[61,1],gain:[61,2],distanceratio:[61,3],maximumdistance:[61,4],maximumdistancegain:[61,5],referencedistanceratio:[61,6],panspreadangle:[61,7],rollangle:[61,8]},writable:!1,enumerable:!0,configurable:!1},MIDI_CONTROL_CHANGE_MESSAGES:{value:{bankselectcoarse:0,modulationwheelcoarse:1,breathcontrollercoarse:2,footcontrollercoarse:4,portamentotimecoarse:5,dataentrycoarse:6,volumecoarse:7,balancecoarse:8,pancoarse:10,expressioncoarse:11,effectcontrol1coarse:12,effectcontrol2coarse:13,generalpurposeslider1:16,generalpurposeslider2:17,generalpurposeslider3:18,generalpurposeslider4:19,bankselectfine:32,modulationwheelfine:33,breathcontrollerfine:34,footcontrollerfine:36,portamentotimefine:37,dataentryfine:38,volumefine:39,balancefine:40,panfine:42,expressionfine:43,effectcontrol1fine:44,effectcontrol2fine:45,holdpedal:64,portamento:65,sustenutopedal:66,softpedal:67,legatopedal:68,hold2pedal:69,soundvariation:70,resonance:71,soundreleasetime:72,soundattacktime:73,brightness:74,soundcontrol6:75,soundcontrol7:76,soundcontrol8:77,soundcontrol9:78,soundcontrol10:79,generalpurposebutton1:80,generalpurposebutton2:81,generalpurposebutton3:82,generalpurposebutton4:83,reverblevel:91,tremololevel:92,choruslevel:93,celestelevel:94,phaserlevel:95,databuttonincrement:96,databuttondecrement:97,nonregisteredparametercoarse:98,nonregisteredparameterfine:99,registeredparametercoarse:100,registeredparameterfine:101},writable:!1,enumerable:!0,configurable:!1},MIDI_NRPN_MESSAGES:{value:{entrymsb:6,entrylsb:38,increment:96,decrement:97,paramlsb:98,parammsb:99,nullactiveparameter:127},writable:!1,enumerable:!0,configurable:!1},MIDI_CHANNEL_MODE_MESSAGES:{value:{allsoundoff:120,resetallcontrollers:121,localcontrol:122,allnotesoff:123,omnimodeoff:124,omnimodeon:125,monomodeon:126,polymodeon:127},writable:!1,enumerable:!0,configurable:!1},octaveOffset:{value:0,writable:!0,enumerable:!0,configurable:!1}}),Object.defineProperties(this,{supported:{enumerable:!0,get:function(){return"requestMIDIAccess"in navigator}},enabled:{enumerable:!0,get:function(){return void 0!==this.interface}.bind(this)},inputs:{enumerable:!0,get:function(){return this._inputs}.bind(this)},outputs:{enumerable:!0,get:function(){return this._outputs}.bind(this)},sysexEnabled:{enumerable:!0,get:function(){return!(!this.interface||!this.interface.sysexEnabled)}.bind(this)},nrpnEventsEnabled:{enumerable:!0,get:function(){return!!this._nrpnEventsEnabled}.bind(this),set:function(e){return this._nrpnEventsEnabled=e,this._nrpnEventsEnabled}},nrpnTypes:{enumerable:!0,get:function(){return this._nrpnTypes}.bind(this)},time:{enumerable:!0,get:function(){return performance.now()}}})}var o=new i;function a(e){var t=this;this._userHandlers={channel:{},system:{}},this._midiInput=e,Object.defineProperties(this,{connection:{enumerable:!0,get:function(){return t._midiInput.connection}},id:{enumerable:!0,get:function(){return t._midiInput.id}},manufacturer:{enumerable:!0,get:function(){return t._midiInput.manufacturer}},name:{enumerable:!0,get:function(){return t._midiInput.name}},state:{enumerable:!0,get:function(){return t._midiInput.state}},type:{enumerable:!0,get:function(){return t._midiInput.type}}}),this._initializeUserHandlers(),this._midiInput.onmidimessage=this._onMidiMessage.bind(this)}function s(e){var t=this;this._midiOutput=e,Object.defineProperties(this,{connection:{enumerable:!0,get:function(){return t._midiOutput.connection}},id:{enumerable:!0,get:function(){return t._midiOutput.id}},manufacturer:{enumerable:!0,get:function(){return t._midiOutput.manufacturer}},name:{enumerable:!0,get:function(){return t._midiOutput.name}},state:{enumerable:!0,get:function(){return t._midiOutput.state}},type:{enumerable:!0,get:function(){return t._midiOutput.type}}})}i.prototype.enable=function(e,t){this.enabled||(this.supported?navigator.requestMIDIAccess({sysex:t}).then(function(t){var n,r=[],i=[];this.interface=t,this._resetInterfaceUserHandlers(),this.interface.onstatechange=function(e){r.push(e)};for(var o=t.inputs.values(),a=o.next();a&&!a.done;a=o.next())i.push(a.value.open());for(var s=t.outputs.values(),u=s.next();u&&!u.done;u=s.next())i.push(u.value.open());function c(){clearTimeout(n),this._updateInputsAndOutputs(),this.interface.onstatechange=this._onInterfaceStateChange.bind(this),"function"==typeof e&&e.call(this),r.forEach(function(e){this._onInterfaceStateChange(e)}.bind(this))}n=setTimeout(c.bind(this),200),Promise&&Promise.all(i).catch((function(e){})).then(c.bind(this))}.bind(this),function(t){"function"==typeof e&&e.call(this,t)}.bind(this)):"function"==typeof e&&e(new Error("The Web MIDI API is not supported by your browser.")))},i.prototype.disable=function(){if(!this.supported)throw new Error("The Web MIDI API is not supported by your browser.");this.enabled&&(this.removeListener(),this.inputs.forEach((function(e){e.removeListener()}))),this.interface&&(this.interface.onstatechange=void 0),this.interface=void 0,this._inputs=[],this._outputs=[],this._nrpnEventsEnabled=!0,this._resetInterfaceUserHandlers()},i.prototype.addListener=function(e,t){if(!this.enabled)throw new Error("WebMidi must be enabled before adding event listeners.");if("function"!=typeof t)throw new TypeError("The 'listener' parameter must be a function.");if(!(0<=this._midiInterfaceEvents.indexOf(e)))throw new TypeError("The specified event type is not supported.");return this._userHandlers[e].push(t),this},i.prototype.hasListener=function(e,t){if(!this.enabled)throw new Error("WebMidi must be enabled before checking event listeners.");if("function"!=typeof t)throw new TypeError("The 'listener' parameter must be a function.");if(!(0<=this._midiInterfaceEvents.indexOf(e)))throw new TypeError("The specified event type is not supported.");for(var n=0;n>4,i=15&e.data[0],a=1+i;if(1=o.MIDI_NRPN_MESSAGES.increment&&t<=o.MIDI_NRPN_MESSAGES.parammsb||t===o.MIDI_NRPN_MESSAGES.entrymsb||t===o.MIDI_NRPN_MESSAGES.entrylsb)){var s={target:this,type:"controlchange",data:e.data,timestamp:e.timeStamp,channel:a,controller:{number:t,name:this.getCcNameByNumber(t)},value:n};if(s.controller.number===o.MIDI_NRPN_MESSAGES.parammsb&&s.value!=o.MIDI_NRPN_MESSAGES.nullactiveparameter)o._nrpnBuffer[i]=[],o._nrpnBuffer[i][0]=s;else if(1===o._nrpnBuffer[i].length&&s.controller.number===o.MIDI_NRPN_MESSAGES.paramlsb)o._nrpnBuffer[i].push(s);else if(2!==o._nrpnBuffer[i].length||s.controller.number!==o.MIDI_NRPN_MESSAGES.increment&&s.controller.number!==o.MIDI_NRPN_MESSAGES.decrement&&s.controller.number!==o.MIDI_NRPN_MESSAGES.entrymsb)if(3===o._nrpnBuffer[i].length&&o._nrpnBuffer[i][2].number===o.MIDI_NRPN_MESSAGES.entrymsb&&s.controller.number===o.MIDI_NRPN_MESSAGES.entrylsb)o._nrpnBuffer[i].push(s);else if(3<=o._nrpnBuffer[i].length&&o._nrpnBuffer[i].length<=4&&s.controller.number===o.MIDI_NRPN_MESSAGES.parammsb&&s.value===o.MIDI_NRPN_MESSAGES.nullactiveparameter)o._nrpnBuffer[i].push(s);else if(4<=o._nrpnBuffer[i].length&&o._nrpnBuffer[i].length<=5&&s.controller.number===o.MIDI_NRPN_MESSAGES.paramlsb&&s.value===o.MIDI_NRPN_MESSAGES.nullactiveparameter){o._nrpnBuffer[i].push(s);var u=[];o._nrpnBuffer[i].forEach((function(e){u.push(e.data)}));var c=o._nrpnBuffer[i][0].value<<7|o._nrpnBuffer[i][1].value,l=o._nrpnBuffer[i][2].value;6===o._nrpnBuffer[i].length&&(l=o._nrpnBuffer[i][2].value<<7|o._nrpnBuffer[i][3].value);var f="";switch(o._nrpnBuffer[i][2].controller.number){case o.MIDI_NRPN_MESSAGES.entrymsb:f=o._nrpnTypes[0];break;case o.MIDI_NRPN_MESSAGES.increment:f=o._nrpnTypes[1];break;case o.MIDI_NRPN_MESSAGES.decrement:f=o._nrpnTypes[2];break;default:throw new Error("The NPRN type was unidentifiable.")}var h={timestamp:s.timestamp,channel:s.channel,type:"nrpn",data:u,controller:{number:c,type:f,name:"Non-Registered Parameter "+c},value:l};o._nrpnBuffer[i]=[],this._userHandlers.channel[h.type]&&this._userHandlers.channel[h.type][h.channel]&&this._userHandlers.channel[h.type][h.channel].forEach((function(e){e(h)}))}else o._nrpnBuffer[i]=[];else o._nrpnBuffer[i].push(s)}},a.prototype._parseChannelEvent=function(e){var t,n,r=e.data[0]>>4,i=1+(15&e.data[0]);1>7&127,r=127&e;return this.send(o.MIDI_SYSTEM_MESSAGES.songposition,[n,r],this._parseTimeParameter(t.time)),this},s.prototype.sendSongSelect=function(e,t){if(t=t||{},!(0<=(e=Math.floor(e))&&e<=127))throw new RangeError("The song number must be between 0 and 127.");return this.send(o.MIDI_SYSTEM_MESSAGES.songselect,[e],this._parseTimeParameter(t.time)),this},s.prototype.sendTuningRequest=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.tuningrequest,void 0,this._parseTimeParameter(e.time)),this},s.prototype.sendClock=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.clock,void 0,this._parseTimeParameter(e.time)),this},s.prototype.sendStart=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.start,void 0,this._parseTimeParameter(e.time)),this},s.prototype.sendContinue=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.continue,void 0,this._parseTimeParameter(e.time)),this},s.prototype.sendStop=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.stop,void 0,this._parseTimeParameter(e.time)),this},s.prototype.sendActiveSensing=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.activesensing,[],this._parseTimeParameter(e.time)),this},s.prototype.sendReset=function(e){return e=e||{},this.send(o.MIDI_SYSTEM_MESSAGES.reset,void 0,this._parseTimeParameter(e.time)),this},s.prototype.stopNote=function(e,t,n){if("all"===e)return this.sendChannelMode("allnotesoff",0,t,n);var r=64;return(n=n||{}).rawVelocity?!isNaN(n.velocity)&&0<=n.velocity&&n.velocity<=127&&(r=n.velocity):!isNaN(n.velocity)&&0<=n.velocity&&n.velocity<=1&&(r=127*n.velocity),this._convertNoteToArray(e).forEach(function(e){o.toMIDIChannels(t).forEach(function(t){this.send((o.MIDI_CHANNEL_MESSAGES.noteoff<<4)+(t-1),[e,Math.round(r)],this._parseTimeParameter(n.time))}.bind(this))}.bind(this)),this},s.prototype.playNote=function(e,t,n){var r,i=64;if((n=n||{}).rawVelocity?!isNaN(n.velocity)&&0<=n.velocity&&n.velocity<=127&&(i=n.velocity):!isNaN(n.velocity)&&0<=n.velocity&&n.velocity<=1&&(i=127*n.velocity),r=this._parseTimeParameter(n.time),this._convertNoteToArray(e).forEach(function(e){o.toMIDIChannels(t).forEach(function(t){this.send((o.MIDI_CHANNEL_MESSAGES.noteon<<4)+(t-1),[e,Math.round(i)],r)}.bind(this))}.bind(this)),!isNaN(n.duration)){n.duration<=0&&(n.duration=0);var a=64;n.rawVelocity?!isNaN(n.release)&&0<=n.release&&n.release<=127&&(a=n.release):!isNaN(n.release)&&0<=n.release&&n.release<=1&&(a=127*n.release),this._convertNoteToArray(e).forEach(function(e){o.toMIDIChannels(t).forEach(function(t){this.send((o.MIDI_CHANNEL_MESSAGES.noteoff<<4)+(t-1),[e,Math.round(a)],(r||o.time)+n.duration)}.bind(this))}.bind(this))}return this},s.prototype.sendKeyAftertouch=function(e,t,n,r){var i=this;if(r=r||{},t<1||16>7&127,u=127&a;return o.toMIDIChannels(t).forEach((function(){r.setRegisteredParameter("channelcoarsetuning",i,t,{time:n.time}),r.setRegisteredParameter("channelfinetuning",[s,u],t,{time:n.time})})),this},s.prototype.setTuningProgram=function(e,t,n){var r=this;if(n=n||{},!(0<=(e=Math.floor(e))&&e<=127))throw new RangeError("The program value must be between 0 and 127");return o.toMIDIChannels(t).forEach((function(){r.setRegisteredParameter("tuningprogram",e,t,{time:n.time})})),this},s.prototype.setTuningBank=function(e,t,n){var r=this;if(n=n||{},!(0<=(e=Math.floor(e)||0)&&e<=127))throw new RangeError("The bank value must be between 0 and 127");return o.toMIDIChannels(t).forEach((function(){r.setRegisteredParameter("tuningbank",e,t,{time:n.time})})),this},s.prototype.sendChannelMode=function(e,t,n,r){if(r=r||{},"string"==typeof e){if(!(e=o.MIDI_CHANNEL_MODE_MESSAGES[e]))throw new TypeError("Invalid channel mode message name.")}else if(!(120<=(e=Math.floor(e))&&e<=127))throw new RangeError("Channel mode numerical identifiers must be between 120 and 127.");if((t=Math.floor(t)||0)<0||127>7&127,s=127&i;return o.toMIDIChannels(t).forEach((function(e){r.send((o.MIDI_CHANNEL_MESSAGES.pitchbend<<4)+(e-1),[s,a],r._parseTimeParameter(n.time))})),this},s.prototype._parseTimeParameter=function(e){var t,n=parseFloat(e);return"string"==typeof e&&"+"===e.substring(0,1)?n&&0o.time&&(t=n),t},s.prototype._convertNoteToArray=function(e){var t=[];return Array.isArray(e)||(e=[e]),e.forEach((function(e){t.push(o.guessNoteNumber(e))})),t},void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,s,u=i(e),c=1;ct}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(m,e)||!d.call(p,e)&&(h.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,_);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,_);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,_);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=60103,O=60106,k=60107,A=60108,w=60114,x=60109,C=60110,S=60112,T=60113,F=60120,q=60115,B=60116,P=60121,M=60128,R=60129,I=60130,N=60131;if("function"===typeof Symbol&&Symbol.for){var L=Symbol.for;D=L("react.element"),O=L("react.portal"),k=L("react.fragment"),A=L("react.strict_mode"),w=L("react.profiler"),x=L("react.provider"),C=L("react.context"),S=L("react.forward_ref"),T=L("react.suspense"),F=L("react.suspense_list"),q=L("react.memo"),B=L("react.lazy"),P=L("react.block"),L("react.scope"),M=L("react.opaque.id"),R=L("react.debug_trace_mode"),I=L("react.offscreen"),N=L("react.legacy_hidden")}var j,Z="function"===typeof Symbol&&Symbol.iterator;function Q(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=Z&&e[Z]||e["@@iterator"])?e:null}function W(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var G=!1;function V(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function H(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case O:return"Portal";case w:return"Profiler";case A:return"StrictMode";case T:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case S:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case q:return $(e.type);case P:return $(e._render);case B:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function z(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&E(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function ce(e,t){var n=z(t.value),r=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",he="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if(e.namespaceURI!==he||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var _e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ee=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||_e.hasOwnProperty(e)&&_e[e]?(""+t).trim():t+"px"}function De(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(_e).forEach((function(e){Ee.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_e[t]=_e[e]}))}));var Oe=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,t){if(t){if(Oe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Ae(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ce=null,Se=null;function Te(e){if(e=ri(e)){if("function"!==typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=oi(t),xe(e.stateNode,e.type,t))}}function Fe(e){Ce?Se?Se.push(e):Se=[e]:Ce=e}function qe(){if(Ce){var e=Ce,t=Se;if(Se=Ce=null,Te(e),t)for(e=0;e(r=31-Gt(r))?0:1<n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gt(t)]=n}var Gt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Ht|0)|0},Vt=Math.log,Ht=Math.LN2;var $t=o.unstable_UserBlockingPriority,zt=o.unstable_runWithPriority,Ut=!0;function Yt(e,t,n,r){Ie||Me();var i=Kt,o=Ie;Ie=!0;try{Pe(i,e,t,n,r)}finally{(Ie=o)||Le()}}function Xt(e,t,n,r){zt($t,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var i;if(Ut)if((i=0===(4&t))&&0=Nn),Zn=String.fromCharCode(32),Qn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function zn(e,t,n,r){Fe(r),0<(t=Ir(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Yn=null;function Xn(e){Sr(e,0)}function Kn(e){if(X(ii(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=f&&"documentMode"in document&&11>=document.documentMode,_r=null,Er=null,br=null,Dr=!1;function Or(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Dr||null==_r||_r!==K(r)||("selectionStart"in(r=_r)&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&hr(br,r)||(br=r,0<(r=Ir(Er,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Pt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ar=0;Arui||(e.current=si[ui],si[ui]=null,ui--)}function fi(e,t){ui++,si[ui]=e.current,e.current=t}var hi={},di=ci(hi),pi=ci(!1),mi=hi;function vi(e,t){var n=e.type.contextTypes;if(!n)return hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){li(pi),li(di)}function _i(e,t,n){if(di.current!==hi)throw Error(a(168));fi(di,t),fi(pi,n)}function Ei(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,$(t)||"Unknown",o));return i({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hi,mi=di.current,fi(di,e),fi(pi,pi.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ei(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,li(pi),li(di),fi(di,e)):li(pi),fi(pi,n)}var Oi=null,ki=null,Ai=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,xi=o.unstable_cancelCallback,Ci=o.unstable_shouldYield,Si=o.unstable_requestPaint,Ti=o.unstable_now,Fi=o.unstable_getCurrentPriorityLevel,qi=o.unstable_ImmediatePriority,Bi=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Ii={},Ni=void 0!==Si?Si:function(){},Li=null,ji=null,Zi=!1,Qi=Ti(),Wi=1e4>Qi?Ti:function(){return Ti()-Qi};function Gi(){switch(Fi()){case qi:return 99;case Bi:return 98;case Pi:return 97;case Mi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return qi;case 98:return Bi;case 97:return Pi;case 96:return Mi;case 95:return Ri;default:throw Error(a(332))}}function Hi(e,t){return e=Vi(e),Ai(e,t)}function $i(e,t,n){return e=Vi(e),wi(e,t,n)}function zi(){if(null!==ji){var e=ji;ji=null,xi(e)}Ui()}function Ui(){if(!Zi&&null!==Li){Zi=!0;var e=0;try{var t=Li;Hi(99,(function(){for(;em?(v=f,f=null):v=f.sibling;var y=d(i,f,s[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===l?c=y:l.sibling=y,l=y,f=v}if(m===s.length)return n(i,f),c;if(null===f){for(;mv?(y=m,m=null):y=m.sibling;var _=d(i,m,g.value,c);if(null===_){null===m&&(m=y);break}e&&m&&null===_.alternate&&t(i,m),s=o(_,s,v),null===f?l=_:f.sibling=_,f=_,m=y}if(g.done)return n(i,m),l;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=h(i,g.value,c))&&(s=o(g,s,v),null===f?l=g:f.sibling=g,f=g);return l}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=p(m,i,v,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),s=o(g,s,v),null===f?l=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),l}return function(e,r,o,u){var c="object"===typeof o&&null!==o&&o.type===k&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case D:e:{for(l=o.key,c=r;null!==c;){if(c.key===l){if(7===c.tag){if(o.type===k){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=ko(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===k?((r=zu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=$u(o.type,o.key,o.props,null,e.mode,u)).ref=ko(e,r,o),u.return=e,e=u)}return s(e);case O:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Yu(o,e.mode,u)).return=e,e=r),s(e);if(Oo(o))return m(e,r,o,u);if(Q(o))return v(e,r,o,u);if(l&&Ao(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var xo=wo(!0),Co=wo(!1),So={},To=ci(So),Fo=ci(So),qo=ci(So);function Bo(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(fi(qo,t),fi(Fo,e),fi(To,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(To),fi(To,t)}function Mo(){li(To),li(Fo),li(qo)}function Ro(e){Bo(qo.current);var t=Bo(To.current),n=pe(t,e.type);t!==n&&(fi(Fo,e),fi(To,n))}function Io(e){Fo.current===e&&(li(To),li(Fo))}var No=ci(0);function Lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=null,Zo=null,Qo=!1;function Wo(e,t){var n=Gu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Go(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Vo(e){if(Qo){var t=Zo;if(t){var n=t;if(!Go(e,t)){if(!(t=zr(n.nextSibling))||!Go(e,t))return e.flags=-1025&e.flags|2,Qo=!1,void(jo=e);Wo(jo,n)}jo=e,Zo=zr(t.firstChild)}else e.flags=-1025&e.flags|2,Qo=!1,jo=e}}function Ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function $o(e){if(e!==jo)return!1;if(!Qo)return Ho(e),Qo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Gr(t,e.memoizedProps))for(t=Zo;t;)Wo(e,t),t=zr(t.nextSibling);if(Ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Zo=zr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Zo=null}}else Zo=jo?zr(e.stateNode.nextSibling):null;return!0}function zo(){Zo=jo=null,Qo=!1}var Uo=[];function Yo(){for(var e=0;eo))throw Error(a(301));o+=1,na=ta=null,t.updateQueue=null,Xo.current=Ma,e=n(r,i)}while(ia)}if(Xo.current=qa,t=null!==ta&&null!==ta.next,Jo=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function la(e,t){return"function"===typeof t?t(e):t}function fa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,c=i;do{var l=c.lane;if((Jo&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,ea.lanes|=l,Zs|=l}c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,lr(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ha(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);lr(o,t.memoizedState)||(Ia=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function da(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Uo.push(t))),e)return n(t._source);throw Uo.push(t),Error(a(350))}function pa(e,t,n,r){var i=Bs;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),u=Xo.current,c=u.useState((function(){return da(i,t,n)})),l=c[1],f=c[0];c=na;var h=e.memoizedState,d=h.refs,p=d.getSnapshot,m=h.source;h=h.subscribe;var v=ea;return e.memoizedState={refs:d,source:t,subscribe:r},u.useEffect((function(){d.getSnapshot=n,d.setSnapshot=l;var e=o(t._source);if(!lr(s,e)){e=n(t._source),lr(f,e)||(l(e),e=du(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0n?98:n,(function(){e(!0)})),Hi(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Kr]=t,e[Jr]=r,za(e,t),t.stateNode=e,c=Ae(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),o=r;break;case"iframe":case"object":case"embed":Tr("load",e),o=r;break;case"video":case"audio":for(o=0;oHs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Lo(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Qo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wi()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wi(),n.sibling=null,t=No.current,fi(No,s?1&t|2:1&t),n):null;case 23:case 24:return Ou(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function us(e){switch(e.tag){case 1:yi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Mo(),li(pi),li(di),Yo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Io(e),null;case 13:return li(No),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(No),null;case 4:return Mo(),null;case 10:return ro(e),null;case 23:case 24:return Ou(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function ls(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Bo(To.current);var a,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=jr)}for(f in ke(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var c=o[f];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var l=r[f];if(c=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&l!==c&&(null!=l||null!=c))if("style"===f)if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(f,l)):"children"===f?"string"!==typeof l&&"number"!==typeof l||(s=s||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&Tr("scroll",e),s||c===l||(s=[])):"object"===typeof l&&null!==l&&l.$$typeof===M?l.toString():(s=s||[]).push(f,l))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Ya=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=lo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Xs=r),ls(0,t)},n}function ds(e,t,n){(n=lo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ls(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){ju(e,n)}else t.current=null}function vs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo))}throw Error(a(163))}function ys(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Iu(n,e),Ru(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))))}throw Error(a(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=be("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function _s(e,t){if(ki&&"function"===typeof ki.onCommitFiberUnmount)try{ki.onCommitFiberUnmount(Oi,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Iu(t,n);else{r=t;try{i()}catch(o){ju(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){ju(t,o)}break;case 5:ms(t);break;case 4:As(e,t)}}function Es(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function Ds(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Os(e,n,t):ks(e,n,t)}function Os(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=jr));else if(4!==r&&null!==(e=e.child))for(Os(e,t,n),e=e.sibling;null!==e;)Os(e,t,n),e=e.sibling}function ks(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function As(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,c=u;;)if(_s(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(_s(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ae(e,i),t=Ae(e,r),i=0;ii&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Wi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ss(n/1960))-n)){e.timeoutHandle=Vr(qu.bind(null,e),n);break}qu(e);break;default:throw Error(a(329))}}return vu(e,Wi()),e.callbackNode===t?yu.bind(null,e):null}function gu(e,t){for(t&=~Ws,t&=~Qs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ns&&(Ns=2),u=cs(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t,ho(h,hs(0,o,t));break e;case 1:o=u;var b=h.type,D=h.stateNode;if(0===(64&h.flags)&&("function"===typeof b.getDerivedStateFromError||null!==D&&"function"===typeof D.componentDidCatch&&(null===Ks||!Ks.has(D)))){h.flags|=4096,t&=-t,h.lanes|=t,ho(h,ds(h,o,t));break e}}h=h.return}while(null!==h)}Fu(n)}catch(O){t=O,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function wu(){var e=Ts.current;return Ts.current=qa,null===e?qa:e}function xu(e,t){var n=qs;qs|=16;var r=wu();for(Bs===e&&Ms===t||ku(e,t);;)try{Cu();break}catch(i){Au(e,i)}if(no(),qs=n,Ts.current=r,null!==Ps)throw Error(a(261));return Bs=null,Ms=0,Ns}function Cu(){for(;null!==Ps;)Tu(Ps)}function Su(){for(;null!==Ps&&!Ci();)Tu(Ps)}function Tu(e){var t=zs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?Fu(e):Ps=t,Fs.current=null}function Fu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Rs)))return void(Ps=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Rs)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1s&&(u=s,s=D,D=u),u=pr(_,D),o=pr(_,s),u&&o&&(1!==b.rangeCount||b.anchorNode!==u.node||b.anchorOffset!==u.offset||b.focusNode!==o.node||b.focusOffset!==o.offset)&&((E=E.createRange()).setStart(u.node,u.offset),b.removeAllRanges(),D>s?(b.addRange(E),b.extend(o.node,o.offset)):(E.setEnd(o.node,o.offset),b.addRange(E))))),E=[];for(b=_;b=b.parentNode;)1===b.nodeType&&E.push({element:b,left:b.scrollLeft,top:b.scrollTop});for("function"===typeof _.focus&&_.focus(),_=0;_Wi()-Vs?ku(e,0):Ws|=n),vu(e,t)}function Qu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Gi()?1:2:(0===uu&&(uu=js),0===(t=Zt(62914560&~uu))&&(t=4194304))),n=hu(),null!==(e=mu(e,t))&&(Wt(e,t,n),vu(e,n))}function Wu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Gu(e,t,n,r){return new Wu(e,t,n,r)}function Vu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hu(e,t){var n=e.alternate;return null===n?((n=Gu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $u(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Vu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return zu(n.children,i,o,t);case R:s=8,i|=16;break;case A:s=8,i|=1;break;case w:return(e=Gu(12,n,t,8|i)).elementType=w,e.type=w,e.lanes=o,e;case T:return(e=Gu(13,n,t,i)).type=T,e.elementType=T,e.lanes=o,e;case F:return(e=Gu(19,n,t,i)).elementType=F,e.lanes=o,e;case I:return Uu(n,i,o,t);case N:return(e=Gu(24,n,t,i)).elementType=N,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case C:s=9;break e;case S:s=11;break e;case q:s=14;break e;case B:s=16,r=null;break e;case P:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Gu(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function zu(e,t,n,r){return(e=Gu(7,e,r,t)).lanes=n,e}function Uu(e,t,n,r){return(e=Gu(23,e,r,t)).elementType=I,e.lanes=n,e}function Yu(e,t,n){return(e=Gu(6,e,null,t)).lanes=n,e}function Xu(e,t,n){return(t=Gu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ku(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Qt(0),this.expirationTimes=Qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qt(0),this.mutableSourceEagerHydrationData=null}function Ju(e,t,n){var r=3=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:S(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";var n,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,l=null,f=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,d=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0A(a,n))void 0!==u&&0>A(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var w=[],x=[],C=1,S=null,T=3,F=!1,q=!1,B=!1;function P(e){for(var t=O(x);null!==t;){if(null===t.callback)k(x);else{if(!(t.startTime<=e))break;k(x),t.sortIndex=t.expirationTime,D(w,t)}t=O(x)}}function M(e){if(B=!1,P(e),!q)if(null!==O(w))q=!0,n(R);else{var t=O(x);null!==t&&r(M,t.startTime-e)}}function R(e,n){q=!1,B&&(B=!1,i()),F=!0;var o=T;try{for(P(n),S=O(w);null!==S&&(!(S.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=S.callback;if("function"===typeof a){S.callback=null,T=S.priorityLevel;var s=a(S.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?S.callback=s:S===O(w)&&k(w),P(n)}else k(w);S=O(w)}if(null!==S)var u=!0;else{var c=O(x);null!==c&&r(M,c.startTime-n),u=!1}return u}finally{S=null,T=o,F=!1}}var I=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){q||F||(q=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return O(w)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=I,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0s?(e.sortIndex=a,D(x,e),null===O(w)&&e===O(x)&&(B?i():B=!0,r(M,a-s))):(e.sortIndex=u,D(w,e),q||F||(q=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},9199:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},5267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4942);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:0,r=o(t,e);return n?(0,a.U1)(r,-n):r};i.cf.prototype.euclid=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.struct(u(e,t,n))},i.cf.prototype.euclidLegato=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=u(e,t,n),c=o.indexOf(1),l=(0,a.U1)(o,c).join("").split("1").slice(1).map((function(e){return[e.length+1,!0]}));return this.struct(i.$E.apply(void 0,(0,r.Z)(l))).late((0,s.Z)(c).div(t))},t.Z=u},8090:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(2518),i=n(471);r.prototype.sam=function(){return this.floor()},r.prototype.nextSam=function(){return this.sam().add(1)},r.prototype.wholeCycle=function(){return new i.i(this.sam(),this.nextSam())},r.prototype.cyclePos=function(){return this.sub(this.sam())},r.prototype.lt=function(e){return this.compare(e)<0},r.prototype.gt=function(e){return this.compare(e)>0},r.prototype.lte=function(e){return this.compare(e)<=0},r.prototype.gte=function(e){return this.compare(e)>=0},r.prototype.eq=function(e){return 0==this.compare(e)},r.prototype.max=function(e){return this.gt(e)?this:e},r.prototype.min=function(e){return this.lt(e)?this:e},r.prototype.show=function(){return this.s*this.n+"/"+this.d},r.prototype.or=function(e){return this.eq(0)?e:this};var o=function(e){return"number"===typeof e&&(e=String(e)),r(e)},a=function(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,o.Z)(this,e),this.whole=t,this.part=n,this.value=r,this.context=i,this.stateful=a,a&&console.assert("function"===typeof this.value,"Stateful values must be functions")}return(0,a.Z)(e,[{key:"duration",get:function(){return this.whole.end.sub(this.whole.begin)}},{key:"wholeOrPart",value:function(){return this.whole?this.whole:this.part}},{key:"withSpan",value:function(t){return new e(this.whole?t(this.whole):void 0,t(this.part),this.value,this.context)}},{key:"withValue",value:function(t){return new e(this.whole,this.part,t(this.value),this.context)}},{key:"hasOnset",value:function(){return void 0!=this.whole&&this.whole.begin.equals(this.part.begin)}},{key:"resolveState",value:function(t){if(this.stateful&&this.hasOnset()){console.log("stateful");var n=(0,this.value)(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,new e(this.whole,this.part,a,this.context,!1)]}return[t,this]}},{key:"spanEquals",value:function(e){return void 0==this.whole&&void 0==e.whole||this.whole.equals(e.whole)}},{key:"equals",value:function(e){return this.spanEquals(e)&&this.part.equals(e.part)&&this.value===e.value}},{key:"show",value:function(){return"("+(void 0==this.whole?"~":this.whole.show())+", "+this.part.show()+", "+this.value+")"}},{key:"combineContext",value:function(e){return(0,r.Z)((0,r.Z)((0,r.Z)({},this.context),e.context),{},{locations:(this.context.locations||[]).concat(e.context.locations||[])})}},{key:"setContext",value:function(t){return new e(this.whole,this.part,this.value,t)}}]),e}();t.Z=s},3198:function(e,t,n){"use strict";n.r(t),n.d(t,{Fraction:function(){return r.Z},Hap:function(){return i.S},Pattern:function(){return o.cf},State:function(){return j.Z},TimeSpan:function(){return Z.i},_brandBy:function(){return x},_irand:function(){return T},add:function(){return o.IH},brand:function(){return S},brandBy:function(){return C},cat:function(){return o.d3},choose:function(){return B},chooseWith:function(){return q},chunk:function(){return o.yo},chunkBack:function(){return o.ej},compose:function(){return a.qC},constant:function(){return a.a9},cosine:function(){return m},cosine2:function(){return v},curry:function(){return a.WA},div:function(){return o.hi},early:function(){return o.oX},echo:function(){return o.B9},every:function(){return o.yW},fast:function(){return o.q3},fastcat:function(){return o.gB},flatten:function(){return a.xH},fromMidi:function(){return a.$4},getFrequency:function(){return a.Nb},getPlayableNoteValue:function(){return a.LQ},id:function(){return a.id},inv:function(){return o.JB},invert:function(){return o.U_},irand:function(){return F},isNote:function(){return a.gi},isPattern:function(){return o.R},isaw:function(){return c},isaw2:function(){return l},iter:function(){return o.he},iterBack:function(){return o.ey},jux:function(){return o.qX},juxBy:function(){return o.bR},late:function(){return o.wt},linger:function(){return o.fq},listRange:function(){return a.XQ},makeComposable:function(){return o.M8},mask:function(){return o.sS},mod:function(){return a.wQ},mul:function(){return o.dC},off:function(){return o.S1},patternify2:function(){return o.NC},patternify3:function(){return o.Ec},patternify4:function(){return o.mF},perlin:function(){return L},perlinWith:function(){return N},pipe:function(){return a.zG},ply:function(){return o.D},pm:function(){return o.pm},polymeter:function(){return o.DZ},polymeterSteps:function(){return o.Yh},polyrhythm:function(){return o.df},pr:function(){return o.pr},pure:function(){return o.Le},rand:function(){return w},range:function(){return o.w6},range2:function(){return o.wA},reify:function(){return o.ip},removeUndefineds:function(){return a.po},rev:function(){return o.OD},rotate:function(){return a.U1},saw:function(){return f},saw2:function(){return h},seq:function(){return o.A9},sequence:function(){return o.vP},set:function(){return o.t8},signal:function(){return u},silence:function(){return o.Bv},sine:function(){return p},sine2:function(){return d},slow:function(){return o.Yu},slowcat:function(){return o.Dr},slowcatPrime:function(){return o.Gf},square:function(){return y},square2:function(){return g},stack:function(){return o.kn},steady:function(){return s},struct:function(){return o.n_},sub:function(){return o.lu},superimpose:function(){return o.dv},time:function(){return b},timeCat:function(){return o.$E},toMidi:function(){return a.dL},tokenizeNote:function(){return a.TL},tri:function(){return _},tri2:function(){return E},wchoose:function(){return R},wchooseCycles:function(){return I},when:function(){return o.gx}});n(9320),n(242);var r=n(8090),i=n(5559),o=n(3811),a=n(1775);function s(e){return new o.cf((function(t){return[new i.S(void 0,t.span,e)]}))}var u=function(e){return new o.cf((function(t){return[new i.S(void 0,t.span,e(t.span.midpoint()))]}))},c=u((function(e){return 1-e%1})),l=c._toBipolar(),f=u((function(e){return e%1})),h=f._toBipolar(),d=u((function(e){return Math.sin(2*Math.PI*e)})),p=d._fromBipolar(),m=p._early((0,r.Z)(1).div(4)),v=d._early((0,r.Z)(1).div(4)),y=u((function(e){return Math.floor(2*e%2)})),g=y._toBipolar(),_=(0,o.gB)(c,f),E=(0,o.gB)(l,h),b=u(a.id),D=function(e){var t=e<<13^e,n=t>>17^t;return n<<5^n},O=function(e){return D(Math.trunc(536870912*function(e){return e-Math.trunc(e)}(e/300)))},k=function(e){return e%536870912/536870912},A=function(e){return Math.abs(k(O(e)))},w=u(A),x=function(e){return w.fmap((function(t){return t1?t-1:0),r=1;rt}),a)]};return e.fmap(h)},M=function(){return P.apply(void 0,arguments).outerJoin()},R=function(){for(var e=arguments.length,t=new Array(e),n=0;nt})))},o.cf.prototype._degradeBy=function(e){return this._degradeByWith(w,e)},o.cf.prototype.degrade=function(){return this._degradeBy(.5)},o.cf.prototype._undegradeBy=function(e){return this._degradeByWith(w.fmap((function(e){return 1-e})),e)},o.cf.prototype.undegrade=function(){return this._undegradeBy(.5)},o.cf.prototype._sometimesBy=function(e,t){return(0,o.kn)(this._degradeBy(e),t(this._undegradeBy(1-e)))},o.cf.prototype.sometimesBy=function(e,t){var n=this;return(0,o.ip)(e).fmap((function(e){return n._sometimesBy(e,t)})).innerJoin()},o.cf.prototype._sometimesByPre=function(e,t){return(0,o.kn)(this._degradeBy(e),t(this).undegradeBy(1-e))},o.cf.prototype.sometimesByPre=function(e,t){var n=this;return(0,o.ip)(e).fmap((function(e){return n._sometimesByPre(e,t)})).innerJoin()},o.cf.prototype.sometimes=function(e){return this._sometimesBy(.5,e)},o.cf.prototype.sometimesPre=function(e){return this._sometimesByPre(.5,e)},o.cf.prototype._someCyclesBy=function(e,t){return(0,o.kn)(this._degradeByWith(w._segment(1),e),t(this._degradeByWith(w.fmap((function(e){return 1-e}))._segment(1),1-e)))},o.cf.prototype.someCyclesBy=function(e,t){var n=this;return(0,o.ip)(e).fmap((function(e){return n._someCyclesBy(e,t)})).innerJoin()},o.cf.prototype.someCycles=function(e){return this._someCyclesBy(.5,e)},o.cf.prototype.often=function(e){return this.sometimesBy(.75,e)},o.cf.prototype.rarely=function(e){return this.sometimesBy(.25,e)},o.cf.prototype.almostNever=function(e){return this.sometimesBy(.1,e)},o.cf.prototype.almostAlways=function(e){return this.sometimesBy(.9,e)},o.cf.prototype.never=function(e){return this},o.cf.prototype.always=function(e){return e(this)},o.cf.prototype.patternified.push("degradeBy","undegradeBy");var j=n(5098),Z=n(471)},3811:function(e,t,n){"use strict";n.d(t,{cf:function(){return m},IH:function(){return N},d3:function(){return C},yo:function(){return L},ej:function(){return j},hi:function(){return Z},oX:function(){return Q},B9:function(){return W},yW:function(){return G},q3:function(){return V},gB:function(){return x},JB:function(){return H},U_:function(){return $},R:function(){return D},he:function(){return z},ey:function(){return U},qX:function(){return Y},bR:function(){return X},wt:function(){return K},fq:function(){return J},M8:function(){return de},sS:function(){return ee},dC:function(){return te},S1:function(){return ne},NC:function(){return pe},Ec:function(){return me},mF:function(){return ve},D:function(){return re},pm:function(){return M},DZ:function(){return P},Yh:function(){return B},df:function(){return R},pr:function(){return I},Le:function(){return b},w6:function(){return ie},wA:function(){return oe},ip:function(){return O},OD:function(){return ae},A9:function(){return F},vP:function(){return T},t8:function(){return fe},Bv:function(){return E},Yu:function(){return se},Dr:function(){return A},Gf:function(){return w},kn:function(){return k},n_:function(){return ue},lu:function(){return ce},dv:function(){return le},$E:function(){return S},gx:function(){return he}});var r=n(9439),i=n(3433),o=n(7762),a=n(1413),s=n(5671),u=n(3144),c=n(471),l=n(8090),f=n(5559),h=n(5098),d=n(1775);for(var p=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=0,r=(0,l.Z)(0),o=[""],a="";o[0].length0&&(o=o.concat(Array(l).fill(a))),o=o.map((function(e,t){var r=u[t];return r?e+(r.whole.begin.eq(n)?""+r.value:"-"):e+"."})),a+=".",r=r.add(c)},d=0;d0&&void 0!==arguments[0]&&arguments[0],t=this;return e||(t=t._stripContext()),t.query(new h.C(new c.Z((0,l.Z)(0),(0,l.Z)(1))))}},{key:"_firstCycleValues",get:function(){return this.firstCycle().map((function(e){return e.value}))}},{key:"_showFirstCycle",get:function(){return this.firstCycle().map((function(e){return"".concat(e.value,": ").concat(e.whole.begin.toFraction()," - ").concat(e.whole.end.toFraction())}))}},{key:"_sortEventsByPart",value:function(){return this._withEvents((function(e){return e.sort((function(e,t){return e.part.begin.sub(t.part.begin).or(e.part.end.sub(t.part.end)).or(e.whole.begin.sub(t.whole.begin).or(e.whole.end.sub(t.whole.end)))}))}))}},{key:"_opLeft",value:function(e,t){return this.fmap(t).appLeft(O(e))}},{key:"_opRight",value:function(e,t){return this.fmap(t).appRight(O(e))}},{key:"_opBoth",value:function(e,t){return this.fmap(t).appBoth(O(e))}},{key:"_opSqueeze",value:function(e,t){var n=O(e);return this.fmap((function(e){return n.fmap((function(n){return t(e)(n)}))}))._squeezeJoin()}},{key:"_opSqueezeFlip",value:function(e,t){var n=this;return O(e).fmap((function(e){return n.fmap((function(n){return t(n)(e)}))}))._squeezeJoin()}},{key:"_asNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._withEvent((function(t){var n=Number(t.value);if(!isNaN(n))return t.withValue((function(){return n}));var r={e:Math.E,pi:Math.PI}[t.value];if("undefined"!==typeof r)return t.withValue((function(){return r}));if((0,d.gi)(t.value))return new f.Z(t.whole,t.part,(0,d.dL)(t.value),(0,a.Z)((0,a.Z)({},t.context),{},{type:"midi"}));if(!e)throw new Error('cannot parse as number: "'+t.value+'"');return t.withValue((function(){}))}))._removeUndefineds()}},{key:"round",value:function(){return this._asNumber().fmap((function(e){return Math.round(e)}))}},{key:"floor",value:function(){return this._asNumber().fmap((function(e){return Math.floor(e)}))}},{key:"ceil",value:function(){return this._asNumber().fmap((function(e){return Math.ceil(e)}))}},{key:"_toBipolar",value:function(){return this.fmap((function(e){return 2*e-1}))}},{key:"_fromBipolar",value:function(){return this.fmap((function(e){return(e+1)/2}))}},{key:"range",value:function(e,t){return this.mul(t-e).add(e)}},{key:"rangex",value:function(e,t){return this.range(Math.log(e),Math.log(t)).fmap(Math.exp)}},{key:"range2",value:function(e,t){return this._fromBipolar().range(e,t)}},{key:"_bindWhole",value:function(t,n){var r=this;return new e((function(e){var i=function(r){return n(r.value).query(e.setSpan(r.part)).map((function(e){return function(e,n){return new f.Z(t(e.whole,n.whole),n.part,n.value,Object.assign({},e.context,n.context,{locations:(e.context.locations||[]).concat(n.context.locations||[])}))}(r,e)}))};return(0,d.xH)(r.query(e).map((function(e){return i(e)})))}))}},{key:"bind",value:function(e){return this._bindWhole((function(e,t){if(void 0!=e&&void 0!=t)return e.intersection_e(t)}),e)}},{key:"join",value:function(){return this.bind(d.id)}},{key:"outerBind",value:function(e){return this._bindWhole((function(e,t){return e}),e)}},{key:"outerJoin",value:function(){return this.outerBind(d.id)}},{key:"innerBind",value:function(e){return this._bindWhole((function(e,t){return t}),e)}},{key:"innerJoin",value:function(){return this.innerBind(d.id)}},{key:"_squeezeJoin",value:function(){var t=this;return new e((function(e){var n=t.query(e);return(0,d.xH)(n.map((function(t){return t.value._compressSpan(t.wholeOrPart().cycleArc()).query(e.setSpan(t.part)).map((function(e){return function(e,t){var n=void 0;if(!t.whole||!e.whole||(n=t.whole.intersection(e.whole))){var r=t.part.intersection(e.part);if(r){var i=t.combineContext(e);return new f.Z(n,r,t.value,i)}}}(t,e)}))}))).filter((function(e){return e}))}))}},{key:"_squeezeBind",value:function(e){return this.fmap(e)._squeezeJoin()}},{key:"_apply",value:function(e){return e(this)}},{key:"layer",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]&&arguments[1];return A.apply(void 0,(0,i.Z)((0,d.XQ)(0,e-1).map((function(r){return n?t.late(r/e):t.early(r/e)}))))}},{key:"iterBack",value:function(e){return this.iter(e,!0)}},{key:"_chunk",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Array(e-1).fill(!1);r.unshift(!0);var o=T.apply(void 0,(0,i.Z)(r)).iter(e,n);return this.when(o,t)}},{key:"_chunkBack",value:function(e,t){return this._chunk(e,t,!0)}},{key:"edit",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};n.composable&&(m.prototype.composable[e]=t),n.patternified&&(m.prototype.patternified=m.prototype.patternified.concat([e])),m.prototype.bootstrap()},m.prototype.define("hush",(function(e){return e.hush()}),{patternified:!1,composable:!0}),m.prototype.define("bypass",(function(e){return e.bypass(on)}),{patternified:!0,composable:!0})},5098:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5671),i=n(3144),o=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.Z)(this,e),this.span=t,this.controls=n}return(0,i.Z)(e,[{key:"setSpan",value:function(t){return new e(t,this.controls)}},{key:"withSpan",value:function(e){return this.setSpan(e(this.span))}},{key:"setControls",value:function(t){return new e(this.span,t)}}]),e}();t.C=o},471:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(5671),i=n(3144),o=n(8090),a=function(){function e(t,n){(0,r.Z)(this,e),this.begin=(0,o.Z)(t),this.end=(0,o.Z)(n)}return(0,i.Z)(e,[{key:"spanCycles",get:function(){for(var t=[],n=this.begin,r=this.end,i=r.sam();r.gt(n);){if(n.sam().equals(i)){t.push(new e(n,this.end));break}var o=n.nextSam();t.push(new e(n,o)),n=o}return t}},{key:"cycleArc",value:function(){var t=this.begin.cyclePos(),n=t.add(this.end.sub(this.begin));return new e(t,n)}},{key:"withTime",value:function(t){return new e(t(this.begin),t(this.end))}},{key:"withEnd",value:function(t){return new e(this.begin,t(this.end))}},{key:"withCycle",value:function(t){var n=this.begin.sam();return new e(n.add(t(this.begin.sub(n))),n.add(t(this.end.sub(n))))}},{key:"intersection",value:function(t){var n=this.begin.max(t.begin),r=this.end.min(t.end);if(!n.gt(r)){if(n.equals(r)){if(n.equals(this.end)&&this.begin.lt(this.end))return;if(n.equals(t.end)&&t.begin.lt(t.end))return}return new e(n,r)}}},{key:"intersection_e",value:function(e){var t=this.intersection(e);if(void 0==t)throw"TimeSpans do not intersect";return t}},{key:"midpoint",value:function(){return this.begin.add(this.end.sub(this.begin).div((0,o.Z)(2)))}},{key:"equals",value:function(e){return this.begin.equals(e.begin)&&this.end.equals(e.end)}},{key:"show",value:function(){return this.begin.show()+" -> "+this.end.show()}}]),e}();t.Z=a},1775:function(e,t,n){"use strict";n.d(t,{$4:function(){return u},LQ:function(){return l},Nb:function(){return f},TL:function(){return a},U1:function(){return h},WA:function(){return E},XQ:function(){return _},a9:function(){return g},dL:function(){return s},gi:function(){return o},id:function(){return y},po:function(){return m},qC:function(){return p},wQ:function(){return c},xH:function(){return v},zG:function(){return d}});var r=n(3433),i=n(9439),o=function(e){return/^[a-gA-G][#b]*[0-9]$/.test(e)},a=function(e){var t;if("string"!==typeof e)return[];var n=(null===(t=e.match(/^([a-gA-G])([#b]*)([0-9])?$/))||void 0===t?void 0:t.slice(1))||[],r=(0,i.Z)(n,3),o=r[0],a=r[1],s=void 0===a?"":a,u=r[2];return o?[o,s,u?Number(u):void 0]:[]},s=function(e){var t=a(e),n=(0,i.Z)(t,3),r=n[0],o=n[1],s=n[2];if(!r)throw new Error('not a note: "'+e+'"');var u={c:0,d:2,e:4,f:5,g:7,a:9,b:11}[r.toLowerCase()],c=(null===o||void 0===o?void 0:o.split("").reduce((function(e,t){return e+{"#":1,b:-1}[t]}),0))||0;return 12*(Number(s)+1)+u+c},u=function(e){return 440*Math.pow(2,(e-69)/12)},c=function(e,t){return(e%t+t)%t},l=function(e){var t=e.value,n=e.context;if("number"===typeof t&&"frequency"!==n.type)t=u(e.value);else if("string"===typeof t&&!o(t))throw new Error("not a note: "+t);return t},f=function(e){var t=e.value,n=e.context;if("object"===typeof t&&t.freq)return t.freq;if("number"===typeof t&&"frequency"!==n.type)t=u(e.value);else if("string"===typeof t&&o(t))t=u(s(e.value));else if("number"!==typeof t)throw new Error("not a note or frequency:"+t);return t},h=function(e,t){return e.slice(t).concat(e.slice(0,t))},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length)return e.apply(this,i);var a=function(){for(var e=arguments.length,t=new Array(e),r=0;r {\n".concat(e,"\n})()");var t=function(e){var t=e.statements[0].expression.callee.body;t.statements=t.statements.slice(0,-1).concat([new l.Jo({expression:t.statements.slice(-1)[0]})])};return{code:e,addReturn:t}}(e),n=t.code,o=t.addReturn,a=(0,i.Mi)(n),s=[],u=[],c=d(a.tree,{enter:function(e,t){var i,o,c;if(u.push(t),u.some((function(e){return s.includes(e)})))return e;if(function(e){return"TemplateExpression"===e.type&&1===e.elements.length}(e))return k(e,e,a.locations,s);if(1===(null===(i=e.directives)||void 0===i?void 0:i.length)&&(null===(o=e.statements)||void 0===o||!o.length)){var f=k(new l.kK({value:e.directives[0].rawValue}),e.directives[0],a.locations,s);return(0,r.Z)((0,r.Z)({},e),{},{directives:[],statements:[f]})}if(function(e,t,n){if("LiteralStringExpression"!==e.type)return!1;var r=t.get(e);return'"'===n.slice(r.start.offset,r.end.offset)[0]}(e,a.locations,n))return k(e,e,a.locations,s);var h={"*":"fast","/":"slow","&":"stack","&&":"append"};if("BinaryExpression"===e.type&&h[e.operator]&&["LiteralNumericExpression","LiteralStringExpression","IdentifierExpression"].includes(null===(c=e.right)||void 0===c?void 0:c.type)&&function(e){return"IdentifierExpression"===e.type&&v(e.name)||D(e)}(e.left)){var d=e.left;return"IdentifierExpression"===e.left.type&&(d=_("reify",e.left)),new l.Lt({callee:new l.AR({property:h[e.operator],object:_("reify",d)}),arguments:[e.right]})}var p=E(u)||function(e){return"StaticMemberExpression"===(null===e||void 0===e?void 0:e.type)&&Object.keys(m.prototype.composable).includes(e.property)}(t);if("CallExpression"===e.type&&"pure"===e.callee.name)return O(e.arguments[0],e.arguments[0],a.locations,s);if("IdentifierExpression"===e.type){if(v(e.name)){var g="s"===e.name[1]?e.name.replace("s","#"):e.name;return p?O(new l.kK({value:g}),e,a.locations,s):new l.kK({value:g})}if("r"===e.name)return new l.YI({name:"silence"})}return["LiteralStringExpression"].includes(e.type)&&p?O(e,e,a.locations,s):y?function(e,t,n){var r=["mini","m"];if("CallExpression"===e.type&&r.includes(e.callee.name)){if(e.arguments.length>1)return console.warn("multi arg mini locations not supported yet..."),e;var i=e.arguments[0];return k(i,i,t,n)}if("StaticMemberExpression"===e.type&&r.includes(e.property))return k(e.object,e,t,n);return e}(e,a.locations,s):e},leave:function(){u.pop()}});return o(c),p(c)};function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re)return C[t-1]<=e;return!1}function F(e){return e>=127462&&e<=127487}function q(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(n?B:P)(e,t,r)}function B(e,t,n){if(t==e.length)return t;t&&M(e.charCodeAt(t))&&R(e.charCodeAt(t-1))&&t--;var r=I(e,t);for(t+=L(r);t=0&&F(I(e,a));)o++,a-=2;if(o%2==0)break;t+=2}}return t}function P(e,t,n){for(;t>0;){var r=B(e,t-2,n);if(r=56320&&e<57344}function R(e){return e>=55296&&e<56320}function I(e,t){var n=e.charCodeAt(t);if(!R(n)||t+1==e.length)return n;var r=e.charCodeAt(t+1);return M(r)?r-56320+(n-55296<<10)+65536:n}function N(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function L(e){return e<65536?1:2}function j(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,i=0;i=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=q(e,i)}return!0===r?-1:e.length}var Q=function(){function e(){(0,w.Z)(this,e)}return(0,x.Z)(e,[{key:"lineAt",value:function(e){if(e<0||e>this.length)throw new RangeError("Invalid position ".concat(e," in document of length ").concat(this.length));return this.lineInner(e,!1,1,0)}},{key:"line",value:function(e){if(e<1||e>this.lines)throw new RangeError("Invalid line number ".concat(e," in ").concat(this.lines,"-line document"));return this.lineInner(e,!0,1,0)}},{key:"replace",value:function(e,t,n){var r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),G.from(r,this.length-(t-e)+n.length)}},{key:"append",value:function(e){return this.replace(this.length,this.length,e)}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=[];return this.decompose(e,t,n,0),G.from(n,t-e)}},{key:"eq",value:function(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;for(var t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new z(this),i=new z(e),o=t,a=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}},{key:"iter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new z(this,e)}},{key:"iterRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new U(this,e,t)}},{key:"iterLines",value:function(e,t){var n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);var r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Y(n)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var e=[];return this.flatten(e),e}}],[{key:"of",value:function(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new W(t):G.from(W.split(t,[])):e.empty}}]),e}(),W=function(e){E(n,e);var t=k(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V(e);return(0,w.Z)(this,n),(r=t.call(this)).text=e,r.length=i,r}return(0,x.Z)(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(e,t,n,r){for(var i=0;;i++){var o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new X(r,a,n,o);r=a+1,n++}}},{key:"decompose",value:function(e,t,r,i){var o=e<=0&&t>=this.length?this:new n($(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){var a=r.pop(),s=H(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new n(s,a.length+o.length));else{var u=s.length>>1;r.push(new n(s.slice(0,u)),new n(s.slice(u)))}}else r.push(o)}},{key:"replace",value:function(e,t,r){if(!(r instanceof n))return g(v(n.prototype),"replace",this).call(this,e,t,r);var i=H(this.text,H(r.text,$(this.text,0,e)),t),o=this.length+r.length-(t-e);return i.length<=32?new n(i,o):G.from(n.split(i,[]),o)}},{key:"sliceString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}},{key:"flatten",value:function(e){var t,n=(0,p.Z)(this.text);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(e,t){var r,i=[],o=-1,a=(0,p.Z)(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;i.push(s),o+=s.length+1,32==i.length&&(t.push(new n(i,o)),i=[],o=-1)}}catch(u){a.e(u)}finally{a.f()}return o>-1&&t.push(new n(i,o)),t}}]),n}(Q),G=function(e){E(n,e);var t=k(n);function n(e,r){var i;(0,w.Z)(this,n),(i=t.call(this)).children=e,i.length=r,i.lines=0;var o,a=(0,p.Z)(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.lines+=s.lines}}catch(u){a.e(u)}finally{a.f()}return i}return(0,x.Z)(n,[{key:"lineInner",value:function(e,t,n,r){for(var i=0;;i++){var o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}},{key:"decompose",value:function(e,t,n,r){for(var i=0,o=0;o<=t&&i=o){var u=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!u?n.push(a):a.decompose(e-o,t-o,n,u)}o=s+1}}},{key:"replace",value:function(e,t,r){if(r.lines=o&&t<=s){var u=a.replace(e-o,t-o,r),c=this.lines-a.lines+u.lines;if(u.lines>4&&u.lines>c>>6){var l=this.children.slice();return l[i]=u,new n(l,this.length-(t-e)+r.length)}return g(v(n.prototype),"replace",this).call(this,o,s,u)}o=s+1}return g(v(n.prototype),"replace",this).call(this,e,t,r)}},{key:"sliceString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}},{key:"flatten",value:function(e){var t,n=(0,p.Z)(this.children);try{for(n.s();!(t=n.n()).done;){t.value.flatten(e)}}catch(r){n.e(r)}finally{n.f()}}},{key:"scanIdentical",value:function(e,t){if(!(e instanceof n))return 0;for(var r=0,i=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1],o=(0,f.Z)(i,4),a=o[0],s=o[1],u=o[2],c=o[3];;a+=t,s+=t){if(a==u||s==c)return r;var l=this.children[a],h=e.children[s];if(l!=h)return r+l.scanIdentical(h,t);r+=l.length+1}}}],[{key:"from",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.reduce((function(e,t){return e+t.length+1}),-1),i=0,o=(0,p.Z)(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;i+=a.lines}}catch(k){o.e(k)}finally{o.f()}if(i<32){var s,u=[],c=(0,p.Z)(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;l.flatten(u)}}catch(k){c.e(k)}finally{c.f()}return new W(u,r)}var f=Math.max(32,i>>5),h=f<<1,d=f>>1,m=[],v=0,y=-1,g=[];function _(e){var t;if(e.lines>h&&e instanceof n){var r,i=(0,p.Z)(e.children);try{for(i.s();!(r=i.n()).done;){_(r.value)}}catch(k){i.e(k)}finally{i.f()}}else e.lines>d&&(v>d||!v)?(E(),m.push(e)):e instanceof W&&v&&(t=g[g.length-1])instanceof W&&e.lines+t.lines<=32?(v+=e.lines,y+=e.length+1,g[g.length-1]=new W(t.text.concat(e.text),t.length+1+e.length)):(v+e.lines>f&&E(),v+=e.lines,y+=e.length+1,g.push(e))}function E(){0!=v&&(m.push(1==g.length?g[0]:n.from(g,y)),y=-1,v=g.length=0)}var b,D=(0,p.Z)(e);try{for(D.s();!(b=D.n()).done;){var O=b.value;_(O)}}catch(k){D.e(k)}finally{D.f()}return E(),1==m.length?m[0]:new n(m,r)}}]),n}(Q);function V(e){var t,n=-1,r=(0,p.Z)(e);try{for(r.s();!(t=r.n()).done;){n+=t.value.length+1}}catch(i){r.e(i)}finally{r.f()}return n}function H(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,i=0,o=0,a=!0;o=n&&(u>r&&(s=s.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;(0,w.Z)(this,e),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof W?t.text.length:t.children.length)<<1]}return(0,x.Z)(e,[{key:"nextInner",value:function(e,t){for(this.done=this.lineBreak=!1;;){var n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof W?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof W){var s=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,s.length>Math.max(0,e))return this.value=0==e?s:t>0?s.slice(e):s.slice(0,s.length-e),this;e-=s.length}else{var u=r.children[o+(t<0?-1:0)];e>u.length?(e-=u.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(u),this.offsets.push(t>0?1:(u instanceof W?u.text.length:u.children.length)<<1))}}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}]),e}(),U=function(){function e(t,n,r){(0,w.Z)(this,e),this.value="",this.done=!1,this.cursor=new z(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}return(0,x.Z)(e,[{key:"nextInner",value:function(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);var n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;var r=this.cursor.next(e).value;return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),e}(),Y=function(){function e(t){(0,w.Z)(this,e),this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}return(0,x.Z)(e,[{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.inner.next(e),n=t.done,r=t.lineBreak,i=t.value;return n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),e}();"undefined"!=typeof Symbol&&(Q.prototype[Symbol.iterator]=function(){return this.iter()},z.prototype[Symbol.iterator]=U.prototype[Symbol.iterator]=Y.prototype[Symbol.iterator]=function(){return this});var X=function(){function e(t,n,r,i){(0,w.Z)(this,e),this.from=t,this.to=n,this.number=r,this.text=i}return(0,x.Z)(e,[{key:"length",get:function(){return this.to-this.from}}]),e}(),K=/\r\n?|\n/,J=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(J||(J={})),ee=function(){function e(t){(0,w.Z)(this,e),this.sections=t}return(0,x.Z)(e,[{key:"length",get:function(){for(var e=0,t=0;t1&&void 0!==arguments[1]&&arguments[1];ie(this,e,t)}},{key:"invertedDesc",get:function(){for(var t=[],n=0;n1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:oe(this,e,t)}},{key:"mapPos",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J.Simple,r=0,i=0,o=0;oe)return i+(e-r);i+=a}else{if(n!=J.Simple&&u>=e&&(n==J.TrackDel&&re||n==J.TrackBefore&&re))return null;if(u>e||u==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=u}if(e>r)throw new RangeError("Position ".concat(e," is out of range for changeset of length ").concat(r));return i}},{key:"touchesRange",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=0,r=0;n=0&&r<=t&&a>=e)return!(rt)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var e="",t=0;t=0?":"+r:"")}return e}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(t){if(!Array.isArray(t)||t.length%2||t.some((function(e){return"number"!=typeof e})))throw new RangeError("Invalid JSON representation of ChangeDesc");return new e(t)}}]),e}(),te=function(e){E(n,e);var t=k(n);function n(e,r){var i;return(0,w.Z)(this,n),(i=t.call(this,e)).inserted=r,i}return(0,x.Z)(n,[{key:"apply",value:function(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ie(this,(function(t,n,r,i,o){return e=e.replace(r,r+(n-t),o)}),!1),e}},{key:"mapDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return oe(this,e,t,!0)}},{key:"invert",value:function(e){for(var t=this.sections.slice(),r=[],i=0,o=0;i=0){t[i]=s,t[i+1]=a;for(var u=i>>1;r.length1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:oe(this,e,t,!0)}},{key:"iterChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(this,e,t)}},{key:"desc",get:function(){return new ee(this.sections)}},{key:"filter",value:function(e){var t=[],r=[],i=[],o=new se(this);e:for(var a=0,s=0;;){for(var u=a==e.length?1e9:e[a++];s0&&re(r,t,o.text),o.forward(c),s+=c}for(var f=e[a++];s>1].toJSON()))}return e}}],[{key:"of",value:function(e,t,r){var i=[],o=[],a=0,s=null;function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||i.length){am||h<0||m>t)throw new RangeError("Invalid change range ".concat(h," to ").concat(m," (in doc of length ").concat(t,")"));var y=v?"string"==typeof v?Q.of(v.split(r||K)):v:Q.empty,g=y.length;if(h==m&&0==g)return;ha&&ne(i,h-a,-1),ne(i,m-h,g),re(o,i,y),a=m}}(e),u(!s),s}},{key:"empty",value:function(e){return new n(e?[e,-1]:[],[])}},{key:"fromJSON",value:function(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");for(var t=[],r=[],i=0;i3&&void 0!==arguments[3]&&arguments[3];if(!(0==t&&n<=0)){var i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}}function re(e,t,n){if(0!=n.length){var r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],u=e.sections[a++];t(i,c,o,l,f),i=c,o=l}}}function oe(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],o=r?[]:null,a=new se(e),s=new se(t),u=0,c=0;;)if(-1==a.ins)u+=a.len,a.next();else if(-1==s.ins&&c=0&&(a.done||cc&&!a.done&&u+a.len=0)){if(a.done&&s.done)return o?new te(i,o):new ee(i);throw new Error("Mismatched change set lengths")}for(var f=0,h=u+a.len;;)if(s.ins>=0&&c>u&&c+s.len2&&void 0!==arguments[2]&&arguments[2],r=[],i=n?[]:null,o=new se(e),a=new se(t),s=!1;;){if(o.done&&a.done)return i?new te(r,i):new ee(r);if(0==o.ins)ne(r,o.len,0,s),o.next();else if(0!=a.len||a.done){if(o.done||a.done)throw new Error("Mismatched change set lengths");var u=Math.min(o.len2,a.len),c=r.length;if(-1==o.ins){var l=-1==a.ins?-1:a.off?0:a.ins;ne(r,u,l,s),i&&l&&re(i,r,a.text)}else-1==a.ins?(ne(r,o.off?0:o.len,u,s),i&&re(i,r,o.textBit(u))):(ne(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&re(i,r,a.text));s=(o.ins>u||a.ins>=0&&a.len>u)&&(s||r.length>c),o.forward2(u),a.forward(u)}else ne(r,0,a.ins,s),i&&re(i,r,a.text),a.next()}}var se=function(){function e(t){(0,w.Z)(this,e),this.set=t,this.i=0,this.next()}return(0,x.Z)(e,[{key:"next",value:function(){var e=this.set.sections;this.i>1;return t>=e.length?Q.empty:e[t]}},{key:"textBit",value:function(e){var t=this.set.inserted,n=this.i-2>>1;return n>=t.length&&!e?Q.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}},{key:"forward",value:function(e){e==this.len?this.next():(this.len-=e,this.off+=e)}},{key:"forward2",value:function(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}]),e}(),ue=function(){function e(t,n,r){(0,w.Z)(this,e),this.from=t,this.to=n,this.flags=r}return(0,x.Z)(e,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var e=3&this.flags;return 3==e?null:e}},{key:"goalColumn",get:function(){var e=this.flags>>5;return 33554431==e?void 0:e}},{key:"map",value:function(t){var n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?n=r=t.mapPos(this.from,i):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new e(n,r,this.flags)}},{key:"extend",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return ce.range(e,t);var n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return ce.range(this.anchor,n)}},{key:"eq",value:function(e){return this.anchor==e.anchor&&this.head==e.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return ce.range(e.anchor,e.head)}}]),e}(),ce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,w.Z)(this,e),this.ranges=t,this.mainIndex=n}return(0,x.Z)(e,[{key:"map",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t.empty?this:e.create(this.ranges.map((function(e){return e.map(t,n)})),this.mainIndex)}},{key:"eq",value:function(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(var t=0;t1&&void 0!==arguments[1])||arguments[1];return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(e){return e.toJSON()})),main:this.mainIndex}}}],[{key:"fromJSON",value:function(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new e(t.ranges.map((function(e){return ue.fromJSON(e)})),t.main)}},{key:"single",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return new e([e.range(t,n)],0)}},{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==t.length)throw new RangeError("A selection needs at least one range");for(var r=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new ue(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!==r&&void 0!==r?r:33554431)<<5)}},{key:"range",value:function(e,t,n){var r=(null!==n&&void 0!==n?n:33554431)<<5;return te?4:0))}}]),e}();function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t];e.sort((function(e,t){return e.from-t.from})),t=e.indexOf(n);for(var r=1;ri.head?ce.range(s,a):ce.range(a,s))}}return new ce(e,t)}function fe(e,t){var n,r=(0,p.Z)(e.ranges);try{for(r.s();!(n=r.n()).done;){if(n.value.to>t)throw new RangeError("Selection points outside of document")}}catch(i){r.e(i)}finally{r.f()}}var he=0,de=function(){function e(t,n,r,i,o){(0,w.Z)(this,e),this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.extensions=o,this.id=he++,this.default=t([])}return(0,x.Z)(e,[{key:"of",value:function(e){return new me([],this,0,e)}},{key:"compute",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new me(e,this,1,t)}},{key:"computeN",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new me(e,this,2,t)}},{key:"from",value:function(e,t){return t||(t=function(e){return e}),this.compute([e],(function(n){return t(n.field(e))}))}}],[{key:"define",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e(t.combine||function(e){return e},t.compareInput||function(e,t){return e===t},t.compare||(t.combine?function(e,t){return e===t}:pe),!!t.static,t.enables)}}]),e}();function pe(e,t){return e==t||e.length==t.length&&e.every((function(e,n){return e===t[n]}))}var me=function(){function e(t,n,r,i){(0,w.Z)(this,e),this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=he++}return(0,x.Z)(e,[{key:"dynamicSlot",value:function(e){var t,n,r=this.value,i=this.facet.compareInput,o=this.id,a=e[o]>>1,s=2==this.type,u=!1,c=!1,l=[],f=(0,p.Z)(this.dependencies);try{for(f.s();!(n=f.n()).done;){var h=n.value;"doc"==h?u=!0:"selection"==h?c=!0:0==(1&(null!==(t=e[h.id])&&void 0!==t?t:1))&&l.push(e[h.id])}}catch(d){f.e(d)}finally{f.f()}return{create:function(e){return e.values[a]=r(e),1},update:function(e,t){if(u&&t.docChanged||c&&(t.docChanged||t.selection)||l.some((function(t){return(1&Te(e,t))>0}))){var n=r(e);if(s?!ve(n,e.values[a],i):!i(n,e.values[a]))return e.values[a]=n,1}return 0},reconfigure:function(e,t){var n=r(e),u=t.config.address[o];if(null!=u){var c=Fe(t,u);if(s?ve(n,c,i):i(n,c))return e.values[a]=c,0}return e.values[a]=n,1}}}}]),e}();function ve(e,t,n){if(e.length!=t.length)return!1;for(var r=0;r>1;return{create:function(e){return e.values[n]=t.create(e),1},update:function(e,r){var i=e.values[n],o=t.updateF(i,r);return t.compareF(i,o)?0:(e.values[n]=o,1)},reconfigure:function(e,r){return null!=r.config.address[t.id]?(e.values[n]=r.field(t),0):(e.values[n]=t.create(e),1)}}}},{key:"init",value:function(e){return[this,ye.of({field:this,create:e})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(t){var n=new e(he++,t.create,t.update,t.compare||function(e,t){return e===t},t);return t.provide&&(n.provides=t.provide(n)),n}}]),e}(),_e=4,Ee=3,be=2,De=1,Oe=0;function ke(e){return function(t){return new we(t,e)}}var Ae={lowest:ke(_e),low:ke(Ee),default:ke(be),high:ke(De),highest:ke(Oe),fallback:ke(_e),extend:ke(De),override:ke(Oe)},we=(0,x.Z)((function e(t,n){(0,w.Z)(this,e),this.inner=t,this.prec=n})),xe=function(){function e(){(0,w.Z)(this,e)}return(0,x.Z)(e,[{key:"of",value:function(e){return new Ce(this,e)}},{key:"reconfigure",value:function(t){return e.reconfigure.of({compartment:this,extension:t})}},{key:"get",value:function(e){return e.config.compartments.get(this)}}]),e}(),Ce=(0,x.Z)((function e(t,n){(0,w.Z)(this,e),this.compartment=t,this.inner=n})),Se=function(){function e(t,n,r,i,o,a){for((0,w.Z)(this,e),this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(t,n,r){var i,o=[],a=Object.create(null),s=new Map,u=(0,p.Z)(function(e,t,n){var r=[[],[],[],[],[]],i=new Map;function o(e,a){var s=i.get(e);if(null!=s){if(s>=a)return;var u=r[s].indexOf(e);u>-1&&r[s].splice(u,1),e instanceof Ce&&n.delete(e.compartment)}if(i.set(e,a),Array.isArray(e)){var c,l=(0,p.Z)(e);try{for(l.s();!(c=l.n()).done;){o(c.value,a)}}catch(d){l.e(d)}finally{l.f()}}else if(e instanceof Ce){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");var f=t.get(e.compartment)||e.inner;n.set(e.compartment,f),o(f,a)}else if(e instanceof we)o(e.inner,e.prec);else if(e instanceof ge)r[a].push(e),e.provides&&o(e.provides,a);else if(e instanceof me)r[a].push(e),e.facet.extensions&&o(e.facet.extensions,a);else{var h=e.extension;if(!h)throw new Error("Unrecognized extension value in extension set (".concat(e,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));o(h,a)}}return o(e,be),r.reduce((function(e,t){return e.concat(t)}))}(t,n,s));try{for(u.s();!(i=u.n()).done;){var c=i.value;c instanceof ge?o.push(c):(a[c.facet.id]||(a[c.facet.id]=[])).push(c)}}catch(E){u.e(E)}finally{u.f()}for(var l=Object.create(null),f=[],h=[],d=function(){var e=v[m];l[e.id]=h.length<<1,h.push((function(t){return e.slot(t)}))},m=0,v=o;m>1;function s(e){for(var n=[],o=0;o>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;var i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function Fe(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}var qe=de.define(),Be=de.define({combine:function(e){return e.some((function(e){return e}))},static:!0}),Pe=de.define({combine:function(e){return e.length?e[0]:void 0},static:!0}),Me=de.define(),Re=de.define(),Ie=de.define(),Ne=de.define({combine:function(e){return!!e.length&&e[0]}}),Le=function(){function e(t,n){(0,w.Z)(this,e),this.type=t,this.value=n}return(0,x.Z)(e,null,[{key:"define",value:function(){return new je}}]),e}(),je=function(){function e(){(0,w.Z)(this,e)}return(0,x.Z)(e,[{key:"of",value:function(e){return new Le(this,e)}}]),e}(),Ze=function(){function e(t){(0,w.Z)(this,e),this.map=t}return(0,x.Z)(e,[{key:"of",value:function(e){return new Qe(this,e)}}]),e}(),Qe=function(){function e(t,n){(0,w.Z)(this,e),this.type=t,this.value=n}return(0,x.Z)(e,[{key:"map",value:function(t){var n=this.type.map(this.value,t);return void 0===n?void 0:n==this.value?this:new e(this.type,n)}},{key:"is",value:function(e){return this.type==e}}],[{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Ze(e.map||function(e){return e})}},{key:"mapEffects",value:function(e,t){if(!e.length)return e;var n,r=[],i=(0,p.Z)(e);try{for(i.s();!(n=i.n()).done;){var o=n.value.map(t);o&&r.push(o)}}catch(a){i.e(a)}finally{i.f()}return r}}]),e}();Qe.reconfigure=Qe.define(),Qe.appendConfig=Qe.define();var We=function(){function e(t,n,r,i,o,a){(0,w.Z)(this,e),this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&fe(r,n.newLength),o.some((function(t){return t.type==e.time}))||(this.annotations=o.concat(e.time.of(Date.now())))}return(0,x.Z)(e,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(e){var t,n=(0,p.Z)(this.annotations);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.type==e)return r.value}}catch(i){n.e(i)}finally{n.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(t){var n=this.annotation(e.userEvent);return!(!n||!(n==t||n.length>t.length&&n.slice(0,t.length)==t&&"."==n[t.length]))}}]),e}();function Ge(e,t){for(var n=[],r=0,i=0;;){var o=void 0,a=void 0;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){var o=n[i](e);o&&Object.keys(o).length&&(r=Ve(e,He(t,o,e.changes.newLength),!0))}return r==e?e:new We(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){var t,n=e.startState,r=!0,i=(0,p.Z)(n.facet(Me));try{for(i.s();!(t=i.n()).done;){var o=(0,t.value)(e);if(!1===o){r=!1;break}Array.isArray(o)&&(r=!0===r?o:Ge(r,o))}}catch(h){i.e(h)}finally{i.f()}if(!0!==r){var a,s;if(!1===r)s=e.changes.invertedDesc,a=te.empty(n.doc.length);else{var u=e.changes.filter(r);a=u.changes,s=u.filtered.invertedDesc}e=new We(n,a,e.selection&&e.selection.map(s),Qe.mapEffects(e.effects,s),e.annotations,e.scrollIntoView)}for(var c=n.facet(Re),l=c.length-1;l>=0;l--){var f=c[l](e);e=f instanceof We?f:Array.isArray(f)&&1==f.length&&f[0]instanceof We?f[0]:$e(n,Ue(f),!1)}return e}(a):a)}We.time=Le.define(),We.userEvent=Le.define(),We.addToHistory=Le.define(),We.remote=Le.define();var ze=[];function Ue(e){return null==e?ze:Array.isArray(e)?e:[e]}var Ye,Xe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Xe||(Xe={})),Ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{Ye=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(tC){}function Je(e){return function(t){if(!/\S/.test(t))return Xe.Space;if(function(e){if(Ye)return Ye.test(e);for(var t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||Ke.test(n)))return!0}return!1}(t))return Xe.Word;for(var n=0;n-1)return Xe.Word;return Xe.Other}}var et=function(){function e(t,n,r,i,o,a){(0,w.Z)(this,e),this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(var s=0;s1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return Te(this,n),Fe(this,n);if(t)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return t instanceof te?t:te.of(t,this.doc.length,this.facet(e.lineSeparator))}},{key:"toText",value:function(t){return Q.of(t.split(this.facet(e.lineSeparator)||K))}},{key:"sliceDoc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}},{key:"facet",value:function(e){var t=this.config.address[e.id];return null==t?e.default:(Te(this,t),Fe(this,t))}},{key:"toJSON",value:function(e){var t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(var n in e){var r=e[n];r instanceof ge&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}},{key:"tabSize",get:function(){return this.facet(e.tabSize)}},{key:"lineBreak",get:function(){return this.facet(e.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ne)}},{key:"phrase",value:function(t){var n,r=(0,p.Z)(this.facet(e.phrases));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Object.prototype.hasOwnProperty.call(i,t))return i[t]}}catch(o){r.e(o)}finally{r.f()}return t}},{key:"languageDataAt",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],o=(0,p.Z)(this.facet(qe));try{for(o.s();!(n=o.n()).done;){var a,s=n.value,u=(0,p.Z)(s(this,t,r));try{for(u.s();!(a=u.n()).done;){var c=a.value;Object.prototype.hasOwnProperty.call(c,e)&&i.push(c[e])}}catch(l){u.e(l)}finally{u.f()}}}catch(l){o.e(l)}finally{o.f()}return i}},{key:"charCategorizer",value:function(e){return Je(this.languageDataAt("wordChars",e).join(""))}},{key:"wordAt",value:function(e){for(var t=this.doc.lineAt(e),n=t.text,r=t.from,i=t.length,o=this.charCategorizer(e),a=e-r,s=e-r;a>0;){var u=q(n,a,!1);if(o(n.slice(u,a))!=Xe.Word)break;a=u}for(;s1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||"string"!=typeof t.doc)throw new RangeError("Invalid JSON representation for EditorState");var i=[];if(r){var o=function(e){var n=r[e],o=t[e];i.push(n.init((function(e){return n.spec.fromJSON(o,e)})))};for(var a in r)o(a)}return e.create({doc:t.doc,selection:ce.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}},{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Se.resolve(t.extensions||[],new Map),r=t.doc instanceof Q?t.doc:Q.of((t.doc||"").split(n.staticFacet(e.lineSeparator)||K)),i=t.selection?t.selection instanceof ce?t.selection:ce.single(t.selection.anchor,t.selection.head):ce.single(0);return fe(i,r.length),n.staticFacet(Be)||(i=i.asSingle()),new e(n,r,i,n.dynamicSlots.map((function(){return null})),(function(e,t){return t.create(e)}),null)}}]),e}();function tt(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={},o=(0,p.Z)(e);try{for(o.s();!(n=o.n()).done;)for(var a=n.value,s=0,u=Object.keys(a);s-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),t)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:e;return new ct(e,t,this)}}]),e}();ut.prototype.startSide=ut.prototype.endSide=0,ut.prototype.point=!1,ut.prototype.mapMode=J.TrackDel;var ct=(0,x.Z)((function e(t,n,r){(0,w.Z)(this,e),this.from=t,this.to=n,this.value=r}));function lt(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var ft=function(){function e(t,n,r,i){(0,w.Z)(this,e),this.from=t,this.to=n,this.value=r,this.maxPoint=i}return(0,x.Z)(e,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from,o=r,a=i.length;;){if(o==a)return o;var s=o+a>>1,u=i[s]-e||(n?this.value[s].endSide:this.value[s].startSide)-t;if(s==o)return u>=0?o:a;u>=0?a=s:o=s+1}}},{key:"between",value:function(e,t,n,r){for(var i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i(d=n.mapPos(f,c.endSide))||h==d&&c.startSide>0&&c.endSide<=0)continue;(d-h||c.endSide-c.startSide)<0||(a<0&&(a=h),c.point&&(s=Math.max(s,d-h)),r.push(c),i.push(h-a),o.push(d-a))}return{mapped:r.length?new e(i,o,r,s):null,pos:a}}}]),e}(),ht=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.empty,i=arguments.length>3?arguments[3]:void 0;(0,w.Z)(this,e),this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}return(0,x.Z)(e,[{key:"length",get:function(){var e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var e,t=this.nextLayer.size,n=(0,p.Z)(this.chunk);try{for(n.s();!(e=n.n()).done;){t+=e.value.value.length}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"chunkEnd",value:function(e){return this.chunkPos[e]+this.chunk[e].length}},{key:"update",value:function(t){var n=t.add,r=void 0===n?[]:n,i=t.sort,o=void 0!==i&&i,a=t.filterFrom,s=void 0===a?0:a,u=t.filterTo,c=void 0===u?this.length:u,l=t.filter;if(0==r.length&&!l)return this;if(o&&(r=r.slice().sort(lt)),this.isEmpty)return r.length?e.of(r):this;for(var f=new vt(this,null,-1).goto(0),h=0,d=[],p=new pt;f.value||h=0){var m=r[h++];p.addInner(m.from,m.to,m.value)||d.push(m)}else 1==f.rangeIndex&&f.chunkIndexthis.chunkEnd(f.chunkIndex)||cf.to||c=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}},{key:"iter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return yt.from([this]).goto(e)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"iter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return yt.from(e).goto(t)}},{key:"compare",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=e.filter((function(e){return e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i})),a=t.filter((function(e){return e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i})),s=mt(o,a,n),u=new _t(o,s,i),c=new _t(a,s,i);n.iterGaps((function(e,t,n){return Et(u,e,c,t,n,r)})),n.empty&&0==n.length&&Et(u,0,c,0,0,r)}},{key:"eq",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=1e9);var i=e.filter((function(e){return!e.isEmpty&&t.indexOf(e)<0})),o=t.filter((function(t){return!t.isEmpty&&e.indexOf(t)<0}));if(i.length!=o.length)return!1;if(!i.length)return!0;for(var a=mt(i,o),s=new _t(i,a,0).goto(n),u=new _t(o,a,0).goto(n);;){if(s.to!=u.to||!bt(s.active,u.active)||s.point&&(!u.point||!s.point.eq(u.point)))return!1;if(s.to>r)return!0;s.next(),u.next()}}},{key:"spans",value:function(e,t,n,r){for(var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=new _t(e,null,o,null===(i=r.filterPoint)||void 0===i?void 0:i.bind(r)).goto(t),s=t,u=a.openStart;;){var c=Math.min(a.to,n);if(a.point?(r.point(s,c,a.point,a.activeForPoint(a.to),u),u=a.openEnd(c)+(a.to>c?1:0)):c>s&&(r.span(s,c,a.active,u),u=a.openEnd(c)),a.to>n)break;s=a.to,a.next()}return u}},{key:"of",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new pt,i=(0,p.Z)(e instanceof ct?[e]:n?dt(e):e);try{for(i.s();!(t=i.n()).done;){var o=t.value;r.add(o.from,o.to,o.value)}}catch(a){i.e(a)}finally{i.f()}return r.finish()}}]),e}();function dt(e){if(e.length>1)for(var t=e[0],n=1;n0)return e.slice().sort(lt);t=r}return e}ht.empty=new ht([],[],null,-1),ht.empty.nextLayer=ht.empty;var pt=function(){function e(){(0,w.Z)(this,e),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return(0,x.Z)(e,[{key:"finishChunk",value:function(e){this.chunks.push(new ft(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new e)).add(t,n,r)}},{key:"addInner",value:function(e,t,n){var r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}},{key:"addChunk",value:function(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);var n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}},{key:"finish",value:function(){return this.finishInner(ht.empty)}},{key:"finishInner",value:function(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;var t=new ht(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}]),e}();function mt(e,t,n){var r,i=new Map,o=(0,p.Z)(e);try{for(o.s();!(r=o.n()).done;)for(var a=r.value,s=0;s3&&void 0!==arguments[3]?arguments[3]:0;(0,w.Z)(this,e),this.layer=t,this.skip=n,this.minPoint=r,this.rank=i}return(0,x.Z)(e,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}},{key:"gotoInner",value:function(e,t,n){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=(0,p.Z)(this.heap);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.goto(e,n)}}catch(a){r.e(a)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)gt(this.heap,o);return this.next(),this}},{key:"forward",value:function(e,t){var n,r=(0,p.Z)(this.heap);try{for(r.s();!(n=r.n()).done;){n.value.forward(e,t)}}catch(o){r.e(o)}finally{r.f()}for(var i=this.heap.length>>1;i>=0;i--)gt(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),gt(this.heap,0)}}}],[{key:"from",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],o=0;o=r&&i.push(new vt(a,n,r,o));return 1==i.length?i[0]:new e(i)}}]),e}();function gt(e,t){for(var n=e[t];;){var r=1+(t<<1);if(r>=e.length)break;var i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}var _t=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};(0,w.Z)(this,e),this.minPoint=r,this.filterPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=yt.from(t,n,r)}return(0,x.Z)(e,[{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}},{key:"forward",value:function(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}},{key:"removeActive",value:function(e){Dt(this.active,e),Dt(this.activeTo,e),Dt(this.activeRank,e),this.minActive=kt(this.active,this.activeTo)}},{key:"addActive",value:function(e){for(var t=0,n=this.cursor,r=n.value,i=n.to,o=n.rank;t-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&Dt(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point)if(t&&this.cursor.to==this.to&&this.cursor.from=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}},{key:"openEnd",value:function(e){for(var t=0,n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}]),e}();function Et(e,t,n,r,i,o){e.goto(t),n.goto(r);for(var a=r+i,s=r,u=r-t;;){var c=e.to+u-n.to||e.endSide-n.endSide,l=c<0?e.to+u:n.to,f=Math.min(l,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&bt(e.activeForPoint(e.to+u),n.activeForPoint(n.to))||o.comparePoint(s,f,e.point,n.point):f>s&&!bt(e.active,n.active)&&o.compareRange(s,f,e.active,n.active),l>a)break;s=l,c<=0&&e.next(),c>=0&&n.next()}}function bt(e,t){if(e.length!=t.length)return!1;for(var n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function kt(e,t){for(var n=-1,r=1e9,i=0;i",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},xt="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),Ct="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),St="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),Tt="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ft="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),qt=xt&&(Tt||+xt[1]<57)||St&&Tt,Bt=0;Bt<10;Bt++)At[48+Bt]=At[96+Bt]=String(Bt);for(Bt=1;Bt<=24;Bt++)At[Bt+111]="F"+Bt;for(Bt=65;Bt<=90;Bt++)At[Bt]=String.fromCharCode(Bt+32),wt[Bt]=String.fromCharCode(Bt);for(var Pt in At)wt.hasOwnProperty(Pt)||(wt[Pt]=At[Pt]);function Mt(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function Rt(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function It(e,t){if(!t.anchorNode)return!1;try{return Rt(e,t.anchorNode)}catch(tC){return!1}}function Nt(e){return 3==e.nodeType?Yt(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Lt(e,t,n,r){return!!n&&(Zt(e,t,n,r,-1)||Zt(e,t,n,r,1))}function jt(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Zt(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Qt(e))){if("DIV"==e.nodeName)return!1;var o=e.parentNode;if(!o||1!=o.nodeType)return!1;t=jt(e)+(i<0?0:1),e=o}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?Qt(e):0}}}function Qt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}var Wt={left:0,right:0,top:0,bottom:0};function Gt(e,t){var n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Vt(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}var Ht,$t=function(){function e(){(0,w.Z)(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return(0,x.Z)(e,[{key:"eq",value:function(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}},{key:"setRange",value:function(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}},{key:"set",value:function(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}]),e}(),zt=null;function Ut(e){if(e.setActive)return e.setActive();if(zt)return e.focus(zt);for(var t=[],n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==zt?{get preventScroll(){return zt={preventScroll:!0},!0}}:void 0),!zt){zt=!1;for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:t,r=Ht||(Ht=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function Xt(e,t,n){var r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);var o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function Kt(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function Jt(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}var en=function(){function e(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,w.Z)(this,e),this.node=t,this.offset=n,this.precise=r}return(0,x.Z)(e,null,[{key:"before",value:function(t,n){return new e(t.parentNode,jt(t),n)}},{key:"after",value:function(t,n){return new e(t.parentNode,jt(t)+1,n)}}]),e}(),tn=[],nn=function(){function e(){(0,w.Z)(this,e),this.parent=null,this.dom=null,this.dirty=2}return(0,x.Z)(e,[{key:"editorView",get:function(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}},{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(e){var t,n=this.posAtStart,r=(0,p.Z)(this.children);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i==e)return n;n+=i.length+i.breakAfter}}catch(o){r.e(o)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(e){return this.posBefore(e)+e.length}},{key:"coordsAt",value:function(e,t){return null}},{key:"sync",value:function(t){if(2&this.dirty){var n,r,i=this.dom,o=null,a=(0,p.Z)(this.children);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.dirty){if(!s.dom&&(n=o?o.nextSibling:i.firstChild)){var u=e.get(n);u&&(u.parent||u.constructor!=s.constructor)||s.reuseDOM(n)}s.sync(t),s.dirty=0}if(n=o?o.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&n!=s.dom&&(t.written=!0),s.dom.parentNode==i)for(;n&&n!=s.dom;)n=rn(n);else i.insertBefore(s.dom,n);o=s.dom}}catch(h){a.e(h)}finally{a.f()}for((n=o?o.nextSibling:i.firstChild)&&t&&t.node==i&&(t.written=!0);n;)n=rn(n)}else if(1&this.dirty){var c,l=(0,p.Z)(this.children);try{for(l.s();!(c=l.n()).done;){var f=c.value;f.dirty&&(f.sync(t),f.dirty=0)}}catch(h){l.e(h)}finally{l.f()}}}},{key:"reuseDOM",value:function(e){}},{key:"localPosFromDOM",value:function(t,n){var r;if(t==this.dom)r=this.dom.childNodes[n];else{for(var i=0==Qt(t)?0:0==n?-1:1;;){var o=t.parentNode;if(o==this.dom)break;0==i&&o.firstChild!=o.lastChild&&(i=t==o.firstChild?-1:1),t=o}r=i<0?t:t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!e.get(r);)r=r.nextSibling;if(!r)return this.length;for(var a=0,s=0;;a++){var u=this.children[a];if(u.dom==r)return s;s+=u.length+u.breakAfter}}},{key:"domBoundsAround",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,a=-1,s=0,u=n,c=n;st)return l.domBoundsAround(e,t,u);if(f>=e&&-1==r&&(r=s,i=u),u>t&&l.dom.parentNode==this.dom){o=s,a=c;break}c=f,u=f+l.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}},{key:"markDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(e)}},{key:"markParentsDirty",value:function(e){for(var t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}},{key:"setParent",value:function(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}},{key:"rootView",get:function(){for(var e=this;;){var t=e.parent;if(!t)return e;e=t}}},{key:"replaceChildren",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn;this.markDirty();for(var i=e;i0&&void 0!==arguments[0]?arguments[0]:this.length;return new on(this.children,e,this.children.length)}},{key:"childPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}},{key:"toString",value:function(){var e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"merge",value:function(e,t,n,r,i,o){return!1}},{key:"become",value:function(e){return!1}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(e){return e.cmView}}]),e}();function rn(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}nn.prototype.breakAfter=0;var on=function(){function e(t,n,r){(0,w.Z)(this,e),this.children=t,this.pos=n,this.i=r,this.off=0}return(0,x.Z)(e,[{key:"findPos",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;var n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}]),e}();function an(e,t,n,r,i,o,a,s,u){var c=e.children,l=c.length?c[t]:null,f=o.length?o[o.length-1]:null,h=f?f.breakAfter:a;if(!(t==r&&l&&!a&&!h&&o.length<2&&l.merge(n,i,o.length?f:null,0==n,s,u))){if(r0&&(!a&&o.length&&l.merge(n,l.length,o[0],!1,s,0)?l.breakAfter=o.shift().breakAfter:(n2),_n={mac:gn||/Mac/.test(un.platform),windows:/Win/.test(un.platform),linux:/Linux|X11/.test(un.platform),ie:dn,ie_version:fn?cn.documentMode||6:hn?+hn[1]:ln?+ln[1]:0,gecko:pn,gecko_version:pn?+(/Firefox\/(\d+)/.exec(un.userAgent)||[0,0])[1]:0,chrome:!!mn,chrome_version:mn?+mn[1]:0,ios:gn,android:/Android\b/.test(un.userAgent),webkit:vn,safari:yn,webkit_version:vn?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=cn.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},En=function(e){E(n,e);var t=k(n);function n(e){var r;return(0,w.Z)(this,n),(r=t.call(this)).text=e,r}return(0,x.Z)(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(e){this.setDOM(e||document.createTextNode(this.text))}},{key:"sync",value:function(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(e){3==e.nodeType&&this.createDOM(e)}},{key:"merge",value:function(e,t,r){return(!r||r instanceof n&&!(this.length-(t-e)+r.length>256))&&(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(t),this.markDirty(),!0)}},{key:"split",value:function(e){var t=new n(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}},{key:"localPosFromDOM",value:function(e,t){return e==this.dom?t:t?this.text.length:0}},{key:"domAtPos",value:function(e){return new en(this.dom,e)}},{key:"domBoundsAround",value:function(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(e,t){return Dn(this.dom,e,t)}}]),n}(nn),bn=function(e){E(n,e);var t=k(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;(0,w.Z)(this,n),(r=t.call(this)).mark=e,r.children=i,r.length=o;var a,s=(0,p.Z)(i);try{for(s.s();!(a=s.n()).done;){var u=a.value;u.setParent(m(r))}}catch(c){s.e(c)}finally{s.f()}return r}return(0,x.Z)(n,[{key:"setAttrs",value:function(e){if(Jt(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(var t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}},{key:"reuseDOM",value:function(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}},{key:"sync",value:function(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),g(v(n.prototype),"sync",this).call(this,e)}},{key:"merge",value:function(e,t,r,i,o,a){return(!r||!(!(r instanceof n&&r.mark.eq(this.mark))||e&&o<=0||te&&r.push(i=e&&(o=a),i=c,a++}}catch(f){s.e(f)}finally{s.f()}var l=this.length-e;return this.length=e,o>-1&&(this.children.length=o,this.markDirty()),new n(this.mark,r,l)}},{key:"domAtPos",value:function(e){return Cn(this.dom,this.children,e)}},{key:"coordsAt",value:function(e,t){return Tn(this,e,t)}}]),n}(nn);function Dn(e,t,n){var r=e.nodeValue.length;t>r&&(t=r);var i=t,o=t,a=0;0==t&&n<0||t==r&&n>=0?_n.chrome||_n.gecko||(t?(i--,a=1):(o++,a=-1)):n<0?i--:o++;var s=Yt(e,i,o).getClientRects();if(!s.length)return Wt;var u=s[(a?a<0:n>=0)?0:s.length-1];return _n.safari&&!a&&0==u.width&&(u=Array.prototype.find.call(s,(function(e){return e.width}))||u),a?Gt(u,a<0):u||null}var On=function(e){E(n,e);var t=k(n);function n(e,r,i){var o;return(0,w.Z)(this,n),(o=t.call(this)).widget=e,o.length=r,o.side=i,o.prevWidget=null,o}return(0,x.Z)(n,[{key:"split",value:function(e){var t=n.create(this.widget,this.length-e,this.side);return this.length-=e,t}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(e,t,r,i,o,a){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||e>0&&o<=0||t0?n.length-1:0;r=n[i],!(e>0?0==i:i==n.length-1||r.top0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?r:Gt(r,0==e)}},{key:"isEditable",get:function(){return!1}},{key:"destroy",value:function(){g(v(n.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(e,t,r){return new(e.customView||n)(e,t,r)}}]),n}(nn),kn=function(e){E(n,e);var t=k(n);function n(){return(0,w.Z)(this,n),t.apply(this,arguments)}return(0,x.Z)(n,[{key:"domAtPos",value:function(e){var t=this.widget,n=t.topView,r=t.text;return n?An(e,0,n,r,(function(e,t){return e.domAtPos(t)}),(function(e){return new en(r,Math.min(e,r.nodeValue.length))})):new en(r,Math.min(e,r.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(e,t){var n=this.widget,r=n.topView,i=n.text;return r?wn(e,t,r,i):Math.min(t,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(e,t){var n=this.widget,r=n.topView,i=n.text;return r?An(e,t,r,i,(function(e,t,n){return e.coordsAt(t,n)}),(function(e,t){return Dn(i,e,t)})):Dn(i,e,t)}},{key:"destroy",value:function(){var e;g(v(n.prototype),"destroy",this).call(this),null===(e=this.widget.topView)||void 0===e||e.destroy()}},{key:"isEditable",get:function(){return!0}}]),n}(On);function An(e,t,n,r,i,o){if(n instanceof bn){var a,s=(0,p.Z)(n.children);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=Rt(u.dom,r),l=c?r.nodeValue.length:u.length;if(e=0;)if(t<0?r>0:r0?-1:1);return n&&n.topt.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}},{key:"overrideDOMText",get:function(){return Q.empty}}]),n}(nn);function Cn(e,t,n){for(var r=0,i=0;ri&&n0;r--){var s=t[r-1].dom;if(s.parentNode==e)return en.after(s)}return new en(e,0)}function Sn(e,t,n){var r,i=e.children;n>0&&t instanceof bn&&i.length&&(r=i[i.length-1])instanceof bn&&r.mark.eq(t.mark)?Sn(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function Tn(e,t,n){for(var r=0,i=0;i0?a>=t:a>t)&&(t0)){var u=0;if(a==r){if(o.getSide()<=0)continue;u=n=-o.getSide()}var c=o.coordsAt(Math.max(0,t-r),n);return u&&c?Gt(c,n<0):c}r=a}var l=e.dom.lastChild;if(!l)return e.dom.getBoundingClientRect();var f=Nt(l);return f[f.length-1]||null}function Fn(e,t){for(var n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function qn(e,t){if(e==t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0,o=n;i-1}}],[{key:"mark",value:function(e){return new In(e)}},{key:"widget",value:function(e){var t=e.side||0,n=!!e.block;return new Ln(e,t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,t,n,e.widget||null,!1)}},{key:"replace",value:function(e){var t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{var i=jn(e,r);t=(i.start?r?-3e8:-1:5e8)-1,n=1+(i.end?r?2e8:1:-6e8)}return new Ln(e,t,n,r,e.widget||null,!0)}},{key:"line",value:function(e){return new Nn(e)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ht.of(e,t)}}]),n}(ut);Rn.none=ht.empty;var In=function(e){E(n,e);var t=k(n);function n(e){var r;(0,w.Z)(this,n);var i=jn(e),o=i.start,a=i.end;return(r=t.call(this,o?-1:5e8,a?1:-6e8,null,e)).tagName=e.tagName||"span",r.class=e.class||"",r.attrs=e.attributes||null,r}return(0,x.Z)(n,[{key:"eq",value:function(e){return this==e||e instanceof n&&this.tagName==e.tagName&&this.class==e.class&&qn(this.attrs,e.attrs)}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=t)throw new RangeError("Mark decorations may not be empty");return g(v(n.prototype),"range",this).call(this,e,t)}}]),n}(Rn);In.prototype.point=!1;var Nn=function(e){E(n,e);var t=k(n);function n(e){return(0,w.Z)(this,n),t.call(this,-2e8,-2e8,null,e)}return(0,x.Z)(n,[{key:"eq",value:function(e){return e instanceof n&&qn(this.spec.attributes,e.spec.attributes)}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return g(v(n.prototype),"range",this).call(this,e,t)}}]),n}(Rn);Nn.prototype.mapMode=J.TrackBefore,Nn.prototype.point=!0;var Ln=function(e){E(n,e);var t=k(n);function n(e,r,i,o,a,s){var u;return(0,w.Z)(this,n),(u=t.call(this,r,i,a,e)).block=o,u.isReplace=s,u.mapMode=o?r<=0?J.TrackBefore:J.TrackAfter:J.TrackDel,u}return(0,x.Z)(n,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(e){return e instanceof n&&(t=this.widget,r=e.widget,t==r||!!(t&&r&&t.compare(r)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,r}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return g(v(n.prototype),"range",this).call(this,e,t)}}]),n}(Rn);function jn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.inclusiveStart,r=e.inclusiveEnd;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!==n&&void 0!==n?n:t,end:null!==r&&void 0!==r?r:t}}function Zn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}Ln.prototype.point=!0;var Qn=function(e){E(n,e);var t=k(n);function n(){var e;return(0,w.Z)(this,n),(e=t.apply(this,arguments)).children=[],e.length=0,e.prevAttrs=void 0,e.attrs=null,e.breakAfter=0,e}return(0,x.Z)(n,[{key:"merge",value:function(e,t,r,i,o,a){if(r){if(!(r instanceof n))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),sn(this,e,t,r?r.children:[],o,a),!0}},{key:"split",value:function(e){var t=new n;if(t.breakAfter=this.breakAfter,0==this.length)return t;var r=this.childPos(e),i=r.i,o=r.off;o&&(t.append(this.children[i].split(o),0),this.children[i].merge(o,this.children[i].length,null,!1,0,0),i++);for(var a=i;a0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}},{key:"transferDOM",value:function(e){this.dom&&(e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(e){qn(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}},{key:"append",value:function(e,t){Sn(this,e,t)}},{key:"addLineDeco",value:function(e){var t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Fn(t,this.attrs||{})),n&&(this.attrs=Fn({class:n},this.attrs||{}))}},{key:"domAtPos",value:function(e){return Cn(this.dom,this.children,e)}},{key:"reuseDOM",value:function(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}},{key:"sync",value:function(e){var t;this.dom?4&this.dirty&&(Jt(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Bn(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),g(v(n.prototype),"sync",this).call(this,e);for(var r=this.dom.lastChild;r&&nn.get(r)instanceof bn;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(t=nn.get(r))||void 0===t?void 0:t.isEditable)&&(!_n.ios||!this.children.some((function(e){return e instanceof En})))){var i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var e,t=0,n=(0,p.Z)(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(!(r instanceof En))return null;var i=Nt(r.dom);if(1!=i.length)return null;t+=i[0].width}}catch(o){n.e(o)}finally{n.f()}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}}},{key:"coordsAt",value:function(e,t){return Tn(this,e,t)}},{key:"become",value:function(e){return!1}},{key:"type",get:function(){return Mn.Text}}],[{key:"find",value:function(e,t){for(var r=0,i=0;r=t){if(o instanceof n)return o;if(a>t)break}i=a+o.breakAfter}return null}}]),n}(nn),Wn=function(e){E(n,e);var t=k(n);function n(e,r,i){var o;return(0,w.Z)(this,n),(o=t.call(this)).widget=e,o.length=r,o.type=i,o.breakAfter=0,o.prevWidget=null,o}return(0,x.Z)(n,[{key:"merge",value:function(e,t,r,i,o,a){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||e>0&&o<=0||t0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),i=r.value,o=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=i,this.textOff=0}var s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,n)),this.getLine().append(Vn(new En(this.text.slice(this.textOff,this.textOff+s)),t),n),this.atCursorPos=!0,this.textOff+=s,e-=s,n=0}}},{key:"span",value:function(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(e,t,n,r,i){var o=t-e;if(n instanceof Ln)if(n.block){var a=n.type;a!=Mn.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new Wn(n.widget||new Hn("div"),o,a))}else{var s=On.create(n.widget||new Hn("span"),o,n.startSide),u=this.atCursorPos&&!s.isEditable&&i<=r.length&&(e0),c=!s.isEditable&&(ethis.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}return!0}}],[{key:"build",value:function(t,n,r,i,o){var a=new e(t,n,r,o);return a.openEnd=ht.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}]),e}();function Vn(e,t){var n,r=(0,p.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e=new bn(i,[e],e.length)}}catch(o){r.e(o)}finally{r.f()}return e}var Hn=function(e){E(n,e);var t=k(n);function n(e){var r;return(0,w.Z)(this,n),(r=t.call(this)).tag=e,r}return(0,x.Z)(n,[{key:"eq",value:function(e){return e.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(e){return e.nodeName.toLowerCase()==this.tag}}]),n}(Pn),$n=[],zn=de.define(),Un=de.define(),Yn=de.define(),Xn=de.define(),Kn=de.define(),Jn=de.define(),er=Qe.define({map:function(e,t){return e.map(t)}}),tr=Qe.define({map:function(e,t){return e.map(t)}}),nr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;(0,w.Z)(this,e),this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o}return(0,x.Z)(e,[{key:"map",value:function(t){return t.empty?this:new e(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}]),e}(),rr=Qe.define({map:function(e,t){return e.map(t)}});function ir(e,t,n){var r=e.facet(Xn);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}var or=de.define({combine:function(e){return!e.length||e[0]}}),ar=(0,x.Z)((function e(t,n){(0,w.Z)(this,e),this.field=t,this.get=n})),sr=function(){function e(){(0,w.Z)(this,e)}return(0,x.Z)(e,[{key:"from",value:function(e){return new ar(this,e)}}],[{key:"define",value:function(){return new e}}]),e}();sr.decorations=sr.define(),sr.atomicRanges=sr.define(),sr.scrollMargins=sr.define();var ur=0,cr=de.define(),lr=function(){function e(t,n,r){(0,w.Z)(this,e),this.id=t,this.create=n,this.fields=r,this.extension=cr.of(this)}return(0,x.Z)(e,null,[{key:"define",value:function(t,n){var r=n||{},i=r.eventHandlers,o=r.provide,a=r.decorations,s=[];if(o){var u,c=(0,p.Z)(Array.isArray(o)?o:[o]);try{for(c.s();!(u=c.n()).done;){var l=u.value;s.push(l)}}catch(f){c.e(f)}finally{c.f()}}return i&&s.push(fr.from((function(e){return{plugin:e,handlers:i}}))),a&&s.push(sr.decorations.from(a)),new e(ur++,t,s)}},{key:"fromClass",value:function(t,n){return e.define((function(e){return new t(e)}),n)}}]),e}(),fr=sr.define(),hr=function(){function e(t){(0,w.Z)(this,e),this.spec=t,this.mustUpdate=null,this.value=null}return(0,x.Z)(e,[{key:"takeField",value:function(e,t){if(this.spec){var n,r=(0,p.Z)(this.spec.fields);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.field,a=i.get;o==e&&t.push(a(this.value))}}catch(s){r.e(s)}finally{r.f()}}}},{key:"update",value:function(e){if(this.value){if(this.mustUpdate){var t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(ir(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(tC){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){ir(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){ir(e.state,n,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),e}(),dr=de.define(),pr=de.define(),mr=de.define(),vr=de.define(),yr=function(){function e(t,n,r,i){(0,w.Z)(this,e),this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}return(0,x.Z)(e,[{key:"join",value:function(t){return new e(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}},{key:"addToSet",value:function(e){for(var t=e.length,n=this;t>0;t--){var r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAl)break;o+=2}if(!u)return r;new e(u.fromA,u.toA,u.fromB,u.toB).addToSet(r),a=u.toA,s=u.toB}}}]),e}(),gr=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$n;(0,w.Z)(this,e),this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=te.empty(this.startState.doc.length);var i,o=(0,p.Z)(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.changes=this.changes.compose(a.changes)}}catch(c){o.e(c)}finally{o.f()}var s=[];this.changes.iterChangedRanges((function(e,t,n,r){return s.push(new yr(e,t,n,r))})),this.changedRanges=s;var u=t.hasFocus;u!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=u,this.flags|=1)}return(0,x.Z)(e,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some((function(e){return e.selection}))}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}]),e}(),_r=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(_r||(_r={})),Er=_r.LTR,br=_r.RTL;function Dr(e){for(var t=[],n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}]),e}(),Mr=[];function Rr(e,t){var n=e.length,r=t==Er?1:2,i=t==Er?2:1;if(!e||1==r&&!Br.test(e))return Ir(n);for(var o=0,a=r,s=r;o=0;D-=3)if(wr[D+1]==-y){var O=wr[D+2],k=2&O?r:4&O?1&O?i:r:0;k&&(Mr[_]=Mr[wr[D]]=k),E=D;break}}else{if(189==wr.length)break;wr[E++]=_,wr[E++]=v,wr[E++]=b}else if(2==(g=Mr[_])||1==g){var A=g==r;b=A?0:1;for(var w=E-3;w>=0;w-=3){var x=wr[w+2];if(2&x)break;if(A)wr[w+2]|=2;else{if(4&x)break;wr[w+2]|=4}}}for(var C=0;CM;){for(var N=I,L=2!=Mr[--I];I>M&&L==(2!=Mr[I-1]);)I--;B.push(new Pr(I,N,L?2:1))}else B.push(new Pr(M,P,0))}else for(var j=0;j1){var l,f=(0,p.Z)(this.points);try{for(f.s();!(l=f.n()).done;){var h=l.value;h.node==e&&h.pos>this.text.length&&(h.pos-=u-1)}}catch(d){f.e(d)}finally{f.f()}}o=s+u}}},{key:"readNode",value:function(e){if(!e.cmIgnore){var t=nn.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(var r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}}},{key:"findPointBefore",value:function(e,t){var n,r=(0,p.Z)(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}}catch(o){r.e(o)}finally{r.f()}}},{key:"findPointInside",value:function(e,t){var n,r=(0,p.Z)(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+Math.min(t,i.offset))}}catch(o){r.e(o)}finally{r.f()}}}]),e}();function Qr(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}var Wr=(0,x.Z)((function e(t,n){(0,w.Z)(this,e),this.node=t,this.offset=n,this.pos=-1})),Gr=function(e){E(n,e);var t=k(n);function n(e){var r;return(0,w.Z)(this,n),(r=t.call(this)).view=e,r.compositionDeco=Rn.none,r.decorations=[],r.pluginDecorationLength=0,r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(e.contentDOM),r.children=[new Qn],r.children[0].setParent(m(r)),r.updateDeco(),r.updateInner([new yr(0,0,0,e.state.doc.length)],0),r}return(0,x.Z)(n,[{key:"root",get:function(){return this.view.root}},{key:"editorView",get:function(){return this.view}},{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(e){var t=this,n=e.changedRanges;this.minWidth>0&&n.length&&(n.every((function(e){var n=e.fromA;return e.toAt.minWidthTo}))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Rn.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){var n=$r(e);if(!n)return Rn.none;var r=n.from,i=n.to,o=n.node,a=n.text,s=t.mapPos(r,1),u=Math.max(s,t.mapPos(i,-1)),c=e.state,l=3==o.nodeType?o.nodeValue:new Zr([],c).readRange(o.firstChild,null).text;if(u-s=0?e[r]:null;if(!i)break;var o=i.fromA,a=i.toA,s=i.fromB,u=i.toB,c=Gn.build(this.view.state.doc,s,u,this.decorations,this.pluginDecorationLength),l=c.content,f=c.breakAtStart,h=c.openStart,d=c.openEnd,p=n.findPos(a,1),m=p.i,v=p.off,y=n.findPos(o,-1);an(this,y.i,y.off,m,v,l,f,h,d)}}},{key:"updateSelection",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&this.view.observer.readSelectionRange(),!(!n&&!this.mayControlSelection()||_n.ios&&this.view.inputState.rapidCompositionStart)){var r=this.forceSelection;this.forceSelection=!1;var i=this.view.state.selection.main,o=this.domAtPos(i.anchor),a=i.empty?o:this.domAtPos(i.head);if(_n.gecko&&i.empty&&Vr(o)){var s=document.createTextNode("");this.view.observer.ignore((function(){return o.node.insertBefore(s,o.node.childNodes[o.offset]||null)})),o=a=new en(s,0),r=!0}var u=this.view.observer.selectionRange;!r&&u.focusNode&&Lt(o.node,o.offset,u.anchorNode,u.anchorOffset)&&Lt(a.node,a.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((function(){_n.android&&_n.chrome&&e.dom.contains(u.focusNode)&&Kr(u.focusNode,e.dom)&&(e.dom.blur(),e.dom.focus({preventScroll:!0}));var t=Mt(e.root);if(i.empty){if(_n.gecko){var n=Yr(o.node,o.offset);if(n&&3!=n){var r=Ur(o.node,o.offset,1==n?1:-1);r&&(o=new en(r,1==n?0:r.nodeValue.length))}}t.collapse(o.node,o.offset),null!=i.bidiLevel&&null!=u.cursorBidiLevel&&(u.cursorBidiLevel=i.bidiLevel)}else if(t.extend)t.collapse(o.node,o.offset),t.extend(a.node,a.offset);else{var s=document.createRange();if(i.anchor>i.head){var c=[a,o];o=c[0],a=c[1]}s.setEnd(a.node,a.offset),s.setStart(o.node,o.offset),t.removeAllRanges(),t.addRange(s)}})),this.view.observer.setSelectionRange(o,a)),this.impreciseAnchor=o.precise?null:new en(u.anchorNode,u.anchorOffset),this.impreciseHead=a.precise?null:new en(u.focusNode,u.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var e=this.view.state.selection.main,t=Mt(this.root);if(e.empty&&e.assoc&&t.modify){var n=Qn.find(this,e.head);if(n){var r=n.posAtStart;if(e.head!=r&&e.head!=r+n.length){var i=this.coordsAt(e.head,-1),o=this.coordsAt(e.head,1);if(i&&o&&!(i.bottom>o.top)){var a=this.domAtPos(e.head+e.assoc);t.collapse(a.node,a.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}}}}}}},{key:"mayControlSelection",value:function(){return this.view.state.facet(or)?this.root.activeElement==this.dom:It(this.dom,this.view.observer.selectionRange)}},{key:"nearest",value:function(e){for(var t=e;t;){var n=nn.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}},{key:"posFromDOM",value:function(e,t){var n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}},{key:"domAtPos",value:function(e){for(var t=this.childCursor().findPos(e,-1),n=t.i,r=t.off;no||e==o&&i.type!=Mn.WidgetBefore&&i.type!=Mn.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==Mn.WidgetBefore&&t>-2))return i.coordsAt(e-o,t);n=o}}},{key:"measureVisibleLineHeights",value:function(){for(var e=[],t=this.view.viewState.viewport,n=t.from,r=t.to,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=0,u=0;ur)break;if(s>=n){var f=c.dom.getBoundingClientRect();if(e.push(f.height),o){var h=c.dom.lastChild,d=h?Nt(h):[];if(d.length){var p=d[d.length-1],m=this.view.textDirection==_r.LTR?p.right-f.left:f.right-p.left;m>a&&(a=m,this.minWidth=i,this.minWidthFrom=s,this.minWidthTo=l)}}}s=l+c.breakAfter}return e}},{key:"measureTextSize",value:function(){var e,t=this,n=(0,p.Z)(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r instanceof Qn){var i=r.measureTextSize();if(i)return i}}}catch(u){n.e(u)}finally{n.f()}var o,a,s=document.createElement("div");return s.className="cm-line",s.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((function(){t.dom.appendChild(s);var e=Nt(s.firstChild)[0];o=s.getBoundingClientRect().height,a=e?e.width/27:7,s.remove()})),{lineHeight:o,charWidth:a}}},{key:"childCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new on(this.children,e,t)}},{key:"computeBlockGapDeco",value:function(){for(var e=[],t=this.view.viewState,n=0,r=0;;r++){var i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){var a=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(Rn.replace({widget:new Hr(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return Rn.set(e)}},{key:"updateDeco",value:function(){var e=this.view.pluginField(sr.decorations);return this.pluginDecorationLength=e.length,this.decorations=[].concat((0,A.Z)(e),(0,A.Z)(this.view.state.facet(mr)),[this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco])}},{key:"scrollIntoView",value:function(e){var t,n=e.range,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(r){!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});var i,o=0,a=0,s=0,u=0,c=(0,p.Z)(this.view.pluginField(sr.scrollMargins));try{for(c.s();!(i=c.n()).done;){var l=i.value;if(l){var f=l.left,h=l.right,d=l.top,m=l.bottom;null!=f&&(o=Math.max(o,f)),null!=h&&(a=Math.max(a,h)),null!=d&&(s=Math.max(s,d)),null!=m&&(u=Math.max(u,m))}}}catch(y){c.e(y)}finally{c.f()}var v={left:r.left-o,top:r.top-s,right:r.right+a,bottom:r.bottom+u};!function(e,t,n,r,i,o,a,s){for(var u=e.ownerDocument,c=u.defaultView,l=e;l;)if(1==l.nodeType){var f=void 0,h=l==u.body;if(h)f=Vt(c);else{if(l.scrollHeight<=l.clientHeight&&l.scrollWidth<=l.clientWidth){l=l.parentNode;continue}var d=l.getBoundingClientRect();f={left:d.left,right:d.left+l.clientWidth,top:d.top,bottom:d.top+l.clientHeight}}var p=0,m=0;if("nearest"==i)t.top0&&t.bottom>f.bottom+m&&(m=t.bottom-f.bottom+m+a)):t.bottom>f.bottom&&(m=t.bottom-f.bottom+a,n<0&&t.top-m0&&t.right>f.right+p&&(p=t.right-f.right+p+o)):t.right>f.right&&(p=t.right-f.right+o,n<0&&t.left0&&n<=0)t=Qt(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t=0))return null;e=e.childNodes[t],t=0}}}function Yr(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(te?t.left-e:Math.max(0,e-t.right)}function ei(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function ti(e,t){return e.topt.top+1}function ni(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function ii(e,t,n){for(var r,i,o,a,s,u,c,l,f=e.firstChild;f;f=f.nextSibling)for(var h=Nt(f),d=0;dv||a==v&&o>m)&&(r=f,i=p,o=m,a=v),0==m?n>p.bottom&&(!c||c.bottomp.top)&&(u=f,l=p):c&&ti(c,p)?c=ri(c,p.bottom):l&&ti(l,p)&&(l=ni(l,p.top))}if(c&&c.bottom>=n?(r=s,i=c):l&&l.top<=n&&(r=u,i=l),!r)return{node:e,offset:0};var y=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?oi(r,y,n):o||"true"!=r.contentEditable?{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}:ii(r,y,n)}function oi(e,t,n){for(var r=e.nodeValue.length,i=-1,o=1e9,a=0,s=0;sn?l.top-n:n-l.bottom)-1;if(l.left-1<=t&&l.right+1>=t&&f=(l.left+l.right)/2,d=h;if(_n.chrome||_n.gecko)Yt(e,s).getBoundingClientRect().left==l.right&&(d=!h);if(f<=0)return{node:e,offset:s+(d?1:0)};i=s+(d?1:0),o=f}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function ai(e,t,n){var r,i,o=t.x,a=t.y,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,u=e.contentDOM.getBoundingClientRect(),c=u.top+e.viewState.paddingTop,l=e.viewState.docHeight,f=a-c;if(f<0)return 0;if(f>l)return e.state.doc.length;for(var h=e.defaultLineHeight/2,d=!1;(i=e.elementAtHeight(f)).type!=Mn.Text;)for(;!((f=s>0?i.bottom+h:i.top-h)>=0&&f<=l);){if(d)return n?null:0;d=!0,s=-s}a=c+f;var p=i.from;if(pe.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:si(e,u,i,o,a);var m=e.dom.ownerDocument,v=e.root.elementFromPoint?e.root:m,y=v.elementFromPoint(o,a);y&&!e.contentDOM.contains(y)&&(y=null),y||(o=Math.max(u.left+1,Math.min(u.right-1,o)),(y=v.elementFromPoint(o,a))&&!e.contentDOM.contains(y)&&(y=null));var g,_=-1;if(y&&0!=(null===(r=e.docView.nearest(y))||void 0===r?void 0:r.isEditable))if(m.caretPositionFromPoint){var E=m.caretPositionFromPoint(o,a);E&&(g=E.offsetNode,_=E.offset)}else if(m.caretRangeFromPoint){var b=m.caretRangeFromPoint(o,a);b&&(g=b.startContainer,_=b.startOffset,_n.safari&&ui(g,_,o)&&(g=void 0))}if(!g||!e.docView.dom.contains(g)){var D=Qn.find(e.docView,p);if(!D)return f>i.top+i.height/2?i.to:i.from;var O=ii(D.dom,o,a);g=O.node,_=O.offset}return e.docView.posFromDOM(g,_)}function si(e,t,n,r,i){var o=Math.round((r-t.left)*e.defaultCharacterWidth);e.lineWrapping&&n.height>1.5*e.defaultLineHeight&&(o+=Math.floor((i-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);var a=e.state.sliceDoc(n.from,n.to);return n.from+Z(a,o,e.state.tabSize)}function ui(e,t,n){var r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(var i=e.nextSibling;i;i=i.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return Yt(e,r-1,r).getBoundingClientRect().left>n}function ci(e,t,n,r){var i=e.state.doc.lineAt(t.head),o=r&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){var a=e.dom.getBoundingClientRect(),s=e.posAtCoords({x:n==(e.textDirection==_r.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(null!=s)return ce.cursor(s,n?-1:1)}var u=Qn.find(e.docView,t.head),c=u?n?u.posAtEnd:u.posAtStart:n?i.to:i.from;return ce.cursor(c,n?-1:1)}function li(e,t,n,r){for(var i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=t,s=null;;){var u=Lr(i,o,e.textDirection,a,n),c=Nr;if(!u){if(i.number==(n?e.state.doc.lines:1))return a;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),u=ce.cursor(n?i.from:i.to)}if(s){if(!s(c))return a}else{if(!r)return u;s=r(c)}a=u}}function fi(e,t,n){for(var r=e.pluginField(sr.atomicRanges);;){var i,o=!1,a=(0,p.Z)(r);try{for(a.s();!(i=a.n()).done;){i.value.between(n.from-1,n.from+1,(function(e,r,i){n.from>e&&n.fromn.from?ce.cursor(e,1):ce.cursor(r,-1),o=!0)}))}}catch(s){a.e(s)}finally{a.f()}if(!o)return n}}var hi=function(){function e(t){var n=this;(0,w.Z)(this,e),this.lastKeyCode=0,this.lastKeyTime=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;var r=function(e){var r=yi[e];t.contentDOM.addEventListener(e,(function(i){vi(t,i)&&!n.ignoreDuringComposition(i)&&("keydown"==e&&n.keydown(t,i)||(n.mustFlushObserver(i)&&t.observer.forceFlush(),n.runCustomHandlers(e,t,i)?i.preventDefault():r(t,i)))})),n.registeredEvents.push(e)};for(var i in yi)r(i);this.notifiedFocused=t.hasFocus,this.ensureHandlers(t),_n.safari&&t.contentDOM.addEventListener("input",(function(){return null}))}return(0,x.Z)(e,[{key:"setSelectionOrigin",value:function(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(e){var t,n=this,r=this.customHandlers=e.pluginField(fr),i=(0,p.Z)(r);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=function(t){n.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(n.registeredEvents.push(t),e.contentDOM.addEventListener(t,(function(r){vi(e,r)&&n.runCustomHandlers(t,e,r)&&r.preventDefault()})))};for(var s in o.handlers)a(s)}}catch(u){i.e(u)}finally{i.f()}}},{key:"runCustomHandlers",value:function(e,t,n){var r,i=(0,p.Z)(this.customHandlers);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.handlers[e];if(a)try{if(a.call(o.plugin,n,t)||n.defaultPrevented)return!0}catch(s){ir(t.state,s)}}}catch(u){i.e(u)}finally{i.f()}return!1}},{key:"runScrollHandlers",value:function(e,t){var n,r=(0,p.Z)(this.customHandlers);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.handlers.scroll;if(o)try{o.call(i.plugin,t,e)}catch(a){ir(e.state,a)}}}catch(s){r.e(s)}finally{r.f()}}},{key:"keydown",value:function(e,t){var n,r=this;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()0||!!(_n.safari&&Date.now()-this.compositionEndedAt<500)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!_n.ios}},{key:"startMouseSelection",value:function(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}},{key:"update",value:function(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),e}(),di=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],pi=[16,17,18,20,91,92,224,225],mi=function(){function e(t,n,r,i){(0,w.Z)(this,e),this.view=t,this.style=r,this.mustSelect=i,this.lastEvent=n;var o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(et.allowMultipleSelections)&&function(e,t){var n=e.state.facet(zn);return n.length?n[0](t):_n.mac?t.metaKey:t.ctrlKey}(t,n),this.dragMove=function(e,t){var n=e.state.facet(Un);return n.length?n[0](t):_n.mac?!t.altKey:!t.ctrlKey}(t,n),this.dragging=!(!function(e,t){if(e.state.selection.main.empty)return!1;var n=Mt(e.root);if(0==n.rangeCount)return!0;for(var r=n.getRangeAt(0).getClientRects(),i=0;i=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}(t,n)||1!=Ti(n))&&null,!1===this.dragging&&(n.preventDefault(),this.select(n))}return(0,x.Z)(e,[{key:"move",value:function(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}},{key:"up",value:function(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}},{key:"destroy",value:function(){var e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"select",value:function(e){var t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}},{key:"update",value:function(e){var t=this;e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((function(){return t.select(t.lastEvent)}),20)}}]),e}();function vi(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=nn.get(r))&&n.ignoreEvent(t))return!1;return!0}var yi=Object.create(null),gi=_n.ie&&_n.ie_version<15||_n.ios&&_n.webkit_version<604;function _i(e,t){var n,r=e.state,i=1,o=r.toText(t),a=o.lines==r.selection.ranges.length,s=null!=qi&&r.selection.ranges.every((function(e){return e.empty}))&&qi==o.toString();if(s){var u=-1;n=r.changeByRange((function(e){var n=r.doc.lineAt(e.from);if(n.from==u)return{range:e};u=n.from;var s=r.toText((a?o.line(i++).text:t)+r.lineBreak);return{changes:{from:n.from,insert:s},range:ce.cursor(e.from+s.length)}}))}else n=a?r.changeByRange((function(e){var t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:ce.cursor(e.from+t.length)}})):r.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}yi.keydown=function(e,t){e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():pi.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)};var Ei=0;function bi(e,t,n,r){if(1==r)return ce.cursor(t,n);if(2==r)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return ce.cursor(t);0==o?n=1:o==i.length&&(n=-1);var a=o,s=o;n<0?a=q(i.text,o,!1):s=q(i.text,o);for(var u=r(i.text.slice(a,s));a>0;){var c=q(i.text,a,!1);if(r(i.text.slice(c,a))!=u)break;a=c}for(;sDate.now()-2e3&&1==Ti(t))){var n,r=null,i=(0,p.Z)(e.state.facet(Yn));try{for(i.s();!(n=i.n()).done;){if(r=(0,n.value)(e,t))break}}catch(a){i.e(a)}finally{i.f()}if(r||0!=t.button||(r=function(e,t){var n=Ai(e,t),r=Ti(t),i=e.state.selection,o=n,a=t;return{update:function(e){e.docChanged&&(n&&(n.pos=e.changes.mapPos(n.pos)),i=i.map(e.changes),a=null)},get:function(t,s,u){var c;if(a&&t.clientX==a.clientX&&t.clientY==a.clientY?c=o:(c=o=Ai(e,t),a=t),!c||!n)return i;var l=bi(e,c.pos,c.bias,r);if(n.pos!=c.pos&&!s){var f=bi(e,n.pos,n.bias,r),h=Math.min(f.from,l.from),d=Math.max(f.to,l.to);l=h=t.top&&e<=t.bottom},Oi=function(e,t,n){return Di(t,n)&&e>=n.left&&e<=n.right};function ki(e,t,n,r){var i=Qn.find(e.docView,t);if(!i)return 1;var o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;var a=i.coordsAt(o,-1);if(a&&Oi(n,r,a))return-1;var s=i.coordsAt(o,1);return s&&Oi(n,r,s)?1:a&&Di(r,a)?-1:1}function Ai(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:ki(e,n,t.clientX,t.clientY)}}var wi=_n.ie&&_n.ie_version<=11,xi=null,Ci=0,Si=0;function Ti(e){if(!wi)return e.detail;var t=xi,n=Si;return xi=e,Si=Date.now(),Ci=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Ci+1)%3:1}function Fi(e,t,n,r){if(n){var i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();var o=e.inputState.mouseSelection,a=r&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,s={from:i,insert:n},u=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:u,selection:{anchor:u.mapPos(i,-1),head:u.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"})}}yi.dragstart=function(e,t){var n=e.state.selection.main,r=e.inputState.mouseSelection;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},yi.drop=function(e,t){if(t.dataTransfer){if(e.state.readOnly)return t.preventDefault();var n=t.dataTransfer.files;n&&n.length?function(){t.preventDefault();for(var r=Array(n.length),i=0,o=function(){++i==n.length&&Fi(e,t,r.filter((function(e){return null!=e})).join(e.state.lineBreak),!1)},a=function(e){var t=new FileReader;t.onerror=o,t.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])},s=0;su&&(n.push(f.text),r.push({from:f.from,to:Math.min(e.doc.length,f.to+1)})),u=f.number}}catch(h){c.e(h)}finally{c.f()}i=!0}return{text:n.join(e.lineBreak),ranges:r,linewise:i}}(e.state),r=n.text,i=n.ranges,o=n.linewise;if(r||o){qi=o?r:null;var a=gi?null:t.clipboardData;a?(t.preventDefault(),a.clearData(),a.setData("text/plain",r)):function(e,t){var n=e.dom.parentNode;if(n){var r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((function(){r.remove(),e.focus()}),50)}}(e,r),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})}},yi.focus=yi.blur=function(e){setTimeout((function(){e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)},yi.compositionstart=yi.compositionupdate=function(e){null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),Bi(e,!0)))},yi.compositionend=function(e){e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout((function(){e.inputState.composing<0&&Bi(e,!1)}),50)},yi.contextmenu=function(e){e.inputState.lastContextMenu=Date.now()},yi.beforeinput=function(e,t){var n,r;if(_n.chrome&&_n.android&&(r=di.find((function(e){return e.inputType==t.inputType})))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){var i=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((function(){var t;((null===(t=window.visualViewport)||void 0===t?void 0:t.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};var Pi=["pre-wrap","normal","pre-line","break-spaces"],Mi=function(){function e(){(0,w.Z)(this,e),this.doc=Q.empty,this.lineWrapping=!1,this.direction=_r.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return(0,x.Z)(e,[{key:"heightForGap",value:function(e,t){var n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}},{key:"heightForLine",value:function(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(e){return this.doc=e,this}},{key:"mustRefreshForStyle",value:function(e,t){return Pi.indexOf(e)>-1!=this.lineWrapping||this.direction!=t}},{key:"mustRefreshForHeights",value:function(e){for(var t=!1,n=0;n-1,s=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a||this.direction!=t;if(this.lineWrapping=a,this.direction=t,this.lineHeight=n,this.charWidth=r,this.lineLength=i,s){this.heightSamples={};for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:2;(0,w.Z)(this,e),this.length=t,this.height=n,this.flags=r}return(0,x.Z)(e,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(e){this.flags=(e?2:0)|-3&this.flags}},{key:"setHeight",value:function(e,t){this.height!=t&&(Math.abs(this.height-t)>Li&&(e.heightChanged=!0),this.height=t)}},{key:"replace",value:function(t,n,r){return e.of(r)}},{key:"decomposeLeft",value:function(e,t){t.push(this)}},{key:"decomposeRight",value:function(e,t){t.push(this)}},{key:"applyChanges",value:function(e,t,n,r){for(var i=this,o=r.length-1;o>=0;o--){var a=r[o],s=a.fromA,u=a.toA,c=a.fromB,l=a.toB,f=i.lineAt(s,Ni.ByPosNoHeight,t,0,0),h=f.to>=u?f:i.lineAt(u,Ni.ByPosNoHeight,t,0,0);for(l+=h.to-u,u=h.to;o>0&&f.from<=r[o-1].toA;)s=r[o-1].fromA,c=r[o-1].fromB,o--,s2*o){var a=t[n-1];a.break?t.splice(--n,1,a.left,null,a.right):t.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else{if(!(o>2*i))break;var s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else if(i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),n}(ji),Qi=function(e){E(n,e);var t=k(n);function n(e,r){var i;return(0,w.Z)(this,n),(i=t.call(this,e,r,Mn.Text)).collapsed=0,i.widgetHeight=0,i}return(0,x.Z)(n,[{key:"replace",value:function(e,t,r){var i=r[0];return 1==r.length&&(i instanceof n||i instanceof Wi&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof Wi?i=new n(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):ji.of(r)}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),n}(Zi),Wi=function(e){E(n,e);var t=k(n);function n(e){return(0,w.Z)(this,n),t.call(this,e,0)}return(0,x.Z)(n,[{key:"lines",value:function(e,t){var n=e.lineAt(t).number,r=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}},{key:"blockAt",value:function(e,t,n,r){var i=this.lines(t,r),o=i.firstLine,a=i.lastLine,s=i.lineHeight,u=Math.max(0,Math.min(a-o,Math.floor((e-n)/s))),c=t.line(o+u),l=c.from,f=c.length;return new Ii(l,f,n+s*u,s,Mn.Text)}},{key:"lineAt",value:function(e,t,n,r,i){if(t==Ni.ByHeight)return this.blockAt(e,n,r,i);if(t==Ni.ByPosNoHeight){var o=n.lineAt(e),a=o.from,s=o.to;return new Ii(a,s-a,0,0,Mn.Text)}var u=this.lines(n,i),c=u.firstLine,l=u.lineHeight,f=n.lineAt(e),h=f.from,d=f.length,p=f.number;return new Ii(h,d,r+l*(p-c),l,Mn.Text)}},{key:"forEachLine",value:function(e,t,n,r,i,o){for(var a=this.lines(n,i),s=a.firstLine,u=a.lineHeight,c=Math.max(e,i),l=Math.min(i+this.length,t);c<=l;){var f=n.lineAt(c);c==e&&(r+=u*(f.number-s)),o(new Ii(f.from,f.length,r,u,Mn.Text)),r+=u,c=f.to+1}}},{key:"replace",value:function(e,t,r){var i=this.length-t;if(i>0){var o=r[r.length-1];o instanceof n?r[r.length-1]=new n(o.length+i):r.push(null,new n(i-1))}if(e>0){var a=r[0];a instanceof n?r[0]=new n(e+a.length):r.unshift(new n(e-1),null)}return ji.of(r)}},{key:"decomposeLeft",value:function(e,t){t.push(new n(e-1),null)}},{key:"decomposeRight",value:function(e,t){t.push(null,new n(this.length-e-1))}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,o=t+this.length;if(i&&i.from<=t+this.length&&i.more){var a=[],s=Math.max(t,i.from),u=-1,c=e.heightChanged;for(i.from>t&&a.push(new n(i.from-t-1).updateHeight(e,t));s<=o&&i.more;){var l=e.doc.lineAt(s).length;a.length&&a.push(null);var f=i.heights[i.index++];-1==u?u=f:Math.abs(f-u)>=Li&&(u=-2);var h=new Qi(l,f);h.outdated=!1,a.push(h),s+=l+1}s<=o&&a.push(null,new n(o-s).updateHeight(e,s));var d=ji.of(a);return e.heightChanged=c||u<0||Math.abs(d.height-this.height)>=Li||Math.abs(u-this.lines(e.doc,t).lineHeight)>=Li,d}return(r||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),n}(ji),Gi=function(e){E(n,e);var t=k(n);function n(e,r,i){var o;return(0,w.Z)(this,n),(o=t.call(this,e.length+r+i.length,e.height+i.height,r|(e.outdated||i.outdated?2:0))).left=e,o.right=i,o.size=e.size+i.size,o}return(0,x.Z)(n,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(e,t,n,r){var i=n+this.left.height;return ea))return u;var c=t==Ni.ByPosNoHeight?Ni.ByPosNoHeight:Ni.ByPos;return s?u.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(u)}},{key:"forEachLine",value:function(e,t,n,r,i,o){var a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{var u=this.lineAt(s,Ni.ByPos,n,r,i);e=e&&u.from<=t&&o(u),t>u.to&&this.right.forEachLine(u.to+1,t,n,a,s,o)}}},{key:"replace",value:function(e,t,n){var r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));var i=[];e>0&&this.decomposeLeft(e,i);var o,a=i.length,s=(0,p.Z)(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;i.push(u)}}catch(l){s.e(l)}finally{s.f()}if(e>0&&Vi(i,a-1),t=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}},{key:"decomposeRight",value:function(e,t){var n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?ji.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.left,o=this.right,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),n}(ji);function Vi(e,t){var n,r;null==e[t]&&(n=e[t-1])instanceof Wi&&(r=e[t+1])instanceof Wi&&e.splice(t-1,3,new Wi(n.length+1+r.length))}var Hi=function(){function e(t,n){(0,w.Z)(this,e),this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}return(0,x.Z)(e,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(e,t){if(this.lineStart>-1){var n=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Qi?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Qi(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}},{key:"point",value:function(e,t,n){if(e=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)){var e=this.oracle.doc.lineAt(this.pos),t=e.from,n=e.to;this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new Qi(this.pos-t,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(e,t){var n=new Wi(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}},{key:"ensureLine",value:function(){this.enterLine();var e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Qi)return e;var t=new Qi(0,-1);return this.nodes.push(t),t}},{key:"addBlock",value:function(e){this.enterLine(),e.type!=Mn.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=Mn.WidgetBefore&&(this.covering=e)}},{key:"addLineDeco",value:function(e,t){var n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}},{key:"finish",value:function(e){var t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Qi||this.isCovered?(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&"visible"!=l.overflow){var f=c.getBoundingClientRect();r=Math.max(r,f.left),i=Math.min(i,f.right),o=Math.max(o,f.top),a=Math.min(a,f.bottom)}u="absolute"==l.position||"fixed"==l.position?c.offsetParent:c.parentNode}else{if(11!=u.nodeType)break;u=u.host}return{left:r-n.left,right:Math.max(r,i)-n.left,top:o-(n.top+t),bottom:Math.max(o,a)-(n.top+t)}}function Yi(e,t){var n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}var Xi=function(){function e(t,n,r){(0,w.Z)(this,e),this.from=t,this.to=n,this.size=r}return(0,x.Z)(e,[{key:"draw",value:function(e){return Rn.replace({widget:new Ki(this.size,e)}).range(this.from,this.to)}}],[{key:"same",value:function(e,t){if(e.length!=t.length)return!1;for(var n=0;n=t&&i<=n}))){var o=e.lineBlockAt(i),a=o.from,s=o.to;t.push(new eo(a,s))}},i=0;i<=1;i++)r(i);this.viewports=t.sort((function(e,t){return e.from-t.from})),this.scaler=this.heightMap.height<=7e6?io:new oo(this.heightOracle.doc,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var e=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(function(t){e.viewportLines.push(1==e.scaler.scale?t:ao(t,e.scaler))}))}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state;this.state=e.state;var r=this.state.facet(mr),i=e.changedRanges,o=yr.extendWithRanges(i,$i(e.startState.facet(mr),r,e?e.changes:te.empty(this.state.doc.length))),a=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(r,n.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2);var s=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heads.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));var u=!e.changes.empty||2&e.flags||s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(e){var t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace,o="rtl"==n.direction?_r.RTL:_r.LTR,a=this.heightOracle.mustRefreshForStyle(i,o),s=a||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight,u=0,c=0;if(this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8),s){this.mustMeasureContent=!1,this.contentDOMHeight=t.clientHeight;var l=parseInt(n.paddingTop)||0,f=parseInt(n.paddingBottom)||0;this.paddingTop==l&&this.paddingBottom==f||(u|=8,this.paddingTop=l,this.paddingBottom=f)}var h=(this.printing?Yi:Ui)(t,this.paddingTop),d=h.top-this.pixelViewport.top,p=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;var m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(s=!0)),!this.inView)return 0;var v=t.clientWidth;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=v,this.editorHeight=e.scrollDOM.clientHeight,u|=8),s){var y=e.docView.measureVisibleLineHeights();if(r.mustRefreshForHeights(y)&&(a=!0),a||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var g=e.docView.measureTextSize(),_=g.lineHeight,E=g.charWidth;(a=r.refresh(i,o,_,E,v/E,y))&&(e.docView.minWidth=0,u|=8)}d>0&&p>0?c=Math.max(d,p):d<0&&p<0&&(c=Math.min(d,p)),r.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(r,0,a,new Ri(this.viewport.from,y)),r.heightChanged&&(u|=2)}var b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(e,t){var n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.state.doc,o=this.visibleTop,a=this.visibleBottom,s=new eo(r.lineAt(o-1e3*n,Ni.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),Ni.ByHeight,i,0,0).to);if(t){var u=t.range.head;if(us.to){var c,l=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=r.lineAt(u,Ni.ByPos,i,0,0);c="center"==t.y?(f.top+f.bottom)/2-l/2:"start"==t.y||"nearest"==t.y&&u1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var i=this.heightMap.lineAt(t,Ni.ByPos,this.state.doc,0,0),o=i.top,a=this.heightMap.lineAt(n,Ni.ByPos,this.state.doc,0,0),s=a.bottom,u=this.visibleTop,c=this.visibleBottom;return(0==t||o<=u-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=c+Math.max(10,Math.min(r,250)))&&o>u-2e3&&si&&(r.push({from:i,to:e}),o+=e-i),i=t}},20),i