commit 40204abc7e77e165dacca6ec07e27c014a95aed5 Author: Dym Sohin Date: Wed Dec 27 16:09:46 2023 +0100 re-inint diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0c97efd --- /dev/null +++ b/LICENSE @@ -0,0 +1,235 @@ +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 of this license document, but changing it is not allowed. + + Preamble + +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, 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. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for 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. + +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. + +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. + +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. + +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. + + TERMS AND CONDITIONS + +0. Definitions. + +"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. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those +subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. + +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. + +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you 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. 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 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 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 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 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 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 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. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least 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 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 Affero General Public License for more details. + + 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 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 AGPL, see . diff --git a/assets/default_header.png b/assets/default_header.png new file mode 100644 index 0000000..97914e2 Binary files /dev/null and b/assets/default_header.png differ diff --git a/assets/dist/_colors.css b/assets/dist/_colors.css new file mode 100644 index 0000000..6a5e0f8 --- /dev/null +++ b/assets/dist/_colors.css @@ -0,0 +1,132 @@ + +:root { + --white1: #fff; + --white2: #777; + --gray1: #111; + --gray2: #222; + --gray3: #333; + --gray4: #444; + --gray5: #555; + --gray6: #666; + --orange1: #fd6a00; + --orange2: #ff853e; + --blue1: #3a9fde; + --blue2: #66befe; + --blue3: #82d8fd; + --error1: #860000; + --error2: #ff9796; + --error3: #dd2c2c; + --error-link: #01318C; + --green1: #94E749; + --info-fg: var(--gray1); + --info-bg: #b3ddff; + --info-link: var(--error-link); + --fg: var(--white1); + --bg: var(--gray2); + --bg-trans: rgba(77, 78, 86, 0.62); + --bg-accent: var(--gray3); + --fg-accent: var(--blue3); + --fg-reduced: var(--white2); + --border-accent: var(--orange2); + --link-fg: var(--fg-accent); + --role-admin: var(--orange2); + --role-mod: var(--blue2); + --profile-bg: var(--gray3); + --button-bg: var(--blue2); + --button-fg: var(--gray1); + --button-hover-bg: var(--blue3); + --button-danger-bg: var(--error3); + --button-danger-fg: var(--white1); + --button-danger-hover-bg: var(--error2); + --toot-bg: var(--gray3); + --toot-info-bg: var(--gray2); + --toot-focus-bg: var(--gray3); + --toot-focus-info-bg: var(--gray3); + --no-img-desc-bg: var(--orange1); + --no-img-desc-fg: var(--gray1); + --bg-sensitive: var(--gray1); + --boxshadow: 0 0.4rem 1rem -0.1rem rgba(0,0,0,0.15); + --boxshadow-border: 0.08rem solid var(--gray1); + --avatar-border: var(gray); + --input-bg: var(--gray3); + --input-disabled-bg: var(--gray2); + --input-border: var(--blue1); + --input-error-border: var(--error3); + --input-focus-border: var(--blue3); + --settings-nav-bg: var(--bg); + --settings-nav-header-fg: var(--orange2); + --settings-nav-bg-hover: var(--gray3); + --settings-nav-fg-hover: var(--fg); + --settings-nav-bg-active: var(--blue3); + --settings-nav-border-active: var(--info-bg); + --settings-nav-fg-active: var(--gray2); + --error-fg: var(--error1); + --error-bg: var(--error2); + --list-entry-bg: var(--gray2); + --list-entry-alternate-bg: var(--gray3); + --list-entry-hover-bg: var(--gray3); + --plyr-color-main: var(--orange2); + --plyr-video-background: var(--bg-accent); + --plyr-badge-background: var(--bg-accent); + --plyr-video-controls-background: var(--bg-accent); + --plyr-badge-text-color: var(--fg); + --plyr-badge-border-radius: var(--br); + --plyr-video-progress-buffered-background: var(--gray6) +} + +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +/* + This stylesheets defines (color) variables to be used by other stylesheets on the page + postcss-custom-prop-vars will transpile these to css --variables +*/ + +/* Color definitions */ + +/* Foreground */ + +/* default text color, contrast >= 5.0 with all $grays */ + +/* less important text, can be used with $gray1 (6.8), $gray2 (5.5), $gray3 (4.9), $gray4 (4.5) */ + +/* Background shades, contrast >= 5.0 with $white1 (#fafaff) */ + +/* Used for non-text accent colors, can be used as background: $gray1 for text color (contrast 4.6)*/ + +/* hover/selected accent to $orange1, can be used with $gray1 (5.7), $gray2 (4.6) */ + +/* darker blue for smaller elements (borders), can only be used with $gray1 (4.7) */ + +/* all-round accent color, can be used with $gray1 (6.8), $gray2 (5.5), $gray3 (4.9), $gray4 (4.5) */ + +/* hover/selected accent to $blue2, can be used with $gray1 (7.9), $gray2 (6.3), $gray3 (5.6), $gray4 (5.2), $gray5 (4.7) */ + +/* Error border/foreground text, can be used with $error2 (5.0), $white1 (10), $white2 (5.1) */ + +/* Error background text, can be used with $error1 (5.0), $gray1 (6.6), $gray2 (5.3), $gray3 (4.8) */ + +/* Error button background text, can be used with $white1 (4.51) */ + +/* Error link text, can be used with $error2 (5.56) */ + +/* Green for positive/confirmation, similar contrast (luminance) as $blue2 */ + +/* Color variables as used in a specific location */ + +/* Plyr video player */ diff --git a/assets/dist/base.css b/assets/dist/base.css new file mode 100644 index 0000000..8bdc551 --- /dev/null +++ b/assets/dist/base.css @@ -0,0 +1,708 @@ +:root { + --br: 0.4rem; + --br-inner: 0.2rem; + --fa-fw: 1.25; +} + +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ +/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ + +*, +::before, +::after { + box-sizing: border-box; +} + +html { + -o-tab-size: 2; + tab-size: 2; + line-height: 1.15; + -webkit-text-size-adjust: 100%; +} + +hr { + height: 0; + color: inherit; +} + +abbr[title] { + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +b, +strong { + font-weight: bolder; +} + +code, +kbd, +samp, +pre { + font-family: + ui-monospace, + SFMono-Regular, + Consolas, + 'Liberation Mono', + Menlo, + monospace; + font-size: 1em; +} + +small { + font-size: 80%; +} + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +table { + text-indent: 0; + border-color: inherit; +} + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; +} + +button, +select { + text-transform: none; +} + +/** +Correct the inability to style clickable types in iOS and Safari. +*/ + +button, +[type='button'], +[type='reset'], +[type='submit'] { + -webkit-appearance: button; +} + +::-moz-focus-inner { + border-style: none; + padding: 0; +} + +:-moz-focusring { + outline: 1px dotted ButtonText; +} + +:-moz-ui-invalid { + box-shadow: none; +} + +legend { + padding: 0; +} + +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; +} + +html, +body { + background: var(--bg); + color: var(--fg); + font-family: + system-ui, + -apple-system, /* Firefox supports this but not yet `system-ui` */ + 'Segoe UI', + Roboto, + Helvetica, + Arial, + sans-serif, + 'Apple Color Emoji', + 'Segoe UI Emoji'; +} + +body { + padding: 1rem; + margin: 0 auto; + + min-height: 100vh; + max-width: 60rem; + gap: 1rem; + + line-height: 1.5em; + + display: flex; + flex-direction: column; + + justify-content: space-evenly; +} + +.hidden { + display: none; +} + +h1 { + margin: 0; + line-height: 2.4rem; +} + +a { + transition: all 0.25s ease-out; + color: var(--link-fg); +} + +header { + display: flex; + justify-content: center; +} + +header a { + display: flex; + flex-wrap: wrap; + margin: 1.5rem; + gap: 1rem; + justify-content: center; +} + +header a img { + align-self: center; + height: 3rem; + } + +header a h1 { + flex-grow: 1; + align-self: center; + text-align: center; + + font-size: 1.5rem; + word-wrap: anywhere; + color: var(--fg); + } + +.excerpt-top { + margin-bottom: 2rem; + font-style: italic; + font-weight: normal; + text-align: center; + font-size: 1.2rem; +} + +.excerpt-top .count { + font-weight: bold; + color: var(--fg-accent); + } + +main :first-child { + margin-top: 0; + } + +main :last-child { + margin-bottom: 0; + } + +.button, button { + border-radius: 0.2rem; + color: var(--button-fg); + background: var(--button-bg); + box-shadow: var(--boxshadow); + border: var(--button-border); + text-decoration: none; + font-size: 1.2rem; + font-weight: bold; + padding: 0.5rem; + border: none; + cursor: pointer; + text-align: center; + font-family: 'Noto Sans', sans-serif; +} + +.button.danger, button.danger { + color: var(--button-danger-fg); + background: var(--button-danger-bg); + } + +.button.danger:hover, button.danger:hover { + background: var(--button-danger-hover-bg); + } + +.button:disabled, button:disabled { + color: var(--white2); + background: var(--gray2); + cursor: auto; + } + +.button:disabled:hover, button:disabled:hover { + background: var(--gray3); + } + +.button:hover, button:hover { + background: var(--button-hover-bg); + } + +.nounderline { + text-decoration: none; +} + +.accent { + color: var(--acc1); +} + +.logo { + justify-self: center; +} + +.logo img { + height: 30vh; + } + +section.apps { + align-self: start; +} + +section.apps .applist { + display: grid; + grid-template-columns: 1fr 1fr; + grid-gap: 0.5rem; + align-content: start; + } + +section.apps .applist .entry { + display: grid; + grid-template-columns: 25% 1fr; + gap: 1.5rem; + padding: 0.5rem; + background: var(--bg-accent); + border-radius: 0.5rem; + } + +section.apps .applist .entry .logo { + align-self: center; + width: 100%; + -o-object-fit: contain; + object-fit: contain; + flex: 1 1 auto; + } + +section.apps .applist .entry .logo.redraw { + fill: var(--fg); + stroke: var(--fg); + } + +section.apps .applist .entry a { + font-weight: bold; + } + +section.apps .applist .entry div { + padding: 0; + } + +section.apps .applist .entry div h3 { + margin-top: 0; + } + +section.login form { + display: flex; + flex-direction: column; + gap: 1rem; + + + padding-bottom: 1rem; + padding-top: 1rem; + } + +section.login form label, section.login form input { + padding-left: 0.2rem; + } + +section.login form .labelinput { + display: flex; + flex-direction: column; + gap: 0.4rem; + } + +section.login form .btn { + margin-top: 1rem; + } + +section.error { + word-break: break-word; + margin-bottom: 0.5rem; +} + +section.error pre { + border: 1px solid #ff000080; + padding: 0.5rem; + border-radius: 0.5em; + background-color: #ff000010; + font-size: 1.3em; + white-space: pre-wrap; + } + +section.oob-token code { + background: var(--gray2); + padding: 0.5rem; + margin: 0; + border-radius: 0.3rem; + } + +.error-text { + color: var(--error1); + background: var(--error2); + border-radius: 0.1rem; + font-weight: bold; +} + +input, select, textarea, .input { + box-sizing: border-box; + border: 0.15rem solid var(--input-border); + border-radius: 0.1rem; + color: var(--fg); + background: var(--input-bg); + width: 100%; + font-family: 'Noto Sans', sans-serif; + font-size: 1rem; + padding: 0.3rem; +} + +input:focus, input:active, select:focus, select:active, textarea:focus, textarea:active, .input:focus, .input:active { + border-color: var(--input-focus-border); + } + +input:invalid, .invalid input, select:invalid, .invalid select, textarea:invalid, .invalid textarea, .input:invalid, .invalid .input { + border-color: var(--input-error-border); + } + +input:disabled, select:disabled, textarea:disabled, .input:disabled { + background: transparent; + } + +::-webkit-input-placeholder { + opacity: 1; + color: var(--fg-reduced) +} + +::placeholder { + opacity: 1; + color: var(--fg-reduced) +} + +hr { + color: transparent; + width: 100%; + border-bottom: 0.02rem solid var(--border-accent); +} + +footer { + display: flex; + flex-wrap: wrap; + justify-content: center; + padding: 3rem 1rem; + gap: 2rem; +} +footer * +{ display: flex } +footer .round +{ border-radius: 999px } +footer .bg-icon +{ background-image : url( '/button-gradient.svg' ) + , url('/icon.png') !important +} +footer img +{ max-width : 100vw +; overflow : hidden +} +footer .buttons +{ gap : 1rem +; padding : 1rem +; background : white +; flex-wrap : nowrap +} + +footer .buttons img +{ height : 2rem } + +footer .buttons > * +{ height : 2rem +; min-width : 2rem +} + +footer .buttons > a:any-link +{ background : + var( --b, #ccc ) + url( '/button-gradient.svg' ) + 50% 50% no-repeat +; background-size : cover +; box-shadow + : inset 0 0 0 0.125rem #fff0 + , 0 0 0 0.125rem #0000 +} + +footer .buttons > a:any-link:is( :hover, :focus, :active ) +{ box-shadow + : inset 0 0 0 0.125rem #fff + , 0 0 0 0.125rem var( --b, #ccc ) +} + +footer .buttons .group +{ padding : 0 } + +footer .buttons.round > * +{ border-radius : 999px } + + +@media screen and (max-width: 600px) { + header { + text-align: center; + } + + footer { + grid-template-columns: 1fr; + } + + footer div { + text-align: initial; + width: 100%; + } + + section.apps .applist { + grid-template-columns: 1fr; + } +} + +.emoji { + width: 1.45em; + height: 1.45em; + margin: -0.2em 0.02em 0; + -o-object-fit: contain; + object-fit: contain; + vertical-align: middle; +} + +.monospace { + font-family: monospace; +} + +.callout { + margin: 1.5rem 0; + border: .05rem solid var(--border-accent); + border-radius: .2rem; + padding: 0 .6rem .6rem; +} + +.callout .callout-title { + margin: 0 -.6rem; + padding: .6rem; + font-weight: bold; + background-color: var(--border-accent); + color: var(--gray2); + } + +label { + cursor: pointer; +} + +@media (prefers-reduced-motion) { + .fa-spin { + -webkit-animation: none; + animation: none; + } +} + +.text-cutoff { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} + +.list { + display: flex; + flex-direction: column; +} + +.list .header, .list .entry { + padding: 0.5rem; + } + +.list .header { + border: 0.1rem solid transparent !important; /* for alignment with .entry border padding */ + background: var(--gray2) !important; + display: flex; + font-weight: bold; + } + +.list .entries { + display: flex; + flex-direction: column; + } + +.list .entries.scrolling { + height: 20rem; + max-height: 20rem; + overflow: auto; + } + +.list input[type=checkbox] { + margin-left: 0.5rem; + } + +.list .entry { + display: flex; + flex-wrap: wrap; + background: var(--list-entry-bg); + border: 0.1rem solid transparent; + } + +.list .entry:nth-child(even) { + background: var(--list-entry-alternate-bg); + } + +.list .entry:hover { + background: var(--list-entry-hover-bg); + } + +.list .entry:active, .list .entry:focus, .list .entry:hover, .list .entry:target { + border-color: var(--fg-accent); + } + +.domain-blocklist { + box-shadow: var(--boxshadow); +} + +.domain-blocklist .entry { + display: grid; + grid-template-columns: max(30%, 10rem) 1fr; + gap: 0.5rem; + align-items: start; + border: var(--boxshadow-border); + border-top-color: transparent; + } + +.domain-blocklist .entry > div { + display: flex; + align-items: center + } + +.domain-blocklist .entry .domain a { + font-weight: bold; + text-decoration: none; + display: inline-block; /* so it wraps properly */ + } + +.domain-blocklist .entry .public_comment p { + margin: 0; + } + +.domain-blocklist .header .domain { + color: var(--fg); + } + +.about { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.about h2 { + margin: 2rem 0 0 0; + } + +.about ul, +.about p { + margin: 0; + } + +.account-card { + display: inline-grid; + grid-template-columns: auto 1fr; + grid-template-rows: auto auto; + text-decoration: none; + gap: 0.5rem 1rem; + border-radius: var(--br); + padding: 0.5rem; + min-width: 40%; + margin-bottom: 0.3rem; + + background: var(--list-entry-bg); +} + +.account-card:hover { + background: var(--list-entry-alternate-bg); + } + +.account-card h3 { + align-self: end; + margin: 0; + color: var(--fg); + } + +.account-card img.avatar { + border-radius: 0.5rem; + width: 5rem; + height: 5rem; + -o-object-fit: cover; + object-fit: cover; + grid-row: 1 / span 2; + } + +@media screen and (max-width: 30rem) { + .domain-blocklist .entry { + grid-template-columns: 1fr; + gap: 0; + } +} diff --git a/assets/dist/index.css b/assets/dist/index.css new file mode 100644 index 0000000..53b5744 --- /dev/null +++ b/assets/dist/index.css @@ -0,0 +1,40 @@ + +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +header a { + margin: 2rem; + gap: 2rem; +} + +header a img { + height: 6rem; + } + +header a h1 { + font-size: 2rem; + } + +main section { + background: var(--bg-accent); + box-shadow: var(--boxshadow); + border: var(--boxshadow-border); + border-radius: var(--br); + padding: 2rem; + margin-bottom: 2rem; + } diff --git a/assets/dist/profile.css b/assets/dist/profile.css new file mode 100644 index 0000000..34c6b8b --- /dev/null +++ b/assets/dist/profile.css @@ -0,0 +1,282 @@ +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +.page { + grid-template-columns: 1fr minmax(auto, 60rem) 1fr; /* fallback for lack of min() support */ + grid-template-columns: 1fr min(92%, 65rem) 1fr; +} + +.profile { + padding: 0.5rem; + border-radius: var(--br); +} + +.profile .column-split { + display: flex; + flex-wrap: wrap; + gap: 1rem; + } + +.profile .header { + background: var(--profile-bg); + border-radius: var(--br); + overflow: hidden; + margin-bottom: 1rem; +} + +.profile .header .header-image { + position: relative; + padding-top: 33.33%; + } + +/* aspect-ratio 1/3 */ + +.profile .header .header-image img { + position: absolute; + top: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + -o-object-fit: cover; + object-fit: cover; + } + +.profile .header { + --avatar-size: 8.5rem; + --name-size: 3rem; + --username-size: 2rem; + + --overlap: calc(var(--avatar-size) - var(--name-size) - var(--username-size)); +} + +/* + Basic info container has the user's avatar, display- and username, and role + It's partially overlapped over the header image, by a negative margin-top + */ + +.profile .header .basic-info { + position: relative; + display: grid; + box-sizing: border-box; + grid-template-columns: var(--avatar-size) auto 1fr; + grid-template-rows: var(--overlap) var(--name-size) auto; + grid-template-areas: + " avatar . . . " + " avatar displayname displayname stats " + " avatar username role stats "; + + margin: 1rem; + margin-top: calc(-1 * var(--overlap)); + gap: 0 1rem; + } + +.profile .header .basic-info .avatar { + grid-area: avatar; + height: var(--avatar-size); + width: var(--avatar-size); + border: 0.2rem solid var(--avatar-border); + border-radius: var(--br); + overflow: hidden; + } + +/* prevents image extending beyond rounded borders */ + +.profile .header .basic-info .avatar img { + height: 100%; + width: 100%; + -o-object-fit: cover; + object-fit: cover; + } + +.profile .header .basic-info .displayname { + grid-area: displayname; + line-height: var(--name-size); + font-size: 1.5rem; + font-weight: bold; + } + +.profile .header .basic-info .username { + min-width: 0; + grid-area: username; + line-height: var(--username-size); + + font-size: 1rem; + font-weight: bold; + color: var(--fg-accent); + -webkit-user-select: all; + user-select: all; + } + +.profile .header .basic-info .role { + background: var(--bg); + color: var(--fg); + + border: 0.1rem solid var(--bg); + grid-area: role; + align-self: center; + justify-self: start; + border-radius: var(--br); + padding: 0.25rem 0.5rem 0.35rem 0.5rem; + line-height: 0.75rem; + font-size: 0.75rem; + font-variant: small-caps; + } + +.profile .header .basic-info .role.admin { + color: var(--role-admin); + border-color: var(--role-admin); + } + +.profile .header .basic-info .role.moderator { + color: var(--role-mod); + border-color: var(--role-mod); + } + +@media screen and (max-width: 750px) { + .profile .header .basic-info { + grid-template-columns: auto 1fr; + grid-template-rows: var(--avatar-size) var(--name-size) auto; + grid-template-areas: + " avatar avatar " + " displayname displayname " + " username role " + " stats stats "; + } + + .profile .header .basic-info .displayname { + font-size: 1.4rem; + } +} + +.profile .col-header h1, .profile .col-header h2 { + font-size: 1.2rem; + line-height: 1.3rem; + margin: 0; + } + +.profile .toots { + flex: 65 25rem; + display: flex; + flex-direction: column; + gap: 0.4rem; +} + +.profile .toots .col-header { + display: grid; + grid-template-columns: auto 1fr; + gap: 1rem; + } + +.profile .toots .col-header a { + justify-self: end; + } + +.profile .rss-icon .fa { + font-size: 2rem; + -o-object-fit: contain; + object-fit: contain; + vertical-align: middle; + color: var(--orange2); + /* can't size a single-color background, so we use a linear-gradient that's effectively white */ + background: linear-gradient(to right, var(--white1) 100%, transparent 0) no-repeat center center; + background-size: 1.2rem 1.4rem; + } + +.profile .toots .toot { + border-radius: var(--br); + } +.toot .info { + flex-direction: row; + gap: 1rem; + } + +.profile .toots .backnextlinks { + display: flex; + justify-content: space-between; + } + +.profile .toots .backnextlinks .next { + margin-left: auto; + } + +.profile .about-user { + overflow: hidden; + display: flex; + flex-direction: column; + gap: 1rem; +} +.profile .about-user > * { + border-radius: var(--br); +} + +.profile .about-user .col-header { + margin-bottom: -0.25rem; + } + +.profile .about-user .fields { + background: var(--profile-bg); + display: grid; + grid-template-columns: auto auto; + padding: 0.5rem; + } + +.profile .about-user .fields > * { + padding: 0.5rem; + } +.profile .about-user .fields > b { + align-self: center; + justify-self: flex-end; + } +.profile .about-user .fields > span { + } +.profile .about-user .fields > span + b { + border-top: 0.1rem solid var(--gray2); + } + +.profile .about-user .bio { + background: var(--profile-bg); + padding: 1rem; + } + +.profile .accountstats { + grid-area: stats; + display: grid; + grid-auto-flow: column; + grid-template: repeat(2, 1fr) / repeat(4, auto); + gap: 0 1rem; + align-self: center; + } + +.profile .accountstats > * { + padding: 0.5rem; + justify-self: center; + } + +.profile .accountstats > *, +.profile .accountstats > * > * { + justify-content: center; + text-align: center; + display: flex; + gap: 0.25rem; + line-height: 20px; + } + +.profile .accountstats > b { + border-bottom: 0.1rem solid var(--gray2); +} diff --git a/assets/dist/settings-style.css b/assets/dist/settings-style.css new file mode 100644 index 0000000..f11e308 --- /dev/null +++ b/assets/dist/settings-style.css @@ -0,0 +1,1124 @@ +/* from web/source/settings/style.css */ + +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +body { + grid-template-rows: auto 1fr; +} + +.content { + grid-column: 1 / span 3; /* stretch entire width, to fit panel + sidebar nav */ + width: 100%; +} + +header { + justify-content: start; +} + +header a { + margin: 1.5rem; + gap: 1rem; + } + +header a h1 { + font-size: 1.5rem; + } + +header a img { + height: 3rem; + } + +#root { + box-sizing: border-box; + display: flex; + justify-content: center; + flex-wrap: wrap; + margin: 0 1rem; + gap: 1rem; +} + +#root section.oauth { + max-width: 92%; + width: 60rem; + } + +#root section.with-sidebar { + flex-grow: 100; + flex-basis: 40rem; + background: var(--bg-accent); + padding: 2rem; + border-radius: var(--br); + max-width: 100%; + } + +#root section.with-sidebar > div, #root section.with-sidebar > form { + border-left: 0.2rem solid var(--border-accent); + padding-left: 0.4rem; + display: flex; + flex-direction: column; + gap: 0.5rem; + margin: 1rem 0; + } + +#root section.with-sidebar > div h2, #root section.with-sidebar > form h2 { + margin: 0; + margin-top: 0.1rem; + } + +#root section.with-sidebar > div:only-child, #root section.with-sidebar > form:only-child { + border-left: none; + } + +#root section.with-sidebar > div:first-child, #root section.with-sidebar > form:first-child { + margin-top: 0; + } + +#root section.with-sidebar > div:last-child, #root section.with-sidebar > form:last-child { + margin-bottom: 0; + } + +#root section.with-sidebar > div.without-border, #root section.with-sidebar > form.without-border { + border-left: 0; + padding-left: 0; + } + +#root section.with-sidebar > .error { + display: grid; /* prevents error overflowing */ + } + +#root .sidebar { + flex-grow: 1; + flex-basis: 20rem; + align-self: start; + justify-self: end; + background: var(--bg); + display: flex; + flex-direction: column; + } + +#root .sidebar .account-card { + grid-template-columns: auto 1fr auto; + } + +#root .sidebar .account-card img.avatar { + width: 4rem; + height: 4rem; + } + +#root .sidebar .account-card span { + grid-row: 2; + } + +#root .sidebar .account-card .logout { + font-size: 1.5rem; + align-self: center; + grid-row: 1 / span 2; + } + +#root .sidebar .account-card:hover { + background: var(--list-entry-bg); + } + +nav.menu-tree ul { + display: flex; + flex-direction: column; + list-style-type: none; + margin: 0; + padding: 0; + } + +nav.menu-tree .icon { + margin-right: 0.5rem; + } + +/* top-level ul */ + +nav.menu-tree > ul { + gap: 0.3rem; + padding: 0.2rem; + } + +nav.menu-tree li.top-level { /* top-level categories, orange all-caps titles */ + border-top: 0.1rem solid var(--gray3); + display: flex; + flex-direction: column; + gap: 0.3rem; + margin: 0; + } + +nav.menu-tree li.top-level > a.title { + text-decoration: none; + color: var(--settings-nav-header-fg); + padding: 0.5rem; + padding-bottom: 0; + margin: 0; + font-size: 0.8rem; + font-weight: bold; + text-transform: uppercase; + } + +nav.menu-tree li.top-level > ul { + gap: 0.2rem; + } + +/* second-level categories, expanding box, active shows nested */ + +nav.menu-tree li.expanding a { + display: block; + color: var(--fg); + text-decoration: none; + + border: 0.1rem solid transparent; + border-radius: var(--br); + padding: 0.5rem; + transition: background 0.1s; + } + +nav.menu-tree li.expanding a:hover { + color: var(--settings-nav-fg-hover); + background: var(--settings-nav-bg-hover); + } + +nav.menu-tree li.expanding a:focus, nav.menu-tree li.expanding a:active { + border-color: var(--settings-nav-border-active); + outline: none; + } + +nav.menu-tree li.expanding.active { + border: 0.1rem solid var(--settings-nav-border-active); + border-radius: var(--br); + overflow: hidden; + } + +nav.menu-tree li.expanding.active a { + transition: background 0s; + border: none; + color: var(--settings-nav-fg-active); + background: var(--settings-nav-bg-active); + font-weight: bold; + border-radius: 0; + } + +/* any deeper nesting, just has indent */ + +nav.menu-tree li.nested a.title { + padding-left: 1rem; + font-weight: normal; + color: var(--fg); + background: var(--gray3); + } + +nav.menu-tree li.nested a.title:focus { + color: var(--fg-accent); + outline: none; + } + +nav.menu-tree li.nested a.title:hover { + background: var(--settings-nav-bg-hover); + } + +nav.menu-tree li.nested.active a.title { + color: var(--fg-accent); + font-weight: bold; + } + +.capitalize { + text-transform: capitalize; +} + +input, select, textarea { + box-sizing: border-box; +} + +.error { + color: var(--error-fg); + background: var(--error-bg); + border: 0.02rem solid var(--error-fg); + border-radius: var(--br); + font-weight: bold; + padding: 0.5rem; + white-space: pre-wrap; + position: relative; +} + +.error a { + color: var(--error-link); + } + +.error .details { + max-width: 100%; + overflow: hidden; + display: flex; + flex-direction: column; + gap: 0.5rem; + } + +.error pre { + background: var(--bg); + color: var(--fg); + padding: 1rem; + overflow: auto; + margin: 0; + } + +.hidden { + display: none; +} + +.messagebutton, .messagebutton > div { + display: flex; + align-items: center; + flex-wrap: wrap; +} + +.messagebutton div.padded, .messagebutton > div div.padded { + margin-left: 1rem; + } + +.messagebutton button, .messagebutton .button, .messagebutton > div button, .messagebutton > div .button { + white-space: nowrap; + margin-right: 1rem; + } + +.messagebutton > div button, .messagebutton > div .button { + margin-top: 1rem; + } + +.notImplemented { + border: 2px solid rgb(70, 79, 88); + background: repeating-linear-gradient( + -45deg, + #525c66, + #525c66 10px, + rgb(70, 79, 88) 10px, + rgb(70, 79, 88) 20px + ) !important; +} + +section.with-sidebar > div, section.with-sidebar > form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +section.with-sidebar > div input, section.with-sidebar > div textarea, section.with-sidebar > form input, section.with-sidebar > form textarea { + width: 100%; + line-height: 1.5rem; + } + +section.with-sidebar > div button, section.with-sidebar > form button { + width: auto; + align-self: flex-start; + line-height: 1.5rem; + } + +section.with-sidebar > div input[type=checkbox], section.with-sidebar > form input[type=checkbox] { + justify-self: start; + width: initial; + } + +section.with-sidebar > div textarea, section.with-sidebar > form textarea { + width: 100%; + } + +section.with-sidebar > div h1, section.with-sidebar > form h1 { + margin-bottom: 0.5rem; + } + +section.with-sidebar > div .moreinfolink, section.with-sidebar > form .moreinfolink { + font-size: 0.9em; + } + +section.with-sidebar > div .labelinput .border, section.with-sidebar > form .labelinput .border { + border-radius: 0.2rem; + border: 0.15rem solid var(--border_accent); + padding: 0.3rem; + display: flex; + flex-direction: column; + } + +section.with-sidebar > div .file-input.button, section.with-sidebar > form .file-input.button { + display: inline-block; + font-size: 1rem; + font-weight: normal; + padding: 0.3rem 0.3rem; + align-self: flex-start; + margin-right: 0.2rem; + } + +section.with-sidebar > div .labelinput, section.with-sidebar > div .labelselect, section.with-sidebar > form .labelinput, section.with-sidebar > form .labelselect { + display: flex; + flex-direction: column; + gap: 0.4rem; + } + +section.with-sidebar > div .labelcheckbox, section.with-sidebar > form .labelcheckbox { + display: flex; + gap: 0.4rem; + } + +section.with-sidebar > div .titlesave, section.with-sidebar > form .titlesave { + display: flex; + flex-wrap: wrap; + gap: 0.4rem; + } + +.form-flex { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.file-upload > div { + display: flex; + gap: 1rem; +} + +.file-upload > div img { + height: 8rem; + border: 0.2rem solid var(--border-accent); + } + +.file-upload > div img.avatar { + width: 8rem; + } + +.file-upload > div img.header { + width: 24rem; + } + +.user-profile .overview { + display: grid; + max-width: 60rem; + grid-template-columns: 70% 30%; + grid-template-rows: 100%; + gap: 1rem; + } + +.user-profile .overview .profile { + padding: 0; + } + +.user-profile .overview .profile .header { + border: 0.1rem solid var(--gray1); + } + +.user-profile .overview .files { + width: 100%; + display: flex; + flex-direction: column; + justify-content: center; + gap: 1rem; + } + +.user-profile .overview .files h3 { + margin: 0; + margin-bottom: 0.3rem; + } + +.user-profile .overview .files span { + font-style: italic; + } + +form { + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.form-field label { + font-weight: bold; +} + +.form-field.file label { + display: grid; + grid-template-columns: auto 1fr; +} + +.form-field.file label .label { + grid-column: 1 / span 2; + } + +span.form-info { + flex: 1 1 auto; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + padding: 0.3rem 0; + font-weight: initial; +} + +.checkbox-list .header, .checkbox-list .entry { + display: grid; + gap: 0 1rem; + } + +.instance-list p { + margin-top: 0; + } + +.instance-list .filter { + display: flex; + gap: 0.5rem; + } + +.instance-list .entry { + padding: 0.5rem; + margin: 0.2rem 0; + } + +.instance-list .entry #domain { + flex: 1 1 auto; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + +.bulk h2 { + display: flex; + justify-content: space-between; +} + +.emoji-list { + background: var(--list-entry-bg); +} + +.emoji-list .header .form-field { + flex: 1 1 auto; + } + +.emoji-list .entry { + flex-direction: column; + } + +.emoji-list .entry b { + padding-left: 0.4rem; + } + +.emoji-list .entry .emoji-group { + display: flex; + flex-wrap: wrap; + } + +.emoji-list .entry .emoji-group a { + border-radius: var(--br); + padding: 0.4rem; + line-height: 0; + } + +.emoji-list .entry .emoji-group a img { + height: 2rem; + width: 2rem; + -o-object-fit: contain; + object-fit: contain; + vertical-align: middle; + } + +.emoji-list .entry .emoji-group a:hover { + background: var(--list-entry-hover-bg); + } + +.emoji-list .entry:hover { + background: inherit; + } + +.toot { + padding-top: 0.5rem; +} + +.toot .contentgrid { + padding: 0 0.5rem; + } + +@media screen and (max-width: 60rem) { + /* vertical layout */ + #root { + padding: 1rem; + grid-template-columns: 100%; + grid-template-rows: auto auto; + } + + #root .sidebar { + justify-self: auto; + margin-bottom: 2rem; + } + + #root .sidebar, #root section.with-sidebar { + border-top-left-radius: var(--br); + border-top-right-radius: var(--br); + border-bottom-left-radius: var(--br); + border-bottom-right-radius: var(--br); + } + + #root .sidebar a:first-child h2 { + border-top-right-radius: var(--br); + } + + section { + grid-column: 1; + } + + .user-profile .overview { + grid-template-columns: auto; + grid-template-rows: auto 1fr; + } + + main section { + padding: 0.75rem; + } + + .instance-list .filter { + flex-direction: column; + } +} + +.combobox-wrapper { + display: flex; + flex-direction: column; +} + +.combobox-wrapper input[aria-expanded="true"] { + border-bottom: none; + } + +.combobox { + height: 2.5rem; + font-size: 1rem; + line-height: 1.5rem; +} + +.popover { + position: relative; + z-index: 50; + display: flex; + max-height: min(var(--popover-available-height,300px),300px); + flex-direction: column; + overflow: auto; + overscroll-behavior: contain; + border: 0.15rem solid var(--orange2); + background: var(--bg-accent); +} + +.combobox-item { + display: flex; + cursor: pointer; + scroll-margin: 0.5rem; + align-items: center; + gap: 0.5rem; + padding: 0.5rem; + line-height: 1.5rem; + border-bottom: 0.15rem solid var(--gray3); +} + +.combobox-item:last-child { + border: none; + } + +.combobox-item img { + height: 1.5rem; + width: 1.5rem; + -o-object-fit: contain; + object-fit: contain; + } + +.combobox-item:hover { + background: var(--button-hover-bg); + color: var(--button-fg); +} + +.combobox-item[data-active-item] { + background: var(--button-hover-bg); + color: hsl(204 20% 100%); +} + +.row { + display: flex; + gap: 0.5rem; +} + +.emoji-detail { + display: flex; + flex-direction: column; + gap: 1rem !important; +} + +.emoji-detail > a { + align-self: flex-start; + } + +.emoji-detail .emoji-header { + display: flex; + align-items: center; + gap: 0.5rem; + } + +.emoji-detail .emoji-header div { + display: flex; + flex-direction: column; + gap: 0.5rem; + } + +.emoji-detail .emoji-header img { + height: 8.5rem; + width: 8.5rem; + border: 0.2rem solid var(--border-accent); + -o-object-fit: contain; + object-fit: contain; + padding: 0.5rem; + } + +.emoji-detail .update-category .combobox-wrapper button { + font-size: 1rem; + margin: 0.15rem 0; + } + +.emoji-detail .update-category .row { + margin-top: 0.1rem; + } + +.emoji-detail .update-image { + display: flex; + flex-direction: column; + gap: 0.5rem; + } + +.left-border { + border-left: 0.2rem solid var(--border-accent); + padding-left: 0.4rem; +} + +.parse-emoji .parsed { + margin-top: 0.5rem; + display: flex; + flex-direction: column; + gap: 1rem; + } + +.parse-emoji .parsed span { + margin-bottom: -0.5rem; + } + +.parse-emoji .parsed .action-buttons { + gap: 1rem; + } + +.parse-emoji .parsed .checkbox-list .entry { + grid-template-columns: auto auto 1fr; + } + +.parse-emoji .parsed .checkbox-list .emoji { + height: 2rem; + width: 2rem; + margin: 0; + } + +.info { + color: var(--info-fg); + background: var(--info-bg); + padding: 0.5rem; + border-radius: var(--br); + + display: flex; + gap: 0.5rem; + align-items: center; +} + +.info i { + margin-top: 0.1em; + } + +.info a { + color: var(--info-link); + } + +.info p { + margin-top: 0; + } + +button.with-icon, .button.with-icon { + display: flex; + align-content: center; + padding-right: calc(0.5rem + var(--fa-fw)); +} + +button.with-icon .fa, .button.with-icon .fa { + align-self: center; + } + +button.with-padding { + padding: 0.5rem calc(0.5rem + var(--fa-fw)); +} + +.loading-icon { + align-self: flex-start; +} + +.fadeout { + -webkit-animation-name: fadeout; + animation-name: fadeout; + -webkit-animation-duration: 0.5s; + animation-duration: 0.5s; + -webkit-animation-delay: 2s; + animation-delay: 2s; + -webkit-animation-fill-mode: forwards; + animation-fill-mode: forwards; +} + +.suspend-import-list .checkbox-list-wrapper { + overflow-x: auto; + display: grid; + gap: 1rem; + } + +.suspend-import-list .checkbox-list .header input[type="checkbox"] { + align-self: start; + height: 1.5rem; + } + +.suspend-import-list .checkbox-list .entry { + gap: 0; + width: 100%; + grid-template-columns: auto minmax(25ch, 2fr) minmax(40ch, 1fr); + grid-template-rows: auto 1fr; + } + +.suspend-import-list .checkbox-list .entry input[type="checkbox"] { + margin-right: 1rem; + } + +.suspend-import-list .checkbox-list .entry .domain-input { + margin-right: 0.5rem; + display: grid; + grid-template-columns: 1fr var(--fa-fw); + gap: 0.5rem; + } + +.suspend-import-list .checkbox-list .entry .domain-input #icon { + align-self: center; + } + +.suspend-import-list .checkbox-list .entry .domain-input #icon .already-blocked { + color: var(--green1); + } + +.suspend-import-list .checkbox-list .entry .domain-input #icon .suggest-changes { + color: var(--orange2); + } + +.suspend-import-list .checkbox-list .entry p { + align-self: center; + margin: 0; + grid-column: 4; + grid-row: 1 / span 2; + } + +.import-export p { + margin: 0; + } + +.import-export .export-file { + display: flex; + gap: 0.7rem; + align-items: center; + } + +.import-export .button-grid { + display: inline-grid; + grid-template-columns: auto auto auto; + align-self: start; + gap: 0.5rem; + } + +.import-export .button-grid button { + width: 100%; + } + +@media screen and (max-width: 35rem) { + .import-export .button-grid { + grid-template-columns: auto auto; + } + + .import-export .button-grid b { /* filler item */ + display: none; + } + + .import-export .button-grid > * { + grid-column: 1 / span 2; + justify-self: start; + } + + .import-export .button-grid .export-file-button, .import-export .button-grid .export-file { + grid-column: span 1; + } +} + +.update-hints { + background: var(--list-entry-alternate-bg); + border: 0.1rem solid var(--border-accent); + /* border-radius: $br; */ + padding: 0.5rem; + display: flex; + flex-direction: column; +} + +.update-hints .hints { + max-width: 100%; + align-self: start; + align-items: center; + margin: 1rem 0; + display: inline-grid; + grid-template-columns: auto auto auto auto; + gap: 1rem; + } + +.export-format-table-wrapper { + overflow-x: auto; +} + +.export-format-table-wrapper, .export-format-table-wrapper th, .export-format-table-wrapper td { + border: 0.1rem solid var(--gray1) !important; + } + +.export-format-table-wrapper .export-format-table { + background: var(--list-entry-alternate-bg); + border-style: hidden; + border-collapse: collapse; + } + +.export-format-table-wrapper .export-format-table th, .export-format-table-wrapper .export-format-table td { + padding: 0.3rem; + } + +.export-format-table-wrapper .export-format-table th { + background: var(--list-entry-bg); + } + +.export-format-table-wrapper .export-format-table td { + text-align: center; + } + +.export-format-table-wrapper .export-format-table td .fa-check { + color: var(--green1); + } + +.export-format-table-wrapper .export-format-table td .fa-times { + color: var(--error3); + } + +.form-field.radio, .form-field.radio label { + display: flex; + gap: 0.5rem; + } + +.form-field.radio input { + width: auto; + place-self: center; + } + +.reports p { + margin: 0; + } + +.reports .report { + display: flex; + flex-direction: column; + gap: 0.5rem; + margin: 0.5rem 0; + + text-decoration: none; + color: var(--fg); + + padding: 1rem; + + border: none; + border-left: 0.3rem solid var(--border-accent); + } + +.reports .report .usernames { + line-height: 2rem; + } + +.reports .report .byline { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; + } + +.reports .report .byline .status { + color: var(--border-accent); + } + +.reports .report .details { + display: grid; + grid-template-columns: auto 1fr; + gap: 0.2rem 0.5rem; + padding: 0.5rem; + + justify-items: start; + } + +.reports .report h3 { + margin: 0; + } + +.reports .report.resolved { + color: var(--fg-reduced); + border-left: 0.4rem solid var(--bg); + } + +.reports .report.resolved .byline .status { + color: var(--fg-reduced); + } + +.reports .report.resolved .user { + opacity: 0.8; + } + +.reports .report.detail { + border: none; + padding: 0; + } + +.reports .report.detail { + display: flex; + flex-direction: column; + margin-top: 1rem; + gap: 1rem; + } + +.reports .report.detail .info-block { + padding: 0.5rem; + background: var(--gray2); + } + +.reports .report.detail .info { + display: block; + } + +.reports .report.detail .reported-toots { + margin-top: 0.5rem; + } + +.reports .report.detail .toot .toot-info { + padding: 0.5rem; + background: var(--toot-info-bg); + } + +.reports .report.detail .toot .toot-info a { + color: var(--fg-reduced); + } + +.reports .report.detail .toot .toot-info:last-child { + border-bottom-left-radius: var(--br); + border-bottom-right-radius: var(--br); + } + +.reports .user { + line-height: 1.3rem; + display: inline-block; + background: var(--fg-accent); + color: var(--bg); + border-radius: var(--br); + padding: 0.15rem 0.15rem; + margin: 0 0.1rem; + font-weight: bold; + text-decoration: none; + } + +.reports .user .acct { + word-break: break-all; + } + +.reports .user.suspended { + background: var(--bg-accent); + color: var(--fg); + text-decoration: line-through; + } + +.reports .user.local { + background: var(--green1); + } + +.account-search form { + margin-bottom: 1rem; + } + +.account-search .list { + margin: 0.5rem 0; + } + +.account-search .list a { + color: var(--fg); + text-decoration: none; + } + +.account-search .list a #username { + color: var(--link-fg); + margin-left: 0.5em; + } + +.account-detail { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.account-detail .profile { + overflow: hidden; + max-width: 60rem; + } + +.account-detail .action-buttons { + display: flex; + gap: 0.5rem; + } + +@media screen and (orientation: portrait) { + .reports .report .byline { + grid-template-columns: 1fr; + } + + .reports .report .byline .status { + grid-row: 1; + } +} + +[role="button"] { + cursor: pointer; +} + +@-webkit-keyframes fadeout { + from { + opacity: 1; + } + to { + opacity: 0; + } +} + +@keyframes fadeout { + from { + opacity: 1; + } + to { + opacity: 0; + } +} + + diff --git a/assets/dist/settings.js b/assets/dist/settings.js new file mode 100644 index 0000000..05e4bbd --- /dev/null +++ b/assets/dist/settings.js @@ -0,0 +1,14966 @@ +(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i=0||(u[t]=e[t]);return u}module.exports=_objectWithoutPropertiesLoose,module.exports.__esModule=!0,module.exports.default=module.exports; + +},{}],8:[function(require,module,exports){ +function _typeof(o){return module.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},module.exports.__esModule=!0,module.exports.default=module.exports,_typeof(o)}module.exports=_typeof,module.exports.__esModule=!0,module.exports.default=module.exports; + +},{}],9:[function(require,module,exports){ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).FloatingUICore={})}(this,(function(t){"use strict";function e(t){return t.split("-")[1]}function n(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function i(t){return["top","bottom"].includes(o(t))?"x":"y"}function r(t,r,a){let{reference:l,floating:s}=t;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=i(r),m=n(u),d=l[m]/2-s[m]/2,p="x"===u;let g;switch(o(r)){case"top":g={x:c,y:l.y-s.height};break;case"bottom":g={x:c,y:l.y+l.height};break;case"right":g={x:l.x+l.width,y:f};break;case"left":g={x:l.x-s.width,y:f};break;default:g={x:l.x,y:l.y}}switch(e(r)){case"start":g[u]-=d*(a&&p?-1:1);break;case"end":g[u]+=d*(a&&p?-1:1)}return g}function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=e,h=a(g),y=c[p?"floating"===d?"reference":"floating":d],x=l(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(y)))||n?y:y.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w="floating"===d?{...s.floating,x:o,y:i}:s.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),b=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},A=l(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:v,strategy:f}):w);return{top:(x.top-A.top+h.top)/b.y,bottom:(A.bottom-x.bottom+h.bottom)/b.y,left:(x.left-A.left+h.left)/b.x,right:(A.right-x.right+h.right)/b.x}}const c=Math.min,f=Math.max;function u(t,e,n){return f(t,c(e,n))}const m=["top","right","bottom","left"],d=m.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]),p={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t){return t.replace(/left|right|bottom|top/g,(t=>p[t]))}function h(t,o,r){void 0===r&&(r=!1);const a=e(t),l=i(t),s=n(l);let c="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return o.reference[s]>o.floating[s]&&(c=g(c)),{main:c,cross:g(c)}}const y={start:"end",end:"start"};function x(t){return t.replace(/start|end/g,(t=>y[t]))}function w(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function v(t){return m.some((e=>t[e]>=0))}function b(t){const e=c(...t.map((t=>t.left))),n=c(...t.map((t=>t.top)));return{x:e,y:n,width:f(...t.map((t=>t.right)))-e,height:f(...t.map((t=>t.bottom)))-n}}function A(t){return"x"===t?"y":"x"}t.arrow=t=>({name:"arrow",options:t,async fn(o){const{element:r,padding:l=0}=t||{},{x:s,y:c,placement:f,rects:m,platform:d,elements:p}=o;if(null==r)return{};const g=a(l),h={x:s,y:c},y=i(f),x=n(y),w=await d.getDimensions(r),v="y"===y,b=v?"top":"left",A=v?"bottom":"right",R=v?"clientHeight":"clientWidth",P=m.reference[x]+m.reference[y]-h[y]-m.floating[x],T=h[y]-m.reference[y],E=await(null==d.getOffsetParent?void 0:d.getOffsetParent(r));let D=E?E[R]:0;D&&await(null==d.isElement?void 0:d.isElement(E))||(D=p.floating[R]||m.floating[x]);const O=P/2-T/2,L=g[b],k=D-w[x]-g[A],C=D/2-w[x]/2+O,B=u(L,C,k),H=null!=e(f)&&C!=B&&m.reference[x]/2-(Ce(n)===t)),...i.filter((n=>e(n)!==t))]:i.filter((t=>o(t)===t))).filter((o=>!t||e(o)===t||!!n&&x(o)!==o))}(g||null,w,y):y,A=await s(n,v),R=(null==(i=c.autoPlacement)?void 0:i.index)||0,P=b[R];if(null==P)return{};const{main:T,cross:E}=h(P,l,await(null==u.isRTL?void 0:u.isRTL(m.floating)));if(f!==P)return{reset:{placement:b[0]}};const D=[A[o(P)],A[T],A[E]],O=[...(null==(r=c.autoPlacement)?void 0:r.overflows)||[],{placement:P,overflows:D}],L=b[R+1];if(L)return{data:{index:R+1,overflows:O},reset:{placement:L}};const k=O.map((t=>{const n=e(t.placement);return[t.placement,n&&p?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),C=(null==(a=k.filter((t=>t[2].slice(0,e(t[0])?2:3).every((t=>t<=0))))[0])?void 0:a[0])||k[0][0];return C!==f?{data:{index:R+1,overflows:O},reset:{placement:C}}:{}}}},t.computePosition=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:m}=r(f,o,c),d=o,p={},g=0;for(let n=0;nt+"-"+a)),n&&(l=l.concat(l.map(x)))),l}(c,v,w,P));const E=[c,...T],D=await s(n,b),O=[];let L=(null==(i=a.flip)?void 0:i.overflows)||[];if(m&&O.push(D[A]),d){const{main:t,cross:e}=h(r,l,P);O.push(D[t],D[e])}if(L=[...L,{placement:r,overflows:O}],!O.every((t=>t<=0))){var k,C;const t=((null==(k=a.flip)?void 0:k.index)||0)+1,e=E[t];if(e)return{data:{index:t,overflows:L},reset:{placement:e}};let n=null==(C=L.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(y){case"bestFit":{var B;const t=null==(B=L.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:B[0];t&&(n=t);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},t.hide=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:n="referenceHidden",...o}=t,{rects:i}=e;switch(n){case"referenceHidden":{const t=w(await s(e,{...o,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:v(t)}}}case"escaped":{const t=w(await s(e,{...o,altBoundary:!0}),i.floating);return{data:{escapedOffsets:t,escaped:v(t)}}}default:return{}}}}},t.inline=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:s,platform:u,strategy:m}=e,{padding:d=2,x:p,y:g}=t,h=Array.from(await(null==u.getClientRects?void 0:u.getClientRects(r.reference))||[]),y=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;to.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>l(b(t))))}(h),x=l(b(h)),w=a(d);const v=await u.getElementRects({reference:{getBoundingClientRect:function(){if(2===y.length&&y[0].left>y[1].right&&null!=p&&null!=g)return y.find((t=>p>t.left-w.left&&pt.top-w.top&&g=2){if("x"===i(n)){const t=y[0],e=y[y.length-1],i="top"===o(n),r=t.top,a=e.bottom,l=i?t.left:e.left,s=i?t.right:e.right;return{top:r,bottom:a,left:l,right:s,width:s-l,height:a-r,x:l,y:r}}const t="left"===o(n),e=f(...y.map((t=>t.right))),r=c(...y.map((t=>t.left))),a=y.filter((n=>t?n.left===r:n.right===e)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:r,right:e,width:e-r,height:s-l,x:r,y:l}}return x}},floating:r.floating,strategy:m});return s.reference.x!==v.reference.x||s.reference.y!==v.reference.y||s.reference.width!==v.reference.width||s.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},t.limitShift=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:a,rects:l,middlewareData:s}=e,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=t,m={x:n,y:r},d=i(a),p=A(d);let g=m[d],h=m[p];const y="function"==typeof c?c(e):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===d?"height":"width",e=l.reference[d]-l.floating[t]+x.mainAxis,n=l.reference[d]+l.reference[t]-x.mainAxis;gn&&(g=n)}if(u){var w,v;const t="y"===d?"width":"height",e=["top","left"].includes(o(a)),n=l.reference[p]-l.floating[t]+(e&&(null==(w=s.offset)?void 0:w[p])||0)+(e?0:x.crossAxis),i=l.reference[p]+l.reference[t]+(e?0:(null==(v=s.offset)?void 0:v[p])||0)-(e?x.crossAxis:0);hi&&(h=i)}return{[d]:g,[p]:h}}}},t.offset=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){const{x:r,y:a}=n,l=await async function(t,n){const{placement:r,platform:a,elements:l}=t,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=o(r),f=e(r),u="x"===i(r),m=["left","top"].includes(c)?-1:1,d=s&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:g,crossAxis:h,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*d,y:g*m}:{x:g*m,y:h*d}}(n,t);return{x:r+l.x,y:a+l.y,data:l}}}},t.rectToClientRect=l,t.shift=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=t,d={x:n,y:r},p=await s(e,m),g=i(o(a)),h=A(g);let y=d[g],x=d[h];if(l){const t="y"===g?"bottom":"right";y=u(y+p["y"===g?"top":"left"],y,y-p[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+p["y"===h?"top":"left"],x,x-p[t])}const w=f.fn({...e,[g]:y,[h]:x});return{...w,data:{x:w.x-n,y:w.y-r}}}}},t.size=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(n){const{placement:r,rects:a,platform:l,elements:u}=n,{apply:m=(()=>{}),...d}=t,p=await s(n,d),g=o(r),h=e(r),y="x"===i(r),{width:x,height:w}=a.floating;let v,b;"top"===g||"bottom"===g?(v=g,b=h===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(b=g,v="end"===h?"top":"bottom");const A=w-p[v],R=x-p[b],P=!n.middlewareData.shift;let T=A,E=R;if(y){const t=x-p.left-p.right;E=h||P?c(R,t):t}else{const t=w-p.top-p.bottom;T=h||P?c(A,t):t}if(P&&!h){const t=f(p.left,0),e=f(p.right,0),n=f(p.top,0),o=f(p.bottom,0);y?E=x-2*(0!==t||0!==e?t+e:f(p.left,p.right)):T=w-2*(0!==n||0!==o?n+o:f(p.top,p.bottom))}await m({...n,availableWidth:E,availableHeight:T});const D=await l.getDimensions(u.floating);return x!==D.width||w!==D.height?{reset:{rects:!0}}:{}}}},Object.defineProperty(t,"__esModule",{value:!0})})); + +},{}],21:[function(require,module,exports){ +"use strict";function setRef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}exports.setRef=setRef; + +},{}],24:[function(require,module,exports){ +"use strict";function toArray(r){return Array.isArray(r)?r:void 0!==r?[r]:[]}function addItemToArray(r,e,t){return void 0===t&&(t=-1),t in r?[...r.slice(0,t),e,...r.slice(t)]:[...r,e]}function flatten2DArray(r){const e=[];for(const t of r)e.push(...t);return e}function reverseArray(r){return r.slice().reverse()}exports.addItemToArray=addItemToArray,exports.flatten2DArray=flatten2DArray,exports.reverseArray=reverseArray,exports.toArray=toArray; + +},{}],25:[function(require,module,exports){ +"use strict";const canUseDOM=checkIsBrowser();function checkIsBrowser(){return"undefined"!=typeof window&&!!window.document?.createElement}function getDocument(e){return e?e.ownerDocument||e:document}function getWindow(e){return getDocument(e).defaultView||window}function getActiveElement(e,t){void 0===t&&(t=!1);const{activeElement:n}=getDocument(e);if(!n?.nodeName)return null;if(isFrame(n)&&n.contentDocument)return getActiveElement(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=getDocument(n).getElementById(e);if(t)return t}}return n}function contains(e,t){return e===t||e.contains(t)}function isFrame(e){return"IFRAME"===e.tagName}function isButton(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==buttonInputTypes.indexOf(e.type)}const buttonInputTypes=["button","color","file","image","reset","submit"];function matches(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function isVisible(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function closest(e,t){if("closest"in e)return e.closest(t);do{if(matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function isTextField(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function getPopupRole(e,t){const n=e?.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function getPopupItemRole(e,t){const n=getPopupRole(e);if(!n)return t;return{menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[n]??t}function getTextboxSelection(e){let t=0,n=0;if(isTextField(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const o=getDocument(e).getSelection();if(o?.rangeCount&&o.anchorNode&&contains(e,o.anchorNode)&&o.focusNode&&contains(e,o.focusNode)){const i=o.getRangeAt(0),r=i.cloneRange();r.selectNodeContents(e),r.setEnd(i.startContainer,i.startOffset),t=r.toString().length,r.setEnd(i.endContainer,i.endOffset),n=r.toString().length}}return{start:t,end:n}}function scrollIntoViewIfNeeded(e,t){isPartiallyHidden(e)&&"scrollIntoView"in e&&e.scrollIntoView(t)}function getScrollingElement(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return getScrollingElement(e.parentElement)||document.scrollingElement||document.body}function isPartiallyHidden(e){const t=e.getBoundingClientRect(),n=getScrollingElement(e);if(!n)return!1;const o=n.getBoundingClientRect(),i="HTML"===n.tagName,r=i?o.top+n.scrollTop:o.top,s=i?n.clientHeight:o.bottom,c=i?o.left+n.scrollLeft:o.left,l=i?n.clientWidth:o.right,u=t.tops,d=t.right>l;return u||g||a||d}exports.canUseDOM=canUseDOM,exports.closest=closest,exports.contains=contains,exports.getActiveElement=getActiveElement,exports.getDocument=getDocument,exports.getPopupItemRole=getPopupItemRole,exports.getPopupRole=getPopupRole,exports.getScrollingElement=getScrollingElement,exports.getTextboxSelection=getTextboxSelection,exports.getWindow=getWindow,exports.isButton=isButton,exports.isFrame=isFrame,exports.isPartiallyHidden=isPartiallyHidden,exports.isTextField=isTextField,exports.isVisible=isVisible,exports.matches=matches,exports.scrollIntoViewIfNeeded=scrollIntoViewIfNeeded; + +},{}],28:[function(require,module,exports){ +"use strict";function noop(){}function shallowEqual(t,e){if(t===e)return!0;if(!t)return!1;if(!e)return!1;if("object"!=typeof t)return!1;if("object"!=typeof e)return!1;const r=Object.keys(t),n=Object.keys(e),{length:o}=r;if(n.length!==o)return!1;for(const n of r)if(t[n]!==e[n])return!1;return!0}function applyState(t,e){if(isUpdater(t)){return t(isLazyValue(e)?e():e)}return t}function isUpdater(t){return"function"==typeof t}function isLazyValue(t){return"function"==typeof t}function isObject(t){return"object"==typeof t&&null!=t}function isEmpty(t){return Array.isArray(t)?!t.length:isObject(t)?!Object.keys(t).length:null==t||""===t}function isPromise(t){return Boolean(t&&"then"in t&&"function"==typeof t.then)}function isInteger(t){return"number"==typeof t?Math.floor(t)===t:String(Math.floor(Number(t)))===t}function hasOwnProperty(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function chain(){for(var t=arguments.length,e=new Array(t),r=0;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=f-c,y=Math.floor,C=String.fromCharCode;function m(e){throw new RangeError(x[e])}function j(e,o){for(var n=e.length,t=[];n--;)t[n]=o(e[n]);return t}function A(e,o){var n=e.split("@"),t="";return n.length>1&&(t=n[0]+"@",e=n[1]),t+j((e=e.replace(w,".")).split("."),o).join(".")}function I(e){for(var o,n,t=[],r=0,u=e.length;r=55296&&o<=56319&&r65535&&(o+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=C(e)})).join("")}function F(e,o){return e+22+75*(e<26)-((0!=o)<<5)}function O(e,o,n){var t=0;for(e=n?y(e/d):e>>1,e+=y(e/o);e>b*l>>1;t+=f)e=y(e/b);return y(t+(b+1)*e/(e+s))}function S(e){var o,n,t,r,u,s,d,v,g,w,x,b=[],C=e.length,j=0,A=a,I=p;for((n=e.lastIndexOf(h))<0&&(n=0),t=0;t=128&&m("not-basic"),b.push(e.charCodeAt(t));for(r=n>0?n+1:0;r=C&&m("invalid-input"),((v=(x=e.charCodeAt(r++))-48<10?x-22:x-65<26?x-65:x-97<26?x-97:f)>=f||v>y((i-j)/s))&&m("overflow"),j+=v*s,!(v<(g=d<=I?c:d>=I+l?l:d-I));d+=f)s>y(i/(w=f-g))&&m("overflow"),s*=w;I=O(j-u,o=b.length+1,0==u),y(j/o)>i-A&&m("overflow"),A+=y(j/o),j%=o,b.splice(j++,0,A)}return E(b)}function T(e){var o,n,t,r,u,s,d,v,g,w,x,b,j,A,E,S=[];for(b=(e=I(e)).length,o=a,n=0,u=p,s=0;s=o&&xy((i-n)/(j=t+1))&&m("overflow"),n+=(d-o)*j,o=d,s=0;si&&m("overflow"),x==o){for(v=n,g=f;!(v<(w=g<=u?c:g>=u+l?l:g-u));g+=f)E=v-w,A=f-w,S.push(C(F(w+E%A,0))),v=y(E/A);S.push(C(F(v,0))),u=O(n,j,t==r),n=0,++t}++n,++o}return S.join("")}if(r={version:"1.4.1",ucs2:{decode:I,encode:E},decode:S,encode:T,toASCII:function(e){return A(e,(function(e){return g.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return A(e,(function(e){return v.test(e)?S(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return r}));else if(o&&n)if(module.exports==o)n.exports=r;else for(u in r)r.hasOwnProperty(u)&&(o[u]=r[u]);else e.punycode=r}(this); + +}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],85:[function(require,module,exports){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const getByDot=(e,t)=>{if(["undefined","number","string"].includes(typeof e)||[null].includes(e))throw new Error("You have to provide a valid first parameter.");return t?-1===t.indexOf(".")?e[t]:t.split(".").reduce(((e,t)=>void 0!==e?"object"==typeof e?e[t]:void 0:"undefined"),e):e};var _default=getByDot;exports.default=_default; + +},{}],88:[function(require,module,exports){ +"use strict";var _ref;Object.defineProperty(exports,"__esModule",{value:!0});var hasSymbol="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),hasMap="undefined"!=typeof Map,hasSet="undefined"!=typeof Set,hasProxies="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,NOTHING=hasSymbol?Symbol.for("immer-nothing"):((_ref={})["immer-nothing"]=!0,_ref),DRAFTABLE=hasSymbol?Symbol.for("immer-draftable"):"__$immer_draftable",DRAFT_STATE=hasSymbol?Symbol.for("immer-state"):"__$immer_state",iteratorSymbol="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",errors={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"};function die(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n3?t.type_-4:t.type_:Array.isArray(e)?1:isMap(e)?2:isSet(e)?3:0}function has(e,t){return 2===getArchtype(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function get(e,t){return 2===getArchtype(e)?e.get(t):e[t]}function set(e,t,r){var n=getArchtype(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function is(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function isMap(e){return hasMap&&e instanceof Map}function isSet(e){return hasSet&&e instanceof Set}function latest(e){return e.copy_||e.base_}function shallowCopy(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=getOwnPropertyDescriptors(e);delete t[DRAFT_STATE];for(var r=ownKeys(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=dontMutateFrozenCollections),Object.freeze(e),t&&each(e,(function(e,t){return freeze(t,!0)}),!0)),e}function dontMutateFrozenCollections(){die(2)}function isFrozen(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}var currentScope,plugins={};function getPlugin(e){var t=plugins[e];return t||die(18,e),t}function loadPlugin(e,t){plugins[e]||(plugins[e]=t)}function getCurrentScope(){return currentScope||die(0),currentScope}function createScope(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(e,t){t&&(getPlugin("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function revokeScope(e){leaveScope(e),e.drafts_.forEach(revokeDraft),e.drafts_=null}function leaveScope(e){e===currentScope&&(currentScope=e.parent_)}function enterScope(e){return currentScope=createScope(currentScope,e)}function revokeDraft(e){var t=e[DRAFT_STATE];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;var r=t.drafts_[0],n=void 0!==e&&e!==r;return t.immer_.useProxies_||getPlugin("ES5").willFinalizeES5_(t,e,n),n?(r[DRAFT_STATE].modified_&&(revokeScope(t),die(4)),isDraftable(e)&&(e=finalize(t,e),t.parent_||maybeFreeze(t,e)),t.patches_&&getPlugin("Patches").generateReplacementPatches_(r[DRAFT_STATE].base_,e,t.patches_,t.inversePatches_)):e=finalize(t,r,[]),revokeScope(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NOTHING?e:void 0}function finalize(e,t,r){if(isFrozen(t))return t;var n=t[DRAFT_STATE];if(!n)return each(t,(function(a,o){return finalizeProperty(e,n,t,a,o,r)}),!0),t;if(n.scope_!==e)return t;if(!n.modified_)return maybeFreeze(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;var a=4===n.type_||5===n.type_?n.copy_=shallowCopy(n.draft_):n.copy_,o=a,i=!1;3===n.type_&&(o=new Set(a),a.clear(),i=!0),each(o,(function(t,o){return finalizeProperty(e,n,a,t,o,r,i)})),maybeFreeze(e,a,!1),r&&e.patches_&&getPlugin("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function finalizeProperty(e,t,r,n,a,o,i){if(a===r&&die(5),isDraft(a)){var s=finalize(e,a,o&&t&&3!==t.type_&&!has(t.assigned_,n)?o.concat(n):void 0);if(set(r,n,s),!isDraft(s))return;e.canAutoFreeze_=!1}else i&&r.add(a);if(isDraftable(a)&&!isFrozen(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;finalize(e,a),t&&t.scope_.parent_||maybeFreeze(e,a)}}function maybeFreeze(e,t,r){void 0===r&&(r=!1),!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&freeze(t,r)}function createProxyProxy(e,t){var r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},a=n,o=objectTraps;r&&(a=[n],o=arrayTraps);var i=Proxy.revocable(a,o),s=i.revoke,c=i.proxy;return n.draft_=c,n.revoke_=s,c}var objectTraps={get:function(e,t){if(t===DRAFT_STATE)return e;var r=latest(e);if(!has(r,t))return readPropFromProto(e,r,t);var n=r[t];return e.finalized_||!isDraftable(n)?n:n===peek(e.base_,t)?(prepareCopy(e),e.copy_[t]=createProxy(e.scope_.immer_,n,e)):n},has:function(e,t){return t in latest(e)},ownKeys:function(e){return Reflect.ownKeys(latest(e))},set:function(e,t,r){var n=getDescriptorFromProto(latest(e),t);if(null==n?void 0:n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){var a=peek(latest(e),t),o=null==a?void 0:a[DRAFT_STATE];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(is(r,a)&&(void 0!==r||has(e.base_,t)))return!0;prepareCopy(e),markChanged(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:function(e,t){return void 0!==peek(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,prepareCopy(e),markChanged(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor:function(e,t){var r=latest(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){die(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base_)},setPrototypeOf:function(){die(12)}},arrayTraps={};function peek(e,t){var r=e[DRAFT_STATE];return(r?latest(r):e)[t]}function readPropFromProto(e,t,r){var n,a=getDescriptorFromProto(t,r);return a?"value"in a?a.value:null===(n=a.get)||void 0===n?void 0:n.call(e.draft_):void 0}function getDescriptorFromProto(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function markChanged(e){e.modified_||(e.modified_=!0,e.parent_&&markChanged(e.parent_))}function prepareCopy(e){e.copy_||(e.copy_=shallowCopy(e.base_))}each(objectTraps,(function(e,t){arrayTraps[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),arrayTraps.deleteProperty=function(e,t){return isNaN(parseInt(t))&&die(13),arrayTraps.set.call(this,e,t,void 0)},arrayTraps.set=function(e,t,r){return"length"!==t&&isNaN(parseInt(t))&&die(14),objectTraps.set.call(this,e[0],t,r,e[0])};var Immer=function(){function e(e){var t=this;this.useProxies_=hasProxies,this.autoFreeze_=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var a=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s1?n-1:0),o=1;o=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var a=getPlugin("Patches").applyPatches_;return isDraft(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}();function createProxy(e,t,r){var n=isMap(t)?getPlugin("MapSet").proxyMap_(t,r):isSet(t)?getPlugin("MapSet").proxySet_(t,r):e.useProxies_?createProxyProxy(t,r):getPlugin("ES5").createES5Proxy_(t,r);return(r?r.scope_:getCurrentScope()).drafts_.push(n),n}function current(e){return isDraft(e)||die(22,e),currentImpl(e)}function currentImpl(e){if(!isDraftable(e))return e;var t,r=e[DRAFT_STATE],n=getArchtype(e);if(r){if(!r.modified_&&(r.type_<4||!getPlugin("ES5").hasChanges_(r)))return r.base_;r.finalized_=!0,t=copyHelper(e,n),r.finalized_=!1}else t=copyHelper(e,n);return each(t,(function(e,n){r&&get(r.base_,e)===n||set(t,e,currentImpl(n))})),3===n?new Set(t):t}function copyHelper(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return shallowCopy(e)}function enableES5(){var e={};function t(t,r){var n=e[t];return n?n.enumerable=r:e[t]=n={configurable:!0,enumerable:r,get:function(){var e=this[DRAFT_STATE];return i(e),objectTraps.get(e,t)},set:function(e){var r=this[DRAFT_STATE];i(r),objectTraps.set(r,t,e)}},n}function r(e){for(var t=e.length-1;t>=0;t--){var r=e[t][DRAFT_STATE];if(!r.modified_)switch(r.type_){case 5:o(r)&&markChanged(r);break;case 4:a(r)&&markChanged(r)}}}function n(e){if(e&&"object"==typeof e){var t=e[DRAFT_STATE];if(t){var r=t.base_,a=t.draft_,i=t.assigned_,s=t.type_;if(4===s)each(a,(function(e){e!==DRAFT_STATE&&(void 0!==r[e]||has(r,e)?i[e]||n(a[e]):(i[e]=!0,markChanged(t)))})),each(r,(function(e){void 0!==a[e]||has(a,e)||(i[e]=!1,markChanged(t))}));else if(5===s){if(o(t)&&(markChanged(t),i.length=!0),a.length=0;a--){var o=n[a];if(o!==DRAFT_STATE){var i=t[o];if(void 0===i&&!has(t,o))return!0;var s=r[o],c=s&&s[DRAFT_STATE];if(c?c.base_!==i:!is(s,i))return!0}}var u=!!t[DRAFT_STATE];return n.length!==ownKeys(t).length+(u?0:1)}function o(e){var t=e.draft_;if(t.length!==e.base_.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n1?e-1:0),n=1;n3?e.t-4:e.t:Array.isArray(t)?1:c(t)?2:v(t)?3:0}function u(t,e){return 2===i(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){return 2===i(t)?t.get(e):t[e]}function f(t,e,r){var n=i(t);2===n?t.set(e,r):3===n?t.add(r):t[e]=r}function a(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function c(t){return W&&t instanceof Map}function v(t){return X&&t instanceof Set}function s(t){return t.i||t.u}function p(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=U(t);delete e[H];for(var r=T(e),n=0;n1&&(n.set=n.add=n.clear=n.delete=d),Object.freeze(n),o&&e(n,(function(t,e){return l(e,!0)}),!0)),n}function d(){n(2)}function h(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function y(t){var e=V[t];return e||n(18,t),e}function _(t,e){V[t]||(V[t]=e)}function b(){return I}function m(t,e){e&&(y("Patches"),t.o=[],t.v=[],t.s=e)}function j(t){O(t),t.p.forEach(w),t.p=null}function O(t){t===I&&(I=t.l)}function x(t){return I={p:[],l:I,h:t,_:!0,m:0}}function w(t){var e=t[H];0===e.t||1===e.t?e.j():e.O=!0}function S(e,r){r.m=r.p.length;var o=r.p[0],i=void 0!==e&&e!==o;return r.h.S||y("ES5").P(r,e,i),i?(o[H].g&&(j(r),n(4)),t(e)&&(e=P(r,e),r.l||M(r,e)),r.o&&y("Patches").M(o[H].u,e,r.o,r.v)):e=P(r,o,[]),j(r),r.o&&r.s(r.o,r.v),e!==B?e:void 0}function P(t,r,n){if(h(r))return r;var o=r[H];if(!o)return e(r,(function(e,i){return g(t,o,r,e,i,n)}),!0),r;if(o.A!==t)return r;if(!o.g)return M(t,o.u,!0),o.u;if(!o.R){o.R=!0,o.A.m--;var i=4===o.t||5===o.t?o.i=p(o.k):o.i,u=i,a=!1;3===o.t&&(u=new Set(i),i.clear(),a=!0),e(u,(function(e,r){return g(t,o,i,e,r,n,a)})),M(t,i,!1),n&&t.o&&y("Patches").F(o,n,t.o,t.v)}return o.i}function g(e,n,o,i,a,c,s){if(r(a)){var l=P(e,a,c&&n&&3!==n.t&&!u(n.N,i)?c.concat(i):void 0);if(f(o,i,l),!r(l))return;e._=!1}else s&&o.add(a);if(t(a)&&!h(a)){if(!e.h.D&&e.m<1)return;P(e,a),n&&n.A.l||M(e,a)}}function M(t,e,r){void 0===r&&(r=!1),!t.l&&t.h.D&&t._&&l(e,r)}function A(t,e){var r=t[H];return(r?s(r):t)[e]}function z(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function E(t){t.g||(t.g=!0,t.l&&E(t.l))}function R(t){t.i||(t.i=p(t.u))}function k(t,e,r){var n=c(e)?y("MapSet").K(e,r):v(e)?y("MapSet").$(e,r):t.S?function(t,e){var r=Array.isArray(t),n={t:r?1:0,A:e?e.A:b(),g:!1,R:!1,N:{},l:e,u:t,k:null,i:null,j:null,C:!1},o=n,i=Y;r&&(o=[n],i=Z);var u=Proxy.revocable(o,i),a=u.revoke,c=u.proxy;return n.k=c,n.j=a,c}(e,r):y("ES5").I(e,r);return(r?r.A:b()).p.push(n),n}function F(u){return r(u)||n(22,u),function r(n){if(!t(n))return n;var u,a=n[H],c=i(n);if(a){if(!a.g&&(a.t<4||!y("ES5").J(a)))return a.u;a.R=!0,u=N(n,c),a.R=!1}else u=N(n,c);return e(u,(function(t,e){a&&o(a.u,t)===e||f(u,t,r(e))})),3===c?new Set(u):u}(u)}function N(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return p(t)}function D(){function t(t,e){var r=c[t];return r?r.enumerable=e:c[t]=r={configurable:!0,enumerable:e,get:function(){return Y.get(this[H],t)},set:function(e){Y.set(this[H],t,e)}},r}function n(t){for(var e=t.length-1;e>=0;e--){var r=t[e][H];if(!r.g)switch(r.t){case 5:i(r)&&E(r);break;case 4:o(r)&&E(r)}}}function o(t){for(var e=t.u,r=t.k,n=T(r),o=n.length-1;o>=0;o--){var i=n[o];if(i!==H){var c=e[i];if(void 0===c&&!u(e,i))return!0;var f=r[i],s=f&&f[H];if(s?s.u!==c:!a(f,c))return!0}}var l=!!e[H];return n.length!==T(e).length+(l?0:1)}function i(t){var e=t.k;if(e.length!==t.u.length)return!0;var r=Object.getOwnPropertyDescriptor(e,e.length-1);if(r&&!r.get)return!0;for(var n=0;n1?r-1:0),i=1;i1?n-1:0),i=1;i=0;n--){var o=e[n];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}n>-1&&(e=e.slice(n+1));var i=y("Patches").W;return r(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},e}(),rn=new nn,tn=rn.produce,en=rn.produceWithPatches.bind(rn),un=rn.setAutoFreeze.bind(rn),on=rn.setUseProxies.bind(rn),fn=rn.applyPatches.bind(rn),an=rn.createDraft.bind(rn),cn=rn.finishDraft.bind(rn);exports.Immer=nn,exports.applyPatches=fn,exports.castDraft=function(t){return t},exports.castImmutable=function(t){return t},exports.createDraft=an,exports.current=F,exports.default=tn,exports.enableAllPlugins=function(){D(),$(),K()},exports.enableES5=D,exports.enableMapSet=$,exports.enablePatches=K,exports.finishDraft=cn,exports.freeze=l,exports.immerable=G,exports.isDraft=r,exports.isDraftable=t,exports.nothing=B,exports.original=function(t){return r(t)||n(23,t),t[H].u},exports.produce=tn,exports.produceWithPatches=en,exports.setAutoFreeze=un,exports.setUseProxies=on; + +},{}],91:[function(require,module,exports){ +var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function insertCss(e,t){if(t=t||{},void 0===e)throw new Error(usage);var s,n=!0===t.prepend?"prepend":"append",r=void 0!==t.container?t.container:document.querySelector("head"),o=containers.indexOf(r);return-1===o&&(o=containers.push(r)-1,styleElements[o]={}),void 0!==styleElements[o]&&void 0!==styleElements[o][n]?s=styleElements[o][n]:(s=styleElements[o][n]=createStyleElement(),"prepend"===n?r.insertBefore(s,r.childNodes[0]):r.appendChild(s)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function createStyleElement(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}module.exports=insertCss,module.exports.insertCss=insertCss; + +},{}],92:[function(require,module,exports){ +"use strict"; +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ +function isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}function isPlainObject(t){var e,o;return!1!==isObject(t)&&(void 0===(e=t.constructor)||!1!==isObject(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf"))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isPlainObject=isPlainObject; + +},{}],93:[function(require,module,exports){ +module.exports={ + "ad": true, + "ae": true, + "af": true, + "ag": true, + "ai": true, + "al": true, + "am": true, + "ao": true, + "aq": true, + "ar": true, + "as": true, + "at": true, + "au": true, + "aw": true, + "ax": true, + "az": true, + "ba": true, + "bb": true, + "bd": true, + "be": true, + "bf": true, + "bg": true, + "bh": true, + "bi": true, + "bj": true, + "bl": true, + "bm": true, + "bn": true, + "bo": true, + "bq": true, + "br": true, + "bs": true, + "bt": true, + "bv": true, + "bw": true, + "by": true, + "bz": true, + "ca": true, + "cc": true, + "cd": true, + "cf": true, + "cg": true, + "ch": true, + "ci": true, + "ck": true, + "cl": true, + "cm": true, + "cn": true, + "co": true, + "cr": true, + "cu": true, + "cv": true, + "cw": true, + "cx": true, + "cy": true, + "cz": true, + "de": true, + "dj": true, + "dk": true, + "dm": true, + "do": true, + "dz": true, + "ec": true, + "ee": true, + "eg": true, + "er": true, + "es": true, + "et": true, + "fi": true, + "fj": true, + "fk": true, + "fm": true, + "fo": true, + "fr": true, + "ga": true, + "gb (.uk)": true, + "gd": true, + "ge": true, + "gf": true, + "gg": true, + "gh": true, + "gi": true, + "gl": true, + "gm": true, + "gn": true, + "gp": true, + "gq": true, + "gr": true, + "gs": true, + "gt": true, + "gu": true, + "gw": true, + "gy": true, + "hk": true, + "hm": true, + "hn": true, + "hr": true, + "ht": true, + "hu": true, + "id": true, + "ie": true, + "il": true, + "im": true, + "in": true, + "io": true, + "iq": true, + "ir": true, + "is": true, + "it": true, + "je": true, + "jm": true, + "jo": true, + "jp": true, + "ke": true, + "kg": true, + "kh": true, + "ki": true, + "km": true, + "kn": true, + "kp": true, + "kr": true, + "kw": true, + "ky": true, + "kz": true, + "la": true, + "lb": true, + "lc": true, + "li": true, + "lk": true, + "lr": true, + "ls": true, + "lt": true, + "lu": true, + "lv": true, + "ly": true, + "ma": true, + "mc": true, + "md": true, + "me": true, + "mf": true, + "mg": true, + "mh": true, + "mk": true, + "ml": true, + "mm": true, + "mn": true, + "mo": true, + "mp": true, + "mq": true, + "mr": true, + "ms": true, + "mt": true, + "mu": true, + "mv": true, + "mw": true, + "mx": true, + "my": true, + "mz": true, + "na": true, + "nc": true, + "ne": true, + "nf": true, + "ng": true, + "ni": true, + "nl": true, + "no": true, + "np": true, + "nr": true, + "nu": true, + "nz": true, + "om": true, + "pa": true, + "pe": true, + "pf": true, + "pg": true, + "ph": true, + "pk": true, + "pl": true, + "pm": true, + "pn": true, + "pr": true, + "ps": true, + "pt": true, + "pw": true, + "py": true, + "qa": true, + "re": true, + "ro": true, + "rs": true, + "ru": true, + "rw": true, + "sa": true, + "sb": true, + "sc": true, + "sd": true, + "se": true, + "sg": true, + "sh": true, + "si": true, + "sj": true, + "sk": true, + "sl": true, + "sm": true, + "sn": true, + "so": true, + "sr": true, + "ss": true, + "st": true, + "sv": true, + "sx": true, + "sy": true, + "sz": true, + "tc": true, + "td": true, + "tf": true, + "tg": true, + "th": true, + "tj": true, + "tk": true, + "tl": true, + "tm": true, + "tn": true, + "to": true, + "tr": true, + "tt": true, + "tv": true, + "tw": true, + "tz": true, + "ua": true, + "ug": true, + "us": true, + "uy": true, + "uz": true, + "va": true, + "vc": true, + "ve": true, + "vg": true, + "vi": true, + "vn": true, + "vu": true, + "wf": true, + "ws": true, + "ye": true, + "yt": true, + "za": true, + "zm": true, + "zw": true +} + +},{}],94:[function(require,module,exports){ +module.exports={ + "com.ac": true, + "net.ac": true, + "gov.ac": true, + "org.ac": true, + "mil.ac": true, + "co.ae": true, + "net.ae": true, + "gov.ae": true, + "ac.ae": true, + "sch.ae": true, + "org.ae": true, + "mil.ae": true, + "pro.ae": true, + "name.ae": true, + "com.af": true, + "edu.af": true, + "gov.af": true, + "net.af": true, + "org.af": true, + "com.al": true, + "edu.al": true, + "gov.al": true, + "mil.al": true, + "net.al": true, + "org.al": true, + "ed.ao": true, + "gv.ao": true, + "og.ao": true, + "co.ao": true, + "pb.ao": true, + "it.ao": true, + "com.ar": true, + "edu.ar": true, + "gob.ar": true, + "gov.ar": true, + "int.ar": true, + "mil.ar": true, + "net.ar": true, + "org.ar": true, + "tur.ar": true, + "gv.at": true, + "ac.at": true, + "co.at": true, + "or.at": true, + "com.au": true, + "net.au": true, + "org.au": true, + "edu.au": true, + "gov.au": true, + "csiro.au": true, + "asn.au": true, + "id.au": true, + "vic.au": true, + "sa.au": true, + "wa.au": true, + "nt.au": true, + "tas.au": true, + "qld.au": true, + "act.au": true, + "conf.au": true, + "oz.au": true, + "org.ba": true, + "net.ba": true, + "edu.ba": true, + "gov.ba": true, + "mil.ba": true, + "unsa.ba": true, + "untz.ba": true, + "unmo.ba": true, + "unbi.ba": true, + "unze.ba": true, + "co.ba": true, + "com.ba": true, + "rs.ba": true, + "co.bb": true, + "com.bb": true, + "net.bb": true, + "org.bb": true, + "gov.bb": true, + "edu.bb": true, + "info.bb": true, + "store.bb": true, + "tv.bb": true, + "biz.bb": true, + "com.bh": true, + "info.bh": true, + "cc.bh": true, + "edu.bh": true, + "biz.bh": true, + "net.bh": true, + "org.bh": true, + "gov.bh": true, + "com.bn": true, + "edu.bn": true, + "gov.bn": true, + "net.bn": true, + "org.bn": true, + "com.bo": true, + "net.bo": true, + "org.bo": true, + "tv.bo": true, + "mil.bo": true, + "int.bo": true, + "gob.bo": true, + "gov.bo": true, + "edu.bo": true, + "adm.br": true, + "adv.br": true, + "agr.br": true, + "am.br": true, + "arq.br": true, + "art.br": true, + "ato.br": true, + "b.br": true, + "bio.br": true, + "blog.br": true, + "bmd.br": true, + "cim.br": true, + "cng.br": true, + "cnt.br": true, + "com.br": true, + "coop.br": true, + "ecn.br": true, + "edu.br": true, + "eng.br": true, + "esp.br": true, + "etc.br": true, + "eti.br": true, + "far.br": true, + "flog.br": true, + "fm.br": true, + "fnd.br": true, + "fot.br": true, + "fst.br": true, + "g12.br": true, + "ggf.br": true, + "gov.br": true, + "imb.br": true, + "ind.br": true, + "inf.br": true, + "jor.br": true, + "jus.br": true, + "lel.br": true, + "mat.br": true, + "med.br": true, + "mil.br": true, + "mus.br": true, + "net.br": true, + "nom.br": true, + "not.br": true, + "ntr.br": true, + "odo.br": true, + "org.br": true, + "ppg.br": true, + "pro.br": true, + "psc.br": true, + "psi.br": true, + "qsl.br": true, + "rec.br": true, + "slg.br": true, + "srv.br": true, + "tmp.br": true, + "trd.br": true, + "tur.br": true, + "tv.br": true, + "vet.br": true, + "vlog.br": true, + "wiki.br": true, + "zlg.br": true, + "com.bs": true, + "net.bs": true, + "org.bs": true, + "edu.bs": true, + "gov.bs": true, + "om.bz": true, + "du.bz": true, + "ov.bz": true, + "et.bz": true, + "rg.bz": true, + "ab.ca": true, + "bc.ca": true, + "mb.ca": true, + "nb.ca": true, + "nf.ca": true, + "nl.ca": true, + "ns.ca": true, + "nt.ca": true, + "nu.ca": true, + "on.ca": true, + "pe.ca": true, + "qc.ca": true, + "sk.ca": true, + "yk.ca": true, + "co.ck": true, + "org.ck": true, + "edu.ck": true, + "gov.ck": true, + "net.ck": true, + "gen.ck": true, + "biz.ck": true, + "info.ck": true, + "ac.cn": true, + "com.cn": true, + "edu.cn": true, + "gov.cn": true, + "mil.cn": true, + "net.cn": true, + "org.cn": true, + "ah.cn": true, + "bj.cn": true, + "cq.cn": true, + "fj.cn": true, + "gd.cn": true, + "gs.cn": true, + "gz.cn": true, + "gx.cn": true, + "ha.cn": true, + "hb.cn": true, + "he.cn": true, + "hi.cn": true, + "hl.cn": true, + "hn.cn": true, + "jl.cn": true, + "js.cn": true, + "jx.cn": true, + "ln.cn": true, + "nm.cn": true, + "nx.cn": true, + "qh.cn": true, + "sc.cn": true, + "sd.cn": true, + "sh.cn": true, + "sn.cn": true, + "sx.cn": true, + "tj.cn": true, + "tw.cn": true, + "xj.cn": true, + "xz.cn": true, + "yn.cn": true, + "zj.cn": true, + "com.co": true, + "org.co": true, + "edu.co": true, + "gov.co": true, + "net.co": true, + "mil.co": true, + "nom.co": true, + "ac.cr": true, + "co.cr": true, + "ed.cr": true, + "fi.cr": true, + "go.cr": true, + "or.cr": true, + "sa.cr": true, + "cr": true, + "ac.cy": true, + "net.cy": true, + "gov.cy": true, + "org.cy": true, + "pro.cy": true, + "name.cy": true, + "ekloges.cy": true, + "tm.cy": true, + "ltd.cy": true, + "biz.cy": true, + "press.cy": true, + "parliament.cy": true, + "com.cy": true, + "edu.do": true, + "gob.do": true, + "gov.do": true, + "com.do": true, + "sld.do": true, + "org.do": true, + "net.do": true, + "web.do": true, + "mil.do": true, + "art.do": true, + "com.dz": true, + "org.dz": true, + "net.dz": true, + "gov.dz": true, + "edu.dz": true, + "asso.dz": true, + "pol.dz": true, + "art.dz": true, + "com.ec": true, + "info.ec": true, + "net.ec": true, + "fin.ec": true, + "med.ec": true, + "pro.ec": true, + "org.ec": true, + "edu.ec": true, + "gov.ec": true, + "mil.ec": true, + "com.eg": true, + "edu.eg": true, + "eun.eg": true, + "gov.eg": true, + "mil.eg": true, + "name.eg": true, + "net.eg": true, + "org.eg": true, + "sci.eg": true, + "com.er": true, + "edu.er": true, + "gov.er": true, + "mil.er": true, + "net.er": true, + "org.er": true, + "ind.er": true, + "rochest.er": true, + "w.er": true, + "com.es": true, + "nom.es": true, + "org.es": true, + "gob.es": true, + "edu.es": true, + "com.et": true, + "gov.et": true, + "org.et": true, + "edu.et": true, + "net.et": true, + "biz.et": true, + "name.et": true, + "info.et": true, + "ac.fj": true, + "biz.fj": true, + "com.fj": true, + "info.fj": true, + "mil.fj": true, + "name.fj": true, + "net.fj": true, + "org.fj": true, + "pro.fj": true, + "co.fk": true, + "org.fk": true, + "gov.fk": true, + "ac.fk": true, + "nom.fk": true, + "net.fk": true, + "fr": true, + "tm.fr": true, + "asso.fr": true, + "nom.fr": true, + "prd.fr": true, + "presse.fr": true, + "com.fr": true, + "gouv.fr": true, + "co.gg": true, + "net.gg": true, + "org.gg": true, + "com.gh": true, + "edu.gh": true, + "gov.gh": true, + "org.gh": true, + "mil.gh": true, + "co.gl": true, + "com.gl": true, + "edu.gl": true, + "net.gl": true, + "org.gl": true, + "com.gn": true, + "ac.gn": true, + "gov.gn": true, + "org.gn": true, + "net.gn": true, + "com.gr": true, + "edu.gr": true, + "net.gr": true, + "org.gr": true, + "gov.gr": true, + "mil.gr": true, + "com.gt": true, + "edu.gt": true, + "net.gt": true, + "gob.gt": true, + "org.gt": true, + "mil.gt": true, + "ind.gt": true, + "com.gu": true, + "net.gu": true, + "gov.gu": true, + "org.gu": true, + "edu.gu": true, + "com.hk": true, + "edu.hk": true, + "gov.hk": true, + "idv.hk": true, + "net.hk": true, + "org.hk": true, + "2000.hu": true, + "agrar.hu": true, + "bolt.hu": true, + "casino.hu": true, + "city.hu": true, + "co.hu": true, + "erotica.hu": true, + "erotika.hu": true, + "film.hu": true, + "forum.hu": true, + "games.hu": true, + "hotel.hu": true, + "info.hu": true, + "ingatlan.hu": true, + "jogasz.hu": true, + "konyvelo.hu": true, + "lakas.hu": true, + "media.hu": true, + "news.hu": true, + "org.hu": true, + "priv.hu": true, + "reklam.hu": true, + "sex.hu": true, + "shop.hu": true, + "sport.hu": true, + "suli.huv": true, + "szex.hu": true, + "tm.hu": true, + "tozsde.hu": true, + "utazas.hu": true, + "video.hu": true, + "ac.id": true, + "co.id": true, + "net.id": true, + "or.id": true, + "web.id": true, + "sch.id": true, + "mil.id": true, + "go.id": true, + "war.net.id": true, + "my.id": true, + "biz.id": true, + "ac.il": true, + "co.il": true, + "org.il": true, + "net.il": true, + "k12.il": true, + "gov.il": true, + "muni.il": true, + "idf.il": true, + "in": true, + "4fd.in": true, + "co.in": true, + "firm.in": true, + "net.in": true, + "org.in": true, + "gen.in": true, + "ind.in": true, + "ac.in": true, + "edu.in": true, + "res.in": true, + "ernet.in": true, + "gov.in": true, + "mil.in": true, + "nic.in": true, + "iq": true, + "gov.iq": true, + "edu.iq": true, + "com.iq": true, + "mil.iq": true, + "org.iq": true, + "net.iq": true, + "ir": true, + "ac.ir": true, + "co.ir": true, + "gov.ir": true, + "id.ir": true, + "net.ir": true, + "org.ir": true, + "sch.ir": true, + "dnssec.ir": true, + "gov.it": true, + "edu.it": true, + "co.je": true, + "net.je": true, + "org.je": true, + "com.jo": true, + "net.jo": true, + "gov.jo": true, + "edu.jo": true, + "org.jo": true, + "mil.jo": true, + "name.jo": true, + "sch.jo": true, + "ac.jp": true, + "ad.jp": true, + "co.jp": true, + "ed.jp": true, + "go.jp": true, + "gr.jp": true, + "lg.jp": true, + "ne.jp": true, + "or.jp": true, + "co.ke": true, + "or.ke": true, + "ne.ke": true, + "go.ke": true, + "ac.ke": true, + "sc.ke": true, + "me.ke": true, + "mobi.ke": true, + "info.ke": true, + "per.kh": true, + "com.kh": true, + "edu.kh": true, + "gov.kh": true, + "mil.kh": true, + "net.kh": true, + "org.kh": true, + "com.ki": true, + "biz.ki": true, + "de.ki": true, + "net.ki": true, + "info.ki": true, + "org.ki": true, + "gov.ki": true, + "edu.ki": true, + "mob.ki": true, + "tel.ki": true, + "km": true, + "com.km": true, + "coop.km": true, + "asso.km": true, + "nom.km": true, + "presse.km": true, + "tm.km": true, + "medecin.km": true, + "notaires.km": true, + "pharmaciens.km": true, + "veterinaire.km": true, + "edu.km": true, + "gouv.km": true, + "mil.km": true, + "net.kn": true, + "org.kn": true, + "edu.kn": true, + "gov.kn": true, + "kr": true, + "co.kr": true, + "ne.kr": true, + "or.kr": true, + "re.kr": true, + "pe.kr": true, + "go.kr": true, + "mil.kr": true, + "ac.kr": true, + "hs.kr": true, + "ms.kr": true, + "es.kr": true, + "sc.kr": true, + "kg.kr": true, + "seoul.kr": true, + "busan.kr": true, + "daegu.kr": true, + "incheon.kr": true, + "gwangju.kr": true, + "daejeon.kr": true, + "ulsan.kr": true, + "gyeonggi.kr": true, + "gangwon.kr": true, + "chungbuk.kr": true, + "chungnam.kr": true, + "jeonbuk.kr": true, + "jeonnam.kr": true, + "gyeongbuk.kr": true, + "gyeongnam.kr": true, + "jeju.kr": true, + "edu.kw": true, + "com.kw": true, + "net.kw": true, + "org.kw": true, + "gov.kw": true, + "com.ky": true, + "org.ky": true, + "net.ky": true, + "edu.ky": true, + "gov.ky": true, + "com.kz": true, + "edu.kz": true, + "gov.kz": true, + "mil.kz": true, + "net.kz": true, + "org.kz": true, + "com.lb": true, + "edu.lb": true, + "gov.lb": true, + "net.lb": true, + "org.lb": true, + "gov.lk": true, + "sch.lk": true, + "net.lk": true, + "int.lk": true, + "com.lk": true, + "org.lk": true, + "edu.lk": true, + "ngo.lk": true, + "soc.lk": true, + "web.lk": true, + "ltd.lk": true, + "assn.lk": true, + "grp.lk": true, + "hotel.lk": true, + "com.lr": true, + "edu.lr": true, + "gov.lr": true, + "org.lr": true, + "net.lr": true, + "com.lv": true, + "edu.lv": true, + "gov.lv": true, + "org.lv": true, + "mil.lv": true, + "id.lv": true, + "net.lv": true, + "asn.lv": true, + "conf.lv": true, + "com.ly": true, + "net.ly": true, + "gov.ly": true, + "plc.ly": true, + "edu.ly": true, + "sch.ly": true, + "med.ly": true, + "org.ly": true, + "id.ly": true, + "ma": true, + "net.ma": true, + "ac.ma": true, + "org.ma": true, + "gov.ma": true, + "press.ma": true, + "co.ma": true, + "tm.mc": true, + "asso.mc": true, + "co.me": true, + "net.me": true, + "org.me": true, + "edu.me": true, + "ac.me": true, + "gov.me": true, + "its.me": true, + "priv.me": true, + "org.mg": true, + "nom.mg": true, + "gov.mg": true, + "prd.mg": true, + "tm.mg": true, + "edu.mg": true, + "mil.mg": true, + "com.mg": true, + "com.mk": true, + "org.mk": true, + "net.mk": true, + "edu.mk": true, + "gov.mk": true, + "inf.mk": true, + "name.mk": true, + "pro.mk": true, + "com.ml": true, + "net.ml": true, + "org.ml": true, + "edu.ml": true, + "gov.ml": true, + "presse.ml": true, + "gov.mn": true, + "edu.mn": true, + "org.mn": true, + "com.mo": true, + "edu.mo": true, + "gov.mo": true, + "net.mo": true, + "org.mo": true, + "com.mt": true, + "org.mt": true, + "net.mt": true, + "edu.mt": true, + "gov.mt": true, + "aero.mv": true, + "biz.mv": true, + "com.mv": true, + "coop.mv": true, + "edu.mv": true, + "gov.mv": true, + "info.mv": true, + "int.mv": true, + "mil.mv": true, + "museum.mv": true, + "name.mv": true, + "net.mv": true, + "org.mv": true, + "pro.mv": true, + "ac.mw": true, + "co.mw": true, + "com.mw": true, + "coop.mw": true, + "edu.mw": true, + "gov.mw": true, + "int.mw": true, + "museum.mw": true, + "net.mw": true, + "org.mw": true, + "com.mx": true, + "net.mx": true, + "org.mx": true, + "edu.mx": true, + "gob.mx": true, + "com.my": true, + "net.my": true, + "org.my": true, + "gov.my": true, + "edu.my": true, + "sch.my": true, + "mil.my": true, + "name.my": true, + "com.nf": true, + "net.nf": true, + "arts.nf": true, + "store.nf": true, + "web.nf": true, + "firm.nf": true, + "info.nf": true, + "other.nf": true, + "per.nf": true, + "rec.nf": true, + "com.ng": true, + "org.ng": true, + "gov.ng": true, + "edu.ng": true, + "net.ng": true, + "sch.ng": true, + "name.ng": true, + "mobi.ng": true, + "biz.ng": true, + "mil.ng": true, + "gob.ni": true, + "co.ni": true, + "com.ni": true, + "ac.ni": true, + "edu.ni": true, + "org.ni": true, + "nom.ni": true, + "net.ni": true, + "mil.ni": true, + "com.np": true, + "edu.np": true, + "gov.np": true, + "org.np": true, + "mil.np": true, + "net.np": true, + "edu.nr": true, + "gov.nr": true, + "biz.nr": true, + "info.nr": true, + "net.nr": true, + "org.nr": true, + "com.nr": true, + "com.om": true, + "co.om": true, + "edu.om": true, + "ac.om": true, + "sch.om": true, + "gov.om": true, + "net.om": true, + "org.om": true, + "mil.om": true, + "museum.om": true, + "biz.om": true, + "pro.om": true, + "med.om": true, + "edu.pe": true, + "gob.pe": true, + "nom.pe": true, + "mil.pe": true, + "sld.pe": true, + "org.pe": true, + "com.pe": true, + "net.pe": true, + "com.ph": true, + "net.ph": true, + "org.ph": true, + "mil.ph": true, + "ngo.ph": true, + "i.ph": true, + "gov.ph": true, + "edu.ph": true, + "com.pk": true, + "net.pk": true, + "edu.pk": true, + "org.pk": true, + "fam.pk": true, + "biz.pk": true, + "web.pk": true, + "gov.pk": true, + "gob.pk": true, + "gok.pk": true, + "gon.pk": true, + "gop.pk": true, + "gos.pk": true, + "pwr.pl": true, + "com.pl": true, + "biz.pl": true, + "net.pl": true, + "art.pl": true, + "edu.pl": true, + "org.pl": true, + "ngo.pl": true, + "gov.pl": true, + "info.pl": true, + "mil.pl": true, + "waw.pl": true, + "warszawa.pl": true, + "wroc.pl": true, + "wroclaw.pl": true, + "krakow.pl": true, + "katowice.pl": true, + "poznan.pl": true, + "lodz.pl": true, + "gda.pl": true, + "gdansk.pl": true, + "slupsk.pl": true, + "radom.pl": true, + "szczecin.pl": true, + "lublin.pl": true, + "bialystok.pl": true, + "olsztyn.pl": true, + "torun.pl": true, + "gorzow.pl": true, + "zgora.pl": true, + "biz.pr": true, + "com.pr": true, + "edu.pr": true, + "gov.pr": true, + "info.pr": true, + "isla.pr": true, + "name.pr": true, + "net.pr": true, + "org.pr": true, + "pro.pr": true, + "est.pr": true, + "prof.pr": true, + "ac.pr": true, + "com.ps": true, + "net.ps": true, + "org.ps": true, + "edu.ps": true, + "gov.ps": true, + "plo.ps": true, + "sec.ps": true, + "co.pw": true, + "ne.pw": true, + "or.pw": true, + "ed.pw": true, + "go.pw": true, + "belau.pw": true, + "arts.ro": true, + "com.ro": true, + "firm.ro": true, + "info.ro": true, + "nom.ro": true, + "nt.ro": true, + "org.ro": true, + "rec.ro": true, + "store.ro": true, + "tm.ro": true, + "www.ro": true, + "co.rs": true, + "org.rs": true, + "edu.rs": true, + "ac.rs": true, + "gov.rs": true, + "in.rs": true, + "com.sb": true, + "net.sb": true, + "edu.sb": true, + "org.sb": true, + "gov.sb": true, + "com.sc": true, + "net.sc": true, + "edu.sc": true, + "gov.sc": true, + "org.sc": true, + "co.sh": true, + "com.sh": true, + "org.sh": true, + "gov.sh": true, + "edu.sh": true, + "net.sh": true, + "nom.sh": true, + "com.sl": true, + "net.sl": true, + "org.sl": true, + "edu.sl": true, + "gov.sl": true, + "gov.st": true, + "saotome.st": true, + "principe.st": true, + "consulado.st": true, + "embaixada.st": true, + "org.st": true, + "edu.st": true, + "net.st": true, + "com.st": true, + "store.st": true, + "mil.st": true, + "co.st": true, + "edu.sv": true, + "gob.sv": true, + "com.sv": true, + "org.sv": true, + "red.sv": true, + "co.sz": true, + "ac.sz": true, + "org.sz": true, + "com.tr": true, + "gen.tr": true, + "org.tr": true, + "biz.tr": true, + "info.tr": true, + "av.tr": true, + "dr.tr": true, + "pol.tr": true, + "bel.tr": true, + "tsk.tr": true, + "bbs.tr": true, + "k12.tr": true, + "edu.tr": true, + "name.tr": true, + "net.tr": true, + "gov.tr": true, + "web.tr": true, + "tel.tr": true, + "tv.tr": true, + "co.tt": true, + "com.tt": true, + "org.tt": true, + "net.tt": true, + "biz.tt": true, + "info.tt": true, + "pro.tt": true, + "int.tt": true, + "coop.tt": true, + "jobs.tt": true, + "mobi.tt": true, + "travel.tt": true, + "museum.tt": true, + "aero.tt": true, + "cat.tt": true, + "tel.tt": true, + "name.tt": true, + "mil.tt": true, + "edu.tt": true, + "gov.tt": true, + "edu.tw": true, + "gov.tw": true, + "mil.tw": true, + "com.tw": true, + "net.tw": true, + "org.tw": true, + "idv.tw": true, + "game.tw": true, + "ebiz.tw": true, + "club.tw": true, + "com.mu": true, + "gov.mu": true, + "net.mu": true, + "org.mu": true, + "ac.mu": true, + "co.mu": true, + "or.mu": true, + "ac.mz": true, + "co.mz": true, + "edu.mz": true, + "org.mz": true, + "gov.mz": true, + "com.na": true, + "co.na": true, + "ac.nz": true, + "co.nz": true, + "cri.nz": true, + "geek.nz": true, + "gen.nz": true, + "govt.nz": true, + "health.nz": true, + "iwi.nz": true, + "maori.nz": true, + "mil.nz": true, + "net.nz": true, + "org.nz": true, + "parliament.nz": true, + "school.nz": true, + "abo.pa": true, + "ac.pa": true, + "com.pa": true, + "edu.pa": true, + "gob.pa": true, + "ing.pa": true, + "med.pa": true, + "net.pa": true, + "nom.pa": true, + "org.pa": true, + "sld.pa": true, + "com.pt": true, + "edu.pt": true, + "gov.pt": true, + "int.pt": true, + "net.pt": true, + "nome.pt": true, + "org.pt": true, + "publ.pt": true, + "com.py": true, + "edu.py": true, + "gov.py": true, + "mil.py": true, + "net.py": true, + "org.py": true, + "com.qa": true, + "edu.qa": true, + "gov.qa": true, + "mil.qa": true, + "net.qa": true, + "org.qa": true, + "asso.re": true, + "com.re": true, + "nom.re": true, + "ac.ru": true, + "adygeya.ru": true, + "altai.ru": true, + "amur.ru": true, + "arkhangelsk.ru": true, + "astrakhan.ru": true, + "bashkiria.ru": true, + "belgorod.ru": true, + "bir.ru": true, + "bryansk.ru": true, + "buryatia.ru": true, + "cbg.ru": true, + "chel.ru": true, + "chelyabinsk.ru": true, + "chita.ru": true, + "chukotka.ru": true, + "chuvashia.ru": true, + "com.ru": true, + "dagestan.ru": true, + "e-burg.ru": true, + "edu.ru": true, + "gov.ru": true, + "grozny.ru": true, + "int.ru": true, + "irkutsk.ru": true, + "ivanovo.ru": true, + "izhevsk.ru": true, + "jar.ru": true, + "joshkar-ola.ru": true, + "kalmykia.ru": true, + "kaluga.ru": true, + "kamchatka.ru": true, + "karelia.ru": true, + "kazan.ru": true, + "kchr.ru": true, + "kemerovo.ru": true, + "khabarovsk.ru": true, + "khakassia.ru": true, + "khv.ru": true, + "kirov.ru": true, + "koenig.ru": true, + "komi.ru": true, + "kostroma.ru": true, + "kranoyarsk.ru": true, + "kuban.ru": true, + "kurgan.ru": true, + "kursk.ru": true, + "lipetsk.ru": true, + "magadan.ru": true, + "mari.ru": true, + "mari-el.ru": true, + "marine.ru": true, + "mil.ru": true, + "mordovia.ru": true, + "mosreg.ru": true, + "msk.ru": true, + "murmansk.ru": true, + "nalchik.ru": true, + "net.ru": true, + "nnov.ru": true, + "nov.ru": true, + "novosibirsk.ru": true, + "nsk.ru": true, + "omsk.ru": true, + "orenburg.ru": true, + "org.ru": true, + "oryol.ru": true, + "penza.ru": true, + "perm.ru": true, + "pp.ru": true, + "pskov.ru": true, + "ptz.ru": true, + "rnd.ru": true, + "ryazan.ru": true, + "sakhalin.ru": true, + "samara.ru": true, + "saratov.ru": true, + "simbirsk.ru": true, + "smolensk.ru": true, + "spb.ru": true, + "stavropol.ru": true, + "stv.ru": true, + "surgut.ru": true, + "tambov.ru": true, + "tatarstan.ru": true, + "tom.ru": true, + "tomsk.ru": true, + "tsaritsyn.ru": true, + "tsk.ru": true, + "tula.ru": true, + "tuva.ru": true, + "tver.ru": true, + "tyumen.ru": true, + "udm.ru": true, + "udmurtia.ru": true, + "ulan-ude.ru": true, + "vladikavkaz.ru": true, + "vladimir.ru": true, + "vladivostok.ru": true, + "volgograd.ru": true, + "vologda.ru": true, + "voronezh.ru": true, + "vrn.ru": true, + "vyatka.ru": true, + "yakutia.ru": true, + "yamal.ru": true, + "yekaterinburg.ru": true, + "yuzhno-sakhalinsk.ru": true, + "ac.rw": true, + "co.rw": true, + "com.rw": true, + "edu.rw": true, + "gouv.rw": true, + "gov.rw": true, + "int.rw": true, + "mil.rw": true, + "net.rw": true, + "com.sa": true, + "edu.sa": true, + "gov.sa": true, + "med.sa": true, + "net.sa": true, + "org.sa": true, + "pub.sa": true, + "sch.sa": true, + "com.sd": true, + "edu.sd": true, + "gov.sd": true, + "info.sd": true, + "med.sd": true, + "net.sd": true, + "org.sd": true, + "tv.sd": true, + "a.se": true, + "ac.se": true, + "b.se": true, + "bd.se": true, + "c.se": true, + "d.se": true, + "e.se": true, + "f.se": true, + "g.se": true, + "h.se": true, + "i.se": true, + "k.se": true, + "l.se": true, + "m.se": true, + "n.se": true, + "o.se": true, + "org.se": true, + "p.se": true, + "parti.se": true, + "pp.se": true, + "press.se": true, + "r.se": true, + "s.se": true, + "t.se": true, + "tm.se": true, + "u.se": true, + "w.se": true, + "x.se": true, + "y.se": true, + "z.se": true, + "com.sg": true, + "edu.sg": true, + "gov.sg": true, + "idn.sg": true, + "net.sg": true, + "org.sg": true, + "per.sg": true, + "art.sn": true, + "com.sn": true, + "edu.sn": true, + "gouv.sn": true, + "org.sn": true, + "perso.sn": true, + "univ.sn": true, + "com.sy": true, + "edu.sy": true, + "gov.sy": true, + "mil.sy": true, + "net.sy": true, + "news.sy": true, + "org.sy": true, + "ac.th": true, + "co.th": true, + "go.th": true, + "in.th": true, + "mi.th": true, + "net.th": true, + "or.th": true, + "ac.tj": true, + "biz.tj": true, + "co.tj": true, + "com.tj": true, + "edu.tj": true, + "go.tj": true, + "gov.tj": true, + "info.tj": true, + "int.tj": true, + "mil.tj": true, + "name.tj": true, + "net.tj": true, + "nic.tj": true, + "org.tj": true, + "test.tj": true, + "web.tj": true, + "agrinet.tn": true, + "com.tn": true, + "defense.tn": true, + "edunet.tn": true, + "ens.tn": true, + "fin.tn": true, + "gov.tn": true, + "ind.tn": true, + "info.tn": true, + "intl.tn": true, + "mincom.tn": true, + "nat.tn": true, + "net.tn": true, + "org.tn": true, + "perso.tn": true, + "rnrt.tn": true, + "rns.tn": true, + "rnu.tn": true, + "tourism.tn": true, + "ac.tz": true, + "co.tz": true, + "go.tz": true, + "ne.tz": true, + "or.tz": true, + "biz.ua": true, + "cherkassy.ua": true, + "chernigov.ua": true, + "chernovtsy.ua": true, + "ck.ua": true, + "cn.ua": true, + "co.ua": true, + "com.ua": true, + "crimea.ua": true, + "cv.ua": true, + "dn.ua": true, + "dnepropetrovsk.ua": true, + "donetsk.ua": true, + "dp.ua": true, + "edu.ua": true, + "gov.ua": true, + "if.ua": true, + "in.ua": true, + "ivano-frankivsk.ua": true, + "kh.ua": true, + "kharkov.ua": true, + "kherson.ua": true, + "khmelnitskiy.ua": true, + "kiev.ua": true, + "kirovograd.ua": true, + "km.ua": true, + "kr.ua": true, + "ks.ua": true, + "kv.ua": true, + "lg.ua": true, + "lugansk.ua": true, + "lutsk.ua": true, + "lviv.ua": true, + "me.ua": true, + "mk.ua": true, + "net.ua": true, + "nikolaev.ua": true, + "od.ua": true, + "odessa.ua": true, + "org.ua": true, + "pl.ua": true, + "poltava.ua": true, + "pp.ua": true, + "rovno.ua": true, + "rv.ua": true, + "sebastopol.ua": true, + "sumy.ua": true, + "te.ua": true, + "ternopil.ua": true, + "uzhgorod.ua": true, + "vinnica.ua": true, + "vn.ua": true, + "zaporizhzhe.ua": true, + "zhitomir.ua": true, + "zp.ua": true, + "zt.ua": true, + "ac.ug": true, + "co.ug": true, + "go.ug": true, + "ne.ug": true, + "or.ug": true, + "org.ug": true, + "sc.ug": true, + "ac.uk": true, + "bl.uk": true, + "british-library.uk": true, + "co.uk": true, + "cym.uk": true, + "gov.uk": true, + "govt.uk": true, + "icnet.uk": true, + "jet.uk": true, + "lea.uk": true, + "ltd.uk": true, + "me.uk": true, + "mil.uk": true, + "mod.uk": true, + "national-library-scotland.uk": true, + "nel.uk": true, + "net.uk": true, + "nhs.uk": true, + "nic.uk": true, + "nls.uk": true, + "org.uk": true, + "orgn.uk": true, + "parliament.uk": true, + "plc.uk": true, + "police.uk": true, + "sch.uk": true, + "scot.uk": true, + "soc.uk": true, + "4fd.us": true, + "dni.us": true, + "fed.us": true, + "isa.us": true, + "kids.us": true, + "nsn.us": true, + "com.uy": true, + "edu.uy": true, + "gub.uy": true, + "mil.uy": true, + "net.uy": true, + "org.uy": true, + "co.ve": true, + "com.ve": true, + "edu.ve": true, + "gob.ve": true, + "info.ve": true, + "mil.ve": true, + "net.ve": true, + "org.ve": true, + "web.ve": true, + "co.vi": true, + "com.vi": true, + "k12.vi": true, + "net.vi": true, + "org.vi": true, + "ac.vn": true, + "biz.vn": true, + "com.vn": true, + "edu.vn": true, + "gov.vn": true, + "health.vn": true, + "info.vn": true, + "int.vn": true, + "name.vn": true, + "net.vn": true, + "org.vn": true, + "pro.vn": true, + "co.ye": true, + "com.ye": true, + "gov.ye": true, + "ltd.ye": true, + "me.ye": true, + "net.ye": true, + "org.ye": true, + "plc.ye": true, + "ac.yu": true, + "co.yu": true, + "edu.yu": true, + "gov.yu": true, + "org.yu": true, + "ac.za": true, + "agric.za": true, + "alt.za": true, + "bourse.za": true, + "city.za": true, + "co.za": true, + "cybernet.za": true, + "db.za": true, + "ecape.school.za": true, + "edu.za": true, + "fs.school.za": true, + "gov.za": true, + "gp.school.za": true, + "grondar.za": true, + "iaccess.za": true, + "imt.za": true, + "inca.za": true, + "kzn.school.za": true, + "landesign.za": true, + "law.za": true, + "lp.school.za": true, + "mil.za": true, + "mpm.school.za": true, + "ncape.school.za": true, + "net.za": true, + "ngo.za": true, + "nis.za": true, + "nom.za": true, + "nw.school.za": true, + "olivetti.za": true, + "org.za": true, + "pix.za": true, + "school.za": true, + "tm.za": true, + "wcape.school.za": true, + "web.za": true, + "ac.zm": true, + "co.zm": true, + "com.zm": true, + "edu.zm": true, + "gov.zm": true, + "net.zm": true, + "org.zm": true, + "sch.zm": true +} +},{}],96:[function(require,module,exports){ +module.exports=function(e,t,o,i){var n=new Blob(void 0!==i?[i,e]:[e],{type:o||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(n,t);else{var d=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(n):window.webkitURL.createObjectURL(n),a=document.createElement("a");a.style.display="none",a.href=d,a.setAttribute("download",t),void 0===a.download&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(d)}),200)}}; + +},{}],97:[function(require,module,exports){ +module.exports=[{name:"Abkhaz",local:"Аҧсуа",1:"ab",2:"abk","2T":"abk","2B":"abk",3:"abk"},{name:"Afar",local:"Afaraf",1:"aa",2:"aar","2T":"aar","2B":"aar",3:"aar"},{name:"Afrikaans",local:"Afrikaans",1:"af",2:"afr","2T":"afr","2B":"afr",3:"afr"},{name:"Akan",local:"Akan",1:"ak",2:"aka","2T":"aka","2B":"aka",3:"aka"},{name:"Albanian",local:"Shqip",1:"sq",2:"sqi","2T":"sqi","2B":"alb",3:"sqi"},{name:"Amharic",local:"አማርኛ",1:"am",2:"amh","2T":"amh","2B":"amh",3:"amh"},{name:"Arabic",local:"العربية",1:"ar",2:"ara","2T":"ara","2B":"ara",3:"ara"},{name:"Aragonese",local:"Aragonés",1:"an",2:"arg","2T":"arg","2B":"arg",3:"arg"},{name:"Armenian",local:"Հայերեն",1:"hy",2:"hye","2T":"hye","2B":"arm",3:"hye"},{name:"Assamese",local:"অসমীয়া",1:"as",2:"asm","2T":"asm","2B":"asm",3:"asm"},{name:"Avaric",local:"Авар",1:"av",2:"ava","2T":"ava","2B":"ava",3:"ava"},{name:"Avestan",local:"avesta",1:"ae",2:"ave","2T":"ave","2B":"ave",3:"ave"},{name:"Aymara",local:"Aymar",1:"ay",2:"aym","2T":"aym","2B":"aym",3:"aym"},{name:"Azerbaijani",local:"Azərbaycanca",1:"az",2:"aze","2T":"aze","2B":"aze",3:"aze"},{name:"Bambara",local:"Bamanankan",1:"bm",2:"bam","2T":"bam","2B":"bam",3:"bam"},{name:"Bashkir",local:"Башҡортса",1:"ba",2:"bak","2T":"bak","2B":"bak",3:"bak"},{name:"Basque",local:"Euskara",1:"eu",2:"eus","2T":"eus","2B":"baq",3:"eus"},{name:"Belarusian",local:"Беларуская",1:"be",2:"bel","2T":"bel","2B":"bel",3:"bel"},{name:"Bengali",local:"বাংলা",1:"bn",2:"ben","2T":"ben","2B":"ben",3:"ben"},{name:"Bihari",local:"भोजपुरी",1:"bh",2:"bih","2T":"bih","2B":"bih",3:"bih"},{name:"Bislama",local:"Bislama",1:"bi",2:"bis","2T":"bis","2B":"bis",3:"bis"},{name:"Bosnian",local:"Bosanski",1:"bs",2:"bos","2T":"bos","2B":"bos",3:"bos"},{name:"Breton",local:"Brezhoneg",1:"br",2:"bre","2T":"bre","2B":"bre",3:"bre"},{name:"Bulgarian",local:"Български",1:"bg",2:"bul","2T":"bul","2B":"bul",3:"bul"},{name:"Burmese",local:"မြန်မာဘာသာ",1:"my",2:"mya","2T":"mya","2B":"bur",3:"mya"},{name:"Catalan",local:"Català",1:"ca",2:"cat","2T":"cat","2B":"cat",3:"cat"},{name:"Chamorro",local:"Chamoru",1:"ch",2:"cha","2T":"cha","2B":"cha",3:"cha"},{name:"Chechen",local:"Нохчийн",1:"ce",2:"che","2T":"che","2B":"che",3:"che"},{name:"Chichewa",local:"Chichewa",1:"ny",2:"nya","2T":"nya","2B":"nya",3:"nya"},{name:"Chinese",local:"中文",1:"zh",2:"zho","2T":"zho","2B":"chi",3:"zho"},{name:"Chuvash",local:"Чӑвашла",1:"cv",2:"chv","2T":"chv","2B":"chv",3:"chv"},{name:"Cornish",local:"Kernewek",1:"kw",2:"cor","2T":"cor","2B":"cor",3:"cor"},{name:"Corsican",local:"Corsu",1:"co",2:"cos","2T":"cos","2B":"cos",3:"cos"},{name:"Cree",local:"ᓀᐦᐃᔭᐍᐏᐣ",1:"cr",2:"cre","2T":"cre","2B":"cre",3:"cre"},{name:"Croatian",local:"Hrvatski",1:"hr",2:"hrv","2T":"hrv","2B":"hrv",3:"hrv"},{name:"Czech",local:"Čeština",1:"cs",2:"ces","2T":"ces","2B":"cze",3:"ces"},{name:"Danish",local:"Dansk",1:"da",2:"dan","2T":"dan","2B":"dan",3:"dan"},{name:"Divehi",local:"Divehi",1:"dv",2:"div","2T":"div","2B":"div",3:"div"},{name:"Dutch",local:"Nederlands",1:"nl",2:"nld","2T":"nld","2B":"dut",3:"nld"},{name:"Dzongkha",local:"རྫོང་ཁ",1:"dz",2:"dzo","2T":"dzo","2B":"dzo",3:"dzo"},{name:"English",local:"English",1:"en",2:"eng","2T":"eng","2B":"eng",3:"eng"},{name:"Esperanto",local:"Esperanto",1:"eo",2:"epo","2T":"epo","2B":"epo",3:"epo"},{name:"Estonian",local:"Eesti",1:"et",2:"est","2T":"est","2B":"est",3:"est"},{name:"Ewe",local:"Eʋegbe",1:"ee",2:"ewe","2T":"ewe","2B":"ewe",3:"ewe"},{name:"Faroese",local:"Føroyskt",1:"fo",2:"fao","2T":"fao","2B":"fao",3:"fao"},{name:"Fijian",local:"Na Vosa Vaka-Viti",1:"fj",2:"fij","2T":"fij","2B":"fij",3:"fij"},{name:"Finnish",local:"Suomi",1:"fi",2:"fin","2T":"fin","2B":"fin",3:"fin"},{name:"French",local:"Français",1:"fr",2:"fra","2T":"fra","2B":"fre",3:"fra"},{name:"Fula",local:"Fulfulde",1:"ff",2:"ful","2T":"ful","2B":"ful",3:"ful"},{name:"Galician",local:"Galego",1:"gl",2:"glg","2T":"glg","2B":"glg",3:"glg"},{name:"Georgian",local:"ქართული",1:"ka",2:"kat","2T":"kat","2B":"geo",3:"kat"},{name:"German",local:"Deutsch",1:"de",2:"deu","2T":"deu","2B":"ger",3:"deu"},{name:"Greek",local:"Ελληνικά",1:"el",2:"ell","2T":"ell","2B":"gre",3:"ell"},{name:"Guaraní",local:"Avañe'ẽ",1:"gn",2:"grn","2T":"grn","2B":"grn",3:"grn"},{name:"Gujarati",local:"ગુજરાતી",1:"gu",2:"guj","2T":"guj","2B":"guj",3:"guj"},{name:"Haitian",local:"Kreyòl Ayisyen",1:"ht",2:"hat","2T":"hat","2B":"hat",3:"hat"},{name:"Hausa",local:"هَوُسَ",1:"ha",2:"hau","2T":"hau","2B":"hau",3:"hau"},{name:"Hebrew",local:"עברית",1:"he",2:"heb","2T":"heb","2B":"heb",3:"heb"},{name:"Herero",local:"Otjiherero",1:"hz",2:"her","2T":"her","2B":"her",3:"her"},{name:"Hindi",local:"हिन्दी",1:"hi",2:"hin","2T":"hin","2B":"hin",3:"hin"},{name:"Hiri Motu",local:"Hiri Motu",1:"ho",2:"hmo","2T":"hmo","2B":"hmo",3:"hmo"},{name:"Hungarian",local:"Magyar",1:"hu",2:"hun","2T":"hun","2B":"hun",3:"hun"},{name:"Interlingua",local:"Interlingua",1:"ia",2:"ina","2T":"ina","2B":"ina",3:"ina"},{name:"Indonesian",local:"Bahasa Indonesia",1:"id",2:"ind","2T":"ind","2B":"ind",3:"ind"},{name:"Interlingue",local:"Interlingue",1:"ie",2:"ile","2T":"ile","2B":"ile",3:"ile"},{name:"Irish",local:"Gaeilge",1:"ga",2:"gle","2T":"gle","2B":"gle",3:"gle"},{name:"Igbo",local:"Igbo",1:"ig",2:"ibo","2T":"ibo","2B":"ibo",3:"ibo"},{name:"Inupiaq",local:"Iñupiak",1:"ik",2:"ipk","2T":"ipk","2B":"ipk",3:"ipk"},{name:"Ido",local:"Ido",1:"io",2:"ido","2T":"ido","2B":"ido",3:"ido"},{name:"Icelandic",local:"Íslenska",1:"is",2:"isl","2T":"isl","2B":"ice",3:"isl"},{name:"Italian",local:"Italiano",1:"it",2:"ita","2T":"ita","2B":"ita",3:"ita"},{name:"Inuktitut",local:"ᐃᓄᒃᑎᑐᑦ",1:"iu",2:"iku","2T":"iku","2B":"iku",3:"iku"},{name:"Japanese",local:"日本語",1:"ja",2:"jpn","2T":"jpn","2B":"jpn",3:"jpn"},{name:"Javanese",local:"Basa Jawa",1:"jv",2:"jav","2T":"jav","2B":"jav",3:"jav"},{name:"Kalaallisut",local:"Kalaallisut",1:"kl",2:"kal","2T":"kal","2B":"kal",3:"kal"},{name:"Kannada",local:"ಕನ್ನಡ",1:"kn",2:"kan","2T":"kan","2B":"kan",3:"kan"},{name:"Kanuri",local:"Kanuri",1:"kr",2:"kau","2T":"kau","2B":"kau",3:"kau"},{name:"Kashmiri",local:"كشميري",1:"ks",2:"kas","2T":"kas","2B":"kas",3:"kas"},{name:"Kazakh",local:"Қазақша",1:"kk",2:"kaz","2T":"kaz","2B":"kaz",3:"kaz"},{name:"Khmer",local:"ភាសាខ្មែរ",1:"km",2:"khm","2T":"khm","2B":"khm",3:"khm"},{name:"Kikuyu",local:"Gĩkũyũ",1:"ki",2:"kik","2T":"kik","2B":"kik",3:"kik"},{name:"Kinyarwanda",local:"Kinyarwanda",1:"rw",2:"kin","2T":"kin","2B":"kin",3:"kin"},{name:"Kyrgyz",local:"Кыргызча",1:"ky",2:"kir","2T":"kir","2B":"kir",3:"kir"},{name:"Komi",local:"Коми",1:"kv",2:"kom","2T":"kom","2B":"kom",3:"kom"},{name:"Kongo",local:"Kongo",1:"kg",2:"kon","2T":"kon","2B":"kon",3:"kon"},{name:"Korean",local:"한국어",1:"ko",2:"kor","2T":"kor","2B":"kor",3:"kor"},{name:"Kurdish",local:"Kurdî",1:"ku",2:"kur","2T":"kur","2B":"kur",3:"kur"},{name:"Kwanyama",local:"Kuanyama",1:"kj",2:"kua","2T":"kua","2B":"kua",3:"kua"},{name:"Latin",local:"Latina",1:"la",2:"lat","2T":"lat","2B":"lat",3:"lat"},{name:"Luxembourgish",local:"Lëtzebuergesch",1:"lb",2:"ltz","2T":"ltz","2B":"ltz",3:"ltz"},{name:"Ganda",local:"Luganda",1:"lg",2:"lug","2T":"lug","2B":"lug",3:"lug"},{name:"Limburgish",local:"Limburgs",1:"li",2:"lim","2T":"lim","2B":"lim",3:"lim"},{name:"Lingala",local:"Lingála",1:"ln",2:"lin","2T":"lin","2B":"lin",3:"lin"},{name:"Lao",local:"ພາສາລາວ",1:"lo",2:"lao","2T":"lao","2B":"lao",3:"lao"},{name:"Lithuanian",local:"Lietuvių",1:"lt",2:"lit","2T":"lit","2B":"lit",3:"lit"},{name:"Luba-Katanga",local:"Tshiluba",1:"lu",2:"lub","2T":"lub","2B":"lub",3:"lub"},{name:"Latvian",local:"Latviešu",1:"lv",2:"lav","2T":"lav","2B":"lav",3:"lav"},{name:"Manx",local:"Gaelg",1:"gv",2:"glv","2T":"glv","2B":"glv",3:"glv"},{name:"Macedonian",local:"Македонски",1:"mk",2:"mkd","2T":"mkd","2B":"mac",3:"mkd"},{name:"Malagasy",local:"Malagasy",1:"mg",2:"mlg","2T":"mlg","2B":"mlg",3:"mlg"},{name:"Malay",local:"Bahasa Melayu",1:"ms",2:"msa","2T":"msa","2B":"may",3:"msa"},{name:"Malayalam",local:"മലയാളം",1:"ml",2:"mal","2T":"mal","2B":"mal",3:"mal"},{name:"Maltese",local:"Malti",1:"mt",2:"mlt","2T":"mlt","2B":"mlt",3:"mlt"},{name:"Māori",local:"Māori",1:"mi",2:"mri","2T":"mri","2B":"mao",3:"mri"},{name:"Marathi",local:"मराठी",1:"mr",2:"mar","2T":"mar","2B":"mar",3:"mar"},{name:"Marshallese",local:"Kajin M̧ajeļ",1:"mh",2:"mah","2T":"mah","2B":"mah",3:"mah"},{name:"Mongolian",local:"Монгол",1:"mn",2:"mon","2T":"mon","2B":"mon",3:"mon"},{name:"Nauru",local:"Dorerin Naoero",1:"na",2:"nau","2T":"nau","2B":"nau",3:"nau"},{name:"Navajo",local:"Diné Bizaad",1:"nv",2:"nav","2T":"nav","2B":"nav",3:"nav"},{name:"Northern Ndebele",local:"isiNdebele",1:"nd",2:"nde","2T":"nde","2B":"nde",3:"nde"},{name:"Nepali",local:"नेपाली",1:"ne",2:"nep","2T":"nep","2B":"nep",3:"nep"},{name:"Ndonga",local:"Owambo",1:"ng",2:"ndo","2T":"ndo","2B":"ndo",3:"ndo"},{name:"Norwegian Bokmål",local:"Norsk (Bokmål)",1:"nb",2:"nob","2T":"nob","2B":"nob",3:"nob"},{name:"Norwegian Nynorsk",local:"Norsk (Nynorsk)",1:"nn",2:"nno","2T":"nno","2B":"nno",3:"nno"},{name:"Norwegian",local:"Norsk",1:"no",2:"nor","2T":"nor","2B":"nor",3:"nor"},{name:"Nuosu",local:"ꆈꌠ꒿ Nuosuhxop",1:"ii",2:"iii","2T":"iii","2B":"iii",3:"iii"},{name:"Southern Ndebele",local:"isiNdebele",1:"nr",2:"nbl","2T":"nbl","2B":"nbl",3:"nbl"},{name:"Occitan",local:"Occitan",1:"oc",2:"oci","2T":"oci","2B":"oci",3:"oci"},{name:"Ojibwe",local:"ᐊᓂᔑᓈᐯᒧᐎᓐ",1:"oj",2:"oji","2T":"oji","2B":"oji",3:"oji"},{name:"Old Church Slavonic",local:"Словѣ́ньскъ",1:"cu",2:"chu","2T":"chu","2B":"chu",3:"chu"},{name:"Oromo",local:"Afaan Oromoo",1:"om",2:"orm","2T":"orm","2B":"orm",3:"orm"},{name:"Oriya",local:"ଓଡି଼ଆ",1:"or",2:"ori","2T":"ori","2B":"ori",3:"ori"},{name:"Ossetian",local:"Ирон æвзаг",1:"os",2:"oss","2T":"oss","2B":"oss",3:"oss"},{name:"Panjabi",local:"ਪੰਜਾਬੀ",1:"pa",2:"pan","2T":"pan","2B":"pan",3:"pan"},{name:"Pāli",local:"पाऴि",1:"pi",2:"pli","2T":"pli","2B":"pli",3:"pli"},{name:"Persian",local:"فارسی",1:"fa",2:"fas","2T":"fas","2B":"per",3:"fas"},{name:"Polish",local:"Polski",1:"pl",2:"pol","2T":"pol","2B":"pol",3:"pol"},{name:"Pashto",local:"پښتو",1:"ps",2:"pus","2T":"pus","2B":"pus",3:"pus"},{name:"Portuguese",local:"Português",1:"pt",2:"por","2T":"por","2B":"por",3:"por"},{name:"Quechua",local:"Runa Simi",1:"qu",2:"que","2T":"que","2B":"que",3:"que"},{name:"Romansh",local:"Rumantsch",1:"rm",2:"roh","2T":"roh","2B":"roh",3:"roh"},{name:"Kirundi",local:"Kirundi",1:"rn",2:"run","2T":"run","2B":"run",3:"run"},{name:"Romanian",local:"Română",1:"ro",2:"ron","2T":"ron","2B":"rum",3:"ron"},{name:"Russian",local:"Русский",1:"ru",2:"rus","2T":"rus","2B":"rus",3:"rus"},{name:"Sanskrit",local:"संस्कृतम्",1:"sa",2:"san","2T":"san","2B":"san",3:"san"},{name:"Sardinian",local:"Sardu",1:"sc",2:"srd","2T":"srd","2B":"srd",3:"srd"},{name:"Sindhi",local:"سنڌي‎",1:"sd",2:"snd","2T":"snd","2B":"snd",3:"snd"},{name:"Northern Sami",local:"Sámegiella",1:"se",2:"sme","2T":"sme","2B":"sme",3:"sme"},{name:"Samoan",local:"Gagana Sāmoa",1:"sm",2:"smo","2T":"smo","2B":"smo",3:"smo"},{name:"Sango",local:"Sängö",1:"sg",2:"sag","2T":"sag","2B":"sag",3:"sag"},{name:"Serbian",local:"Српски",1:"sr",2:"srp","2T":"srp","2B":"srp",3:"srp"},{name:"Gaelic",local:"Gàidhlig",1:"gd",2:"gla","2T":"gla","2B":"gla",3:"gla"},{name:"Shona",local:"ChiShona",1:"sn",2:"sna","2T":"sna","2B":"sna",3:"sna"},{name:"Sinhala",local:"සිංහල",1:"si",2:"sin","2T":"sin","2B":"sin",3:"sin"},{name:"Slovak",local:"Slovenčina",1:"sk",2:"slk","2T":"slk","2B":"slo",3:"slk"},{name:"Slovene",local:"Slovenščina",1:"sl",2:"slv","2T":"slv","2B":"slv",3:"slv"},{name:"Somali",local:"Soomaaliga",1:"so",2:"som","2T":"som","2B":"som",3:"som"},{name:"Southern Sotho",local:"Sesotho",1:"st",2:"sot","2T":"sot","2B":"sot",3:"sot"},{name:"Spanish",local:"Español",1:"es",2:"spa","2T":"spa","2B":"spa",3:"spa"},{name:"Sundanese",local:"Basa Sunda",1:"su",2:"sun","2T":"sun","2B":"sun",3:"sun"},{name:"Swahili",local:"Kiswahili",1:"sw",2:"swa","2T":"swa","2B":"swa",3:"swa"},{name:"Swati",local:"SiSwati",1:"ss",2:"ssw","2T":"ssw","2B":"ssw",3:"ssw"},{name:"Swedish",local:"Svenska",1:"sv",2:"swe","2T":"swe","2B":"swe",3:"swe"},{name:"Tamil",local:"தமிழ்",1:"ta",2:"tam","2T":"tam","2B":"tam",3:"tam"},{name:"Telugu",local:"తెలుగు",1:"te",2:"tel","2T":"tel","2B":"tel",3:"tel"},{name:"Tajik",local:"Тоҷикӣ",1:"tg",2:"tgk","2T":"tgk","2B":"tgk",3:"tgk"},{name:"Thai",local:"ภาษาไทย",1:"th",2:"tha","2T":"tha","2B":"tha",3:"tha"},{name:"Tigrinya",local:"ትግርኛ",1:"ti",2:"tir","2T":"tir","2B":"tir",3:"tir"},{name:"Tibetan Standard",local:"བོད་ཡིག",1:"bo",2:"bod","2T":"bod","2B":"tib",3:"bod"},{name:"Turkmen",local:"Türkmençe",1:"tk",2:"tuk","2T":"tuk","2B":"tuk",3:"tuk"},{name:"Tagalog",local:"Tagalog",1:"tl",2:"tgl","2T":"tgl","2B":"tgl",3:"tgl"},{name:"Tswana",local:"Setswana",1:"tn",2:"tsn","2T":"tsn","2B":"tsn",3:"tsn"},{name:"Tonga",local:"faka Tonga",1:"to",2:"ton","2T":"ton","2B":"ton",3:"ton"},{name:"Turkish",local:"Türkçe",1:"tr",2:"tur","2T":"tur","2B":"tur",3:"tur"},{name:"Tsonga",local:"Xitsonga",1:"ts",2:"tso","2T":"tso","2B":"tso",3:"tso"},{name:"Tatar",local:"Татарча",1:"tt",2:"tat","2T":"tat","2B":"tat",3:"tat"},{name:"Twi",local:"Twi",1:"tw",2:"twi","2T":"twi","2B":"twi",3:"twi"},{name:"Tahitian",local:"Reo Mā’ohi",1:"ty",2:"tah","2T":"tah","2B":"tah",3:"tah"},{name:"Uyghur",local:"ئۇيغۇرچه",1:"ug",2:"uig","2T":"uig","2B":"uig",3:"uig"},{name:"Ukrainian",local:"Українська",1:"uk",2:"ukr","2T":"ukr","2B":"ukr",3:"ukr"},{name:"Urdu",local:"اردو",1:"ur",2:"urd","2T":"urd","2B":"urd",3:"urd"},{name:"Uzbek",local:"O‘zbek",1:"uz",2:"uzb","2T":"uzb","2B":"uzb",3:"uzb"},{name:"Venda",local:"Tshivenḓa",1:"ve",2:"ven","2T":"ven","2B":"ven",3:"ven"},{name:"Vietnamese",local:"Tiếng Việt",1:"vi",2:"vie","2T":"vie","2B":"vie",3:"vie"},{name:"Volapük",local:"Volapük",1:"vo",2:"vol","2T":"vol","2B":"vol",3:"vol"},{name:"Walloon",local:"Walon",1:"wa",2:"wln","2T":"wln","2B":"wln",3:"wln"},{name:"Welsh",local:"Cymraeg",1:"cy",2:"cym","2T":"cym","2B":"wel",3:"cym"},{name:"Wolof",local:"Wolof",1:"wo",2:"wol","2T":"wol","2B":"wol",3:"wol"},{name:"Western Frisian",local:"Frysk",1:"fy",2:"fry","2T":"fry","2B":"fry",3:"fry"},{name:"Xhosa",local:"isiXhosa",1:"xh",2:"xho","2T":"xho","2B":"xho",3:"xho"},{name:"Yiddish",local:"ייִדיש",1:"yi",2:"yid","2T":"yid","2B":"yid",3:"yid"},{name:"Yoruba",local:"Yorùbá",1:"yo",2:"yor","2T":"yor","2B":"yor",3:"yor"},{name:"Zhuang",local:"Cuengh",1:"za",2:"zha","2T":"zha","2B":"zha",3:"zha"},{name:"Zulu",local:"isiZulu",1:"zu",2:"zul","2T":"zul","2B":"zul",3:"zul"}]; + +},{}],101:[function(require,module,exports){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.urlAlphabet=void 0;var urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";exports.urlAlphabet=urlAlphabet; + +},{}],102:[function(require,module,exports){ +/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/ +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&"undefined"!=typeof exports?module.exports=t():e.Papa=t()}(this,(function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,i=t.IS_PAPA_WORKER||!1,n={},s=0,a={parse:function(r,i){var o=(i=i||{}).dynamicTyping||!1;if(b(o)&&(i.dynamicTypingFunction=o,o={}),i.dynamicTyping=o,i.transform=!!b(i.transform)&&i.transform,i.worker&&a.WORKERS_SUPPORTED){var u=function(){if(!a.WORKERS_SUPPORTED)return!1;var r,i,o=(r=t.URL||t.webkitURL||null,i=e.toString(),a.BLOB_URL||(a.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))),u=new t.Worker(o);return u.onmessage=_,u.id=s++,n[u.id]=u}();return u.userStep=i.step,u.userChunk=i.chunk,u.userComplete=i.complete,u.userError=i.error,i.step=b(i.step),i.chunk=b(i.chunk),i.complete=b(i.complete),i.error=b(i.error),delete i.worker,void u.postMessage({input:r,config:i,workerId:u.id})}var c=null;return a.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),c=i.download?new h(i):new d(i)):!0===r.readable&&b(r.read)&&b(r.on)?c=new l(i):(t.File&&r instanceof File||r instanceof Object)&&(c=new f(i)),c.stream(r)},unparse:function(e,t){var r=!1,i=!0,n=",",s="\r\n",o='"',u=o+o,h=!1,f=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(n=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(h=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");f=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+o),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var l=new RegExp(p(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,h);if("object"==typeof e[0])return c(f||Object.keys(e[0]),e,h)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||f),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],h);throw new Error("Unable to serialize unrecognized input");function c(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0=this._config.preview;if(i)t.postMessage({results:o,workerId:a.WORKER_ID,finished:h});else if(b(this._config.chunk)&&!r){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!h||!b(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),h||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){b(this._config.error)?this._config.error(e):i&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function h(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),u.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=k(this._chunkLoaded,this),t.onerror=k(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var i in e)t.setRequestHeader(i,e[i])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+n)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function f(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),u.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=k(this._chunkLoaded,this),t.onerror=k(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function l(e){u.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=k((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=k((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=k((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=k((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function c(e){var t,r,i,n=Math.pow(2,53),s=-n,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,h=this,f=0,d=0,l=!1,c=!1,_=[],m={data:[],errors:[],meta:{}};if(b(e.step)){var y=e.step;e.step=function(t){if(m=t,w())E();else{if(E(),0===m.data.length)return;f+=t.data.length,e.preview&&f>e.preview?r.abort():(m.data=m.data[0],y(m,h))}}}function k(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){return m&&i&&(C("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(m.data=m.data.filter((function(e){return!k(e)}))),w()&&function(){if(m)if(Array.isArray(m.data[0])){for(var t=0;w()&&t=_.length?"__parsed_extra":_[i]),e.transform&&(a=e.transform(a,s)),a=R(s,a),"__parsed_extra"===s?(n[s]=n[s]||[],n[s].push(a)):n[s]=a}return e.header&&(i>_.length?C("FieldMismatch","TooManyFields","Too many fields: expected "+_.length+" fields but parsed "+i,d+r):i<_.length&&C("FieldMismatch","TooFewFields","Too few fields: expected "+_.length+" fields but parsed "+i,d+r)),n}var r=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),r=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=_),d+=r,m}()}function w(){return e.header&&0===_.length}function R(t,r){return i=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[i]&&(e.dynamicTyping[i]=e.dynamicTypingFunction(i)),!0===(e.dynamicTyping[i]||e.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(e){if(o.test(e)){var t=parseFloat(e);if(s=i.length/2?"\r\n":"\r"}(n,u)),i=!1,e.delimiter)b(e.delimiter)&&(e.delimiter=e.delimiter(n),m.meta.delimiter=e.delimiter);else{var h=function(t,r,i,n,s){var o,u,h,f;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d=o)return Q(!0)}else for(U=f,f++;;){if(-1===(U=a.indexOf(t,U+1)))return c||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:k.length,index:f}),W();if(U===g-1)return W(a.substring(f,U).replace(P,t));if(t!==h||a[U+1]!==h){if(t===h||0===U||a[U-1]!==h){-1!==z&&z=o)return Q(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:k.length,index:f}),U++}}else U++}return W();function B(e){k.push(e),R=f}function K(e){var t=0;if(-1!==e){var r=a.substring(U+1,e);r&&""===r.trim()&&(t=r.length)}return t}function W(e){return c||(void 0===e&&(e=a.substring(f)),w.push(e),f=g,B(w),v&&J()),Q()}function H(e){f=e,B(w),w=[],M=a.indexOf(i,f)}function Q(e){return{data:k,errors:E,meta:{delimiter:r,linebreak:i,aborted:d,truncated:!!e,cursor:R+(l||0)}}}function J(){s(Q()),k=[],E=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return f}}function _(e){var t=e.data,r=n[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){i=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(b(r.userStep)){for(var a=0;a=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+B:(t?"-":"")+e.toFixed(1)+" "+B}module.exports=prettierBytes; + +},{}],104:[function(require,module,exports){ +var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex1)for(var r=1;r{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${n.wrappedComponentName}.`)}}exports.__esModule=!0,exports.createInvalidArgFactory=createInvalidArgFactory; + +},{}],129:[function(require,module,exports){ +"use strict"; + +},{}],131:[function(require,module,exports){ +"use strict";function defaultNoopBatch(t){t()}exports.__esModule=!0,exports.getBatch=exports.setBatch=void 0;let batch=defaultNoopBatch;const setBatch=t=>batch=t;exports.setBatch=setBatch;const getBatch=()=>batch;exports.getBatch=getBatch; + +},{}],132:[function(require,module,exports){ +"use strict";function bindActionCreators(t,o){const n={};for(const e in t){const r=t[e];"function"==typeof r&&(n[e]=(...t)=>o(r(...t)))}return n}exports.__esModule=!0,exports.default=bindActionCreators; + +},{}],133:[function(require,module,exports){ +"use strict";function isPlainObject(t){if("object"!=typeof t||null===t)return!1;let e=Object.getPrototypeOf(t);if(null===e)return!0;let o=e;for(;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}exports.__esModule=!0,exports.default=isPlainObject; + +},{}],135:[function(require,module,exports){ +"use strict";function is(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function shallowEqual(t,e){if(is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const r=Object.keys(t),l=Object.keys(e);if(r.length!==l.length)return!1;for(let l=0;l{throw new Error("uSES not initialized!")};exports.notInitialized=notInitialized; + +},{}],139:[function(require,module,exports){ +"use strict";function warning(o){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(o);try{throw new Error(o)}catch(o){}}exports.__esModule=!0,exports.default=warning; + +},{}],140:[function(require,module,exports){ +/** + * @license React + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";"production"!=="production"&&function(){var e,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),a=Symbol.for("react.context"),f=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var x=e.$$typeof;switch(x){case r:var m=e.type;switch(m){case o:case s:case n:case p:case u:return m;default:var d=m&&m.$$typeof;switch(d){case f:case a:case i:case y:case l:case c:return d;default:return x}}case t:return x}}}e=Symbol.for("react.module.reference");var d=a,b=c,S=r,$=i,v=o,w=y,M=l,C=t,h=s,P=n,R=p,g=u,E=!1,_=!1;exports.ContextConsumer=d,exports.ContextProvider=b,exports.Element=S,exports.ForwardRef=$,exports.Fragment=v,exports.Lazy=w,exports.Memo=M,exports.Portal=C,exports.Profiler=h,exports.StrictMode=P,exports.Suspense=R,exports.SuspenseList=g,exports.isAsyncMode=function(e){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isConcurrentMode=function(e){return _||(_=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isContextConsumer=function(e){return m(e)===a},exports.isContextProvider=function(e){return m(e)===c},exports.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},exports.isForwardRef=function(e){return m(e)===i},exports.isFragment=function(e){return m(e)===o},exports.isLazy=function(e){return m(e)===y},exports.isMemo=function(e){return m(e)===l},exports.isPortal=function(e){return m(e)===t},exports.isProfiler=function(e){return m(e)===s},exports.isStrictMode=function(e){return m(e)===n},exports.isSuspense=function(e){return m(e)===p},exports.isSuspenseList=function(e){return m(e)===u},exports.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||(r===o||r===s||r===n||r===p||r===u||r===x||"object"==typeof r&&null!==r&&(r.$$typeof===y||r.$$typeof===l||r.$$typeof===c||r.$$typeof===a||r.$$typeof===i||r.$$typeof===e||void 0!==r.getModuleId))},exports.typeOf=m}(); + +},{}],141:[function(require,module,exports){ +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var u,b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen");function v(t){if("object"==typeof t&&null!==t){var r=t.$$typeof;switch(r){case b:switch(t=t.type){case d:case f:case e:case m:case n:return t;default:switch(t=t&&t.$$typeof){case k:case h:case l:case q:case p:case g:return t;default:return r}}case c:return r}}}u=Symbol.for("react.module.reference"),exports.ContextConsumer=h,exports.ContextProvider=g,exports.Element=b,exports.ForwardRef=l,exports.Fragment=d,exports.Lazy=q,exports.Memo=p,exports.Portal=c,exports.Profiler=f,exports.StrictMode=e,exports.Suspense=m,exports.SuspenseList=n,exports.isAsyncMode=function(){return!1},exports.isConcurrentMode=function(){return!1},exports.isContextConsumer=function(e){return v(e)===h},exports.isContextProvider=function(e){return v(e)===g},exports.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b},exports.isForwardRef=function(e){return v(e)===l},exports.isFragment=function(e){return v(e)===d},exports.isLazy=function(e){return v(e)===q},exports.isMemo=function(e){return v(e)===p},exports.isPortal=function(e){return v(e)===c},exports.isProfiler=function(e){return v(e)===f},exports.isStrictMode=function(t){return v(t)===e},exports.isSuspense=function(e){return v(e)===m},exports.isSuspenseList=function(e){return v(e)===n},exports.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===d||r===f||r===e||r===m||r===n||r===t||"object"==typeof r&&null!==r&&(r.$$typeof===q||r.$$typeof===p||r.$$typeof===g||r.$$typeof===h||r.$$typeof===l||r.$$typeof===u||void 0!==r.getModuleId)},exports.typeOf=v; + +},{}],144:[function(require,module,exports){ +/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(e,t,r){this.props=e,this.context=t,this.refs=D,this.updater=r||B}function F(){}function G(e,t,r){this.props=e,this.context=t,this.refs=D,this.updater=r||B}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F;H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,r){var n,o={},u=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(u=""+t.key),t)J.call(t,n)&&!L.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(12&&void 0!==arguments[2]?arguments[2]:{},r=e.whitelist||null,u=e.blacklist||null;function i(n){return!(!r||-1!==r.indexOf(n))||!(!u||-1===u.indexOf(n))}return{in:function(t,e,r){return!i(e)&&n?n(t,e,r):t},out:function(n,e,r){return!i(e)&&t?t(n,e,r):n}}}exports.__esModule=!0,exports.default=createTransform; + +},{}],158:[function(require,module,exports){ +"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function ownKeys(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function _objectSpread(e){for(var t=1;t-1){var u=r[n];return n>0&&(r.splice(n,1),r.unshift(u)),u.value}return NOT_FOUND}return{get:n,put:function(t,u){n(t)===NOT_FOUND&&(r.unshift({key:t,value:u}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}var defaultEqualityCheck=function(e,t){return e===t};function createCacheKeyComparator(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,u=0;u{const{regexp:s,keys:u}=(r=>t[r]||(t[r]=e(r)))(r||""),x=s.exec(n);if(!x)return[!1,null];return[!0,u.reduce(((e,t,r)=>(e[t.name]=x[r+1],e)),{})]}}Object.defineProperty(exports,"__esModule",{value:!0});const escapeRx=e=>e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),rxForSegment=(e,t,r)=>{let n=e?"((?:[^\\/]+?)(?:\\/(?:[^\\/]+?))*)":"([^\\/]+?)";return t&&r&&(n="(?:\\/"+n+")"),n+(t?"?":"")},pathToRegexp=e=>{const t=/:([A-Za-z0-9_]+)([?+*]?)/g;let r=null,n=0,s=[],u="";for(;null!==(r=t.exec(e));){const[x,a,c]=r,p="+"===c||"*"===c,l="?"===c||"*"===c,o=l&&"/"===e[r.index-1]?1:0,g=e.substring(n,r.index-o);s.push({name:a}),n=t.lastIndex,u+=escapeRx(g)+rxForSegment(p,l,o)}return u+=escapeRx(e.substring(n)),{keys:s,regexp:new RegExp("^"+u+"(?:\\/)?$","i")}};exports.default=makeMatcher; + +},{}],235:[function(require,module,exports){ +"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{})}},providesTags:["Reports"]}),getReport:e.query({query:function(e){return{url:"/api/v1/admin/reports/".concat(e)}},providesTags:function(e,t,r){return[{type:"Reports",id:r}]}}),resolveReport:e.mutation({query:function(e){return{url:"/api/v1/admin/reports/".concat(e.id,"/resolve"),method:"POST",asForm:!0,body:e}},invalidatesTags:function(e){return e?[{type:"Reports",id:"LIST"},{type:"Reports",id:e.id}]:[{type:"Reports",id:"LIST"}]}})}}; + +},{}],6:[function(require,module,exports){ +var _typeof=require("./typeof.js").default;function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}module.exports=_toPrimitive,module.exports.__esModule=!0,module.exports.default=module.exports; + +},{"./typeof.js":8}],10:[function(require,module,exports){ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@floating-ui/core")):"function"==typeof define&&define.amd?define(["exports","@floating-ui/core"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).FloatingUIDOM={},t.FloatingUICore)}(this,(function(t,e){"use strict";function n(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function o(t){return n(t).getComputedStyle(t)}function i(t){return t instanceof n(t).Node}function r(t){return i(t)?(t.nodeName||"").toLowerCase():""}let l;function c(){if(l)return l;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(l=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),l):navigator.userAgent}function f(t){return t instanceof n(t).HTMLElement}function s(t){return t instanceof n(t).Element}function u(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof n(t).ShadowRoot||t instanceof ShadowRoot}function a(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=o(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function d(t){return["table","td","th"].includes(r(t))}function h(t){const e=/firefox/i.test(c()),n=o(t),i=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!i&&"none"!==i||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function p(){return/^((?!chrome|android).)*safari/i.test(c())}function g(t){return["html","body","#document"].includes(r(t))}const m=Math.min,y=Math.max,x=Math.round;function w(t){const e=o(t);let n=parseFloat(e.width),i=parseFloat(e.height);const r=f(t),l=r?t.offsetWidth:n,c=r?t.offsetHeight:i,s=x(n)!==l||x(i)!==c;return s&&(n=l,i=c),{width:n,height:i,fallback:s}}function b(t){return s(t)?t:t.contextElement}const v={x:1,y:1};function L(t){const e=b(t);if(!f(e))return v;const n=e.getBoundingClientRect(),{width:o,height:i,fallback:r}=w(e);let l=(r?x(n.width):n.width)/o,c=(r?x(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}function T(t,o,i,r){var l,c;void 0===o&&(o=!1),void 0===i&&(i=!1);const f=t.getBoundingClientRect(),u=b(t);let a=v;o&&(r?s(r)&&(a=L(r)):a=L(t));const d=u?n(u):window,h=p()&&i;let g=(f.left+(h&&(null==(l=d.visualViewport)?void 0:l.offsetLeft)||0))/a.x,m=(f.top+(h&&(null==(c=d.visualViewport)?void 0:c.offsetTop)||0))/a.y,y=f.width/a.x,x=f.height/a.y;if(u){const t=n(u),e=r&&s(r)?n(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=L(o),e=o.getBoundingClientRect(),i=getComputedStyle(o);e.x+=(o.clientLeft+parseFloat(i.paddingLeft))*t.x,e.y+=(o.clientTop+parseFloat(i.paddingTop))*t.y,g*=t.x,m*=t.y,y*=t.x,x*=t.y,g+=e.x,m+=e.y,o=n(o).frameElement}}return e.rectToClientRect({width:y,height:x,x:g,y:m})}function O(t){return((i(t)?t.ownerDocument:t.document)||window.document).documentElement}function P(t){return s(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function R(t){return T(O(t)).left+P(t).scrollLeft}function E(t){if("html"===r(t))return t;const e=t.assignedSlot||t.parentNode||u(t)&&t.host||O(t);return u(e)?e.host:e}function C(t){const e=E(t);return g(e)?e.ownerDocument.body:f(e)&&a(e)?e:C(e)}function j(t,e){var o;void 0===e&&(e=[]);const i=C(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=n(i);return r?e.concat(l,l.visualViewport||[],a(i)?i:[]):e.concat(i,j(i))}function F(t,i,r){let l;if("viewport"===i)l=function(t,e){const o=n(t),i=O(t),r=o.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=p();(!t||t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(t,r);else if("document"===i)l=function(t){const e=O(t),n=P(t),i=t.ownerDocument.body,r=y(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=y(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+R(t);const f=-n.scrollTop;return"rtl"===o(i).direction&&(c+=y(e.clientWidth,i.clientWidth)-r),{width:r,height:l,x:c,y:f}}(O(t));else if(s(i))l=function(t,e){const n=T(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=f(t)?L(t):{x:1,y:1};return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(i,r);else{const e={...i};if(p()){var c,u;const o=n(t);e.x-=(null==(c=o.visualViewport)?void 0:c.offsetLeft)||0,e.y-=(null==(u=o.visualViewport)?void 0:u.offsetTop)||0}l=e}return e.rectToClientRect(l)}function S(t,e){const n=E(t);return!(n===e||!s(n)||g(n))&&("fixed"===o(n).position||S(n,e))}function D(t,e){return f(t)&&"fixed"!==o(t).position?e?e(t):t.offsetParent:null}function W(t,e){const i=n(t);if(!f(t))return i;let l=D(t,e);for(;l&&d(l)&&"static"===o(l).position;)l=D(l,e);return l&&("html"===r(l)||"body"===r(l)&&"static"===o(l).position&&!h(l))?i:l||function(t){let e=E(t);for(;f(e)&&!g(e);){if(h(e))return e;e=E(e)}return null}(t)||i}function A(t,e,n){const o=f(e),i=O(e),l=T(t,!0,"fixed"===n,e);let c={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==r(e)||a(i))&&(c=P(e)),f(e)){const t=T(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=R(i));return{x:l.left+c.scrollLeft-s.x,y:l.top+c.scrollTop-s.y,width:l.width,height:l.height}}const V={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:l}=t;const c=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=j(t).filter((t=>s(t)&&"body"!==r(t))),l=null;const c="fixed"===o(t).position;let f=c?E(t):t;for(;s(f)&&!g(f);){const e=o(f),n=h(f);n||"fixed"!==e.position||(l=null),(c?!n&&!l:!n&&"static"===e.position&&l&&["absolute","fixed"].includes(l.position)||a(f)&&!n&&S(t,f))?i=i.filter((t=>t!==f)):l=e,f=E(f)}return e.set(t,i),i}(e,this._c):[].concat(n),i],f=c[0],u=c.reduce(((t,n)=>{const o=F(e,n,l);return t.top=y(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=y(o.left,t.left),t}),F(e,f,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=f(n),l=O(n);if(n===l)return e;let c={scrollLeft:0,scrollTop:0},s={x:1,y:1};const u={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==r(n)||a(l))&&(c=P(n)),f(n))){const t=T(n);s=L(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-c.scrollLeft*s.x+u.x,y:e.y*s.y-c.scrollTop*s.y+u.y}},isElement:s,getDimensions:function(t){return w(t)},getOffsetParent:W,getDocumentElement:O,getScale:L,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||W,r=this.getDimensions;return{reference:A(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===o(t).direction};Object.defineProperty(t,"arrow",{enumerable:!0,get:function(){return e.arrow}}),Object.defineProperty(t,"autoPlacement",{enumerable:!0,get:function(){return e.autoPlacement}}),Object.defineProperty(t,"detectOverflow",{enumerable:!0,get:function(){return e.detectOverflow}}),Object.defineProperty(t,"flip",{enumerable:!0,get:function(){return e.flip}}),Object.defineProperty(t,"hide",{enumerable:!0,get:function(){return e.hide}}),Object.defineProperty(t,"inline",{enumerable:!0,get:function(){return e.inline}}),Object.defineProperty(t,"limitShift",{enumerable:!0,get:function(){return e.limitShift}}),Object.defineProperty(t,"offset",{enumerable:!0,get:function(){return e.offset}}),Object.defineProperty(t,"shift",{enumerable:!0,get:function(){return e.shift}}),Object.defineProperty(t,"size",{enumerable:!0,get:function(){return e.size}}),t.autoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,f=i||r?[...s(t)?j(t):t.contextElement?j(t.contextElement):[],...j(e)]:[];f.forEach((t=>{const e=!s(t)&&t.toString().includes("V");!i||c&&!e||t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));let u,a=null;l&&(a=new ResizeObserver((()=>{n()})),s(t)&&!c&&a.observe(t),s(t)||!t.contextElement||c||a.observe(t.contextElement),a.observe(e));let d=c?T(t):null;return c&&function e(){const o=T(t);!d||o.x===d.x&&o.y===d.y&&o.width===d.width&&o.height===d.height||n();d=o,u=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(u)}},t.computePosition=(t,n,o)=>{const i=new Map,r={platform:V,...o},l={...r.platform,_c:i};return e.computePosition(t,n,{...r,platform:l})},t.getOverflowAncestors=j,t.platform=V,Object.defineProperty(t,"__esModule",{value:!0})})); + +},{"@floating-ui/core":9}],27:[function(require,module,exports){ +"use strict";var dom=require("./dom.js");const selector="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function hasNegativeTabIndex(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function isFocusable(e){return dom.matches(e,selector)&&dom.isVisible(e)}function isTabbable(e){return isFocusable(e)&&!hasNegativeTabIndex(e)}function getAllFocusableIn(e,t){const n=Array.from(e.querySelectorAll(selector));t&&n.unshift(e);const b=n.filter(isFocusable);return b.forEach(((e,t)=>{if(dom.isFrame(e)&&e.contentDocument){const n=e.contentDocument.body;b.splice(t,1,...getAllFocusableIn(n))}})),b}function getAllFocusable(e){return getAllFocusableIn(document.body,e)}function getFirstFocusableIn(e,t){const[n]=getAllFocusableIn(e,t);return n||null}function getFirstFocusable(e){return getFirstFocusableIn(document.body,e)}function getAllTabbableIn(e,t,n){const b=Array.from(e.querySelectorAll(selector)),o=b.filter(isTabbable);return t&&isTabbable(e)&&o.unshift(e),o.forEach(((e,t)=>{if(dom.isFrame(e)&&e.contentDocument){const b=getAllTabbableIn(e.contentDocument.body,!1,n);o.splice(t,1,...b)}})),!o.length&&n?b:o}function getAllTabbable(e){return getAllTabbableIn(document.body,!1,e)}function getFirstTabbableIn(e,t,n){const[b]=getAllTabbableIn(e,t,n);return b||null}function getFirstTabbable(e){return getFirstTabbableIn(document.body,!1,e)}function getLastTabbableIn(e,t,n){const b=getAllTabbableIn(e,t,n);return b[b.length-1]||null}function getLastTabbable(e){return getLastTabbableIn(document.body,!1,e)}function getNextTabbableIn(e,t,n,b){const o=dom.getActiveElement(e),a=getAllFocusableIn(e,t),s=a.indexOf(o),l=a.slice(s+1);return l.find(isTabbable)||(n?a.find(isTabbable):null)||(b?l[0]:null)||null}function getNextTabbable(e,t){return getNextTabbableIn(document.body,!1,e,t)}function getPreviousTabbableIn(e,t,n,b){const o=dom.getActiveElement(e),a=getAllFocusableIn(e,t).reverse(),s=a.indexOf(o),l=a.slice(s+1);return l.find(isTabbable)||(n?a.find(isTabbable):null)||(b?l[0]:null)||null}function getPreviousTabbable(e,t){return getPreviousTabbableIn(document.body,!1,e,t)}function getClosestFocusable(e){for(;e&&!isFocusable(e);)e=dom.closest(e,selector);return e||null}function hasFocus(e){const t=dom.getActiveElement(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function hasFocusWithin(e){const t=dom.getActiveElement(e);if(!t)return!1;if(dom.contains(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function focusIfNeeded(e){!hasFocusWithin(e)&&isFocusable(e)&&e.focus()}function disableFocus(e){const t=e.getAttribute("tabindex")??"";e.setAttribute("data-tabindex",t),e.setAttribute("tabindex","-1")}function disableFocusIn(e,t){getAllTabbableIn(e,t).forEach(disableFocus)}function restoreFocusIn(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e),t.forEach(n)}function focusIntoView(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView({block:"nearest",inline:"nearest",...t})):e.focus()}exports.disableFocus=disableFocus,exports.disableFocusIn=disableFocusIn,exports.focusIfNeeded=focusIfNeeded,exports.focusIntoView=focusIntoView,exports.getAllFocusable=getAllFocusable,exports.getAllFocusableIn=getAllFocusableIn,exports.getAllTabbable=getAllTabbable,exports.getAllTabbableIn=getAllTabbableIn,exports.getClosestFocusable=getClosestFocusable,exports.getFirstFocusable=getFirstFocusable,exports.getFirstFocusableIn=getFirstFocusableIn,exports.getFirstTabbable=getFirstTabbable,exports.getFirstTabbableIn=getFirstTabbableIn,exports.getLastTabbable=getLastTabbable,exports.getLastTabbableIn=getLastTabbableIn,exports.getNextTabbable=getNextTabbable,exports.getNextTabbableIn=getNextTabbableIn,exports.getPreviousTabbable=getPreviousTabbable,exports.getPreviousTabbableIn=getPreviousTabbableIn,exports.hasFocus=hasFocus,exports.hasFocusWithin=hasFocusWithin,exports.isFocusable=isFocusable,exports.isTabbable=isTabbable,exports.restoreFocusIn=restoreFocusIn; + +},{"./dom.js":25}],29:[function(require,module,exports){ +"use strict";var dom=require("./dom.js");function isTouchDevice(){return dom.canUseDOM&&!!navigator.maxTouchPoints}function isApple(){return!!dom.canUseDOM&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function isSafari(){return dom.canUseDOM&&isApple()&&/apple/i.test(navigator.vendor)}function isFirefox(){return dom.canUseDOM&&/firefox\//i.test(navigator.userAgent)}function isMac(){return dom.canUseDOM&&navigator.platform.startsWith("Mac")&&!isTouchDevice()}exports.isApple=isApple,exports.isFirefox=isFirefox,exports.isMac=isMac,exports.isSafari=isSafari,exports.isTouchDevice=isTouchDevice; + +},{"./dom.js":25}],81:[function(require,module,exports){ +"use strict";module.exports=require("./lib"); + +},{"./lib":82}],90:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("./immer.cjs.production.min.js"):module.exports=require("./immer.cjs.development.js"); + +},{"./immer.cjs.development.js":88,"./immer.cjs.production.min.js":89}],95:[function(require,module,exports){ +const punycode=require("punycode"),sldMap=require("./data/sldMap.json"),ccTldMap=require("./data/ccTldMap.json");module.exports=function(t,e){if("string"!=typeof t)return!1;if(e instanceof Object||(e={}),(t=t.toLowerCase()).endsWith(".")&&(t=t.slice(0,t.length-1)),e.allowUnicode&&(t=punycode.toASCII(t)),t.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(t))return!1;if(e.topLevel&&ccTldMap[t.replace(/\.$/,"")])return!0;const n=t.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let r=null,u=null;if(n&&n.length>2&&sldMap[n[2]]&&(r=n[2],u=n[1].split(".")),!u){if(u=t.split("."),u.length<=1)return!1;r=u.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(r))return!1}if(!1===e.subdomain&&u.length>1)return!1;return u.every((function(t,n){if(e.wildcard&&0===n&&"*"===t&&u.length>1)return!0;let r=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;n===u.length-1&&(r=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const l=(t.match(/--(--)?/g)||[]).length,i=(t.match(/xn--/g)||[]).length;if(n===u.length-1&&l!==i)return!1;return r.test(t)&&t.length<64&&!t.startsWith("-")&&!t.endsWith("-")}))}; + +},{"./data/ccTldMap.json":93,"./data/sldMap.json":94,"punycode":84}],98:[function(require,module,exports){ +var data=require("./data"),langs={all:allLanguages,has:hasLanguage,codes:getCodes,names:getNames,where:findBy};function allLanguages(){return data}function hasLanguage(a,n){return void 0!==findBy(a,n)}function getCodes(a){if(isValidType(a))return forAll(data,(function(n){return n[a]}))}function getNames(a){return forAll(data,(function(n){return a?n.local:n.name}))}function findBy(a,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:e,u="";;)for(var d=r(o),i=o;i--;)if((u+=t[d[i]&n]||"").length===a)return u}};exports.customRandom=customRandom;var customAlphabet=function(t){return customRandom(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,random)};exports.customAlphabet=customAlphabet;var nanoid=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce((function(t,e){return t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"}),"")};exports.nanoid=nanoid; + +},{"./url-alphabet/index.js":101}],172:[function(require,module,exports){ +(function (setImmediate,clearImmediate){(function (){ +var nextTick=require("process/browser.js").nextTick,apply=Function.prototype.apply,slice=Array.prototype.slice,immediateIds={},nextImmediateId=0;function Timeout(e,t){this._id=e,this._clearFn=t}exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,window,arguments),clearTimeout)},exports.setInterval=function(){return new Timeout(apply.call(setInterval,window,arguments),clearInterval)},exports.clearTimeout=exports.clearInterval=function(e){e.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(window,this._id)},exports.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},exports.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},exports._unrefActive=exports.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},exports.setImmediate="function"==typeof setImmediate?setImmediate:function(e){var t=nextImmediateId++,i=!(arguments.length<2)&&slice.call(arguments,1);return immediateIds[t]=!0,nextTick((function(){immediateIds[t]&&(i?e.apply(null,i):e.call(null),exports.clearImmediate(t))})),t},exports.clearImmediate="function"==typeof clearImmediate?clearImmediate:function(e){delete immediateIds[e]}; + +}).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate) +},{"process/browser.js":104,"timers":172}],106:[function(require,module,exports){ +"use strict";var Punycode=require("punycode"),internals={};internals.rules=require("./data/rules.json").map((function(n){return{rule:n,suffix:n.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:"*"===n.charAt(0),exception:"!"===n.charAt(0)}})),internals.endsWith=function(n,e){return-1!==n.indexOf(e,n.length-e.length)},internals.findRule=function(n){var e=Punycode.toASCII(n);return internals.rules.reduce((function(n,t){return-1===t.punySuffix&&(t.punySuffix=Punycode.toASCII(t.suffix)),internals.endsWith(e,"."+t.punySuffix)||e===t.punySuffix?t:n}),null)},exports.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},internals.validate=function(n){var e=Punycode.toASCII(n);if(e.length<1)return"DOMAIN_TOO_SHORT";if(e.length>255)return"DOMAIN_TOO_LONG";for(var t,r=e.split("."),a=0;a63)return"LABEL_TOO_LONG";if("-"===t.charAt(0))return"LABEL_STARTS_WITH_DASH";if("-"===t.charAt(t.length-1))return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(t))return"LABEL_INVALID_CHARS"}},exports.parse=function(n){if("string"!=typeof n)throw new TypeError("Domain name must be a string.");var e=n.slice(0).toLowerCase();"."===e.charAt(e.length-1)&&(e=e.slice(0,e.length-1));var t=internals.validate(e);if(t)return{input:n,error:{message:exports.errorCodes[t],code:t}};var r={input:n,tld:null,sld:null,domain:null,subdomain:null,listed:!1},a=e.split(".");if("local"===a[a.length-1])return r;var i=function(){return/xn--/.test(e)?(r.domain&&(r.domain=Punycode.toASCII(r.domain)),r.subdomain&&(r.subdomain=Punycode.toASCII(r.subdomain)),r):r},o=internals.findRule(e);if(!o)return a.length<2?r:(r.tld=a.pop(),r.sld=a.pop(),r.domain=[r.sld,r.tld].join("."),a.length&&(r.subdomain=a.pop()),i());r.listed=!0;var l=o.suffix.split("."),s=a.slice(0,a.length-l.length);return o.exception&&s.push(l.shift()),r.tld=l.join("."),s.length?(o.wildcard&&(l.unshift(s.pop()),r.tld=l.join(".")),s.length?(r.sld=s.pop(),r.domain=[r.sld,r.tld].join("."),s.length&&(r.subdomain=s.join(".")),i()):i()):i()},exports.get=function(n){return n&&exports.parse(n).domain||null},exports.isValid=function(n){var e=exports.parse(n);return Boolean(e.domain&&e.listed)}; + +},{"./data/rules.json":105,"punycode":84}],112:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("./cjs/react-is.production.min.js"):module.exports=require("./cjs/react-is.development.js"); + +},{"./cjs/react-is.development.js":110,"./cjs/react-is.production.min.js":111}],130:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.createSubscription=createSubscription;var _batch=require("./batch");function createListenerCollection(){const e=(0,_batch.getBatch)();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,u=n={callback:e,next:null,prev:n};return u.prev?u.prev.next=u:t=u,function(){r&&null!==t&&(r=!1,u.next?u.next.prev=u.prev:n=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription(e,t){let n,r=nullListeners;function u(){i.onStateChange&&i.onStateChange()}function c(){n||(n=t?t.addNestedSub(u):e.subscribe(u),r=createListenerCollection())}const i={addNestedSub:function(e){return c(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:u,isSubscribed:function(){return Boolean(n)},trySubscribe:c,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=nullListeners)},getListeners:()=>r};return i} + +},{"./batch":131}],121:[function(require,module,exports){ +"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.default=verifySubselectors;var _warning=_interopRequireDefault(require("../utils/warning"));function verify(e,r){if(!e)throw new Error(`Unexpected value for ${r} in connect.`);"mapStateToProps"!==r&&"mapDispatchToProps"!==r||Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||(0,_warning.default)(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`)}function verifySubselectors(e,r,o){verify(e,"mapStateToProps"),verify(r,"mapDispatchToProps"),verify(o,"mergeProps")} + +},{"../utils/warning":139,"@babel/runtime/helpers/interopRequireDefault":3}],138:[function(require,module,exports){ +"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.default=verifyPlainObject;var _isPlainObject=_interopRequireDefault(require("./isPlainObject")),_warning=_interopRequireDefault(require("./warning"));function verifyPlainObject(e,i,r){(0,_isPlainObject.default)(e)||(0,_warning.default)(`${r}() in ${i} must return a plain object. Instead received ${e}.`)} + +},{"./isPlainObject":133,"./warning":139,"@babel/runtime/helpers/interopRequireDefault":3}],142:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("./cjs/react-is.production.min.js"):module.exports=require("./cjs/react-is.development.js"); + +},{"./cjs/react-is.development.js":140,"./cjs/react-is.production.min.js":141}],145:[function(require,module,exports){ +"use strict";module.exports=require("./cjs/react.production.min.js"); + +},{"./cjs/react.production.min.js":144}],148:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=createMigrate;var _constants=require("./constants");function createMigrate(r,e){var o=(e||{}).debug;return function(e,s){if(!e)return"production"!=="production"&&o&&console.log("redux-persist: no inbound state, skipping migration"),Promise.resolve(void 0);var n=e._persist&&void 0!==e._persist.version?e._persist.version:_constants.DEFAULT_VERSION;if(n===s)return"production"!=="production"&&o&&console.log("redux-persist: versions match, noop migration"),Promise.resolve(e);if(n>s)return"production"!=="production"&&console.error("redux-persist: downgrading version is not supported"),Promise.resolve(e);var t=Object.keys(r).map((function(r){return parseInt(r)})).filter((function(r){return s>=r&&r>n})).sort((function(r,e){return r-e}));"production"!=="production"&&o&&console.log("redux-persist: migrationKeys",t);try{var i=t.reduce((function(e,s){return"production"!=="production"&&o&&console.log("redux-persist: running migration for versionKey",s),r[s](e)}),e);return Promise.resolve(i)}catch(r){return Promise.reject(r)}}} + +},{"./constants":147}],149:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=createPersistoid;var _constants=require("./constants");function createPersistoid(e){var t,r=e.blacklist||null,n=e.whitelist||null,i=e.transforms||[],o=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:_constants.KEY_PREFIX).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:defaultSerialize;var c=e.writeFailHandler||null,u={},a={},f=[],d=null,h=null;function v(){if(0===f.length)return d&&clearInterval(d),void(d=null);var e=f.shift(),r=i.reduce((function(t,r){return r.in(t,e,u)}),u[e]);if(void 0!==r)try{a[e]=t(r)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete a[e];0===f.length&&(Object.keys(a).forEach((function(e){void 0===u[e]&&delete a[e]})),h=l.setItem(s,t(a)).catch(x))}function p(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!r||-1===r.indexOf(e))}function x(e){c&&c(e),e&&"production"!=="production"&&console.error("Error storing data",e)}return{update:function(e){Object.keys(e).forEach((function(t){p(t)&&u[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)})),Object.keys(u).forEach((function(t){void 0===e[t]&&p(t)&&-1===f.indexOf(t)&&void 0!==u[t]&&f.push(t)})),null===d&&(d=setInterval(v,o)),u=e},flush:function(){for(;0!==f.length;)v();return h||Promise.resolve()}}}function defaultSerialize(e){return JSON.stringify(e)} + +},{"./constants":147}],151:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=getStoredState;var _constants=require("./constants");function getStoredState(e){var t,r=e.transforms||[],n="".concat(void 0!==e.keyPrefix?e.keyPrefix:_constants.KEY_PREFIX).concat(e.key),o=e.storage,a=e.debug;return t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:defaultDeserialize,o.getItem(n).then((function(e){if(e)try{var n={},o=t(e);return Object.keys(o).forEach((function(e){n[e]=r.reduceRight((function(t,r){return r.out(t,e,o)}),t(o[e]))})),n}catch(t){throw"production"!=="production"&&a&&console.log("redux-persist/getStoredState: Error restoring data ".concat(e),t),t}}))}function defaultDeserialize(e){return JSON.parse(e)} + +},{"./constants":147}],157:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=purgeStoredState;var _constants=require("./constants");function purgeStoredState(e){var r=e.storage,t="".concat(void 0!==e.keyPrefix?e.keyPrefix:_constants.KEY_PREFIX).concat(e.key);return r.removeItem(t,warnIfRemoveError)}function warnIfRemoveError(e){e&&"production"!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)} + +},{"./constants":147}],160:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=createWebStorage;var _getStorage=_interopRequireDefault(require("./getStorage"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createWebStorage(e){var t=(0,_getStorage.default)(e);return{getItem:function(e){return new Promise((function(r,n){r(t.getItem(e))}))},setItem:function(e,r){return new Promise((function(n,o){n(t.setItem(e,r))}))},removeItem:function(e){return new Promise((function(r,n){r(t.removeItem(e))}))}}} + +},{"./getStorage":161}],99:[function(require,module,exports){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends"),removeAccents=require("remove-accents");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _extends__default=_interopDefaultLegacy(_extends),removeAccents__default=_interopDefaultLegacy(removeAccents),rankings={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};matchSorter.rankings=rankings;var defaultBaseSortFn=function(e,n){return String(e.rankedValue).localeCompare(String(n.rankedValue))};function matchSorter(e,n,r){void 0===r&&(r={});var t=r,a=t.keys,u=t.threshold,i=void 0===u?rankings.MATCHES:u,s=t.baseSort,o=void 0===s?defaultBaseSortFn:s,l=t.sorter,c=void 0===l?function(e){return e.sort((function(e,n){return sortRankedValues(e,n,o)}))}:l;return c(e.reduce((function(e,t,u){var s=getHighestRanking(t,a,n,r),o=s.rank,l=s.keyThreshold;o>=(void 0===l?i:l)&&e.push(_extends__default.default({},s,{item:t,index:u}));return e}),[])).map((function(e){return e.item}))}function getHighestRanking(e,n,r,t){if(!n){return{rankedValue:e,rank:getMatchRanking(e,r,t),keyIndex:-1,keyThreshold:t.threshold}}return getAllValuesToRank(e,n).reduce((function(e,n,a){var u=e.rank,i=e.rankedValue,s=e.keyIndex,o=e.keyThreshold,l=n.itemValue,c=n.attributes,f=getMatchRanking(l,r,t),g=i,d=c.minRanking,k=c.maxRanking,h=c.threshold;return f=rankings.MATCHES?f=d:f>k&&(f=k),f>u&&(u=f,s=a,o=h,g=l),{rankedValue:g,rank:u,keyIndex:s,keyThreshold:o}}),{rankedValue:e,rank:rankings.NO_MATCH,keyIndex:-1,keyThreshold:t.threshold})}function getMatchRanking(e,n,r){return e=prepareValueForComparison(e,r),(n=prepareValueForComparison(n,r)).length>e.length?rankings.NO_MATCH:e===n?rankings.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(n=n.toLowerCase())?rankings.EQUAL:e.startsWith(n)?rankings.STARTS_WITH:e.includes(" "+n)?rankings.WORD_STARTS_WITH:e.includes(n)?rankings.CONTAINS:1===n.length?rankings.NO_MATCH:getAcronym(e).includes(n)?rankings.ACRONYM:getClosenessRanking(e,n)}function getAcronym(e){var n="";return e.split(" ").forEach((function(e){e.split("-").forEach((function(e){n+=e.substr(0,1)}))})),n}function getClosenessRanking(e,n){var r=0,t=0;function a(e,n,t){for(var a=t,u=n.length;a-1))return rankings.NO_MATCH}return function(e){var t=1/e,a=r/n.length;return rankings.MATCHES+a*t}(t-u)}function sortRankedValues(e,n,r){var t=e.rank,a=e.keyIndex,u=n.rank,i=n.keyIndex;return t===u?a===i?r(e,n):au?-1:1}function prepareValueForComparison(e,n){return e=""+e,n.keepDiacritics||(e=removeAccents__default.default(e)),e}function getItemValues(e,n){var r;if("object"==typeof n&&(n=n.key),"function"==typeof n)r=n(e);else if(null==e)r=null;else if(Object.hasOwnProperty.call(e,n))r=e[n];else{if(n.includes("."))return getNestedValues(n,e);r=null}return null==r?[]:Array.isArray(r)?r:[String(r)]}function getNestedValues(e,n){for(var r=e.split("."),t=[n],a=0,u=r.length;a1?t-1:0),o=1;o{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function addGlobalEventListener(e,t,n,r){void 0===r&&(r=window);try{r.document.addEventListener(e,t,n)}catch(e){}const o=[];for(let i=0;i{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}exports.addGlobalEventListener=addGlobalEventListener,exports.fireBlurEvent=fireBlurEvent,exports.fireClickEvent=fireClickEvent,exports.fireEvent=fireEvent,exports.fireFocusEvent=fireFocusEvent,exports.fireKeyboardEvent=fireKeyboardEvent,exports.isDownloading=isDownloading,exports.isFocusEventOutside=isFocusEventOutside,exports.isOpeningInNewTab=isOpeningInNewTab,exports.isPortalEvent=isPortalEvent,exports.isSelfTarget=isSelfTarget,exports.queueBeforeEvent=queueBeforeEvent; + +},{"./dom.js":25,"./platform.js":29}],171:[function(require,module,exports){ +"use strict";const assureArray=require("assure-array");module.exports=function(r,e){return assureArray(e).reduce(((r,e)=>e(r)),r)}; + +},{"assure-array":81}],243:[function(require,module,exports){ +require("../node_modules/icssify/global-css-loader.js"); module.exports = {}; +},{"../node_modules/icssify/global-css-loader.js":87}],83:[function(require,module,exports){ +(function (process,global,setImmediate){(function (){ +/* @preserve + * The MIT License (MIT) + * + * Copyright (c) 2013-2018 Petka Antonov + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Promise=t()}}((function(){var t,e,n;return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof _dereq_&&_dereq_;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};e[s][0].call(u.exports,(function(t){var n=e[s][1][t];return i(n||t)}),u,u.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s0;)c(t)}function c(t){var e=t.shift();if("function"!=typeof e)e._settlePromises();else{var n=t.shift(),r=t.shift();e.call(n,r)}}s.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(t,e){e?(process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},s.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout((function(){t(e)}),0);else try{this._schedule((function(){t(e)}))}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.prototype.invokeLater=function(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()},s.prototype.invoke=function(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()},s.prototype.settlePromises=function(t){this._normalQueue._pushOne(t),this._queueTick()},s.prototype._drainQueues=function(){a(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,a(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},e.exports=s,e.exports.firstLineError=r},{"./queue":26,"./schedule":29}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(o),u=new t(e);u._propagateFrom(this,1);var p=this._target();if(u._setBoundTo(l),l instanceof t){var f={promiseRejectionQueued:!1,promise:u,target:p,bindingPromise:l};p._then(e,s,void 0,u,f),l._then(a,c,void 0,u,f),u._setOnCancel(l)}else u._resolveCallback(p);return u},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var i=t("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(t){}return i},e.exports=i},{"./promise":22}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){var n,r=t("./util"),i=r.canEvaluate;r.isIdentifier;function o(t,n){var i;if(null!=t&&(i=t[n]),"function"!=typeof i){var o="Object "+r.classString(t)+" has no method '"+r.toString(n)+"'";throw new e.TypeError(o)}return i}function s(t){return o(t,this.pop()).apply(t,this)}function a(t){return t[this]}function c(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(s,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=c;else if(i){var r=n(t);e=null!==r?r:a}else e=a;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t._isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n._isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),t._setWillBeCancelled(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0)return n[t]}return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var t=n.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},r.CapturedTrace=null,r.create=function(){if(e)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;r.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,e=!1},e=!0,t.prototype._pushContext=r.prototype._pushContext,t.prototype._popContext=r.prototype._popContext,t._peekContext=t.prototype._peekContext=i,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},r}},{}],9:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o,s,a,c,l=e._async,u=t("./errors").Warning,p=t("./util"),f=t("./es5"),h=p.canAttachTrace,_=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,v=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,y=null,g=null,m=!1,b=!(0==p.env("BLUEBIRD_DEBUG")),w=!(0==p.env("BLUEBIRD_WARNINGS")||!b&&!p.env("BLUEBIRD_WARNINGS")),C=!(0==p.env("BLUEBIRD_LONG_STACK_TRACES")||!b&&!p.env("BLUEBIRD_LONG_STACK_TRACES")),j=0!=p.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(w||!!p.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var t=[];function n(){for(var e=0;e0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return q(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var n=e._getContext();s=p.contextBind(n,t)},e.onUnhandledRejectionHandled=function(t){var n=e._getContext();o=p.contextBind(n,t)};var k=function(){};e.longStackTraces=function(){if(l.haveItemsQueued()&&!et.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!et.longStackTraces&&W()){var t=e.prototype._captureStackTrace,r=e.prototype._attachExtraTrace,i=e.prototype._dereferenceTrace;et.longStackTraces=!0,k=function(){if(l.haveItemsQueued()&&!et.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=r,e.prototype._dereferenceTrace=i,n.deactivateLongStackTraces(),et.longStackTraces=!1},e.prototype._captureStackTrace=U,e.prototype._attachExtraTrace=B,e.prototype._dereferenceTrace=M,n.activateLongStackTraces()}},e.hasLongStackTraces=function(){return et.longStackTraces&&W()};var E={unhandledrejection:{before:function(){var t=p.global.onunhandledrejection;return p.global.onunhandledrejection=null,t},after:function(t){p.global.onunhandledrejection=t}},rejectionhandled:{before:function(){var t=p.global.onrejectionhandled;return p.global.onrejectionhandled=null,t},after:function(t){p.global.onrejectionhandled=t}}},F=function(){var t=function(t,e){if(!t)return!p.global.dispatchEvent(e);var n;try{return n=t.before(),!p.global.dispatchEvent(e)}finally{t.after(n)}};try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return p.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=new CustomEvent(e,{detail:n,cancelable:!0});return f.defineProperty(r,"promise",{value:n.promise}),f.defineProperty(r,"reason",{value:n.reason}),t(E[e],r)}}if("function"==typeof Event){e=new Event("CustomEvent");return p.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=new Event(e,{cancelable:!0});return r.detail=n,f.defineProperty(r,"promise",{value:n.promise}),f.defineProperty(r,"reason",{value:n.reason}),t(E[e],r)}}return(e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),p.global.dispatchEvent(e),function(e,n){e=e.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!0,n),t(E[e],r)}}catch(t){}return function(){return!1}}(),x=p.isNode?function(){return process.emit.apply(process,arguments)}:p.global?function(t){var e="on"+t.toLowerCase(),n=p.global[e];return!!n&&(n.apply(p.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function T(t,e){return{promise:e}}var P={promiseCreated:T,promiseFulfilled:T,promiseRejected:T,promiseResolved:T,promiseCancelled:T,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:T},R=function(t){var e=!1;try{e=x.apply(null,arguments)}catch(t){l.throwLater(t),e=!0}var n=!1;try{n=F(t,P[t].apply(null,arguments))}catch(t){l.throwLater(t),n=!0}return n||e};function S(){return!1}function O(t,e,n){var r=this;try{t(e,n,(function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+p.toString(t));r._attachCancellationCallback(t)}))}catch(t){return t}}function A(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?p.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function H(){return this._onCancelField}function V(t){this._onCancelField=t}function D(){this._cancellationParent=void 0,this._onCancelField=void 0}function I(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}e.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&k()),"warnings"in t){var n=t.warnings;et.warnings=!!n,j=et.warnings,p.isObject(n)&&"wForgottenReturn"in n&&(j=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!et.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=D,e.prototype._propagateFrom=I,e.prototype._onCancel=H,e.prototype._setOnCancel=V,e.prototype._attachCancellationCallback=A,e.prototype._execute=O,L=I,et.cancellation=!0}if("monitoring"in t&&(t.monitoring&&!et.monitoring?(et.monitoring=!0,e.prototype._fireEvent=R):!t.monitoring&&et.monitoring&&(et.monitoring=!1,e.prototype._fireEvent=S)),"asyncHooks"in t&&p.nodeSupportsAsyncResource){var o=et.asyncHooks,s=!!t.asyncHooks;o!==s&&(et.asyncHooks=s,s?r():i())}return e},e.prototype._fireEvent=S,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._dereferenceTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var L=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)};function N(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function U(){this._trace=new Z(this._peekContext())}function B(t,e){if(h(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=Q(t);p.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),p.notEnumerableProp(t,"__stackCleaned__",!0)}}}function M(){this._trace=void 0}function q(t,n,r){if(et.warnings){var i,o=new u(t);if(n)r._attachExtraTrace(o);else if(et.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var s=Q(o);o.stack=s.message+"\n"+s.stack.join("\n")}R("warning",o)||G(o,"",!0)}}function $(t){for(var e=[],n=0;n0?function(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=t.name&&(e=e.slice(n)),e}(t):[" (No stack trace)"],{message:n,stack:"SyntaxError"==t.name?e:$(e)}}function G(t,e,n){if("undefined"!=typeof console){var r;if(p.isObject(t)){var i=t.stack;r=e+g(i,t)}else r=e+String(t);"function"==typeof a?a(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function z(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){l.throwLater(t)}"unhandledRejection"===t?R(t,n,r)||i||G(n,"Unhandled rejection "):R(t,r)}function X(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():p.toString(t);if(/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+function(t){var e=41;if(t.length, no stack trace)"}function W(){return"function"==typeof tt}var K=function(){return!1},J=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Y(t){var e=t.match(J);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function Z(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);tt(this,Z),e>32&&this.uncycle()}p.inherits(Z,Error),n.CapturedTrace=Z,Z.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var a=r>0?e[r-1]:this;s=0;--l)e[l]._length=c,c++;return}}}},Z.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=Q(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push($(i.stack.split("\n"))),i=i._parent;!function(t){for(var e=t[0],n=1;n=0;--a)if(r[a]===o){s=a;break}for(a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}(r),function(t){for(var e=0;e=0)return y=/@/,g=e,m=!0,function(t){t.stack=(new Error).stack};try{throw new Error}catch(t){r="stack"in t}return!("stack"in i)&&r&&"number"==typeof Error.stackTraceLimit?(y=t,g=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6}):(g=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?X(e):e.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(t){console.warn(t)},p.isNode&&process.stderr.isTTY?a=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:p.isNode||"string"!=typeof(new Error).stack||(a=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var et={warnings:w,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return C&&e.longStackTraces(),{asyncHooks:function(){return et.asyncHooks},longStackTraces:function(){return et.longStackTraces},warnings:function(){return et.warnings},cancellation:function(){return et.cancellation},monitoring:function(){return et.monitoring},propagateFromFunction:function(){return L},boundValueFunction:function(){return N},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&j){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",s="";if(e._trace){for(var a=e._trace.stack.split("\n"),c=$(a),l=c.length-1;l>=0;--l){var u=c[l];if(!d.test(u)){var p=u.match(v);p&&(o="at "+p[1]+":"+p[2]+":"+p[3]+" ");break}}if(c.length>0){var f=c[0];for(l=0;l0&&(s="\n"+a[l-1]);break}}}var h="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;r._warn(h,!0,e)}},setBounds:function(t,e){if(W()){for(var n,r,i=(t.stack||"").split("\n"),o=(e.stack||"").split("\n"),s=-1,a=-1,c=0;c=a||(K=function(t){if(_.test(t))return!0;var e=Y(t);return!!(e&&e.fileName===n&&s<=e.line&&e.line<=a)})}},warn:q,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),q(n)},CapturedTrace:Z,fireDomEvent:F,fireGlobalEvent:x}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,e,n){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,(function(){throw e}))},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();return this.caught(n,(function(){return r}))}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.reduce,r=t.all;function i(){return r(this)}t.prototype.each=function(t){return n(this,t,e,0)._then(i,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return n(this,t,e,e)},t.each=function(t,r){return n(t,r,e,0)._then(i,void 0,void 0,t,void 0)},t.mapSeries=function(t,r){return n(t,r,e,e)}}},{}],12:[function(t,e,n){"use strict";var r,i,o=t("./es5"),s=o.freeze,a=t("./util"),c=a.inherits,l=a.notEnumerableProp;function u(t,e){function n(r){if(!(this instanceof n))return new n(r);l(this,"message","string"==typeof r?r:e),l(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}var p=u("Warning","warning"),f=u("CancellationError","cancellation error"),h=u("TimeoutError","timeout error"),_=u("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(t){r=u("TypeError","type error"),i=u("RangeError","range error")}for(var d="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function p(){return h.call(this,this.promise._target()._settledValue())}function f(t){if(!u(this,t))return s.e=t,s}function h(t){var i=this.promise,a=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),t);if(c===r)return c;if(void 0!==c){i._setReturnedNonUndefined();var h=n(c,i);if(h instanceof e){if(null!=this.cancelPromise){if(h._isCancelled()){var _=new o("late cancellation observer");return i._attachExtraTrace(_),s.e=_,s}h.isPending()&&h._attachCancellationCallback(new l(this))}return h._then(p,f,void 0,this,void 0)}}}return i.isRejected()?(u(this),s.e=t,s):(u(this),t)}return c.prototype.isFinallyHandler=function(){return 0===this.type},l.prototype._resultCancelled=function(){u(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,r){return"function"!=typeof t?this.then():this._then(n,r,void 0,new c(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,h,h)},e.prototype.tap=function(t){return this._passThrough(t,1,h)},e.prototype.tapCatch=function(t){var n=arguments.length;if(1===n)return this._passThrough(t,1,void 0,h);var r,o=new Array(n-1),s=0;for(r=0;r0&&"function"==typeof arguments[e]&&(t=arguments[e]);var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){var a=t("./util"),c=a.tryCatch,l=a.errorObj,u=e._async;function p(t,n,r,i){this.constructor$(t),this._promise._captureStackTrace();var s=e._getContext();if(this._callback=a.contextBind(s,n),this._preservedValues=i===o?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],u.invoke(this._asyncInit,this,void 0),a.isArray(t))for(var c=0;c=1?s:0,o).promise()}a.inherits(p,n),p.prototype._asyncInit=function(){this._init$(void 0,-2)},p.prototype._init=function(){},p.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,u=this._limit;if(n<0){if(r[n=-1*n-1]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var p=this._promise,f=this._callback,h=p._boundValue();p._pushContext();var _=c(f).call(h,t,n,o),d=p._popContext();if(s.checkForgottenReturns(_,d,null!==a?"Promise.filter":"Promise.map",p),_===l)return this._reject(_.e),!0;var v=i(_,this._promise);if(v instanceof e){var y=(v=v._target())._bitField;if(0==(50397184&y))return u>=1&&this._inFlight++,r[n]=v,v._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(v._reason()),!0):(this._cancel(),!0);_=v._value()}r[n]=_}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},p.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],u=arguments[2];r=s.isArray(l)?a(t).apply(u,l):a(t).call(u,l)}else r=a(t)();var p=c._popContext();return o.checkForgottenReturns(r,p,"Promise.try",c),c._resolveFromSyncValue(r),c},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){"use strict";var r=t("./util"),i=r.maybeWrapAsError,o=t("./errors").OperationalError,s=t("./es5");var a=/^(?:name|message|stack|cause)$/;function c(t){var e;if(function(t){return t instanceof Error&&s.getPrototypeOf(t)===Error.prototype}(t)){(e=new o(t)).name=t.name,e.message=t.message,e.stack=t.stack;for(var n=s.keys(t),i=0;i1){var n,r=new Array(e-1),o=0;for(n=0;n0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+a.classString(t);arguments.length>1&&(n+=", "+a.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},O.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},O.prototype.spread=function(t){return"function"!=typeof t?i("expecting a function but got "+a.classString(t)):this.all()._then(t,void 0,void 0,b,void 0)},O.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},O.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new j(this).promise()},O.prototype.error=function(t){return this.caught(a.originatesFromRejection,t)},O.getNewLibraryCopy=e.exports,O.is=function(t){return t instanceof O},O.fromNode=O.fromCallback=function(t){var e=new O(m);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=S(t)(P(e,n));return r===R&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},O.all=function(t){return new j(t).promise()},O.cast=function(t){var e=C(t);return e instanceof O||((e=new O(m))._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(t){var e=new O(m);return e._captureStackTrace(),e._rejectCallback(t,!0),e},O.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+a.classString(t));return d.setScheduler(t)},O.prototype._then=function(t,e,n,r,i){var o=void 0!==i,s=o?i:new O(m),c=this._target(),l=c._bitField;o||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&l)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var u=f();if(0!=(50397184&l)){var p,h,_=c._settlePromiseCtx;0!=(33554432&l)?(h=c._rejectionHandler0,p=t):0!=(16777216&l)?(h=c._fulfillmentHandler0,p=e,c._unsetRejectionIsUnhandled()):(_=c._settlePromiseLateCancellationObserver,h=new g("late cancellation observer"),c._attachExtraTrace(h),p=e),d.invoke(_,c,{handler:a.contextBind(u,p),promise:s,receiver:r,value:h})}else c._addCallbacks(t,e,s,r,u);return s},O.prototype._length=function(){return 65535&this._bitField},O.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},O.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},O.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},O.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},O.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},O.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},O.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},O.prototype._isFinal=function(){return(4194304&this._bitField)>0},O.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},O.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},O.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},O.prototype._setAsyncGuaranteed=function(){if(!d.hasCustomScheduler()){var t=this._bitField;this._bitField=t|(536870912&t)>>2^134217728}},O.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&(536870912|this._bitField)},O.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==s)return void 0===e&&this._isBound()?this._boundValue():e},O.prototype._promiseAt=function(t){return this[4*t-4+2]},O.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},O.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},O.prototype._boundValue=function(){},O.prototype._migrateCallback0=function(t){t._bitField;var e=t._fulfillmentHandler0,n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=s),this._addCallbacks(e,n,r,i,null)},O.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=s),this._addCallbacks(n,r,i,o,null)},O.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=a.contextBind(i,t)),"function"==typeof e&&(this._rejectionHandler0=a.contextBind(i,e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=a.contextBind(i,t)),"function"==typeof e&&(this[s+1]=a.contextBind(i,e))}return this._setLength(o+1),o},O.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},O.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(n(),!1);var r=C(t,this);if(!(r instanceof O))return this._fulfill(t);e&&this._propagateFrom(r,2);var i=r._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var s=this._length();s>0&&i._migrateCallback0(this);for(var a=1;a>>16)){if(t===this){var r=n();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():d.settlePromises(this),this._dereferenceTrace())}},O.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return d.fatalError(t,a.isNode);(65535&e)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},O.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},O.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&h.defineProperty(O.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),O.defer=O.pending=function(){return F.deprecated("Promise.defer","new Promise"),{promise:new O(m),resolve:A,reject:H}},a.notEnumerableProp(O,"_makeSelfResolutionError",n),t("./method")(O,m,C,i,F),t("./bind")(O,m,C,F),t("./cancel")(O,j,i,F),t("./direct_resolve")(O),t("./synchronous_inspection")(O),t("./join")(O,j,C,m,d),O.Promise=O,O.version="3.7.2",t("./call_get.js")(O),t("./generators.js")(O,i,m,C,o,F),t("./map.js")(O,j,i,C,m,F),t("./nodeify.js")(O),t("./promisify.js")(O,m),t("./props.js")(O,j,C,i),t("./race.js")(O,m,C,i),t("./reduce.js")(O,j,i,C,m,F),t("./settle.js")(O,j,F),t("./some.js")(O,j,i),t("./timers.js")(O,m,F),t("./using.js")(O,i,C,E,m,F),t("./any.js")(O),t("./each.js")(O,m),t("./filter.js")(O,m),a.toFastProperties(O),a.toFastProperties(O.prototype),V({a:1}),V({b:2}),V({c:3}),V(1),V((function(){})),V(void 0),V(!1),V(new O(m)),F.setBounds(_.firstLineError,a.lastLineError),O}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){var s=t("./util");s.isArray;function a(t){var r=this._promise=new e(n);t instanceof e&&(r._propagateFrom(t,3),t.suppressUnhandledRejections()),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return s.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function t(n,o){var a=r(this._values,this._promise);if(a instanceof e){var c=(a=a._target())._bitField;if(this._values=a,0==(50397184&c))return this._promise._setAsyncGuaranteed(),a._then(t,this._reject,void 0,this,o);if(0==(33554432&c))return 0!=(16777216&c)?this._reject(a._reason()):this._cancel();a=a._value()}if(null!==(a=s.asArray(a)))0!==a.length?this._iterate(a):-5===o?this._resolveEmptyArray():this._resolve(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var l=i("expecting an array or an iterable object but got "+s.classString(a)).reason();this._promise._rejectCallback(l,!1)}},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=function(t){for(var e=new o,n=t.length/2|0,r=0;r>1},e.prototype.props=function(){return p(this)},e.props=function(t){return p(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){"use strict";function r(t){this._capacity=t,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(t){return this._capacity=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(t,e){var n=new i;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},o.prototype._promiseRejected=function(t,e){var n=new i;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},e.allSettled=function(t){return new o(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){var i=t("./util"),o=t("./errors").RangeError,s=t("./errors").AggregateError,a=i.isArray,c={};function l(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new l(t),i=n.promise();return n.setHowMany(e),n.init(),i}i.inherits(l,n),l.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=a(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},l.prototype.init=function(){this._initialized=!0,this._init()},l.prototype.setUnwrap=function(){this._unwrap=!0},l.prototype.howMany=function(){return this._howMany},l.prototype.setHowMany=function(t){this._howMany=t},l.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},l.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},l.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},l.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new s,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},l.prototype._fulfilled=function(){return this._totalResolved},l.prototype._rejected=function(){return this._values.length-this.length()},l.prototype._addRejected=function(t){this._values.push(t)},l.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},l.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},l.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new o(e)},l.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return u(t,e)},e.prototype.some=function(t){return u(this,t)},e._SomePromiseArray=l}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){"use strict";e.exports=function(e,n){var r=t("./util"),i=r.errorObj,o=r.isObject;var s={}.hasOwnProperty;return function(t,a){if(o(t)){if(t instanceof e)return t;var c=function(t){try{return function(t){return t.then}(t)}catch(t){return i.e=t,i}}(t);if(c===i){a&&a._pushContext();var l=e.reject(c.e);return a&&a._popContext(),l}if("function"==typeof c){if(function(t){try{return s.call(t,"_promise0")}catch(t){return!1}}(t)){l=new e(n);return t._then(l._fulfill,l._reject,void 0,l,null),l}return function(t,o,s){var a=new e(n),c=a;s&&s._pushContext();a._captureStackTrace(),s&&s._popContext();var l=!0,u=r.tryCatch(o).call(t,p,f);l=!1,a&&u===i&&(a._rejectCallback(u.e,!0,!0),a=null);function p(t){a&&(a._resolveCallback(t),a=null)}function f(t){a&&(a._rejectCallback(t,l,!0),a=null)}return c}(t,c,a)}}return t}}},{"./util":36}],34:[function(t,e,n){"use strict";e.exports=function(e,n,r){var i=t("./util"),o=e.TimeoutError;function s(t){this.handle=t}s.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(t){return c(+this).thenReturn(t)},c=e.delay=function(t,i){var o,c;return void 0!==i?(o=e.resolve(i)._then(a,null,null,t,void 0),r.cancellation()&&i instanceof e&&o._setOnCancel(i)):(o=new e(n),c=setTimeout((function(){o._fulfill()}),+t),r.cancellation()&&o._setOnCancel(new s(c)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};e.prototype.delay=function(t){return c(t,this)};function l(t){return clearTimeout(this.handle),t}function u(t){throw clearTimeout(this.handle),t}e.prototype.timeout=function(t,e){var n,a;t=+t;var c=new s(setTimeout((function(){n.isPending()&&function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new o("operation timed out"):new o(e),i.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()}(n,e,a)}),t));return r.cancellation()?(a=this.then(),(n=a._then(l,u,void 0,c,void 0))._setOnCancel(c)):n=this._then(l,u,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){var a=t("./util"),c=t("./errors").TypeError,l=t("./util").inherits,u=a.errorObj,p=a.tryCatch,f={};function h(t){setTimeout((function(){throw t}),0)}function _(t,n){var i=0,s=t.length,a=new e(o);return function o(){if(i>=s)return a._fulfill();var c=function(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}(t[i++]);if(c instanceof e&&c._isDisposable()){try{c=r(c._getDisposer().tryDispose(n),t.promise)}catch(t){return h(t)}if(c instanceof e)return c._then(o,h,null,null,null)}o()}(),a}function d(t,e,n){this._data=t,this._promise=e,this._context=n}function v(t,e,n){this.constructor$(t,e,n)}function y(t){return d.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function g(t){this.length=t,this.promise=null,this[t-1]=null}d.prototype.data=function(){return this._data},d.prototype.promise=function(){return this._promise},d.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():f},d.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=e!==f?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},d.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},l(v,d),v.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},g.prototype._resultCancelled=function(){for(var t=this.length,n=0;n0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new v(t,this,i());throw new c}}},{"./errors":12,"./util":36}],36:[function(t,e,n){"use strict";var r=t("./es5"),i="undefined"==typeof navigator,o={e:{}},s,a="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null;function c(){try{var t=s;return s=null,t.apply(this,arguments)}catch(t){return o.e=t,o}}function l(t){return s=t,c}var u=function(t,e){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=t,this.constructor$=e,e.prototype)n.call(e.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=e.prototype[r])}return r.prototype=e.prototype,t.prototype=new r,t.prototype};function p(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function f(t){return"function"==typeof t||"object"==typeof t&&null!==t}function h(t){return p(t)?new Error(E(t)):t}function _(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n1,i=e.length>0&&!(1===e.length&&"constructor"===e[0]),o=m.test(t+"")&&r.names(t).length>0;if(n||i||o)return!0}return!1}catch(t){return!1}}function w(t){function e(){}e.prototype=t;var n=new e;function r(){return typeof n.foo}return r(),r(),t}var C=/^[a-z$_][a-z$_0-9]*$/i;function j(t){return C.test(t)}function k(t,e,n){for(var r=new Array(t),i=0;i10||M[0]>0),B.nodeSupportsAsyncResource=B.isNode&&function(){var e=!1;try{e="function"==typeof t("async_hooks").AsyncResource.prototype.runInAsyncScope}catch(t){e=!1}return e}(),B.isNode&&B.toFastProperties(process);try{throw new Error}catch(t){B.lastLineError=t}e.exports=B},{"./es5":13,async_hooks:void 0}]},{},[4])(4)})),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise); + +}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("timers").setImmediate) +},{"_process":104,"timers":172}],168:[function(require,module,exports){ +(function (setImmediate){(function (){ +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";function f(e,n){var t=e.length;e.push(n);e:for(;0>>1,a=e[r];if(!(0>>1;rg(i,t))ug(s,i)?(e[r]=s,e[u]=t,r=u):(e[r]=i,e[l]=t,r=l);else{if(!(ug(s,t)))break e;e[r]=s,e[u]=t,r=u}}}return n}function g(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D="function"==typeof setTimeout?setTimeout:null,E="function"==typeof clearTimeout?clearTimeout:null,F="undefined"!=typeof setImmediate?setImmediate:null;function G(e){for(var n=h(t);null!==n;){if(null===n.callback)k(t);else{if(!(n.startTime<=e))break;k(t),n.sortIndex=n.expirationTime,f(r,n)}n=h(t)}}function H(e){if(B=!1,G(e),!A)if(null!==h(r))A=!0,I(J);else{var n=h(t);null!==n&&K(H,n.startTime-e)}}function J(e,n){A=!1,B&&(B=!1,E(L),L=-1),z=!0;var a=y;try{for(G(n),v=h(r);null!==v&&(!(v.expirationTime>n)||e&&!M());){var o=v.callback;if("function"==typeof o){v.callback=null,y=v.priorityLevel;var l=o(v.expirationTime<=n);n=exports.unstable_now(),"function"==typeof l?v.callback=l:v===h(r)&&k(r),G(n)}else k(r);v=h(r)}if(null!==v)var i=!0;else{var u=h(t);null!==u&&K(H,u.startTime-n),i=!1}return i}finally{v=null,y=a,z=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,N=!1,O=null,L=-1,P=5,Q=-1;function M(){return!(exports.unstable_now()-Qe||125o?(e.sortIndex=a,f(t,e),null===h(r)&&e===h(t)&&(B?(E(L),L=-1):B=!0,K(H,a-o))):(e.sortIndex=l,f(r,e),A||z||(A=!0,I(J))),e},exports.unstable_shouldYield=M,exports.unstable_wrapCallback=function(e){var n=y;return function(){var t=y;y=n;try{return e.apply(this,arguments)}finally{y=t}}}; + +}).call(this)}).call(this,require("timers").setImmediate) +},{"timers":172}],219:[function(require,module,exports){ +"use strict";var isValidDomain=require("is-valid-domain"),psl=require("psl");function isValidDomainBlock(i){return isValidDomain(i,{wildcard:!1,allowUnicode:!0})}function hasBetterScope(i){var e=psl.get(i);return!(!e||e==i)&&e}module.exports={isValidDomainBlock:isValidDomainBlock,hasBetterScope:hasBetterScope}; + +},{"is-valid-domain":95,"psl":106}],86:[function(require,module,exports){ +"use strict";var reactIs=require("react-is"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(t){return reactIs.isMemo(t)?MEMO_STATICS:TYPE_STATICS[t.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS,TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(t,e,r){if("string"!=typeof e){if(objectPrototype){var o=getPrototypeOf(e);o&&o!==objectPrototype&&hoistNonReactStatics(t,o,r)}var p=getOwnPropertyNames(e);getOwnPropertySymbols&&(p=p.concat(getOwnPropertySymbols(e)));for(var a=getStatics(t),s=getStatics(e),y=0;ydefaultMergeProps} + +},{"../utils/verifyPlainObject":138,"./invalidArgFactory":116,"@babel/runtime/helpers/extends":2,"@babel/runtime/helpers/interopRequireDefault":3}],122:[function(require,module,exports){ +"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.wrapMapToPropsConstant=wrapMapToPropsConstant,exports.getDependsOnOwnProps=getDependsOnOwnProps,exports.wrapMapToPropsFunc=wrapMapToPropsFunc;var _verifyPlainObject=_interopRequireDefault(require("../utils/verifyPlainObject"));function wrapMapToPropsConstant(n){return function(e){const r=n(e);function p(){return r}return p.dependsOnOwnProps=!1,p}}function getDependsOnOwnProps(n){return n.dependsOnOwnProps?Boolean(n.dependsOnOwnProps):1!==n.length}function wrapMapToPropsFunc(n,e){return function(r,{displayName:p}){const o=function(n,e){return o.dependsOnOwnProps?o.mapToProps(n,e):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(r,s){o.mapToProps=n,o.dependsOnOwnProps=getDependsOnOwnProps(n);let t=o(r,s);return"function"==typeof t&&(o.mapToProps=t,o.dependsOnOwnProps=getDependsOnOwnProps(t),t=o(r,s)),"production"!=="production"&&(0,_verifyPlainObject.default)(t,p,e),t},o}} + +},{"../utils/verifyPlainObject":138,"@babel/runtime/helpers/interopRequireDefault":3}],31:[function(require,module,exports){ +"use strict";var react=require("react");const PopoverContext=react.createContext(void 0);exports.PopoverContext=PopoverContext; + +},{"react":145}],32:[function(require,module,exports){ +"use strict";var react=require("react");const CollectionItemContext=react.createContext(void 0);exports.CollectionItemContext=CollectionItemContext; + +},{"react":145}],34:[function(require,module,exports){ +"use strict";var react=require("react");const GroupLabelContext=react.createContext(void 0);exports.GroupLabelContext=GroupLabelContext; + +},{"react":145}],35:[function(require,module,exports){ +"use strict";var react=require("react");const HeadingContext=react.createContext(0);exports.HeadingContext=HeadingContext; + +},{"react":145}],61:[function(require,module,exports){ +"use strict";var react=require("react");const DialogContext=react.createContext(void 0),DialogHeadingContext=react.createContext(void 0),DialogDescriptionContext=react.createContext(void 0);exports.DialogContext=DialogContext,exports.DialogDescriptionContext=DialogDescriptionContext,exports.DialogHeadingContext=DialogHeadingContext; + +},{"react":145}],77:[function(require,module,exports){ +"use strict";var react=require("react");const PortalContext=react.createContext(null);exports.PortalContext=PortalContext; + +},{"react":145}],113:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=exports.ReactReduxContext=void 0;var _react=require("react");const ReactReduxContext=(0,_react.createContext)(null);exports.ReactReduxContext=ReactReduxContext,"production"!=="production"&&(ReactReduxContext.displayName="ReactRedux");var _default=ReactReduxContext;exports.default=_default; + +},{"react":145}],136:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.useIsomorphicLayoutEffect=exports.canUseDOM=void 0;var _react=require("react");const canUseDOM=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);exports.canUseDOM=canUseDOM;const useIsomorphicLayoutEffect=canUseDOM?_react.useLayoutEffect:_react.useEffect;exports.useIsomorphicLayoutEffect=useIsomorphicLayoutEffect; + +},{"react":145}],143:[function(require,module,exports){ +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(e,r,t){var o,f={},_=null,s=null;for(o in void 0!==t&&(_=""+t),void 0!==r.key&&(_=""+r.key),void 0!==r.ref&&(s=r.ref),r)m.call(r,o)&&!p.hasOwnProperty(o)&&(f[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===f[o]&&(f[o]=r[o]);return{$$typeof:k,type:e,key:_,ref:s,props:f,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q; + +},{"react":145}],153:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.PersistGate=void 0;var _react=_interopRequireWildcard(require("react"));function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};o.get||o.set?Object.defineProperty(t,r,o):t[r]=e[r]}return t.default=e,t}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r1?n-1:0),o=1;o. +*/ + +"use strict"; + +var React = require("react"); +module.exports = function ExportFormatTable() { + return /*#__PURE__*/React.createElement("div", { + className: "export-format-table-wrapper without-border" + }, /*#__PURE__*/React.createElement("table", { + className: "export-format-table" + }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", { + rowSpan: 2 + }), /*#__PURE__*/React.createElement("th", { + colSpan: 2 + }, "Includes"), /*#__PURE__*/React.createElement("th", { + colSpan: 2 + }, "Importable by")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, "Domain"), /*#__PURE__*/React.createElement("th", null, "Public comment"), /*#__PURE__*/React.createElement("th", null, "GoToSocial"), /*#__PURE__*/React.createElement("th", null, "Mastodon"))), /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement(Format, { + name: "Text", + info: [true, false, true, false] + }), /*#__PURE__*/React.createElement(Format, { + name: "JSON", + info: [true, true, true, false] + }), /*#__PURE__*/React.createElement(Format, { + name: "CSV", + info: [true, true, true, true] + })))); +}; +function Format(_ref) { + var name = _ref.name, + info = _ref.info; + return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("b", null, name)), info.map(function (b, key) { + return /*#__PURE__*/React.createElement("td", { + key: key, + className: "bool" + }, bool(b)); + })); +} +function bool(val) { + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("i", { + className: "fa fa-".concat(val ? "check" : "times"), + "aria-hidden": "true" + }), /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, val ? "Yes" : "No")); +} + +},{"react":145}],209:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +module.exports = function CheckList(_ref) { + var field = _ref.field, + _ref$header = _ref.header, + header = _ref$header === void 0 ? "All" : _ref$header, + EntryComponent = _ref.EntryComponent, + getExtraProps = _ref.getExtraProps; + return /*#__PURE__*/React.createElement("div", { + className: "checkbox-list list" + }, /*#__PURE__*/React.createElement(CheckListHeader, { + toggleAll: field.toggleAll + }, " ", header), /*#__PURE__*/React.createElement(CheckListEntries, { + entries: field.value, + updateValue: field.onChange, + EntryComponent: EntryComponent, + getExtraProps: getExtraProps + })); +}; +function CheckListHeader(_ref2) { + var toggleAll = _ref2.toggleAll, + children = _ref2.children; + return /*#__PURE__*/React.createElement("label", { + className: "header entry" + }, /*#__PURE__*/React.createElement("input", { + ref: toggleAll.ref, + type: "checkbox", + onChange: toggleAll.onChange + }), " ", children); +} +var CheckListEntries = React.memo(function CheckListEntries(_ref3) { + var entries = _ref3.entries, + updateValue = _ref3.updateValue, + EntryComponent = _ref3.EntryComponent, + getExtraProps = _ref3.getExtraProps; + var deferredEntries = React.useDeferredValue(entries); + return Object.values(deferredEntries).map(function (entry) { + return /*#__PURE__*/React.createElement(CheckListEntry, { + key: entry.key, + entry: entry, + updateValue: updateValue, + EntryComponent: EntryComponent, + getExtraProps: getExtraProps + }); + }); +}); + +/* + React.memo is a performance optimization that only re-renders a CheckListEntry + when it's props actually change, instead of every time anything + in the list (CheckListEntries) updates +*/ +var CheckListEntry = React.memo(function CheckListEntry(_ref4) { + var entry = _ref4.entry, + updateValue = _ref4.updateValue, + getExtraProps = _ref4.getExtraProps, + EntryComponent = _ref4.EntryComponent; + var _onChange = React.useCallback(function (value) { + return updateValue(entry.key, value); + }, [updateValue, entry.key]); + var extraProps = React.useMemo(function () { + return getExtraProps === null || getExtraProps === void 0 ? void 0 : getExtraProps(entry); + }, [getExtraProps, entry]); + return /*#__PURE__*/React.createElement("label", { + className: "entry" + }, /*#__PURE__*/React.createElement("input", { + type: "checkbox", + onChange: function onChange(e) { + return _onChange({ + checked: e.target.checked + }); + }, + checked: entry.checked + }), /*#__PURE__*/React.createElement(EntryComponent, { + entry: entry, + onChange: _onChange, + extraProps: extraProps + })); +}); + +},{"react":145}],211:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +function ErrorFallback(_ref) { + var error = _ref.error, + resetErrorBoundary = _ref.resetErrorBoundary; + return /*#__PURE__*/React.createElement("div", { + className: "error" + }, /*#__PURE__*/React.createElement("p", null, "An error occured, please report this on the ", /*#__PURE__*/React.createElement("a", { + href: "https://github.com/superseriousbusiness/gotosocial/issues" + }, "GoToSocial issue tracker"), " or ", /*#__PURE__*/React.createElement("a", { + href: "https://matrix.to/#/#gotosocial-help:superseriousbusiness.org" + }, "Matrix support room"), ".", /*#__PURE__*/React.createElement("br", null), "Include the details below:"), /*#__PURE__*/React.createElement("div", { + className: "details" + }, /*#__PURE__*/React.createElement("pre", null, error.name, ": ", error.message), /*#__PURE__*/React.createElement("pre", null, error.stack)), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("button", { + onClick: resetErrorBoundary + }, "Try again"), " or ", /*#__PURE__*/React.createElement("a", { + href: "" + }, "refresh the page"))); +} +function Error(_ref2) { + var error = _ref2.error; + /* eslint-disable-next-line no-console */ + console.error("Rendering error:", error); + var message; + if (error.data != undefined) { + // RTK Query error with data + if (error.status) { + message = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("b", null, error.status, ":"), " ", error.data.error, error.data.error_description && /*#__PURE__*/React.createElement("p", null, error.data.error_description)); + } else { + message = error.data.error; + } + } else if (error.name != undefined || error.type != undefined) { + // JS error + message = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("b", null, error.type && error.name, ":"), " ", error.message); + } else if (error.status && typeof error.error == "string") { + message = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("b", null, error.status, ":"), " ", error.error); + } else { + var _error$message; + message = (_error$message = error.message) !== null && _error$message !== void 0 ? _error$message : error; + } + return /*#__PURE__*/React.createElement("div", { + className: "error" + }, message); +} +module.exports = { + ErrorFallback: ErrorFallback, + Error: Error +}; + +},{"react":145}],212:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +module.exports = function FakeProfile(_ref) { + var avatar = _ref.avatar, + header = _ref.header, + display_name = _ref.display_name, + username = _ref.username, + role = _ref.role; + return ( + /*#__PURE__*/ + // Keep in sync with web/template/profile.tmpl + React.createElement("div", { + className: "profile" + }, /*#__PURE__*/React.createElement("div", { + className: "header" + }, /*#__PURE__*/React.createElement("div", { + className: "header-image" + }, /*#__PURE__*/React.createElement("img", { + src: header, + alt: header ? "header image for ".concat(username) : "None set" + })), /*#__PURE__*/React.createElement("div", { + className: "basic-info", + "aria-hidden": "true" + }, /*#__PURE__*/React.createElement("a", { + className: "avatar", + href: avatar + }, /*#__PURE__*/React.createElement("img", { + src: avatar, + alt: avatar ? "avatar image for ".concat(username) : "None set" + })), /*#__PURE__*/React.createElement("span", { + className: "displayname text-cutoff" + }, display_name.trim().length > 0 ? display_name : username, /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, ".")), /*#__PURE__*/React.createElement("span", { + className: "username text-cutoff" + }, "@", username), role && role.name != "user" && /*#__PURE__*/React.createElement("div", { + className: "role ".concat(role.name) + }, /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, "Role: "), role.name)))) + ); +}; + +},{"react":145}],214:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var _excluded = ["label", "field"], + _excluded2 = ["label", "field"], + _excluded3 = ["label", "field"], + _excluded4 = ["label", "field"], + _excluded5 = ["label", "field", "options", "children"], + _excluded6 = ["field", "label"]; +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } +function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +var React = require("react"); +function TextInput(_ref) { + var label = _ref.label, + field = _ref.field, + inputProps = _objectWithoutProperties(_ref, _excluded); + var onChange = field.onChange, + value = field.value, + ref = field.ref; + return /*#__PURE__*/React.createElement("div", { + className: "form-field text".concat(field.valid ? "" : " invalid") + }, /*#__PURE__*/React.createElement("label", null, label, /*#__PURE__*/React.createElement("input", _extends({ + type: "text", + onChange: onChange, + value: value, + ref: ref + }, inputProps)))); +} +function TextArea(_ref2) { + var label = _ref2.label, + field = _ref2.field, + inputProps = _objectWithoutProperties(_ref2, _excluded2); + var onChange = field.onChange, + value = field.value, + ref = field.ref; + return /*#__PURE__*/React.createElement("div", { + className: "form-field textarea" + }, /*#__PURE__*/React.createElement("label", null, label, /*#__PURE__*/React.createElement("textarea", _extends({ + type: "text", + onChange: onChange, + value: value, + ref: ref + }, inputProps)))); +} +function FileInput(_ref3) { + var label = _ref3.label, + field = _ref3.field, + inputProps = _objectWithoutProperties(_ref3, _excluded3); + var onChange = field.onChange, + ref = field.ref, + infoComponent = field.infoComponent; + return /*#__PURE__*/React.createElement("div", { + className: "form-field file" + }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("div", { + className: "label" + }, label), /*#__PURE__*/React.createElement("div", { + className: "file-input button" + }, "Browse"), infoComponent, /*#__PURE__*/React.createElement("input", _extends({ + type: "file", + className: "hidden", + onChange: onChange, + ref: ref + }, inputProps)))); +} +function Checkbox(_ref4) { + var label = _ref4.label, + field = _ref4.field, + inputProps = _objectWithoutProperties(_ref4, _excluded4); + var onChange = field.onChange, + value = field.value; + return /*#__PURE__*/React.createElement("div", { + className: "form-field checkbox" + }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", _extends({ + type: "checkbox", + checked: value, + onChange: onChange + }, inputProps)), " ", label)); +} +function Select(_ref5) { + var label = _ref5.label, + field = _ref5.field, + options = _ref5.options, + children = _ref5.children, + inputProps = _objectWithoutProperties(_ref5, _excluded5); + var onChange = field.onChange, + value = field.value, + ref = field.ref; + return /*#__PURE__*/React.createElement("div", { + className: "form-field select" + }, /*#__PURE__*/React.createElement("label", null, label, " ", children, /*#__PURE__*/React.createElement("select", _extends({ + onChange: onChange, + value: value, + ref: ref + }, inputProps), options))); +} +function RadioGroup(_ref6) { + var field = _ref6.field, + label = _ref6.label, + inputProps = _objectWithoutProperties(_ref6, _excluded6); + return /*#__PURE__*/React.createElement("div", { + className: "form-field radio" + }, Object.entries(field.options).map(function (_ref7) { + var _ref8 = _slicedToArray(_ref7, 2), + value = _ref8[0], + radioLabel = _ref8[1]; + return /*#__PURE__*/React.createElement("label", { + key: value + }, /*#__PURE__*/React.createElement("input", _extends({ + type: "radio", + name: field.name, + value: value, + checked: field.value == value, + onChange: field.onChange + }, inputProps)), radioLabel); + }), label); +} +module.exports = { + TextInput: TextInput, + TextArea: TextArea, + FileInput: FileInput, + Checkbox: Checkbox, + Select: Select, + RadioGroup: RadioGroup +}; + +},{"react":145}],216:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +var langs = require("langs"); +var asElements = langs.all().map(function (l) { + var code = l["1"].toUpperCase(); + var name = l.name; + if (l.name != l.local) { + name = "".concat(name, " - ").concat(l.local); + } + return /*#__PURE__*/React.createElement("option", { + key: code, + value: code + }, name); +}); +module.exports = function Languages() { + return asElements; +}; + +},{"langs":98,"react":145}],217:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +module.exports = function Loading() { + return /*#__PURE__*/React.createElement("i", { + className: "fa fa-spin fa-refresh loading-icon", + "aria-label": "Loading", + title: "Loading" + }); +}; + +},{"react":145}],220:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var _default = false; +module.exports = function useBoolInput(_ref, _ref2) { + var _ref3; + var name = _ref.name, + Name = _ref.Name; + var _ref2$initialValue = _ref2.initialValue, + initialValue = _ref2$initialValue === void 0 ? _default : _ref2$initialValue; + var _React$useState = React.useState(initialValue), + _React$useState2 = _slicedToArray(_React$useState, 2), + value = _React$useState2[0], + setValue = _React$useState2[1]; + function onChange(e) { + setValue(e.target.checked); + } + function reset() { + setValue(initialValue); + } + + // Array / Object hybrid, for easier access in different contexts + return Object.assign([onChange, reset, (_ref3 = {}, _defineProperty(_ref3, name, value), _defineProperty(_ref3, "set".concat(Name), setValue), _ref3)], { + name: name, + onChange: onChange, + reset: reset, + value: value, + setter: setValue, + hasChanged: function hasChanged() { + return value != initialValue; + }, + _default: _default + }); +}; + +},{"react":145}],223:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var prettierBytes = require("prettier-bytes"); +module.exports = function useFileInput(_ref) { + var _ref3; + var name = _ref.name, + _Name = _ref._Name; + var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + withPreview = _ref2.withPreview, + maxSize = _ref2.maxSize, + _ref2$initialInfo = _ref2.initialInfo, + initialInfo = _ref2$initialInfo === void 0 ? "no file selected" : _ref2$initialInfo; + var _React$useState = React.useState(), + _React$useState2 = _slicedToArray(_React$useState, 2), + file = _React$useState2[0], + setFile = _React$useState2[1]; + var _React$useState3 = React.useState(), + _React$useState4 = _slicedToArray(_React$useState3, 2), + imageURL = _React$useState4[0], + setImageURL = _React$useState4[1]; + var _React$useState5 = React.useState(), + _React$useState6 = _slicedToArray(_React$useState5, 2), + info = _React$useState6[0], + setInfo = _React$useState6[1]; + function onChange(e) { + var file = e.target.files[0]; + setFile(file); + URL.revokeObjectURL(imageURL); + if (file != undefined) { + if (withPreview) { + setImageURL(URL.createObjectURL(file)); + } + var size = prettierBytes(file.size); + if (maxSize && file.size > maxSize) { + size = /*#__PURE__*/React.createElement("span", { + className: "error-text" + }, size); + } + setInfo( /*#__PURE__*/React.createElement(React.Fragment, null, file.name, " (", size, ")")); + } else { + setInfo(); + } + } + function reset() { + URL.revokeObjectURL(imageURL); + setImageURL(); + setFile(); + setInfo(); + } + var infoComponent = /*#__PURE__*/React.createElement("span", { + className: "form-info" + }, info ? info : initialInfo); + + // Array / Object hybrid, for easier access in different contexts + return Object.assign([onChange, reset, (_ref3 = {}, _defineProperty(_ref3, name, file), _defineProperty(_ref3, "".concat(name, "URL"), imageURL), _defineProperty(_ref3, "".concat(name, "Info"), infoComponent), _ref3)], { + onChange: onChange, + reset: reset, + name: name, + value: file, + previewValue: imageURL, + hasChanged: function hasChanged() { + return file != undefined; + }, + infoComponent: infoComponent + }); +}; + +},{"prettier-bytes":103,"react":145}],226:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var _default = ""; +module.exports = function useRadioInput(_ref, _ref2) { + var _ref3; + var name = _ref.name, + Name = _ref.Name; + var _ref2$initialValue = _ref2.initialValue, + initialValue = _ref2$initialValue === void 0 ? _default : _ref2$initialValue, + options = _ref2.options; + var _React$useState = React.useState(initialValue), + _React$useState2 = _slicedToArray(_React$useState, 2), + value = _React$useState2[0], + setValue = _React$useState2[1]; + function onChange(e) { + setValue(e.target.value); + } + function reset() { + setValue(initialValue); + } + + // Array / Object hybrid, for easier access in different contexts + return Object.assign([onChange, reset, (_ref3 = {}, _defineProperty(_ref3, name, value), _defineProperty(_ref3, "set".concat(Name), setValue), _ref3)], { + name: name, + onChange: onChange, + reset: reset, + value: value, + setter: setValue, + options: options, + hasChanged: function hasChanged() { + return value != initialValue; + }, + _default: _default + }); +}; + +},{"react":145}],228:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var _default = ""; +module.exports = function useTextInput(_ref) { + var _ref3; + var name = _ref.name, + Name = _ref.Name; + var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref2$initialValue = _ref2.initialValue, + initialValue = _ref2$initialValue === void 0 ? _default : _ref2$initialValue, + _ref2$dontReset = _ref2.dontReset, + dontReset = _ref2$dontReset === void 0 ? false : _ref2$dontReset, + validator = _ref2.validator, + _ref2$showValidation = _ref2.showValidation, + showValidation = _ref2$showValidation === void 0 ? true : _ref2$showValidation, + initValidation = _ref2.initValidation; + var _React$useState = React.useState(initialValue), + _React$useState2 = _slicedToArray(_React$useState, 2), + text = _React$useState2[0], + setText = _React$useState2[1]; + var textRef = React.useRef(null); + var _React$useState3 = React.useState(initValidation !== null && initValidation !== void 0 ? initValidation : ""), + _React$useState4 = _slicedToArray(_React$useState3, 2), + validation = _React$useState4[0], + setValidation = _React$useState4[1]; + var _React$useTransition = React.useTransition(), + _React$useTransition2 = _slicedToArray(_React$useTransition, 2), + _isValidating = _React$useTransition2[0], + startValidation = _React$useTransition2[1]; + var valid = validation == ""; + function onChange(e) { + var input = e.target.value; + setText(input); + if (validator) { + startValidation(function () { + setValidation(validator(input)); + }); + } + } + function reset() { + if (!dontReset) { + setText(initialValue); + } + } + React.useEffect(function () { + if (validator && textRef.current) { + if (showValidation) { + textRef.current.setCustomValidity(validation); + } else { + textRef.current.setCustomValidity(""); + } + } + }, [validation, validator, showValidation]); + + // Array / Object hybrid, for easier access in different contexts + return Object.assign([onChange, reset, (_ref3 = {}, _defineProperty(_ref3, name, text), _defineProperty(_ref3, "".concat(name, "Ref"), textRef), _defineProperty(_ref3, "set".concat(Name), setText), _defineProperty(_ref3, "".concat(name, "Valid"), valid), _ref3)], { + onChange: onChange, + reset: reset, + name: name, + value: text, + ref: textRef, + setter: setText, + valid: valid, + validate: function validate() { + return setValidation(validator(text)); + }, + hasChanged: function hasChanged() { + return text != initialValue; + }, + _default: _default + }); +}; + +},{"react":145}],231:[function(require,module,exports){ +"use strict";var React=require("react"),RoleContext=React.createContext([]),BaseUrlContext=React.createContext(null);function urlSafe(e){return e.toLowerCase().replace(/[\s/]+/g,"-")}function useHasPermission(e){return checkPermission(e,React.useContext(RoleContext))}function checkPermission(e,t){return!1===e||t.some((function(t){return e.includes(t)}))}function useBaseUrl(){return React.useContext(BaseUrlContext)}module.exports={urlSafe:urlSafe,RoleContext:RoleContext,useHasPermission:useHasPermission,checkPermission:checkPermission,BaseUrlContext:BaseUrlContext,useBaseUrl:useBaseUrl}; + +},{"react":145}],155:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=persistReducer;var _constants=require("./constants"),_autoMergeLevel=_interopRequireDefault(require("./stateReconciler/autoMergeLevel1")),_createPersistoid=_interopRequireDefault(require("./createPersistoid")),_getStoredState=_interopRequireDefault(require("./getStoredState")),_purgeStoredState=_interopRequireDefault(require("./purgeStoredState"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,o,i={},n=Object.keys(e);for(o=0;o=0||(i[t]=e[t]);return i}var DEFAULT_TIMEOUT=5e3;function persistReducer(e,r){if("production"!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var t=void 0!==e.version?e.version:_constants.DEFAULT_VERSION,o=(e.debug,void 0===e.stateReconciler?_autoMergeLevel.default:e.stateReconciler),i=e.getStoredState||_getStoredState.default,n=void 0!==e.timeout?e.timeout:DEFAULT_TIMEOUT,s=null,u=!1,a=!0,c=function(e){return e._persist.rehydrated&&s&&!a&&s.update(e),e};return function(p,d){var f=p||{},l=f._persist,_=_objectWithoutProperties(f,["_persist"]);if(d.type===_constants.PERSIST){var y=!1,b=function(r,t){"production"!=="production"&&y&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),r,t),y||(d.rehydrate(e.key,r,t),y=!0)};if(n&&setTimeout((function(){!y&&b(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),n),a=!1,s||(s=(0,_createPersistoid.default)(e)),l)return _objectSpread({},r(_,d),{_persist:l});if("function"!=typeof d.rehydrate||"function"!=typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),i(e).then((function(r){(e.migrate||function(e,r){return Promise.resolve(e)})(r,t).then((function(e){b(e)}),(function(e){"production"!=="production"&&e&&console.error("redux-persist: migration error",e),b(void 0,e)}))}),(function(e){b(void 0,e)})),_objectSpread({},r(_,d),{_persist:{version:t,rehydrated:!1}})}if(d.type===_constants.PURGE)return u=!0,d.result((0,_purgeStoredState.default)(e)),_objectSpread({},r(_,d),{_persist:l});if(d.type===_constants.FLUSH)return d.result(s&&s.flush()),_objectSpread({},r(_,d),{_persist:l});if(d.type===_constants.PAUSE)a=!0;else if(d.type===_constants.REHYDRATE){if(u)return _objectSpread({},_,{_persist:_objectSpread({},l,{rehydrated:!0})});if(d.key===e.key){var g=r(_,d),S=d.payload,v=_objectSpread({},!1!==o&&void 0!==S?o(S,p,g,e):g,{_persist:_objectSpread({},l,{rehydrated:!0})});return c(v)}}if(!l)return r(p,d);var h=r(_,d);return h===_?p:c(_objectSpread({},h,{_persist:l}))}} + +},{"./constants":147,"./createPersistoid":149,"./getStoredState":151,"./purgeStoredState":157,"./stateReconciler/autoMergeLevel1":158}],162:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=void 0;var _createWebStorage=_interopRequireDefault(require("./createWebStorage"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=(0,_createWebStorage.default)("local");exports.default=_default; + +},{"./createWebStorage":160}],1:[function(require,module,exports){ +var toPropertyKey=require("./toPropertyKey.js");function _defineProperty(e,r,o){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}module.exports=_defineProperty,module.exports.__esModule=!0,module.exports.default=module.exports; + +},{"./toPropertyKey.js":7}],20:[function(require,module,exports){ +"use strict";var React=require("react"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),misc$1=require("ariakit-utils/misc"),misc=require("./misc.js");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(u){if("default"!==u){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(t,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}})),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespaceDefault(React);const useReactId=React__namespace.useId,useReactDeferredValue=React__namespace.useDeferredValue,useInsertionEffect=React__namespace.useInsertionEffect,useSafeLayoutEffect=dom.canUseDOM?React.useLayoutEffect:React.useEffect;function useInitialValue(e){const[t]=React.useState(e);return t}function useLazyValue(e){const t=React.useRef();return void 0===t.current&&(t.current=e()),t.current}function useLiveRef(e){const t=React.useRef(e);return useSafeLayoutEffect((()=>{t.current=e})),t}function usePreviousValue(e){const[t,u]=React.useState(e);return e!==t&&u(e),t}function useEvent(e){const t=React.useRef((()=>{throw new Error("Cannot call an event handler while rendering.")}));return useInsertionEffect?useInsertionEffect((()=>{t.current=e})):t.current=e,React.useCallback((function(){for(var e=arguments.length,u=new Array(e),n=0;n{if(t.some(Boolean))return e=>{t.forEach((t=>{misc.setRef(t,e)}))}}),t)}function useRefId(e,t){const[u,n]=React.useState(void 0);return useSafeLayoutEffect((()=>{n(e?.current?.id)}),t),u}function useId(e){if(useReactId){const t=useReactId();return e||t}const[t,u]=React.useState(e);return useSafeLayoutEffect((()=>{if(e||t)return;const n=Math.random().toString(36).substr(2,6);u(`id-${n}`)}),[e,t]),e||t}function useDeferredValue(e){if(useReactDeferredValue)return useReactDeferredValue(e);const[t,u]=React.useState(e);return React.useEffect((()=>{const t=requestAnimationFrame((()=>u(e)));return()=>cancelAnimationFrame(t)}),[e]),t}function useTagName(e,t){const[u,n]=React.useState((()=>stringOrUndefined(t)));return useSafeLayoutEffect((()=>{n(e?.current?.tagName.toLowerCase()||stringOrUndefined(t))}),[e,t]),u}function stringOrUndefined(e){if("string"==typeof e)return e}function useUpdateEffect(e,t){const u=React.useRef(!1);React.useEffect((()=>{if(u.current)return e();u.current=!0}),t),React.useEffect((()=>()=>{u.current=!1}),[])}function useUpdateLayoutEffect(e,t){const u=React.useRef(!1);useSafeLayoutEffect((()=>{if(u.current)return e();u.current=!0}),t),useSafeLayoutEffect((()=>()=>{u.current=!1}),[])}function useControlledState(e,t,u){const[n,r]=React.useState(e),s=void 0!==t?t:n,o=useLiveRef(t),a=useLiveRef(u),c=useLiveRef(s),f=React.useCallback((e=>{const t=a.current;if(t)if(isSetNextState(t))t(e);else{const u=misc$1.applyState(e,c.current);c.current=u,t(u)}void 0===o.current&&r(e)}),[]);return defineSetNextState(f),[s,f]}const SET_NEXT_STATE=Symbol("setNextState");function isSetNextState(e){return!0===e[SET_NEXT_STATE]}function defineSetNextState(e){isSetNextState(e)||Object.defineProperty(e,SET_NEXT_STATE,{value:!0})}function useForceUpdate(){return React.useReducer((()=>[]),[])}function useBooleanEvent(e){return useEvent("function"==typeof e?e:()=>e)}function useWrapElement(e,t,u){void 0===u&&(u=[]);const n=React.useCallback((u=>(e.wrapElement&&(u=e.wrapElement(u)),t(u))),[...u,e.wrapElement]);return{...e,wrapElement:n}}function usePortalRef(e,t){void 0===e&&(e=!1);const[u,n]=React.useState(null);return{portalRef:useForkRef(n,t),portalNode:u,domReady:!e||u}}function useIsMouseMoving(){React.useEffect((()=>{events.addGlobalEventListener("mousemove",setMouseMoving,!0),events.addGlobalEventListener("mousedown",resetMouseMoving,!0),events.addGlobalEventListener("mouseup",resetMouseMoving,!0),events.addGlobalEventListener("keydown",resetMouseMoving,!0),events.addGlobalEventListener("scroll",resetMouseMoving,!0)}),[]);return useEvent((()=>mouseMoving))}let mouseMoving=!1,previousScreenX=0,previousScreenY=0;function hasMouseMovement(e){const t=e.movementX||e.screenX-previousScreenX,u=e.movementY||e.screenY-previousScreenY;return previousScreenX=e.screenX,previousScreenY=e.screenY,t||u||"test"==="production"}function setMouseMoving(e){hasMouseMovement(e)&&(mouseMoving=!0)}function resetMouseMoving(){mouseMoving=!1}exports.useBooleanEvent=useBooleanEvent,exports.useControlledState=useControlledState,exports.useDeferredValue=useDeferredValue,exports.useEvent=useEvent,exports.useForceUpdate=useForceUpdate,exports.useForkRef=useForkRef,exports.useId=useId,exports.useInitialValue=useInitialValue,exports.useIsMouseMoving=useIsMouseMoving,exports.useLazyValue=useLazyValue,exports.useLiveRef=useLiveRef,exports.usePortalRef=usePortalRef,exports.usePreviousValue=usePreviousValue,exports.useRefId=useRefId,exports.useSafeLayoutEffect=useSafeLayoutEffect,exports.useTagName=useTagName,exports.useUpdateEffect=useUpdateEffect,exports.useUpdateLayoutEffect=useUpdateLayoutEffect,exports.useWrapElement=useWrapElement; + +},{"./misc.js":21,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/misc":28,"react":145}],227:[function(require,module,exports){ +"use strict";function _typeof(r){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(r)}function ownKeys(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(r){for(var e=1;er.length)&&(e=r.length);for(var t=0,n=new Array(e);t2&&void 0!==arguments[2]?arguments[2]:{},n=t.changedOnly,o=void 0===n||n,i=t.onFinish;if(!Array.isArray(e))throw new"useFormSubmit: mutationQuery was not an Array. Is a valid useMutation RTK Query provided?";var u=_slicedToArray(e,2),a=u[0],l=u[1],c=React.useRef(null);return[function(e){var t;null!=e&&e.preventDefault?(e.preventDefault(),t=e.nativeEvent.submitter.name):t=e,""==t&&(t=void 0),c.current=t;var n=[],u=syncpipe(r,[function(r){return Object.values(r)},function(r){return r.map((function(r){if(null!=r.selectedValues){var e=r.selectedValues();if(!o||e.length>0)return n.push(r),[r.name,e]}else if(!o||r.hasChanged())return n.push(r),[r.name,r.value];return null}))},function(r){return r.filter((function(r){return null!=r}))},function(r){return Object.fromEntries(r)}]);return u.action=t,Promise.try((function(){return a(u)})).then((function(r){if(i)return i(r)}))},_objectSpread(_objectSpread({},l),{},{action:c.current})]}; + +},{"bluebird":83,"react":145,"syncpipe":171}],169:[function(require,module,exports){ +"use strict";module.exports=require("./cjs/scheduler.production.min.js"); + +},{"./cjs/scheduler.production.min.js":168}],117:[function(require,module,exports){ +"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0,exports.mapDispatchToPropsFactory=mapDispatchToPropsFactory;var _bindActionCreators=_interopRequireDefault(require("../utils/bindActionCreators")),_wrapMapToProps=require("./wrapMapToProps"),_invalidArgFactory=require("./invalidArgFactory");function mapDispatchToPropsFactory(r){return r&&"object"==typeof r?(0,_wrapMapToProps.wrapMapToPropsConstant)((o=>(0,_bindActionCreators.default)(r,o))):r?"function"==typeof r?(0,_wrapMapToProps.wrapMapToPropsFunc)(r,"mapDispatchToProps"):(0,_invalidArgFactory.createInvalidArgFactory)(r,"mapDispatchToProps"):(0,_wrapMapToProps.wrapMapToPropsConstant)((r=>({dispatch:r})))} + +},{"../utils/bindActionCreators":132,"./invalidArgFactory":116,"./wrapMapToProps":122,"@babel/runtime/helpers/interopRequireDefault":3}],118:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.mapStateToPropsFactory=mapStateToPropsFactory;var _wrapMapToProps=require("./wrapMapToProps"),_invalidArgFactory=require("./invalidArgFactory");function mapStateToPropsFactory(r){return r?"function"==typeof r?(0,_wrapMapToProps.wrapMapToPropsFunc)(r,"mapStateToProps"):(0,_invalidArgFactory.createInvalidArgFactory)(r,"mapStateToProps"):(0,_wrapMapToProps.wrapMapToPropsConstant)((()=>({})))} + +},{"./invalidArgFactory":116,"./wrapMapToProps":122}],125:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.useReduxContext=useReduxContext;var _react=require("react"),_Context=require("../components/Context");function useReduxContext(){const e=(0,_react.useContext)(_Context.ReactReduxContext);if("production"!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a ");return e} + +},{"../components/Context":113,"react":145}],114:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.default=void 0;var _react=_interopRequireWildcard(require("react")),_Context=require("./Context"),_Subscription=require("../utils/Subscription"),_useIsomorphicLayoutEffect=require("../utils/useIsomorphicLayoutEffect");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var n=u?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function Provider({store:e,context:t,children:r,serverState:o}){const u=(0,_react.useMemo)((()=>{const t=(0,_Subscription.createSubscription)(e);return{store:e,subscription:t,getServerState:o?()=>o:void 0}}),[e,o]),i=(0,_react.useMemo)((()=>e.getState()),[e]);(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((()=>{const{subscription:t}=u;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),i!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[u,i]);const n=t||_Context.ReactReduxContext;return _react.default.createElement(n.Provider,{value:u},r)}var _default=Provider;exports.default=_default; + +},{"../utils/Subscription":130,"../utils/useIsomorphicLayoutEffect":136,"./Context":113,"react":145}],146:[function(require,module,exports){ +"use strict";module.exports=require("./cjs/react-jsx-runtime.production.min.js"); + +},{"./cjs/react-jsx-runtime.production.min.js":143}],177:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("../cjs/use-sync-external-store-shim.production.min.js"):module.exports=require("../cjs/use-sync-external-store-shim.development.js"); + +},{"../cjs/use-sync-external-store-shim.development.js":173,"../cjs/use-sync-external-store-shim.production.min.js":174}],215:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var _excluded = ["label", "result", "disabled", "showError", "className", "wrapperClassName"]; +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } +function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +var React = require("react"); +var _require = require("../error"), + Error = _require.Error; +module.exports = function MutationButton(_ref) { + var label = _ref.label, + result = _ref.result, + disabled = _ref.disabled, + _ref$showError = _ref.showError, + showError = _ref$showError === void 0 ? true : _ref$showError, + _ref$className = _ref.className, + className = _ref$className === void 0 ? "" : _ref$className, + _ref$wrapperClassName = _ref.wrapperClassName, + wrapperClassName = _ref$wrapperClassName === void 0 ? "" : _ref$wrapperClassName, + inputProps = _objectWithoutProperties(_ref, _excluded); + var iconClass = ""; + var targetsThisButton = result.action == inputProps.name; // can also both be undefined, which is correct + + if (targetsThisButton) { + if (result.isLoading) { + iconClass = "fa-spin fa-refresh"; + } else if (result.isSuccess) { + iconClass = "fa-check fadeout"; + } + } + return /*#__PURE__*/React.createElement("div", { + className: wrapperClassName + }, showError && targetsThisButton && result.error && /*#__PURE__*/React.createElement(Error, { + error: result.error + }), /*#__PURE__*/React.createElement("button", _extends({ + type: "submit", + className: "with-icon " + className, + disabled: result.isLoading || disabled + }, inputProps), /*#__PURE__*/React.createElement("i", { + className: "fa fa-fw ".concat(iconClass), + "aria-hidden": "true" + }), targetsThisButton && result.isLoading ? "Processing..." : label)); +}; + +},{"../error":211,"react":145}],224:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var _excluded = ["dataQuery", "DataForm", "queryArg"]; +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } +function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +var React = require("react"); +var _require = require("../../components/error"), + Error = _require.Error; +var Loading = require("../../components/loading"); + +// Wrap Form component inside component that fires the RTK Query call, +// so Form will only be rendered when data is available to generate form-fields for +module.exports = function FormWithData(_ref) { + var dataQuery = _ref.dataQuery, + DataForm = _ref.DataForm, + queryArg = _ref.queryArg, + formProps = _objectWithoutProperties(_ref, _excluded); + var _dataQuery = dataQuery(queryArg), + data = _dataQuery.data, + isLoading = _dataQuery.isLoading, + isError = _dataQuery.isError, + error = _dataQuery.error; + if (isLoading) { + return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Loading, null)); + } else if (isError) { + return /*#__PURE__*/React.createElement(Error, { + error: error + }); + } else { + return /*#__PURE__*/React.createElement(DataForm, _extends({ + data: data + }, formProps)); + } +}; + +},{"../../components/error":211,"../../components/loading":217,"react":145}],4:[function(require,module,exports){ +var defineProperty=require("./defineProperty.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;r[t,e]));let r=!1;return t.sort(((e,t)=>{let[n,o]=e,[s,i]=t;const u=o.ref.current,c=i.ref.current;return u===c?0:u&&c?isElementPreceding(u,c)?(n>s&&(r=!0),-1):(n{let[t,r]=e;return r})):e}function setItemsBasedOnDOMPosition(e,t){const r=sortBasedOnDOMPosition(e);e!==r&&t(r)}function getCommonParent(e){const t=e[0],r=e[e.length-1];let n=t?.ref.current?.parentElement;for(;n;){if(r&&n.contains(r.ref.current))return n;n=n.parentElement}return dom.getDocument(n).body}function useTimeoutObserver(e,t){react.useEffect((()=>{const r=setTimeout((()=>setItemsBasedOnDOMPosition(e,t)));return()=>clearTimeout(r)}))}function useSortBasedOnDOMPosition(e,t){if("function"!=typeof IntersectionObserver)return void useTimeoutObserver(e,t);const r=react.useRef([]);react.useEffect((()=>{const n=getCommonParent(e),o=new IntersectionObserver((()=>{const n=!!r.current.length;r.current=e,n&&setItemsBasedOnDOMPosition(e,t)}),{root:n});return e.forEach((e=>{e.ref.current&&o.observe(e.ref.current)})),()=>o.disconnect()}),[e,t])}function useCollectionState(e){void 0===e&&(e={});const[t,r]=hooks.useControlledState([],e.items,e.setItems);useSortBasedOnDOMPosition(t,r);const n=react.useCallback((e=>{r((t=>{const r=findDOMIndex(t,e);return array.addItemToArray(t,e,r)}));return()=>{r((t=>{const r=t.filter((t=>{let{ref:r}=t;return r!==e.ref}));return t.length===r.length?t:r}))}}),[]);return react.useMemo((()=>({items:t,setItems:r,registerItem:n})),[t,r,n])}exports.useCollectionState=useCollectionState; + +},{"ariakit-react-utils/hooks":20,"ariakit-utils/array":24,"ariakit-utils/dom":25,"react":145}],66:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks");function useDisclosureState(e){let{animated:t=!1,...a}=void 0===e?{}:e;const s=react.useRef(null),[o,u]=hooks.useControlledState(a.defaultOpen??!1,a.open,a.setOpen),[r,n]=react.useState(null),[l,c]=react.useState(!!t&&o),i=hooks.usePreviousValue(o),k=o||l;t&&!l&&i!==o&&c(!0);const d=react.useCallback((()=>u(!0)),[u]),m=react.useCallback((()=>u(!1)),[u]),p=react.useCallback((()=>u((e=>!e))),[u]),h=react.useCallback((()=>c(!1)),[]);return react.useMemo((()=>({disclosureRef:s,open:o,mounted:k,animated:t,animating:l,contentElement:r,setContentElement:n,setOpen:u,show:d,hide:m,toggle:p,stopAnimation:h})),[o,k,t,l,r,n,u,d,m,p,h])}exports.useDisclosureState=useDisclosureState; + +},{"ariakit-react-utils/hooks":20,"react":145}],107:[function(require,module,exports){ +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var aa=require("react"),ca=require("scheduler");function p(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;tn}return!1}function v(e,n,t,r,l,a,i){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=i}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){z[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];z[n]=new v(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){z[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){z[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){z[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){z[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){z[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){z[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){z[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}function ta(e,n,t,r){var l=z.hasOwnProperty(n)?z[n]:null;(null!==l?0!==l.type:r||!(2--u||l[i]!==a[u]){var o="\n"+l[i].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}}while(1<=i&&0<=u);break}}}finally{Na=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1);case 11:return e=Oa(e.type.render,!1);case 1:return e=Oa(e.type,!0);default:return""}}function Qa(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 ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return null!==(n=e.displayName||null)?n:Qa(e.type)||"Memo";case Ha:n=e._payload,e=e._init;try{return Qa(e(n))}catch(e){}}return null}function Ra(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(n);case 8:return n===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ta(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Ua(e){var n=Ta(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Ta(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function Xa(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Ya(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function Za(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=Sa(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ab(e,n){null!=(n=n.checked)&&ta(e,"checked",n,!1)}function bb(e,n){ab(e,n);var t=Sa(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?cb(e,n.type,t):n.hasOwnProperty("defaultValue")&&cb(e,n.type,Sa(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function db(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function cb(e,n,t){"number"===n&&Xa(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var eb=Array.isArray;function fb(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}}));function ob(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var pb={animationIterationCount:!0,aspectRatio:!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},qb=["Webkit","ms","Moz","O"];function rb(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||pb.hasOwnProperty(e)&&pb[e]?(""+n).trim():n+"px"}function sb(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=rb(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(pb).forEach((function(e){qb.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),pb[n]=pb[e]}))}));var tb=A({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 ub(e,n){if(n){if(tb[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(p(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(p(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(p(62))}}function vb(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.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}}var wb=null;function xb(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if("function"!=typeof yb)throw Error(p(280));var n=e.stateNode;n&&(n=Db(n),yb(e.stateNode,e.type,n))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,n=Ab;if(Ab=zb=null,Bb(e),n)for(e=0;e>>=0)?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&t;if(0!==i){var u=i&~l;0!==u?r=tc(u):0!==(a&=i)&&(r=tc(a))}else 0!==(i=t&~l)?r=tc(i):0!==a&&(r=tc(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Ac(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-oc(n)]=t}function Bc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;function ge(e,n){switch(e){case"keyup":return-1!==$d.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ie=!1;function je(e,n){switch(e){case"compositionend":return he(n);case"keypress":return 32!==n.which?null:(fe=!0,ee);case"textInput":return(e=n.data)===ee&&fe?null:e;default:return null}}function ke(e,n){if(ie)return"compositionend"===e||!ae&&ge(e,n)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function Le(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?Le(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function Me(){for(var e=window,n=Xa();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=Xa((e=n.contentWindow).document)}return n}function Ne(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function Oe(e){var n=Me(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Le(t.ownerDocument.documentElement,t)){if(null!==r&&Ne(t))if(n=r.start,void 0===(e=r.end)&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=Ke(t,a);var i=Ke(t,r);l&&i&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Te||null==Qe||Qe!==Xa(r)||("selectionStart"in(r=Qe)&&Ne(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},Se&&Ie(Se,r)||(Se=r,0<(r=oe(Re,"onSelect")).length&&(n=new td("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=Qe)))}function Ve(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var n,t=We[e];for(n in t)if(t.hasOwnProperty(n)&&n in Ye)return Xe[e]=t[n];return e}ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,n){df.set(e,n),fa(n,[e])}for(var gf=0;gfTf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,n){Tf++,Sf[Tf]=e.current,e.current=n}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,n){var t=e.type.contextTypes;if(!t)return Vf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Zf(e){return null!=(e=e.childContextTypes)}function $f(){E(Wf),E(H)}function ag(e,n,t){if(H.current!==Vf)throw Error(p(168));G(H,n),G(Wf,t)}function bg(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(p(108,Ra(e)||"Unknown",l));return A({},t,r)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,n,t){var r=e.stateNode;if(!r)throw Error(p(169));t?(e=bg(e,n,Xf),r.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,t)}var eg=null,fg=!1,gg=!1;function hg(e){null===eg?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&null!==eg){gg=!0;var e=0,n=C;try{var t=eg;for(C=1;e>=i,l-=i,rg=1<<32-oc(n)+l|t<g?(m=p,p=null):m=p.sibling;var v=d(l,p,u[g],o);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&n(l,p),i=a(v,i,g),null===s?c=v:s.sibling=v,s=v,p=m}if(g===u.length)return t(l,p),I&&tg(l,g),c;if(null===p){for(;gm?(v=g,g=null):v=g.sibling;var y=d(l,g,b.value,o);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&n(l,g),i=a(y,i,m),null===s?c=y:s.sibling=y,s=y,g=v}if(b.done)return t(l,g),I&&tg(l,m),c;if(null===g){for(;!b.done;m++,b=u.next())null!==(b=f(l,b.value,o))&&(i=a(b,i,m),null===s?c=b:s.sibling=b,s=b);return I&&tg(l,m),c}for(g=r(l,g);!b.done;m++,b=u.next())null!==(b=h(g,l,m,b.value,o))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),i=a(b,i,m),null===s?c=b:s.sibling=b,s=b);return e&&g.forEach((function(e){return n(l,e)})),I&&tg(l,m),c}return function e(r,a,u,o){if("object"==typeof u&&null!==u&&u.type===ya&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case va:e:{for(var c=u.key,s=a;null!==s;){if(s.key===c){if((c=u.type)===ya){if(7===s.tag){t(r,s.sibling),(a=l(s,u.props.children)).return=r,r=a;break e}}else if(s.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Ha&&uh(c)===s.type){t(r,s.sibling),(a=l(s,u.props)).ref=sh(r,s,u),a.return=r,r=a;break e}t(r,s);break}n(r,s),s=s.sibling}u.type===ya?((a=Ah(u.props.children,r.mode,o,u.key)).return=r,r=a):((o=yh(u.type,u.key,u.props,null,r.mode,o)).ref=sh(r,a,u),o.return=r,r=o)}return i(r);case wa:e:{for(s=u.key;null!==a;){if(a.key===s){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=zh(u,r.mode,o)).return=r,r=a}return i(r);case Ha:return e(r,a,(s=u._init)(u._payload),o)}if(eb(u))return g(r,a,u,o);if(Ka(u))return m(r,a,u,o);th(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=xh(u,r.mode,o)).return=r,r=a),i(r)):t(r,a)}}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(e){if(e===Dh)throw Error(p(174));return e}function Ih(e,n){switch(G(Gh,n),G(Fh,e),G(Eh,Dh),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:lb(null,"");break;default:n=lb(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}E(Eh),G(Eh,n)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(e){Hh(Gh.current);var n=Hh(Eh.current),t=lb(n,e.type);n!==t&&(G(Fh,e),G(Eh,t))}function Lh(e){Fh.current===e&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(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 null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Nh=[];function Oh(){for(var e=0;et?t:4,e(!0);var r=Qh.transition;Qh.transition={};try{e(!1),n()}finally{C=t,Qh.transition=r}}function Fi(){return di().memoizedState}function Gi(e,n,t){var r=lh(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Hi(e))Ii(n,t);else if(null!==(t=Yg(e,n,t,r))){mh(t,e,r,L()),Ji(t,n,r)}}function ri(e,n,t){var r=lh(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Ii(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,He(u,i)){var o=n.interleaved;return null===o?(l.next=l,Xg(n)):(l.next=o.next,o.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Yg(e,n,l,r))&&(mh(t,e,r,l=L()),Ji(t,n,r))}}function Hi(e){var n=e.alternate;return e===N||null!==n&&n===N}function Ii(e,n){Th=Sh=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ji(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Cc(e,t)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(e,n){return ci().memoizedState=[e,void 0===n?null:n],e},useContext:Vg,useEffect:vi,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,ti(4194308,4,yi.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ti(4194308,4,e,n)},useInsertionEffect:function(e,n){return ti(4,2,e,n)},useMemo:function(e,n){var t=ci();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=ci();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Gi.bind(null,N,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ci().memoizedState=e},useState:qi,useDebugValue:Ai,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=qi(!1),n=e[0];return e=Ei.bind(null,e[1]),ci().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=N,l=ci();if(I){if(void 0===t)throw Error(p(407));t=t()}else{if(t=n(),null===R)throw Error(p(349));0!=(30&Rh)||ni(r,n,t)}l.memoizedState=t;var a={value:t,getSnapshot:n};return l.queue=a,vi(ki.bind(null,r,a,e),[e]),r.flags|=2048,li(9,mi.bind(null,r,a,t,n),void 0,null),t},useId:function(){var e=ci(),n=R.identifierPrefix;if(I){var t=sg;n=":"+n+"R"+(t=(rg&~(1<<32-oc(rg)-1)).toString(32)+t),0<(t=Uh++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=Vh++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(e){return Di(di(),O.memoizedState,e)},useTransition:function(){return[fi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(e){var n=di();return null===O?n.memoizedState=e:Di(n,O.memoizedState,e)},useTransition:function(){return[gi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(e,n){try{var t="",r=n;do{t+=Pa(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function Li(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function Mi(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var Ni="function"==typeof WeakMap?WeakMap:Map;function Oi(e,n,t){(t=ch(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Pi||(Pi=!0,Qi=r),Mi(e,n)},t}function Ri(e,n,t){(t=ch(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Mi(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){Mi(e,n),"function"!=typeof r&&(null===Si?Si=new Set([this]):Si.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Ti(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Ni;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Ui.bind(null,e,n,t),n.then(e,e))}function Vi(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function Wi(e,n,t,r,l){return 0==(1&e.mode)?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=ch(-1,1)).tag=2,dh(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(e,n,t,r){n.child=null===e?Ch(n,null,t,r):Bh(n,e.child,t,r)}function Zi(e,n,t,r,l){t=t.render;var a=n.ref;return Tg(n,l),r=Xh(e,n,t,r,a,l),t=bi(),null===e||Ug?(I&&t&&vg(n),n.flags|=1,Yi(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,$i(e,n,l))}function aj(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||bj(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=yh(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,cj(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Ie)(i,r)&&e.ref===n.ref)return $i(e,n,l)}return n.flags|=1,(e=wh(a,r)).ref=n.ref,e.return=n,n.child=e}function cj(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Ie(a,r)&&e.ref===n.ref){if(Ug=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,$i(e,n,l);0!=(131072&e.flags)&&(Ug=!0)}}return dj(e,n,t,r,l)}function ej(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,G(fj,gj),gj|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,G(fj,gj),gj|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,G(fj,gj),gj|=r;return Yi(e,n,l,t),n.child}function hj(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function dj(e,n,t,r,l){var a=Zf(t)?Xf:H.current;return a=Yf(n,a),Tg(n,l),t=Xh(e,n,t,r,a,l),r=bi(),null===e||Ug?(I&&r&&vg(n),n.flags|=1,Yi(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,$i(e,n,l))}function ij(e,n,t,r,l){if(Zf(t)){var a=!0;cg(n)}else a=!1;if(Tg(n,l),null===n.stateNode)jj(e,n),ph(n,t,r),rh(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,c=t.contextType;"object"==typeof c&&null!==c?c=Vg(c):c=Yf(n,c=Zf(t)?Xf:H.current);var s=t.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==c)&&qh(n,i,r,c),$g=!1;var d=n.memoizedState;i.state=d,gh(n,r,i,l),o=n.memoizedState,u!==r||d!==o||Wf.current||$g?("function"==typeof s&&(kh(n,t,s,r),o=n.memoizedState),(u=$g||oh(n,t,u,r,d,o,c))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4194308)):("function"==typeof i.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=c,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,bh(e,n),u=n.memoizedProps,c=n.type===n.elementType?u:Lg(n.type,u),i.props=c,f=n.pendingProps,d=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Vg(o):o=Yf(n,o=Zf(t)?Xf:H.current);var p=t.getDerivedStateFromProps;(s="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==f||d!==o)&&qh(n,i,r,o),$g=!1,d=n.memoizedState,i.state=d,gh(n,r,i,l);var h=n.memoizedState;u!==f||d!==h||Wf.current||$g?("function"==typeof p&&(kh(n,t,p,r),h=n.memoizedState),(c=$g||oh(n,t,c,r,d,h,o)||!1)?(s||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=c):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return kj(e,n,t,r,a,l)}function kj(e,n,t,r,l,a){hj(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&dg(n,t,!1),$i(e,n,a);r=n.stateNode,Xi.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=Bh(n,e.child,null,a),n.child=Bh(n,null,u,a)):Yi(e,n,u,a),n.memoizedState=r.state,l&&dg(n,t,!0),n.child}function lj(e){var n=e.stateNode;n.pendingContext?ag(e,n.pendingContext,n.pendingContext!==n.context):n.context&&ag(e,n.context,!1),Ih(e,n.containerInfo)}function mj(e,n,t,r,l){return Ig(),Jg(l),n.flags|=256,Yi(e,n,t,r),n.child}var Aj,Bj,Cj,Dj,nj={dehydrated:null,treeContext:null,retryLane:0};function oj(e){return{baseLanes:e,cachePool:null,transitions:null}}function pj(e,n,t){var r,l=n.pendingProps,a=M.current,i=!1,u=0!=(128&n.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),G(M,1&a),null===e)return Eg(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&n.mode)?n.lanes=1:"$!"===e.data?n.lanes=8:n.lanes=1073741824,null):(u=l.children,e=l.fallback,i?(l=n.mode,i=n.child,u={mode:"hidden",children:u},0==(1&l)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=qj(u,l,0,null),e=Ah(e,l,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=oj(t),n.memoizedState=nj,e):rj(n,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return sj(e,n,u,l,r,a,t);if(i){i=l.fallback,u=n.mode,r=(a=e.child).sibling;var o={mode:"hidden",children:l.children};return 0==(1&u)&&n.child!==a?((l=n.child).childLanes=0,l.pendingProps=o,n.deletions=null):(l=wh(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=wh(r,i):(i=Ah(i,u,t,null)).flags|=2,i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,u=null===(u=e.child.memoizedState)?oj(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=nj,l}return e=(i=e.child).sibling,l=wh(i,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function rj(e,n){return(n=qj({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function tj(e,n,t,r){return null!==r&&Jg(r),Bh(n,e.child,null,t),(e=rj(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function sj(e,n,t,r,l,a,i){if(t)return 256&n.flags?(n.flags&=-257,tj(e,n,i,r=Li(Error(p(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(a=r.fallback,l=n.mode,r=qj({mode:"visible",children:r.children},l,0,null),(a=Ah(a,l,i,null)).flags|=2,r.return=n,a.return=n,r.sibling=a,n.child=r,0!=(1&n.mode)&&Bh(n,e.child,null,i),n.child.memoizedState=oj(i),n.memoizedState=nj,a);if(0==(1&n.mode))return tj(e,n,i,null);if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;return r=u,tj(e,n,i,r=Li(a=Error(p(419)),r,void 0))}if(u=0!=(i&e.childLanes),Ug||u){if(null!==(r=R)){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|i))?0:l)&&l!==a.retryLane&&(a.retryLane=l,Zg(e,l),mh(r,e,l,-1))}return uj(),tj(e,n,i,r=Li(Error(p(421))))}return"$?"===l.data?(n.flags|=128,n.child=e.child,n=vj.bind(null,e),l._reactRetry=n,null):(e=a.treeContext,yg=Lf(l.nextSibling),xg=n,I=!0,zg=null,null!==e&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=n),(n=rj(n,r.children)).flags|=4096,n)}function wj(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Sg(e.return,n,t)}function xj(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function yj(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Yi(e,n,r.children,t),0!=(2&(r=M.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&wj(e,t,n);else if(19===e.tag)wj(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(G(M,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===Mh(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),xj(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Mh(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}xj(n,!0,t,null,a);break;case"together":xj(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function jj(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function $i(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),hh|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(p(153));if(null!==n.child){for(t=wh(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=wh(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function zj(e,n,t){switch(n.tag){case 3:lj(n),Ig();break;case 5:Kh(n);break;case 1:Zf(n.type)&&cg(n);break;case 4:Ih(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;G(Mg,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(G(M,1&M.current),n.flags|=128,null):0!=(t&n.child.childLanes)?pj(e,n,t):(G(M,1&M.current),null!==(e=$i(e,n,t))?e.sibling:null);G(M,1&M.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return yj(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),G(M,M.current),r)break;return null;case 22:case 23:return n.lanes=0,ej(e,n,t)}return $i(e,n,t)}function Ej(e,n){if(!I)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function S(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Fj(e,n,t){var r=n.pendingProps;switch(wg(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(n),null;case 1:case 17:return Zf(n.type)&&$f(),S(n),null;case 3:return r=n.stateNode,Jh(),E(Wf),E(H),Oh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gg(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==zg&&(Gj(zg),zg=null))),Bj(e,n),S(n),null;case 5:Lh(n);var l=Hh(Gh.current);if(t=n.type,null!==e&&null!=n.stateNode)Cj(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(p(166));return S(n),null}if(e=Hh(Eh.current),Gg(n)){r=n.stateNode,t=n.type;var a=n.memoizedProps;switch(r[Of]=n,r[Pf]=a,e=0!=(1&n.mode),t){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),"select"===t&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Of]=n,e[Pf]=r,Aj(e,n,!1,!1),n.stateNode=e;e:{switch(i=vb(t,r),t){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lHj&&(n.flags|=128,r=!0,Ej(a,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=Mh(i))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),Ej(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!I)return S(n),null}else 2*B()-a.renderingStartTime>Hj&&1073741824!==t&&(n.flags|=128,r=!0,Ej(a,!1),n.lanes=4194304);a.isBackwards?(i.sibling=n.child,n.child=i):(null!==(t=a.last)?t.sibling=i:n.child=i,a.last=i)}return null!==a.tail?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.renderingStartTime=B(),n.sibling=null,t=M.current,G(M,r?1&t|2:1&t),n):(S(n),null);case 22:case 23:return Ij(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&gj)&&(S(n),6&n.subtreeFlags&&(n.flags|=8192)):S(n),null;case 24:case 25:return null}throw Error(p(156,n.tag))}function Jj(e,n){switch(wg(n),n.tag){case 1:return Zf(n.type)&&$f(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Jh(),E(Wf),E(H),Oh(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return Lh(n),null;case 13:if(E(M),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(p(340));Ig()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(n.type._context),null;case 22:case 23:return Ij(),null;default:return null}}Aj=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Bj=function(){},Cj=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,Hh(Eh.current);var a,i=null;switch(t){case"input":l=Ya(e,l),r=Ya(e,r),i=[];break;case"select":l=A({},l,{value:void 0}),r=A({},r,{value:void 0}),i=[];break;case"textarea":l=gb(e,l),r=gb(e,r),i=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Bf)}for(c in ub(t,r),t=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var u=l[c];for(a in u)u.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(ea.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var o=r[c];if(u=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&o!==u&&(null!=o||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||o&&o.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in o)o.hasOwnProperty(a)&&u[a]!==o[a]&&(t||(t={}),t[a]=o[a])}else t||(i||(i=[]),i.push(c,t)),t=o;else"dangerouslySetInnerHTML"===c?(o=o?o.__html:void 0,u=u?u.__html:void 0,null!=o&&u!==o&&(i=i||[]).push(c,o)):"children"===c?"string"!=typeof o&&"number"!=typeof o||(i=i||[]).push(c,""+o):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(ea.hasOwnProperty(c)?(null!=o&&"onScroll"===c&&D("scroll",e),i||u===o||(i=[])):(i=i||[]).push(c,o))}t&&(i=i||[]).push("style",t);var c=i;(n.updateQueue=c)&&(n.flags|=4)}},Dj=function(e,n,t,r){t!==r&&(n.flags|=4)};var Kj=!1,U=!1,Lj="function"==typeof WeakSet?WeakSet:Set,V=null;function Mj(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){W(e,n,t)}else t.current=null}function Nj(e,n,t){try{t()}catch(t){W(e,n,t)}}var Oj=!1;function Pj(e,n){if(Cf=dd,Ne(e=Me())){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{t.nodeType,a.nodeType}catch(e){t=null;break e}var i=0,u=-1,o=-1,c=0,s=0,f=e,d=null;n:for(;;){for(var h;f!==t||0!==l&&3!==f.nodeType||(u=i+l),f!==a||0!==r&&3!==f.nodeType||(o=i+r),3===f.nodeType&&(i+=f.nodeValue.length),null!==(h=f.firstChild);)d=f,f=h;for(;;){if(f===e)break n;if(d===t&&++c===l&&(u=i),d===a&&++s===r&&(o=i),null!==(h=f.nextSibling))break;d=(f=d).parentNode}f=h}t=-1===u||-1===o?null:{start:u,end:o}}else t=null}t=t||{start:0,end:0}}else t=null;for(Df={focusedElem:e,selectionRange:t},dd=!1,V=n;null!==V;)if(e=(n=V).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,V=e;else for(;null!==V;){n=V;try{var g=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,b=n.stateNode,y=b.getSnapshotBeforeUpdate(n.elementType===n.type?m:Lg(n.type,m),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(p(163))}}catch(e){W(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,V=e;break}V=n.return}return g=Oj,Oj=!1,g}function Qj(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&Nj(n,t,a)}l=l.next}while(l!==r)}}function Rj(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Sj(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,"function"==typeof n?n(e):n.current=e}}function Tj(e){var n=e.alternate;null!==n&&(e.alternate=null,Tj(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(n=e.stateNode)&&(delete n[Of],delete n[Pf],delete n[of],delete n[Qf],delete n[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uj(e){return 5===e.tag||3===e.tag||4===e.tag}function Vj(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Uj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Wj(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=Bf));else if(4!==r&&null!==(e=e.child))for(Wj(e,n,t),e=e.sibling;null!==e;)Wj(e,n,t),e=e.sibling}function Xj(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Xj(e,n,t),e=e.sibling;null!==e;)Xj(e,n,t),e=e.sibling}var X=null,Yj=!1;function Zj(e,n,t){for(t=t.child;null!==t;)ak(e,n,t),t=t.sibling}function ak(e,n,t){if(lc&&"function"==typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,t)}catch(e){}switch(t.tag){case 5:U||Mj(t,n);case 6:var r=X,l=Yj;X=null,Zj(e,n,t),Yj=l,null!==(X=r)&&(Yj?(e=X,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):X.removeChild(t.stateNode));break;case 18:null!==X&&(Yj?(e=X,t=t.stateNode,8===e.nodeType?Kf(e.parentNode,t):1===e.nodeType&&Kf(e,t),bd(e)):Kf(X,t.stateNode));break;case 4:r=X,l=Yj,X=t.stateNode.containerInfo,Yj=!0,Zj(e,n,t),X=r,Yj=l;break;case 0:case 11:case 14:case 15:if(!U&&(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect))){l=r=r.next;do{var a=l,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Nj(t,n,i),l=l.next}while(l!==r)}Zj(e,n,t);break;case 1:if(!U&&(Mj(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){W(t,n,e)}Zj(e,n,t);break;case 21:Zj(e,n,t);break;case 22:1&t.mode?(U=(r=U)||null!==t.memoizedState,Zj(e,n,t),U=r):Zj(e,n,t);break;default:Zj(e,n,t)}}function bk(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Lj),n.forEach((function(n){var r=ck.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function dk(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=B()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mk(r/1960))-r)){e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),r);break}Qk(e,uk,vk);break;default:throw Error(p(329))}}}return Ek(e,B()),e.callbackNode===t?Hk.bind(null,e):null}function Ok(e,n){var t=tk;return e.current.memoizedState.isDehydrated&&(Lk(e,n).flags|=256),2!==(e=Jk(e,n))&&(n=uk,uk=t,null!==n&&Gj(n)),e}function Gj(e){null===uk?uk=e:uk.push.apply(uk,e)}function Pk(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;re?16:e,null===xk)var r=!1;else{if(e=xk,xk=null,yk=0,0!=(6&K))throw Error(p(331));var l=K;for(K|=4,V=e.current;null!==V;){var a=V,i=a.child;if(0!=(16&V.flags)){var u=a.deletions;if(null!==u){for(var o=0;oB()-gk?Lk(e,0):sk|=t),Ek(e,n)}function Zk(e,n){0===n&&(0==(1&e.mode)?n=1:(n=sc,0==(130023424&(sc<<=1))&&(sc=4194304)));var t=L();null!==(e=Zg(e,n))&&(Ac(e,n,t),Ek(e,t))}function vj(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Zk(e,t)}function ck(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(p(314))}null!==r&&r.delete(n),Zk(e,t)}function Gk(e,n){return ac(e,n)}function al(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,n,t,r){return new al(e,n,t,r)}function bj(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $k(e){if("function"==typeof e)return bj(e)?1:0;if(null!=e){if((e=e.$$typeof)===Da)return 11;if(e===Ga)return 14}return 2}function wh(e,n){var t=e.alternate;return null===t?((t=Bg(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function yh(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)bj(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ya:return Ah(t.children,l,a,n);case za:i=8,l|=8;break;case Aa:return(e=Bg(12,t,n,2|l)).elementType=Aa,e.lanes=a,e;case Ea:return(e=Bg(13,t,n,l)).elementType=Ea,e.lanes=a,e;case Fa:return(e=Bg(19,t,n,l)).elementType=Fa,e.lanes=a,e;case Ia:return qj(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ba:i=10;break e;case Ca:i=9;break e;case Da:i=11;break e;case Ga:i=14;break e;case Ha:i=16,r=null;break e}throw Error(p(130,null==e?e:typeof e,""))}return(n=Bg(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ah(e,n,t,r){return(e=Bg(7,e,r,n)).lanes=t,e}function qj(e,n,t,r){return(e=Bg(22,e,r,n)).elementType=Ia,e.lanes=t,e.stateNode={isHidden:!1},e}function xh(e,n,t){return(e=Bg(6,e,null,n)).lanes=t,e}function zh(e,n,t){return(n=Bg(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function bl(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function cl(e,n,t,r,l,a,i,u,o){return e=new bl(e,n,t,u,o),1===n?(n=1,!0===a&&(n|=8)):n=0,a=Bg(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(a),e}function dl(e,n,t){var r=3{useSyncExternalStore=e};exports.initializeConnect=initializeConnect;const EMPTY_ARRAY=[null,0],NO_SUBSCRIPTION_ARRAY=[null,null],stringifyComponent=e=>{try{return JSON.stringify(e)}catch(t){return String(e)}};function useIsomorphicLayoutEffectWithArgs(e,t,r){(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((()=>e(...t)),r)}function captureWrapperProps(e,t,r,o,n,a){e.current=o,r.current=!1,n.current&&(n.current=null,a())}function subscribeUpdates(e,t,r,o,n,a,u,c,s,i,p){if(!e)return()=>{};let l=!1,d=null;const f=()=>{if(l||!c.current)return;const e=t.getState();let r,f;try{r=o(e,n.current)}catch(e){f=e,d=e}f||(d=null),r===a.current?u.current||i():(a.current=r,s.current=r,u.current=!0,p())};r.onStateChange=f,r.trySubscribe(),f();return()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}const initStateUpdates=()=>EMPTY_ARRAY;function strictEqual(e,t){return e===t}let hasWarnedAboutDeprecatedPureOption=!1;function connect(e,t,r,{pure:o,areStatesEqual:n=strictEqual,areOwnPropsEqual:a=_shallowEqual.default,areStatePropsEqual:u=_shallowEqual.default,areMergedPropsEqual:c=_shallowEqual.default,forwardRef:s=!1,context:i=_Context.ReactReduxContext}={}){"production"!=="production"&&(void 0===o||hasWarnedAboutDeprecatedPureOption||(hasWarnedAboutDeprecatedPureOption=!0,(0,_warning.default)('The `pure` option has been removed. `connect` is now always a "pure/memoized" component')));const p=i,l=(0,_mapStateToProps.mapStateToPropsFactory)(e),d=(0,_mapDispatchToProps.mapDispatchToPropsFactory)(t),f=(0,_mergeProps.mergePropsFactory)(r),_=Boolean(e);return e=>{if("production"!=="production"&&!(0,_reactIs.isValidElementType)(e))throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(e)}`);const t=e.displayName||e.name||"Component",r=`Connect(${t})`,o={shouldHandleStateChanges:_,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:l,initMapDispatchToProps:d,initMergeProps:f,areStatesEqual:n,areStatePropsEqual:u,areOwnPropsEqual:a,areMergedPropsEqual:c};function i(t){const[n,a,u]=(0,_react.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,r=(0,_objectWithoutPropertiesLoose2.default)(t,_excluded);return[t.context,e,r]}),[t]),c=(0,_react.useMemo)((()=>n&&n.Consumer&&(0,_reactIs.isContextConsumer)(_react.default.createElement(n.Consumer,null))?n:p),[n,p]),s=(0,_react.useContext)(c),i=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(s)&&Boolean(s.store);if("production"!=="production"&&!i&&!l)throw new Error(`Could not find "store" in the context of "${r}". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ${r} in connect options.`);const d=i?t.store:s.store,f=l?s.getServerState:d.getState,m=(0,_react.useMemo)((()=>(0,_selectorFactory.default)(d.dispatch,o)),[d]),[h,y]=(0,_react.useMemo)((()=>{if(!_)return NO_SUBSCRIPTION_ARRAY;const e=(0,_Subscription.createSubscription)(d,i?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,i,s]),E=(0,_react.useMemo)((()=>i?s:(0,_extends2.default)({},s,{subscription:h})),[i,s,h]),S=(0,_react.useRef)(),R=(0,_react.useRef)(u),q=(0,_react.useRef)(),P=(0,_react.useRef)(!1),b=((0,_react.useRef)(!1),(0,_react.useRef)(!1)),g=(0,_react.useRef)();(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((()=>(b.current=!0,()=>{b.current=!1})),[]);const x=(0,_react.useMemo)((()=>()=>q.current&&u===R.current?q.current:m(d.getState(),u)),[d,u]),w=(0,_react.useMemo)((()=>e=>h?subscribeUpdates(_,d,h,m,R,S,P,b,q,y,e):()=>{}),[h]);let C;useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[R,S,P,u,q,y]);try{C=useSyncExternalStore(w,x,f?()=>m(f(),u):x)}catch(e){throw g.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${g.current.stack}\n\n`),e}(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((()=>{g.current=void 0,q.current=void 0,S.current=C}));const v=(0,_react.useMemo)((()=>_react.default.createElement(e,(0,_extends2.default)({},C,{ref:a}))),[a,e,C]);return(0,_react.useMemo)((()=>_?_react.default.createElement(c.Provider,{value:E},v):v),[c,v,E])}const m=_react.default.memo(i);if(m.WrappedComponent=e,m.displayName=i.displayName=r,s){const t=_react.default.forwardRef((function(e,t){return _react.default.createElement(m,(0,_extends2.default)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,(0,_hoistNonReactStatics.default)(t,e)}return(0,_hoistNonReactStatics.default)(m,e)}}var _default=connect;exports.default=_default; + +},{"../connect/mapDispatchToProps":117,"../connect/mapStateToProps":118,"../connect/mergeProps":119,"../connect/selectorFactory":120,"../utils/Subscription":130,"../utils/shallowEqual":135,"../utils/useIsomorphicLayoutEffect":136,"../utils/useSyncExternalStore":137,"../utils/warning":139,"./Context":113,"@babel/runtime/helpers/extends":2,"@babel/runtime/helpers/interopRequireDefault":3,"@babel/runtime/helpers/objectWithoutPropertiesLoose":5,"hoist-non-react-statics":86,"react":145,"react-is":142}],126:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.createSelectorHook=createSelectorHook,exports.useSelector=exports.initializeUseSelector=void 0;var _react=require("react"),_useReduxContext=require("./useReduxContext"),_Context=require("../components/Context"),_useSyncExternalStore=require("../utils/useSyncExternalStore");let useSyncExternalStoreWithSelector=_useSyncExternalStore.notInitialized;const initializeUseSelector=e=>{useSyncExternalStoreWithSelector=e};exports.initializeUseSelector=initializeUseSelector;const refEquality=(e,t)=>e===t;function createSelectorHook(e=_Context.ReactReduxContext){const t=e===_Context.ReactReduxContext?_useReduxContext.useReduxContext:()=>(0,_react.useContext)(e);return function(e,o=refEquality){if("production"!=="production"){if(!e)throw new Error("You must pass a selector to useSelector");if("function"!=typeof e)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof o)throw new Error("You must pass a function as an equality function to useSelector")}const{store:r,subscription:n,getServerState:s}=t(),u=useSyncExternalStoreWithSelector(n.addNestedSub,r.getState,s||r.getState,e,o);return(0,_react.useDebugValue)(u),u}}const useSelector=createSelectorHook();exports.useSelector=useSelector; + +},{"../components/Context":113,"../utils/useSyncExternalStore":137,"./useReduxContext":125,"react":145}],127:[function(require,module,exports){ +"use strict";exports.__esModule=!0,exports.createStoreHook=createStoreHook,exports.useStore=void 0;var _react=require("react"),_Context=require("../components/Context"),_useReduxContext=require("./useReduxContext");function createStoreHook(e=_Context.ReactReduxContext){const t=e===_Context.ReactReduxContext?_useReduxContext.useReduxContext:()=>(0,_react.useContext)(e);return function(){const{store:e}=t();return e}}const useStore=createStoreHook();exports.useStore=useStore; + +},{"../components/Context":113,"./useReduxContext":125,"react":145}],23:[function(require,module,exports){ +"use strict";var React=require("react"),misc=require("ariakit-utils/misc"),jsxRuntime=require("react/jsx-runtime");function isRenderProp(e){return"function"==typeof e}function createComponent(e){const t=(t,r)=>e({ref:r,...t});return React.forwardRef(t)}function createElement(e,t){const{as:r,wrapElement:n,...o}=t;let i;if(r&&"string"!=typeof r)i=jsxRuntime.jsx(r,{...o});else if(isRenderProp(t.children)){const{children:e,...r}=o;i=t.children(r)}else i=r?jsxRuntime.jsx(r,{...o}):jsxRuntime.jsx(e,{...o});return n?n(i):i}function createHook(e){return function(t){void 0===t&&(t={});const r=e(t),n={};for(const e in r)misc.hasOwnProperty(r,e)&&void 0!==r[e]&&(n[e]=r[e]);return n}}exports.createComponent=createComponent,exports.createElement=createElement,exports.createHook=createHook; + +},{"ariakit-utils/misc":28,"react":145,"react/jsx-runtime":146}],73:[function(require,module,exports){ +"use strict";var react=require("react"),__utils=require("../__utils-90f519da.js"),jsxRuntime=require("react/jsx-runtime");function HeadingLevel(e){let{level:t,children:i}=e;const r=react.useContext(__utils.HeadingContext),n=Math.max(Math.min(t||r+1,6),1);return jsxRuntime.jsx(__utils.HeadingContext.Provider,{value:n,children:i})}exports.HeadingLevel=HeadingLevel; + +},{"../__utils-90f519da.js":35,"react":145,"react/jsx-runtime":146}],175:[function(require,module,exports){ +/** + * @license React + * use-sync-external-store-shim/with-selector.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";"production"!=="production"&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=require("react"),r=require("use-sync-external-store/shim");var n="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},t=r.useSyncExternalStore,u=e.useRef,_=e.useEffect,o=e.useMemo,i=e.useDebugValue;exports.useSyncExternalStoreWithSelector=function(e,r,O,a,l){var c,f=u(null);null===f.current?(c={hasValue:!1,value:null},f.current=c):c=f.current;var s=o((function(){var e,t,u=!1,_=function(r){if(!u){u=!0,e=r;var _=a(r);if(void 0!==l&&c.hasValue){var o=c.value;if(l(o,_))return t=o,o}return t=_,_}var i=t;if(n(e,r))return i;var O=a(r);return void 0!==l&&l(i,O)?i:(e=r,t=O,O)},o=void 0===O?null:O;return[function(){return _(r())},null===o?void 0:function(){return _(o())}]}),[r,O,a,l]),E=s[0],L=s[1],v=t(e,E,L);return _((function(){c.hasValue=!0,c.value=v}),[v]),i(v),v},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(); + +},{"react":145,"use-sync-external-store/shim":177}],176:[function(require,module,exports){ +/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var h=require("react"),n=require("use-sync-external-store/shim");function p(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r}var q="function"==typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;exports.useSyncExternalStoreWithSelector=function(e,n,i,a,l){var c=t(null);if(null===c.current){var o={hasValue:!1,value:null};c.current=o}else o=c.current;c=v((function(){function e(e){if(!t){if(t=!0,r=e,e=a(e),void 0!==l&&o.hasValue){var n=o.value;if(l(n,e))return u=n}return u=e}if(n=u,q(r,e))return n;var i=a(e);return void 0!==l&&l(n,i)?n:(r=e,u=i)}var r,u,t=!1,c=void 0===i?null:i;return[function(){return e(n())},null===c?void 0:function(){return e(c())}]}),[n,i,a,l]);var s=r(e,c[0],c[1]);return u((function(){o.hasValue=!0,o.value=s}),[s]),w(s),s}; + +},{"react":145,"use-sync-external-store/shim":177}],183:[function(require,module,exports){ +"use strict";var index_js=require("use-sync-external-store/shim/index.js");Object.defineProperty(exports,"useSyncExternalStore",{enumerable:!0,get:function(){return index_js.useSyncExternalStore}}); + +},{"use-sync-external-store/shim/index.js":177}],164:[function(require,module,exports){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _objectSpread=require("@babel/runtime/helpers/objectSpread2");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _objectSpread__default=_interopDefaultLegacy(_objectSpread);function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function miniKindOf(e){if(void 0===e)return"undefined";if(null===e)return"null";var r=typeof e;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(e))return"array";if(isDate(e))return"date";if(isError(e))return"error";var t=ctorName(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(e){return"function"==typeof e.constructor?e.constructor.name:null}function isError(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}function isDate(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}function kindOf(e){var r=typeof e;return"production"!=="production"&&(r=miniKindOf(e)),r}function createStore(e,r,t){var o;if("function"==typeof r&&"function"==typeof t||"function"==typeof t&&"function"==typeof arguments[3])throw new Error("production"==="production"?formatProdErrorMessage(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof r&&void 0===t&&(t=r,r=void 0),void 0!==t){if("function"!=typeof t)throw new Error("production"==="production"?formatProdErrorMessage(1):"Expected the enhancer to be a function. Instead, received: '"+kindOf(t)+"'");return t(createStore)(e,r)}if("function"!=typeof e)throw new Error("production"==="production"?formatProdErrorMessage(2):"Expected the root reducer to be a function. Instead, received: '"+kindOf(e)+"'");var n=e,i=r,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function d(){if(c)throw new Error("production"==="production"?formatProdErrorMessage(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(e){if("function"!=typeof e)throw new Error("production"==="production"?formatProdErrorMessage(4):"Expected the listener to be a function. Instead, received: '"+kindOf(e)+"'");if(c)throw new Error("production"==="production"?formatProdErrorMessage(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var r=!0;return u(),s.push(e),function(){if(r){if(c)throw new Error("production"==="production"?formatProdErrorMessage(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");r=!1,u();var t=s.indexOf(e);s.splice(t,1),a=null}}}function p(e){if(!isPlainObject(e))throw new Error("production"==="production"?formatProdErrorMessage(7):"Actions must be plain objects. Instead, the actual type was: '"+kindOf(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error("production"==="production"?formatProdErrorMessage(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"==="production"?formatProdErrorMessage(9):"Reducers may not dispatch actions.");try{c=!0,i=n(i,e)}finally{c=!1}for(var r=a=s,t=0;t0?"Unexpected "+(a.length>1?"keys":"key")+' "'+a.join('", "')+'" found in '+i+'. Expected to find one of the known reducer keys instead: "'+n.join('", "')+'". Unexpected keys will be ignored.':void 0}function assertReducerShape(e){Object.keys(e).forEach((function(r){var t=e[r];if(void 0===t(void 0,{type:ActionTypes.INIT}))throw new Error("production"==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+r+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===t(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()}))throw new Error("production"==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+r+"\" returned undefined when probed with a random type. Don't try to handle '"+ActionTypes.INIT+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}function combineReducers(e){for(var r=Object.keys(e),t={},o=0;o=t[TIMESTAMP]?e:t:e:t:e}function defineGetState(e,t){void 0===t&&(t=e),Object.defineProperty(e,GET_STATE,{value:()=>t,writable:!0})}function defineSubscribe(e,t){SUBSCRIBE in e||Object.defineProperty(e,SUBSCRIBE,{value:t})}function defineTimestamp(e){TIMESTAMP in e||Object.defineProperty(e,TIMESTAMP,{value:Date.now(),writable:!0})}function patchState(e){Object.defineProperty(e,TIMESTAMP,{value:Date.now(),writable:!0})}function defineInitialContext(e){const t=React.createContext(void 0);return Object.defineProperty(e,INITIAL_CONTEXT,{value:t}),t}function hasInitialContext(e){return e&&INITIAL_CONTEXT in e}function getInitialContext(e){if(!hasInitialContext(e))return;return e[INITIAL_CONTEXT]}function createStoreContext(){const e=React.createContext(void 0);return defineInitialContext(e),e}function createMemoComponent(e,t){void 0===t&&(t=misc.shallowEqual);const n=system.createComponent(e);return React.memo(n,((e,n)=>{const{state:r,...o}=e,{state:i,...s}=n;return i&&hasSubscribe(i)?t(o,s):t(e,n)}))}function useStoreProvider(e,t){let{state:n,...r}=e;const o=hooks.useInitialValue(n),i=n&&hasSubscribe(n)?o:n;defineGetState(i,n);const s=getInitialContext(t);return hooks.useWrapElement(r,(e=>(i&&s&&(e=jsxRuntime.jsx(s.Provider,{value:i,children:e})),n&&(e=jsxRuntime.jsx(t.Provider,{value:n,children:e})),e)),[i,s,n,t])}function useStorePublisher(e){const t=hooks.useLazyValue((()=>new Set));hooks.useSafeLayoutEffect((()=>{patchState(e);for(const n of t)n(e)}),[e]);const n=React.useCallback((e=>(t.add(e),()=>t.delete(e))),[]);return defineSubscribe(e,n),defineGetState(e),defineTimestamp(e),e}function useStore(e,t){const n=React.useContext(getContext(e,t)),r=hasInitialContext(e)?n:e,[o,i]=React.useState((()=>getState(r))),s=hasSubscribe(r)&&hasSubscribe(o)?getLatest(o,r):r,a=getSubscribe(r),u=React.useRef(null),c=array.toArray(t),S=!t;return hooks.useSafeLayoutEffect((()=>{if(a&&i){if(S)return a(i);if(c.length)return a((e=>{const t=u.current;u.current=e;c.some((n=>{if("function"==typeof n){const r=n(e);return"boolean"==typeof r?r||t&&n(t):t?r!==n(t):r}const r=n;return t?.[r]!==e[r]}))&&i(e)}))}}),[a,i,S,...c]),s}const EmptyContext=React.createContext(void 0);function getContext(e,t){return hasInitialContext(e)?t?getInitialContext(e):e:EmptyContext}exports.createMemoComponent=createMemoComponent,exports.createStoreContext=createStoreContext,exports.useStore=useStore,exports.useStoreProvider=useStoreProvider,exports.useStorePublisher=useStorePublisher; + +},{"./hooks.js":20,"./system.js":23,"ariakit-utils/array":24,"ariakit-utils/misc":28,"react":145,"react/jsx-runtime":146}],70:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),focus=require("ariakit-utils/focus"),misc=require("ariakit-utils/misc"),platform=require("ariakit-utils/platform");const isSafariBrowser=platform.isSafari(),alwaysFocusVisibleInputTypes=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function isAlwaysFocusVisible(e){const{tagName:t,readOnly:s,type:r}=e;return"TEXTAREA"===t&&!s||("SELECT"===t&&!s||("INPUT"!==t||s?!!e.isContentEditable:alwaysFocusVisibleInputTypes.includes(r)))}function isAlwaysFocusVisibleDelayed(e){return"combobox"===e.getAttribute("role")}function getLabels(e){return"labels"in e?e.labels:null}function isNativeCheckboxOrRadio(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function isNativeTabbable(e){return!e||("button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e)}function supportsDisabledAttribute(e){return!e||("button"===e||"input"===e||"select"===e||"textarea"===e)}function getTabIndex(e,t,s,r,o){return e?t?s&&!r?-1:void 0:s?o:o||0:o}function useDisableEvent(e,t){return hooks.useEvent((s=>{e?.(s),s.defaultPrevented||t&&(s.stopPropagation(),s.preventDefault())}))}let isKeyboardModality=!0;function onGlobalMouseDown(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(isKeyboardModality=!1))}function onGlobalKeyDown(e){e.metaKey||e.ctrlKey||(isKeyboardModality=!0)}const useFocusable=system.createHook((e=>{let{focusable:t=!0,accessibleWhenDisabled:s,autoFocus:r,onFocusVisible:o,...n}=e;const u=react.useRef(null);react.useEffect((()=>{t&&(events.addGlobalEventListener("mousedown",onGlobalMouseDown,!0),events.addGlobalEventListener("keydown",onGlobalKeyDown,!0))}),[t]),isSafariBrowser&&react.useEffect((()=>{if(!t)return;const e=u.current;if(!e)return;if(!isNativeCheckboxOrRadio(e))return;const s=getLabels(e);if(!s)return;const r=()=>misc.queueMicrotask((()=>e.focus()));return s.forEach((e=>e.addEventListener("mouseup",r))),()=>{s.forEach((e=>e.removeEventListener("mouseup",r)))}}),[t]);const a=t&&n.disabled,i=!!a&&!s,[c,l]=react.useState(!1);react.useEffect((()=>{t&&i&&c&&l(!1)}),[t,i,c]),react.useEffect((()=>{if(!t)return;if(!c)return;const e=u.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const s=new IntersectionObserver((()=>{focus.isFocusable(e)||l(!1)}));return s.observe(e),()=>s.disconnect()}),[t,c]);const f=useDisableEvent(n.onKeyPressCapture,a),d=useDisableEvent(n.onMouseDownCapture,a),b=useDisableEvent(n.onClickCapture,a),v=n.onMouseDown,y=hooks.useEvent((e=>{if(v?.(e),e.defaultPrevented)return;if(!t)return;const s=e.currentTarget;if(!isSafariBrowser)return;if(events.isPortalEvent(e))return;if(!dom.isButton(s)&&!isNativeCheckboxOrRadio(s))return;let r=!1;const o=()=>{r=!0};s.addEventListener("focusin",o,{capture:!0,once:!0}),events.queueBeforeEvent(s,"mouseup",(()=>{s.removeEventListener("focusin",o,!0),r||focus.focusIfNeeded(s)}))})),p=(e,s)=>{if(s&&(e.currentTarget=s),o?.(e),e.defaultPrevented)return;if(!t)return;const r=e.currentTarget;r&&focus.hasFocus(r)&&l(!0)},m=n.onKeyDownCapture,E=hooks.useEvent((e=>{if(m?.(e),e.defaultPrevented)return;if(!t)return;if(c)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!events.isSelfTarget(e))return;const s=e.currentTarget;misc.queueMicrotask((()=>p(e,s)))})),k=n.onFocusCapture,w=hooks.useEvent((e=>{if(k?.(e),e.defaultPrevented)return;if(!t)return;if(!events.isSelfTarget(e))return void l(!1);const s=e.currentTarget,r=()=>p(e,s);isKeyboardModality||isAlwaysFocusVisible(e.target)?misc.queueMicrotask(r):isAlwaysFocusVisibleDelayed(e.target)?events.queueBeforeEvent(e.target,"focusout",r):l(!1)})),F=n.onBlur,h=hooks.useEvent((e=>{F?.(e),t&&events.isFocusEventOutside(e)&&l(!1)}));hooks.useSafeLayoutEffect((()=>{t&&r&&u.current?.focus()}),[t,r]);const D=hooks.useTagName(u,n.as),g=t&&isNativeTabbable(D),C=t&&supportsDisabledAttribute(D),T=i?{pointerEvents:"none",...n.style}:n.style;return n={"data-focus-visible":t&&c?"":void 0,"aria-disabled":!!a||void 0,...n,ref:hooks.useForkRef(u,n.ref),style:T,tabIndex:getTabIndex(t,i,g,C,n.tabIndex),disabled:!(!C||!i)||void 0,contentEditable:a?void 0:n.contentEditable,onKeyPressCapture:f,onClickCapture:b,onMouseDownCapture:d,onMouseDown:y,onKeyDownCapture:E,onFocusCapture:w,onBlur:h},n})),Focusable=system.createComponent((e=>(e=useFocusable(e),system.createElement("div",e))));"production"!=="production"&&(Focusable.displayName="Focusable"),exports.Focusable=Focusable,exports.useFocusable=useFocusable; + +},{"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/focus":27,"ariakit-utils/misc":28,"ariakit-utils/platform":29,"react":145}],71:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),__utils=require("../__utils-44d337e0.js");const useGroupLabel=system.createHook((e=>{const r=react.useContext(__utils.GroupLabelContext),t=hooks.useId(e.id);return hooks.useSafeLayoutEffect((()=>(r?.(t),()=>r?.(void 0))),[r,t]),e={id:t,"aria-hidden":!0,...e}})),GroupLabel=system.createComponent((e=>{const r=useGroupLabel(e);return system.createElement("div",r)}));"production"!=="production"&&(GroupLabel.displayName="GroupLabel"),exports.GroupLabel=GroupLabel,exports.useGroupLabel=useGroupLabel; + +},{"../__utils-44d337e0.js":34,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react":145}],72:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),__utils=require("../__utils-44d337e0.js"),jsxRuntime=require("react/jsx-runtime");const useGroup=system.createHook((e=>{const[r,t]=react.useState();return e=hooks.useWrapElement(e,(e=>jsxRuntime.jsx(__utils.GroupLabelContext.Provider,{value:t,children:e})),[]),e={role:"group","aria-labelledby":r,...e}})),Group=system.createComponent((e=>{const r=useGroup(e);return system.createElement("div",r)}));"production"!=="production"&&(Group.displayName="Group"),exports.Group=Group,exports.useGroup=useGroup; + +},{"../__utils-44d337e0.js":34,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react":145,"react/jsx-runtime":146}],74:[function(require,module,exports){ +"use strict";var hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system");const usePopoverAnchor=system.createHook((e=>{let{state:o,...r}=e;return r={...r,ref:hooks.useForkRef(o.anchorRef,r.ref)},r})),PopoverAnchor=system.createComponent((e=>{const o=usePopoverAnchor(e);return system.createElement("div",o)}));"production"!=="production"&&(PopoverAnchor.displayName="PopoverAnchor"),exports.PopoverAnchor=PopoverAnchor,exports.usePopoverAnchor=usePopoverAnchor; + +},{"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23}],79:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system");const useSeparator=system.createHook((e=>{let{orientation:r="horizontal",...t}=e;return t={role:"separator","aria-orientation":r,...t},t})),Separator=system.createComponent((e=>{const r=useSeparator(e);return system.createElement("hr",r)}));"production"!=="production"&&(Separator.displayName="Separator"),exports.Separator=Separator,exports.useSeparator=useSeparator; + +},{"ariakit-react-utils/system":23}],80:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system");const useVisuallyHidden=system.createHook((e=>e={...e,style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px",...e.style}})),VisuallyHidden=system.createComponent((e=>{const s=useVisuallyHidden(e);return system.createElement("span",s)}));"production"!=="production"&&(VisuallyHidden.displayName="VisuallyHidden"),exports.VisuallyHidden=VisuallyHidden,exports.useVisuallyHidden=useVisuallyHidden; + +},{"ariakit-react-utils/system":23}],178:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("../cjs/use-sync-external-store-shim/with-selector.production.min.js"):module.exports=require("../cjs/use-sync-external-store-shim/with-selector.development.js"); + +},{"../cjs/use-sync-external-store-shim/with-selector.development.js":175,"../cjs/use-sync-external-store-shim/with-selector.production.min.js":176}],181:[function(require,module,exports){ +"use strict";var React=require("react"),useSyncExternalStore=require("./use-sync-external-store");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespaceDefault(React);const{useEffect:useEffect,useLayoutEffect:useLayoutEffect,useRef:useRef,useInsertionEffect:useBuiltinInsertionEffect}=React__namespace,canUseDOM=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),useIsomorphicLayoutEffect=canUseDOM?useLayoutEffect:useEffect,useInsertionEffect=useBuiltinInsertionEffect||useIsomorphicLayoutEffect,useEvent=e=>{const t=useRef([e,(...e)=>t[0](...e)]).current;return useInsertionEffect((()=>{t[0]=e})),t[1]};Object.defineProperty(exports,"Fragment",{enumerable:!0,get:function(){return React.Fragment}}),Object.defineProperty(exports,"cloneElement",{enumerable:!0,get:function(){return React.cloneElement}}),Object.defineProperty(exports,"createContext",{enumerable:!0,get:function(){return React.createContext}}),Object.defineProperty(exports,"createElement",{enumerable:!0,get:function(){return React.createElement}}),Object.defineProperty(exports,"forwardRef",{enumerable:!0,get:function(){return React.forwardRef}}),Object.defineProperty(exports,"isValidElement",{enumerable:!0,get:function(){return React.isValidElement}}),Object.defineProperty(exports,"useContext",{enumerable:!0,get:function(){return React.useContext}}),Object.defineProperty(exports,"useState",{enumerable:!0,get:function(){return React.useState}}),Object.defineProperty(exports,"useSyncExternalStore",{enumerable:!0,get:function(){return useSyncExternalStore.useSyncExternalStore}}),exports.useEvent=useEvent,exports.useInsertionEffect=useInsertionEffect,exports.useIsomorphicLayoutEffect=useIsomorphicLayoutEffect; + +},{"./use-sync-external-store":183,"react":145}],18:[function(require,module,exports){ +(function (process,global){(function (){ +var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__generator=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+"ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.")}}}var MiddlewareArray=function(e){function t(){for(var r=[],n=0;n0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return null==e?a:e.call(this,i,a)}}function isImmutableDefault(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function trackForMutations(e,t,r){var n=trackProperties(e,t,r);return{detectMutations:function(){return detectMutations(e,t,n,r)}}}function trackProperties(e,t,r,n){void 0===t&&(t=[]),void 0===n&&(n="");var i={value:r};if(!e(r))for(var a in i.children={},r){var o=n?n+"."+a:a;t.length&&-1!==t.indexOf(o)||(i.children[a]=trackProperties(e,t,r[a],o))}return i}function detectMutations(e,t,r,n,i,a){void 0===t&&(t=[]),void 0===i&&(i=!1),void 0===a&&(a="");var o=r?r.value:void 0,u=o===n;if(i&&!u&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};var c={};for(var l in r.children)c[l]=!0;for(var l in n)c[l]=!0;var s=t.length>0,f=function(i){var o=a?a+"."+i:i;if(s&&t.some((function(e){return e instanceof RegExp?e.test(o):o===e})))return"continue";var c=detectMutations(e,t,r.children[i],n[i],u,o);if(c.wasMutated)return{value:c}};for(var l in c){var d=f(l);if("object"==typeof d)return d.value}return{wasMutated:!1}}function createImmutableStateInvariantMiddleware(e){void 0===e&&(e={});var t=e.isImmutable,r=void 0===t?isImmutableDefault:t,n=e.ignoredPaths,i=e.warnAfter,a=void 0===i?32:i,o=e.ignore;n=n||o;var u=trackForMutations.bind(null,r,n);return function(e){var t,r=e.getState,n=r(),i=u(n);return function(e){return function(o){var c=getTimeMeasureUtils(a,"ImmutableStateInvariantMiddleware");c.measureTime((function(){n=r(),t=i.detectMutations(),i=u(n),invariant(!t.wasMutated,"A state mutation was detected between dispatches, in the path '"+(t.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}));var l=e(o);return c.measureTime((function(){n=r(),t=i.detectMutations(),i=u(n),t.wasMutated&&invariant(!t.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(t.path||"")+". Take a look at the reducer(s) handling the action "+stringify(o)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")})),c.warnIfExceeded(),l}}}}function isPlain(e){var t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||isPlainObject(e)}function findNonSerializableValue(e,t,r,n,i,a){var o;if(void 0===t&&(t=""),void 0===r&&(r=isPlain),void 0===i&&(i=[]),!r(e))return{keyPath:t||"",value:e};if("object"!=typeof e||null===e)return!1;if(null==a?void 0:a.has(e))return!1;for(var u=null!=n?n(e):Object.entries(e),c=i.length>0,l=function(e,u){var l=t?t+"."+e:e;if(c&&i.some((function(e){return e instanceof RegExp?e.test(l):l===e})))return"continue";return r(u)?"object"==typeof u&&(o=findNonSerializableValue(u,l,r,n,i,a))?{value:o}:void 0:{value:{keyPath:l,value:u}}},s=0,f=u;s-1}function getType(e){return""+e}var import_immer3=__toModule(require("immer"));function executeReducerBuilderCallback(e){var t,r={},n=[],i={addCase:function(e,a){if(n.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(t)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");var o="string"==typeof e?e:e.type;if(o in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[o]=a,i},addMatcher:function(e,r){if(t)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:e,reducer:r}),i},addDefaultCase:function(e){if(t)throw new Error("`builder.addDefaultCase` can only be called once");return t=e,i}};return e(i),[r,n,t]}function isStateFunction(e){return"function"==typeof e}var hasWarnedAboutObjectNotation=!1;function createReducer(e,t,r,n){void 0===r&&(r=[]),"object"==typeof t&&(hasWarnedAboutObjectNotation||(hasWarnedAboutObjectNotation=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer")));var i,a="function"==typeof t?executeReducerBuilderCallback(t):[t,r,n],o=a[0],u=a[1],c=a[2];if(isStateFunction(e))i=function(){return freezeDraftable(e())};else{var l=freezeDraftable(e);i=function(){return l}}function s(e,t){void 0===e&&(e=i());var r=__spreadArray([o[t.type]],u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===r.filter((function(e){return!!e})).length&&(r=[c]),r.reduce((function(e,r){if(r){var n;if((0,import_immer3.isDraft)(e))return void 0===(n=r(e,t))?e:n;if((0,import_immer3.isDraftable)(e))return(0,import_immer3.default)(e,(function(e){return r(e,t)}));if(void 0===(n=r(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e}),e)}return s.getInitialState=i,s}var hasWarnedAboutObjectNotation2=!1;function getType2(e,t){return e+"/"+t}function createSlice(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");"undefined"!=typeof process&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var r,n="function"==typeof e.initialState?e.initialState:freezeDraftable(e.initialState),i=e.reducers||{},a=Object.keys(i),o={},u={},c={};function l(){"object"==typeof e.extraReducers&&(hasWarnedAboutObjectNotation2||(hasWarnedAboutObjectNotation2=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice")));var t="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],r=t[0],i=void 0===r?{}:r,a=t[1],o=void 0===a?[]:a,c=t[2],l=void 0===c?void 0:c,s=__spreadValues(__spreadValues({},i),u);return createReducer(n,(function(e){for(var t in s)e.addCase(t,s[t]);for(var r=0,n=o;r0){var a=t.filter((function(t){return function(t,r,n){var i=n.entities[r.id],a=Object.assign({},i,r.changes),o=selectIdValue(a,e),u=o!==r.id;return u&&(t[r.id]=o,delete n.entities[r.id]),n.entities[o]=a,u}(n,t,r)})).length>0;a&&(r.ids=Object.keys(r.entities))}}function o(t,n){var i=splitAddedUpdatedEntities(t,e,n),o=i[0];a(i[1],n),r(o,n)}return{removeAll:createSingleArgumentStateOperator((function(e){Object.assign(e,{ids:[],entities:{}})})),addOne:createStateOperator(t),addMany:createStateOperator(r),setOne:createStateOperator(n),setMany:createStateOperator((function(e,t){for(var r=0,i=e=ensureEntitiesArray(e);r-1;return r&&n}function isAsyncThunkArray(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function isPending(){for(var e=[],t=0;t0)for(var d=e.getState(),p=Array.from(r.values()),h=0,v=p;h0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]",value:e};if("object"!=typeof e||null===e)return!1;if(null==o?void 0:o.has(e))return!1;for(var a=null!=r?r(e):Object.entries(e),c=i.length>0,f=function(e,a){var f=n?n+"."+e:e;return c&&i.some((function(e){return e instanceof RegExp?e.test(f):f===e}))?"continue":t(a)?"object"==typeof a&&(u=N(a,f,t,r,i,o))?{value:u}:void 0:{value:{keyPath:f,value:a}}},l=0,s=a;l-1}function K(e){return""+e}var J=m(require("immer"));function Q(e){var n,t={},r=[],i={addCase:function(e,n){var r="string"==typeof e?e:e.type;if(r in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[r]=n,i},addMatcher:function(e,n){return r.push({matcher:e,reducer:n}),i},addDefaultCase:function(e){return n=e,i}};return e(i),[t,r,n]}function Y(e,n,t,i){void 0===t&&(t=[]);var o,u="function"==typeof n?Q(n):[n,t,i],a=u[0],c=u[1],f=u[2];if("function"==typeof e)o=function(){return D(e())};else{var l=D(e);o=function(){return l}}function s(e,n){void 0===e&&(e=o());var t=r([a[n.type]],c.filter((function(e){return(0,e.matcher)(n)})).map((function(e){return e.reducer})));return 0===t.filter((function(e){return!!e})).length&&(t=[f]),t.reduce((function(e,t){if(t){var r;if((0,J.isDraft)(e))return void 0===(r=t(e,n))?e:r;if((0,J.isDraftable)(e))return(0,J.default)(e,(function(e){return t(e,n)}));if(void 0===(r=t(e,n))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return s.getInitialState=o,s}function Z(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t,r="function"==typeof e.initialState?e.initialState:D(e.initialState),i=e.reducers||{},o=Object.keys(i),u={},a={},c={};function f(){var n="function"==typeof e.extraReducers?Q(e.extraReducers):[e.extraReducers],t=n[0],i=n[1],o=void 0===i?[]:i,u=n[2],c=void 0===u?void 0:u,f=y(y({},void 0===t?{}:t),a);return Y(r,(function(e){for(var n in f)e.addCase(n,f[n]);for(var t=0,r=o;t0){var o=n.filter((function(n){return function(n,t,r){var i=Object.assign({},r.entities[t.id],t.changes),o=ne(i,e),u=o!==t.id;return u&&(n[t.id]=o,delete r.entities[t.id]),r.entities[o]=i,u}(r,n,t)})).length>0;o&&(t.ids=Object.keys(t.entities))}}function u(n,r){var i=re(n,e,r),u=i[0];o(i[1],r),t(u,r)}return{removeAll:(a=function(e){Object.assign(e,{ids:[],entities:{}})},c=ee((function(e,n){return a(n)})),function(e){return c(e,void 0)}),addOne:ee(n),addMany:ee(t),setOne:ee(r),setMany:ee((function(e,n){for(var t=0,i=e=te(e);t-1;return t&&r}function ge(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function be(){for(var e=[],n=0;n0)for(var d=e.getState(),p=Array.from(r.values()),v=0,y=p;v0&&void 0!==arguments[0]?arguments[0]:initialState,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _constants.REGISTER:return _objectSpread({},e,{registry:[].concat(_toConsumableArray(e.registry),[t.key])});case _constants.REHYDRATE:var r=e.registry.indexOf(t.key),n=_toConsumableArray(e.registry);return n.splice(r,1),_objectSpread({},e,{registry:n,bootstrapped:0===n.length});default:return e}};function persistStore(e,t,r){if("production"!=="production"){var n=t||{};["blacklist","whitelist","transforms","storage","keyPrefix","migrate"].forEach((function(e){n[e]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(e,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))}))}var o=r||!1,s=(0,_redux.createStore)(persistorReducer,initialState,t&&t.enhancer?t.enhancer:void 0),i=function(e){s.dispatch({type:_constants.REGISTER,key:e})},a=function(t,r,n){var i={type:_constants.REHYDRATE,payload:r,err:n,key:t};e.dispatch(i),s.dispatch(i),o&&c.getState().bootstrapped&&(o(),o=!1)},c=_objectSpread({},s,{purge:function(){var t=[];return e.dispatch({type:_constants.PURGE,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:_constants.FLUSH,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:_constants.PAUSE})},persist:function(){e.dispatch({type:_constants.PERSIST,register:i,rehydrate:a})}});return t&&t.manualPersist||c.persist(),c} + +},{"./constants":147,"redux":164}],65:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),reactDom=require("react-dom");function afterTimeout(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function afterPaint(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}function parseCSSTime(){for(var e=arguments.length,t=new Array(e),n=0;n{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}const useDisclosureContent=system.createHook((e=>{let{state:t,...n}=e;const o=hooks.useId(n.id),[r,i]=react.useState(null);hooks.useSafeLayoutEffect((()=>{if(t.animated){if(t.contentElement?.isConnected)return afterPaint((()=>{i(t.open?"enter":"leave")}));i(null)}}),[t.animated,t.contentElement,t.open]),hooks.useSafeLayoutEffect((()=>{if(!t.animated)return;if(!t.contentElement)return;if(!r)return;if("enter"===r&&!t.open)return;if("leave"===r&&t.open)return;if("number"==typeof t.animated){return afterTimeout(t.animated,(()=>reactDom.flushSync(t.stopAnimation)))}const{transitionDuration:e,animationDuration:n,transitionDelay:o,animationDelay:i}=getComputedStyle(t.contentElement),s=parseCSSTime(o,i)+parseCSSTime(e,n);return s?afterTimeout(s,(()=>reactDom.flushSync(t.stopAnimation))):void 0}),[t.animated,t.contentElement,r,t.open,t.stopAnimation]);const s=t.mounted||!1===n.hidden?n.style:{...n.style,display:"none"};return n={id:o,"data-enter":"enter"===r?"":void 0,"data-leave":"leave"===r?"":void 0,hidden:!t.mounted,...n,ref:hooks.useForkRef(o?t.setContentElement:null,n.ref),style:s},n})),DisclosureContent=system.createComponent((e=>{const t=useDisclosureContent(e);return system.createElement("div",t)}));"production"!=="production"&&(DisclosureContent.displayName="DisclosureContent"),exports.DisclosureContent=DisclosureContent,exports.useDisclosureContent=useDisclosureContent; + +},{"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react":145,"react-dom":109}],75:[function(require,module,exports){ +"use strict";var react=require("react"),dom=require("@floating-ui/dom"),hooks=require("ariakit-react-utils/hooks"),reactDom=require("react-dom"),dialog_dialogState=require("../dialog/dialog-state.js");const middlewares={arrow:dom.arrow,flip:dom.flip,offset:dom.offset,shift:dom.shift,size:dom.size};function createDOMRect(e,t,o,r){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===o&&(o=0),void 0===r&&(r=0),"function"==typeof DOMRect)return new DOMRect(e,t,o,r);const i={x:e,y:t,width:o,height:r,top:t,right:e+o,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function getDOMRect(e){if(!e)return createDOMRect();const{x:t,y:o,width:r,height:i}=e;return createDOMRect(t,o,r,i)}function getAnchorElement(e,t){return{contextElement:e.current||void 0,getBoundingClientRect:()=>{const o=e.current,r=t(o);return r||!o?getDOMRect(r):o.getBoundingClientRect()}}}function isValidPlacement(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function usePopoverState(e){let{placement:t="bottom",fixed:o=!1,gutter:r,flip:i=!0,shift:a=0,slide:n=!0,overlap:l=!1,sameWidth:s=!1,fitViewport:d=!1,arrowPadding:c=4,overflowPadding:p=8,renderCallback:u,...f}=void 0===e?{}:e;const m=dialog_dialogState.useDialogState(f),h=hooks.useEvent(f.getAnchorRect||(e=>e?.getBoundingClientRect()||null)),g=react.useRef(null),w=react.useRef(null),v=react.useRef(null),[x,y]=react.useState(t),[R,P]=hooks.useForceUpdate();hooks.useSafeLayoutEffect((()=>{if(!m.contentElement?.isConnected)return;const e=w.current;if(!e)return;const f=getAnchorElement(g,h),x=v.current,R=(x?.clientHeight||0)/2,P="number"==typeof r?r+R:r??R;e.style.setProperty("--popover-overflow-padding",`${p}px`);const b=()=>dom.autoUpdate(f,e,(async()=>{if(!m.mounted)return;const r=[middlewares.offset((e=>{let{placement:t}=e;return{crossAxis:!!t.split("-")[1]?void 0:a,mainAxis:P,alignmentAxis:a}}))];if(!1!==i){const e="string"==typeof i?i.split(" "):void 0;if(void 0!==e&&!e.every(isValidPlacement))throw new Error("`flip` expects a spaced-delimited list of placements");r.push(middlewares.flip({padding:p,fallbackPlacements:e}))}(n||l)&&r.push(middlewares.shift({mainAxis:n,crossAxis:l,padding:p})),r.push(middlewares.size({padding:p,apply(t){let{availableWidth:o,availableHeight:r,rects:i}=t;const a=Math.round(i.reference.width);o=Math.floor(o),r=Math.floor(r),e.style.setProperty("--popover-anchor-width",`${a}px`),e.style.setProperty("--popover-available-width",`${o}px`),e.style.setProperty("--popover-available-height",`${r}px`),s&&(e.style.width=`${a}px`),d&&(e.style.maxWidth=`${o}px`,e.style.maxHeight=`${r}px`)}})),x&&r.push(middlewares.arrow({element:x,padding:c}));const u=await dom.computePosition(f,e,{placement:t,strategy:o?"fixed":"absolute",middleware:r});reactDom.flushSync((()=>{y(u.placement)}));const h=Math.round(u.x),g=Math.round(u.y);if(Object.assign(e.style,{top:"0",left:"0",transform:`translate3d(${h}px, ${g}px, 0)`}),x&&u.middlewareData.arrow){const{x:e,y:t}=u.middlewareData.arrow,o=u.placement.split("-")[0];Object.assign(x.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[o]:"100%"})}}),{elementResize:"function"==typeof ResizeObserver});return u?u({mounted:m.mounted,placement:t,fixed:o,gutter:P,shift:a,overlap:l,flip:i,sameWidth:s,fitViewport:d,arrowPadding:c,overflowPadding:p,popover:e,anchor:f,arrow:x,setPlacement:y,defaultRenderCallback:b}):b()}),[R,m.contentElement,h,r,m.mounted,a,l,i,p,n,s,d,c,t,o,u]);return react.useMemo((()=>({...m,getAnchorRect:h,anchorRef:g,popoverRef:w,arrowRef:v,currentPlacement:x,placement:t,fixed:o,gutter:r,shift:a,flip:i,slide:n,overlap:l,sameWidth:s,fitViewport:d,arrowPadding:c,overflowPadding:p,render:P,renderCallback:u})),[m,h,x,t,o,r,a,i,n,l,s,d,c,p,P,u])}exports.usePopoverState=usePopoverState; + +},{"../dialog/dialog-state.js":63,"@floating-ui/dom":10,"ariakit-react-utils/hooks":20,"react":145,"react-dom":109}],108:[function(require,module,exports){ +"use strict";var i,m=require("react-dom");exports.createRoot=m.createRoot,exports.hydrateRoot=m.hydrateRoot; + +},{"react-dom":109}],134:[function(require,module,exports){ +"use strict";exports.__esModule=!0,Object.defineProperty(exports,"unstable_batchedUpdates",{enumerable:!0,get:function(){return _reactDom.unstable_batchedUpdates}});var _reactDom=require("react-dom"); + +},{"react-dom":109}],123:[function(require,module,exports){ +"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=!0;var _exportNames={Provider:!0,connect:!0,ReactReduxContext:!0,useDispatch:!0,createDispatchHook:!0,useSelector:!0,createSelectorHook:!0,useStore:!0,createStoreHook:!0,shallowEqual:!0};Object.defineProperty(exports,"Provider",{enumerable:!0,get:function(){return _Provider.default}}),Object.defineProperty(exports,"connect",{enumerable:!0,get:function(){return _connect.default}}),Object.defineProperty(exports,"ReactReduxContext",{enumerable:!0,get:function(){return _Context.ReactReduxContext}}),Object.defineProperty(exports,"useDispatch",{enumerable:!0,get:function(){return _useDispatch.useDispatch}}),Object.defineProperty(exports,"createDispatchHook",{enumerable:!0,get:function(){return _useDispatch.createDispatchHook}}),Object.defineProperty(exports,"useSelector",{enumerable:!0,get:function(){return _useSelector.useSelector}}),Object.defineProperty(exports,"createSelectorHook",{enumerable:!0,get:function(){return _useSelector.createSelectorHook}}),Object.defineProperty(exports,"useStore",{enumerable:!0,get:function(){return _useStore.useStore}}),Object.defineProperty(exports,"createStoreHook",{enumerable:!0,get:function(){return _useStore.createStoreHook}}),Object.defineProperty(exports,"shallowEqual",{enumerable:!0,get:function(){return _shallowEqual.default}});var _Provider=_interopRequireDefault(require("./components/Provider")),_connect=_interopRequireDefault(require("./components/connect")),_Context=require("./components/Context"),_useDispatch=require("./hooks/useDispatch"),_useSelector=require("./hooks/useSelector"),_useStore=require("./hooks/useStore"),_shallowEqual=_interopRequireDefault(require("./utils/shallowEqual")),_types=require("./types");Object.keys(_types).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_types[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _types[e]}}))})); + +},{"./components/Context":113,"./components/Provider":114,"./components/connect":115,"./hooks/useDispatch":124,"./hooks/useSelector":126,"./hooks/useStore":127,"./types":129,"./utils/shallowEqual":135,"@babel/runtime/helpers/interopRequireDefault":3}],30:[function(require,module,exports){ +"use strict";var react=require("react"),store=require("ariakit-react-utils/store"),dom=require("ariakit-utils/dom");const NULL_ITEM={id:null,ref:{current:null}};function getMaxRowLength(e){let t=0;for(const{length:o}of e)o>t&&(t=o);return t}function getEnabledItems(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function findFirstEnabledItem(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function normalizeRows(e,t,o){const n=getMaxRowLength(e);for(const i of e)for(let e=0;ee.id===t&&!e.disabled))}function getActiveId(e,t,o){return void 0!==o?o:void 0!==t?t:findFirstEnabledItem(e)?.id}function getItemsInRow(e,t){return e.filter((e=>e.rowId===t))}function getOppositeOrientation(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}function groupItemsByRows(e){const t=[];for(const o of e){const e=t.find((e=>e[0]?.rowId===o.rowId));e?e.push(o):t.push([o])}return t}function flipItems(e,t,o){void 0===o&&(o=!1);const n=e.findIndex((e=>e.id===t));return[...e.slice(n+1),...o?[NULL_ITEM]:[],...e.slice(0,n)]}function verticalizeItems(e){const t=groupItemsByRows(e),o=getMaxRowLength(t),n=[];for(let e=0;e(!o||e.ref.current!==o)&&e.ref.current===t))}const CompositeContext=store.createStoreContext(),CompositeRowContext=react.createContext(void 0),CompositeItemContext=react.createContext(void 0);exports.CompositeContext=CompositeContext,exports.CompositeItemContext=CompositeItemContext,exports.CompositeRowContext=CompositeRowContext,exports.findEnabledItemById=findEnabledItemById,exports.findFirstEnabledItem=findFirstEnabledItem,exports.flipItems=flipItems,exports.focusSilently=focusSilently,exports.getActiveId=getActiveId,exports.getContextId=getContextId,exports.getEnabledItems=getEnabledItems,exports.getItemsInRow=getItemsInRow,exports.getOppositeOrientation=getOppositeOrientation,exports.groupItemsByRows=groupItemsByRows,exports.isItem=isItem,exports.normalizeRows=normalizeRows,exports.selectTextField=selectTextField,exports.silentlyFocused=silentlyFocused,exports.verticalizeItems=verticalizeItems; + +},{"ariakit-react-utils/store":22,"ariakit-utils/dom":25,"react":145}],33:[function(require,module,exports){ +"use strict";var react=require("react"),store=require("ariakit-react-utils/store");const ComboboxContext=store.createStoreContext(),ComboboxItemValueContext=react.createContext(void 0);exports.ComboboxContext=ComboboxContext,exports.ComboboxItemValueContext=ComboboxItemValueContext; + +},{"ariakit-react-utils/store":22,"react":145}],37:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),__utils=require("../__utils-165d0dc9.js");function identity(e){return e}const useCollectionItem=system.createHook((e=>{let{state:t,shouldRegisterItem:o=!0,getItem:r=identity,...s}=e;t=store.useStore(t,["registerItem"]);const i=react.useContext(__utils.CollectionItemContext),l=t?.registerItem||i,u=react.useRef(null);return hooks.useSafeLayoutEffect((()=>{if(o)return l?.(r({ref:u}))}),[o,r,l]),s={...s,ref:hooks.useForkRef(u,s.ref)},s})),CollectionItem=system.createComponent((e=>{const t=useCollectionItem(e);return system.createElement("div",t)}));"production"!=="production"&&(CollectionItem.displayName="CollectionItem"),exports.CollectionItem=CollectionItem,exports.useCollectionItem=useCollectionItem; + +},{"../__utils-165d0dc9.js":32,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"react":145}],52:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),misc=require("ariakit-utils/misc"),platform=require("ariakit-utils/platform"),focusable_focusable=require("../focusable/focusable.js");function isNativeClick(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return dom.isButton(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName}const useCommand=system.createHook((e=>{let{clickOnEnter:t=!0,clickOnSpace:r=!0,...a}=e;const s=react.useRef(null),i=hooks.useTagName(s,a.as),[n,o]=react.useState((()=>!!i&&dom.isButton({tagName:i,type:a.type})));react.useEffect((()=>{s.current&&o(dom.isButton(s.current))}),[]);const[u,c]=react.useState(!1),m=react.useRef(!1),f="data-command"in a,l=a.onKeyDown,d=hooks.useEvent((e=>{l?.(e);const s=e.currentTarget;if(e.defaultPrevented)return;if(f)return;if(a.disabled)return;if(!events.isSelfTarget(e))return;if(dom.isTextField(s))return;if(s.isContentEditable)return;const i=t&&"Enter"===e.key,n=r&&" "===e.key,o="Enter"===e.key&&!t,u=" "===e.key&&!r;if(o||u)e.preventDefault();else if(i||n){const t=isNativeClick(e);if(i){if(!t){e.preventDefault();const{view:t,...r}=e,a=()=>events.fireClickEvent(s,r);platform.isFirefox()?events.queueBeforeEvent(s,"keyup",a):misc.queueMicrotask(a)}}else n&&(m.current=!0,t||(e.preventDefault(),c(!0)))}})),k=a.onKeyUp,v=hooks.useEvent((e=>{if(k?.(e),e.defaultPrevented)return;if(f)return;if(a.disabled)return;if(e.metaKey)return;const t=r&&" "===e.key;if(m.current&&t&&(m.current=!1,!isNativeClick(e))){c(!1);const t=e.currentTarget,{view:r,...a}=e;misc.queueMicrotask((()=>events.fireClickEvent(t,a)))}}));return a={"data-command":"","data-active":u?"":void 0,type:n?"button":void 0,...a,ref:hooks.useForkRef(s,a.ref),onKeyDown:d,onKeyUp:v},a=focusable_focusable.useFocusable(a),a})),Command=system.createComponent((e=>(e=useCommand(e),system.createElement("button",e))));"production"!=="production"&&(Command.displayName="Command"),exports.Command=Command,exports.useCommand=useCommand; + +},{"../focusable/focusable.js":70,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/misc":28,"ariakit-utils/platform":29,"react":145}],53:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),group_groupLabel=require("../group/group-label.js");const useCompositeGroupLabel=system.createHook((e=>{let{state:o,...s}=e;return s=group_groupLabel.useGroupLabel(s),s})),CompositeGroupLabel=system.createComponent((e=>{const o=useCompositeGroupLabel(e);return system.createElement("div",o)}));"production"!=="production"&&(CompositeGroupLabel.displayName="CompositeGroupLabel"),exports.CompositeGroupLabel=CompositeGroupLabel,exports.useCompositeGroupLabel=useCompositeGroupLabel; + +},{"../group/group-label.js":71,"ariakit-react-utils/system":23}],54:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),group_group=require("../group/group.js");const useCompositeGroup=system.createHook((o=>{let{state:e,...s}=o;return s=group_group.useGroup(s),s})),CompositeGroup=system.createComponent((o=>{const e=useCompositeGroup(o);return system.createElement("div",e)}));"production"!=="production"&&(CompositeGroup.displayName="CompositeGroup"),exports.CompositeGroup=CompositeGroup,exports.useCompositeGroup=useCompositeGroup; + +},{"../group/group.js":72,"ariakit-react-utils/system":23}],69:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),visuallyHidden_visuallyHidden=require("../visually-hidden/visually-hidden.js");const useFocusTrap=system.createHook((s=>(s={"data-focus-trap":"",tabIndex:0,"aria-hidden":!0,...s,style:{position:"fixed",top:0,left:0,...s.style}},s=visuallyHidden_visuallyHidden.useVisuallyHidden(s)))),FocusTrap=system.createComponent((s=>{const e=useFocusTrap(s);return system.createElement("span",e)}));"production"!=="production"&&(FocusTrap.displayName="FocusTrap"),exports.FocusTrap=FocusTrap,exports.useFocusTrap=useFocusTrap; + +},{"../visually-hidden/visually-hidden.js":80,"ariakit-react-utils/system":23}],182:[function(require,module,exports){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var reactDeps=require("./react-deps.js"),useSyncExternalStore=require("./use-sync-external-store");const relativePath=(e="",t=location.pathname)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",absolutePath=(e,t="")=>"~"===e[0]?e.slice(1):t+e,eventPopstate="popstate",eventPushState="pushState",eventReplaceState="replaceState",eventHashchange="hashchange",events=["popstate","pushState","replaceState","hashchange"],subscribeToLocationUpdates=e=>{for(const t of events)addEventListener(t,e);return()=>{for(const t of events)removeEventListener(t,e)}},useLocationProperty=e=>useSyncExternalStore.useSyncExternalStore(subscribeToLocationUpdates,e),currentSearch=()=>location.search,useSearch=()=>useLocationProperty(currentSearch),currentPathname=()=>location.pathname,usePathname=()=>useLocationProperty(currentPathname),navigate=(e,{replace:t=!1}={})=>history[t?"replaceState":"pushState"](null,"",e);var locationHook=(e={})=>[relativePath(e.base,usePathname()),reactDeps.useEvent(((t,a)=>navigate(absolutePath(t,e.base),a)))];if("undefined"!=typeof history)for(const e of["pushState","replaceState"]){const t=history[e];history[e]=function(){const a=t.apply(this,arguments),s=new Event(e);return s.arguments=arguments,dispatchEvent(s),a}}exports.default=locationHook,exports.events=events,exports.navigate=navigate,exports.useLocationProperty=useLocationProperty,exports.usePathname=usePathname,exports.useSearch=useSearch; + +},{"./react-deps.js":181,"./use-sync-external-store":183}],11:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("./redux-toolkit.cjs.production.min.js"):module.exports=require("./redux-toolkit.cjs.development.js"); + +},{"./redux-toolkit.cjs.development.js":18,"./redux-toolkit.cjs.production.min.js":19}],152:[function(require,module,exports){ +"use strict";exports.__esModule=!0;var _exportNames={persistReducer:!0,persistCombineReducers:!0,persistStore:!0,createMigrate:!0,createTransform:!0,getStoredState:!0,createPersistoid:!0,purgeStoredState:!0};exports.purgeStoredState=exports.createPersistoid=exports.getStoredState=exports.createTransform=exports.createMigrate=exports.persistStore=exports.persistCombineReducers=exports.persistReducer=void 0;var _persistReducer=_interopRequireDefault(require("./persistReducer"));exports.persistReducer=_persistReducer.default;var _persistCombineReducers=_interopRequireDefault(require("./persistCombineReducers"));exports.persistCombineReducers=_persistCombineReducers.default;var _persistStore=_interopRequireDefault(require("./persistStore"));exports.persistStore=_persistStore.default;var _createMigrate=_interopRequireDefault(require("./createMigrate"));exports.createMigrate=_createMigrate.default;var _createTransform=_interopRequireDefault(require("./createTransform"));exports.createTransform=_createTransform.default;var _getStoredState=_interopRequireDefault(require("./getStoredState"));exports.getStoredState=_getStoredState.default;var _createPersistoid=_interopRequireDefault(require("./createPersistoid"));exports.createPersistoid=_createPersistoid.default;var _purgeStoredState=_interopRequireDefault(require("./purgeStoredState"));exports.purgeStoredState=_purgeStoredState.default;var _constants=require("./constants");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.keys(_constants).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||(exports[e]=_constants[e]))})); + +},{"./constants":147,"./createMigrate":148,"./createPersistoid":149,"./createTransform":150,"./getStoredState":151,"./persistCombineReducers":154,"./persistReducer":155,"./persistStore":156,"./purgeStoredState":157}],128:[function(require,module,exports){ +"use strict";exports.__esModule=!0;var _exportNames={batch:!0};Object.defineProperty(exports,"batch",{enumerable:!0,get:function(){return _reactBatchedUpdates.unstable_batchedUpdates}});var _shim=require("use-sync-external-store/shim"),_withSelector=require("use-sync-external-store/shim/with-selector"),_reactBatchedUpdates=require("./utils/reactBatchedUpdates"),_batch=require("./utils/batch"),_useSelector=require("./hooks/useSelector"),_connect=require("./components/connect"),_exports=require("./exports");Object.keys(_exports).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_exports[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _exports[e]}}))})),(0,_useSelector.initializeUseSelector)(_withSelector.useSyncExternalStoreWithSelector),(0,_connect.initializeConnect)(_shim.useSyncExternalStore),(0,_batch.setBatch)(_reactBatchedUpdates.unstable_batchedUpdates); + +},{"./components/connect":115,"./exports":123,"./hooks/useSelector":126,"./utils/batch":131,"./utils/reactBatchedUpdates":134,"use-sync-external-store/shim":177,"use-sync-external-store/shim/with-selector":178}],55:[function(require,module,exports){ +"use strict";var hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),focus=require("ariakit-utils/focus"),__utils=require("../__utils-09a0f6df.js");function getMouseDestination(e){const o=e.relatedTarget;return o?.nodeType===Node.ELEMENT_NODE?o:null}function hoveringInside(e){const o=getMouseDestination(e);return!!o&&dom.contains(e.currentTarget,o)}function movingToAnotherItem(e){const o=getMouseDestination(e);if(!o)return!1;return!!dom.closest(o,"[data-composite-hover]")}const useCompositeHover=system.createHook((e=>{let{state:o,focusOnHover:t=!0,...s}=e;o=store.useStore(o||__utils.CompositeContext,["setActiveId","baseRef"]);const r=hooks.useIsMouseMoving(),i=s.onMouseMove,n=hooks.useBooleanEvent(t),u=hooks.useEvent((e=>{i?.(e),e.defaultPrevented||r()&&n(e)&&(focus.hasFocusWithin(e.currentTarget)||o?.baseRef.current?.focus(),o?.setActiveId(e.currentTarget.id))})),a=s.onMouseLeave,c=hooks.useEvent((e=>{a?.(e),e.defaultPrevented||r()&&(hoveringInside(e)||movingToAnotherItem(e)||n(e)&&(o?.setActiveId(null),o?.baseRef.current?.focus()))}));return s={"data-composite-hover":"",...s,onMouseMove:u,onMouseLeave:c},s})),CompositeHover=store.createMemoComponent((e=>{const o=useCompositeHover(e);return system.createElement("div",o)}));"production"!=="production"&&(CompositeHover.displayName="CompositeHover"),exports.CompositeHover=CompositeHover,exports.useCompositeHover=useCompositeHover; + +},{"../__utils-09a0f6df.js":30,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/focus":27}],57:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),__utils=require("../__utils-09a0f6df.js"),jsxRuntime=require("react/jsx-runtime");const useCompositeRow=system.createHook((e=>{let{state:s,...o}=e;const t=react.useContext(__utils.CompositeContext);s=s||t;const r=react.useRef(null),i=hooks.useId(o.id),u=react.useMemo((()=>({id:i,baseRef:s?.baseRef})),[i,s?.baseRef]);return o=hooks.useWrapElement(o,(e=>jsxRuntime.jsx(__utils.CompositeRowContext.Provider,{value:u,children:e})),[u]),o={id:i,...o,ref:hooks.useForkRef(r,o.ref)},o})),CompositeRow=system.createComponent((e=>{const s=useCompositeRow(e);return system.createElement("div",s)}));"production"!=="production"&&(CompositeRow.displayName="CompositeRow"),exports.CompositeRow=CompositeRow,exports.useCompositeRow=useCompositeRow; + +},{"../__utils-09a0f6df.js":30,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react":145,"react/jsx-runtime":146}],58:[function(require,module,exports){ +"use strict";var store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),separator_separator=require("../separator/separator.js"),__utils=require("../__utils-09a0f6df.js");const useCompositeSeparator=system.createHook((e=>{let{state:t,...r}=e;t=store.useStore(t||__utils.CompositeContext,["orientation"]);const o="horizontal"===t?.orientation?"vertical":"horizontal";return r=separator_separator.useSeparator({...r,orientation:o}),r})),CompositeSeparator=system.createComponent((e=>{const t=useCompositeSeparator(e);return system.createElement("hr",t)}));"production"!=="production"&&(CompositeSeparator.displayName="CompositeSeparator"),exports.CompositeSeparator=CompositeSeparator,exports.useCompositeSeparator=useCompositeSeparator; + +},{"../__utils-09a0f6df.js":30,"../separator/separator.js":79,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23}],59:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),array=require("ariakit-utils/array"),collection_collectionState=require("../collection/collection-state.js"),__utils=require("../__utils-09a0f6df.js");function useCompositeState(e){let{orientation:t="both",rtl:r=!1,virtualFocus:s=!1,focusLoop:i=!1,focusWrap:l=!1,focusShift:a=!1,...o}=void 0===e?{}:e;const u=collection_collectionState.useCollectionState(o),n=react.useRef(null),[c,d]=hooks.useControlledState(0,o.moves,o.setMoves),[_,m]=hooks.useControlledState(o.defaultActiveId,o.activeId,o.setActiveId),f=react.useMemo((()=>__utils.getActiveId(u.items,_)),[u.items,_]),I=hooks.useInitialValue(f),v=o.includesBaseElement??null===I,b=hooks.useLiveRef(f),k=react.useCallback((e=>{void 0!==e&&(d((e=>e+1)),m(e))}),[]),y=react.useCallback((()=>{const e=__utils.findFirstEnabledItem(u.items);return e?.id}),[u.items]),p=react.useCallback((()=>{const e=__utils.findFirstEnabledItem(array.reverseArray(u.items));return e?.id}),[u.items]),C=react.useCallback(((e,t,s,a)=>{const o=r&&"vertical"!==t?array.reverseArray(e):e;if(null==b.current)return __utils.findFirstEnabledItem(o)?.id;const u=o.find((e=>e.id===b.current));if(!u)return __utils.findFirstEnabledItem(o)?.id;const n=!!u.rowId,c=o.indexOf(u),d=o.slice(c+1),_=__utils.getItemsInRow(d,u.rowId);if(void 0!==a){const e=__utils.getEnabledItems(_,b.current),t=e.slice(a)[0]||e[e.length-1];return t?.id}const m=__utils.getOppositeOrientation(n?t||"horizontal":t),f=i&&i!==m,I=n&&l&&l!==m;if(s=s||!n&&f&&v,f){const e=I&&!s?o:__utils.getItemsInRow(o,u.rowId),t=__utils.flipItems(e,b.current,s),r=__utils.findFirstEnabledItem(t,b.current);return r?.id}if(I){const e=__utils.findFirstEnabledItem(s?_:d,b.current);return s?e?.id||null:e?.id}const k=__utils.findFirstEnabledItem(_,b.current);return!k&&s?null:k?.id}),[i,l,v]),h=react.useCallback((e=>C(u.items,t,!1,e)),[C,u.items,t]),w=react.useCallback((e=>{const r=!!!__utils.findFirstEnabledItem(u.items)?.rowId&&v;return C(array.reverseArray(u.items),t,r,e)}),[u.items,C,t,v]),E=react.useCallback((e=>{const t=a&&!e,r=__utils.verticalizeItems(array.flatten2DArray(__utils.normalizeRows(__utils.groupItemsByRows(u.items),b.current,t)));return C(r,"vertical",i&&"horizontal"!==i&&v,e)}),[u.items,C,a,i]),S=react.useCallback((e=>{const t=a&&!e,r=__utils.verticalizeItems(array.reverseArray(array.flatten2DArray(__utils.normalizeRows(__utils.groupItemsByRows(u.items),b.current,t))));return C(r,"vertical",v,e)}),[u.items,C,a]),A=react.useMemo((()=>({...u,baseRef:n,orientation:t,rtl:r,virtualFocus:s,focusLoop:i,focusWrap:l,focusShift:a,moves:c,setMoves:d,includesBaseElement:v,activeId:f,setActiveId:m,move:k,next:h,previous:w,up:S,down:E,first:y,last:p})),[u,n,t,r,s,i,l,a,c,d,v,f,m,k,h,w,S,E,y,p]);return store.useStorePublisher(A)}exports.useCompositeState=useCompositeState; + +},{"../__utils-09a0f6df.js":30,"../collection/collection-state.js":38,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-utils/array":24,"react":145}],60:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),array=require("ariakit-utils/array"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),focus=require("ariakit-utils/focus"),misc=require("ariakit-utils/misc"),focusable_focusable=require("../focusable/focusable.js"),__utils=require("../__utils-09a0f6df.js");function isGrid(e){return e.some((e=>!!e.rowId))}function isPrintableKey(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}function isModifierKey(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}function canProxyKeyboardEvent(e,t){if(!events.isSelfTarget(e))return!1;if(isModifierKey(e))return!1;const r=e.target;if(!r)return!0;if(dom.isTextField(r)){if(isPrintableKey(e))return!1;const r=isGrid(t.items),s=null===t.activeId,o=r&&!s,n="Home"===e.key||"End"===e.key;if(!o&&n)return!1}return!e.isPropagationStopped()}function useKeyboardEventProxy(e,t,r,s){return hooks.useEvent((o=>{if(r?.(o),o.defaultPrevented)return;const n=t?.ref.current;if(!n)return;if(!canProxyKeyboardEvent(o,e))return;const{view:i,...u}=o,a=s?.current;n!==a&&n.focus(),events.fireKeyboardEvent(n,o.type,u)||o.preventDefault(),o.currentTarget.contains(n)&&o.stopPropagation()}))}function findFirstEnabledItemInTheLastRow(e){return __utils.findFirstEnabledItem(array.flatten2DArray(array.reverseArray(__utils.groupItemsByRows(e))))}function useScheduleFocus(e){const[t,r]=react.useState(!1),s=react.useCallback((()=>r(!0)),[]);return react.useEffect((()=>{const s=e?.ref.current;t&&s&&(r(!1),focus.focusIntoView(s))}),[e,t]),s}const useComposite=system.createHook((e=>{let{state:t,composite:r=!0,focusOnMove:s=r,moveOnKeyPress:o=!0,...n}=e;const i=react.useRef(null),u=r&&t.virtualFocus,a=react.useMemo((()=>__utils.findEnabledItemById(t.items,t.activeId)),[t.items,t.activeId]),c=hooks.useLiveRef(a),f=react.useRef(null),l=null===t.activeId,v=hooks.useLiveRef(l),d=useScheduleFocus(a);hooks.useSafeLayoutEffect((()=>{if(!r)return;if(!s)return;if(!t.moves)return;const e=c.current?.ref.current;e&&d()}),[r,s,t.moves]),hooks.useSafeLayoutEffect((()=>{if(!r)return;if(!t.moves)return;if(!v.current)return;const e=i.current;if(!e)return;const s=f.current;f.current=null,s&&events.fireBlurEvent(s,{relatedTarget:e}),focus.hasFocus(e)?events.fireFocusEvent(e,{relatedTarget:s}):e.focus()}),[r,t.moves]),hooks.useSafeLayoutEffect((()=>{if(!u)return;if(!r)return;const e=f.current;if(f.current=null,!e)return;const t=c.current?.ref.current,s=t||dom.getActiveElement(e);events.fireBlurEvent(e,{relatedTarget:s})}),[u,r,t.activeId]);const m=useKeyboardEventProxy(t,a,n.onKeyDownCapture,f),y=useKeyboardEventProxy(t,a,n.onKeyUpCapture,f),p=n.onFocusCapture,k=hooks.useEvent((e=>{if(p?.(e),e.defaultPrevented)return;if(!u)return;const t=e.relatedTarget,r=__utils.silentlyFocused(e.currentTarget);events.isSelfTarget(e)&&r&&(e.stopPropagation(),f.current=t)})),E=n.onFocus,g=hooks.useEvent((e=>{E?.(e),e.defaultPrevented||r&&(u?events.isSelfTarget(e)&&!__utils.isItem(t.items,e.relatedTarget)&&misc.queueMicrotask(d):events.isSelfTarget(e)&&t.setActiveId(null))})),h=n.onBlurCapture,_=hooks.useEvent((e=>{if(h?.(e),e.defaultPrevented)return;if(!u)return;const r=a?.ref.current||null,s=e.relatedTarget,o=__utils.isItem(t.items,s),n=f.current;if(f.current=null,events.isSelfTarget(e)&&o)s===r?n&&n!==s&&events.fireBlurEvent(n,e):r&&events.fireBlurEvent(r,e),e.stopPropagation();else{!__utils.isItem(t.items,e.target)&&r&&events.fireBlurEvent(r,e)}})),b=n.onKeyDown,C=hooks.useBooleanEvent(o),I=hooks.useEvent((e=>{if(b?.(e),e.defaultPrevented)return;if(!events.isSelfTarget(e))return;if(c.current)return;const r="horizontal"!==t.orientation,s="vertical"!==t.orientation,o=isGrid(t.items),n={ArrowUp:(o||r)&&(()=>{if(o){const e=t.items&&findFirstEnabledItemInTheLastRow(t.items);return e?.id}return t.last()}),ArrowRight:(o||s)&&t.first,ArrowDown:(o||r)&&t.first,ArrowLeft:(o||s)&&t.last,Home:t.first,End:t.last,PageUp:t.first,PageDown:t.last}[e.key];if(n){const r=n();if(void 0!==r){if(!C(e))return;e.preventDefault(),t.move(r)}}}));n=store.useStoreProvider({state:t,...n},__utils.CompositeContext);n={"aria-activedescendant":u?a?.id||void 0:void 0,...n,ref:hooks.useForkRef(i,r?t.baseRef:void 0,n.ref),onKeyDownCapture:m,onKeyUpCapture:y,onFocusCapture:k,onFocus:g,onBlurCapture:_,onKeyDown:I};const P=r&&(u||null===t.activeId);return n=focusable_focusable.useFocusable({focusable:P,...n}),n})),Composite=system.createComponent((e=>{const t=useComposite(e);return system.createElement("div",t)}));"production"!=="production"&&(Composite.displayName="Composite"),exports.Composite=Composite,exports.useComposite=useComposite; + +},{"../__utils-09a0f6df.js":30,"../focusable/focusable.js":70,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"ariakit-utils/array":24,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/focus":27,"ariakit-utils/misc":28,"react":145}],43:[function(require,module,exports){ +"use strict";var react=require("react"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),misc=require("ariakit-utils/misc"),__utils=require("../__utils-2acb1967.js"),jsxRuntime=require("react/jsx-runtime");function normalizeValue(e){return misc.normalizeString(e).toLowerCase()}function splitValue(e,t){t=normalizeValue(t);let o=normalizeValue(e).indexOf(t);const s=[];for(;-1!==o;)0!==o&&s.push(jsxRuntime.jsx("span",{"data-autocomplete-value":"",children:e.substr(0,o)},s.length)),s.push(jsxRuntime.jsx("span",{"data-user-value":"",children:e.substr(o,t.length)},s.length)),o=normalizeValue(e=e.substr(o+t.length)).indexOf(t);return e&&s.push(jsxRuntime.jsx("span",{"data-autocomplete-value":"",children:e},s.length)),s}const useComboboxItemValue=system.createHook((e=>{let{state:t,value:o,...s}=e;t=store.useStore(t||__utils.ComboboxContext,["value"]);const u=react.useContext(__utils.ComboboxItemValueContext),a=o??u;return s={children:react.useMemo((()=>a&&t?.value?splitValue(a,t.value):a),[a,t?.value]),...s},s})),ComboboxItemValue=system.createComponent((e=>{const t=useComboboxItemValue(e);return system.createElement("span",t)}));"production"!=="production"&&(ComboboxItemValue.displayName="ComboboxItemValue"),exports.ComboboxItemValue=ComboboxItemValue,exports.useComboboxItemValue=useComboboxItemValue; + +},{"../__utils-2acb1967.js":33,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"ariakit-utils/misc":28,"react":145,"react/jsx-runtime":146}],45:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),__utils=require("../__utils-2acb1967.js");const useComboboxList=system.createHook((e=>{let{state:o,...t}=e;const s=react.useRef(null),r=hooks.useId(t.id),i=t.onKeyDown,u=hooks.useEvent((e=>{i?.(e),e.defaultPrevented||"Escape"===e.key&&o.move(null)}));t=store.useStoreProvider({state:o,...t},__utils.ComboboxContext);const n=o.mounted?t.style:{...t.style,display:"none"};return t={id:r,role:"listbox",hidden:!o.mounted,...t,ref:hooks.useForkRef(r?o.setContentElement:null,s,t.ref),style:n,onKeyDown:u},t})),ComboboxList=system.createComponent((e=>{const o=useComboboxList(e);return system.createElement("div",o)}));"production"!=="production"&&(ComboboxList.displayName="ComboboxList"),exports.ComboboxList=ComboboxList,exports.useComboboxList=useComboboxList; + +},{"../__utils-2acb1967.js":33,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"react":145}],36:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),command_command=require("../command/command.js");const useButton=system.createHook((t=>{const e=react.useRef(null),o=hooks.useTagName(e,t.as||"button"),[r,s]=react.useState((()=>!!o&&dom.isButton({tagName:o,type:t.type})));return react.useEffect((()=>{e.current&&s(dom.isButton(e.current))}),[]),t={role:r||"a"===o?void 0:"button",...t,ref:hooks.useForkRef(e,t.ref)},t=command_command.useCommand(t)})),Button=system.createComponent((t=>{const e=useButton(t);return system.createElement("button",e)}));"production"!=="production"&&(Button.displayName="Button"),exports.Button=Button,exports.useButton=useButton; + +},{"../command/command.js":52,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"react":145}],56:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),collection_collectionItem=require("../collection/collection-item.js"),command_command=require("../command/command.js"),__utils=require("../__utils-09a0f6df.js"),jsxRuntime=require("react/jsx-runtime");function isEditableElement(e){return!!e.isContentEditable||(!!dom.isTextField(e)||"INPUT"===e.tagName&&!dom.isButton(e))}function getNextPageOffset(e,t){void 0===t&&(t=!1);const r=e.clientHeight,{top:o}=e.getBoundingClientRect(),i=1.5*Math.max(.875*r,r-40),n=t?r-i+o:i+o;return"HTML"===e.tagName?n+e.scrollTop:n}function getItemOffset(e,t){void 0===t&&(t=!1);const{top:r}=e.getBoundingClientRect();return t?r+e.clientHeight:r}function findNextPageItemId(e,t,r,o){if(void 0===o&&(o=!1),!t)return;if(!r)return;const i=dom.getScrollingElement(e);if(!i)return;const n=getNextPageOffset(i,o);let s,u;for(let e=0;e=0){void 0!==u&&u{if(t)return e?.find((e=>e.id===t))}),[e,t])}function targetIsAnotherItem(e,t){if(events.isSelfTarget(e))return!1;const r=e.target;return __utils.isItem(t,r,e.currentTarget)}function useRole(e,t){const[r,o]=react.useState(t.role);return hooks.useSafeLayoutEffect((()=>{const r=e.current;r&&o(r.getAttribute("role")||t.role)}),[t.role]),r}function requiresAriaSelected(e){return"option"===e||"treeitem"===e}function supportsAriaSelected(e){return"option"===e||("tab"===e||("treeitem"===e||("gridcell"===e||("row"===e||("columnheader"===e||"rowheader"===e)))))}const useCompositeItem=system.createHook((e=>{let{state:t,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,getItem:n,...s}=e;const u=hooks.useId(s.id);t=store.useStore(t||__utils.CompositeContext,[react.useCallback((e=>e.activeId===u),[u]),"baseRef","items","virtualFocus","registerItem","setActiveId","orientation","up","next","down","previous","first","last","move"]);const a=react.useRef(null),c=react.useContext(__utils.CompositeRowContext),l=r??__utils.getContextId(t,c),m=s.disabled&&!s.accessibleWhenDisabled,d=react.useCallback((e=>{const t={...e,id:u,rowId:l,disabled:!!m};return n?n(t):t}),[u,l,m,n]),f=s.onFocus,I=react.useRef(!1),v=hooks.useEvent((e=>{if(f?.(e),e.defaultPrevented)return;if(events.isPortalEvent(e))return;if(!u)return;if(t?.items&&targetIsAnotherItem(e,t.items))return;if(t?.activeId!==u&&t?.setActiveId(u),!t?.virtualFocus)return;if(!events.isSelfTarget(e))return;if(isEditableElement(e.currentTarget))return;const r=t.baseRef.current;if(!r)return;I.current=!0;e.relatedTarget===r||__utils.isItem(t.items,e.relatedTarget)?__utils.focusSilently(r):r.focus()})),g=s.onBlurCapture,p=hooks.useEvent((e=>{g?.(e),e.defaultPrevented||t?.virtualFocus&&I.current&&(I.current=!1,e.preventDefault(),e.stopPropagation())})),h=s.onKeyDown,C=hooks.useBooleanEvent(o),_=hooks.useBooleanEvent(i),b=useItem(t?.items,u),k=!!b?.rowId,x=hooks.useEvent((e=>{if(h?.(e),e.defaultPrevented)return;if(!events.isSelfTarget(e))return;const r="horizontal"!==t?.orientation,o="vertical"!==t?.orientation,i={ArrowUp:(k||r)&&t?.up,ArrowRight:(k||o)&&t?.next,ArrowDown:(k||r)&&t?.down,ArrowLeft:(k||o)&&t?.previous,Home:()=>!k||e.ctrlKey?t?.first():t?.previous(-1),End:()=>!k||e.ctrlKey?t?.last():t?.next(-1),PageUp:()=>findNextPageItemId(e.currentTarget,t?.items,t?.up,!0),PageDown:()=>findNextPageItemId(e.currentTarget,t?.items,t?.down)}[e.key];if(i){const r=i();if(C(e)||void 0!==r){if(!_(e))return;e.preventDefault(),t?.move(r)}}})),E=react.useMemo((()=>({id:u,baseRef:t?.baseRef})),[u,t?.baseRef]);s=hooks.useWrapElement(s,(e=>jsxRuntime.jsx(__utils.CompositeItemContext.Provider,{value:E,children:e})),[E]);const w=t?.activeId===u,R=useRole(a,s);let y;w&&(requiresAriaSelected(R)||t?.virtualFocus&&supportsAriaSelected(R))&&(y=!0);const P=!t?.virtualFocus&&w||!t?.items.length;return s={id:u,"aria-selected":y,"data-active-item":w?"":void 0,...s,ref:hooks.useForkRef(a,s.ref),tabIndex:P?s.tabIndex:-1,onFocus:v,onBlurCapture:p,onKeyDown:x},s=command_command.useCommand(s),s=collection_collectionItem.useCollectionItem({state:t,...s,getItem:d,shouldRegisterItem:!!u&&s.shouldRegisterItem}),s})),CompositeItem=store.createMemoComponent((e=>{const t=useCompositeItem(e);return system.createElement("button",t)}));"production"!=="production"&&(CompositeItem.displayName="CompositeItem"),exports.CompositeItem=CompositeItem,exports.useCompositeItem=useCompositeItem; + +},{"../__utils-09a0f6df.js":30,"../collection/collection-item.js":37,"../command/command.js":52,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"react":145,"react/jsx-runtime":146}],41:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),composite_compositeGroupLabel=require("../composite/composite-group-label.js");const useComboboxGroupLabel=system.createHook((o=>o=composite_compositeGroupLabel.useCompositeGroupLabel(o))),ComboboxGroupLabel=system.createComponent((o=>{const e=useComboboxGroupLabel(o);return system.createElement("div",e)}));"production"!=="production"&&(ComboboxGroupLabel.displayName="ComboboxGroupLabel"),exports.ComboboxGroupLabel=ComboboxGroupLabel,exports.useComboboxGroupLabel=useComboboxGroupLabel; + +},{"../composite/composite-group-label.js":53,"ariakit-react-utils/system":23}],42:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),composite_compositeGroup=require("../composite/composite-group.js");const useComboboxGroup=system.createHook((o=>o=composite_compositeGroup.useCompositeGroup(o))),ComboboxGroup=system.createComponent((o=>{const e=useComboboxGroup(o);return system.createElement("div",e)}));"production"!=="production"&&(ComboboxGroup.displayName="ComboboxGroup"),exports.ComboboxGroup=ComboboxGroup,exports.useComboboxGroup=useComboboxGroup; + +},{"../composite/composite-group.js":54,"ariakit-react-utils/system":23}],68:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),focus=require("ariakit-utils/focus"),focusTrap_focusTrap=require("./focus-trap.js"),jsxRuntime=require("react/jsx-runtime");const useFocusTrapRegion=system.createHook((e=>{let{enabled:s=!1,...r}=e;const o=react.useRef(null);return r=hooks.useWrapElement(r,(e=>{const r=()=>s?jsxRuntime.jsx(focusTrap_focusTrap.FocusTrap,{onFocus:e=>{const s=o.current;if(!s)return;const r=focus.getAllTabbableIn(s,!0),t=r[0],u=r[r.length-1];r.length?e.relatedTarget===t?u?.focus():t?.focus():s.focus()}}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r(),e,r()]})}),[s]),r={...r,ref:hooks.useForkRef(o,r.ref)},r})),FocusTrapRegion=system.createComponent((e=>{const s=useFocusTrapRegion(e);return system.createElement("div",s)}));"production"!=="production"&&(FocusTrapRegion.displayName="FocusTrapRegion"),exports.FocusTrapRegion=FocusTrapRegion,exports.useFocusTrapRegion=useFocusTrapRegion; + +},{"./focus-trap.js":69,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"ariakit-utils/focus":27,"react":145,"react/jsx-runtime":146}],78:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),misc=require("ariakit-react-utils/misc"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),focus=require("ariakit-utils/focus"),misc$1=require("ariakit-utils/misc"),reactDom=require("react-dom"),portal_portalContext=require("./portal-context.js"),jsxRuntime=require("react/jsx-runtime"),focusTrap_focusTrap=require("../focus-trap/focus-trap.js");function getRootElement(e){return dom.getDocument(e).body}function getPortalElement(e,t){return t?"function"==typeof t?t(e):t:dom.getDocument(e).createElement("div")}function getRandomId(e){return void 0===e&&(e="id"),`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}function queueFocus(e){misc$1.queueMicrotask((()=>{e?.focus()}))}const usePortal=system.createHook((e=>{let{preserveTabOrder:t,portalElement:r,portalRef:s,portal:u=!0,...o}=e;const n=react.useRef(null),i=hooks.useForkRef(n,o.ref),c=react.useContext(portal_portalContext.PortalContext),[a,l]=react.useState(null),f=react.useRef(null),m=react.useRef(null),d=react.useRef(null),p=react.useRef(null);return hooks.useSafeLayoutEffect((()=>{const e=n.current;if(!e||!u)return void l(null);const t=getPortalElement(e,r);if(!t)return void l(null);const o=t.isConnected;if(!o){(c||getRootElement(e)).appendChild(t)}return t.id||(t.id=e.id?`${e.id}-portal`:getRandomId()),l(t),misc.setRef(s,t),o?void 0:()=>{t.remove(),misc.setRef(s,null)}}),[u,r,c,s]),react.useEffect((()=>{if(!a)return;if(!t)return;let e=0;const r=t=>{if(events.isFocusEventOutside(t)){if("focusin"===t.type)return focus.restoreFocusIn(a);cancelAnimationFrame(e),e=requestAnimationFrame((()=>{focus.disableFocusIn(a,!0)}))}};return a.addEventListener("focusin",r,!0),a.addEventListener("focusout",r,!0),()=>{a.removeEventListener("focusin",r,!0),a.removeEventListener("focusout",r,!0)}}),[a,t]),o=hooks.useWrapElement(o,(e=>(e=jsxRuntime.jsx(portal_portalContext.PortalContext.Provider,{value:a||c,children:e}),u?a?(e=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&a&&jsxRuntime.jsx(focusTrap_focusTrap.FocusTrap,{ref:m,onFocus:e=>{if(events.isFocusEventOutside(e,a)){const e=focus.getNextTabbable();e!==d.current&&queueFocus(e)}else queueFocus(f.current)}}),e,t&&a&&jsxRuntime.jsx(focusTrap_focusTrap.FocusTrap,{ref:d,onFocus:e=>{if(events.isFocusEventOutside(e,a)){const e=focus.getPreviousTabbable();e!==m.current&&queueFocus(e)}else queueFocus(p.current)}})]}),a&&(e=reactDom.createPortal(e,a)),e=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&a&&jsxRuntime.jsx(focusTrap_focusTrap.FocusTrap,{ref:f,onFocus:e=>{events.isFocusEventOutside(e,a)?queueFocus(m.current):queueFocus(focus.getPreviousTabbable())}}),t&&jsxRuntime.jsx("span",{"aria-owns":a?.id,style:{position:"fixed"}}),e,t&&a&&jsxRuntime.jsx(focusTrap_focusTrap.FocusTrap,{ref:p,onFocus:e=>{events.isFocusEventOutside(e,a)?queueFocus(d.current):queueFocus(focus.getNextTabbable())}})]})):jsxRuntime.jsx("span",{ref:i,id:o.id,style:{position:"fixed"}}):e)),[a,c,u,o.id,t]),o={...o,ref:i},o})),Portal=system.createComponent((e=>{const t=usePortal(e);return system.createElement("div",t)}));"production"!=="production"&&(Portal.displayName="Portal"),exports.Portal=Portal,exports.usePortal=usePortal; + +},{"../focus-trap/focus-trap.js":69,"./portal-context.js":77,"ariakit-react-utils/hooks":20,"ariakit-react-utils/misc":21,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/focus":27,"ariakit-utils/misc":28,"react":145,"react-dom":109,"react/jsx-runtime":146}],179:[function(require,module,exports){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var useLocation$1=require("./use-location.js"),matcher=require("./matcher.js"),reactDeps=require("./react-deps.js"),React=require("react");const defaultRouter={hook:useLocation$1.default,matcher:matcher.default(),base:""},RouterCtx=React.createContext(defaultRouter),useRouter=()=>React.useContext(RouterCtx),useLocationFromRouter=e=>e.hook(e),useLocation=()=>useLocationFromRouter(useRouter()),useRoute=e=>{const t=useRouter(),[r]=useLocationFromRouter(t);return t.matcher(e,r)},Router=({hook:e,matcher:t,base:r="",parent:o,children:a})=>{const u=(a,u=o||defaultRouter)=>(a.hook=e||u.hook,a.matcher=t||u.matcher,a.ownBase=r,a.parent=o,a),[c]=React.useState((()=>u({get base(){return(c.parent||defaultRouter).base+c.ownBase}})));return reactDeps.useInsertionEffect((()=>{u(c)})),React.createElement(RouterCtx.Provider,{value:c,children:a})},Route=({path:e,match:t,component:r,children:o})=>{const a=useRoute(e),[u,c]=t||a;return u?r?React.createElement(r,{params:c}):"function"==typeof o?o(c):o:null},Link=React.forwardRef(((e,t)=>{const r=useRouter(),[,o]=useLocationFromRouter(r),{to:a,href:u=a,children:c,onClick:n}=e,s=reactDeps.useEvent((t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(n&&n(t),t.defaultPrevented||(t.preventDefault(),o(a||u,e)))})),l={href:"~"===u[0]?u.slice(1):r.base+u,onClick:s,to:null,ref:t},i=React.isValidElement(c)?c:React.createElement("a",e);return React.cloneElement(i,l)})),flattenChildren=e=>Array.isArray(e)?[].concat(...e.map((e=>e&&e.type===React.Fragment?flattenChildren(e.props.children):flattenChildren(e)))):[e],Switch=({children:e,location:t})=>{const r=useRouter(),o=r.matcher,[a]=useLocationFromRouter(r);for(const r of flattenChildren(e)){let e=0;if(React.isValidElement(r)&&(e=r.props.path?o(r.props.path,t||a):[!0,{}])[0])return React.cloneElement(r,{match:e})}return null},Redirect=e=>{const{to:t,href:r=t}=e,[,o]=useLocation(),a=reactDeps.useEvent((()=>o(t||r,e)));return reactDeps.useIsomorphicLayoutEffect((()=>{a()}),[]),null};exports.Link=Link,exports.Redirect=Redirect,exports.Route=Route,exports.Router=Router,exports.Switch=Switch,exports.default=useRoute,exports.useLocation=useLocation,exports.useRoute=useRoute,exports.useRouter=useRouter; + +},{"./matcher.js":180,"./react-deps.js":181,"./use-location.js":182,"react":145}],16:[function(require,module,exports){ +(function (process,global){(function (){ +var QueryStatus,__generator=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=200&&e.status<=299},defaultIsJsonContentType=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function stripUndefined(e){if(!(0,import_toolkit2.isPlainObject)(e))return e;for(var t=__spreadValues({},e),r=0,n=Object.entries(t);r }` or `{ error: }` that may contain an optional `meta` property.\n Object returned was:",o)}if(o.error)throw new HandledError(o.error,o.meta);return h=A,[4,a(o.data,o.meta,e.originalArgs)];case 7:return[2,h.apply(void 0,[t.sent(),(S={fulfilledTimeStamp:Date.now(),baseQueryMeta:o.meta},S[import_toolkit5.SHOULD_AUTOBATCH]=!0,S)])];case 8:if(m=t.sent(),!((v=m)instanceof HandledError))return[3,12];g=defaultTransformResponse,r.query&&r.transformErrorResponse&&(g=r.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),_=q,[4,g(v.value,v.meta,e.originalArgs)];case 10:return[2,_.apply(void 0,[t.sent(),(k={baseQueryMeta:v.meta},k[import_toolkit5.SHOULD_AUTOBATCH]=!0,k)])];case 11:return b=t.sent(),v=b,[3,12];case 12:throw"undefined"!=typeof process?console.error('An unhandled error occurred processing a request for the endpoint "'+e.endpointName+'".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".',v):console.error(v),v;case 13:return[2]}}))}))};function s(e,t){var n,i,a,o,u=null==(i=null==(n=t[r])?void 0:n.queries)?void 0:i[e.queryCacheKey],s=null==(a=t[r])?void 0:a.config.refetchOnMountOrArgChange,l=null==u?void 0:u.fulfilledTimeStamp,c=null!=(o=e.forceRefetch)?o:e.subscribe&&s;return!!c&&(!0===c||(Number(new Date)-Number(l))/1e3>=c)}var l=(0,import_toolkit5.createAsyncThunk)(r+"/executeQuery",u,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[import_toolkit5.SHOULD_AUTOBATCH]=!0,e},condition:function(e,t){var n,a,o,u=(0,t.getState)(),l=null==(a=null==(n=u[r])?void 0:n.queries)?void 0:a[e.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=e.originalArgs,f=null==l?void 0:l.originalArgs,p=i[e.endpointName];return!!isUpsertQuery(e)||"pending"!==(null==l?void 0:l.status)&&(!!s(e,u)||(!(!isQueryDefinition(p)||!(null==(o=null==p?void 0:p.forceRefetch)?void 0:o.call(p,{currentArg:d,previousArg:f,endpointState:l,state:u})))||!c))},dispatchConditionRejection:!0}),c=(0,import_toolkit5.createAsyncThunk)(r+"/executeMutation",u,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[import_toolkit5.SHOULD_AUTOBATCH]=!0,e}});function d(e){return function(t){var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:l,mutationThunk:c,prefetch:function(e,t,r){return function(n,i){var a=function(e){return"force"in e}(r)&&r.force,u=function(e){return"ifOlderThan"in e}(r)&&r.ifOlderThan,s=function(r){return void 0===r&&(r=!0),o.endpoints[e].initiate(t,{forceRefetch:r})},l=o.endpoints[e].select(t)(i());if(a)n(s());else if(u){var c=null==l?void 0:l.fulfilledTimeStamp;if(!c)return void n(s());(Number(new Date)-Number(new Date(c)))/1e3>=u&&n(s())}else n(s(!1))}},updateQueryData:function(e,t,r){return function(n,i){var a,u,s=o.endpoints[e].select(t)(i()),l={patches:[],inversePatches:[],undo:function(){return n(o.util.patchQueryData(e,t,l.inversePatches))}};if(s.status===QueryStatus.uninitialized)return l;if("data"in s)if((0,import_immer.isDraftable)(s.data)){var c=(0,import_immer.produceWithPatches)(s.data,r),d=c[1],f=c[2];(a=l.patches).push.apply(a,d),(u=l.inversePatches).push.apply(u,f)}else{var p=r(s.data);l.patches.push({op:"replace",path:[],value:p}),l.inversePatches.push({op:"replace",path:[],value:s.data})}return n(o.util.patchQueryData(e,t,l.patches)),l}},upsertQueryData:function(e,t,r){return function(n){var i;return n(o.endpoints[e].initiate(t,((i={subscribe:!1,forceRefetch:!0})[forceQueryFnSymbol]=function(){return{data:r}},i)))}},patchQueryData:function(e,t,r){return function(n){var u=i[e];n(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:t,endpointDefinition:u,endpointName:e}),patches:r}))}},buildMatchThunkActions:function(e,t){return{matchPending:(0,import_toolkit4.isAllOf)((0,import_toolkit4.isPending)(e),d(t)),matchFulfilled:(0,import_toolkit4.isAllOf)((0,import_toolkit4.isFulfilled)(e),d(t)),matchRejected:(0,import_toolkit4.isAllOf)((0,import_toolkit4.isRejected)(e),d(t))}}}}function calculateProvidedByThunk(e,t,r,n){return calculateProvidedBy(r[e.meta.arg.endpointName][t],(0,import_toolkit4.isFulfilled)(e)?e.payload:void 0,(0,import_toolkit4.isRejectedWithValue)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}var import_immer2=__toModule(require("immer")),import_immer3=__toModule(require("immer"));function updateQuerySubstateIfExists(e,t,r){var n=e[t];n&&r(n)}function getMutationCacheKey(e){var t;return null!=(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)?t:e.requestId}function updateMutationSubstateIfExists(e,t,r){var n=e[getMutationCacheKey(t)];n&&r(n)}var initialState={};function buildSlice(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,u=i.extractRehydrationInfo,s=i.hasRehydrationInfo,l=e.assertTagType,c=e.config,d=(0,import_toolkit6.createAction)(t+"/resetApiState"),f=(0,import_toolkit6.createSlice)({name:t+"/queries",initialState:initialState,reducers:{removeQueryResult:{reducer:function(e,t){delete e[t.payload.queryCacheKey]},prepare:(0,import_toolkit6.prepareAutoBatched)()},queryResultPatched:function(e,t){var r=t.payload,n=r.queryCacheKey,i=r.patches;updateQuerySubstateIfExists(e,n,(function(e){e.data=(0,import_immer3.applyPatches)(e.data,i.concat())}))}},extraReducers:function(e){e.addCase(r.pending,(function(e,t){var r,n=t.meta,i=t.meta.arg,a=isUpsertQuery(i);(i.subscribe||a)&&(null!=e[r=i.queryCacheKey]||(e[r]={status:QueryStatus.uninitialized,endpointName:i.endpointName})),updateQuerySubstateIfExists(e,i.queryCacheKey,(function(e){e.status=QueryStatus.pending,e.requestId=a&&e.requestId?e.requestId:n.requestId,void 0!==i.originalArgs&&(e.originalArgs=i.originalArgs),e.startedTimeStamp=n.startedTimeStamp}))})).addCase(r.fulfilled,(function(e,t){var r=t.meta,n=t.payload;updateQuerySubstateIfExists(e,r.arg.queryCacheKey,(function(e){var t;if(e.requestId===r.requestId||isUpsertQuery(r.arg)){var i=a[r.arg.endpointName].merge;if(e.status=QueryStatus.fulfilled,i)if(void 0!==e.data){var o=r.fulfilledTimeStamp,u=r.arg,s=r.baseQueryMeta,l=r.requestId,c=(0,import_toolkit6.createNextState)(e.data,(function(e){return i(e,n,{arg:u.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:o,requestId:l})}));e.data=c}else e.data=n;else e.data=null==(t=a[r.arg.endpointName].structuralSharing)||t?copyWithStructuralSharing((0,import_immer2.isDraft)(e.data)?(0,import_immer3.original)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=r.fulfilledTimeStamp}}))})).addCase(r.rejected,(function(e,t){var r=t.meta,n=r.condition,i=r.arg,a=r.requestId,o=t.error,u=t.payload;updateQuerySubstateIfExists(e,i.queryCacheKey,(function(e){if(n);else{if(e.requestId!==a)return;e.status=QueryStatus.rejected,e.error=null!=u?u:o}}))})).addMatcher(s,(function(e,t){for(var r=u(t).queries,n=0,i=Object.entries(r);n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=200&&e.status<=299},w=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function k(e){if(!(0,T.isPlainObject)(e))return e;for(var t=v({},e),n=0,r=Object.entries(t);n=l)}var d=(0,Z.createAsyncThunk)(i+"/executeQuery",c,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Z.SHOULD_AUTOBATCH]=!0,e},condition:function(e,t){var n,r,a,o=(0,t.getState)(),s=null==(r=null==(n=o[i])?void 0:n.queries)?void 0:r[e.queryCacheKey],c=null==s?void 0:s.fulfilledTimeStamp,d=e.originalArgs,f=null==s?void 0:s.originalArgs,p=u[e.endpointName];return!(!Y(e)&&("pending"===(null==s?void 0:s.status)||!l(e,o)&&(!W(p)||!(null==(a=null==p?void 0:p.forceRefetch)?void 0:a.call(p,{currentArg:d,previousArg:f,endpointState:s,state:o})))&&c))},dispatchConditionRejection:!0}),f=(0,Z.createAsyncThunk)(i+"/executeMutation",c,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Z.SHOULD_AUTOBATCH]=!0,e}});function p(e){return function(t){var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:d,mutationThunk:f,prefetch:function(e,t,n){return function(r,i){var a=function(e){return"force"in e}(n)&&n.force,u=function(e){return"ifOlderThan"in e}(n)&&n.ifOlderThan,o=function(n){return void 0===n&&(n=!0),s.endpoints[e].initiate(t,{forceRefetch:n})},c=s.endpoints[e].select(t)(i());if(a)r(o());else if(u){var l=null==c?void 0:c.fulfilledTimeStamp;if(!l)return void r(o());(Number(new Date)-Number(new Date(l)))/1e3>=u&&r(o())}else r(o(!1))}},updateQueryData:function(t,n,r){return function(i,a){var u,o,c=s.endpoints[t].select(n)(a()),l={patches:[],inversePatches:[],undo:function(){return i(s.util.patchQueryData(t,n,l.inversePatches))}};if(c.status===e.uninitialized)return l;if("data"in c)if((0,X.isDraftable)(c.data)){var d=(0,X.produceWithPatches)(c.data,r),f=d[2];(u=l.patches).push.apply(u,d[1]),(o=l.inversePatches).push.apply(o,f)}else{var p=r(c.data);l.patches.push({op:"replace",path:[],value:p}),l.inversePatches.push({op:"replace",path:[],value:c.data})}return i(s.util.patchQueryData(t,n,l.patches)),l}},upsertQueryData:function(e,t,n){return function(r){var i;return r(s.endpoints[e].initiate(t,((i={subscribe:!1,forceRefetch:!0})[G]=function(){return{data:n}},i)))}},patchQueryData:function(e,t,n){return function(r){r(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:t,endpointDefinition:u[e],endpointName:e}),patches:n}))}},buildMatchThunkActions:function(e,t){return{matchPending:(0,$.isAllOf)((0,$.isPending)(e),p(t)),matchFulfilled:(0,$.isAllOf)((0,$.isFulfilled)(e),p(t)),matchRejected:(0,$.isAllOf)((0,$.isRejected)(e),p(t))}}}}({baseQuery:u,reducerPath:o,context:a,api:t,serializeQueryArgs:s}),m=h.queryThunk,g=h.mutationThunk,b=h.patchQueryData,O=h.updateQueryData,T=h.upsertQueryData,R=h.prefetch,j=h.buildMatchThunkActions,w=function(t){var n=t.reducerPath,r=t.queryThunk,i=t.mutationThunk,a=t.context,u=a.endpointDefinitions,o=a.apiUid,s=a.extractRehydrationInfo,c=a.hasRehydrationInfo,l=t.assertTagType,d=t.config,f=(0,J.createAction)(n+"/resetApiState"),p=(0,J.createSlice)({name:n+"/queries",initialState:oe,reducers:{removeQueryResult:{reducer:function(e,t){delete e[t.payload.queryCacheKey]},prepare:(0,J.prepareAutoBatched)()},queryResultPatched:function(e,t){var n=t.payload,r=n.patches;ie(e,n.queryCacheKey,(function(e){e.data=(0,re.applyPatches)(e.data,r.concat())}))}},extraReducers:function(t){t.addCase(r.pending,(function(t,n){var r,i=n.meta,a=n.meta.arg,u=Y(a);(a.subscribe||u)&&(null!=t[r=a.queryCacheKey]||(t[r]={status:e.uninitialized,endpointName:a.endpointName})),ie(t,a.queryCacheKey,(function(t){t.status=e.pending,t.requestId=u&&t.requestId?t.requestId:i.requestId,void 0!==a.originalArgs&&(t.originalArgs=a.originalArgs),t.startedTimeStamp=i.startedTimeStamp}))})).addCase(r.fulfilled,(function(t,n){var r=n.meta,i=n.payload;ie(t,r.arg.queryCacheKey,(function(t){var n;if(t.requestId===r.requestId||Y(r.arg)){var a=u[r.arg.endpointName].merge;if(t.status=e.fulfilled,a)if(void 0!==t.data){var o=r.fulfilledTimeStamp,s=r.arg,c=r.baseQueryMeta,l=r.requestId,d=(0,J.createNextState)(t.data,(function(e){return a(e,i,{arg:s.originalArgs,baseQueryMeta:c,fulfilledTimeStamp:o,requestId:l})}));t.data=d}else t.data=i;else t.data=null==(n=u[r.arg.endpointName].structuralSharing)||n?A((0,ne.isDraft)(t.data)?(0,re.original)(t.data):t.data,i):i;delete t.error,t.fulfilledTimeStamp=r.fulfilledTimeStamp}}))})).addCase(r.rejected,(function(t,n){var r=n.meta,i=r.condition,a=r.requestId,u=n.error,o=n.payload;ie(t,r.arg.queryCacheKey,(function(t){if(i);else{if(t.requestId!==a)return;t.status=e.rejected,t.error=null!=o?o:u}}))})).addMatcher(c,(function(t,n){for(var r=s(n).queries,i=0,a=Object.entries(r);i. +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +var React = require("react"); +var syncpipe = require("syncpipe"); +var _require = require("@reduxjs/toolkit"), + createSlice = _require.createSlice; +var _require2 = require("immer"), + enableMapSet = _require2.enableMapSet; +enableMapSet(); // for use in reducers + +var _createSlice = createSlice({ + name: "checklist", + initialState: {}, + // not handled by slice itself + reducers: { + updateAll: function updateAll(state, _ref) { + var checked = _ref.payload; + var selectedEntries = new Set(); + return { + entries: syncpipe(state.entries, [function (_) { + return Object.values(_); + }, function (_) { + return _.map(function (entry) { + if (checked) { + selectedEntries.add(entry.key); + } + return [entry.key, _objectSpread(_objectSpread({}, entry), {}, { + checked: checked + })]; + }); + }, function (_) { + return Object.fromEntries(_); + }]), + selectedEntries: selectedEntries + }; + }, + update: function update(state, _ref2) { + var _ref2$payload = _ref2.payload, + key = _ref2$payload.key, + value = _ref2$payload.value; + if (value.checked !== undefined) { + if (value.checked === true) { + state.selectedEntries.add(key); + } else { + state.selectedEntries["delete"](key); + } + } + state.entries[key] = _objectSpread(_objectSpread({}, state.entries[key]), value); + }, + updateMultiple: function updateMultiple(state, _ref3) { + var payload = _ref3.payload; + payload.forEach(function (_ref4) { + var _ref5 = _slicedToArray(_ref4, 2), + key = _ref5[0], + value = _ref5[1]; + if (value.checked !== undefined) { + if (value.checked === true) { + state.selectedEntries.add(key); + } else { + state.selectedEntries["delete"](key); + } + } + state.entries[key] = _objectSpread(_objectSpread({}, state.entries[key]), value); + }); + } + } + }), + reducer = _createSlice.reducer, + actions = _createSlice.actions; +function initialState(_ref6) { + var entries = _ref6.entries, + uniqueKey = _ref6.uniqueKey, + initialValue = _ref6.initialValue; + var selectedEntries = new Set(); + return { + entries: syncpipe(entries, [function (_) { + return _.map(function (entry) { + var _entry$checked; + var key = entry[uniqueKey]; + var checked = (_entry$checked = entry.checked) !== null && _entry$checked !== void 0 ? _entry$checked : initialValue; + if (checked) { + selectedEntries.add(key); + } else { + selectedEntries["delete"](key); + } + return [key, _objectSpread(_objectSpread({}, entry), {}, { + key: key, + checked: checked + })]; + }); + }, function (_) { + return Object.fromEntries(_); + }]), + selectedEntries: selectedEntries + }; +} +module.exports = function useCheckListInput(_ref7, _ref8) { + var name = _ref7.name; + var entries = _ref8.entries, + _ref8$uniqueKey = _ref8.uniqueKey, + uniqueKey = _ref8$uniqueKey === void 0 ? "key" : _ref8$uniqueKey, + _ref8$initialValue = _ref8.initialValue, + initialValue = _ref8$initialValue === void 0 ? false : _ref8$initialValue; + var _React$useReducer = React.useReducer(reducer, null, function () { + return initialState({ + entries: entries, + uniqueKey: uniqueKey, + initialValue: initialValue + }); + } // initial state + ), + _React$useReducer2 = _slicedToArray(_React$useReducer, 2), + state = _React$useReducer2[0], + dispatch = _React$useReducer2[1]; + var toggleAllRef = React.useRef(null); + React.useEffect(function () { + if (toggleAllRef.current != null) { + var some = state.selectedEntries.size > 0; + var all = false; + if (some) { + all = state.selectedEntries.size == Object.values(state.entries).length; + } + toggleAllRef.current.checked = all; + toggleAllRef.current.indeterminate = some && !all; + } + // only needs to update when state.selectedEntries changes, not state.entries + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [state.selectedEntries]); + var reset = React.useCallback(function () { + return dispatch(actions.updateAll(initialValue)); + }, [initialValue]); + var onChange = React.useCallback(function (key, value) { + return dispatch(actions.update({ + key: key, + value: value + })); + }, []); + var updateMultiple = React.useCallback(function (entries) { + return dispatch(actions.updateMultiple(entries)); + }, []); + return React.useMemo(function () { + function toggleAll(e) { + var checked = e.target.checked; + if (e.target.indeterminate) { + checked = false; + } + dispatch(actions.updateAll(checked)); + } + function selectedValues() { + return Array.from(state.selectedEntries).map(function (key) { + return _objectSpread({}, state.entries[key]); + }); + } + return Object.assign([state, reset, { + name: name + }], { + name: name, + value: state.entries, + onChange: onChange, + selectedValues: selectedValues, + reset: reset, + someSelected: state.selectedEntries.size > 0, + updateMultiple: updateMultiple, + toggleAll: { + ref: toggleAllRef, + onChange: toggleAll + } + }); + }, [state, reset, name, onChange, updateMultiple]); +}; + +},{"@reduxjs/toolkit":11,"immer":90,"react":145,"syncpipe":171}],242:[function(require,module,exports){ +"use strict";var _require=require("@reduxjs/toolkit"),createSlice=_require.createSlice;module.exports=createSlice({name:"oauth",initialState:{loginState:"none",expectingRedirect:!1},reducers:{authorize:function(e,t){return t.payload},setToken:function(e,t){var o=t.payload;e.token="".concat(o.token_type," ").concat(o.access_token),e.loginState="login"},remove:function(e,t){t._payload;delete e.token,delete e.registration,e.loginState="logout"}}}); + +},{"@reduxjs/toolkit":11}],47:[function(require,module,exports){ +"use strict";var react=require("react"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),composite_compositeRow=require("../composite/composite-row.js"),__utils=require("../__utils-2acb1967.js");const useComboboxRow=system.createHook((o=>{let{state:e,...t}=o;const s=react.useContext(__utils.ComboboxContext);e=e||s;return t={role:"grid"===dom.getPopupRole(e?.contentElement)?"row":"presentation",...t},t=composite_compositeRow.useCompositeRow({state:e,...t}),t})),ComboboxRow=system.createComponent((o=>{const e=useComboboxRow(o);return system.createElement("div",e)}));"production"!=="production"&&(ComboboxRow.displayName="ComboboxRow"),exports.ComboboxRow=ComboboxRow,exports.useComboboxRow=useComboboxRow; + +},{"../__utils-2acb1967.js":33,"../composite/composite-row.js":57,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"react":145}],48:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),composite_compositeSeparator=require("../composite/composite-separator.js");const useComboboxSeparator=system.createHook((o=>o=composite_compositeSeparator.useCompositeSeparator(o))),ComboboxSeparator=system.createComponent((o=>{const e=useComboboxSeparator(o);return system.createElement("hr",e)}));"production"!=="production"&&(ComboboxSeparator.displayName="ComboboxSeparator"),exports.ComboboxSeparator=ComboboxSeparator,exports.useComboboxSeparator=useComboboxSeparator; + +},{"../composite/composite-separator.js":58,"ariakit-react-utils/system":23}],49:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),misc=require("ariakit-utils/misc"),platform=require("ariakit-utils/platform"),composite_compositeState=require("../composite/composite-state.js"),popover_popoverState=require("../popover/popover-state.js");const isSafariOnMobile=platform.isSafari()&&platform.isTouchDevice();function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function getMatches(e){if(0===e.limit)return[];const t=misc.normalizeString(e.value),o=!1===e.limit?void 0:e.limit,s=new RegExp(escapeRegExp(t),"i"),i=new Set;for(const t of e.list){if(o&&i.size>=o)break;0===misc.normalizeString(t).search(s)&&i.add(t)}for(const t of e.list){if(o&&i.size>=o)break;s.test(misc.normalizeString(t))&&i.add(t)}return Array.from(i)}function useComboboxState(e){let{limit:t=!1,defaultActiveId:o=null,includesBaseElement:s=!0,orientation:i="vertical",focusLoop:a=!0,focusWrap:r=!0,placement:u="bottom-start",virtualFocus:c=!isSafariOnMobile,...l}=void 0===e?{}:e;const[n,m]=hooks.useControlledState(l.defaultValue??"",l.value,l.setValue),[p,v]=hooks.useControlledState(l.defaultList||[],l.list,l.setList),f=composite_compositeState.useCompositeState({...l,defaultActiveId:o,orientation:i,focusLoop:a,focusWrap:r,virtualFocus:c,includesBaseElement:s}),d=popover_popoverState.usePopoverState({...l,placement:u}),S=hooks.usePreviousValue(f.activeId),h=hooks.usePreviousValue(f.moves),[k,b]=react.useState(!1);S!==f.activeId&&b(h!==f.moves);const g=react.useMemo((()=>{if(k)return f.items.find((e=>e.id===f.activeId&&e.value))?.value}),[k,f.items,f.activeId]),M=hooks.useDeferredValue(n),I=react.useMemo((()=>getMatches({limit:t,list:p,value:M})),[t,p,M]);hooks.useUpdateLayoutEffect((()=>{d.open||(f.setActiveId(o),f.setMoves(0))}),[d.open,f.setActiveId,f.setMoves]);const q=react.useMemo((()=>({...f,...d,value:n,setValue:m,activeValue:g,list:p,setList:v,limit:t,matches:I})),[f,d,n,m,g,p,v,t,I]);return store.useStorePublisher(q)}exports.useComboboxState=useComboboxState; + +},{"../composite/composite-state.js":59,"../popover/popover-state.js":75,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-utils/misc":28,"ariakit-utils/platform":29,"react":145}],50:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),misc=require("ariakit-utils/misc"),composite_composite=require("../composite/composite.js"),popover_popoverAnchor=require("../popover/popover-anchor.js");function isFirstItemAutoSelected(e,t,o){if(!o)return!1;const n=e.find((e=>!e.disabled&&e.value));return n?.value===t}function hasCompletionString(e,t){return!!t&&(null!=e&&(e=misc.normalizeString(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}function isInputEvent(e){return"input"===e.type}const useCombobox=system.createHook((e=>{let{state:t,focusable:o=!0,autoSelect:n=!1,showOnChange:s=!0,setValueOnChange:r=!0,showOnMouseDown:u=!0,setValueOnClick:a=!0,showOnKeyDown:i=!0,moveOnKeyPress:c=!0,autoComplete:l=(t.list.length?"list":"none"),...v}=e;const m=react.useRef(null),[f,p]=hooks.useForceUpdate(),h=react.useRef(!1);n=!!n&&t.virtualFocus;const d="inline"===l||"both"===l,[E,k]=react.useState(d);hooks.useUpdateLayoutEffect((()=>{d&&k(!0)}),[d]);const b=react.useMemo((()=>{if(!d)return t.value;if(!E)return t.value;if(isFirstItemAutoSelected(t.items,t.activeValue,n)){if(hasCompletionString(t.value,t.activeValue)){const e=t.activeValue?.slice(t.value.length)||"";return t.value+e}return t.value}return t.activeValue||t.value}),[d,t.value,E,t.items,n,t.activeValue]);react.useEffect((()=>{const e=m.current;if(!e)return;const t=()=>k(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),react.useEffect((()=>{if(!d)return;if(!E)return;if(!t.activeValue)return;if(!isFirstItemAutoSelected(t.items,t.activeValue,n))return;if(!hasCompletionString(t.value,t.activeValue))return;const e=m.current;e&&e.setSelectionRange(t.value.length,t.activeValue.length)}),[f,d,E,t.activeValue,t.items,n,t.value]),hooks.useUpdateLayoutEffect((()=>{t.value&&(h.current=!0)}),[t.value]),hooks.useSafeLayoutEffect((()=>{t.open||(h.current=!1)}),[t.open]),hooks.useUpdateLayoutEffect((()=>{n&&t.items.length&&h.current&&t.move(t.first())}),[f,t.value,n,t.items,t.move,t.first]),hooks.useSafeLayoutEffect((()=>{n||t.setActiveId(null)}),[f,n,t.setActiveId]),react.useEffect((()=>{if(!d)return;const e=m.current;if(!e)return;const o=[e,t.contentElement].filter(Boolean),n=e=>{o.every((t=>events.isFocusEventOutside(e,t)))&&t.setValue(b)};return o.forEach((e=>e?.addEventListener("focusout",n))),()=>{o.forEach((e=>e?.removeEventListener("focusout",n)))}}),[d,t.contentElement,t.setValue,b]);const y=v.onChange,C=hooks.useBooleanEvent(s),g=hooks.useBooleanEvent(r),x=hooks.useEvent((e=>{if(y?.(e),e.defaultPrevented)return;const{target:o}=e,s=e.nativeEvent;if(h.current=!0,isInputEvent(s)&&d){const e="insertText"===s.inputType,t=o.selectionStart===o.value.length;k(e&&t)}C(e)&&t.show(),g(e)&&t.setValue(o.value),d&&n&&p(),n&&h.current||t.setActiveId(null)})),w=v.onCompositionEnd,V=hooks.useEvent((e=>{w?.(e),e.defaultPrevented||(h.current=!0,n&&p())})),S=v.onMouseDown,A=hooks.useBooleanEvent(a),I=hooks.useBooleanEvent(u),L=hooks.useEvent((e=>{S?.(e),e.defaultPrevented||e.button||e.ctrlKey||(t.setActiveId(null),A(e)&&t.setValue(b),I(e)&&events.queueBeforeEvent(e.currentTarget,"mouseup",t.show))})),B=v.onKeyDown,K=hooks.useBooleanEvent(i),O=hooks.useEvent((e=>{B?.(e),e.defaultPrevented||(h.current=!1,e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||t.open||null===t.activeId&&("ArrowUp"!==e.key&&"ArrowDown"!==e.key||K(e)&&(e.preventDefault(),t.show())))})),q=v.onBlur,D=hooks.useEvent((e=>{q?.(e),e.defaultPrevented||(h.current=!1)}));v={id:hooks.useId(v.id),role:"combobox","aria-autocomplete":l,"aria-haspopup":dom.getPopupRole(t.contentElement,"listbox"),"aria-expanded":t.open,"aria-controls":t.contentElement?.id,value:b,...v,ref:hooks.useForkRef(m,v.ref),onChange:x,onCompositionEnd:V,onMouseDown:L,onKeyDown:O,onBlur:D};const P=hooks.useBooleanEvent(c);return v=composite_composite.useComposite({state:t,focusable:o,...v,moveOnKeyPress:e=>!!P(e)&&(d&&k(!0),!0)}),v=popover_popoverAnchor.usePopoverAnchor({state:t,...v}),{autoComplete:"off",...v}})),Combobox=system.createComponent((e=>{const t=useCombobox(e);return system.createElement("input",t)}));"production"!=="production"&&(Combobox.displayName="Combobox"),exports.Combobox=Combobox,exports.useCombobox=useCombobox; + +},{"../composite/composite.js":60,"../popover/popover-anchor.js":74,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/misc":28,"react":145}],39:[function(require,module,exports){ +"use strict";var hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),jsxRuntime=require("react/jsx-runtime"),button_button=require("../button/button.js");const children=jsxRuntime.jsxs("svg",{"aria-hidden":"true",display:"block",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1pt",width:"1em",height:"1em",pointerEvents:"none",children:[jsxRuntime.jsx("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),jsxRuntime.jsx("line",{x1:"5",y1:"11",x2:"11",y2:"5"})]}),useComboboxCancel=system.createHook((e=>{let{state:o,...t}=e;const n=t.onClick,s=hooks.useEvent((e=>{n?.(e),e.defaultPrevented||(o.setValue(""),o.move(null))})),r=hooks.useRefId(o.baseRef);return t={children:children,"aria-label":"Clear input","aria-controls":r,...t,onClick:s},t=button_button.useButton(t),t})),ComboboxCancel=system.createComponent((e=>{const o=useComboboxCancel(e);return system.createElement("button",o)}));"production"!=="production"&&(ComboboxCancel.displayName="ComboboxCancel"),exports.ComboboxCancel=ComboboxCancel,exports.useComboboxCancel=useComboboxCancel; + +},{"../button/button.js":36,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react/jsx-runtime":146}],67:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),button_button=require("../button/button.js");const useDisclosure=system.createHook((e=>{let{state:s,toggleOnClick:t=!0,...o}=e;const r=react.useRef(null),[u,n]=react.useState(!1);hooks.useSafeLayoutEffect((()=>{const e=s.disclosureRef.current;e&&e.isConnected||(s.disclosureRef.current=r.current);const t=s.disclosureRef.current===r.current;n(s.open&&t)}),[s.disclosureRef,s.open]);const c=o.onMouseDown,i=hooks.useEvent((e=>{s.disclosureRef.current=e.currentTarget,c?.(e)})),a=o.onClick,l=hooks.useBooleanEvent(t),d="data-disclosure"in o,f=hooks.useEvent((e=>{s.disclosureRef.current=e.currentTarget,a?.(e),e.defaultPrevented||d||l(e)&&s.toggle()}));return o={"data-disclosure":"","aria-expanded":u,"aria-controls":s.contentElement?.id,...o,ref:hooks.useForkRef(r,o.ref),onMouseDown:i,onClick:f},o=button_button.useButton(o),o})),Disclosure=system.createComponent((e=>{const s=useDisclosure(e);return system.createElement("button",s)}));"production"!=="production"&&(Disclosure.displayName="Disclosure"),exports.Disclosure=Disclosure,exports.useDisclosure=useDisclosure; + +},{"../button/button.js":36,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react":145}],44:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),store=require("ariakit-react-utils/store"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),focus=require("ariakit-utils/focus"),misc=require("ariakit-utils/misc"),composite_compositeHover=require("../composite/composite-hover.js"),composite_compositeItem=require("../composite/composite-item.js"),__utils=require("../__utils-2acb1967.js"),jsxRuntime=require("react/jsx-runtime");const useComboboxItem=system.createHook((e=>{let{state:o,value:t,hideOnClick:s=null!=t,setValueOnClick:r=!0,shouldRegisterItem:i=!0,focusOnHover:u=!1,moveOnKeyPress:n=!0,getItem:m,...c}=e;o=store.useStore(o||__utils.ComboboxContext,["setValue","move","hide","baseRef","contentElement","mounted"]);const a=react.useCallback((e=>{const o={...e,value:t};return m?m(o):o}),[t,m]),l=c.onClick,v=hooks.useBooleanEvent(r),b=hooks.useBooleanEvent(s),k=hooks.useEvent((e=>{l?.(e),e.defaultPrevented||events.isDownloading(e)||events.isOpeningInNewTab(e)||(null!=t&&v(e)&&o?.setValue(t),b(e)&&(o?.move(null),o?.hide()))})),p=c.onKeyDown,d=hooks.useEvent((e=>{if(p?.(e),e.defaultPrevented)return;const t=o?.baseRef.current;if(!t)return;if(focus.hasFocus(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(misc.queueMicrotask((()=>t.focus())),dom.isTextField(t)&&o?.setValue(t.value))}));c=hooks.useWrapElement(c,(e=>jsxRuntime.jsx(__utils.ComboboxItemValueContext.Provider,{value:t,children:e})),[t]),c={role:dom.getPopupItemRole(o?.contentElement),children:t,...c,onClick:k,onKeyDown:d};const x=hooks.useBooleanEvent(n);return c=composite_compositeItem.useCompositeItem({state:o,...c,getItem:a,shouldRegisterItem:o?.mounted&&i,moveOnKeyPress:e=>{if(!x(e))return!1;const t=new Event("combobox-item-move");return o?.baseRef.current?.dispatchEvent(t),!0}}),c=composite_compositeHover.useCompositeHover({state:o,focusOnHover:u,...c}),c})),ComboboxItem=store.createMemoComponent((e=>{const o=useComboboxItem(e);return system.createElement("div",o)}));"production"!=="production"&&(ComboboxItem.displayName="ComboboxItem"),exports.ComboboxItem=ComboboxItem,exports.useComboboxItem=useComboboxItem; + +},{"../__utils-2acb1967.js":33,"../composite/composite-hover.js":55,"../composite/composite-item.js":56,"ariakit-react-utils/hooks":20,"ariakit-react-utils/store":22,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/focus":27,"ariakit-utils/misc":28,"react":145,"react/jsx-runtime":146}],64:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),events=require("ariakit-utils/events"),focus=require("ariakit-utils/focus"),misc=require("ariakit-utils/misc"),platform=require("ariakit-utils/platform"),disclosure_disclosureContent=require("../disclosure/disclosure-content.js"),focusTrap_focusTrapRegion=require("../focus-trap/focus-trap-region.js"),focusable_focusable=require("../focusable/focusable.js"),heading_headingLevel=require("../heading/heading-level.js"),portal_portal=require("../portal/portal.js"),jsxRuntime=require("react/jsx-runtime"),dialogContext=require("../dialog-context-75cce90b.js"),reactDom=require("react-dom");function usePreviousMouseDownRef(e){const t=react.useRef();return react.useEffect((()=>{if(!e)return void(t.current=null);return events.addGlobalEventListener("mousedown",(e=>{t.current=e.target}),!0)}),[e]),t}function DialogBackdrop(e){let{state:t,backdrop:n,backdropProps:o,hideOnInteractOutside:r=!0,hideOnEscape:s=!0,hidden:i,children:u}=e;const a=react.useRef(null);t=react.useMemo((()=>({...t,setContentElement:misc.noop})),[t]),hooks.useSafeLayoutEffect((()=>{const e=a.current,n=t.contentElement;e&&n&&(e.style.zIndex=getComputedStyle(n).zIndex)}),[t.contentElement]);const c=o?.onClick,d=hooks.useBooleanEvent(r),l=usePreviousMouseDownRef(t.mounted),f=hooks.useEvent((e=>{c?.(e),e.defaultPrevented||events.isSelfTarget(e)&&l.current===e.currentTarget&&d(e)&&(e.stopPropagation(),t.hide())})),p=o?.onKeyDown,m=hooks.useBooleanEvent(s),g=hooks.useEvent((e=>{p?.(e),e.defaultPrevented||"Escape"===e.key&&events.isSelfTarget(e)&&m(e)&&t.hide()})),h=disclosure_disclosureContent.useDisclosureContent({state:t,id:void 0,role:"presentation",tabIndex:-1,hidden:i,...o,ref:hooks.useForkRef(o?.ref,a),onClick:f,onKeyDown:g,style:{position:"fixed",top:0,right:0,bottom:0,left:0,...o?.style}}),v="boolean"!=typeof n&&n||"div";return jsxRuntime.jsx(v,{...h,"data-backdrop":t.contentElement?.id,children:u})}const ignoreTags=["SCRIPT","STYLE"];function isValidElement(e,t){return!ignoreTags.includes(e.tagName)&&!t.some((t=>t&&dom.contains(e,t)))}function walkTreeOutside(e,t){for(let n of e){const o=dom.getDocument(n);for(;n?.parentElement&&n!==o.body;){for(const o of n.parentElement.children)isValidElement(o,e)&&t(o);n=n.parentElement}}}function disableElement$1(e){const t=e.getAttribute("aria-hidden")||"";e.setAttribute("aria-hidden","true");return()=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}}function disableAccessibilityTreeOutside(){const e=[];for(var t=arguments.length,n=new Array(t),o=0;o{e.unshift(disableElement$1(t))}));return()=>{e.forEach((e=>e()))}}function disableElement(e){if(!("style"in e))return misc.noop;const t=e.style.pointerEvents;e.style.pointerEvents="none";return()=>{e.style.pointerEvents=t??""}}function disablePointerEventsOutside(){const e=[];for(var t=arguments.length,n=new Array(t),o=0;o{e.unshift(disableElement(t))}));return()=>{e.forEach((e=>e()))}}function prependHiddenDismiss(e,t){const n=dom.getDocument(e).createElement("button");n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",n.style.border="0px",n.style.clip="rect(0 0 0 0)",n.style.height="1px",n.style.margin="-1px",n.style.overflow="hidden",n.style.padding="0px",n.style.position="absolute",n.style.whiteSpace="nowrap",n.style.width="1px",n.addEventListener("click",t),e.prepend(n);return()=>{n.removeEventListener("click",t),n.remove()}}function useChampionDialog(e,t,n){const[o,r]=hooks.useForceUpdate(),s=react.useCallback((()=>{if(!n)return!1;const o=e.current;if(!o)return!1;const{body:r}=dom.getDocument(o),s=r.getAttribute(t);return!s||s===o.id}),[o,n,t]);return hooks.useSafeLayoutEffect((()=>{const o=e.current;if(!o)return;if(!n)return;const{body:i}=dom.getDocument(o);if(!s()){const e=new MutationObserver((()=>reactDom.flushSync(r)));return e.observe(i,{attributeFilter:[t]}),()=>e.disconnect()}return i.setAttribute(t,o.id),()=>{i.removeAttribute(t)}}),[o,e,n,s,t]),s}function useFocusOnChildUnmount(e,t){react.useEffect((()=>{if(!t.open)return;const n=e.current;if(!n)return;const o=new MutationObserver((e=>{let[t]=e;if(!t)return;if(t.target!==n)return;const o=dom.getDocument(n);dom.getActiveElement(n)===o.body&&n.focus()}));return o.observe(n,{childList:!0,subtree:!0}),()=>o.disconnect()}),[t.open,e])}function isInDocument(e){return"HTML"===e.tagName||dom.contains(dom.getDocument(e).body,e)}function isDisclosure(e,t){if(dom.contains(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=dom.getDocument(e).getElementById(n);if(t)return dom.contains(e,t)}return!1}function isBackdrop$1(e,t){return!!e&&(!!t&&(t.hasAttribute("data-backdrop")&&t.getAttribute("data-backdrop")===e.id))}function dialogContains(e){return t=>{const n=t.current;return!!n&&(!!dom.contains(n,e)||!!isBackdrop$1(n,e))}}function useEventOutside(e){let{type:t,listener:n,dialogRef:o,nestedDialogs:r,disclosureRef:s,enabled:i,capture:u}=e;const a=hooks.useEvent(n),c=hooks.useLiveRef(r);react.useEffect((()=>{if(!i)return;return events.addGlobalEventListener(t,(e=>{const t=o.current,n=s?.current,r=e.target;t&&r&&isInDocument(r)&&(dom.contains(t,r)||n&&isDisclosure(n,r)||r.hasAttribute("data-focus-trap")||c.current.some(dialogContains(r))||a(e))}),u)}),[i,o,s,a,u])}function shouldHideOnInteractOutside(e,t){return"function"==typeof e?e(t):!!e}function useHideOnInteractOutside(e,t,n){let{state:o,modal:r,hideOnInteractOutside:s,enabled:i=o.open}=n;const u=usePreviousMouseDownRef(i),a={disclosureRef:o.disclosureRef,enabled:i,dialogRef:e,nestedDialogs:t,capture:!0};useEventOutside({...a,type:"mousedown",listener:t=>{const n=e.current;n&&r&&!shouldHideOnInteractOutside(s,t)&&(n.focus(),t.preventDefault(),t.stopPropagation())}}),useEventOutside({...a,type:"click",listener:t=>{const n=u.current;if(!n)return;if(!shouldHideOnInteractOutside(s,t)){if(!r)return;return t.preventDefault(),void t.stopPropagation()}const i=e.current;i&&dom.contains(i,n)||o.hide()}}),useEventOutside({...a,type:"focusin",listener:t=>{const n=e.current;if(n){if(!shouldHideOnInteractOutside(s,t)){if(!r)return;return n.focus(),t.preventDefault(),void t.stopPropagation()}t.target!==dom.getDocument(n)&&o.hide()}}}),useEventOutside({...a,type:"contextmenu",listener:t=>{const n=e.current;if(n){if(!shouldHideOnInteractOutside(s,t)){if(!r)return;return n.focus(),t.preventDefault(),void t.stopPropagation()}o.hide()}}})}const NestedDialogsContext=react.createContext({});function useNestedDialogs(e,t){let{state:n,modal:o}=t;const r=react.useContext(NestedDialogsContext),[s,i]=react.useState([]),[u,a]=react.useState([]),c=react.useCallback((e=>{const t=r.addDialog?.(e);return a((t=>[...t,e])),()=>{t?.(),a((t=>t.filter((t=>t!==e))))}}),[r.addDialog]),d=react.useCallback((e=>{const t=r.showModal?.(e);return i((t=>[...t,e])),()=>{t?.(),i((t=>t.filter((t=>t!==e))))}}),[r.showModal]);hooks.useSafeLayoutEffect((()=>r.addDialog?.(e)),[r.addDialog,e]),hooks.useSafeLayoutEffect((()=>{if(o&&n.open)return r.showModal?.(e)}),[o,n.open,r.showModal,e]),hooks.useSafeLayoutEffect((()=>{!1===r.open&&n.open&&n.hide()}),[r.open,n.open,n.hide]);const l=react.useMemo((()=>({open:n.open,addDialog:c,showModal:d})),[n.open,c,d]);return{nestedDialogs:u,openModals:s,wrapElement:react.useCallback((e=>jsxRuntime.jsx(NestedDialogsContext.Provider,{value:l,children:e})),[l])}}function assignStyle(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function setCSSProperty(e,t,n){if(!e)return()=>{};const o=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{o?e.style.setProperty(t,o):e.style.removeProperty(t)}}function getPaddingProperty(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function usePreventBodyScroll(e,t){const n=useChampionDialog(e,"data-dialog-body-scroll",t);hooks.useSafeLayoutEffect((()=>{const t=e.current;if(!t)return;if(!n())return;const o=dom.getDocument(t),r=dom.getWindow(t),{documentElement:s,body:i}=o,u=r.innerWidth-s.clientWidth,a=getPaddingProperty(s),c=platform.isApple()&&!platform.isMac();return misc.chain(setCSSProperty(s,"--scrollbar-width",`${u}px`),c?(()=>{const{scrollX:e,scrollY:t,visualViewport:n}=r,o=n?.offsetLeft??0,s=n?.offsetTop??0,c=assignStyle(i,{position:"fixed",overflow:"hidden",top:-(t-Math.floor(s))+"px",left:-(e-Math.floor(o))+"px",right:"0",[a]:`${u}px`});return()=>{c(),"test"!=="production"&&r.scrollTo(e,t)}})():assignStyle(i,{overflow:"hidden",[a]:`${u}px`}))}),[e,n])}const isSafariBrowser=platform.isSafari();function isBackdrop(e,t){const n=e.id;if(n)return t.getAttribute("data-backdrop")===n}function isInDialog(e){return t=>t.current&&dom.contains(t.current,e)}function isAlreadyFocusingAnotherElement(e,t){const n=dom.getActiveElement();return!!n&&(!dom.contains(e,n)&&(!isBackdrop(e,n)&&(!t?.some(isInDialog(n))&&!!focus.isFocusable(n))))}const useDialog=system.createHook((e=>{let{state:t,focusable:n=!0,modal:o=!0,portal:r=!!o,backdrop:s=!!o,backdropProps:i,hideOnEscape:u=!0,hideOnInteractOutside:a=!0,preventBodyScroll:c=!!o,autoFocusOnShow:d=!0,autoFocusOnHide:l=!0,initialFocusRef:f,finalFocusRef:p,...m}=e;const g=react.useRef(null),h=react.useRef(t.open),{portalRef:v,portalNode:b,domReady:y}=hooks.usePortalRef(r,m.portalRef),E=m.preserveTabOrder&&!o&&t.mounted,k=t.open&&!t.animating,D=o||r&&E&&platform.isSafari(),x=hooks.useId(m.id);hooks.useSafeLayoutEffect((()=>{if(!k)return;const e=g.current,n=dom.getActiveElement(e,!0);n&&"BODY"!==n.tagName&&(e&&dom.contains(e,n)||(t.disclosureRef.current=n))}),[k]);const O=useNestedDialogs(g,{state:t,modal:o}),{nestedDialogs:R,openModals:C,wrapElement:S}=O,w=hooks.useLiveRef(R);usePreventBodyScroll(g,c&&t.mounted),useFocusOnChildUnmount(g,t),useHideOnInteractOutside(g,R,{state:t,modal:o,hideOnInteractOutside:a,enabled:t.open}),isSafariBrowser&&react.useEffect((()=>{if(!t.mounted)return;const e=t.disclosureRef.current;if(!e)return;if(!dom.isButton(e))return;const n=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),events.queueBeforeEvent(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||focus.focusIfNeeded(e)}))};return e.addEventListener("mousedown",n),()=>{e.removeEventListener("mousedown",n)}}),[t.mounted,t.disclosureRef]),react.useEffect((()=>{if(!t.mounted)return;if(!y)return;const e=g.current;if(e&&D){if(e.querySelector("[data-dialog-dismiss]"))return;return prependHiddenDismiss(e,t.hide)}}),[t.mounted,y,D,t.hide]);const P=useChampionDialog(g,"data-dialog-disable-outside",k&&!C.length&&D);hooks.useSafeLayoutEffect((()=>{if(!P())return;const e=r?b:g.current;return o?misc.chain(disableAccessibilityTreeOutside(e),s?null:disablePointerEventsOutside(e)):disableAccessibilityTreeOutside(e)}),[P,r,b,o,s]);const L=react.useRef(),I=!!d,A=hooks.useBooleanEvent(d);react.useEffect((()=>{if(!k)return;if(!I)return;if(!y)return;const e=w.current?.some((e=>e.current&&!e.current.hidden));if(e)return;const n=t.contentElement;if(!n?.isConnected)return;const o=f?.current,s=o||focus.getFirstTabbableIn(n,!0,r&&E)||n,i=L.current;if(L.current=o,o===i){const e=dom.getActiveElement(n,!0);if(e&&dom.contains(n,e))return}A(s)&&s.focus()}),[k,I,y,t.contentElement,f,r,E,A]);const T=!!l,j=hooks.useBooleanEvent(l);react.useEffect((()=>{const e=g.current,n=h.current;if(h.current=t.open,!n)return;if(!T)return;if(!e)return;const o=()=>{const n=w.current;if(isAlreadyFocusingAnotherElement(e,n))return;let o=p?.current||t.disclosureRef.current;if(o){if(o.id){const e=dom.getDocument(o),t=`[aria-activedescendant="${o.id}"]`,n=e.querySelector(t);n&&(o=n)}if(!focus.isFocusable(o)){const e=dom.closest(o,"[data-dialog]");if(e&&e.id){const t=dom.getDocument(e),n=`[aria-controls~="${e.id}"]`,r=t.querySelector(n);r&&(o=r)}}if(!j(o))return;o.focus()}};return t.open?o:o()}),[T,t.open,p,t.disclosureRef,j]);const B=hooks.useBooleanEvent(u);react.useEffect((()=>{if(!y)return;if(!t.mounted)return;return events.addGlobalEventListener("keydown",(e=>{const n=g.current;if(!n)return;const o=e.target,r=t.disclosureRef.current;if("Escape"!==e.key)return;if(e.defaultPrevented)return;if(!o)return;(()=>{if(dom.contains(n,o)){return!w.current.some(isInDialog(o))}return!(!r||!dom.contains(r,o))})()&&B(e)&&t.hide()}))}),[y,t.mounted,t.disclosureRef,B,t.hide]),m=hooks.useWrapElement(m,S,[S]),m=hooks.useWrapElement(m,(e=>jsxRuntime.jsx(heading_headingLevel.HeadingLevel,{level:o?1:void 0,children:e})),[o]),m=focusTrap_focusTrapRegion.useFocusTrapRegion({...m,enabled:t.open&&o&&!C.length});const q=m.hidden;m=hooks.useWrapElement(m,(e=>s?jsxRuntime.jsx(DialogBackdrop,{state:t,backdrop:s,backdropProps:i,hideOnInteractOutside:a,hideOnEscape:u,hidden:q,children:e}):e),[t,s,i,a,u,q]);const[M,F]=react.useState(),[N,H]=react.useState();return m=hooks.useWrapElement(m,(e=>jsxRuntime.jsx(dialogContext.DialogContext.Provider,{value:t,children:jsxRuntime.jsx(dialogContext.DialogHeadingContext.Provider,{value:F,children:jsxRuntime.jsx(dialogContext.DialogDescriptionContext.Provider,{value:H,children:e})})})),[t]),m={id:x,"data-dialog":"",role:"dialog",tabIndex:n?-1:void 0,"aria-labelledby":M,"aria-describedby":N,...m,ref:hooks.useForkRef(g,m.ref)},m=disclosure_disclosureContent.useDisclosureContent({state:t,...m}),m=focusable_focusable.useFocusable({...m,focusable:n}),m=portal_portal.usePortal({portal:r,...m,portalRef:v,preserveTabOrder:E}),m})),Dialog=system.createComponent((e=>{const t=useDialog(e);return system.createElement("div",t)}));"production"!=="production"&&(Dialog.displayName="Dialog"),exports.Dialog=Dialog,exports.useDialog=useDialog; + +},{"../dialog-context-75cce90b.js":61,"../disclosure/disclosure-content.js":65,"../focus-trap/focus-trap-region.js":68,"../focusable/focusable.js":70,"../heading/heading-level.js":73,"../portal/portal.js":78,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"ariakit-utils/dom":25,"ariakit-utils/events":26,"ariakit-utils/focus":27,"ariakit-utils/misc":28,"ariakit-utils/platform":29,"react":145,"react-dom":109,"react/jsx-runtime":146}],204:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +var _require = require("wouter"), + Link = _require.Link; +module.exports = function Username(_ref) { + var user = _ref.user, + _ref$link = _ref.link, + link = _ref$link === void 0 ? true : _ref$link; + var className = "user"; + var isLocal = user.domain == null; + if (user.suspended) { + className += " suspended"; + } + if (isLocal) { + className += " local"; + } + var icon = isLocal ? { + fa: "fa-home", + info: "Local user" + } : { + fa: "fa-external-link-square", + info: "Remote user" + }; + var Element = "div"; + var href = null; + if (link) { + Element = Link; + href = "/settings/admin/accounts/".concat(user.id); + } + return /*#__PURE__*/React.createElement(Element, { + className: className, + to: href + }, /*#__PURE__*/React.createElement("span", { + className: "acct" + }, "@", user.account.acct), /*#__PURE__*/React.createElement("i", { + className: "fa fa-fw ".concat(icon.fa), + "aria-hidden": "true", + title: icon.info + }), /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, icon.info)); +}; + +},{"react":145,"wouter":179}],208:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +var _require = require("wouter"), + Link = _require.Link; +module.exports = function BackButton(_ref) { + var to = _ref.to; + return /*#__PURE__*/React.createElement(Link, { + to: to + }, /*#__PURE__*/React.createElement("a", { + className: "button" + }, "< back")); +}; + +},{"react":145,"wouter":179}],229:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var _require = require("wouter"), + Link = _require.Link, + Route = _require.Route, + Redirect = _require.Redirect, + Switch = _require.Switch, + useLocation = _require.useLocation, + useRouter = _require.useRouter; +var syncpipe = require("syncpipe"); +var _require2 = require("./util"), + RoleContext = _require2.RoleContext, + useHasPermission = _require2.useHasPermission, + checkPermission = _require2.checkPermission, + BaseUrlContext = _require2.BaseUrlContext; +var ActiveRouteCtx = React.createContext(); +function useActiveRoute() { + return React.useContext(ActiveRouteCtx); +} +function Sidebar(menuTree, routing) { + var components = menuTree.map(function (m) { + return m.MenuEntry; + }); + return function SidebarComponent() { + var _routing$find; + var router = useRouter(); + var _useLocation = useLocation(), + _useLocation2 = _slicedToArray(_useLocation, 1), + location = _useLocation2[0]; + var activeRoute = (_routing$find = routing.find(function (l) { + var _router$matcher = router.matcher(l.routingUrl, location), + _router$matcher2 = _slicedToArray(_router$matcher, 1), + match = _router$matcher2[0]; + return match; + })) === null || _routing$find === void 0 ? void 0 : _routing$find.routingUrl; + return /*#__PURE__*/React.createElement("nav", { + className: "menu-tree" + }, /*#__PURE__*/React.createElement("ul", { + className: "top-level" + }, /*#__PURE__*/React.createElement(ActiveRouteCtx.Provider, { + value: activeRoute + }, components))); + }; +} +function ViewRouter(routing, defaultRoute) { + return function ViewRouterComponent() { + var permissions = React.useContext(RoleContext); + var filteredRoutes = React.useMemo(function () { + return syncpipe(routing, [function (_) { + return _.filter(function (route) { + return checkPermission(route.permissions, permissions); + }); + }, function (_) { + return _.map(function (route) { + return /*#__PURE__*/React.createElement(Route, { + path: route.routingUrl, + key: route.key + }, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(BaseUrlContext.Provider, { + value: route.url + }, route.view))); + }); + }]); + }, [permissions]); + return /*#__PURE__*/React.createElement(Switch, null, filteredRoutes, /*#__PURE__*/React.createElement(Redirect, { + to: defaultRoute + })); + }; +} +function MenuComponent(_ref) { + var type = _ref.type, + name = _ref.name, + url = _ref.url, + icon = _ref.icon, + permissions = _ref.permissions, + links = _ref.links, + level = _ref.level, + children = _ref.children; + var activeRoute = useActiveRoute(); + if (!useHasPermission(permissions)) { + return null; + } + var classes = [type]; + if (level == 0) { + classes.push("top-level"); + } else if (level == 1) { + classes.push("expanding"); + } else { + classes.push("nested"); + } + var isActive = links.includes(activeRoute); + if (isActive) { + classes.push("active"); + } + var className = classes.join(" "); + return /*#__PURE__*/React.createElement("li", { + className: className + }, /*#__PURE__*/React.createElement(Link, { + href: url + }, /*#__PURE__*/React.createElement("a", { + tabIndex: level == 0 ? "-1" : null, + className: "title" + }, icon && /*#__PURE__*/React.createElement("i", { + className: "icon fa fa-fw ".concat(icon), + "aria-hidden": "true" + }), name)), type == "category" && (level == 0 || isActive) && (children === null || children === void 0 ? void 0 : children.length) > 0 && /*#__PURE__*/React.createElement("ul", null, children)); +} +var ErrorBoundary = /*#__PURE__*/function (_React$Component) { + _inherits(ErrorBoundary, _React$Component); + var _super = _createSuper(ErrorBoundary); + function ErrorBoundary() { + var _this; + _classCallCheck(this, ErrorBoundary); + _this = _super.call(this); + _this.state = {}; + _this.resetErrorBoundary = function () { + _this.setState({}); + }; + return _this; + } + _createClass(ErrorBoundary, [{ + key: "componentDidCatch", + value: function componentDidCatch(_e, info) { + this.setState(_objectSpread(_objectSpread({}, this.state), {}, { + componentStack: info.componentStack + })); + } + }, { + key: "render", + value: function render() { + if (this.state.hadError) { + return /*#__PURE__*/React.createElement(ErrorFallback, { + error: this.state.error, + componentStack: this.state.componentStack, + resetErrorBoundary: this.resetErrorBoundary + }); + } else { + return this.props.children; + } + } + }], [{ + key: "getDerivedStateFromError", + value: function getDerivedStateFromError(error) { + return { + hadError: true, + error: error + }; + } + }]); + return ErrorBoundary; +}(React.Component); +function ErrorFallback(_ref2) { + var error = _ref2.error, + componentStack = _ref2.componentStack, + resetErrorBoundary = _ref2.resetErrorBoundary; + return /*#__PURE__*/React.createElement("div", { + className: "error" + }, /*#__PURE__*/React.createElement("p", null, "An error occured, please report this on the ", /*#__PURE__*/React.createElement("a", { + href: "https://github.com/superseriousbusiness/gotosocial/issues" + }, "GoToSocial issue tracker"), " or ", /*#__PURE__*/React.createElement("a", { + href: "https://matrix.to/#/#gotosocial-help:superseriousbusiness.org" + }, "Matrix support room"), ".", /*#__PURE__*/React.createElement("br", null), "Include the details below:"), /*#__PURE__*/React.createElement("div", { + className: "details" + }, /*#__PURE__*/React.createElement("pre", null, error.name, ": ", error.message, componentStack && ["\n\nComponent trace:", componentStack], ["\n\nError trace: ", error.stack])), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("button", { + onClick: resetErrorBoundary + }, "Try again"), " or ", /*#__PURE__*/React.createElement("a", { + href: "" + }, "refresh the page"))); +} +module.exports = { + Sidebar: Sidebar, + ViewRouter: ViewRouter, + MenuComponent: MenuComponent +}; + +},{"./util":231,"react":145,"syncpipe":171,"wouter":179}],12:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("./rtk-query.cjs.production.min.js"):module.exports=require("./rtk-query.cjs.development.js"); + +},{"./rtk-query.cjs.development.js":16,"./rtk-query.cjs.production.min.js":17}],62:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),disclosure_disclosure=require("../disclosure/disclosure.js");const useDialogDisclosure=system.createHook((s=>{let{state:e,...o}=s;return o=disclosure_disclosure.useDisclosure({state:e,...o}),o})),DialogDisclosure=system.createComponent((s=>{const e=useDialogDisclosure(s);return system.createElement("button",e)}));"production"!=="production"&&(DialogDisclosure.displayName="DialogDisclosure"),exports.DialogDisclosure=DialogDisclosure,exports.useDialogDisclosure=useDialogDisclosure; + +},{"../disclosure/disclosure.js":67,"ariakit-react-utils/system":23}],76:[function(require,module,exports){ +"use strict";var react=require("react"),hooks=require("ariakit-react-utils/hooks"),system=require("ariakit-react-utils/system"),dialog_dialog=require("../dialog/dialog.js"),__utils=require("../__utils-0b3ca09c.js"),jsxRuntime=require("react/jsx-runtime");const usePopover=system.createHook((e=>{let{state:t,modal:o=!1,portal:r=!!o,preserveTabOrder:s=!0,autoFocusOnShow:a=!0,wrapperProps:n,...i}=e;const u=t.popoverRef;hooks.useSafeLayoutEffect((()=>{const e=u.current,o=t.contentElement;e&&o&&(e.style.zIndex=getComputedStyle(o).zIndex)}),[u,t.contentElement]);const[l,p]=react.useState(!1),{portalRef:c,domReady:d}=hooks.usePortalRef(r,i.portalRef);return hooks.useSafeLayoutEffect((()=>{if(!d)return;if(!t.mounted)return;if(!t.contentElement?.isConnected)return;const e=requestAnimationFrame((()=>{p(!0)}));return()=>{cancelAnimationFrame(e)}}),[d,t.mounted,t.contentElement]),i=hooks.useWrapElement(i,(e=>jsxRuntime.jsx("div",{role:"presentation",...n,style:{position:t.fixed?"fixed":"absolute",top:0,left:0,...n?.style},ref:u,children:e})),[t.fixed,u,n]),i=hooks.useWrapElement(i,(e=>jsxRuntime.jsx(__utils.PopoverContext.Provider,{value:t,children:e})),[t]),i={...i,style:{position:"relative",...i.style}},i=dialog_dialog.useDialog({state:t,modal:o,preserveTabOrder:s,portal:r,autoFocusOnShow:l&&a,...i,portalRef:c}),i})),Popover=system.createComponent((e=>{const t=usePopover(e);return system.createElement("div",t)}));"production"!=="production"&&(Popover.displayName="Popover"),exports.Popover=Popover,exports.usePopover=usePopover; + +},{"../__utils-0b3ca09c.js":31,"../dialog/dialog.js":64,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react":145,"react/jsx-runtime":146}],230:[function(require,module,exports){ +"use strict";function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t{let{state:o,...s}=e;const r=s.onMouseDown,i=hooks.useEvent((e=>{r?.(e),e.preventDefault(),o.move(null)})),t=s.onClick,n=hooks.useEvent((e=>{t?.(e),e.defaultPrevented||(o.disclosureRef.current=o.baseRef.current)})),u=o.open?"Hide popup":"Show popup";return s={children:children,tabIndex:-1,"aria-label":u,...s,onMouseDown:i,onClick:n},s=dialog_dialogDisclosure.useDialogDisclosure({state:o,...s}),s})),ComboboxDisclosure=system.createComponent((e=>{const o=useComboboxDisclosure(e);return system.createElement("button",o)}));"production"!=="production"&&(ComboboxDisclosure.displayName="ComboboxDisclosure"),exports.ComboboxDisclosure=ComboboxDisclosure,exports.useComboboxDisclosure=useComboboxDisclosure; + +},{"../dialog/dialog-disclosure.js":62,"ariakit-react-utils/hooks":20,"ariakit-react-utils/system":23,"react/jsx-runtime":146}],46:[function(require,module,exports){ +"use strict";var system=require("ariakit-react-utils/system"),dom=require("ariakit-utils/dom"),popover_popover=require("../popover/popover.js"),combobox_comboboxList=require("./combobox-list.js");function isController(o){if(!o)return!1;if("id"in o){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t`[aria-controls="${o}"]`)).join(", ");return!!s&&dom.matches(o,s)}return!1}const useComboboxPopover=system.createHook((o=>{let{state:e,tabIndex:r,hideOnInteractOutside:t=!0,...s}=o;return s=combobox_comboboxList.useComboboxList({state:e,...s}),s=popover_popover.usePopover({state:e,autoFocusOnShow:!1,autoFocusOnHide:!1,finalFocusRef:e.baseRef,...s,modal:!1,hideOnInteractOutside:o=>{const r=e.contentElement?.id,s=e.baseRef.current?.id;if(isController(o.target,r,s))return!1;return"function"==typeof t?t(o):t}}),s})),ComboboxPopover=system.createComponent((o=>{const e=useComboboxPopover(o);return system.createElement("div",e)}));"production"!=="production"&&(ComboboxPopover.displayName="ComboboxPopover"),exports.ComboboxPopover=ComboboxPopover,exports.useComboboxPopover=useComboboxPopover; + +},{"../popover/popover.js":76,"./combobox-list.js":45,"ariakit-react-utils/system":23,"ariakit-utils/dom":25}],13:[function(require,module,exports){ +"use strict";"production"==="production"?module.exports=require("./rtk-query-react.cjs.production.min.js"):module.exports=require("./rtk-query-react.cjs.development.js"); + +},{"./rtk-query-react.cjs.development.js":14,"./rtk-query-react.cjs.production.min.js":15}],51:[function(require,module,exports){ +"use strict";var combobox_comboboxCancel=require("./combobox-cancel.js"),combobox_comboboxDisclosure=require("./combobox-disclosure.js"),combobox_comboboxGroupLabel=require("./combobox-group-label.js"),combobox_comboboxGroup=require("./combobox-group.js"),combobox_comboboxItemValue=require("./combobox-item-value.js"),combobox_comboboxItem=require("./combobox-item.js"),combobox_comboboxList=require("./combobox-list.js"),combobox_comboboxPopover=require("./combobox-popover.js"),combobox_comboboxRow=require("./combobox-row.js"),combobox_comboboxSeparator=require("./combobox-separator.js"),combobox_comboboxState=require("./combobox-state.js"),combobox_combobox=require("./combobox.js");exports.ComboboxCancel=combobox_comboboxCancel.ComboboxCancel,exports.useComboboxCancel=combobox_comboboxCancel.useComboboxCancel,exports.ComboboxDisclosure=combobox_comboboxDisclosure.ComboboxDisclosure,exports.useComboboxDisclosure=combobox_comboboxDisclosure.useComboboxDisclosure,exports.ComboboxGroupLabel=combobox_comboboxGroupLabel.ComboboxGroupLabel,exports.useComboboxGroupLabel=combobox_comboboxGroupLabel.useComboboxGroupLabel,exports.ComboboxGroup=combobox_comboboxGroup.ComboboxGroup,exports.useComboboxGroup=combobox_comboboxGroup.useComboboxGroup,exports.ComboboxItemValue=combobox_comboboxItemValue.ComboboxItemValue,exports.useComboboxItemValue=combobox_comboboxItemValue.useComboboxItemValue,exports.ComboboxItem=combobox_comboboxItem.ComboboxItem,exports.useComboboxItem=combobox_comboboxItem.useComboboxItem,exports.ComboboxList=combobox_comboboxList.ComboboxList,exports.useComboboxList=combobox_comboboxList.useComboboxList,exports.ComboboxPopover=combobox_comboboxPopover.ComboboxPopover,exports.useComboboxPopover=combobox_comboboxPopover.useComboboxPopover,exports.ComboboxRow=combobox_comboboxRow.ComboboxRow,exports.useComboboxRow=combobox_comboboxRow.useComboboxRow,exports.ComboboxSeparator=combobox_comboboxSeparator.ComboboxSeparator,exports.useComboboxSeparator=combobox_comboboxSeparator.useComboboxSeparator,exports.useComboboxState=combobox_comboboxState.useComboboxState,exports.Combobox=combobox_combobox.Combobox,exports.useCombobox=combobox_combobox.useCombobox; + +},{"./combobox-cancel.js":39,"./combobox-disclosure.js":40,"./combobox-group-label.js":41,"./combobox-group.js":42,"./combobox-item-value.js":43,"./combobox-item.js":44,"./combobox-list.js":45,"./combobox-popover.js":46,"./combobox-row.js":47,"./combobox-separator.js":48,"./combobox-state.js":49,"./combobox.js":50}],236:[function(require,module,exports){ +"use strict";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t. +*/ + +"use strict"; + +var _excluded = ["field", "items", "label", "children"]; +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } +function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +var React = require("react"); +var _require = require("ariakit/combobox"), + Combobox = _require.Combobox, + ComboboxItem = _require.ComboboxItem, + ComboboxPopover = _require.ComboboxPopover; +module.exports = function ComboBox(_ref) { + var field = _ref.field, + items = _ref.items, + label = _ref.label, + children = _ref.children, + inputProps = _objectWithoutProperties(_ref, _excluded); + return /*#__PURE__*/React.createElement("div", { + className: "form-field combobox-wrapper" + }, /*#__PURE__*/React.createElement("label", null, label, /*#__PURE__*/React.createElement("div", { + className: "row" + }, /*#__PURE__*/React.createElement(Combobox, _extends({ + state: field.state, + className: "combobox input" + }, inputProps)), children)), /*#__PURE__*/React.createElement(ComboboxPopover, { + state: field.state, + className: "popover" + }, items.map(function (_ref2) { + var _ref3 = _slicedToArray(_ref2, 2), + key = _ref3[0], + value = _ref3[1]; + return /*#__PURE__*/React.createElement(ComboboxItem, { + className: "combobox-item", + key: key, + value: key + }, value); + }))); +}; + +},{"ariakit/combobox":51,"react":145}],222:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var _require = require("ariakit/combobox"), + useComboboxState = _require.useComboboxState; +var _default = ""; +module.exports = function useComboBoxInput(_ref, _ref2) { + var _ref3; + var name = _ref.name, + Name = _ref.Name; + var _ref2$initialValue = _ref2.initialValue, + initialValue = _ref2$initialValue === void 0 ? _default : _ref2$initialValue; + var _React$useState = React.useState(false), + _React$useState2 = _slicedToArray(_React$useState, 2), + isNew = _React$useState2[0], + setIsNew = _React$useState2[1]; + var state = useComboboxState({ + defaultValue: initialValue, + gutter: 0, + sameWidth: true + }); + function reset() { + state.setValue(initialValue); + } + return Object.assign([state, reset, (_ref3 = {}, _defineProperty(_ref3, name, state.value), _defineProperty(_ref3, "name", name), _defineProperty(_ref3, "".concat(name, "IsNew"), isNew), _defineProperty(_ref3, "set".concat(Name, "IsNew"), setIsNew), _ref3)], { + name: name, + state: state, + value: state.value, + setter: function setter(val) { + return state.setValue(val); + }, + hasChanged: function hasChanged() { + return state.value != initialValue; + }, + isNew: isNew, + setIsNew: setIsNew, + reset: reset, + _default: _default + }); +}; + +},{"ariakit/combobox":51,"react":145}],238:[function(require,module,exports){ +"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var _excluded=["key","findKey","arg"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}var syncpipe=require("syncpipe"),base=require("./base");function makeCacheMutation(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.key,o=r.findKey,i=r.arg,u=_objectWithoutProperties(r,_excluded);return{onQueryStarted:function(r,c){var a=c.dispatch;c.queryFulfilled.then((function(r){var c=r.data;a(base.util.updateQueryData(t,i,(function(t){null!=o&&(n=o(t,c)),e(t,c,_objectSpread({key:n},u))})))}))}}}}module.exports={unwrapRes:function(e){if(null!=e.error)throw e.error;return e.data},domainListToObject:function(e){return syncpipe(e,[function(e){return e.map((function(e){return[e.domain,e]}))},function(e){return Object.fromEntries(e)}])},replaceCacheOnMutation:makeCacheMutation((function(e,t){Object.assign(e,t)})),appendCacheOnMutation:makeCacheMutation((function(e,t){e.push(t)})),spliceCacheOnMutation:makeCacheMutation((function(e,t,r){var n=r.key;e.splice(n,1)})),updateCacheOnMutation:makeCacheMutation((function(e,t,r){e[r.key]=t})),removeFromCacheOnMutation:makeCacheMutation((function(e,t,r){delete e[r.key]})),editCacheOnMutation:makeCacheMutation((function(e,t,r){(0,r.update)(e,t)}))}; + +},{"./base":236,"syncpipe":171}],241:[function(require,module,exports){ +"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(e){var r=_toPrimitive(e,"string");return"symbol"===_typeof(r)?r:String(r)}function _toPrimitive(e,r){if("object"!==_typeof(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!==_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var _require=require("redux"),combineReducers=_require.combineReducers,_require2=require("@reduxjs/toolkit"),configureStore=_require2.configureStore,_require3=require("redux-persist"),persistStore=_require3.persistStore,persistReducer=_require3.persistReducer,FLUSH=_require3.FLUSH,REHYDRATE=_require3.REHYDRATE,PAUSE=_require3.PAUSE,PERSIST=_require3.PERSIST,PURGE=_require3.PURGE,REGISTER=_require3.REGISTER,query=require("../lib/query/base"),_require4=require("bluebird"),Promise=_require4.Promise,combinedReducers=combineReducers(_defineProperty({oauth:require("./oauth").reducer},query.reducerPath,query.reducer)),persistedReducer=persistReducer({key:"gotosocial-settings",storage:require("redux-persist/lib/storage").default,stateReconciler:require("redux-persist/lib/stateReconciler/autoMergeLevel1").default,whitelist:["oauth"],migrate:function(e){return Promise.try((function(){return null!=(null==e?void 0:e.oauth)&&(e.oauth.expectingRedirect=!1),e}))}},combinedReducers),store=configureStore({reducer:persistedReducer,middleware:function(e){return e({serializableCheck:{ignoredActions:[FLUSH,REHYDRATE,PAUSE,PERSIST,PURGE,REGISTER]}}).concat(query.middleware)}}),persistor=persistStore(store);module.exports={store:store,persistor:persistor}; + +},{"../lib/query/base":236,"./oauth":242,"@reduxjs/toolkit":11,"bluebird":83,"redux":164,"redux-persist":152,"redux-persist/lib/stateReconciler/autoMergeLevel1":158,"redux-persist/lib/storage":162}],225:[function(require,module,exports){ +"use strict";var React=require("react"),getByDot=require("get-by-dot").default;function capitalizeFirst(e){return e.slice(0,1).toUpperCase+e.slice(1)}function selectorByKey(e){return e.includes("[")&&(e=e.replace(/\[/g,".").replace(/\]/g,"")),function(u){return null==u?void 0:getByDot(u,e)}}function makeHook(e){return function(u){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=React.useMemo((function(){return capitalizeFirst(u)}),[u]),n=React.useMemo((function(){return selectorByKey(u)}),[u]),a=null!==(t=o.valueSelector)&&void 0!==t?t:n;o.initialValue=React.useMemo((function(){return null==o.source?o.defaultValue:null!==(e=a(o.source))&&void 0!==e?e:o.defaultValue;var e}),[o.source,o.defaultValue,a]);var i=e({name:u,Name:r},o);return Object.assign(i,{name:u,Name:r})}}module.exports={useTextInput:makeHook(require("./text")),useFileInput:makeHook(require("./file")),useBoolInput:makeHook(require("./bool")),useRadioInput:makeHook(require("./radio")),useComboBoxInput:makeHook(require("./combo-box")),useCheckListInput:makeHook(require("./check-list")),useValue:function(e,u){return{name:e,value:u,hasChanged:function(){return!0}}}}; + +},{"./bool":220,"./check-list":221,"./combo-box":222,"./file":223,"./radio":226,"./text":228,"get-by-dot":85,"react":145}],232:[function(require,module,exports){ +"use strict";var _excluded=["id"],_excluded2=["action"];function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var r,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o=0||(n[r]=t[r]);return n}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r0)e="statuses";else{if(!(t.accounts.length>0))throw"NONE_FOUND";e="accounts"}var r=t[e][0];return{type:e,domain:new URL(r.url).host,list:r.emojis}}module.exports=function(t){return{listEmoji:t.query({query:function(){return{url:"/api/v1/admin/custom_emojis",params:_objectSpread({limit:0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},providesTags:function(t){return t?[].concat(_toConsumableArray(t.map((function(t){return{type:"Emoji",id:t.id}}))),[{type:"Emoji",id:"LIST"}]):[{type:"Emoji",id:"LIST"}]}}),getEmoji:t.query({query:function(t){return{url:"/api/v1/admin/custom_emojis/".concat(t)}},providesTags:function(t,e,r){return[{type:"Emoji",id:r}]}}),addEmoji:t.mutation({query:function(t){return{method:"POST",url:"/api/v1/admin/custom_emojis",asForm:!0,body:t,discardEmpty:!0}},invalidatesTags:function(t){return t?[{type:"Emoji",id:"LIST"},{type:"Emoji",id:t.id}]:[{type:"Emoji",id:"LIST"}]}}),editEmoji:t.mutation({query:function(t){var e=t.id,r=_objectWithoutProperties(t,_excluded);return{method:"PATCH",url:"/api/v1/admin/custom_emojis/".concat(e),asForm:!0,body:_objectSpread({type:"modify"},r)}},invalidatesTags:function(t){return t?[{type:"Emoji",id:"LIST"},{type:"Emoji",id:t.id}]:[{type:"Emoji",id:"LIST"}]}}),deleteEmoji:t.mutation({query:function(t){return{method:"DELETE",url:"/api/v1/admin/custom_emojis/".concat(t)}},invalidatesTags:function(t,e,r){return[{type:"Emoji",id:r}]}}),searchStatusForEmoji:t.mutation({queryFn:function(t,e,r,o){return Promise.try((function(){return o({url:"/api/v2/search?q=".concat(encodeURIComponent(t),"&resolve=true&limit=1")}).then(unwrapRes)})).then((function(t){return emojiFromSearchResult(t)})).then((function(t){var r=t.type,n=t.domain,i=t.list,u=e.getState();if(n==new URL(u.oauth.instance).host)throw"LOCAL_INSTANCE";return Promise.map(i,(function(t){return o({url:"/api/v1/admin/custom_emojis",params:{filter:"domain:".concat(n,",shortcode:").concat(t.shortcode),limit:1}}).then(unwrapRes).then((function(t){return t[0]}))}),{concurrency:5}).then((function(t){return{data:{type:r,domain:n,list:t}}}))})).catch((function(t){return{error:t}}))}}),patchRemoteEmojis:t.mutation({queryFn:function(t,e,r,o){var n=t.action,i=_objectWithoutProperties(t,_excluded2),u=[],a=[];return Promise.each(i.selectedEmoji,(function(t){return Promise.try((function(){var e={type:n};return"copy"==n&&(e.shortcode=t.shortcode,0!=i.category.trim().length&&(e.category=i.category)),o({method:"PATCH",url:"/api/v1/admin/custom_emojis/".concat(t.id),asForm:!0,body:e}).then(unwrapRes)})).then((function(e){u.push([t.id,e])})).catch((function(e){var r,o=null!==(r=e.message)&&void 0!==r?r:e;e.data.error&&(o=e.data.error),a.push([t.shortcode,o])}))})).then((function(){return 0==a.length?{data:u}:{error:a}}))},invalidatesTags:function(){return[{type:"Emoji",id:"LIST"}]}})}}; + +},{"../lib":238,"bluebird":83}],233:[function(require,module,exports){ +"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _slicedToArray(t,r){return _arrayWithHoles(t)||_iterableToArrayLimit(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0){var i="";throw n.forEach((function(t){i+="".concat(t.message," (line ").concat(t.row,")")})),i}return e}return t.split("\n").map((function(t){var r=t.trim(),e=!0;if(r.startsWith("http"))try{r=new URL(r).hostname}catch(t){e=!1}return r.length>0?{domain:r,valid:e}:null})).filter((function(t){return t}))}function validateDomainList(t){return t.forEach((function(t){t.domain.startsWith("*.")&&(t.domain=t.domain.slice(2)),t.valid=!1!==t.valid&&isValidDomainBlock(t.domain),t.valid&&(t.suggest=hasBetterScope(t.domain)),t.checked=t.valid})),t}function deduplicateDomainList(t){var r=new Set;return t.filter((function(t){return!r.has(t.domain)&&(r.add(t.domain),!0)}))}module.exports=function(t){return{processDomainList:t.mutation({queryFn:function(t){return Promise.try((function(){if(null==t.domains||0==t.domains.length)throw"No domains entered";return parseDomainList(t.domains)})).then((function(t){return deduplicateDomainList(t)})).then((function(t){return validateDomainList(t)})).then((function(t){return t.forEach((function(t){t.key=nanoid()})),{data:t}})).catch((function(t){return{error:t.toString()}}))}}),exportDomainList:t.mutation({queryFn:function(t,r,e,n){var i;return i="json"==t.exportType?{transformEntry:function(t){return{domain:t.domain,public_comment:t.public_comment,obfuscate:t.obfuscate}},stringify:function(t){return JSON.stringify(t)},extension:".json",mime:"application/json"}:"csv"==t.exportType?{transformEntry:function(t){var r;return[t.domain,"suspend",!1,!1,t.public_comment,null!==(r=t.obfuscate)&&void 0!==r&&r]},stringify:function(t){return csv.unparse({fields:"#domain,#severity,#reject_media,#reject_reports,#public_comment,#obfuscate".split(","),data:t})},extension:".csv",mime:"text/csv"}:{transformEntry:function(t){return t.domain},stringify:function(t){return t.join("\n")},extension:".txt",mime:"text/plain"},Promise.try((function(){return n({url:"/api/v1/admin/domain_blocks"})})).then(unwrapRes).then((function(t){return t.map(i.transformEntry)})).then((function(t){return i.stringify(t)})).then((function(e){if("export"==t.action)return{data:e};if("export-file"==t.action){var n=new URL(r.getState().oauth.instance).host,o=new Date,a=[n,"blocklist",o.getFullYear(),(o.getMonth()+1).toString().padStart(2,"0"),o.getDate().toString().padStart(2,"0")].join("-");fileDownload(e,a+i.extension,i.mime)}return{data:null}})).catch((function(t){return{error:t}}))}}),importDomainList:t.mutation(_objectSpread({query:function(t){var r=t.domains,e=entryProcessor(t);return r.forEach((function(t){e(t)})),{method:"POST",url:"/api/v1/admin/domain_blocks?import=true",asForm:!0,discardEmpty:!0,body:{domains:new Blob([JSON.stringify(r)],{type:"application/json"})}}},transformResponse:domainListToObject},replaceCacheOnMutation("instanceBlocks")))}};var internalKeys=new Set("key,suggest,valid,checked".split(","));function entryProcessor(t){var r=[];return["private_comment","public_comment"].forEach((function(e){var n=t[e].trim();if(n.length>0){var i=t["".concat(e,"_behavior")];"append"==i?r.push((function(t){null==t[e]?t[e]=n:t[e]=[t[e],n].join("\n")})):"replace"==i&&r.push((function(t){t[e]=n}))}})),function(e){r.forEach((function(t){t(e)})),e.obfuscate=t.obfuscate,Object.entries(e).forEach((function(t){var r=_slicedToArray(t,2),n=r[0],i=r[1];(internalKeys.has(n)||null==i)&&delete e[n]}))}} + +},{"../../domain-block":219,"../lib":238,"bluebird":83,"js-file-download":96,"nanoid":100,"papaparse":102}],239:[function(require,module,exports){ +"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r. +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } +var React = require("react"); +var _require = require("wouter"), + useRoute = _require.useRoute, + Redirect = _require.Redirect; +var query = require("../../lib/query"); +var FormWithData = require("../../lib/form/form-with-data"); +var _require2 = require("../../lib/navigation/util"), + useBaseUrl = _require2.useBaseUrl; +var FakeProfile = require("../../components/fake-profile"); +var MutationButton = require("../../components/form/mutation-button"); +var useFormSubmit = require("../../lib/form/submit"); +var _require3 = require("../../lib/form"), + useValue = _require3.useValue, + useTextInput = _require3.useTextInput; +var _require4 = require("../../components/form/inputs"), + TextInput = _require4.TextInput; +module.exports = function AccountDetail(_ref) { + _objectDestructuringEmpty(_ref); + var baseUrl = useBaseUrl(); + var _useRoute = useRoute("".concat(baseUrl, "/:accountId")), + _useRoute2 = _slicedToArray(_useRoute, 2), + _match = _useRoute2[0], + params = _useRoute2[1]; + if ((params === null || params === void 0 ? void 0 : params.accountId) == undefined) { + return /*#__PURE__*/React.createElement(Redirect, { + to: baseUrl + }); + } else { + return /*#__PURE__*/React.createElement("div", { + className: "account-detail" + }, /*#__PURE__*/React.createElement("h1", null, "Account Details"), /*#__PURE__*/React.createElement(FormWithData, { + dataQuery: query.useGetAccountQuery, + queryArg: params.accountId, + DataForm: AccountDetailForm + })); + } +}; +function AccountDetailForm(_ref2) { + var account = _ref2.data; + var content; + if (account.suspended) { + content = /*#__PURE__*/React.createElement("h2", { + className: "error" + }, "Account is suspended."); + } else { + content = /*#__PURE__*/React.createElement(ModifyAccount, { + account: account + }); + } + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FakeProfile, account), content); +} +function ModifyAccount(_ref3) { + var account = _ref3.account; + var form = { + id: useValue("id", account.id), + reason: useTextInput("text", {}) + }; + var _useFormSubmit = useFormSubmit(form, query.useActionAccountMutation()), + _useFormSubmit2 = _slicedToArray(_useFormSubmit, 2), + modifyAccount = _useFormSubmit2[0], + result = _useFormSubmit2[1]; + return /*#__PURE__*/React.createElement("form", { + onSubmit: modifyAccount + }, /*#__PURE__*/React.createElement("h2", null, "Actions"), /*#__PURE__*/React.createElement(TextInput, { + field: form.reason, + placeholder: "Reason for this action" + }), /*#__PURE__*/React.createElement("div", { + className: "action-buttons" + }, /*#__PURE__*/React.createElement(MutationButton, { + label: "Suspend", + name: "suspend", + result: result + }))); +} + +},{"../../components/fake-profile":212,"../../components/form/inputs":214,"../../components/form/mutation-button":215,"../../lib/form":225,"../../lib/form/form-with-data":224,"../../lib/form/submit":227,"../../lib/navigation/util":231,"../../lib/query":237,"react":145,"wouter":179}],186:[function(require,module,exports){ +"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r. +*/ + +"use strict"; + +var React = require("react"); +var splitFilterN = require("split-filter-n"); +var syncpipe = require('syncpipe'); +var _require = require("match-sorter"), + matchSorter = _require.matchSorter; +var query = require("../../lib/query"); +var ComboBox = require("../../components/combo-box"); +function useEmojiByCategory(emoji) { + // split all emoji over an object keyed by the category names (or Unsorted) + return React.useMemo(function () { + return splitFilterN(emoji, [], function (entry) { + var _entry$category; + return (_entry$category = entry.category) !== null && _entry$category !== void 0 ? _entry$category : "Unsorted"; + }); + }, [emoji]); +} +function CategorySelect(_ref) { + var field = _ref.field, + children = _ref.children; + var value = field.value, + setIsNew = field.setIsNew; + var _query$useListEmojiQu = query.useListEmojiQuery({ + filter: "domain:local" + }), + _query$useListEmojiQu2 = _query$useListEmojiQu.data, + emoji = _query$useListEmojiQu2 === void 0 ? [] : _query$useListEmojiQu2, + isLoading = _query$useListEmojiQu.isLoading, + isSuccess = _query$useListEmojiQu.isSuccess, + error = _query$useListEmojiQu.error; + var emojiByCategory = useEmojiByCategory(emoji); + var categories = React.useMemo(function () { + return new Set(Object.keys(emojiByCategory)); + }, [emojiByCategory]); + + // data used by the ComboBox element to select an emoji category + var categoryItems = React.useMemo(function () { + return syncpipe(emojiByCategory, [function (_) { + return Object.keys(_); + }, + // just emoji category names + function (_) { + return matchSorter(_, value, { + threshold: matchSorter.rankings.NO_MATCH + }); + }, + // sorted by complex algorithm + function (_) { + return _.map(function (categoryName) { + return [ + // map to input value, and selectable element with icon + categoryName, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", { + src: emojiByCategory[categoryName][0].static_url, + "aria-hidden": "true" + }), categoryName)]; + }); + }]); + }, [emojiByCategory, value]); + React.useEffect(function () { + if (value != undefined && isSuccess && value.trim().length > 0) { + setIsNew(!categories.has(value.trim())); + } + }, [categories, value, isSuccess, setIsNew]); + if (error) { + // fall back to plain text input, but this would almost certainly have caused a bigger error message elsewhere + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", { + type: "text", + placeholder: "e.g., reactions", + onChange: function onChange(e) { + field.value = e.target.value; + } + }), ";"); + } else if (isLoading) { + return /*#__PURE__*/React.createElement("input", { + type: "text", + value: "Loading categories...", + disabled: true + }); + } + return /*#__PURE__*/React.createElement(ComboBox, { + field: field, + items: categoryItems, + label: "Category", + placeholder: "e.g., reactions", + children: children + }); +} +module.exports = { + useEmojiByCategory: useEmojiByCategory, + CategorySelect: CategorySelect +}; + +},{"../../components/combo-box":210,"../../lib/query":237,"match-sorter":99,"react":145,"split-filter-n":170,"syncpipe":171}],192:[function(require,module,exports){ +"use strict";var React=require("react"),query=require("../../../lib/query"),_require=require("../../../lib/form"),useTextInput=_require.useTextInput,shortcodeRegex=/^[a-z0-9_]+$/;module.exports=function(){var e=query.useListEmojiQuery({filter:"domain:local"}).data,r=void 0===e?[]:e,t=React.useMemo((function(){return new Set(r.map((function(e){return e.shortcode})))}),[r]);return useTextInput("shortcode",{validator:function(e){return""==e?"":t.has(e)?"Shortcode already in use":e.length<2||e.length>30?"Shortcode must be between 2 and 30 characters":e.toLowerCase()!=e?"Shortcode must be lowercase":shortcodeRegex.test(e)?"":"Shortcode must only contain lowercase letters, numbers, and underscores"}})}; + +},{"../../../lib/form":225,"../../../lib/query":237,"react":145}],195:[function(require,module,exports){ +"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r. +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var query = require("../../../lib/query"); +var useFormSubmit = require("../../../lib/form/submit"); +var _require = require("../../../components/form/inputs"), + TextArea = _require.TextArea, + Select = _require.Select; +var MutationButton = require("../../../components/form/mutation-button"); +var _require2 = require("../../../components/error"), + Error = _require2.Error; +var ExportFormatTable = require("./export-format-table"); +module.exports = function ImportExportForm(_ref) { + var form = _ref.form, + submitParse = _ref.submitParse, + parseResult = _ref.parseResult; + var _useFormSubmit = useFormSubmit(form, query.useExportDomainListMutation()), + _useFormSubmit2 = _slicedToArray(_useFormSubmit, 2), + submitExport = _useFormSubmit2[0], + exportResult = _useFormSubmit2[1]; + function fileChanged(e) { + var reader = new FileReader(); + reader.onload = function (read) { + form.domains.value = read.target.result; + submitParse(); + }; + reader.readAsText(e.target.files[0]); + } + React.useEffect(function () { + if (exportResult.isSuccess) { + form.domains.setter(exportResult.data); + } + /* eslint-disable-next-line react-hooks/exhaustive-deps */ + }, [exportResult]); + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h1", null, "Import / Export suspended domains"), /*#__PURE__*/React.createElement("p", null, "This page can be used to import and export lists of domains to suspend. Exports can be done in various formats, with varying functionality and support in other software. Imports will automatically detect what format is being processed."), /*#__PURE__*/React.createElement(ExportFormatTable, null), /*#__PURE__*/React.createElement("div", { + className: "import-export" + }, /*#__PURE__*/React.createElement(TextArea, { + field: form.domains, + label: "Domains", + placeholder: "google.com\nfacebook.com", + rows: 8 + }), /*#__PURE__*/React.createElement("div", { + className: "button-grid" + }, /*#__PURE__*/React.createElement(MutationButton, { + label: "Import", + type: "button", + onClick: function onClick() { + return submitParse(); + }, + result: parseResult, + showError: false + }), /*#__PURE__*/React.createElement("label", { + className: "button with-icon" + }, /*#__PURE__*/React.createElement("i", { + className: "fa fa-fw ", + "aria-hidden": "true" + }), "Import file", /*#__PURE__*/React.createElement("input", { + type: "file", + className: "hidden", + onChange: fileChanged, + accept: "application/json,text/plain,text/csv" + })), /*#__PURE__*/React.createElement("b", null), " ", /*#__PURE__*/React.createElement(MutationButton, { + label: "Export", + type: "button", + onClick: function onClick() { + return submitExport("export"); + }, + result: exportResult, + showError: false + }), /*#__PURE__*/React.createElement(MutationButton, { + label: "Export to file", + wrapperClassName: "export-file-button", + type: "button", + onClick: function onClick() { + return submitExport("export-file"); + }, + result: exportResult, + showError: false + }), /*#__PURE__*/React.createElement("div", { + className: "export-file" + }, /*#__PURE__*/React.createElement("span", null, "as"), /*#__PURE__*/React.createElement(Select, { + field: form.exportType, + options: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("option", { + value: "plain" + }, "Text"), /*#__PURE__*/React.createElement("option", { + value: "json" + }, "JSON"), /*#__PURE__*/React.createElement("option", { + value: "csv" + }, "CSV")) + }))), parseResult.error && /*#__PURE__*/React.createElement(Error, { + error: parseResult.error + }), exportResult.error && /*#__PURE__*/React.createElement(Error, { + error: exportResult.error + }))); +}; + +},{"../../../components/error":211,"../../../components/form/inputs":214,"../../../components/form/mutation-button":215,"../../../lib/form/submit":227,"../../../lib/query":237,"./export-format-table":196,"react":145}],199:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var query = require("../../../lib/query"); +var _require = require("../../../lib/domain-block"), + isValidDomainBlock = _require.isValidDomainBlock, + hasBetterScope = _require.hasBetterScope; +var _require2 = require("../../../lib/form"), + useTextInput = _require2.useTextInput, + useBoolInput = _require2.useBoolInput, + useRadioInput = _require2.useRadioInput, + useCheckListInput = _require2.useCheckListInput; +var useFormSubmit = require("../../../lib/form/submit"); +var _require3 = require("../../../components/form/inputs"), + TextInput = _require3.TextInput, + TextArea = _require3.TextArea, + Checkbox = _require3.Checkbox, + Select = _require3.Select, + RadioGroup = _require3.RadioGroup; +var CheckList = require("../../../components/check-list"); +var MutationButton = require("../../../components/form/mutation-button"); +var FormWithData = require("../../../lib/form/form-with-data"); +module.exports = React.memo(function ProcessImport(_ref) { + var list = _ref.list; + return /*#__PURE__*/React.createElement("div", { + className: "without-border" + }, /*#__PURE__*/React.createElement(FormWithData, { + dataQuery: query.useInstanceBlocksQuery, + DataForm: ImportList, + list: list + })); +}); +function ImportList(_ref2) { + var _hasComment$type; + var list = _ref2.list, + blockedInstances = _ref2.data; + var hasComment = React.useMemo(function () { + var hasPublic = false; + var hasPrivate = false; + list.some(function (entry) { + var _entry$public_comment, _entry$private_commen; + if (((_entry$public_comment = entry.public_comment) === null || _entry$public_comment === void 0 ? void 0 : _entry$public_comment.length) > 0) { + hasPublic = true; + } + if (((_entry$private_commen = entry.private_comment) === null || _entry$private_commen === void 0 ? void 0 : _entry$private_commen.length) > 0) { + hasPrivate = true; + } + return hasPublic && hasPrivate; + }); + if (hasPublic && hasPrivate) { + return { + both: true + }; + } else if (hasPublic) { + return { + type: "public_comment" + }; + } else if (hasPrivate) { + return { + type: "private_comment" + }; + } else { + return {}; + } + }, [list]); + var showComment = useTextInput("showComment", { + defaultValue: (_hasComment$type = hasComment.type) !== null && _hasComment$type !== void 0 ? _hasComment$type : "public_comment" + }); + var form = { + domains: useCheckListInput("domains", { + entries: list + }), + obfuscate: useBoolInput("obfuscate"), + privateComment: useTextInput("private_comment", { + defaultValue: "Imported on ".concat(new Date().toLocaleString()) + }), + privateCommentBehavior: useRadioInput("private_comment_behavior", { + defaultValue: "append", + options: { + append: "Append to", + replace: "Replace" + } + }), + publicComment: useTextInput("public_comment"), + publicCommentBehavior: useRadioInput("public_comment_behavior", { + defaultValue: "append", + options: { + append: "Append to", + replace: "Replace" + } + }) + }; + var _useFormSubmit = useFormSubmit(form, query.useImportDomainListMutation(), { + changedOnly: false + }), + _useFormSubmit2 = _slicedToArray(_useFormSubmit, 2), + importDomains = _useFormSubmit2[0], + importResult = _useFormSubmit2[1]; + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", { + onSubmit: importDomains, + className: "suspend-import-list" + }, /*#__PURE__*/React.createElement("span", null, list.length, " domain", list.length != 1 ? "s" : "", " in this list"), hasComment.both && /*#__PURE__*/React.createElement(Select, { + field: showComment, + options: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("option", { + value: "public_comment" + }, "Show public comments"), /*#__PURE__*/React.createElement("option", { + value: "private_comment" + }, "Show private comments")) + }), /*#__PURE__*/React.createElement("div", { + className: "checkbox-list-wrapper" + }, /*#__PURE__*/React.createElement(DomainCheckList, { + field: form.domains, + blockedInstances: blockedInstances, + commentType: showComment.value + })), /*#__PURE__*/React.createElement(TextArea, { + field: form.privateComment, + label: "Private comment", + rows: 3 + }), /*#__PURE__*/React.createElement(RadioGroup, { + field: form.privateCommentBehavior, + label: "imported private comment" + }), /*#__PURE__*/React.createElement(TextArea, { + field: form.publicComment, + label: "Public comment", + rows: 3 + }), /*#__PURE__*/React.createElement(RadioGroup, { + field: form.publicCommentBehavior, + label: "imported public comment" + }), /*#__PURE__*/React.createElement(Checkbox, { + field: form.obfuscate, + label: "Obfuscate domains in public lists" + }), /*#__PURE__*/React.createElement(MutationButton, { + label: "Import", + result: importResult + }))); +} +function DomainCheckList(_ref3) { + var field = _ref3.field, + blockedInstances = _ref3.blockedInstances, + commentType = _ref3.commentType; + var getExtraProps = React.useCallback(function (entry) { + return { + comment: entry[commentType], + alreadyExists: blockedInstances[entry.domain] != undefined + }; + }, [blockedInstances, commentType]); + var entriesWithSuggestions = React.useMemo(function () { + return Object.values(field.value).filter(function (entry) { + return entry.suggest; + }); + }, [field.value]); + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckList, { + field: field, + header: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("b", null, "Domain"), /*#__PURE__*/React.createElement("b", null, commentType == "public_comment" && "Public comment", commentType == "private_comment" && "Private comment")), + EntryComponent: DomainEntry, + getExtraProps: getExtraProps + }), /*#__PURE__*/React.createElement(UpdateHint, { + entries: entriesWithSuggestions, + updateEntry: field.onChange, + updateMultiple: field.updateMultiple + })); +} +var UpdateHint = React.memo(function UpdateHint(_ref4) { + var entries = _ref4.entries, + updateEntry = _ref4.updateEntry, + updateMultiple = _ref4.updateMultiple; + if (entries.length == 0) { + return null; + } + function changeAll() { + updateMultiple(entries.map(function (entry) { + return [entry.key, { + domain: entry.suggest, + suggest: null + }]; + })); + } + return /*#__PURE__*/React.createElement("div", { + className: "update-hints" + }, /*#__PURE__*/React.createElement("p", null, entries.length, " ", entries.length == 1 ? "entry uses" : "entries use", " a specific subdomain, which you might want to change to the main domain, as that includes all it's (future) subdomains."), /*#__PURE__*/React.createElement("div", { + className: "hints" + }, entries.map(function (entry) { + return /*#__PURE__*/React.createElement(UpdateableEntry, { + key: entry.key, + entry: entry, + updateEntry: updateEntry + }); + })), entries.length > 0 && /*#__PURE__*/React.createElement("a", { + onClick: changeAll + }, "change all")); +}); +var UpdateableEntry = React.memo(function UpdateableEntry(_ref5) { + var entry = _ref5.entry, + updateEntry = _ref5.updateEntry; + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", { + className: "text-cutoff" + }, entry.domain), /*#__PURE__*/React.createElement("i", { + className: "fa fa-long-arrow-right", + "aria-hidden": "true" + }), /*#__PURE__*/React.createElement("span", null, entry.suggest), /*#__PURE__*/React.createElement("a", { + role: "button", + onClick: function onClick() { + return updateEntry(entry.key, { + domain: entry.suggest, + suggest: null + }); + } + }, "change")); +}); +function domainValidationError(isValid) { + return isValid ? "" : "Invalid domain"; +} +function DomainEntry(_ref6) { + var entry = _ref6.entry, + _onChange = _ref6.onChange, + _ref6$extraProps = _ref6.extraProps, + alreadyExists = _ref6$extraProps.alreadyExists, + comment = _ref6$extraProps.comment; + var domainField = useTextInput("domain", { + defaultValue: entry.domain, + showValidation: entry.checked, + initValidation: domainValidationError(entry.valid), + validator: function validator(value) { + return domainValidationError(isValidDomainBlock(value)); + } + }); + React.useEffect(function () { + if (entry.valid != domainField.valid) { + _onChange({ + valid: domainField.valid + }); + } + }, [_onChange, entry.valid, domainField.valid]); + React.useEffect(function () { + if (entry.domain != domainField.value) { + domainField.setter(entry.domain); + } + // domainField.setter is enough, eslint wants domainField + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [entry.domain, domainField.setter]); + React.useEffect(function () { + _onChange({ + suggest: hasBetterScope(domainField.value) + }); + // only need this update if it's the entry.checked that updated, not onChange + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [domainField.value]); + function clickIcon(e) { + if (entry.suggest) { + e.stopPropagation(); + e.preventDefault(); + domainField.setter(entry.suggest); + _onChange({ + domain: entry.suggest, + checked: true + }); + } + } + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { + className: "domain-input" + }, /*#__PURE__*/React.createElement(TextInput, { + field: domainField, + onChange: function onChange(e) { + domainField.onChange(e); + _onChange({ + domain: e.target.value, + checked: true + }); + } + }), /*#__PURE__*/React.createElement("span", { + id: "icon", + onClick: clickIcon + }, /*#__PURE__*/React.createElement(DomainEntryIcon, { + alreadyExists: alreadyExists, + suggestion: entry.suggest, + onChange: _onChange + }))), /*#__PURE__*/React.createElement("p", null, comment)); +} +function DomainEntryIcon(_ref7) { + var alreadyExists = _ref7.alreadyExists, + suggestion = _ref7.suggestion; + var icon; + var text; + if (suggestion) { + icon = "fa-info-circle suggest-changes"; + text = "Entry targets a specific subdomain, consider changing it to '".concat(suggestion, "'."); + } else if (alreadyExists) { + icon = "fa-history already-blocked"; + text = "Domain block already exists."; + } + if (!icon) { + return null; + } + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("i", { + className: "fa fa-fw ".concat(icon), + "aria-hidden": "true", + title: text + }), /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, text)); +} + +},{"../../../components/check-list":209,"../../../components/form/inputs":214,"../../../components/form/mutation-button":215,"../../../lib/domain-block":219,"../../../lib/form":225,"../../../lib/form/form-with-data":224,"../../../lib/form/submit":227,"../../../lib/query":237,"react":145}],201:[function(require,module,exports){ +"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&"(".concat(d," filtered by search)")),React.createElement("div",{className:"list"},React.createElement("div",{className:"entries scrolling"},m.map((function(e){return React.createElement(Link,{key:e.domain,to:"".concat(t,"/").concat(e.domain)},React.createElement("a",{className:"entry nounderline"},React.createElement("span",{id:"domain"},e.domain),React.createElement("span",{id:"date"},new Date(e.created_at).toLocaleString())))})))))),React.createElement(Link,{to:"".concat(t,"/import-export")},React.createElement("a",null,"Or use the bulk import/export interface")))}; + +},{"../../components/form/inputs":214,"../../components/loading":217,"../../lib/form":225,"../../lib/query":237,"match-sorter":99,"react":145,"wouter":179}],202:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } +var React = require("react"); +var _require = require("wouter"), + useRoute = _require.useRoute, + Redirect = _require.Redirect; +var query = require("../../lib/query"); +var FormWithData = require("../../lib/form/form-with-data"); +var BackButton = require("../../components/back-button"); +var _require2 = require("../../lib/form"), + useValue = _require2.useValue, + useTextInput = _require2.useTextInput; +var useFormSubmit = require("../../lib/form/submit"); +var _require3 = require("../../components/form/inputs"), + TextArea = _require3.TextArea; +var MutationButton = require("../../components/form/mutation-button"); +var Username = require("./username"); +var _require4 = require("../../lib/navigation/util"), + useBaseUrl = _require4.useBaseUrl; +module.exports = function ReportDetail(_ref) { + _objectDestructuringEmpty(_ref); + var baseUrl = useBaseUrl(); + var _useRoute = useRoute("".concat(baseUrl, "/:reportId")), + _useRoute2 = _slicedToArray(_useRoute, 2), + _match = _useRoute2[0], + params = _useRoute2[1]; + if ((params === null || params === void 0 ? void 0 : params.reportId) == undefined) { + return /*#__PURE__*/React.createElement(Redirect, { + to: baseUrl + }); + } else { + return /*#__PURE__*/React.createElement("div", { + className: "report-detail" + }, /*#__PURE__*/React.createElement("h1", null, /*#__PURE__*/React.createElement(BackButton, { + to: baseUrl + }), " Report Details"), /*#__PURE__*/React.createElement(FormWithData, { + dataQuery: query.useGetReportQuery, + queryArg: params.reportId, + DataForm: ReportDetailForm + })); + } +}; +function ReportDetailForm(_ref2) { + var report = _ref2.data; + var from = report.account; + var target = report.target_account; + return /*#__PURE__*/React.createElement("div", { + className: "report detail" + }, /*#__PURE__*/React.createElement("div", { + className: "usernames" + }, /*#__PURE__*/React.createElement(Username, { + user: from + }), " reported ", /*#__PURE__*/React.createElement(Username, { + user: target + })), report.action_taken && /*#__PURE__*/React.createElement("div", { + className: "info" + }, /*#__PURE__*/React.createElement("h3", null, "Resolved by @", report.action_taken_by_account.account.acct), /*#__PURE__*/React.createElement("span", { + className: "timestamp" + }, "at ", new Date(report.action_taken_at).toLocaleString()), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("b", null, "Comment: "), /*#__PURE__*/React.createElement("span", null, report.action_taken_comment)), /*#__PURE__*/React.createElement("div", { + className: "info-block" + }, /*#__PURE__*/React.createElement("h3", null, "Report info:"), /*#__PURE__*/React.createElement("div", { + className: "details" + }, /*#__PURE__*/React.createElement("b", null, "Created: "), /*#__PURE__*/React.createElement("span", null, new Date(report.created_at).toLocaleString()), /*#__PURE__*/React.createElement("b", null, "Forwarded: "), " ", /*#__PURE__*/React.createElement("span", null, report.forwarded ? "Yes" : "No"), /*#__PURE__*/React.createElement("b", null, "Category: "), " ", /*#__PURE__*/React.createElement("span", null, report.category), /*#__PURE__*/React.createElement("b", null, "Reason: "), report.comment.length > 0 ? /*#__PURE__*/React.createElement("p", null, report.comment) : /*#__PURE__*/React.createElement("i", { + className: "no-comment" + }, "none provided"))), !report.action_taken && /*#__PURE__*/React.createElement(ReportActionForm, { + report: report + }), report.statuses.length > 0 && /*#__PURE__*/React.createElement("div", { + className: "info-block" + }, /*#__PURE__*/React.createElement("h3", null, "Reported toots (", report.statuses.length, "):"), /*#__PURE__*/React.createElement("div", { + className: "reported-toots" + }, report.statuses.map(function (status) { + return /*#__PURE__*/React.createElement(ReportedToot, { + key: status.id, + toot: status + }); + })))); +} +function ReportActionForm(_ref3) { + var report = _ref3.report; + var form = { + id: useValue("id", report.id), + comment: useTextInput("action_taken_comment") + }; + var _useFormSubmit = useFormSubmit(form, query.useResolveReportMutation(), { + changedOnly: false + }), + _useFormSubmit2 = _slicedToArray(_useFormSubmit, 2), + submit = _useFormSubmit2[0], + result = _useFormSubmit2[1]; + return /*#__PURE__*/React.createElement("form", { + onSubmit: submit, + className: "info-block" + }, /*#__PURE__*/React.createElement("h3", null, "Resolving this report"), /*#__PURE__*/React.createElement("p", null, "An optional comment can be included while resolving this report. Useful for providing an explanation about what action was taken (if any) before the report was marked as resolved.", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("b", null, "This will be visible to the user that created the report!")), /*#__PURE__*/React.createElement(TextArea, { + field: form.comment, + label: "Comment" + }), /*#__PURE__*/React.createElement(MutationButton, { + label: "Resolve", + result: result + })); +} +function ReportedToot(_ref4) { + var _toot$spoiler_text, _toot$media_attachmen; + var toot = _ref4.toot; + var account = toot.account; + return /*#__PURE__*/React.createElement("article", { + className: "toot expanded" + }, /*#__PURE__*/React.createElement("section", { + className: "author" + }, /*#__PURE__*/React.createElement("a", null, /*#__PURE__*/React.createElement("img", { + className: "avatar", + src: account.avatar, + alt: "" + }), /*#__PURE__*/React.createElement("span", { + className: "displayname" + }, account.display_name.trim().length > 0 ? account.display_name : account.username, /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, ".")), /*#__PURE__*/React.createElement("span", { + className: "username" + }, "@", account.username))), /*#__PURE__*/React.createElement("section", { + className: "body" + }, /*#__PURE__*/React.createElement("div", { + className: "text" + }, /*#__PURE__*/React.createElement("div", { + className: "content" + }, ((_toot$spoiler_text = toot.spoiler_text) === null || _toot$spoiler_text === void 0 ? void 0 : _toot$spoiler_text.length) > 0 ? /*#__PURE__*/React.createElement(TootCW, { + content: toot.content, + note: toot.spoiler_text + }) : toot.content)), ((_toot$media_attachmen = toot.media_attachments) === null || _toot$media_attachmen === void 0 ? void 0 : _toot$media_attachmen.length) > 0 && /*#__PURE__*/React.createElement(TootMedia, { + media: toot.media_attachments, + sensitive: toot.sensitive + })), /*#__PURE__*/React.createElement("aside", { + className: "info" + }, /*#__PURE__*/React.createElement("time", { + dateTime: toot.created_at + }, new Date(toot.created_at).toLocaleString()))); +} +function TootCW(_ref5) { + var note = _ref5.note, + content = _ref5.content; + var _React$useState = React.useState(false), + _React$useState2 = _slicedToArray(_React$useState, 2), + visible = _React$useState2[0], + setVisible = _React$useState2[1]; + function toggleVisible() { + setVisible(!visible); + } + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { + className: "spoiler" + }, /*#__PURE__*/React.createElement("span", null, note), /*#__PURE__*/React.createElement("label", { + className: "button spoiler-label", + onClick: toggleVisible + }, "Show ", visible ? "less" : "more")), visible && content); +} +function TootMedia(_ref6) { + var media = _ref6.media, + sensitive = _ref6.sensitive; + var classes = media.length % 2 == 0 ? "even" : "odd"; + if (media.length == 1) { + classes += " single"; + } + return /*#__PURE__*/React.createElement("div", { + className: "media photoswipe-gallery ".concat(classes) + }, media.map(function (m) { + var _m$meta, _m$meta2, _m$meta3; + return /*#__PURE__*/React.createElement("div", { + key: m.id, + className: "media-wrapper" + }, sensitive && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", { + id: "sensitiveMedia-".concat(m.id), + type: "checkbox", + className: "sensitive-checkbox hidden" + }), /*#__PURE__*/React.createElement("div", { + className: "sensitive" + }, /*#__PURE__*/React.createElement("div", { + className: "open" + }, /*#__PURE__*/React.createElement("label", { + htmlFor: "sensitiveMedia-".concat(m.id), + className: "button", + role: "button", + tabIndex: "0" + }, /*#__PURE__*/React.createElement("i", { + className: "fa fa-eye-slash", + title: "Hide sensitive media" + }))), /*#__PURE__*/React.createElement("div", { + className: "closed", + title: m.description + }, /*#__PURE__*/React.createElement("label", { + htmlFor: "sensitiveMedia-".concat(m.id), + className: "button", + role: "button", + tabIndex: "0" + }, "Show sensitive media")))), /*#__PURE__*/React.createElement("a", { + href: m.url, + title: m.description, + target: "_blank", + rel: "noreferrer", + "data-cropped": "true", + "data-pswp-width": "".concat((_m$meta = m.meta) === null || _m$meta === void 0 ? void 0 : _m$meta.original.width, "px"), + "data-pswp-height": "".concat((_m$meta2 = m.meta) === null || _m$meta2 === void 0 ? void 0 : _m$meta2.original.height, "px") + }, /*#__PURE__*/React.createElement("img", { + alt: m.description, + src: m.url + // thumb={m.preview_url} + , + size: (_m$meta3 = m.meta) === null || _m$meta3 === void 0 ? void 0 : _m$meta3.original, + type: m.type + }))); + })); +} + +},{"../../components/back-button":208,"../../components/form/inputs":214,"../../components/form/mutation-button":215,"../../lib/form":225,"../../lib/form/form-with-data":224,"../../lib/form/submit":227,"../../lib/navigation/util":231,"../../lib/query":237,"./username":204,"react":145,"wouter":179}],205:[function(require,module,exports){ +"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r. +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } +var React = require("react"); +var query = require("../../lib/query"); +var _require = require("../../lib/form"), + useTextInput = _require.useTextInput, + useValue = _require.useValue; +var useFormSubmit = require("../../lib/form/submit"); +var _require2 = require("../form/inputs"), + TextInput = _require2.TextInput; +var MutationButton = require("../form/mutation-button"); +var Loading = require("../loading"); +module.exports = function Login(_ref) { + _objectDestructuringEmpty(_ref); + var form = { + instance: useTextInput("instance", { + defaultValue: window.location.origin + }), + scopes: useValue("scopes", "user admin") + }; + var _useFormSubmit = useFormSubmit(form, query.useAuthorizeFlowMutation(), { + changedOnly: false + }), + _useFormSubmit2 = _slicedToArray(_useFormSubmit, 2), + formSubmit = _useFormSubmit2[0], + result = _useFormSubmit2[1]; + if (result.isLoading) { + return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Loading, null), " Checking instance."); + } else if (result.isSuccess) { + return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Loading, null), " Redirecting to instance authorization page."); + } + return /*#__PURE__*/React.createElement("form", { + onSubmit: formSubmit + }, /*#__PURE__*/React.createElement(TextInput, { + field: form.instance, + label: "Instance", + name: "instance" + }), /*#__PURE__*/React.createElement(MutationButton, { + label: "Login", + result: result + })); +}; + +},{"../../lib/form":225,"../../lib/form/submit":227,"../../lib/query":237,"../form/inputs":214,"../form/mutation-button":215,"../loading":217,"react":145}],213:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +var query = require("../lib/query"); +module.exports = function FakeToot(_ref) { + var children = _ref.children; + var _query$useVerifyCrede = query.useVerifyCredentialsQuery(), + _query$useVerifyCrede2 = _query$useVerifyCrede.data, + account = _query$useVerifyCrede2 === void 0 ? { + avatar: "/assets/default_avatars/GoToSocial_icon1.png", + display_name: "", + username: "" + } : _query$useVerifyCrede2; + return /*#__PURE__*/React.createElement("article", { + className: "toot expanded" + }, /*#__PURE__*/React.createElement("section", { + className: "author" + }, /*#__PURE__*/React.createElement("a", null, /*#__PURE__*/React.createElement("img", { + className: "avatar", + src: account.avatar, + alt: "" + }), /*#__PURE__*/React.createElement("span", { + className: "displayname" + }, account.display_name.trim().length > 0 ? account.display_name : account.username, /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, ".")), /*#__PURE__*/React.createElement("span", { + className: "username" + }, "@", account.username))), /*#__PURE__*/React.createElement("section", { + className: "body" + }, /*#__PURE__*/React.createElement("div", { + className: "text" + }, children))); +}; + +},{"../lib/query":237,"react":145}],218:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var query = require("../lib/query"); +var Loading = require("./loading"); +module.exports = function UserLogoutCard() { + var _query$useVerifyCrede = query.useVerifyCredentialsQuery(), + profile = _query$useVerifyCrede.data, + isLoading = _query$useVerifyCrede.isLoading; + var _query$useInstanceQue = query.useInstanceQuery(), + instance = _query$useInstanceQue.data; + var _query$useLogoutMutat = query.useLogoutMutation(), + _query$useLogoutMutat2 = _slicedToArray(_query$useLogoutMutat, 1), + logoutQuery = _query$useLogoutMutat2[0]; + if (isLoading) { + return /*#__PURE__*/React.createElement(Loading, null); + } else { + var _profile$display_name; + return /*#__PURE__*/React.createElement("div", { + className: "account-card" + }, /*#__PURE__*/React.createElement("img", { + className: "avatar", + src: profile.avatar, + alt: "" + }), /*#__PURE__*/React.createElement("h3", { + className: "text-cutoff" + }, ((_profile$display_name = profile.display_name) === null || _profile$display_name === void 0 ? void 0 : _profile$display_name.length) > 0 ? profile.display_name : profile.acct), /*#__PURE__*/React.createElement("span", { + className: "text-cutoff" + }, "@", profile.username, "@", instance === null || instance === void 0 ? void 0 : instance.account_domain), /*#__PURE__*/React.createElement("a", { + onClick: logoutQuery, + href: "#", + "aria-label": "Log out", + title: "Log out", + className: "logout" + }, /*#__PURE__*/React.createElement("i", { + className: "fa fa-fw fa-sign-out", + "aria-hidden": "true" + }))); + } +}; + +},{"../lib/query":237,"./loading":217,"react":145}],244:[function(require,module,exports){ +"use strict";function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);te.length)&&(t=e.length);for(var r=0,a=new Array(t);r. +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } +var React = require("react"); +var _require = require("wouter"), + Switch = _require.Switch, + Route = _require.Route, + Link = _require.Link; +var query = require("../../lib/query"); +var _require2 = require("../../lib/form"), + useTextInput = _require2.useTextInput; +var AccountDetail = require("./detail"); +var _require3 = require("../../lib/navigation/util"), + useBaseUrl = _require3.useBaseUrl; +var _require4 = require("../../components/error"), + Error = _require4.Error; +module.exports = function Accounts(_ref) { + var baseUrl = _ref.baseUrl; + return /*#__PURE__*/React.createElement("div", { + className: "accounts" + }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, { + path: "".concat(baseUrl, "/:accountId") + }, /*#__PURE__*/React.createElement(AccountDetail, null)), /*#__PURE__*/React.createElement(AccountOverview, null))); +}; +function AccountOverview(_ref2) { + _objectDestructuringEmpty(_ref2); + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h1", null, "Accounts"), /*#__PURE__*/React.createElement("div", null, "Pending ", /*#__PURE__*/React.createElement("a", { + href: "https://github.com/superseriousbusiness/gotosocial/issues/581" + }, "#581"), ", there is currently no way to list accounts.", /*#__PURE__*/React.createElement("br", null), "You can perform actions on reported accounts by clicking their name in the report, or searching for a username below."), /*#__PURE__*/React.createElement(AccountSearchForm, null)); +} +function AccountSearchForm() { + var _query$useSearchAccou = query.useSearchAccountMutation(), + _query$useSearchAccou2 = _slicedToArray(_query$useSearchAccou, 2), + searchAccount = _query$useSearchAccou2[0], + result = _query$useSearchAccou2[1]; + var _useTextInput = useTextInput("account"), + _useTextInput2 = _slicedToArray(_useTextInput, 3), + onAccountChange = _useTextInput2[0], + _resetAccount = _useTextInput2[1], + account = _useTextInput2[2].account; + function submitSearch(e) { + e.preventDefault(); + if (account.trim().length != 0) { + searchAccount(account); + } + } + return /*#__PURE__*/React.createElement("div", { + className: "account-search" + }, /*#__PURE__*/React.createElement("form", { + onSubmit: submitSearch + }, /*#__PURE__*/React.createElement("div", { + className: "form-field text" + }, /*#__PURE__*/React.createElement("label", { + htmlFor: "url" + }, "Account:"), /*#__PURE__*/React.createElement("div", { + className: "row" + }, /*#__PURE__*/React.createElement("input", { + type: "text", + id: "account", + name: "account", + onChange: onAccountChange, + value: account + }), /*#__PURE__*/React.createElement("button", { + disabled: result.isLoading + }, /*#__PURE__*/React.createElement("i", { + className: ["fa fa-fw", result.isLoading ? "fa-refresh fa-spin" : "fa-search"].join(" "), + "aria-hidden": "true", + title: "Search" + }), /*#__PURE__*/React.createElement("span", { + className: "sr-only" + }, "Search"))))), /*#__PURE__*/React.createElement(AccountList, { + isSuccess: result.isSuccess, + data: result.data, + isError: result.isError, + error: result.error + })); +} +function AccountList(_ref3) { + var isSuccess = _ref3.isSuccess, + data = _ref3.data, + isError = _ref3.isError, + error = _ref3.error; + var baseUrl = useBaseUrl(); + if (!(isSuccess || isError)) { + return null; + } + if (error) { + return /*#__PURE__*/React.createElement(Error, { + error: error + }); + } + if (data.length == 0) { + return /*#__PURE__*/React.createElement("b", null, "No accounts found that match your query"); + } + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h2", null, "Results:"), /*#__PURE__*/React.createElement("div", { + className: "list" + }, data.map(function (acc) { + var _acc$display_name; + return /*#__PURE__*/React.createElement(Link, { + key: acc.acct, + className: "account entry", + to: "".concat(baseUrl, "/").concat(acc.id) + }, ((_acc$display_name = acc.display_name) === null || _acc$display_name === void 0 ? void 0 : _acc$display_name.length) > 0 ? acc.display_name : acc.username, /*#__PURE__*/React.createElement("span", { + id: "username" + }, "(@", acc.acct, ")")); + }))); +} + +},{"../../components/error":211,"../../lib/form":225,"../../lib/navigation/util":231,"../../lib/query":237,"./detail":184,"react":145,"wouter":179}],194:[function(require,module,exports){ +"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=new Array(t);r. +*/ + +"use strict"; + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +var React = require("react"); +var _require = require("wouter"), + Switch = _require.Switch, + Route = _require.Route, + Redirect = _require.Redirect, + useLocation = _require.useLocation; +var query = require("../../../lib/query"); +var _require2 = require("../../../lib/form"), + useTextInput = _require2.useTextInput; +var useFormSubmit = require("../../../lib/form/submit"); +var ProcessImport = require("./process"); +var ImportExportForm = require("./form"); +module.exports = function ImportExport(_ref) { + var baseUrl = _ref.baseUrl; + var form = { + domains: useTextInput("domains"), + exportType: useTextInput("exportType", { + defaultValue: "plain", + dontReset: true + }) + }; + var _useFormSubmit = useFormSubmit(form, query.useProcessDomainListMutation(), { + changedOnly: false + }), + _useFormSubmit2 = _slicedToArray(_useFormSubmit, 2), + submitParse = _useFormSubmit2[0], + parseResult = _useFormSubmit2[1]; + var _useLocation = useLocation(), + _useLocation2 = _slicedToArray(_useLocation, 2), + _location = _useLocation2[0], + setLocation = _useLocation2[1]; + return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, { + path: "".concat(baseUrl, "/process") + }, parseResult.isSuccess ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h1", null, /*#__PURE__*/React.createElement("span", { + className: "button", + onClick: function onClick() { + parseResult.reset(); + setLocation(baseUrl); + } + }, "< back"), " Confirm import:"), /*#__PURE__*/React.createElement(ProcessImport, { + list: parseResult.data + })) : /*#__PURE__*/React.createElement(Redirect, { + to: baseUrl + })), /*#__PURE__*/React.createElement(Route, null, !parseResult.isSuccess ? /*#__PURE__*/React.createElement(ImportExportForm, { + form: form, + submitParse: submitParse, + parseResult: parseResult + }) : /*#__PURE__*/React.createElement(Redirect, { + to: "".concat(baseUrl, "/process") + }))); +}; + +},{"../../../lib/form":225,"../../../lib/form/submit":227,"../../../lib/query":237,"./form":197,"./process":199,"react":145,"wouter":179}],203:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } +var React = require("react"); +var _require = require("wouter"), + Link = _require.Link, + Switch = _require.Switch, + Route = _require.Route; +var query = require("../../lib/query"); +var FormWithData = require("../../lib/form/form-with-data"); +var ReportDetail = require("./detail"); +var Username = require("./username"); +var _require2 = require("../../lib/navigation/util"), + useBaseUrl = _require2.useBaseUrl; +module.exports = function Reports(_ref) { + var baseUrl = _ref.baseUrl; + return /*#__PURE__*/React.createElement("div", { + className: "reports" + }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, { + path: "".concat(baseUrl, "/:reportId") + }, /*#__PURE__*/React.createElement(ReportDetail, null)), /*#__PURE__*/React.createElement(ReportOverview, null))); +}; +function ReportOverview(_ref2) { + _objectDestructuringEmpty(_ref2); + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h1", null, "Reports"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, "Here you can view and resolve reports made to your instance, originating from local and remote users.")), /*#__PURE__*/React.createElement(FormWithData, { + dataQuery: query.useListReportsQuery, + DataForm: ReportsList + })); +} +function ReportsList(_ref3) { + var reports = _ref3.data; + return /*#__PURE__*/React.createElement("div", { + className: "list" + }, reports.map(function (report) { + return /*#__PURE__*/React.createElement(ReportEntry, { + key: report.id, + report: report + }); + })); +} +function ReportEntry(_ref4) { + var report = _ref4.report; + var baseUrl = useBaseUrl(); + var from = report.account; + var target = report.target_account; + var comment = report.comment.length > 200 ? report.comment.slice(0, 200) + "..." : report.comment; + return /*#__PURE__*/React.createElement(Link, { + to: "".concat(baseUrl, "/").concat(report.id) + }, /*#__PURE__*/React.createElement("a", { + className: "report entry".concat(report.action_taken ? " resolved" : "") + }, /*#__PURE__*/React.createElement("div", { + className: "byline" + }, /*#__PURE__*/React.createElement("div", { + className: "usernames" + }, /*#__PURE__*/React.createElement(Username, { + user: from, + link: false + }), " reported ", /*#__PURE__*/React.createElement(Username, { + user: target, + link: false + })), /*#__PURE__*/React.createElement("h3", { + className: "status" + }, report.action_taken ? "Resolved" : "Open")), /*#__PURE__*/React.createElement("div", { + className: "details" + }, /*#__PURE__*/React.createElement("b", null, "Created: "), /*#__PURE__*/React.createElement("span", null, new Date(report.created_at).toLocaleString()), /*#__PURE__*/React.createElement("b", null, "Reason: "), comment.length > 0 ? /*#__PURE__*/React.createElement("p", null, comment) : /*#__PURE__*/React.createElement("i", { + className: "no-comment" + }, "none provided")))); +} + +},{"../../lib/form/form-with-data":224,"../../lib/navigation/util":231,"../../lib/query":237,"./detail":202,"./username":204,"react":145,"wouter":179}],206:[function(require,module,exports){ +/* + GoToSocial + Copyright (C) GoToSocial Authors admin@gotosocial.org + SPDX-License-Identifier: AGPL-3.0-or-later + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +var React = require("react"); +var Redux = require("react-redux"); +var query = require("../../lib/query"); +var Login = require("./login"); +var Loading = require("../loading"); +var _require = require("../error"), + Error = _require.Error; +module.exports = function Authorization(_ref) { + var App = _ref.App; + var _Redux$useSelector = Redux.useSelector(function (state) { + return state.oauth; + }), + loginState = _Redux$useSelector.loginState, + expectingRedirect = _Redux$useSelector.expectingRedirect; + var _query$useVerifyCrede = query.useVerifyCredentialsQuery(undefined, { + skip: loginState == "none" || loginState == "logout" || expectingRedirect + }), + isLoading = _query$useVerifyCrede.isLoading, + isSuccess = _query$useVerifyCrede.isSuccess, + account = _query$useVerifyCrede.data, + error = _query$useVerifyCrede.error; + var showLogin = true; + var content = null; + if (isLoading) { + showLogin = false; + var loadingInfo; + if (loginState == "callback") { + loadingInfo = "Processing OAUTH callback."; + } else if (loginState == "login") { + loadingInfo = "Verifying stored login."; + } + content = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Loading, null), " ", loadingInfo); + } else if (error != undefined) { + content = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Error, { + error: error + }), "You can attempt logging in again below:"); + } + if (loginState == "login" && isSuccess) { + return /*#__PURE__*/React.createElement(App, { + account: account + }); + } else { + return /*#__PURE__*/React.createElement("section", { + className: "oauth" + }, /*#__PURE__*/React.createElement("h1", null, "GoToSocial Settings"), content, showLogin && /*#__PURE__*/React.createElement(Login, null)); + } +}; + +},{"../../lib/query":237,"../error":211,"../loading":217,"./login":207,"react":145,"react-redux":128}],188:[function(require,module,exports){ +"use strict";function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);te.length)&&(t=e.length);for(var r=0,o=new Array(t);re.length)&&(r=e.length);for(var t=0,n=new Array(r);t0?React.createElement("span",null,r.length," custom emoji ",l>0&&"(".concat(l," filtered)")):React.createElement("span",null,"No custom emoji yet, you can add one below."),React.createElement("div",{className:"list emoji-list"},React.createElement("div",{className:"header"},React.createElement(TextInput,{field:t,name:"emoji-shortcode",placeholder:"Search"})),React.createElement("div",{className:"entries scrolling"},i.length>0?React.createElement("div",{className:"entries scrolling"},i.map((function(e){var r=_slicedToArray(e,2),t=r[0],n=r[1];return React.createElement(EmojiCategory,{key:t,category:t,entries:n})}))):React.createElement("div",{className:"entry"},"No local emoji matched your filter."))))}function EmojiCategory(e){var r=e.category,t=e.entries,n=useBaseUrl();return React.createElement("div",{className:"entry"},React.createElement("b",null,r),React.createElement("div",{className:"emoji-group"},t.map((function(e){return React.createElement(Link,{key:e.id,to:"".concat(n,"/").concat(e.id)},React.createElement("a",null,React.createElement("img",{src:e.url,alt:e.shortcode,title:":".concat(e.shortcode,":")})))}))))}module.exports=function(e){_objectDestructuringEmpty(e);var r=query.useListEmojiQuery({filter:"domain:local"}),t=r.data,n=void 0===t?[]:t,a=r.isLoading,o=r.isError,i=r.error,l=null;return l=a?React.createElement(Loading,null):o?React.createElement(Error,{error:i}):React.createElement(React.Fragment,null,React.createElement(EmojiList,{emoji:n}),React.createElement(NewEmojiForm,{emoji:n})),React.createElement(React.Fragment,null,React.createElement("h1",null,"Local Custom Emoji"),React.createElement("p",null,"To use custom emoji in your toots they have to be 'local' to the instance. You can either upload them here directly, or copy from those already present on other (known) instances through the ",React.createElement(Link,{to:"../remote"},"Remote Emoji")," page."),l)}; + +},{"../../../components/error":211,"../../../components/form/inputs":214,"../../../components/loading":217,"../../../lib/form":225,"../../../lib/navigation/util":231,"../../../lib/query":237,"../category-select":187,"./new-emoji":190,"match-sorter":99,"react":145,"syncpipe":171,"wouter":179}],189:[function(require,module,exports){ +"use strict";var React=require("react"),_require=require("wouter"),Switch=_require.Switch,Route=_require.Route,EmojiOverview=require("./overview"),EmojiDetail=require("./detail");module.exports=function(e){var t=e.baseUrl;return React.createElement(Switch,null,React.createElement(Route,{path:"".concat(t,"/:emojiId")},React.createElement(EmojiDetail,null)),React.createElement(EmojiOverview,null))}; + +},{"./detail":188,"./overview":191,"react":145,"wouter":179}],246:[function(require,module,exports){ +"use strict";var React=require("react"),ReactDom=require("react-dom/client"),_require=require("react-redux"),Provider=_require.Provider,_require2=require("redux-persist/integration/react"),PersistGate=_require2.PersistGate,_require3=require("./redux"),store=_require3.store,persistor=_require3.persistor,_require4=require("./lib/navigation"),createNavigation=_require4.createNavigation,Menu=_require4.Menu,Item=_require4.Item,AuthorizationGate=require("./components/authorization"),Loading=require("./components/loading"),UserLogoutCard=require("./components/user-logout-card"),_require5=require("./lib/navigation/util"),RoleContext=_require5.RoleContext;require("./style.css");var _createNavigation=createNavigation("/settings",[Menu("User",[Item("Profile",{icon:"fa-user"},require("./user/profile")),Item("Settings",{icon:"fa-cogs"},require("./user/settings"))]),Menu("Moderation",{url:"admin",permissions:["admin"]},[Item("Reports",{icon:"fa-flag",wildcard:!0},require("./admin/reports")),Item("Accounts",{icon:"fa-users",wildcard:!0},require("./admin/accounts")),Menu("Federation",{icon:"fa-hubzilla"},[Item("Federation",{icon:"fa-hubzilla",url:"",wildcard:!0},require("./admin/federation")),Item("Import/Export",{icon:"fa-floppy-o",wildcard:!0},require("./admin/federation/import-export"))])]),Menu("Administration",{url:"admin",defaultUrl:"/settings/admin/settings",permissions:["admin"]},[Item("Actions",{icon:"fa-bolt"},require("./admin/actions")),Menu("Custom Emoji",{icon:"fa-smile-o"},[Item("Local",{icon:"fa-home",wildcard:!0},require("./admin/emoji/local")),Item("Remote",{icon:"fa-cloud"},require("./admin/emoji/remote"))]),Item("Settings",{icon:"fa-sliders"},require("./admin/settings"))])]),Sidebar=_createNavigation.Sidebar,ViewRouter=_createNavigation.ViewRouter;function App(e){var r=[e.account.role.name];return React.createElement(RoleContext.Provider,{value:r},React.createElement("div",{className:"sidebar"},React.createElement(UserLogoutCard,null),React.createElement(Sidebar,null)),React.createElement("section",{className:"with-sidebar"},React.createElement(ViewRouter,null)))}function Main(){return React.createElement(Provider,{store:store},React.createElement(PersistGate,{loading:React.createElement("section",null,React.createElement(Loading,null)),persistor:persistor},React.createElement(AuthorizationGate,{App:App})))}var root=ReactDom.createRoot(document.getElementById("root"));root.render(React.createElement(React.StrictMode,null,React.createElement(Main,null))); + +},{"./admin/accounts":185,"./admin/actions":186,"./admin/emoji/local":189,"./admin/emoji/remote":193,"./admin/federation":200,"./admin/federation/import-export":198,"./admin/reports":203,"./admin/settings":205,"./components/authorization":206,"./components/loading":217,"./components/user-logout-card":218,"./lib/navigation":230,"./lib/navigation/util":231,"./redux":241,"./style.css":243,"./user/profile":244,"./user/settings":245,"react":145,"react-dom/client":108,"react-redux":128,"redux-persist/integration/react":153}],87:[function(require,module,exports){ +"use strict";null; + +},{"insert-css":91}]},{},[246]); diff --git a/assets/dist/status.css b/assets/dist/status.css new file mode 100644 index 0000000..687e43e --- /dev/null +++ b/assets/dist/status.css @@ -0,0 +1,918 @@ + +@charset "UTF-8"; +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ +/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */ +.pswp { + --pswp-bg: #000; + --pswp-placeholder-bg: #222; + + + --pswp-root-z-index: 100000; + + --pswp-preloader-color: rgba(79, 79, 79, 0.4); + --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9); + + /* defined via js: + --pswp-transition-duration: 333ms; */ + + --pswp-icon-color: #fff; + --pswp-icon-color-secondary: #4f4f4f; + --pswp-icon-stroke-color: #4f4f4f; + --pswp-icon-stroke-width: 2px; + + --pswp-error-text-color: var(--pswp-icon-color); +} +/* + Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions) +*/ +.pswp { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: var(--pswp-root-z-index); + display: none; + touch-action: none; + outline: 0; + opacity: 0.003; + contain: layout style size; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +/* Prevents focus outline on the root element, + (it may be focused initially) */ +.pswp:focus { + outline: 0; +} +.pswp * { + box-sizing: border-box; +} +.pswp img { + max-width: none; +} +.pswp--open { + display: block; +} +.pswp, +.pswp__bg { + -webkit-transform: translateZ(0); + transform: translateZ(0); + will-change: opacity; +} +.pswp__bg { + opacity: 0.005; + background: var(--pswp-bg); +} +.pswp, +.pswp__scroll-wrap { + overflow: hidden; +} +.pswp__scroll-wrap, +.pswp__bg, +.pswp__container, +.pswp__item, +.pswp__content, +.pswp__img, +.pswp__zoom-wrap { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.pswp__img, +.pswp__zoom-wrap { + width: auto; + height: auto; +} +.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img { + cursor: zoom-in; +} +.pswp--click-to-zoom.pswp--zoomed-in .pswp__img { + cursor: move; + cursor: grab; +} +.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active { + cursor: grabbing; +} +/* :active to override grabbing cursor */ +.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img, +.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active, +.pswp__img { + cursor: zoom-out; +} +/* Prevent selection and tap highlights */ +.pswp__container, +.pswp__img, +.pswp__button, +.pswp__counter { + -webkit-user-select: none; + user-select: none; +} +.pswp__item { + /* z-index for fade transition */ + z-index: 1; + overflow: hidden; +} +.pswp__hidden { + display: none !important; +} +/* Allow to click through pswp__content element, but not its children */ +.pswp__content { + pointer-events: none; +} +.pswp__content > * { + pointer-events: auto; +} +/* + + PhotoSwipe UI + +*/ +/* + Error message appears when image is not loaded + (JS option errorMsg controls markup) +*/ +.pswp__error-msg-container { + display: grid; +} +.pswp__error-msg { + margin: auto; + font-size: 1em; + line-height: 1; + color: var(--pswp-error-text-color); +} +/* +class pswp__hide-on-close is applied to elements that +should hide (for example fade out) when PhotoSwipe is closed +and show (for example fade in) when PhotoSwipe is opened + */ +.pswp .pswp__hide-on-close { + opacity: 0.005; + will-change: opacity; + transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1); + z-index: 10; /* always overlap slide content */ + pointer-events: none; /* hidden elements should not be clickable */ +} +/* class pswp--ui-visible is added when opening or closing transition starts */ +.pswp--ui-visible .pswp__hide-on-close { + opacity: 1; + pointer-events: auto; +} +/* +

+ + +{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/confirmed.tmpl b/template/confirmed.tmpl new file mode 100644 index 0000000..3cf5b7a --- /dev/null +++ b/template/confirmed.tmpl @@ -0,0 +1,28 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+

Email Address Confirmed

+

Thanks {{.username}}! Your email address {{.email}} has been confirmed.

+

+
+ +{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/domain-blocklist.tmpl b/template/domain-blocklist.tmpl new file mode 100644 index 0000000..def1b99 --- /dev/null +++ b/template/domain-blocklist.tmpl @@ -0,0 +1,52 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+

Suspended Instances

+

+ The following list of domains have been suspended by the administrator(s) of this server. +

+

+ All current and future accounts on these instances are blocked, and no more data is federated to the remote + servers. + This extends to subdomains, so an entry for 'example.com' includes 'social.example.com' as well. +

+
+
+
Domain
+
Public comment
+
+ {{range .blocklist}} +
+ +
+

+ {{.PublicComment}} +

+
+
+ {{end}} +
+
+
+{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/email_confirm.tmpl b/template/email_confirm.tmpl new file mode 100644 index 0000000..17926fd --- /dev/null +++ b/template/email_confirm.tmpl @@ -0,0 +1,28 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +Hello {{.Username}}! + +You are receiving this mail because you've requested an account on {{.InstanceURL}}. + +We just need to confirm that this is your email address. To confirm your email, paste the following in your browser's address bar: + +{{.ConfirmLink}} + +If you believe you've been sent this email in error, feel free to ignore it, or contact the administrator of {{.InstanceURL}} diff --git a/template/email_new_report.tmpl b/template/email_new_report.tmpl new file mode 100644 index 0000000..af98579 --- /dev/null +++ b/template/email_new_report.tmpl @@ -0,0 +1,26 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +Hello moderator of {{ .InstanceName }} ({{ .InstanceURL }})! + +{{ if .ReportDomain }}Someone from {{ .ReportDomain }} has reported a user from your instance. +{{- else if .ReportTargetDomain }}Someone from your instance has reported a user from {{ .ReportTargetDomain }}. +{{- else }}Someone from your instance has reported another user from your instance.{{ end }} + +To view the report, paste the following link into your browser: {{ .ReportURL }} diff --git a/template/email_report_closed.tmpl b/template/email_report_closed.tmpl new file mode 100644 index 0000000..878e5b6 --- /dev/null +++ b/template/email_report_closed.tmpl @@ -0,0 +1,27 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +Hello {{.Username}}! + +You recently reported the account @{{ .ReportTargetUsername }}{{ if .ReportTargetDomain }}@{{ .ReportTargetDomain }}{{ end }} to the moderator(s) of {{ .InstanceName }} ({{ .InstanceURL }}). + +The report you submitted has now been closed. + +{{ if .ActionTakenComment }}The moderator who closed the report left the following comment: {{ .ActionTakenComment }} +{{- else }}The moderator who closed the report did not leave a comment.{{ end }} diff --git a/template/email_reset.tmpl b/template/email_reset.tmpl new file mode 100644 index 0000000..789470e --- /dev/null +++ b/template/email_reset.tmpl @@ -0,0 +1,28 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +Hello {{.Username}}! + +You are receiving this mail because a password reset has been requested for your account on {{.InstanceURL}}. + +To reset your password, paste the following in your browser's address bar: + +{{.ResetLink}} + +If you believe you've been sent this email in error, feel free to ignore it, or contact the administrator of {{.InstanceURL}}. diff --git a/template/email_test.tmpl b/template/email_test.tmpl new file mode 100644 index 0000000..d7af4d1 --- /dev/null +++ b/template/email_test.tmpl @@ -0,0 +1,24 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +This is a test email from {{.InstanceName}} ({{.InstanceURL}}). + +If you're seeing this email, that means the SMTP configuration is correct! + +This email was sent by the admin user @{{.SendingUsername}}. diff --git a/template/error.tmpl b/template/error.tmpl new file mode 100644 index 0000000..dc0713e --- /dev/null +++ b/template/error.tmpl @@ -0,0 +1,32 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+

An error occured:

+
{{.error}}
+ {{if .requestID}} +
+ Request ID: {{.requestID}} +
+ {{end}} +
+
+{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/finalize.tmpl b/template/finalize.tmpl new file mode 100644 index 0000000..e0d880d --- /dev/null +++ b/template/finalize.tmpl @@ -0,0 +1,50 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+

Hi {{.name}}!

+

+ You are about to sign-up to {{ .instance.Title }} ({{ .instance.URI }}) +
+ To ensure the best experience for you, we need you to provide some additional details. +

+ {{if .error}} +
+
{{.error}}
+
+ {{end}} +
+

Important

+

Due to the way the ActivityPub standard works, you cannot change your username after it has been set.

+
+
+ + +
+ + +
+
+{{ template "footer.tmpl" .}} diff --git a/template/footer.tmpl b/template/footer.tmpl new file mode 100644 index 0000000..f9aa719 --- /dev/null +++ b/template/footer.tmpl @@ -0,0 +1,36 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + + + + {{ if .javascript }} + {{ range .javascript }} + + {{ end }} + {{ end }} + + diff --git a/template/frontend.tmpl b/template/frontend.tmpl new file mode 100644 index 0000000..977a7fa --- /dev/null +++ b/template/frontend.tmpl @@ -0,0 +1,25 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+
+
+{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/header.tmpl b/template/header.tmpl new file mode 100644 index 0000000..759127b --- /dev/null +++ b/template/header.tmpl @@ -0,0 +1,67 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}}{{ define "thumbnailType" }}{{ if .instance.ThumbnailType }}{{ .instance.ThumbnailType }}{{ else }}image/png{{ end }}{{ end }}{{ define "instanceTitle" }}{{ if .ogMeta }}{{ .ogMeta.Title }}{{ else }}{{ .instance.Title }} - GoToSocial{{ end }}{{ end +}} + + + + + + + + {{ if .ogMeta }}{{ if .ogMeta.Locale }} + + {{ end }} + + + + + + {{ if .ogMeta.ArticlePublisher }} + + + + + {{ end }}{{ if .ogMeta.ProfileUsername }} + + {{ end }} + + {{ if .ogMeta.ImageAlt }} + + {{ end }}{{ if .ogMeta.ImageWidth }} + + + {{ end }}{{ end }} + + {{ if .rssFeed }} + {{ end }} + + + {{range .stylesheets}} + + {{end}} + + + {{range .stylesheets}} + + {{end}}{{ if .ogMeta }}{{ .ogMeta.Title }}{{ else }}{{.instance.Title}} - GoToSocial{{ end }} + + + diff --git a/template/index.tmpl b/template/index.tmpl new file mode 100644 index 0000000..a170aa7 --- /dev/null +++ b/template/index.tmpl @@ -0,0 +1,2 @@ + +index \ No newline at end of file diff --git a/template/oob.tmpl b/template/oob.tmpl new file mode 100644 index 0000000..0f183c3 --- /dev/null +++ b/template/oob.tmpl @@ -0,0 +1,28 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+

Hi {{ .user }}!

+

Here's your out-of-band token with scope "{{.scope}}", use it wisely:

+ {{ .oobToken }} +
+
+{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/profile.tmpl b/template/profile.tmpl new file mode 100644 index 0000000..059a5c0 --- /dev/null +++ b/template/profile.tmpl @@ -0,0 +1,129 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} + +
+
+
+ {{ if .account.Header }} + + {{ end }} +
+ + +
+ +
+ +
+ +
+ {{ if .account.Note }} + {{emojify .account.Emojis (noescape .account.Note)}} + {{else}} + no bio + {{end}} +
+ +
+ {{ range .account.Fields }} + {{emojify $.account.Emojis (noescape .Name)}} + {{emojify $.account.Emojis (noescape .Value)}} + {{ end }} +
+ +
+ +
+ {{ if .pinned_statuses }} +
+

Pinned posts

+ jump to recent +
+
+ {{ range .pinned_statuses }} +
+ {{ template "status_profile.tmpl" .}} +
+ {{ end }} +
+ {{ end }} + +
+ {{ if not .statuses }} +
Nothing here!
+ {{ else }} + {{ range .statuses }} +
+ {{ template "status_profile.tmpl" .}} +
+ {{ end }} + {{ end }} +
+ + +
+
+
+ +{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/template/sign-in.tmpl b/template/sign-in.tmpl new file mode 100644 index 0000000..e2a985b --- /dev/null +++ b/template/sign-in.tmpl @@ -0,0 +1,37 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+ +
+{{ template "footer.tmpl" .}} diff --git a/template/status.tmpl b/template/status.tmpl new file mode 100644 index 0000000..f0ebbc9 --- /dev/null +++ b/template/status.tmpl @@ -0,0 +1,112 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +
+ + + + + + + +
+ {{if .RepliesCount | eq 0 | not}} + replies: {{.RepliesCount}} + {{end}}{{if .FavouritesCount | eq 0 | not}} + favs: {{.FavouritesCount}} + {{end}}{{if .ReblogsCount | eq 0 | not}} + reposts: {{.ReblogsCount}} + {{end}}{{if .Pinned}} + /pinned + {{end}} +
+
+
+ +
+
+ {{if .SpoilerText}} +
+ + {{emojify .Emojis (escape .SpoilerText)}} + Toggle visibility + +
+ {{emojify .Emojis (noescape .Content)}} +
+
+ {{else}} +
+ {{emojify .Emojis (noescape .Content)}} +
+ {{end}} +
+ {{with .MediaAttachments}} + + {{end}} +
diff --git a/template/status_profile.tmpl b/template/status_profile.tmpl new file mode 100644 index 0000000..c8e7e64 --- /dev/null +++ b/template/status_profile.tmpl @@ -0,0 +1,90 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +
+
+ {{if .SpoilerText}} +
+ + {{emojify .Emojis (escape .SpoilerText)}} + Toggle visibility + +
+ {{emojify .Emojis (noescape .Content)}} +
+
+ {{else}} +
+ {{emojify .Emojis (noescape .Content)}} +
+ {{end}} +
+ {{with .MediaAttachments}} + + {{end}} +
+ + + + {{if .Pinned}} + /pinned + {{end}}{{if .RepliesCount | eq 0 | not}} + replies:{{.RepliesCount}} + {{end}} + \ No newline at end of file diff --git a/template/tag.tmpl b/template/tag.tmpl new file mode 100644 index 0000000..3ffbd70 --- /dev/null +++ b/template/tag.tmpl @@ -0,0 +1,27 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} + +
+

#{{.tagName}}

+

nothing yet

+
+ +{{ template "footer.tmpl" .}} diff --git a/template/thread.tmpl b/template/thread.tmpl new file mode 100644 index 0000000..3a94df9 --- /dev/null +++ b/template/thread.tmpl @@ -0,0 +1,38 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} +
+
+ {{range .context.Ancestors}} +
+ {{ template "status.tmpl" .}} +
+ {{end}} +
+ {{ template "status.tmpl" .status}} +
+ {{range .context.Descendants}} +
+ {{ template "status.tmpl" .}} +
+ {{end}} +
+
+{{ template "footer.tmpl" .}}