diff --git a/LICENSE b/LICENSE index 731158a4..027476ed 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,1330 @@ /* +fore.st license: + 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 +. + + 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 +. + +-------Original Cytube License------- The MIT License (MIT) Copyright (c) 2013-2021 Calvin Montgomery and contributors diff --git a/README.md b/README.md index bf7d7f3f..db759885 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -fore.st - Panama Red(v1) +fore.st - Pineapple Express(v1.1-indev) ====== -fore.st is the server software for ourfore.st, a community based chat & video embedding site tailored to service +fore.st is the server software for ourfore.st, a community based chat & synced video embedding site tailored to service the TTN community post-shutdown. The softwre is made freely available both for legal reasons but also as it seems as that is what is best for the community in the advant of another shutdown. @@ -10,20 +10,6 @@ and carries many of the same features. Modifcations to the software have been/ar being made to make the platform a more familiar place for TTN users. Contributions are welcome. -Current dev goals: - - image upload button/ audio(maybe? Autoplay disabled.) & mp4/webm embed support - - basic library features(add to lib without queueing, show videos from other channels) - - add 3 columns to lib table: type(show,movie,video), genre(comedy,food,horror,etc...), tags(stupidbullshit, etc...), sort or search by type/genre/tags - - improved profiles (profile pages, badges, stats) - - forum (a la ttn discussions) - - other custom chat commands (thunder, birdup, etc..) - - gold(toke-ns?) - - games?(in-browser? game servers that w/ steamid tie-in to toke-ns?) - - Current goals for ourfore.st instance: - - fix gdrive support(we'll probably be moving hosts at some point...) - - continue w/ development goals and exist with the d00dz - ## Installation There is currently no installation guide for the software, however since not much has changed in the backend, you should be fine with official [cytube docs](https://github.com/calzoneman/sync/wiki/CyTube-3.0-Installation-Guide). @@ -32,16 +18,173 @@ changed in the backend, you should be fine with official [cytube docs](https://g You can reach out by bugging rainbownapkin on the ttn discord or ourfore.st, you can also send an email to ourforest(at)420blaze.it ## Shoutouts - - Thanks to Simon for making TTN, we wouldn't be here if it wheren't that shit. - - Thanks to jaredlego-aka-goops, Rongtern, n' Sassy for helping with moderation and content aggregation for ourfore.st, we'll be set fer fackin dayz lol. + - Thanks to Simon for making TTN, + - Thanks to our excellent mod team for chat moderation and content aggregation - Thanks to etchingham for being a community contact while TTN's been winding down, I think all of us see you as a pillar of the community so your support means a lot. - Thanks to calzoneman for making [cytube](https://github.com/calzoneman/sync), that saved our asses. - Thanks to the core TTN community and everyone else who's ever used it, I was only there for the last handful of years but it was an absolute fuckin' ride. You guys are the best, it isn't TTN but I hope this at least help fills the gap. -## License +## Pineapple Express Indev Release Notes +This is the first indev release for fore.st 1.1 Pineapple Express. This is the last push before the codebase is merged upstream with the newest version of cytube. Should probably get that done sooner than later. Heres a check list of the planned/completed features in this revision: -Original source code in this repository is provided under the MIT license -(see the LICENSE file for the full text). +-quick shit & bugfixes ✓ +--change markdown filters to require three symbols on each side, quickest fix for filters ✓ +--move refresh button to title bar ✓ +--delete custom embed button, replace with button under generel "add video" button ✓ +--move playlist item count and length next to buttons & compact ui ✓ +--hide playlist frame and control from users who don't have permission to view playlist (no one can see the afterparty playlist except mods, why should they have the controls cluttering things up?) ✓ +--add "mention" to userlist dropdown menu ✓ +--add "toke with" to userlist dropdown menu for shits n gigs ✓ +--unlatch sync on pause and scrub, show sync button on titlebar when sync is unlatched, this wont support classic yt at the moment. Invidious support planned ✓ +--caption support for raw video (no saving captions in channel history just yet, this will be in the next update which will involve a rework/addition to the database) ✓ +--fix bugged airdate after "queue next" ✓ +--collapsing playlist items hides pref and airtime by default. Airdate on same line as title, airtime and pref below ✓ +--collapse/expand all playlist item button ✓ +--close playlist button ✓ +--basic ui fixes/tweaks ✓ +--disabled !toke link embedding on emote alt text ✓ +--fix chatbar resizing on new message notification (might just by cytube+) ✓ +--relicense to agpl ✓ +--disable/remove unregistered channels ✓ +--rename "legacy playlist buttons" to compact, fix location. This seems like it could be usable if not better than default ✓ +--save temporary vids to channel library + +-slide out panel (not an end user feature in and of itself, however a common UI element used for most menus, made to be quick and ezpz ✓ +--function for opening, closing ✓ +--allow switching menus on panel without having to open/close it ✓ +--pretty slide out animation ✓ + +-improved poll UI ✓ +--poll panel auto-opens when poll starts ✓ +--button slides in chatbar from left, slides back after poll done ✓ +--on click toggles poll ui on left of chat menu ✓ +--improved poll chat announcements ~Original announcement removed. May implement once server whisper implemented. + +-improved emote ui ✓ +--slide out emote ui ✓ +--search bar ✓ +--optional alphabet sort(default) ✓ +--optional legacy emote menu available ✓ + +-cytube+ ripout ✓ +--scroll to current item button ✓ +--orientation buttons in title bar ✓ +--quick settings(icon next to emote button) ✓ +---general pref +----theme ✓ +---playback pref ✓ +----video orientation ✓ +----toggle orientation buttons ✓ +----sync threshold (in seconds) ✓ +----youtube source (add after degoogling) ~ +---chat pref ✓ +----use legacy cytube emote menu ✓ +----blink title on chat ✓ +----chat notification sound ✓ +----chat desktop notification ✓ + +-trim/tidy default cytube commands +--replace / with ! as defualt server-side command indicator to match tokebot and TTN commands. / will be used for future client-side commands ✓ +---me ✓ +---sp ✓ +---afk ✓ +---poll ✓ +---hpoll ✓ +---mute ✓ +---smute ✓ +---unmute ✓ +---kick ✓ +---ban ✓ +---ipban ✓ +---clear ✓ +---clean ✓ +---cleantitle ✓ +--remove/consolidate/add to commands ✓ +---say -> announce(change tokebot modflair CSS to announce CSS, make normal modflair for bot/admin rank) ✓ +---remove kickanons ✓ +---remove d (drink) ✓ +---add user specific function to clear ('!clear ' to clear chats by said user) ✓ + +--Merge Upstream to newest cytube commit + +-improved server-whisper system +--public leave/join messages +--server-whisper target parameter for user specific whispers +--server-whisper name + +-getplaylistlinks outputs in fpanel +--I mean its pretty fucking simple I dont know how you can screw this one up bud. +--ezpzlmnsqze + +-ui sizing overhaul +--rip out all but the ONE TRUE layout. It's not 2014 anymore, one layout with dynamic elements will get you further than multiple static ones. +--chat/player sized to fit canvas with navbar (remove -+ buttons on player) +--theatre mode toggle icon on title bar (hides navbar, player/chat takes up entire screen) +--click to drag chat/player split +--shade player (hide and unload video, titel bar shows title and unshade icon only) +--shade chat (hide chat box, message box, send button. chat header bar collapses, retains user count and expansion arrows. Userlist/poll open/close is independent.) +--popout video button +--popout chat button +--remove legacy cytube themes. If they wheren't compatible after the emote panel, they certainly won't be now lmao + +-decaffeinate player.js +--Coffee script was a bad idea then, and it makes even less sense now. +--fuck me its just javascript with worse syntax, no real debugging tools, and build times +--literally fucking why though?(I guess it made sense before ES6 but still fuck me) + +-degoogling +--yt-dlp backend for serverside metadata acquisition of youtube videos w/o registered API key or google account +--potentially leverage yt-dlp backend for other media sources +--invidious embed support for youtube video playback +--youtube source in user prefrences (three or four invidious instances from different countries/continents, official youtube embed, or custom invidious instance) + +-autobump +--sepearate bump lists, based on js/txt files at first, will be stored in db next update (may use multiple at once) +--skip next bump/disable bumping +--bump frequency (default: 1) +--queue method: random from last-half, round-robin, full random +--override next bump +--require video be at least 4 minutes to add bump (mods can override from bump menu) + +-merge tokebot into ourfore.st codebase, one server instead of two. +--profile and userlist entry +---bot specific rank +--reset cooldown accessible from modmenu (quiet and loud, quiet by default) +--log tokes w/ date to file. This will be switched to mariadb in the next update +--tokefile, list of usernames with toke count. This will be switched to mariadb in the next update +--total tokes listed on profile tooltip + + +-mod panel +--button on chatbar +--mod message (sends message to all active mods) +--new poll button +--autobump control tab +--tokebot control tab +--playlist tab +--modflair +--open playlist below video (if closed, otherwise this does not appear) +--open playlist below video by default + + +-merge fore.st theme changes to fore.st dusk, consider moving some of them over to cytube.css for easier management + +-extra shit(probs wait til next update, or hotfix) +--short chats (acronyms, emoji, single letters/numbers/symbols) pop in over video from left starting at top left, overflow pops in below, instead of in chat box. Chats slide back up into top of vid after 2s. (optional, default on) +--basic mod chat (save to mod channel + pm all online mods) +--basic profile page (in side panel) +--css variables in theme for ez customizablity +--user themes +--change background to other themes background or img from url(theme background by default) +--native odysee support (no raw embed) + + +## License +Original fore.st code is provided under the Affero General Public License v3 in order to prevent fore.st being used in proprietary software. +(see the LICENSE file for the full text.) + +Cytube source code originally licensed under MIT license +(see the LICENSE file for the full text.) Bundled source code, such as third-party CSS and JavaScript libraries, are provided under their respective licenses. diff --git a/package-lock.json b/package-lock.json index c979190f..e51cbc9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,6987 @@ { "name": "CyTube", - "version": "3.82.6", - "lockfileVersion": 1, + "version": "3.82.8", + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "CyTube", + "version": "3.82.8", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@calzoneman/jsli": "^2.0.1", + "@cytube/mediaquery": "0.0.25", + "bcrypt": "^5.0.1", + "bluebird": "^3.7.2", + "body-parser": "^1.19.0", + "cheerio": "^1.0.0-rc.10", + "clone": "^2.1.2", + "compression": "^1.7.4", + "cookie-parser": "^1.4.5", + "create-error": "^0.3.1", + "csrf": "^3.1.0", + "cytubefilters": "github:calzoneman/cytubefilters#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", + "express": "^4.17.1", + "express-minify": "^1.0.0", + "json-typecheck": "^0.1.3", + "knex": "^0.95.2", + "lodash": "^4.17.21", + "morgan": "^1.10.0", + "mysql": "^2.18.1", + "nodemailer": "^6.5.0", + "prom-client": "^13.1.0", + "proxy-addr": "^2.0.6", + "pug": "^3.0.2", + "redis": "^3.1.1", + "sanitize-html": "^2.3.3", + "serve-static": "^1.14.1", + "socket.io": "^4.1.3", + "source-map-support": "^0.5.19", + "toml": "^3.0.0", + "uuid": "^8.3.2", + "yamljs": "^0.2.8" + }, + "devDependencies": { + "@babel/cli": "^7.15.7", + "@babel/core": "^7.15.8", + "@babel/eslint-parser": "^7.15.8", + "@babel/preset-env": "^7.15.8", + "babel-plugin-add-module-exports": "^1.0.4", + "coffeescript": "^1.9.2", + "eslint": "^7.32.0", + "mocha": "^10.0.0", + "sinon": "^10.0.0" + } + }, + "node_modules/@babel/cli": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.15.7.tgz", + "integrity": "sha512-YW5wOprO2LzMjoWZ5ZG6jfbY9JnkDxuHDwvnrThnuYtByorova/I0HNXJedrUfwuXFQfYOjcqDA4PU3qlZGZjg==", + "dev": true, + "dependencies": { + "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", + "chokidar": "^3.4.0", + "commander": "^4.0.1", + "convert-source-map": "^1.1.0", + "fs-readdir-recursive": "^1.1.0", + "glob": "^7.0.0", + "make-dir": "^2.1.0", + "slash": "^2.0.0", + "source-map": "^0.5.0" + }, + "bin": { + "babel": "bin/babel.js", + "babel-external-helpers": "bin/babel-external-helpers.js" + }, + "engines": { + "node": ">=6.9.0" + }, + "optionalDependencies": { + "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3" + } + }, + "node_modules/@babel/cli/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@babel/cli/node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@babel/cli/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/@babel/cli/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz", + "integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/@babel/highlight": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", + "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", + "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz", + "integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.15.8", + "@babel/generator": "^7.15.8", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-module-transforms": "^7.15.8", + "@babel/helpers": "^7.15.4", + "@babel/parser": "^7.15.8", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.6", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/@babel/parser": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", + "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/core/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/core/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/eslint-parser": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.15.8.tgz", + "integrity": "sha512-fYP7QFngCvgxjUuw8O057SVH5jCXsbFFOoE77CFDcvzwBVgTOkMD/L4mIC5Ud1xf8chK/no2fRbSSn1wvNmKuQ==", + "dev": true, + "dependencies": { + "eslint-scope": "^5.1.1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@babel/eslint-parser/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz", + "integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.6", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.15.4.tgz", + "integrity": "sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==", + "dev": true, + "dependencies": { + "@babel/helper-explode-assignable-expression": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", + "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-validator-option": "^7.14.5", + "browserslist": "^4.16.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz", + "integrity": "sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-member-expression-to-functions": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz", + "integrity": "sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.14.5", + "regexpu-core": "^4.7.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.3.tgz", + "integrity": "sha512-RH3QDAfRMzj7+0Nqu5oqgO5q9mFtQEVvCRsi8qCEfzLR9p2BHfn5FzhSB2oj1fF7I2+DcTORkYaQ6aTR9Cofew==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.13.0", + "@babel/helper-module-imports": "^7.12.13", + "@babel/helper-plugin-utils": "^7.13.0", + "@babel/traverse": "^7.13.0", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-explode-assignable-expression": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.15.4.tgz", + "integrity": "sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz", + "integrity": "sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==", + "dev": true, + "dependencies": { + "@babel/helper-get-function-arity": "^7.15.4", + "@babel/template": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-get-function-arity": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz", + "integrity": "sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-get-function-arity/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-get-function-arity/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz", + "integrity": "sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", + "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.15.4.tgz", + "integrity": "sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz", + "integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.15.4", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-simple-access": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "@babel/helper-validator-identifier": "^7.15.7", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", + "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", + "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz", + "integrity": "sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-wrap-function": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", + "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", + "dev": true, + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-replace-supers/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-replace-supers/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", + "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz", + "integrity": "sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz", + "integrity": "sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", + "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==" + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", + "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz", + "integrity": "sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.15.4", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", + "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", + "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.13.11", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.11.tgz", + "integrity": "sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz", + "integrity": "sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4", + "@babel/plugin-proposal-optional-chaining": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.15.8.tgz", + "integrity": "sha512-2Z5F2R2ibINTc63mY7FLqGfEbmofrHU9FitJW1Q7aPaKFhiPvSq6QEt/BoWN5oME3GVyjcRuNNSRbb9LC0CSWA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-remap-async-to-generator": "^7.15.4", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz", + "integrity": "sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-class-static-block": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz", + "integrity": "sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-dynamic-import": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz", + "integrity": "sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz", + "integrity": "sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-json-strings": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz", + "integrity": "sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz", + "integrity": "sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz", + "integrity": "sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz", + "integrity": "sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz", + "integrity": "sha512-qtOHo7A1Vt+O23qEAX+GdBpqaIuD3i9VRrWgCJeq7WO6H2d14EK3q11urj5Te2MAeK97nMiIdRpwd/ST4JFbNg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz", + "integrity": "sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz", + "integrity": "sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz", + "integrity": "sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz", + "integrity": "sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-create-class-features-plugin": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz", + "integrity": "sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz", + "integrity": "sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz", + "integrity": "sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-remap-async-to-generator": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz", + "integrity": "sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.15.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz", + "integrity": "sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz", + "integrity": "sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz", + "integrity": "sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.14.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz", + "integrity": "sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz", + "integrity": "sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz", + "integrity": "sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz", + "integrity": "sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz", + "integrity": "sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz", + "integrity": "sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz", + "integrity": "sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz", + "integrity": "sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz", + "integrity": "sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz", + "integrity": "sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-simple-access": "^7.15.4", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz", + "integrity": "sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==", + "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.15.4", + "@babel/helper-module-transforms": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-validator-identifier": "^7.14.9", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz", + "integrity": "sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.14.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz", + "integrity": "sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz", + "integrity": "sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz", + "integrity": "sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-replace-supers": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz", + "integrity": "sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz", + "integrity": "sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz", + "integrity": "sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==", + "dev": true, + "dependencies": { + "regenerator-transform": "^0.14.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz", + "integrity": "sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz", + "integrity": "sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.15.8.tgz", + "integrity": "sha512-/daZ8s2tNaRekl9YJa9X4bzjpeRZLt122cpgFnQPLGUe61PH8zMEBmYqKkW5xF5JUEh5buEGXJoQpqBmIbpmEQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz", + "integrity": "sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz", + "integrity": "sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz", + "integrity": "sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz", + "integrity": "sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz", + "integrity": "sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.15.8.tgz", + "integrity": "sha512-rCC0wH8husJgY4FPbHsiYyiLxSY8oMDJH7Rl6RQMknbN9oDDHhM9RDFvnGM2MgkbUJzSQB4gtuwygY5mCqGSsA==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-validator-option": "^7.14.5", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.15.4", + "@babel/plugin-proposal-async-generator-functions": "^7.15.8", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-proposal-class-static-block": "^7.15.4", + "@babel/plugin-proposal-dynamic-import": "^7.14.5", + "@babel/plugin-proposal-export-namespace-from": "^7.14.5", + "@babel/plugin-proposal-json-strings": "^7.14.5", + "@babel/plugin-proposal-logical-assignment-operators": "^7.14.5", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", + "@babel/plugin-proposal-numeric-separator": "^7.14.5", + "@babel/plugin-proposal-object-rest-spread": "^7.15.6", + "@babel/plugin-proposal-optional-catch-binding": "^7.14.5", + "@babel/plugin-proposal-optional-chaining": "^7.14.5", + "@babel/plugin-proposal-private-methods": "^7.14.5", + "@babel/plugin-proposal-private-property-in-object": "^7.15.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.14.5", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.14.5", + "@babel/plugin-transform-async-to-generator": "^7.14.5", + "@babel/plugin-transform-block-scoped-functions": "^7.14.5", + "@babel/plugin-transform-block-scoping": "^7.15.3", + "@babel/plugin-transform-classes": "^7.15.4", + "@babel/plugin-transform-computed-properties": "^7.14.5", + "@babel/plugin-transform-destructuring": "^7.14.7", + "@babel/plugin-transform-dotall-regex": "^7.14.5", + "@babel/plugin-transform-duplicate-keys": "^7.14.5", + "@babel/plugin-transform-exponentiation-operator": "^7.14.5", + "@babel/plugin-transform-for-of": "^7.15.4", + "@babel/plugin-transform-function-name": "^7.14.5", + "@babel/plugin-transform-literals": "^7.14.5", + "@babel/plugin-transform-member-expression-literals": "^7.14.5", + "@babel/plugin-transform-modules-amd": "^7.14.5", + "@babel/plugin-transform-modules-commonjs": "^7.15.4", + "@babel/plugin-transform-modules-systemjs": "^7.15.4", + "@babel/plugin-transform-modules-umd": "^7.14.5", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.14.9", + "@babel/plugin-transform-new-target": "^7.14.5", + "@babel/plugin-transform-object-super": "^7.14.5", + "@babel/plugin-transform-parameters": "^7.15.4", + "@babel/plugin-transform-property-literals": "^7.14.5", + "@babel/plugin-transform-regenerator": "^7.14.5", + "@babel/plugin-transform-reserved-words": "^7.14.5", + "@babel/plugin-transform-shorthand-properties": "^7.14.5", + "@babel/plugin-transform-spread": "^7.15.8", + "@babel/plugin-transform-sticky-regex": "^7.14.5", + "@babel/plugin-transform-template-literals": "^7.14.5", + "@babel/plugin-transform-typeof-symbol": "^7.14.5", + "@babel/plugin-transform-unicode-escapes": "^7.14.5", + "@babel/plugin-transform-unicode-regex": "^7.14.5", + "@babel/preset-modules": "^0.1.4", + "@babel/types": "^7.15.6", + "babel-plugin-polyfill-corejs2": "^0.2.2", + "babel-plugin-polyfill-corejs3": "^0.2.5", + "babel-plugin-polyfill-regenerator": "^0.2.2", + "core-js-compat": "^3.16.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/preset-env/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/preset-env/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", + "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "node_modules/@babel/runtime": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz", + "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/parser": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", + "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz", + "integrity": "sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.14.5", + "@babel/generator": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-hoist-variables": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/parser": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", + "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/types": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz", + "integrity": "sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.9", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.13.0.tgz", + "integrity": "sha512-hE+HE8rnG1Z6Wzo+MhaKE5lM5eMx71T4EHJgku2E3xIfaULhDcxiiRxUYgwX8qwP1BBSlag+TdGOt6JAidIZTA==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.12.11", + "lodash": "^4.17.19", + "to-fast-properties": "^2.0.0" + } + }, + "node_modules/@calzoneman/jsli": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@calzoneman/jsli/-/jsli-2.0.1.tgz", + "integrity": "sha1-y791tO+Ef6SWEetHgOp6nDZYYvU=", + "dependencies": { + "sprintf-js": "^1.1.1" + } + }, + "node_modules/@cytube/mediaquery": { + "version": "0.0.25", + "resolved": "https://registry.npmjs.org/@cytube/mediaquery/-/mediaquery-0.0.25.tgz", + "integrity": "sha512-wzwUARppd7kCevpOzO60VMWzn3y8VAw1lAKZQDTL8uuSwl3UtJ6MLB6asC6e5kdCfE9aRwIzYXtgbCFJOrvpfw==", + "dependencies": { + "@calzoneman/jsli": "^2.0.1", + "bluebird": "^2.9.12", + "domutils": "^1.5.1", + "htmlparser2": "^3.8.3", + "prom-client": "^10.0.2" + }, + "bin": { + "mediaquery": "bin/mediaquery.js" + } + }, + "node_modules/@cytube/mediaquery/node_modules/bluebird": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz", + "integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=" + }, + "node_modules/@cytube/mediaquery/node_modules/prom-client": { + "version": "10.2.3", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-10.2.3.tgz", + "integrity": "sha512-Xboq5+TdUwuQtSSDRZRNnb5NprINlgQN999VqUjZxnLKydUNLeIPx6Eiahg6oJua3XBg2TGnh5Cth1s4I6+r7g==", + "dependencies": { + "tdigest": "^0.1.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", + "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.0", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", + "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "dev": true + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.1.tgz", + "integrity": "sha512-CUBdThIZMoLEQQxACwhLsPg/puxBca0abTH3ixuvBQkhjJ80Hdp99jmVjxFCOa52/tZqN9d70IbGUf+OuKDHGA==", + "dependencies": { + "detect-libc": "^1.0.3", + "http-proxy-agent": "^4.0.1", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.1", + "nopt": "^5.0.0", + "npmlog": "^4.1.2", + "rimraf": "^3.0.2", + "semver": "^7.3.4", + "tar": "^6.1.0" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@nicolo-ribaudo/chokidar-2": { + "version": "2.1.8-no-fsevents.3", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", + "integrity": "sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==", + "dev": true, + "optional": true + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz", + "integrity": "sha512-sruwd86RJHdsVf/AtBoijDmUqJp3B6hF/DGC23C+JaegnDHaZyewCjoVGTdg3J0uz3Zs7NnIT05OBOmML72lQw==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@sinonjs/samsam": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz", + "integrity": "sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.6.0", + "lodash.get": "^4.4.2", + "type-detect": "^4.0.8" + } + }, + "node_modules/@sinonjs/text-encoding": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", + "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "dev": true + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/component-emitter": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@types/component-emitter/-/component-emitter-1.2.10.tgz", + "integrity": "sha512-bsjleuRKWmGqajMerkzox19aGbscQX5rmmvvXl3wlIp5gMG1HgkiwPxsN5p070fBDKTNSPgojVbuY1+HWMbFhg==" + }, + "node_modules/@types/cookie": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==" + }, + "node_modules/@types/cors": { + "version": "2.8.12", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.12.tgz", + "integrity": "sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==" + }, + "node_modules/@types/node": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.35.tgz", + "integrity": "sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==" + }, + "node_modules/@ungap/promise-all-settled": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", + "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", + "dev": true + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dependencies": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" + }, + "node_modules/are-we-there-yet": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/are-we-there-yet/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/are-we-there-yet/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/argparse/node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" + }, + "node_modules/assert-never": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/assert-never/-/assert-never-1.2.1.tgz", + "integrity": "sha512-TaTivMB6pYI1kXwrFlEhLeGfOqoDNdTxjCdwRfFFkEA30Eu+k48W34nlok2EYWJfFFzqaEmichdNM7th6M5HNw==" + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-add-module-exports": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-1.0.4.tgz", + "integrity": "sha512-g+8yxHUZ60RcyaUpfNzy56OtWW+x9cyEe9j+CranqLiqbju2yf/Cy6ZtYK40EZxtrdHllzlVZgLmcOUCTlJ7Jg==", + "dev": true + }, + "node_modules/babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, + "dependencies": { + "object.assign": "^4.1.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.2.tgz", + "integrity": "sha512-kISrENsJ0z5dNPq5eRvcctITNHYXWOA4DUZRFYCz3jYCcvTb/A546LIddmoGNMVYg2U38OyFeNosQwI9ENTqIQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.13.11", + "@babel/helper-define-polyfill-provider": "^0.2.2", + "semver": "^6.1.1" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz", + "integrity": "sha512-ninF5MQNwAX9Z7c9ED+H2pGt1mXdP4TqzlHKyPIYmJIYz0N+++uwdM7RnJukklhzJ54Q84vA4ZJkgs7lu5vqcw==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.2.2", + "core-js-compat": "^3.16.2" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.2.tgz", + "integrity": "sha512-Goy5ghsc21HgPDFtzRkSirpZVW35meGoTmTOb2bxqdl60ghub4xOidgNTHaZfQ2FaxQsKmwvXtOAkcIS4SMBWg==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.2.2" + } + }, + "node_modules/babel-walk": { + "version": "3.0.0-canary-5", + "resolved": "https://registry.npmjs.org/babel-walk/-/babel-walk-3.0.0-canary-5.tgz", + "integrity": "sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==", + "dependencies": { + "@babel/types": "^7.9.6" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "node_modules/base64id": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "engines": { + "node": "^4.5.0 || >= 5.9" + } + }, + "node_modules/basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/basic-auth/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/bcrypt": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.1.tgz", + "integrity": "sha512-9BTgmrhZM2t1bNuDtrtIMVSmmxZBrJ71n8Wg+YgdjHuIWYF7SjjmCPZFB+/5i/o/PIeRpwVJR3P+NrpIItUjqw==", + "hasInstallScript": true, + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.0", + "node-addon-api": "^3.1.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/bignumber.js": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", + "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==", + "engines": { + "node": "*" + } + }, + "node_modules/bintrees": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.1.tgz", + "integrity": "sha1-DmVcm5wkNeqraL9AJyJtK1WjRSQ=" + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + }, + "node_modules/body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dependencies": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz", + "integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==", + "dev": true, + "dependencies": { + "caniuse-lite": "^1.0.30001265", + "electron-to-chromium": "^1.3.867", + "escalade": "^3.1.1", + "node-releases": "^2.0.0", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + }, + "node_modules/bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001357", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001357.tgz", + "integrity": "sha512-b+KbWHdHePp+ZpNj+RDHFChZmuN+J5EvuQUlee9jOQIUAdhv9uvAZeEtUeLAknXbkiu1uxjQ9NLp1ie894CuWg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/character-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/character-parser/-/character-parser-2.2.0.tgz", + "integrity": "sha1-x84o821LzZdE5f/CxfzeHHMmH8A=", + "dependencies": { + "is-regex": "^1.0.3" + } + }, + "node_modules/cheerio": { + "version": "1.0.0-rc.10", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.10.tgz", + "integrity": "sha512-g0J0q/O6mW8z5zxQ3A8E8J1hUgp4SMOvEoW/x84OwyHKe/Zccz83PVT4y5Crcr530FV6NgmKI1qvGTKVl9XXVw==", + "dependencies": { + "cheerio-select": "^1.5.0", + "dom-serializer": "^1.3.2", + "domhandler": "^4.2.0", + "htmlparser2": "^6.1.0", + "parse5": "^6.0.1", + "parse5-htmlparser2-tree-adapter": "^6.0.1", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/cheerio-select": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.5.0.tgz", + "integrity": "sha512-qocaHPv5ypefh6YNxvnbABM07KMxExbtbfuJoIie3iZXX1ERwYmJcIiRrr9H05ucQP1k28dav8rpdDgjQd8drg==", + "dependencies": { + "css-select": "^4.1.3", + "css-what": "^5.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0", + "domutils": "^2.7.0" + } + }, + "node_modules/cheerio-select/node_modules/dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "node_modules/cheerio-select/node_modules/domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" + }, + "node_modules/cheerio-select/node_modules/domhandler": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz", + "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/cheerio-select/node_modules/domutils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "node_modules/cheerio/node_modules/dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "node_modules/cheerio/node_modules/domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" + }, + "node_modules/cheerio/node_modules/domhandler": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz", + "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/cheerio/node_modules/domutils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "node_modules/cheerio/node_modules/htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar/node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar/node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chokidar/node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar/node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/chokidar/node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/clean-css": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", + "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/coffeescript": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffeescript/-/coffeescript-1.12.7.tgz", + "integrity": "sha512-pLXHFxQMPklVoEekowk8b3erNynC+DVJzChxS/LCBBgR6/8AJkHivkm//zbowcfc7BTCAjryuhx6gPqPRfsFoA==", + "dev": true, + "bin": { + "cake": "bin/cake", + "coffee": "bin/coffee" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "node_modules/colorette": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.1.tgz", + "integrity": "sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw==" + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" + }, + "node_modules/constantinople": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/constantinople/-/constantinople-4.0.1.tgz", + "integrity": "sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==", + "dependencies": { + "@babel/parser": "^7.6.0", + "@babel/types": "^7.6.1" + } + }, + "node_modules/content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-disposition/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/convert-source-map/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-parser": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.5.tgz", + "integrity": "sha512-f13bPUj/gG/5mDr+xLmSxxDsB9DQiTIfhJS/sqjrmfAWiAN+x2O4i/XguTL9yDZ+/IFDanJ+5x7hC4CXT9Tdzw==", + "dependencies": { + "cookie": "0.4.0", + "cookie-signature": "1.0.6" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "node_modules/core-js-compat": { + "version": "3.18.3", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.18.3.tgz", + "integrity": "sha512-4zP6/y0a2RTHN5bRGT7PTq9lVt3WzvffTNjqnTKsXhkAYNDTkdCLOIfAdOLcQ/7TDdyRj3c+NeHe1NmF1eDScw==", + "dev": true, + "dependencies": { + "browserslist": "^4.17.3", + "semver": "7.0.0" + } + }, + "node_modules/core-js-compat/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/create-error": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/create-error/-/create-error-0.3.1.tgz", + "integrity": "sha1-aYECRaYp5lRDK/BDdzYAA6U1GiM=" + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csrf": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/csrf/-/csrf-3.1.0.tgz", + "integrity": "sha512-uTqEnCvWRk042asU6JtapDTcJeeailFy4ydOQS28bj1hcLnYRiqi8SsD2jS412AY1I/4qdOwWZun774iqywf9w==", + "dependencies": { + "rndm": "1.2.0", + "tsscmp": "1.0.6", + "uid-safe": "2.1.5" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/css-select": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", + "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^5.0.0", + "domhandler": "^4.2.0", + "domutils": "^2.6.0", + "nth-check": "^2.0.0" + } + }, + "node_modules/css-select/node_modules/dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "node_modules/css-select/node_modules/domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" + }, + "node_modules/css-select/node_modules/domhandler": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz", + "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/css-select/node_modules/domutils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "node_modules/css-what": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.0.1.tgz", + "integrity": "sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/cytubefilters": { + "resolved": "git+ssh://git@github.com/calzoneman/cytubefilters.git#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", + "hasInstallScript": true, + "dependencies": { + "nan": "^2.14.0" + } + }, + "node_modules/debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/decamelize": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "dependencies": { + "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" + }, + "node_modules/denque": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz", + "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/doctypes": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz", + "integrity": "sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk=" + }, + "node_modules/dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/dom-serializer/node_modules/domelementtype": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.1.0.tgz", + "integrity": "sha512-LsTgx/L5VpD+Q8lmsXSHW2WpA+eBlZ9HPf3erD1IoPF00/3JKHZ3BknUVA2QGDNu69ZNmyFmCWBSO45XjYKC5w==" + }, + "node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" + }, + "node_modules/domhandler": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", + "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "dependencies": { + "domelementtype": "1" + } + }, + "node_modules/domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "node_modules/electron-to-chromium": { + "version": "1.3.867", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.867.tgz", + "integrity": "sha512-WbTXOv7hsLhjJyl7jBfDkioaY++iVVZomZ4dU6TMe/SzucV6mUAs2VZn/AehBwuZMiNEQDaPuTGn22YK5o+aDw==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/engine.io": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.2.0.tgz", + "integrity": "sha512-4KzwW3F3bk+KlzSOY57fj/Jx6LyRQ1nbcyIadehl+AnXjKT7gDO0ORdRi/84ixvMKTym6ZKuxvbzN62HDDU1Lg==", + "dependencies": { + "@types/cookie": "^0.4.1", + "@types/cors": "^2.8.12", + "@types/node": ">=10.0.0", + "accepts": "~1.3.4", + "base64id": "2.0.0", + "cookie": "~0.4.1", + "cors": "~2.8.5", + "debug": "~4.3.1", + "engine.io-parser": "~5.0.3", + "ws": "~8.2.3" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/engine.io-parser": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.4.tgz", + "integrity": "sha512-+nVFp+5z1E3HcToEnO7ZIj3g+3k9389DvWtvJZz0T6/eOCPIyyxehFcedoYrZQrp0LgQbD9pPXhpMBKMd5QURg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/engine.io/node_modules/cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", + "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.3", + "@humanwhocodes/config-array": "^0.5.0", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/esm": { + "version": "3.2.25", + "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", + "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "dependencies": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "dependencies": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express-minify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/express-minify/-/express-minify-1.0.0.tgz", + "integrity": "sha512-04/iYxB79jGeNZBBkbAW7L7FMG4Wtu78F1SayXIKiJD6MfqYnOI3DD8no7QOntgedYCdYUpj+Skg8QWR/2WnMQ==", + "dependencies": { + "clean-css": "^4.1.7", + "on-headers": "^1.0.1", + "uglify-js": "^3.0.28" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/express/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/flat": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "dev": true, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", + "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", + "dev": true + }, + "node_modules/forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-readdir-recursive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "node_modules/gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", + "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1" + } + }, + "node_modules/getopts": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/getopts/-/getopts-2.2.5.tgz", + "integrity": "sha512-9jb7AW5p3in+IiJWhQiZmmwkpLaR/ccTWdWQCtZM66HJcHHLegowh4q4tSD7gouUyeNvFWRavfK9GXosQHDpFA==" + }, + "node_modules/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/htmlparser2": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", + "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", + "dependencies": { + "domelementtype": "^1.3.1", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^3.1.1" + } + }, + "node_modules/htmlparser2/node_modules/entities": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + }, + "node_modules/http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-errors/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-core-module": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", + "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/is-expression": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-expression/-/is-expression-4.0.0.tgz", + "integrity": "sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==", + "dependencies": { + "acorn": "^7.1.1", + "object-assign": "^4.1.1" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-obj": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-promise": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" + }, + "node_modules/is-regex": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.2.tgz", + "integrity": "sha512-axvdhb5pdhEVThqJzYXwMlVuZwC+FF2DpcOhTS+y/8jVq4trxyPgfcwIxIKiyeuLlSQYKkmUaPQJ8ZE4yNKXDg==", + "dependencies": { + "call-bind": "^1.0.2", + "has-symbols": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/js-stringify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/js-stringify/-/js-stringify-1.0.2.tgz", + "integrity": "sha1-Fzb939lyTyijaCrcYjCufk6Weds=" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "node_modules/json-typecheck": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/json-typecheck/-/json-typecheck-0.1.3.tgz", + "integrity": "sha1-HWGr4lOi7HNkbYH2MTqQrcx1GNc=" + }, + "node_modules/json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jstransformer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/jstransformer/-/jstransformer-1.0.0.tgz", + "integrity": "sha1-7Yvwkh4vPx7U1cGkT2hwntJHIsM=", + "dependencies": { + "is-promise": "^2.0.0", + "promise": "^7.0.1" + } + }, + "node_modules/just-extend": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", + "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", + "dev": true + }, + "node_modules/klona": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", + "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/knex": { + "version": "0.95.2", + "resolved": "https://registry.npmjs.org/knex/-/knex-0.95.2.tgz", + "integrity": "sha512-USnukuNnoVAfeV6OXrkHPLcUQRsRbTl3Tk5E3x0hmKs4uEu5vGfZHxD4luyrndIysyDrKXBWfASQ1wFpJWDDFg==", + "dependencies": { + "colorette": "1.2.1", + "commander": "^7.1.0", + "debug": "4.3.1", + "escalade": "^3.1.1", + "esm": "^3.2.25", + "getopts": "2.2.5", + "interpret": "^2.2.0", + "lodash": "^4.17.21", + "pg-connection-string": "2.4.0", + "rechoir": "^0.7.0", + "resolve-from": "^5.0.0", + "tarn": "^3.0.1", + "tildify": "2.0.0" + }, + "bin": { + "knex": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz", + "integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.29", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz", + "integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==", + "dependencies": { + "mime-db": "1.46.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, + "node_modules/minipass": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.3.tgz", + "integrity": "sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.0.0.tgz", + "integrity": "sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA==", + "dev": true, + "dependencies": { + "@ungap/promise-all-settled": "1.1.2", + "ansi-colors": "4.1.1", + "browser-stdout": "1.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", + "diff": "5.0.0", + "escape-string-regexp": "4.0.0", + "find-up": "5.0.0", + "glob": "7.2.0", + "he": "1.2.0", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", + "ms": "2.1.3", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", + "strip-json-comments": "3.1.1", + "supports-color": "8.1.1", + "workerpool": "6.2.1", + "yargs": "16.2.0", + "yargs-parser": "20.2.4", + "yargs-unparser": "2.0.0" + }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha.js" + }, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/mocha/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/mocha/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mocha/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/mocha/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/mocha/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", + "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/morgan": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", + "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", + "dependencies": { + "basic-auth": "~2.0.1", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-finished": "~2.3.0", + "on-headers": "~1.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/morgan/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/morgan/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/morgan/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/mysql": { + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz", + "integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==", + "dependencies": { + "bignumber.js": "9.0.0", + "readable-stream": "2.3.7", + "safe-buffer": "5.1.2", + "sqlstring": "2.3.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mysql/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/mysql/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/mysql/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/nan": { + "version": "2.14.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz", + "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==" + }, + "node_modules/nanoid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", + "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "node_modules/negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nise": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/nise/-/nise-4.1.0.tgz", + "integrity": "sha512-eQMEmGN/8arp0xsvGoQ+B1qvSkR73B1nWSCh7nOt5neMCtwcQVYQGdzQMhcNscktTsWB54xnlSQFzOAPJD8nXA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0", + "@sinonjs/fake-timers": "^6.0.0", + "@sinonjs/text-encoding": "^0.7.1", + "just-extend": "^4.0.2", + "path-to-regexp": "^1.7.0" + } + }, + "node_modules/nise/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "node_modules/nise/node_modules/path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dev": true, + "dependencies": { + "isarray": "0.0.1" + } + }, + "node_modules/node-addon-api": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.1.0.tgz", + "integrity": "sha512-flmrDNB06LIl5lywUz7YlNGZH/5p0M7W28k8hzd9Lshtdh1wshD2Y+U4h9LD6KObOy1f+fEVdgprPrEymjM5uw==" + }, + "node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-releases": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.0.tgz", + "integrity": "sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==", + "dev": true + }, + "node_modules/nodemailer": { + "version": "6.7.5", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.5.tgz", + "integrity": "sha512-6VtMpwhsrixq1HDYSBBHvW0GwiWawE75dS3oal48VqRhUvKJNnKnJo2RI/bCVQubj1vgrgscMNW4DHaD6xtMCg==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dependencies": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "node_modules/nth-check": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", + "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", + "dependencies": { + "boolbase": "^1.0.0" + } + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", + "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3", + "has-symbols": "^1.0.1", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-srcset": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz", + "integrity": "sha1-8r0iH2zJcKk42IVWq8WJyqqiveE=" + }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + }, + "node_modules/parse5-htmlparser2-tree-adapter": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", + "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", + "dependencies": { + "parse5": "^6.0.1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "node_modules/pg-connection-string": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.4.0.tgz", + "integrity": "sha512-3iBXuv7XKvxeMrIgym7njT+HlZkwZqqGX4Bu9cci8xHZNT+Um1gWKqCsAzcC0d95rcKMU5WBg6YRUcHyV0HZKQ==" + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss": { + "version": "8.2.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.2.15.tgz", + "integrity": "sha512-2zO3b26eJD/8rb106Qu2o7Qgg52ND5HPjcyQiK2B98O388h43A448LCslC0dI2P97wCAQRJsFvwTRcXxTKds+Q==", + "dependencies": { + "colorette": "^1.2.2", + "nanoid": "^3.1.23", + "source-map": "^0.6.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss/node_modules/colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==" + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/prom-client": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-13.1.0.tgz", + "integrity": "sha512-jT9VccZCWrJWXdyEtQddCDszYsiuWj5T0ekrPszi/WEegj3IZy6Mm09iOOVM86A4IKMWq8hZkT2dD9MaSe+sng==", + "dependencies": { + "tdigest": "^0.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "dependencies": { + "asap": "~2.0.3" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", + "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", + "dependencies": { + "forwarded": "~0.1.2", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pug": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pug/-/pug-3.0.2.tgz", + "integrity": "sha512-bp0I/hiK1D1vChHh6EfDxtndHji55XP/ZJKwsRqrz6lRia6ZC2OZbdAymlxdVFwd1L70ebrVJw4/eZ79skrIaw==", + "dependencies": { + "pug-code-gen": "^3.0.2", + "pug-filters": "^4.0.0", + "pug-lexer": "^5.0.1", + "pug-linker": "^4.0.0", + "pug-load": "^3.0.0", + "pug-parser": "^6.0.0", + "pug-runtime": "^3.0.1", + "pug-strip-comments": "^2.0.0" + } + }, + "node_modules/pug-attrs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pug-attrs/-/pug-attrs-3.0.0.tgz", + "integrity": "sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA==", + "dependencies": { + "constantinople": "^4.0.1", + "js-stringify": "^1.0.2", + "pug-runtime": "^3.0.0" + } + }, + "node_modules/pug-code-gen": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pug-code-gen/-/pug-code-gen-3.0.2.tgz", + "integrity": "sha512-nJMhW16MbiGRiyR4miDTQMRWDgKplnHyeLvioEJYbk1RsPI3FuA3saEP8uwnTb2nTJEKBU90NFVWJBk4OU5qyg==", + "dependencies": { + "constantinople": "^4.0.1", + "doctypes": "^1.1.0", + "js-stringify": "^1.0.2", + "pug-attrs": "^3.0.0", + "pug-error": "^2.0.0", + "pug-runtime": "^3.0.0", + "void-elements": "^3.1.0", + "with": "^7.0.0" + } + }, + "node_modules/pug-error": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pug-error/-/pug-error-2.0.0.tgz", + "integrity": "sha512-sjiUsi9M4RAGHktC1drQfCr5C5eriu24Lfbt4s+7SykztEOwVZtbFk1RRq0tzLxcMxMYTBR+zMQaG07J/btayQ==" + }, + "node_modules/pug-filters": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pug-filters/-/pug-filters-4.0.0.tgz", + "integrity": "sha512-yeNFtq5Yxmfz0f9z2rMXGw/8/4i1cCFecw/Q7+D0V2DdtII5UvqE12VaZ2AY7ri6o5RNXiweGH79OCq+2RQU4A==", + "dependencies": { + "constantinople": "^4.0.1", + "jstransformer": "1.0.0", + "pug-error": "^2.0.0", + "pug-walk": "^2.0.0", + "resolve": "^1.15.1" + } + }, + "node_modules/pug-lexer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pug-lexer/-/pug-lexer-5.0.1.tgz", + "integrity": "sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==", + "dependencies": { + "character-parser": "^2.2.0", + "is-expression": "^4.0.0", + "pug-error": "^2.0.0" + } + }, + "node_modules/pug-linker": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pug-linker/-/pug-linker-4.0.0.tgz", + "integrity": "sha512-gjD1yzp0yxbQqnzBAdlhbgoJL5qIFJw78juN1NpTLt/mfPJ5VgC4BvkoD3G23qKzJtIIXBbcCt6FioLSFLOHdw==", + "dependencies": { + "pug-error": "^2.0.0", + "pug-walk": "^2.0.0" + } + }, + "node_modules/pug-load": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pug-load/-/pug-load-3.0.0.tgz", + "integrity": "sha512-OCjTEnhLWZBvS4zni/WUMjH2YSUosnsmjGBB1An7CsKQarYSWQ0GCVyd4eQPMFJqZ8w9xgs01QdiZXKVjk92EQ==", + "dependencies": { + "object-assign": "^4.1.1", + "pug-walk": "^2.0.0" + } + }, + "node_modules/pug-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/pug-parser/-/pug-parser-6.0.0.tgz", + "integrity": "sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw==", + "dependencies": { + "pug-error": "^2.0.0", + "token-stream": "1.0.0" + } + }, + "node_modules/pug-runtime": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/pug-runtime/-/pug-runtime-3.0.1.tgz", + "integrity": "sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg==" + }, + "node_modules/pug-strip-comments": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pug-strip-comments/-/pug-strip-comments-2.0.0.tgz", + "integrity": "sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ==", + "dependencies": { + "pug-error": "^2.0.0" + } + }, + "node_modules/pug-walk": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pug-walk/-/pug-walk-2.0.0.tgz", + "integrity": "sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ==" + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "dependencies": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rechoir": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.0.tgz", + "integrity": "sha512-ADsDEH2bvbjltXEP+hTIAmeFekTFK0V2BTxMkok6qILyAJEXV0AFfoWcAq4yfll5VdIMd/RVXq0lR+wQi5ZU3Q==", + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/redis": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/redis/-/redis-3.1.1.tgz", + "integrity": "sha512-QhkKhOuzhogR1NDJfBD34TQJz2ZJwDhhIC6ZmvpftlmfYShHHQXjjNspAJ+Z2HH5NwSBVYBVganbiZ8bgFMHjg==", + "dependencies": { + "denque": "^1.5.0", + "redis-commands": "^1.7.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/redis-commands": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.7.0.tgz", + "integrity": "sha512-nJWqw3bTFy21hX/CPKHth6sfhZbdiHP6bTawSgQBlKOVRG7EZkfHbbHwQJnrE4vsQf0CMNE+3gJ4Fmm16vdVlQ==" + }, + "node_modules/redis-errors": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", + "integrity": "sha1-62LSrbFeTq9GEMBK/hUpOEJQq60=", + "engines": { + "node": ">=4" + } + }, + "node_modules/redis-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", + "integrity": "sha1-tm2CjNyv5rS4pCin3vTGvKwxyLQ=", + "dependencies": { + "redis-errors": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz", + "integrity": "sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "node_modules/regenerator-transform": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", + "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/regexpu-core": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.8.0.tgz", + "integrity": "sha512-1F6bYsoYiz6is+oz70NWur2Vlh9KWtswuRuzJOfeYUrfPX2o8n74AnUVaOGDbUqVGO9fNHu48/pjJO4sNVwsOg==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^9.0.0", + "regjsgen": "^0.5.2", + "regjsparser": "^0.7.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", + "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", + "dev": true + }, + "node_modules/regjsparser": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz", + "integrity": "sha512-A4pcaORqmNMDVwUjWoTzuhwMGpP+NykpfqAsEgI1FSH/EzC7lrN5TMd+kN8YCovX+jMpu8eaqXgXPCa0g8FQNQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", + "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "dependencies": { + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/rndm": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz", + "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=" + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sanitize-html": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.3.3.tgz", + "integrity": "sha512-DCFXPt7Di0c6JUnlT90eIgrjs6TsJl/8HYU3KLdmrVclFN4O0heTcVbJiMa23OKVr6aR051XYtsgd8EWwEBwUA==", + "dependencies": { + "deepmerge": "^4.2.2", + "escape-string-regexp": "^4.0.0", + "htmlparser2": "^6.0.0", + "is-plain-object": "^5.0.0", + "klona": "^2.0.3", + "parse-srcset": "^1.0.2", + "postcss": "^8.0.2" + } + }, + "node_modules/sanitize-html/node_modules/dom-serializer": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.2.0.tgz", + "integrity": "sha512-n6kZFH/KlCrqs/1GHMOd5i2fd/beQHuehKdWvNNffbGHTr/almdhuVvTVFb3V7fglz+nC50fFusu3lY33h12pA==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "entities": "^2.0.0" + } + }, + "node_modules/sanitize-html/node_modules/domelementtype": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.1.0.tgz", + "integrity": "sha512-LsTgx/L5VpD+Q8lmsXSHW2WpA+eBlZ9HPf3erD1IoPF00/3JKHZ3BknUVA2QGDNu69ZNmyFmCWBSO45XjYKC5w==" + }, + "node_modules/sanitize-html/node_modules/domhandler": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.0.0.tgz", + "integrity": "sha512-KPTbnGQ1JeEMQyO1iYXoagsI6so/C96HZiFyByU3T6iAzpXn8EGEvct6unm1ZGoed8ByO2oirxgwxBmqKF9haA==", + "dependencies": { + "domelementtype": "^2.1.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/sanitize-html/node_modules/domutils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.5.0.tgz", + "integrity": "sha512-Ho16rzNMOFk2fPwChGh3D2D9OEHAfG19HgmRR2l+WLSsIstNsAYBzePH412bL0y5T44ejABIVfTHQ8nqi/tBCg==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0" + } + }, + "node_modules/sanitize-html/node_modules/htmlparser2": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.0.1.tgz", + "integrity": "sha512-GDKPd+vk4jvSuvCbyuzx/unmXkk090Azec7LovXP8as1Hn8q9p3hbjmDGbUqqhknw0ajwit6LiiWqfiTUPMK7w==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.4.4", + "entities": "^2.0.0" + } + }, + "node_modules/semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "dependencies": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" + }, + "node_modules/setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" + }, + "node_modules/sinon": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-10.0.0.tgz", + "integrity": "sha512-XAn5DxtGVJBlBWYrcYKEhWCz7FLwZGdyvANRyK06419hyEpdT0dMc5A8Vcxg5SCGHc40CsqoKsc1bt1CbJPfNw==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.8.1", + "@sinonjs/fake-timers": "^6.0.1", + "@sinonjs/samsam": "^5.3.1", + "diff": "^4.0.2", + "nise": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "node_modules/sinon/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/sinon/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sinon/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/socket.io": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.5.1.tgz", + "integrity": "sha512-0y9pnIso5a9i+lJmsCdtmTTgJFFSvNQKDnPQRz28mGNnxbmqYg2QPtJTLFxhymFZhAIn50eHAKzJeiNaKr+yUQ==", + "dependencies": { + "accepts": "~1.3.4", + "base64id": "~2.0.0", + "debug": "~4.3.2", + "engine.io": "~6.2.0", + "socket.io-adapter": "~2.4.0", + "socket.io-parser": "~4.0.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-adapter": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.4.0.tgz", + "integrity": "sha512-W4N+o69rkMEGVuk2D/cvca3uYsvGlMwsySWV447y99gUPghxq42BxqLNMndb+a1mm/5/7NeXVQS7RLa2XyXvYg==" + }, + "node_modules/socket.io-parser": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.0.4.tgz", + "integrity": "sha512-t+b0SS+IxG7Rxzda2EVvyBZbvFPBCjJoyHuE0P//7OAsN23GItzDRdWa6ALxZI/8R5ygK7jAR6t028/z+7295g==", + "dependencies": { + "@types/component-emitter": "^1.2.10", + "component-emitter": "~1.3.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==" + }, + "node_modules/sqlstring": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz", + "integrity": "sha1-R1OT/56RR5rqYtyvDKPRSYOn+0A=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/table": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", + "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", + "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "node_modules/table/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/table/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tar": { + "version": "6.1.11", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", + "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/tarn": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.1.tgz", + "integrity": "sha512-6usSlV9KyHsspvwu2duKH+FMUhqJnAh6J5J/4MITl8s94iSUQTLkJggdiewKv4RyARQccnigV48Z+khiuVZDJw==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/tdigest": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.1.tgz", + "integrity": "sha1-Ljyyw56kSeVdHmzZEReszKRYgCE=", + "dependencies": { + "bintrees": "1.0.1" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "node_modules/tildify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", + "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "engines": { + "node": ">=4" + } + }, + "node_modules/toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/token-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/token-stream/-/token-stream-1.0.0.tgz", + "integrity": "sha1-zCAOqyYT9BZtJ/+a/HylbUnfbrQ=" + }, + "node_modules/toml": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/toml/-/toml-3.0.0.tgz", + "integrity": "sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==" + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, + "node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + }, + "node_modules/tsscmp": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", + "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==", + "engines": { + "node": ">=0.6.x" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/uglify-js": { + "version": "3.13.2", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.2.tgz", + "integrity": "sha512-SbMu4D2Vo95LMC/MetNaso1194M1htEA+JrqE9Hk+G2DhI+itfS9TRu9ZKeCahLDNa/J3n4MqUJ/fOHMzQpRWw==", + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "dependencies": { + "random-bytes": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", + "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", + "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/void-elements": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz", + "integrity": "sha1-YU9/v42AHwu18GYfWy9XhXUOTwk=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dependencies": { + "string-width": "^1.0.2 || 2" + } + }, + "node_modules/with": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/with/-/with-7.0.2.tgz", + "integrity": "sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w==", + "dependencies": { + "@babel/parser": "^7.9.6", + "@babel/types": "^7.9.6", + "assert-never": "^1.2.1", + "babel-walk": "3.0.0-canary-5" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workerpool": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", + "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "node_modules/ws": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", + "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yamljs": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/yamljs/-/yamljs-0.2.10.tgz", + "integrity": "sha1-SBzHwlynOvWfWR8MluPOVsdXpA8=", + "dependencies": { + "argparse": "^1.0.7", + "glob": "^7.0.5" + }, + "bin": { + "json2yaml": "bin/json2yaml", + "yaml2json": "bin/yaml2json" + } + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.4", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", + "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-unparser": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", + "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", + "dev": true, + "dependencies": { + "camelcase": "^6.0.0", + "decamelize": "^4.0.0", + "flat": "^5.0.2", + "is-plain-obj": "^2.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + } + } + }, "dependencies": { "@babel/cli": { "version": "7.15.7", @@ -1779,9 +8758,9 @@ "integrity": "sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==" }, "@types/node": { - "version": "16.6.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.6.0.tgz", - "integrity": "sha512-OyiZPohMMjZEYqcVo/UJ04GyAxXOJEZO/FpzyXxcH4r/ArrVoXHf4MbUrkLp0Tz7/p1mMKpo5zJ6ZHl8XBNthQ==" + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.35.tgz", + "integrity": "sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==" }, "@ungap/promise-all-settled": { "version": "1.1.2", @@ -1854,6 +8833,16 @@ "color-convert": "^1.9.0" } }, + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", @@ -1999,11 +8988,6 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, - "base64-arraybuffer": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", - "integrity": "sha1-mBjHngWbE1X5fgQooBfIOOkLqBI=" - }, "base64id": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", @@ -2145,9 +9129,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001265", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001265.tgz", - "integrity": "sha512-YzBnspggWV5hep1m9Z6sZVLOt7vrju8xWooFAgN6BA5qvy98qPAPb7vNUzypFaoh2pb3vlfzbDO8tB57UPGbtw==", + "version": "1.0.30001357", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001357.tgz", + "integrity": "sha512-b+KbWHdHePp+ZpNj+RDHFChZmuN+J5EvuQUlee9jOQIUAdhv9uvAZeEtUeLAknXbkiu1uxjQ9NLp1ie894CuWg==", "dev": true }, "chalk": { @@ -2285,31 +9269,21 @@ } }, "chokidar": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", - "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, "requires": { - "anymatch": "~3.1.1", + "anymatch": "~3.1.2", "braces": "~3.0.2", - "fsevents": "~2.3.1", - "glob-parent": "~5.1.0", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", - "readdirp": "~3.5.0" + "readdirp": "~3.6.0" }, "dependencies": { - "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -2358,15 +9332,6 @@ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, - "readdirp": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", - "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -2715,8 +9680,8 @@ "integrity": "sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==" }, "cytubefilters": { - "version": "github:calzoneman/cytubefilters#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", - "from": "github:calzoneman/cytubefilters#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", + "version": "git+ssh://git@github.com/calzoneman/cytubefilters.git#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", + "from": "cytubefilters@github:calzoneman/cytubefilters#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", "requires": { "nan": "^2.14.0" } @@ -2861,33 +9826,33 @@ "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, "engine.io": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-5.1.1.tgz", - "integrity": "sha512-aMWot7H5aC8L4/T8qMYbLdvKlZOdJTH54FxfdFunTGvhMx1BHkJOntWArsVfgAZVwAO9LC2sryPWRcEeUzCe5w==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.2.0.tgz", + "integrity": "sha512-4KzwW3F3bk+KlzSOY57fj/Jx6LyRQ1nbcyIadehl+AnXjKT7gDO0ORdRi/84ixvMKTym6ZKuxvbzN62HDDU1Lg==", "requires": { + "@types/cookie": "^0.4.1", + "@types/cors": "^2.8.12", + "@types/node": ">=10.0.0", "accepts": "~1.3.4", "base64id": "2.0.0", "cookie": "~0.4.1", "cors": "~2.8.5", "debug": "~4.3.1", - "engine.io-parser": "~4.0.0", - "ws": "~7.4.2" + "engine.io-parser": "~5.0.3", + "ws": "~8.2.3" }, "dependencies": { "cookie": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" } } }, "engine.io-parser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-4.0.2.tgz", - "integrity": "sha512-sHfEQv6nmtJrq6TKuIz5kyEKH/qSdK56H/A+7DnAuUPWosnIZAS2NHNcPLmyjtY3cGS/MqJdZbUjW97JU72iYg==", - "requires": { - "base64-arraybuffer": "0.1.4" - } + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.4.tgz", + "integrity": "sha512-+nVFp+5z1E3HcToEnO7ZIj3g+3k9389DvWtvJZz0T6/eOCPIyyxehFcedoYrZQrp0LgQbD9pPXhpMBKMd5QURg==" }, "enquirer": { "version": "2.3.6", @@ -3409,9 +10374,9 @@ "integrity": "sha512-9jb7AW5p3in+IiJWhQiZmmwkpLaR/ccTWdWQCtZM66HJcHHLegowh4q4tSD7gouUyeNvFWRavfK9GXosQHDpFA==" }, "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -3436,12 +10401,6 @@ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -3648,6 +10607,12 @@ "has-symbols": "^1.0.1" } }, + "is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -3807,12 +10772,13 @@ "dev": true }, "log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, "requires": { - "chalk": "^4.0.0" + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" }, "dependencies": { "ansi-styles": { @@ -3931,9 +10897,9 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "minipass": { @@ -3959,33 +10925,30 @@ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" }, "mocha": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz", - "integrity": "sha512-hJaO0mwDXmZS4ghXsvPVriOhsxQ7ofcpQdm8dE+jISUOKopitvnXFQmpRR7jd2K6VBG6E26gU3IAbXXGIbu4sQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.0.0.tgz", + "integrity": "sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA==", "dev": true, "requires": { "@ungap/promise-all-settled": "1.1.2", "ansi-colors": "4.1.1", "browser-stdout": "1.3.1", - "chokidar": "3.5.1", - "debug": "4.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", "diff": "5.0.0", "escape-string-regexp": "4.0.0", "find-up": "5.0.0", - "glob": "7.1.6", - "growl": "1.10.5", + "glob": "7.2.0", "he": "1.2.0", - "js-yaml": "4.0.0", - "log-symbols": "4.0.0", - "minimatch": "3.0.4", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", "ms": "2.1.3", - "nanoid": "3.1.20", - "serialize-javascript": "5.0.1", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", "strip-json-comments": "3.1.1", "supports-color": "8.1.1", - "which": "2.0.2", - "wide-align": "1.1.3", - "workerpool": "6.1.0", + "workerpool": "6.2.1", "yargs": "16.2.0", "yargs-parser": "20.2.4", "yargs-unparser": "2.0.0" @@ -3997,6 +10960,32 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + }, + "dependencies": { + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -4004,14 +10993,23 @@ "dev": true }, "js-yaml": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", - "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "requires": { "argparse": "^2.0.1" } }, + "minimatch": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", + "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, "ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -4112,10 +11110,9 @@ "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==" }, "nanoid": { - "version": "3.1.20", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", - "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==", - "dev": true + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", + "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==" }, "natural-compare": { "version": "1.4.0", @@ -4164,9 +11161,12 @@ "integrity": "sha512-flmrDNB06LIl5lywUz7YlNGZH/5p0M7W28k8hzd9Lshtdh1wshD2Y+U4h9LD6KObOy1f+fEVdgprPrEymjM5uw==" }, "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "requires": { + "whatwg-url": "^5.0.0" + } }, "node-releases": { "version": "2.0.0", @@ -4175,9 +11175,9 @@ "dev": true }, "nodemailer": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.5.0.tgz", - "integrity": "sha512-Tm4RPrrIZbnqDKAvX+/4M+zovEReiKlEXWDzG4iwtpL9X34MJY+D5LnQPH/+eghe8DLlAVshHAJZAZWBGhkguw==" + "version": "6.7.5", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.5.tgz", + "integrity": "sha512-6VtMpwhsrixq1HDYSBBHvW0GwiWawE75dS3oal48VqRhUvKJNnKnJo2RI/bCVQubj1vgrgscMNW4DHaD6xtMCg==" }, "nopt": { "version": "5.0.0", @@ -4364,9 +11364,9 @@ "dev": true }, "picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "pify": { @@ -4389,11 +11389,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==" - }, - "nanoid": { - "version": "3.1.23", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.23.tgz", - "integrity": "sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==" } } }, @@ -4602,6 +11597,15 @@ "util-deprecate": "^1.0.1" } }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, "rechoir": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.0.tgz", @@ -4872,9 +11876,9 @@ } }, "serialize-javascript": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", - "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", "dev": true, "requires": { "randombytes": "^2.1.0" @@ -5008,25 +12012,32 @@ } }, "socket.io": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.1.3.tgz", - "integrity": "sha512-tLkaY13RcO4nIRh1K2hT5iuotfTaIQw7cVIe0FUykN3SuQi0cm7ALxuyT5/CtDswOMWUzMGTibxYNx/gU7In+Q==", + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.5.1.tgz", + "integrity": "sha512-0y9pnIso5a9i+lJmsCdtmTTgJFFSvNQKDnPQRz28mGNnxbmqYg2QPtJTLFxhymFZhAIn50eHAKzJeiNaKr+yUQ==", "requires": { - "@types/cookie": "^0.4.0", - "@types/cors": "^2.8.10", - "@types/node": ">=10.0.0", "accepts": "~1.3.4", "base64id": "~2.0.0", - "debug": "~4.3.1", - "engine.io": "~5.1.1", - "socket.io-adapter": "~2.3.1", + "debug": "~4.3.2", + "engine.io": "~6.2.0", + "socket.io-adapter": "~2.4.0", "socket.io-parser": "~4.0.4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + } } }, "socket.io-adapter": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.3.1.tgz", - "integrity": "sha512-8cVkRxI8Nt2wadkY6u60Y4rpW3ejA1rxgcK2JuyIhmF+RMNpTy1QRtkHIDUOf3B4HlQwakMsWbKftMv/71VMmw==" + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.4.0.tgz", + "integrity": "sha512-W4N+o69rkMEGVuk2D/cvca3uYsvGlMwsySWV447y99gUPghxq42BxqLNMndb+a1mm/5/7NeXVQS7RLa2XyXvYg==" }, "socket.io-parser": { "version": "4.0.4", @@ -5067,6 +12078,14 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -5077,14 +12096,6 @@ "strip-ansi": "^3.0.0" } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -5231,6 +12242,11 @@ "resolved": "https://registry.npmjs.org/toml/-/toml-3.0.0.tgz", "integrity": "sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==" }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, "tslib": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", @@ -5357,6 +12373,20 @@ "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz", "integrity": "sha1-YU9/v42AHwu18GYfWy9XhXUOTwk=" }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -5392,9 +12422,9 @@ "dev": true }, "workerpool": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.1.0.tgz", - "integrity": "sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", + "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", "dev": true }, "wrap-ansi": { @@ -5472,9 +12502,10 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==" + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", + "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", + "requires": {} }, "y18n": { "version": "5.0.8", diff --git a/package.json b/package.json index 58b74042..b6e5b261 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "babel-plugin-add-module-exports": "^1.0.4", "coffeescript": "^1.9.2", "eslint": "^7.32.0", - "mocha": "^8.4.0", + "mocha": "^10.0.0", "sinon": "^10.0.0" }, "babel": { diff --git a/player/base.coffee b/player/base.coffee index d03fe268..ec54a969 100644 --- a/player/base.coffee +++ b/player/base.coffee @@ -5,6 +5,9 @@ window.Player = class Player @setMediaProperties(data) @paused = false + @latched = true + @seeklatch = false #used to lock sync latch when seeking for sync + @lastSTime = 0 load: (data) -> @setMediaProperties(data) @@ -19,7 +22,20 @@ window.Player = class Player pause: -> @paused = true - + latch: -> + if not @latched + @latched = true + unlatch: -> + if not @seeklatch + if @latched + $("#latchvid").show() + @latched = false + else + @seeklatch = false + latchseek: -> + @seeklatch = true + getLatch: (cb) -> + cb(@latched) seekTo: (time) -> setVolume: (volume) -> diff --git a/player/dailymotion.coffee b/player/dailymotion.coffee index 2d8e3b21..e03f8961 100644 --- a/player/dailymotion.coffee +++ b/player/dailymotion.coffee @@ -6,6 +6,7 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player @setMediaProperties(data) @initialVolumeSet = false @playbackReadyCb = null + @latched = true waitUntilDefined(window, 'DM', => removeOld() @@ -37,6 +38,8 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player @paused = true if CLIENT.leader sendVideoUpdate() + else + @unlatch() ) @dm.addEventListener('playing', => @@ -48,6 +51,11 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player @setVolume(VOLUME) @initialVolumeSet = true ) + + @dm.addEventListener('seeked', => + if not CLIENT.leader + @unlatch() + ) # Once the video stops, the internal state of the player # becomes unusable and attempting to load() will corrupt it and diff --git a/player/update.coffee b/player/update.coffee index 6ad06541..da653865 100644 --- a/player/update.coffee +++ b/player/update.coffee @@ -19,6 +19,7 @@ TYPE_MAP = tc: TwitchClipPlayer cm: VideoJSPlayer + window.loadMediaPlayer = (data) -> try if window.PLAYER @@ -41,16 +42,20 @@ window.handleMediaUpdate = (data) -> PLAYER = window.PLAYER #bodge for fcyp.js layout - handleWindowResize() + #handleWindowResize() #update airdate dispSTimes(); + PLAYER.lastSTime = data.currentTime; + if not PLAYER.latched #check if the shits latched, if not stop while we're ahead. + return + # Do not update if the current time is past the end of the video, unless # the video has length 0 (which is a special case for livestreams) - if typeof PLAYER.mediaLength is 'number' and + if (typeof PLAYER.mediaLength is 'number' and PLAYER.mediaLength > 0 and - data.currentTime > PLAYER.mediaLength + data.currentTime > PLAYER.mediaLength) return # Negative currentTime indicates a lead-in for clients to load the video, @@ -66,6 +71,7 @@ window.handleMediaUpdate = (data) -> if waiting PLAYER.seekTo(0) + PLAYER.latchseek() # YouTube player has a race condition that crashes the player if # play(), seek(0), and pause() are called quickly without waiting # for events to fire. Setting a flag variable that is checked in the @@ -83,6 +89,7 @@ window.handleMediaUpdate = (data) -> if data.paused and not PLAYER.paused PLAYER.seekTo(data.currentTime) + PLAYER.latchseek() PLAYER.pause() else if PLAYER.paused and not data.paused PLAYER.play() @@ -101,6 +108,7 @@ window.handleMediaUpdate = (data) -> if diff > accuracy # The player is behind the correct time PLAYER.seekTo(time) + PLAYER.latchseek() else if diff < -accuracy # The player is ahead of the correct time # Don't seek all the way back, to account for possible buffering. @@ -109,7 +117,9 @@ window.handleMediaUpdate = (data) -> if not (PLAYER instanceof DailymotionPlayer) time += 1 PLAYER.seekTo(time) + PLAYER.latchseek() ) + window.removeOld = (replace) -> $('#soundcloud-volume-holder').remove() diff --git a/player/videojs.coffee b/player/videojs.coffee index 32c7e668..58a533f7 100644 --- a/player/videojs.coffee +++ b/player/videojs.coffee @@ -54,7 +54,6 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player constructor: (data) -> if not (this instanceof VideoJSPlayer) return new VideoJSPlayer(data) - @load(data) loadPlayer: (data) -> @@ -97,20 +96,14 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player ).appendTo(video) ) - if data.meta.textTracks - data.meta.textTracks.forEach((track) -> - label = track.name - attrs = - src: track.url - kind: 'subtitles' - type: track.type - label: label - if track.default? and track.default - attrs.default = '' - $('').attr(attrs).appendTo(video) - ) + + + + + + @player = videojs(video[0], # https://github.com/Dash-Industry-Forum/dash.js/issues/2184 @@ -150,6 +143,9 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player @paused = true if CLIENT.leader sendVideoUpdate() + else + @unlatch() + ) @player.on('play', => @@ -157,11 +153,14 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player if CLIENT.leader sendVideoUpdate() ) - + # Workaround for IE-- even after seeking completes, the loading # spinner remains. @player.on('seeked', => $('.vjs-waiting').removeClass('vjs-waiting') + if not CLIENT.leader #this part has nothing to do with IE and all to do with sync latching :P + @unlatch() + ) # Workaround for Chrome-- it seems that the click bindings for @@ -184,12 +183,27 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player load: (data) -> @setMediaProperties(data) + @latched = true # Note: VideoJS does have facilities for loading new videos into the # existing player object, however it appears to be pretty glitchy when # a video can't be played (either previous or next video). It's safer # to just reset the entire thing. @destroy() @loadPlayer(data) + @setTracks(data) + + setTracks: (data) -> + if data.meta.textTracks + data.meta.textTracks.forEach((track) -> + label = track.name + $('').attr( + src: track.url + kind: 'subtitles' + type: track.type + label: label + default: true + ).prependTo("video") + ) play: -> @paused = false @@ -200,6 +214,9 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player @paused = true if @player and @player.readyState() > 0 @player.pause() + if not CLIENT.leader + @unlatch() + seekTo: (time) -> if @player and @player.readyState() > 0 diff --git a/player/vimeo.coffee b/player/vimeo.coffee index b59726c1..731c5269 100644 --- a/player/vimeo.coffee +++ b/player/vimeo.coffee @@ -7,6 +7,7 @@ window.VimeoPlayer = class VimeoPlayer extends Player load: (data) -> @setMediaProperties(data) + @latched = true waitUntilDefined(window, 'Vimeo', => video = $('') @@ -32,6 +33,9 @@ window.VimeoPlayer = class VimeoPlayer extends Player @paused = true if CLIENT.leader sendVideoUpdate() + else + @unlatch() + ) @vimeo.on('play', => @@ -39,6 +43,11 @@ window.VimeoPlayer = class VimeoPlayer extends Player if CLIENT.leader sendVideoUpdate() ) + + @vimeo.on('seeked', => + if not CLIENT.leader + @unlatch() + ) @play() @setVolume(VOLUME) diff --git a/postinstall.sh b/postinstall.sh index 4a0c79c6..d9ba700e 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -9,6 +9,6 @@ fi echo "Building from src/ to lib/" npm run build-server -echo "Building from player/ to www/js/player.js" +echo "Building from player/ to www/js/player.js" npm run build-player echo "Done" diff --git a/src/channel/channel.js b/src/channel/channel.js index 744884fe..47637667 100644 --- a/src/channel/channel.js +++ b/src/channel/channel.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + var ChannelModule = require("./module"); var Flags = require("../flags"); var fs = require("fs"); @@ -94,8 +133,9 @@ function Channel(name) { }, USERCOUNT_THROTTLE); const self = this; db.channels.load(this, function (err) { - if (err && err !== "Channel is not registered") { - self.emit("loadFail", "Failed to load channel data from the database. Please try again later."); + if (err /*&& err !== "Channel is not registered"*/) { + //self.emit("channelNotRegistered"); + self.emit("loadFail", "Channel not found."); self.setFlag(Flags.C_ERROR); } else { self.initModules(); @@ -147,7 +187,6 @@ Channel.prototype.initModules = function () { "./permissions" : "permissions", "./emotes" : "emotes", "./chat" : "chat", - "./drink" : "drink", "./filters" : "filters", "./customization" : "customization", "./opts" : "options", diff --git a/src/channel/chat.js b/src/channel/chat.js index 3883f777..13b86faf 100644 --- a/src/channel/chat.js +++ b/src/channel/chat.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + var Config = require("../config"); var XSS = require("../xss"); var ChannelModule = require("./module"); @@ -36,18 +75,16 @@ function ChatModule(_channel) { this.supportsDirtyCheck = true; /* Default commands */ - this.registerCommand("/me", this.handleCmdMe.bind(this)); - this.registerCommand("/sp", this.handleCmdSp.bind(this)); - this.registerCommand("/say", this.handleCmdSay.bind(this)); - this.registerCommand("/rcv", this.handleCmdSay.bind(this)); - this.registerCommand("/shout", this.handleCmdSay.bind(this)); - this.registerCommand("/clear", this.handleCmdClear.bind(this)); - this.registerCommand("/a", this.handleCmdAdminflair.bind(this)); - this.registerCommand("/afk", this.handleCmdAfk.bind(this)); - this.registerCommand("/mute", this.handleCmdMute.bind(this)); - this.registerCommand("/smute", this.handleCmdSMute.bind(this)); - this.registerCommand("/unmute", this.handleCmdUnmute.bind(this)); - this.registerCommand("/unsmute", this.handleCmdUnmute.bind(this)); + this.registerCommand("!me", this.handleCmdMe.bind(this)); + this.registerCommand("!sp", this.handleCmdSp.bind(this)); + this.registerCommand("!announce", this.handleCmdSay.bind(this)); + this.registerCommand("!clear", this.handleCmdClear.bind(this)); + this.registerCommand("!a", this.handleCmdAdminflair.bind(this)); + this.registerCommand("!afk", this.handleCmdAfk.bind(this)); + this.registerCommand("!mute", this.handleCmdMute.bind(this)); + this.registerCommand("!smute", this.handleCmdSMute.bind(this)); + this.registerCommand("!unmute", this.handleCmdUnmute.bind(this)); + this.registerCommand("!unsmute", this.handleCmdUnmute.bind(this)); } ChatModule.prototype = Object.create(ChannelModule.prototype); @@ -320,7 +357,8 @@ ChatModule.prototype.processChatMsg = function (user, data) { msgobj.meta.addClass = "greentext"; } - if (data.msg.indexOf("/") === 0) { + //if (data.msg.indexOf("/") === 0) {Legacy from cytube '/' commands + if (data.msg.indexOf("!") === 0) { var space = data.msg.indexOf(" "); var cmd; if (space < 0) { @@ -455,7 +493,8 @@ ChatModule.prototype.sendMessage = function (msgobj) { }; ChatModule.prototype.registerCommand = function (cmd, cb) { - cmd = cmd.replace(/^\//, ""); + //cmd = cmd.replace(/^\//, ""); Legacy from cytube '/' commands + cmd = cmd.replace(/^!/, ""); this.commandHandlers[cmd] = cb; }; @@ -494,12 +533,44 @@ ChatModule.prototype.handleCmdClear = function (user, _msg, _meta) { if (!this.channel.modules.permissions.canClearChat(user)) { return; } + + var target = _msg.toLowerCase().split(" ")[1]; + var tdisp = undefined; + var nhit = false; + + + + if(target != null){ + for(var i = 0; i < this.channel.users.length; i++){ + if(nhit = (target === this.channel.users[i].getLowerName())){ + tdisp = this.channel.users[i].getName(); + break; + } + } + target = nhit ? target : undefined; + } + this.dirty = true; - this.buffer = []; - this.channel.broadcastAll("clearchat", { clearedBy: user.getName() }); - this.sendModMessage(user.getName() + " cleared chat.", -1); - this.channel.logger.log("[mod] " + user.getName() + " used /clear"); + + + this.channel.broadcastAll("clearchat", { clearedBy: user.getName(), target: tdisp }); + + if(target == null){ + this.buffer = []; + this.sendModMessage(user.getName() + " cleared chat.", -1); + this.channel.logger.log("[mod] " + user.getName() + " used !clear"); + }else{ + for(var x = 0; x < this.buffer.length; x++){ + if(this.buffer[x].username.toLowerCase() == target){ + //this.buffer.msg = ''; + this.buffer.splice(x,1); + x--; + } + } + this.sendModMessage(user.getName() + " cleared chats from " + tdisp + ".", -1); + this.channel.logger.log("[mod] " + user.getName() + " cleared chats from " + tdisp + "."); + } }; ChatModule.prototype.handleCmdAdminflair = function (user, msg, meta) { @@ -510,7 +581,7 @@ ChatModule.prototype.handleCmdAdminflair = function (user, msg, meta) { args.shift(); var superadminflair = { - labelclass: "label-danger", + labelclass: "label-admin", icon: "glyphicon-globe" }; @@ -547,7 +618,7 @@ ChatModule.prototype.handleCmdMute = function (user, msg, _meta) { var name = args.shift(); if (typeof name !== "string") { user.socket.emit("errorMsg", { - msg: "/mute requires a target name" + msg: "!mute requires a target name" }); return; } @@ -564,7 +635,7 @@ ChatModule.prototype.handleCmdMute = function (user, msg, _meta) { if (!target) { user.socket.emit("errorMsg", { - msg: "/mute target " + name + " not present in channel." + msg: "!mute target " + name + " not present in channel." }); return; } @@ -572,7 +643,7 @@ ChatModule.prototype.handleCmdMute = function (user, msg, _meta) { if (target.account.effectiveRank >= user.account.effectiveRank || target.account.globalRank > user.account.globalRank) { user.socket.emit("errorMsg", { - msg: "/mute failed - " + target.getName() + " has equal or higher rank " + + msg: "!mute failed - " + target.getName() + " has equal or higher rank " + "than you." }); return; @@ -597,7 +668,7 @@ ChatModule.prototype.handleCmdSMute = function (user, msg, _meta) { var name = args.shift(); if (typeof name !== "string") { user.socket.emit("errorMsg", { - msg: "/smute requires a target name" + msg: "!smute requires a target name" }); return; } @@ -614,7 +685,7 @@ ChatModule.prototype.handleCmdSMute = function (user, msg, _meta) { if (!target) { user.socket.emit("errorMsg", { - msg: "/smute target " + name + " not present in channel." + msg: "!smute target " + name + " not present in channel." }); return; } @@ -622,7 +693,7 @@ ChatModule.prototype.handleCmdSMute = function (user, msg, _meta) { if (target.account.effectiveRank >= user.account.effectiveRank || target.account.globalRank > user.account.globalRank) { user.socket.emit("errorMsg", { - msg: "/smute failed - " + target.getName() + " has equal or higher rank " + + msg: "!smute failed - " + target.getName() + " has equal or higher rank " + "than you." }); return; @@ -648,7 +719,7 @@ ChatModule.prototype.handleCmdUnmute = function (user, msg, _meta) { var name = args.shift(); if (typeof name !== "string") { user.socket.emit("errorMsg", { - msg: "/unmute requires a target name" + msg: "!unmute requires a target name" }); return; } diff --git a/src/channel/drink.js b/src/channel/drink.js deleted file mode 100644 index 320e9324..00000000 --- a/src/channel/drink.js +++ /dev/null @@ -1,60 +0,0 @@ -// TODO: figure out what to do with this module -// it serves a very niche use case and is only a core module because of -// legacy reasons (early channels requested it before I had criteria -// around what to include in core) -var ChannelModule = require("./module"); - -function DrinkModule(_channel) { - ChannelModule.apply(this, arguments); - this.drinks = 0; -} - -DrinkModule.prototype = Object.create(ChannelModule.prototype); - -DrinkModule.prototype.onUserPostJoin = function (user) { - user.socket.emit("drinkCount", this.drinks); -}; - -DrinkModule.prototype.onUserPreChat = function (user, data, cb) { - var msg = data.msg; - var perms = this.channel.modules.permissions; - if (msg.match(/^\/d-?[0-9]*/) && perms.canCallDrink(user)) { - msg = msg.substring(2); - var m = msg.match(/^(-?[0-9]+)/); - var count; - if (m) { - count = parseInt(m[1]); - if (isNaN(count) || count < -10000 || count > 10000) { - return; - } - - msg = msg.replace(m[1], "").trim(); - if (msg || count > 0) { - msg += " drink! (x" + count + ")"; - } else { - this.drinks += count; - this.channel.broadcastAll("drinkCount", this.drinks); - return cb(null, ChannelModule.DENY); - } - } else { - msg = msg.trim() + " drink!"; - count = 1; - } - - this.drinks += count; - this.channel.broadcastAll("drinkCount", this.drinks); - data.msg = msg; - data.meta.addClass = "drink"; - data.meta.forceShowName = true; - cb(null, ChannelModule.PASSTHROUGH); - } else { - cb(null, ChannelModule.PASSTHROUGH); - } -}; - -DrinkModule.prototype.onMediaChange = function () { - this.drinks = 0; - this.channel.broadcastAll("drinkCount", 0); -}; - -module.exports = DrinkModule; diff --git a/src/channel/kickban.js b/src/channel/kickban.js index 9c342bf3..fed9d9cb 100644 --- a/src/channel/kickban.js +++ b/src/channel/kickban.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + var ChannelModule = require("./module"); var db = require("../database"); var Flags = require("../flags"); @@ -19,11 +58,10 @@ function KickBanModule(_channel) { ChannelModule.apply(this, arguments); if (this.channel.modules.chat) { - this.channel.modules.chat.registerCommand("/kick", this.handleCmdKick.bind(this)); - this.channel.modules.chat.registerCommand("/kickanons", this.handleCmdKickAnons.bind(this)); - this.channel.modules.chat.registerCommand("/ban", this.handleCmdBan.bind(this)); - this.channel.modules.chat.registerCommand("/ipban", this.handleCmdIPBan.bind(this)); - this.channel.modules.chat.registerCommand("/banip", this.handleCmdIPBan.bind(this)); + this.channel.modules.chat.registerCommand("!kick", this.handleCmdKick.bind(this)); + this.channel.modules.chat.registerCommand("!ban", this.handleCmdBan.bind(this)); + this.channel.modules.chat.registerCommand("!ipban", this.handleCmdIPBan.bind(this)); + this.channel.modules.chat.registerCommand("!banip", this.handleCmdIPBan.bind(this)); } } @@ -195,25 +233,6 @@ KickBanModule.prototype.handleCmdKick = function (user, msg, _meta) { } }; -KickBanModule.prototype.handleCmdKickAnons = function (user, _msg, _meta) { - if (!this.channel.modules.permissions.canKick(user)) { - return; - } - - var users = Array.prototype.slice.call(this.channel.users); - users.forEach(function (u) { - if (!u.is(Flags.U_LOGGED_IN)) { - u.kick("anonymous user"); - } - }); - - this.channel.logger.log("[mod] " + user.getName() + " kicked anonymous users."); - if (this.channel.modules.chat) { - this.channel.modules.chat.sendModMessage(user.getName() + " kicked anonymous " + - "users"); - } -}; - /* /ban - name bans */ KickBanModule.prototype.handleCmdBan = function (user, msg, _meta) { var args = msg.split(" "); diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 2f54e636..8c99db5c 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + var ChannelModule = require("./module"); var ULList = require("../ullist"); var AsyncQueue = require("../asyncqueue"); var Media = require("../media"); @@ -9,6 +48,7 @@ var db = require("../database"); var CustomEmbedFilter = require("../customembed").filter; var XSS = require("../xss"); import { Counter } from 'prom-client'; +import { validateTextTracks as tvalidate } from '../custom-media'; const LOGGER = require('@calzoneman/jsli')('playlist'); @@ -27,7 +67,8 @@ const TYPE_QUEUE = { pos: "string", title: "string,boolean,optional", duration: "number,optional", - temp: "boolean,optional" + temp: "boolean,optional", + subtitle: "string" }; const TYPE_SET_TEMP = { @@ -105,8 +146,8 @@ function PlaylistModule(_channel) { this._refreshing = false; if (this.channel.modules.chat) { - this.channel.modules.chat.registerCommand("/clean", this.handleClean.bind(this)); - this.channel.modules.chat.registerCommand("/cleantitle", this.handleClean.bind(this)); + this.channel.modules.chat.registerCommand("!clean", this.handleClean.bind(this)); + this.channel.modules.chat.registerCommand("!cleantitle", this.handleClean.bind(this)); } this.supportsDirtyCheck = true; @@ -407,7 +448,12 @@ PlaylistModule.prototype.handleQueue = function (user, data) { if (typeof data.title !== "string" || (data.type !== "cu" && data.type !== "fi")) { data.title = false; } + + if (!data.subtitle){ + data.subtitle = false; + } + var link = util.formatLink(id, type, null); var perms = this.channel.modules.permissions; @@ -491,6 +537,7 @@ PlaylistModule.prototype.handleQueue = function (user, data) { type: data.type, pos: data.pos, title: data.title, + subtitle: data.subtitle, link: link, temp: temp, shouldAddToLibrary: !temp, @@ -1051,16 +1098,52 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) { media.setTitle(data.title); } + + console.log("pre media subload"); + console.log(data); + if (data.subtitle && (media.type === "cu" || media.type === "fi")) { + + + var ttracks = [{ + "url": data.subtitle, + "contentType": "text/vtt", + "name": "English Subs", + "default": true + }]; + + + console.log(Config.get('http.root-domain')); + try { + tvalidate(ttracks); + } catch (error) { + user.socket.emit("errorMsg", { + msg: `Invalid text track error:` + error + }); + return; + } + + media.meta.textTracks = ttracks; + + } + var success = function () { + var tempST = 0; //var packet = { // item: item.pack(), // after: item.prev ? item.prev.uid : "prepend" //}; + - self.meta.count++; + self.items.forEach(function (item){//iterate items + self.items.find(item.uid).media.startTime = tempST;//current item start time = tempST + tempST += item.media.seconds; + }); + + + /*self.meta.count++; media.startTime = self.meta.rawTime; self.meta.rawTime += media.seconds; - self.meta.time = util.formatTime(self.meta.rawTime); + self.meta.time = util.formatTime(self.meta.rawTime);*/ //old buggy shit var sTemp = [[],[]]; @@ -1297,8 +1380,8 @@ PlaylistModule.prototype.handleClean = function (user, msg, _meta) { var cmd = args.shift(); if (args.length === 0) { return user.socket.emit("errorMsg", { - msg: "No target given for " + cmd + ". Usage: /clean or " + - "/cleantitle " + msg: "No target given for " + cmd + ". Usage: !clean or " + + "!cleantitle " }); } var target; @@ -1315,9 +1398,9 @@ PlaylistModule.prototype.handleClean = function (user, msg, _meta) { " with target regex: " + target); var cleanfn; - if (cmd === "/clean") { + if (cmd === "!clean") { cleanfn = function (item) { return target.test(item.queueby); }; - } else if (cmd === "/cleantitle") { + } else if (cmd === "!cleantitle") { cleanfn = function (item) { return target.exec(item.media.title) !== null; }; } diff --git a/src/channel/poll.js b/src/channel/poll.js index 68df4c70..9e8168a2 100644 --- a/src/channel/poll.js +++ b/src/channel/poll.js @@ -26,8 +26,8 @@ function PollModule(_channel) { this.roomViewHidden = this.channel.uniqueName + ROOM_VIEW_HIDDEN; this.roomNoViewHidden = this.channel.uniqueName + ROOM_NO_VIEW_HIDDEN; if (this.channel.modules.chat) { - this.channel.modules.chat.registerCommand("poll", this.handlePollCmd.bind(this, false)); - this.channel.modules.chat.registerCommand("hpoll", this.handlePollCmd.bind(this, true)); + this.channel.modules.chat.registerCommand("!poll", this.handlePollCmd.bind(this, false)); + this.channel.modules.chat.registerCommand("!hpoll", this.handlePollCmd.bind(this, true)); } this.supportsDirtyCheck = true; } @@ -254,7 +254,8 @@ PollModule.prototype.handlePollCmd = function (obscured, user, msg, _meta) { // Ensure any existing poll is closed this.handleClosePoll(user); - msg = msg.replace(/^\/h?poll/, ""); + msg = msg.replace(/^!h?poll/, ""); + //msg = msg.replace(/^\/h?poll/, ""); var args = msg.split(","); var title = args.shift(); diff --git a/src/custom-media.js b/src/custom-media.js index a43c920d..18dfaf9c 100644 --- a/src/custom-media.js +++ b/src/custom-media.js @@ -202,7 +202,7 @@ function validateSources(sources, data) { } } -function validateTextTracks(textTracks) { +export function validateTextTracks(textTracks) { if (typeof textTracks === 'undefined') { return; } diff --git a/src/user.js b/src/user.js index 1c0bacb2..bcb49d9c 100644 --- a/src/user.js +++ b/src/user.js @@ -102,10 +102,15 @@ User.prototype.handleJoinChannel = function handleJoinChannel(data) { if (!chan.is(Flags.C_READY)) { chan.once("loadFail", reason => { - this.socket.emit("errorMsg", { - msg: reason, - alert: true - }); + + if(reason == "Channel not found."){ + this.socket.emit("channelNotFound"); + }else{ + this.socket.emit("errorMsg", { + msg: reason, + alert: true + }); + } this.kick(`Channel could not be loaded: ${reason}`); }); } diff --git a/templates/about.pug b/templates/about.pug index d4e4a6b5..edf595ca 100644 --- a/templates/about.pug +++ b/templates/about.pug @@ -1,6 +1,44 @@ extends layout.pug - block content + // + fore.st 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. + + fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. + (C) 2022- by rainbownapkin, + + // + Original cytube license: + MIT License + + Copyright (c) 2013-2022 Calvin Montgomery + + 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. + .col-md-8.col-md-offset-2 .aboutText h1 Welcome to ourfore.st! @@ -19,4 +57,4 @@ block content | No spamming submit channel or chat p. Comments? Questions? Feature requests? DMCA Notices? Email us! - h4 fore.st version: Panama Red (v1) + h4 fore.st version: Pineapple Express (v1.1-INDEV) diff --git a/templates/channel.pug b/templates/channel.pug index 8e20f944..708c6f01 100644 --- a/templates/channel.pug +++ b/templates/channel.pug @@ -1,3 +1,42 @@ +// + fore.st 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. + + fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. + (C) 2022- by rainbownapkin, + +// + Original cytube license: + MIT License + + Copyright (c) 2013-2022 Calvin Montgomery + + 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. + doctype html html(lang="en") head @@ -27,17 +66,22 @@ html(lang="en") #motd .clear #announcements.row - #drinkbarwrap.row - #drinkbar.col-lg-12.col-md-12 - h1#drinkcount #main.row #videowrap.col-lg-7.col-md-7 p#videowrap-header - span#resize-video-larger.glyphicon.glyphicon-plus.pointer(title="Make the video larger") - span#resize-video-smaller.glyphicon.glyphicon-minus.pointer(title="Make the video smaller") + span#mediarefresh.playercont.glyphicon.glyphicon-retweet.pointer(title="Reload the video player") + span#flipx-video.playercont.glyphicon.glyphicon-resize-horizontal.pointer(title="Flip Player Horizontally",onclick='javascript:$("#ytapiplayer").toggleClass("mirx")') + span#flipy-video.playercont.glyphicon.glyphicon-resize-vertical.pointer(title="Flip Player Vertically",onclick='javascript:$("#ytapiplayer").toggleClass("miry")') + span#showplaylist.playercont.glyphicon.glyphicon-list.pointer(style="display: none;", title="Show playlist") + span#resize-video-larger.playercont.glyphicon.glyphicon-plus.pointer(title="Make the video larger") + span#resize-video-smaller.playercont.glyphicon.glyphicon-minus.pointer(title="Make the video smaller") + span#latchvid.label.label-default.pull-right.pointer(style="display: none;") Sync span#currenttitle Nothing Playing .embed-responsive.embed-responsive-16by9 #ytapiplayer.embed-responsive-item + div#subliminaltoke + img(src="/img/tokeleaf.png") + h3 Take a Toke! #chatwrap.col-lg-5.col-md-5 #chatheader span#modflair.label.label-default.pull-right.pointer Name Color @@ -46,9 +90,16 @@ html(lang="en") i#userlisttoggle.glyphicon.glyphicon-chevron-down.pull-left.pointer(title="Show/Hide Userlist") #chatmain #userlist + #fpaneldiv.fpanel(style="display: none;") + #fptitlediv.fptitlebar.fpanel + p#fptitle.fptitlebar.fpanel null + p#closefpanel.fptitlebar.fpanel.glyphicon.glyphicon-remove.pointer(onclick="javascript:closeFPanel()", title="Close null panel.") + #fpcontdiv.fpcont.fpanel #messagebuffer.linewrap #chatbar(style="display: flex;") - button#emotelistbtn.btn.btn-sm.btn-default(title="emotes") ;) + button#pollopenbtn.btn.btn-sm.btn-default.glyphicon.glyphicon-ok.chatbtn(onclick="javascript:panelbtn(fpoll)",style="display: none;", title="Poll") + button#prefopenbtn.btn.btn-sm.btn-default.glyphicon.glyphicon-cog.chatbtn(onclick="javascript:panelbtn(fpset)",title="Quick Settings") + button#emoteopenbtn.btn.btn-sm.btn-default.chatbtn(onclick="javascript:panelbtn(fpemote)",title="Emotes") ;) form(action="javascript:void(0)" style="display: flex; flex-grow: 1;") input#chatline.form-control(type="text", maxlength="320", style="display: none") #guestlogin.input-group @@ -57,32 +108,37 @@ html(lang="en") button#chatsend.btn.btn-sm.btn-default Send #rightcontrols.col-lg-7.col-md-7 #plcontrol.btn-group - button#showsearch.btn.btn-sm.btn-default(title="Search for a video", data-toggle="collapse", data-target="#searchcontrol") - span.glyphicon.glyphicon-search button#showmediaurl.btn.btn-sm.btn-default(title="Add video from URL", data-toggle="collapse", data-target="#addfromurl") span.glyphicon.glyphicon-plus - button#showcustomembed.btn.btn-sm.btn-default(title="Embed a custom frame", data-toggle="collapse", data-target="#customembed") - span.glyphicon.glyphicon-th-large + button#showsearch.btn.btn-sm.btn-default(title="Channel History + Video Search", data-toggle="collapse", data-target="#searchcontrol") + span.glyphicon.glyphicon-search button#showplaylistmanager.btn.btn-sm.btn-default(title="Manage playlists", data-toggle="collapse", data-target="#playlistmanager") span.glyphicon.glyphicon-list - button#clearplaylist.btn.btn-sm.btn-default(title="Clear the playlist") - span.glyphicon.glyphicon-trash - button#shuffleplaylist.btn.btn-sm.btn-default(title="Shuffle the playlist") - span.glyphicon.glyphicon-sort - button#qlockbtn.btn.btn-sm.btn-danger(title="Playlist locked") - span.glyphicon.glyphicon-lock - #videocontrols.btn-group.pull-right - button#mediarefresh.btn.btn-sm.btn-default(title="Reload the video player") - span.glyphicon.glyphicon-retweet - button#fullscreenbtn.btn.btn-sm.btn-default(title="Make the video player fullscreen") - span.glyphicon.glyphicon-fullscreen + button#scrollitm.btn.btn-sm.btn-default(title="Scroll to Current Item",onclick="javascript:scrollQueue()") + span.glyphicon.glyphicon-hand-right button#getplaylist.btn.btn-sm.btn-default(title="Retrieve playlist links") span.glyphicon.glyphicon-link - button#voteskip.btn.btn-sm.btn-default(title="Voteskip") - span.glyphicon.glyphicon-step-forward - #leftcontrols.col-lg-5.col-md-5 + button#shuffleplaylist.btn.btn-sm.btn-default(title="Shuffle the playlist") + span.glyphicon.glyphicon-sort + button#clearplaylist.btn.btn-sm.btn-default(title="Clear the playlist") + span.glyphicon.glyphicon-trash + button#qlockbtn.btn.btn-sm.btn-danger(title="Playlist locked") + span.glyphicon.glyphicon-lock + #playlistauxcont + span#hideplaylist.glyphicon.glyphicon-remove.pointer(title="Close Playlist") + span#blindItems.glyphicon.glyphicon-resize-small.pointer(title="Collapse All Items") + #plmeta + span#plcount 0 items + br + span#pllength 00:00:00 + //#videocontrols.btn-group.pull-right + //button#fullscreenbtn.btn.btn-sm.btn-default(title="Make the video player fullscreen")This makes no sense, all supported players already have a full screen button. Not a fan of the placement of this anywho + //span.glyphicon.glyphicon-fullscreen + //button#voteskip.btn.btn-sm.btn-default(title="Voteskip") I don't like the way this is implemented, I think a poll based voteskip feature would be better, though I think it'd be better to not do a full rip-out + //span.glyphicon.glyphicon-step-forward + //this is being removed in favor of better UI + #leftcontrols.col-lg-5.col-md-5 button#newpollbtn.btn.btn-sm.btn-default New Poll - #playlistrow.row #rightpane.col-lg-7.col-md-7 #rightpane-inner.row @@ -107,6 +163,9 @@ html(lang="en") button#queue_next.btn.btn-default Queue next span.input-group-btn button#queue_end.btn.btn-default Queue last + span.input-group-btn#showcustomembed + button#showcustomembed.btn.btn-default(title="Embed a custom frame", data-toggle="collapse", data-target="#customembed") + span.glyphicon.glyphicon-th-large .checkbox label input.add-temp(type="checkbox") @@ -139,12 +198,8 @@ html(lang="en") | Add as temporary ul#userpl_list.videolist #queuefail.col-lg-12.col-md-12 - .vertical-spacer .col-lg-12.col-md-12 ul#queue.videolist - #plmeta - span#plcount 0 items - span#pllength 00:00:00 #leftpane.col-lg-5.col-md-5 #leftpane-inner.row #pollwrap.col-lg-12.col-md-12 @@ -238,6 +293,7 @@ html(lang="en") include footer +footer() script(id="socketio-js", src=sioSource) + script(src="/js/fpanel.js") script(src="/js/data.js") script(src="/js/fembed.js") script(src="/js/fchat.js") diff --git a/templates/channeloptions.pug b/templates/channeloptions.pug index 58983e86..a3885691 100644 --- a/templates/channeloptions.pug +++ b/templates/channeloptions.pug @@ -1,3 +1,43 @@ +// + fore.st 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. + + fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. + (C) 2022- by rainbownapkin, + +// + Original cytube license: + MIT License + + Copyright (c) 2013-2022 Calvin Montgomery + + 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. + + mixin lcheckbox(id, label) .form-group label.control-label.col-sm-4(for=id)= label diff --git a/templates/index.pug b/templates/index.pug index 5d2ec464..c65dc99a 100644 --- a/templates/index.pug +++ b/templates/index.pug @@ -1,6 +1,44 @@ extends layout.pug - block content + // + fore.st 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. + + fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. + (C) 2022- by rainbownapkin, + + // + Original cytube license: + MIT License + + Copyright (c) 2013-2022 Calvin Montgomery + + 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. + .col-lg-9.col-md-9 h3 Public Channels table.table.table-bordered.table-striped diff --git a/templates/useroptions.pug b/templates/useroptions.pug index f28429dd..b4dc4a39 100644 --- a/templates/useroptions.pug +++ b/templates/useroptions.pug @@ -31,11 +31,12 @@ mixin us-general .col-sm-8 select#us-theme.form-control option(value="/css/themes/fore.st.css") fore.st - option(value="/css/themes/light.css") Light - option(value="/css/themes/bootstrap-theme.min.css") Bootstrap - option(value="/css/themes/slate.css") Slate - option(value="/css/themes/cyborg.css") Cyborg - option(value="/css/themes/modern.css") Modern + // + option(value="/css/themes/light.css") Light + option(value="/css/themes/slate.css") Slate + option(value="/css/themes/bootstrap-theme.min.css") Bootstrap + option(value="/css/themes/cyborg.css") Cyborg + option(value="/css/themes/modern.css") Modern .col-sm-4 .col-sm-8 p.text-danger Changing layouts may require refreshing to take effect. @@ -67,7 +68,8 @@ mixin us-playback p.text-info Setting wmode=transparent allows objects to be displayed above the video player, but may cause performance issues on some systems. +rcheckbox("us-hidevideo", "Remove the video player") +rcheckbox("us-playlistbuttons", "Hide playlist buttons by default") - +rcheckbox("us-oldbtns", "Old style playlist buttons") + +rcheckbox("us-oldbtns", "Compact playlist buttons") + +rcheckbox("us-video-orientation", "Show video orientation buttons above player") .form-group label.control-label.col-sm-4(for="#us-default-quality") Quality Preference .col-sm-8 @@ -91,6 +93,7 @@ mixin us-chat +rcheckbox("us-chat-timestamp", "Show timestamps in chat") +rcheckbox("us-sort-rank", "Sort userlist by rank") +rcheckbox("us-sort-afk", "Sort AFKers to bottom") + +rcheckbox("us-legacy-emote", "Use legacy Cytube emote menu") .col-sm-4 .col-sm-8 p.text-info The following 3 options apply to how and when you will be notified if a new chat message is received while CyTube is not the active window. diff --git a/www/css/cytube.css b/www/css/cytube.css index 7c2f2e7a..ff6d2540 100644 --- a/www/css/cytube.css +++ b/www/css/cytube.css @@ -1,3 +1,41 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ .container-fluid { padding-left: 15px; @@ -153,11 +191,15 @@ border-radius: 0; } +#rightcontrols{ + background-color: #111111C0; +} + #plmeta { - border-radius: 4px; - border-top: 0; - border-top-left-radius: 0; - border-top-right-radius: 0; + border: none; + float: right; + padding-right: 1em; + line-height: 1; } .videolist { @@ -212,10 +254,128 @@ li.ui-sortable-helper, li.ui-sortable-placeholder + li.queue_entry { } .qe_time { - float: right; + float: left; font-family: Monospace; } +.qe_sTime, .qe_pref{ + float: right; + font-family: Monospace; +} + +#playlistauxcont { + display: inline-block; + float: right; + line-height: 1; +} + +#addformurl-title-val{ + width: auto; +} +.fptitlebar{ + display: inline-block; + font-size: 14px; + line-height: inherit !important; + color: #c8c8c8; + vertical-align: top; + margin: 0px; +} +#fpcontdiv{ +} +#subliminaltoke{ + background-color: #111111C0; + position: absolute; + left: calc(50% - 12em); + top: calc(50% - 13em); + text-align: center; + padding: 2em 2em 1em 2em; + border: 1px solid #949494; + display: none; +} +#subliminaltoke img{ + max-height: 20em; +} +.emotecontdiv{ + display: grid; + grid-template-columns: repeat(auto-fill, minmax(7em,auto)); + overflow-x: hidden; + column-gap: 0.5em; + row-gap: 0.5em; + margin: 3.1em 0.5em 0 0.5em; +} +.emotediv{ + width: 100%; + border: 1px solid #949494; + display: flex; + flex-direction: column; + justify-content: space-between; + text-align: center; + cursor: pointer; +} +#emspan{ + display: flex; + height: 100%; + flex-direction: column; + justify-content: center; +} +.emotediv img{ + width: 100%; +} +.emotediv p{ + margin: 0; + padding: 0; +} +.chatbtn{ + border-right: 1px solid #949494 !important; + position: inherit !important; +} +#polltitle, #endpollbtn{ + margin-top: 5px; + margin-bottom: 20px; + display: inline-block; +} +#emotecont{ + display: flex; + position: fixed; + width: 100%; + background-color: #1119; + backdrop-filter: blur(12px); +} +#esearchbar{ + border-right: 1px solid #949494; + background-color: #0000 !important; +} +#anumspan{ + display: flex; + flex-direction: column; + padding: 0em 0.5em 0 0.5em; + height: 100%; +} +#emotealphabox{ +} +label[for="emotealphabox"]{ +} +#fptitlediv{ + width: 100%; +} +#closefpanel{ + float: right; + top: auto; +} +#fpaneldiv{ + float: left; + height: 1em; + width: 70%; + position: absolute; + z-index: 1; +} +#guestlogin{ + flex-grow: 1; +} +#hideplaylist { + display: block; +} + .qe_clear { clear: both; } @@ -236,7 +396,9 @@ li.ui-sortable-helper, li.ui-sortable-placeholder + li.queue_entry { #csstext, #jstext { font-family: Monospace; } - +.fpcont{ + overflow: scroll; +} #optedit, #permedit, #filteredit, #motdedit, #cssedit, #jsedit, #banlist, #loginhistory, #channelranks, #chanlog { display: none; @@ -258,6 +420,8 @@ li.ui-sortable-helper, li.ui-sortable-placeholder + li.queue_entry { background-color: rgba(129, 20, 21, 0.1); } + + .server-msg-reconnect { border: 1px solid #009900; line-height: 2; @@ -436,7 +600,7 @@ li.ui-sortable-helper, li.ui-sortable-placeholder + li.queue_entry { } .qfalert { - margin-bottom: 10px; + margin-bottom: 0px; padding-left: 0!important; padding-right: 0!important; } @@ -692,10 +856,24 @@ input#logout[type="submit"]:hover { margin-right: 10px; } -#resize-video-larger, #resize-video-smaller { +.playercont { float: right; + padding-right: 3px; } +.mirx{ + transform: scaleX(-1); +} +.miry{ + transform: scaleY(-1); +} +.mirx.miry{ + transform: rotate(180deg); +} +#fpsetdiv p{ + font-weight: 700; + display: inline; +} body.hd #resize-video-larger, body.hd #resize-video-smaller { display: none; } diff --git a/www/css/themes/fore.st.css b/www/css/themes/fore.st.css index 1a139e21..86401cf4 100644 --- a/www/css/themes/fore.st.css +++ b/www/css/themes/fore.st.css @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*// + @import url("//fonts.googleapis.com/css?family=Droid+Sans:400,700"); /*! /*! * bootswatch v3.3.1+1 * Homepage: http://bootswatch.com * Copyright 2012-2014 Thomas Park * Licensed under MIT * Based on Bootstrap */ @@ -49,6 +88,14 @@ sub,sup{ position:relative; vertical-align:baseline } +.label-admin, .label.label-admin{ + background-color: #cc0000; + color: #000; + text-shadow: #000 0 0 10px; + box-shadow: #cc0000 0 0 10px; + margin-right: 0.3em; +} + sup{ top:-.5em } @@ -1201,7 +1248,7 @@ pre code{ } .col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{ position:relative; - min-height:1px; + min-height:0px; padding-left:0px; padding-right:0px } @@ -2027,7 +2074,7 @@ output{ -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s; transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s } -.form-control:focus{ +.form-control:focus, #esearchbar:focus{ border-color:#339933; outline:0; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(51,153,51,.6); @@ -2505,6 +2552,32 @@ select[multiple].form-group-lg .form-control,select[multiple].input-lg,textarea. line-height:1.5; border-radius:0px } +.btn-ln{ + padding: 5px 10px; + font-size: 12px; + line-height: 1; + border-radius: 0px +} +.qs-form{ + flex-grow: 1; + color:#888; + background-color:#fff; + background-image:none; + border:1px solid #282828; + border-radius:0px; + box-shadow:inset 0 1px 1px rgba(0,0,0,.075); + transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s +} +.qs-form:focus{ + border-color:#339933; + outline:0; + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(51,153,51,.6); + box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(51,153,51,.6) +} +input.qs-form[type="text"], input.qs-form[type="password"], input.qs-form[type="email"], textarea.qs-form { + background-color: #111111C0 !important; + color: #c8c8c8; +} .btn-group-xs>.btn,.btn-xs{ padding:1px 5px; font-size:12px; @@ -3839,7 +3912,7 @@ a.badge:focus,a.badge:hover{ } .alert{ padding:15px; - margin-bottom:20px; + margin-bottom:0px; border:1px solid transparent; border-radius:0px } @@ -5399,10 +5472,6 @@ a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{ #drinkcount { background-color: #000000; color: #ffffff; -} - #plmeta { - border: 1px solid #949494; - border-radius: 0px; } #userlist, #messagebuffer { border: 1px solid #949494; @@ -5423,19 +5492,41 @@ a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{ .queue_entry.queue_active { background-color: #333333; } - #newmessages-indicator-bghack { - background: rgb(32, 32, 32); - background: rgba(32, 32, 32, 0.9); +#newmessages-indicator { + color:#339933; + text-shadow: #ded 0 0 1px; + text-decoration:none; } - #chatheader, #userlist, #messagebuffer, #videowrap-header, .embed-responsive, #rightpane, #mainrow{ - background-color: #111111C0; +.emotediv:hover{ + color: #ded; + text-shadow: #339933 0 0 10px; + box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(51,153,51,.6); + border-color:#339933; +} +#newmessages-indicator:focus, #newmessages-indicator:hover { + color:#ded; + text-shadow: #339933 0 0 10px; + text-decoration: none; } - .qe_sTime{ - float: right; - font-family: Monospace; +#emotelistbtm, #chatsend, #motdwrap, #chatline, #rightcontrols, #chatheader, #userlist, #messagebuffer, #videowrap-header, .embed-responsive, #rightpane, #mainrow{ + background-color: #111111C0; + backdrop-filter: blur(12px); } - .aboutText{ + +#fpaneldiv{ + border: 1px #949494 solid; + background-color: #1119; + backdrop-filter: blur(12px); + border-left: none; + border-bottom: none; +} + +#fptitlediv{ + border-bottom: 1px #949494 solid; +} + +.aboutText{ background-color: #111111C0; padding: 10px; border: 1px solid #949494; @@ -5487,7 +5578,7 @@ a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{ text-shadow: none; } -#botmsg{ +.shout{ text-align: center; color: #FFFFFF; text-shadow: @@ -5507,10 +5598,6 @@ a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{ border-right: 1px solid #949494; } -#emotelistbtn{ - border-right: 1px solid #949494; -} - #chatsend{ border-left: 1px solid #949494; } diff --git a/www/css/themes/fore.st.dusk.css b/www/css/themes/fore.st.dusk.css new file mode 100644 index 00000000..6b1b9a2c --- /dev/null +++ b/www/css/themes/fore.st.dusk.css @@ -0,0 +1,5519 @@ +@import url("//fonts.googleapis.com/css?family=Droid+Sans:400,700"); +/*! +/*! * bootswatch v3.3.1+1 * Homepage: http://bootswatch.com * Copyright 2012-2014 Thomas Park * Licensed under MIT * Based on Bootstrap */ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ +html{ + font-family:sans-serif; + -ms-text-size-adjust:100%; + -webkit-text-size-adjust:100% +} +body{ + margin:0 +} +article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{ + display:block +} +audio,canvas,progress,video{ + display:inline-block; + vertical-align:baseline +} +audio:not([controls]){ + display:none; + height:0 +} +[hidden],template{ + display:none +} +a{ + background-color:transparent +} +a:active,a:hover{ + outline:0 +} +b,strong{ + font-weight:700 +} +dfn{ + font-style:italic +} +h1{ + margin:.67em 0 +} +mark{ + background:#ff0; + color:#000 +} +sub,sup{ + font-size:75%; + line-height:0; + position:relative; + vertical-align:baseline +} +sup{ + top:-.5em +} +sub{ + bottom:-.25em +} +img{ + border:0 +} +svg:not(:root){ + overflow:hidden +} +hr{ + -moz-box-sizing:content-box; + -webkit-box-sizing:content-box; + box-sizing:content-box; + height:0 +} +pre{ + overflow:auto +} +code,kbd,pre,samp{ + font-size:1em +} +button,input,optgroup,select,textarea{ + color:inherit; + font:inherit; + margin:0 +} +button{ + overflow:visible +} +button,select{ + text-transform:none +} +button,html input[type=button],input[type=reset],input[type=submit]{ + -webkit-appearance:button; + cursor:pointer +} +button[disabled],html input[disabled]{ + cursor:default +} +button::-moz-focus-inner,input::-moz-focus-inner{ + border:0; + padding:0 +} +input[type=checkbox],input[type=radio]{ + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box; + padding:0 +} +input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{ + height:auto +} +input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{ + -webkit-appearance:none +} +textarea{ + overflow:auto +} +optgroup{ + font-weight:700 +} +table{ + border-collapse:collapse; + border-spacing:0 +} +td,th{ + padding:0 +} +/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +@media print{ + *,:after,:before{ + background:0 0!important; + color:#000!important; + -webkit-box-shadow:none!important; + box-shadow:none!important; + text-shadow:none!important + } + a,a:visited{ + text-decoration:underline + } + a[href]:after{ + content:" (" attr(href) ")" + } + abbr[title]:after{ + content:" (" attr(title) ")" + } + a[href^="#"]:after,a[href^="javascript:"]:after{ + content:"" + } + blockquote,pre{ + border:1px solid #999; + page-break-inside:avoid + } + thead{ + display:table-header-group + } + img,tr{ + page-break-inside:avoid + } + img{ + max-width:100%!important + } + h2,h3,p{ + orphans:3; + widows:3 + } + h2,h3{ + page-break-after:avoid + } + select{ + background:#fff!important + } + .navbar{ + display:none + } + .btn>.caret,.dropup>.btn>.caret{ + border-top-color:#000!important + } + .label{ + border:1px solid #000 + } + .table{ + border-collapse:collapse!important + } + .table td,.table th{ + background-color:#fff!important + } + .table-bordered td,.table-bordered th{ + border:1px solid #ddd!important + } +} +@font-face{ + font-family:'Glyphicons Halflings'; + src:url(https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/fonts/glyphicons-halflings-regular.eot); + src:url(https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/fonts/glyphicons-halflings-regular.woff) format('woff'),url(https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg') +} +.glyphicon{ + position:relative; + top:1px; + display:inline-block; + font-family:'Glyphicons Halflings'; + font-style:normal; + font-weight:400; + line-height:1; + -webkit-font-smoothing:antialiased; + -moz-osx-font-smoothing:grayscale +} +.glyphicon-asterisk:before{ + content:"\2a" +} +.glyphicon-plus:before{ + content:"\2b" +} +.glyphicon-eur:before,.glyphicon-euro:before{ + content:"\20ac" +} +.glyphicon-minus:before{ + content:"\2212" +} +.glyphicon-cloud:before{ + content:"\2601" +} +.glyphicon-envelope:before{ + content:"\2709" +} +.glyphicon-pencil:before{ + content:"\270f" +} +.glyphicon-glass:before{ + content:"\e001" +} +.glyphicon-music:before{ + content:"\e002" +} +.glyphicon-search:before{ + content:"\e003" +} +.glyphicon-heart:before{ + content:"\e005" +} +.glyphicon-star:before{ + content:"\e006" +} +.glyphicon-star-empty:before{ + content:"\e007" +} +.glyphicon-user:before{ + content:"\e008" +} +.glyphicon-film:before{ + content:"\e009" +} +.glyphicon-th-large:before{ + content:"\e010" +} +.glyphicon-th:before{ + content:"\e011" +} +.glyphicon-th-list:before{ + content:"\e012" +} +.glyphicon-ok:before{ + content:"\e013" +} +.glyphicon-remove:before{ + content:"\e014" +} +.glyphicon-zoom-in:before{ + content:"\e015" +} +.glyphicon-zoom-out:before{ + content:"\e016" +} +.glyphicon-off:before{ + content:"\e017" +} +.glyphicon-signal:before{ + content:"\e018" +} +.glyphicon-cog:before{ + content:"\e019" +} +.glyphicon-trash:before{ + content:"\e020" +} +.glyphicon-home:before{ + content:"\e021" +} +.glyphicon-file:before{ + content:"\e022" +} +.glyphicon-time:before{ + content:"\e023" +} +.glyphicon-road:before{ + content:"\e024" +} +.glyphicon-download-alt:before{ + content:"\e025" +} +.glyphicon-download:before{ + content:"\e026" +} +.glyphicon-upload:before{ + content:"\e027" +} +.glyphicon-inbox:before{ + content:"\e028" +} +.glyphicon-play-circle:before{ + content:"\e029" +} +.glyphicon-repeat:before{ + content:"\e030" +} +.glyphicon-refresh:before{ + content:"\e031" +} +.glyphicon-list-alt:before{ + content:"\e032" +} +.glyphicon-lock:before{ + content:"\e033" +} +.glyphicon-flag:before{ + content:"\e034" +} +.glyphicon-headphones:before{ + content:"\e035" +} +.glyphicon-volume-off:before{ + content:"\e036" +} +.glyphicon-volume-down:before{ + content:"\e037" +} +.glyphicon-volume-up:before{ + content:"\e038" +} +.glyphicon-qrcode:before{ + content:"\e039" +} +.glyphicon-barcode:before{ + content:"\e040" +} +.glyphicon-tag:before{ + content:"\e041" +} +.glyphicon-tags:before{ + content:"\e042" +} +.glyphicon-book:before{ + content:"\e043" +} +.glyphicon-bookmark:before{ + content:"\e044" +} +.glyphicon-print:before{ + content:"\e045" +} +.glyphicon-camera:before{ + content:"\e046" +} +.glyphicon-font:before{ + content:"\e047" +} +.glyphicon-bold:before{ + content:"\e048" +} +.glyphicon-italic:before{ + content:"\e049" +} +.glyphicon-text-height:before{ + content:"\e050" +} +.glyphicon-text-width:before{ + content:"\e051" +} +.glyphicon-align-left:before{ + content:"\e052" +} +.glyphicon-align-center:before{ + content:"\e053" +} +.glyphicon-align-right:before{ + content:"\e054" +} +.glyphicon-align-justify:before{ + content:"\e055" +} +.glyphicon-list:before{ + content:"\e056" +} +.glyphicon-indent-left:before{ + content:"\e057" +} +.glyphicon-indent-right:before{ + content:"\e058" +} +.glyphicon-facetime-video:before{ + content:"\e059" +} +.glyphicon-picture:before{ + content:"\e060" +} +.glyphicon-map-marker:before{ + content:"\e062" +} +.glyphicon-adjust:before{ + content:"\e063" +} +.glyphicon-tint:before{ + content:"\e064" +} +.glyphicon-edit:before{ + content:"\e065" +} +.glyphicon-share:before{ + content:"\e066" +} +.glyphicon-check:before{ + content:"\e067" +} +.glyphicon-move:before{ + content:"\e068" +} +.glyphicon-step-backward:before{ + content:"\e069" +} +.glyphicon-fast-backward:before{ + content:"\e070" +} +.glyphicon-backward:before{ + content:"\e071" +} +.glyphicon-play:before{ + content:"\e072" +} +.glyphicon-pause:before{ + content:"\e073" +} +.glyphicon-stop:before{ + content:"\e074" +} +.glyphicon-forward:before{ + content:"\e075" +} +.glyphicon-fast-forward:before{ + content:"\e076" +} +.glyphicon-step-forward:before{ + content:"\e077" +} +.glyphicon-eject:before{ + content:"\e078" +} +.glyphicon-chevron-left:before{ + content:"\e079" +} +.glyphicon-chevron-right:before{ + content:"\e079" +} +.glyphicon-plus-sign:before{ + content:"\e081" +} +.glyphicon-minus-sign:before{ + content:"\e082" +} +.glyphicon-remove-sign:before{ + content:"\e083" +} +.glyphicon-ok-sign:before{ + content:"\e084" +} +.glyphicon-question-sign:before{ + content:"\e085" +} +.glyphicon-info-sign:before{ + content:"\e086" +} +.glyphicon-screenshot:before{ + content:"\e087" +} +.glyphicon-remove-circle:before{ + content:"\e088" +} +.glyphicon-ok-circle:before{ + content:"\e089" +} +.glyphicon-ban-circle:before{ + content:"\e090" +} +.glyphicon-arrow-left:before{ + content:"\e091" +} +.glyphicon-arrow-right:before{ + content:"\e092" +} +.glyphicon-arrow-up:before{ + content:"\e093" +} +.glyphicon-arrow-down:before{ + content:"\e094" +} +.glyphicon-share-alt:before{ + content:"\e095" +} +.glyphicon-resize-full:before{ + content:"\e096" +} +.glyphicon-resize-small:before{ + content:"\e097" +} +.glyphicon-exclamation-sign:before{ + content:"\e101" +} +.glyphicon-gift:before{ + content:"\e102" +} +.glyphicon-leaf:before{ + content:"\e103" +} +.glyphicon-fire:before{ + content:"\e104" +} +.glyphicon-eye-open:before{ + content:"\e105" +} +.glyphicon-eye-close:before{ + content:"\e106" +} +.glyphicon-warning-sign:before{ + content:"\e107" +} +.glyphicon-plane:before{ + content:"\e108" +} +.glyphicon-calendar:before{ + content:"\e109" +} +.glyphicon-random:before{ + content:"\e110" +} +.glyphicon-comment:before{ + content:"\e111" +} +.glyphicon-magnet:before{ + content:"\e112" +} +.glyphicon-chevron-up:before{ + content:"\e113" +} +.glyphicon-chevron-down:before{ + content:"\e114" +} +.glyphicon-retweet:before{ + content:"\e115" +} +.glyphicon-shopping-cart:before{ + content:"\e116" +} +.glyphicon-folder-close:before{ + content:"\e117" +} +.glyphicon-folder-open:before{ + content:"\e118" +} +.glyphicon-resize-vertical:before{ + content:"\e119" +} +.glyphicon-resize-horizontal:before{ + content:"\e120" +} +.glyphicon-hdd:before{ + content:"\e121" +} +.glyphicon-bullhorn:before{ + content:"\e122" +} +.glyphicon-bell:before{ + content:"\e123" +} +.glyphicon-certificate:before{ + content:"\e124" +} +.glyphicon-thumbs-up:before{ + content:"\e125" +} +.glyphicon-thumbs-down:before{ + content:"\e126" +} +.glyphicon-hand-right:before{ + content:"\e127" +} +.glyphicon-hand-left:before{ + content:"\e128" +} +.glyphicon-hand-up:before{ + content:"\e129" +} +.glyphicon-hand-down:before{ + content:"\e130" +} +.glyphicon-circle-arrow-right:before{ + content:"\e131" +} +.glyphicon-circle-arrow-left:before{ + content:"\e132" +} +.glyphicon-circle-arrow-up:before{ + content:"\e133" +} +.glyphicon-circle-arrow-down:before{ + content:"\e134" +} +.glyphicon-globe:before{ + content:"\e135" +} +.glyphicon-wrench:before{ + content:"\e136" +} +.glyphicon-tasks:before{ + content:"\e137" +} +.glyphicon-filter:before{ + content:"\e138" +} +.glyphicon-briefcase:before{ + content:"\e139" +} +.glyphicon-fullscreen:before{ + content:"\e140" +} +.glyphicon-dashboard:before{ + content:"\e141" +} +.glyphicon-paperclip:before{ + content:"\e142" +} +.glyphicon-heart-empty:before{ + content:"\e143" +} +.glyphicon-link:before{ + content:"\e144" +} +.glyphicon-phone:before{ + content:"\e145" +} +.glyphicon-pushpin:before{ + content:"\e146" +} +.glyphicon-usd:before{ + content:"\e148" +} +.glyphicon-gbp:before{ + content:"\e149" +} +.glyphicon-sort:before{ + content:"\e150" +} +.glyphicon-sort-by-alphabet:before{ + content:"\e151" +} +.glyphicon-sort-by-alphabet-alt:before{ + content:"\e152" +} +.glyphicon-sort-by-order:before{ + content:"\e153" +} +.glyphicon-sort-by-order-alt:before{ + content:"\e154" +} +.glyphicon-sort-by-attributes:before{ + content:"\e155" +} +.glyphicon-sort-by-attributes-alt:before{ + content:"\e156" +} +.glyphicon-unchecked:before{ + content:"\e157" +} +.glyphicon-expand:before{ + content:"\e158" +} +.glyphicon-collapse-down:before{ + content:"\e159" +} +.glyphicon-collapse-up:before{ + content:"\e160" +} +.glyphicon-log-in:before{ + content:"\e161" +} +.glyphicon-flash:before{ + content:"\e162" +} +.glyphicon-log-out:before{ + content:"\e163" +} +.glyphicon-new-window:before{ + content:"\e164" +} +.glyphicon-record:before{ + content:"\e165" +} +.glyphicon-save:before{ + content:"\e166" +} +.glyphicon-open:before{ + content:"\e167" +} +.glyphicon-saved:before{ + content:"\e168" +} +.glyphicon-import:before{ + content:"\e169" +} +.glyphicon-export:before{ + content:"\e170" +} +.glyphicon-send:before{ + content:"\e171" +} +.glyphicon-floppy-disk:before{ + content:"\e172" +} +.glyphicon-floppy-saved:before{ + content:"\e173" +} +.glyphicon-floppy-remove:before{ + content:"\e174" +} +.glyphicon-floppy-save:before{ + content:"\e175" +} +.glyphicon-floppy-open:before{ + content:"\e176" +} +.glyphicon-credit-card:before{ + content:"\e177" +} +.glyphicon-transfer:before{ + content:"\e178" +} +.glyphicon-cutlery:before{ + content:"\e179" +} +.glyphicon-header:before{ + content:"\e180" +} +.glyphicon-compressed:before{ + content:"\e181" +} +.glyphicon-earphone:before{ + content:"\e182" +} +.glyphicon-phone-alt:before{ + content:"\e183" +} +.glyphicon-tower:before{ + content:"\e184" +} +.glyphicon-stats:before{ + content:"\e185" +} +.glyphicon-sd-video:before{ + content:"\e186" +} +.glyphicon-hd-video:before{ + content:"\e187" +} +.glyphicon-subtitles:before{ + content:"\e188" +} +.glyphicon-sound-stereo:before{ + content:"\e189" +} +.glyphicon-sound-dolby:before{ + content:"\e190" +} +.glyphicon-sound-5-1:before{ + content:"\e191" +} +.glyphicon-sound-6-1:before{ + content:"\e192" +} +.glyphicon-sound-7-1:before{ + content:"\e193" +} +.glyphicon-copyright-mark:before{ + content:"\e194" +} +.glyphicon-registration-mark:before{ + content:"\e195" +} +.glyphicon-cloud-download:before{ + content:"\e197" +} +.glyphicon-cloud-upload:before{ + content:"\e198" +} +.glyphicon-tree-conifer:before{ + content:"\e199" +} +.glyphicon-tree-deciduous:before{ + content:"\e200" +} +*,:after,:before{ + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box +} +html{ + font-size:10px; + -webkit-tap-highlight-color:transparent +} +body{ + font-family:"Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif; + font-size:14px; + line-height:1.42857143; + color:#888; + background-color:#060606 +} +button,input,select,textarea{ + font-family:inherit; + font-size:inherit; + line-height:inherit +} +a{ + color:#339933; + text-shadow: #ded 0 0 1px; + text-decoration:none; +} +a:focus,a:hover{ + color:#ded; + text-shadow: #339933 0 0 10px; + text-decoration: none; +} +a:focus{ + outline:dotted thin; + outline:-webkit-focus-ring-color auto 5px; + outline-offset:-2px +} +figure{ + margin:0 +} +img{ + vertical-align:middle +} +.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{ + display:block; + max-width:100%; + height:auto +} +.img-rounded{ + border-radius:0px +} +.img-thumbnail{ + padding:4px; + line-height:1.42857143; + background-color:#282828; + border:1px solid #282828; + border-radius:0px; + -webkit-transition:all .2s ease-in-out; + -o-transition:all .2s ease-in-out; + transition:all .2s ease-in-out; + display:inline-block; + max-width:100%; + height:auto +} +.img-circle{ + border-radius:0 +} +hr{ + margin-top:20px; + margin-bottom:20px; + border:0; + border-top:1px solid #282828 +} +.sr-only{ + position:absolute; + width:1px; + height:1px; + margin:-1px; + padding:0; + overflow:hidden; + clip:rect(0,0,0,0); + border:0 +} +.sr-only-focusable:active,.sr-only-focusable:focus{ + position:static; + width:auto; + height:auto; + margin:0; + overflow:visible; + clip:auto +} +.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{ + font-family:"Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif; + font-weight:500; + line-height:1.1; + color:#fff +} +.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{ + font-weight:400; + line-height:1; + color:#888 +} +.h1,.h2,.h3,h1,h2,h3{ + margin-top:20px; + margin-bottom:10px +} +.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{ + font-size:65% +} +.h4,.h5,.h6,h4,h5,h6{ + margin-top:10px; + margin-bottom:10px +} +.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{ + font-size:75% +} +.h1,h1{ + font-size:56px +} +.h2,h2{ + font-size:45px +} +.h3,h3{ + font-size:34px +} +.h4,h4{ + font-size:24px +} +.h5,h5{ + font-size:20px +} +.h6,h6{ + font-size:16px +} +p{ + margin:0 0 10px +} +.lead{ + margin-bottom:20px; + font-size:16px; + font-weight:300; + line-height:1.4 +} +@media (min-width:768px){ + .lead{ + font-size:21px + } +} +.small,small{ + font-size:85% +} +.mark,mark{ + background-color:#f80; + padding:.2em +} +.text-left{ + text-align:left +} +.text-right{ + text-align:right +} +.text-center{ + text-align:center +} +.text-justify{ + text-align:justify +} +.text-nowrap{ + white-space:nowrap +} +.text-lowercase{ + text-transform:lowercase +} +.text-uppercase{ + text-transform:uppercase +} +.text-capitalize{ + text-transform:capitalize +} +.text-muted{ + color:#888 +} +a.text-primary:hover{ + color:#2180ac +} +a.text-success:hover{ + color:#e6e6e6 +} +a.text-info:hover{ + color:#e6e6e6 +} +a.text-warning:hover{ + color:#e6e6e6 +} +a.text-danger:hover{ + color:#e6e6e6 +} +.bg-primary{ + color:#fff; + background-color:#339933 +} +a.bg-primary:hover{ + background-color:#2180ac +} +.bg-success{ + background-color:#77b300 +} +a.bg-success:hover{ + background-color:#558000 +} +.bg-info{ + background-color:#93c +} +a.bg-info:hover{ + background-color:#7a29a3 +} +.bg-warning{ + background-color:#f80 +} +a.bg-warning:hover{ + background-color:#cc6d00 +} +.bg-danger{ + background-color:#c00 +} +a.bg-danger:hover{ + background-color:#900 +} +.page-header{ + padding-bottom:9px; + margin:40px 0 20px; + border-bottom:1px solid #282828 +} +ol,ul{ + margin-top:0; + margin-bottom:10px +} +ol ol,ol ul,ul ol,ul ul{ + margin-bottom:0 +} +.list-unstyled{ + padding-left:0; + list-style:none +} +.list-inline{ + padding-left:0; + list-style:none; + margin-left:-5px +} +.list-inline>li{ + display:inline-block; + padding-left:5px; + padding-right:5px +} +dl{ + margin-top:0; + margin-bottom:20px +} +dd,dt{ + line-height:1.42857143 +} +dt{ + font-weight:700 +} +dd{ + margin-left:0 +} +@media (min-width:768px){ + .dl-horizontal dt{ + float:left; + width:160px; + clear:left; + text-align:right; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap + } + .dl-horizontal dd{ + margin-left:180px + } +} +abbr[data-original-title],abbr[title]{ + cursor:help; + border-bottom:1px dotted #888 +} +.initialism{ + font-size:90%; + text-transform:uppercase +} +blockquote{ + padding:10px 20px; + margin:0 0 20px; + font-size:17.5px; + border-left:5px solid #282828 +} +blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{ + margin-bottom:0 +} +blockquote .small,blockquote footer,blockquote small{ + display:block; + font-size:80%; + line-height:1.42857143; + color:#555 +} +blockquote .small:before,blockquote footer:before,blockquote small:before{ + content:'\2014 \00A0' +} +.blockquote-reverse,blockquote.pull-right{ + padding-right:15px; + padding-left:0; + border-right:5px solid #282828; + border-left:0; + text-align:right +} +.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{ + content:'' +} +.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{ + content:'\00A0 \2014' +} +address{ + margin-bottom:20px; + font-style:normal; + line-height:1.42857143 +} +code,kbd,pre,samp{ + font-family:Menlo,Monaco,Consolas,"Courier New",monospace +} +code{ + padding:2px 4px; + font-size:90%; + color:#c7254e; + background-color:#f9f2f4; + border-radius:0 +} +kbd{ + padding:2px 4px; + font-size:90%; + color:#fff; + background-color:#333; + border-radius:0px; + -webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25); + box-shadow:inset 0 -1px 0 rgba(0,0,0,.25) +} +kbd kbd{ + padding:0; + font-size:100%; + font-weight:700; + -webkit-box-shadow:none; + box-shadow:none +} +pre{ + display:block; + padding:9.5px; + margin:0 0 10px; + font-size:13px; + line-height:1.42857143; + word-break:break-all; + word-wrap:break-word; + color:#282828; + background-color:#f5f5f5; + border:1px solid #ccc; + border-radius:0px +} +pre code{ + padding:0; + font-size:inherit; + color:inherit; + white-space:pre-wrap; + background-color:transparent; + border-radius:0 +} +.pre-scrollable{ + max-height:340px; + overflow-y:scroll +} +.container,.container-fluid{ + margin-right:auto; + margin-left:auto; + padding-left:0px; + padding-right:0px +} +@media (min-width:768px){ + .container{ + width:750px + } +} +@media (min-width:992px){ + .container{ + width:970px + } +} +@media (min-width:1200px){ + .container{ + width:1170px + } +} +.row{ + margin-left:0px; + margin-right:0px +} +.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{ + position:relative; + min-height:1px; + padding-left:0px; + padding-right:0px +} +.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{ + float:left +} +.col-xs-12{ + width:100% +} +.col-xs-11{ + width:91.66666667% +} +.col-xs-10{ + width:83.33333333% +} +.col-xs-9{ + width:75% +} +.col-xs-8{ + width:66.66666667% +} +.col-xs-7{ + width:58.33333333% +} +.col-xs-6{ + width:50% +} +.col-xs-5{ + width:41.66666667% +} +.col-xs-4{ + width:33.33333333% +} +.col-xs-3{ + width:25% +} +.col-xs-2{ + width:16.66666667% +} +.col-xs-1{ + width:8.33333333% +} +.col-xs-pull-12{ + right:100% +} +.col-xs-pull-11{ + right:91.66666667% +} +.col-xs-pull-10{ + right:83.33333333% +} +.col-xs-pull-9{ + right:75% +} +.col-xs-pull-8{ + right:66.66666667% +} +.col-xs-pull-7{ + right:58.33333333% +} +.col-xs-pull-6{ + right:50% +} +.col-xs-pull-5{ + right:41.66666667% +} +.col-xs-pull-4{ + right:33.33333333% +} +.col-xs-pull-3{ + right:25% +} +.col-xs-pull-2{ + right:16.66666667% +} +.col-xs-pull-1{ + right:8.33333333% +} +.col-xs-pull-0{ + right:auto +} +.col-xs-push-12{ + left:100% +} +.col-xs-push-11{ + left:91.66666667% +} +.col-xs-push-10{ + left:83.33333333% +} +.col-xs-push-9{ + left:75% +} +.col-xs-push-8{ + left:66.66666667% +} +.col-xs-push-7{ + left:58.33333333% +} +.col-xs-push-6{ + left:50% +} +.col-xs-push-5{ + left:41.66666667% +} +.col-xs-push-4{ + left:33.33333333% +} +.col-xs-push-3{ + left:25% +} +.col-xs-push-2{ + left:16.66666667% +} +.col-xs-push-1{ + left:8.33333333% +} +.col-xs-push-0{ + left:auto +} +.col-xs-offset-12{ + margin-left:100% +} +.col-xs-offset-11{ + margin-left:91.66666667% +} +.col-xs-offset-10{ + margin-left:83.33333333% +} +.col-xs-offset-9{ + margin-left:75% +} +.col-xs-offset-8{ + margin-left:66.66666667% +} +.col-xs-offset-7{ + margin-left:58.33333333% +} +.col-xs-offset-6{ + margin-left:50% +} +.col-xs-offset-5{ + margin-left:41.66666667% +} +.col-xs-offset-4{ + margin-left:33.33333333% +} +.col-xs-offset-3{ + margin-left:25% +} +.col-xs-offset-2{ + margin-left:16.66666667% +} +.col-xs-offset-1{ + margin-left:8.33333333% +} +.col-xs-offset-0{ + margin-left:0 +} +@media (min-width:768px){ + .col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{ + float:left + } + .col-sm-12{ + width:100% + } + .col-sm-11{ + width:91.66666667% + } + .col-sm-10{ + width:83.33333333% + } + .col-sm-9{ + width:75% + } + .col-sm-8{ + width:66.66666667% + } + .col-sm-7{ + width:58.33333333% + } + .col-sm-6{ + width:50% + } + .col-sm-5{ + width:41.66666667% + } + .col-sm-4{ + width:33.33333333% + } + .col-sm-3{ + width:25% + } + .col-sm-2{ + width:16.66666667% + } + .col-sm-1{ + width:8.33333333% + } + .col-sm-pull-12{ + right:100% + } + .col-sm-pull-11{ + right:91.66666667% + } + .col-sm-pull-10{ + right:83.33333333% + } + .col-sm-pull-9{ + right:75% + } + .col-sm-pull-8{ + right:66.66666667% + } + .col-sm-pull-7{ + right:58.33333333% + } + .col-sm-pull-6{ + right:50% + } + .col-sm-pull-5{ + right:41.66666667% + } + .col-sm-pull-4{ + right:33.33333333% + } + .col-sm-pull-3{ + right:25% + } + .col-sm-pull-2{ + right:16.66666667% + } + .col-sm-pull-1{ + right:8.33333333% + } + .col-sm-pull-0{ + right:auto + } + .col-sm-push-12{ + left:100% + } + .col-sm-push-11{ + left:91.66666667% + } + .col-sm-push-10{ + left:83.33333333% + } + .col-sm-push-9{ + left:75% + } + .col-sm-push-8{ + left:66.66666667% + } + .col-sm-push-7{ + left:58.33333333% + } + .col-sm-push-6{ + left:50% + } + .col-sm-push-5{ + left:41.66666667% + } + .col-sm-push-4{ + left:33.33333333% + } + .col-sm-push-3{ + left:25% + } + .col-sm-push-2{ + left:16.66666667% + } + .col-sm-push-1{ + left:8.33333333% + } + .col-sm-push-0{ + left:auto + } + .col-sm-offset-12{ + margin-left:100% + } + .col-sm-offset-11{ + margin-left:91.66666667% + } + .col-sm-offset-10{ + margin-left:83.33333333% + } + .col-sm-offset-9{ + margin-left:75% + } + .col-sm-offset-8{ + margin-left:66.66666667% + } + .col-sm-offset-7{ + margin-left:58.33333333% + } + .col-sm-offset-6{ + margin-left:50% + } + .col-sm-offset-5{ + margin-left:41.66666667% + } + .col-sm-offset-4{ + margin-left:33.33333333% + } + .col-sm-offset-3{ + margin-left:25% + } + .col-sm-offset-2{ + margin-left:16.66666667% + } + .col-sm-offset-1{ + margin-left:8.33333333% + } + .col-sm-offset-0{ + margin-left:0 + } +} +@media (min-width:992px){ + .col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{ + float:left + } + .col-md-12{ + width:100% + } + .col-md-11{ + width:91.66666667% + } + .col-md-10{ + width:83.33333333% + } + .col-md-9{ + width:75% + } + .col-md-8{ + width:66.66666667% + } + .col-md-7{ + width:58.33333333% + } + .col-md-6{ + width:50% + } + .col-md-5{ + width:41.66666667% + } + .col-md-4{ + width:33.33333333% + } + .col-md-3{ + width:25% + } + .col-md-2{ + width:16.66666667% + } + .col-md-1{ + width:8.33333333% + } + .col-md-pull-12{ + right:100% + } + .col-md-pull-11{ + right:91.66666667% + } + .col-md-pull-10{ + right:83.33333333% + } + .col-md-pull-9{ + right:75% + } + .col-md-pull-8{ + right:66.66666667% + } + .col-md-pull-7{ + right:58.33333333% + } + .col-md-pull-6{ + right:50% + } + .col-md-pull-5{ + right:41.66666667% + } + .col-md-pull-4{ + right:33.33333333% + } + .col-md-pull-3{ + right:25% + } + .col-md-pull-2{ + right:16.66666667% + } + .col-md-pull-1{ + right:8.33333333% + } + .col-md-pull-0{ + right:auto + } + .col-md-push-12{ + left:100% + } + .col-md-push-11{ + left:91.66666667% + } + .col-md-push-10{ + left:83.33333333% + } + .col-md-push-9{ + left:75% + } + .col-md-push-8{ + left:66.66666667% + } + .col-md-push-7{ + left:58.33333333% + } + .col-md-push-6{ + left:50% + } + .col-md-push-5{ + left:41.66666667% + } + .col-md-push-4{ + left:33.33333333% + } + .col-md-push-3{ + left:25% + } + .col-md-push-2{ + left:16.66666667% + } + .col-md-push-1{ + left:8.33333333% + } + .col-md-push-0{ + left:auto + } + .col-md-offset-12{ + margin-left:100% + } + .col-md-offset-11{ + margin-left:91.66666667% + } + .col-md-offset-10{ + margin-left:83.33333333% + } + .col-md-offset-9{ + margin-left:75% + } + .col-md-offset-8{ + margin-left:66.66666667% + } + .col-md-offset-7{ + margin-left:58.33333333% + } + .col-md-offset-6{ + margin-left:50% + } + .col-md-offset-5{ + margin-left:41.66666667% + } + .col-md-offset-4{ + margin-left:33.33333333% + } + .col-md-offset-3{ + margin-left:25% + } + .col-md-offset-2{ + margin-left:16.66666667% + } + .col-md-offset-1{ + margin-left:8.33333333% + } + .col-md-offset-0{ + margin-left:0 + } +} +@media (min-width:1200px){ + .col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{ + float:left + } + .col-lg-12{ + width:100% + } + .col-lg-11{ + width:91.66666667% + } + .col-lg-10{ + width:83.33333333% + } + .col-lg-9{ + width:75% + } + .col-lg-8{ + width:66.66666667% + } + .col-lg-7{ + width:58.33333333% + } + .col-lg-6{ + width:50% + } + .col-lg-5{ + width:41.66666667% + } + .col-lg-4{ + width:33.33333333% + } + .col-lg-3{ + width:25% + } + .col-lg-2{ + width:16.66666667% + } + .col-lg-1{ + width:8.33333333% + } + .col-lg-pull-12{ + right:100% + } + .col-lg-pull-11{ + right:91.66666667% + } + .col-lg-pull-10{ + right:83.33333333% + } + .col-lg-pull-9{ + right:75% + } + .col-lg-pull-8{ + right:66.66666667% + } + .col-lg-pull-7{ + right:58.33333333% + } + .col-lg-pull-6{ + right:50% + } + .col-lg-pull-5{ + right:41.66666667% + } + .col-lg-pull-4{ + right:33.33333333% + } + .col-lg-pull-3{ + right:25% + } + .col-lg-pull-2{ + right:16.66666667% + } + .col-lg-pull-1{ + right:8.33333333% + } + .col-lg-pull-0{ + right:auto + } + .col-lg-push-12{ + left:100% + } + .col-lg-push-11{ + left:91.66666667% + } + .col-lg-push-10{ + left:83.33333333% + } + .col-lg-push-9{ + left:75% + } + .col-lg-push-8{ + left:66.66666667% + } + .col-lg-push-7{ + left:58.33333333% + } + .col-lg-push-6{ + left:50% + } + .col-lg-push-5{ + left:41.66666667% + } + .col-lg-push-4{ + left:33.33333333% + } + .col-lg-push-3{ + left:25% + } + .col-lg-push-2{ + left:16.66666667% + } + .col-lg-push-1{ + left:8.33333333% + } + .col-lg-push-0{ + left:auto + } + .col-lg-offset-12{ + margin-left:100% + } + .col-lg-offset-11{ + margin-left:91.66666667% + } + .col-lg-offset-10{ + margin-left:83.33333333% + } + .col-lg-offset-9{ + margin-left:75% + } + .col-lg-offset-8{ + margin-left:66.66666667% + } + .col-lg-offset-7{ + margin-left:58.33333333% + } + .col-lg-offset-6{ + margin-left:50% + } + .col-lg-offset-5{ + margin-left:41.66666667% + } + .col-lg-offset-4{ + margin-left:33.33333333% + } + .col-lg-offset-3{ + margin-left:25% + } + .col-lg-offset-2{ + margin-left:16.66666667% + } + .col-lg-offset-1{ + margin-left:8.33333333% + } + .col-lg-offset-0{ + margin-left:0 + } +} +table{ + background-color:#181818 +} +caption{ + padding-top:8px; + padding-bottom:8px; + color:#888; + text-align:left +} +th{ + text-align:left +} +.table{ + width:100%; + max-width:100%; + margin-bottom:20px +} +.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{ + padding:8px; + line-height:1.42857143; + vertical-align:top; + border-top:1px solid #282828 +} +.table>thead>tr>th{ + vertical-align:bottom; + border-bottom:2px solid #282828 +} +.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{ + border-top:0 +} +.table>tbody+tbody{ + border-top:2px solid #282828 +} +.table .table{ + background-color:#060606 +} +.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{ + padding:5px +} +.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{ + border:1px solid #282828 +} +.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{ + border-bottom-width:2px +} +.table-striped>tbody>tr:nth-child(odd){ + background-color:#080808 +} +.table-hover>tbody>tr:hover{ + background-color:#282828 +} +table col[class*=col-]{ + position:static; + float:none; + display:table-column +} +table td[class*=col-],table th[class*=col-]{ + position:static; + float:none; + display:table-cell +} +.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{ + background-color:#282828 +} +.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{ + background-color:#1b1b1b +} +.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{ + background-color:#77b300 +} +.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{ + background-color:#669a00 +} +.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{ + background-color:#93c +} +.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{ + background-color:#8a2eb8 +} +.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{ + background-color:#f80 +} +.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{ + background-color:#e67a00 +} +.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{ + background-color:#c00 +} +.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{ + background-color:#b30000 +} +.table-responsive{ + overflow-x:auto; + min-height:.01% +} +@media screen and (max-width:767px){ + .table-responsive{ + width:100%; + margin-bottom:15px; + overflow-y:hidden; + -ms-overflow-style:-ms-autohiding-scrollbar; + border:1px solid #282828 + } + .table-responsive>.table{ + margin-bottom:0 + } + .table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{ + white-space:nowrap + } + .table-responsive>.table-bordered{ + border:0 + } + .table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{ + border-left:0 + } + .table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{ + border-right:0 + } + .table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{ + border-bottom:0 + } +} +fieldset{ + padding:0; + margin:0; + border:0; + min-width:0 +} +legend{ + display:block; + width:100%; + padding:0; + margin-bottom:20px; + font-size:21px; + line-height:inherit; + border:0; + border-bottom:1px solid #282828 +} +label{ + display:inline-block; + max-width:100%; + margin-bottom:5px; + font-weight:700 +} +input[type=search]{ + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box +} +input[type=checkbox],input[type=radio]{ + margin:4px 0 0; + line-height:normal +} +input[type=file]{ + display:block +} +input[type=range]{ + display:block; + width:100% +} +select[multiple],select[size]{ + height:auto +} +input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{ + outline:dotted thin; + outline:-webkit-focus-ring-color auto 5px; + outline-offset:-2px +} +output{ + display:block; + padding-top:9px; + font-size:14px; + line-height:1.42857143; + color:#888 +} +.form-control{ + flex-grow: 1; + height:38px; + padding:8px 12px; + font-size:14px; + line-height:1.42857143; + color:#888; + background-color:#fff; + background-image:none; + border:1px solid #282828; + border-radius:0px; + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); + box-shadow:inset 0 1px 1px rgba(0,0,0,.075); + -webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; + -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s; + transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s +} +.form-control:focus{ + border-color:#339933; + outline:0; + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(51,153,51,.6); + box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(51,153,51,.6) +} +.form-control::-moz-placeholder{ + color:#888; + opacity:1 +} +.form-control:-ms-input-placeholder{ + color:#888 +} +.form-control::-webkit-input-placeholder{ + color:#888 +} +.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{ + cursor:not-allowed; + background-color:#adafae; + opacity:1 +} +textarea.form-control{ + height:auto +} +input[type=search]{ + -webkit-appearance:none +} +@media screen and (-webkit-min-device-pixel-ratio:0){ + input[type=date],input[type=datetime-local],input[type=month],input[type=time]{ + line-height:38px + } + input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{ + line-height:30px + } + input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{ + line-height:54px + } +} +.form-group{ + margin-bottom:15px +} +.checkbox,.radio{ + position:relative; + display:block; + margin-top:10px; + margin-bottom:10px +} +.checkbox label,.radio label{ + min-height:20px; + padding-left:20px; + margin-bottom:0; + font-weight:400; + cursor:pointer +} +.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{ + position:absolute; + margin-left:-20px +} +.checkbox+.checkbox,.radio+.radio{ + margin-top:-5px +} +.checkbox-inline,.radio-inline{ + display:inline-block; + padding-left:20px; + margin-bottom:0; + vertical-align:middle; + font-weight:400; + cursor:pointer +} +.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{ + margin-top:0; + margin-left:10px +} +.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio label,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{ + cursor:not-allowed +} +.form-control-static{ + padding-top:9px; + padding-bottom:9px; + margin-bottom:0 +} +.form-control-static.input-lg,.form-control-static.input-sm{ + padding-left:0; + padding-right:0 +} +.form-group-sm .form-control,.input-sm{ + height:30px; + padding:5px 10px; + font-size:12px; + line-height:1.5; + border-radius:0px +} +select.form-group-sm .form-control,select.input-sm{ + height:30px; + line-height:30px +} +select[multiple].form-group-sm .form-control,select[multiple].input-sm,textarea.form-group-sm .form-control,textarea.input-sm{ + height:auto +} +.form-group-lg .form-control,.input-lg{ + height:54px; + padding:14px 16px; + font-size:18px; + line-height:1.33; + border-radius:0px +} +select.form-group-lg .form-control,select.input-lg{ + height:54px; + line-height:54px +} +select[multiple].form-group-lg .form-control,select[multiple].input-lg,textarea.form-group-lg .form-control,textarea.input-lg{ + height:auto +} +.has-feedback{ + position:relative +} +.has-feedback .form-control{ + padding-right:47.5px +} +.form-control-feedback{ + position:absolute; + top:0; + right:0; + z-index:2; + display:block; + width:38px; + height:38px; + line-height:38px; + text-align:center; + pointer-events:none +} +.input-lg+.form-control-feedback{ + width:54px; + height:54px; + line-height:54px +} +.input-sm+.form-control-feedback{ + width:30px; + height:30px; + line-height:30px +} +.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{ + color:#fff +} +.has-success .form-control{ + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); + box-shadow:inset 0 1px 1px rgba(0,0,0,.075) +} +.has-success .form-control:focus{ + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #fff; + box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #fff +} +.has-success .input-group-addon{ + color:#fff; + background-color:#77b300 +} +.has-success .form-control-feedback,.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{ + color:#fff +} +.has-warning .form-control{ + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); + box-shadow:inset 0 1px 1px rgba(0,0,0,.075) +} +.has-warning .form-control:focus{ + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #fff; + box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #fff +} +.has-warning .input-group-addon{ + color:#fff; + background-color:#f80 +} +.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label,.has-warning .form-control-feedback{ + color:#fff +} +.has-error .form-control{ + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); + box-shadow:inset 0 1px 1px rgba(0,0,0,.075) +} +.has-error .form-control:focus{ + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #fff; + box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #fff +} +.has-error .input-group-addon{ + color:#fff; + background-color:#c00 +} +.has-feedback label~.form-control-feedback{ + top:25px +} +.has-feedback label.sr-only~.form-control-feedback{ + top:0 +} +.help-block{ + display:block; + margin-top:5px; + margin-bottom:10px; + color:#c8c8c8 +} +@media (min-width:768px){ + .form-inline .form-group{ + display:inline-block; + margin-bottom:0; + vertical-align:middle + } + .form-inline .form-control{ + display:inline-block; + width:auto; + vertical-align:middle + } + .form-inline .form-control-static{ + display:inline-block + } + .form-inline .input-group{ + display:inline-table; + vertical-align:middle + } + .form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{ + width:auto + } + .form-inline .input-group>.form-control{ + width:100% + } + .form-inline .control-label{ + margin-bottom:0; + vertical-align:middle + } + .form-inline .checkbox,.form-inline .radio{ + display:inline-block; + margin-top:0; + margin-bottom:0; + vertical-align:middle + } + .form-inline .checkbox label,.form-inline .radio label{ + padding-left:0 + } + .form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{ + position:relative; + margin-left:0 + } + .form-inline .has-feedback .form-control-feedback{ + top:0 + } +} +.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{ + margin-top:0; + margin-bottom:0; + padding-top:9px +} +.form-horizontal .checkbox,.form-horizontal .radio{ + min-height:29px +} +.form-horizontal .form-group{ + margin-left:-15px; + margin-right:-15px +} +@media (min-width:768px){ + .form-horizontal .control-label{ + text-align:right; + margin-bottom:0; + padding-top:9px + } +} +.form-horizontal .has-feedback .form-control-feedback{ + right:15px +} +@media (min-width:768px){ + .form-horizontal .form-group-lg .control-label{ + padding-top:19.62px + } +} +@media (min-width:768px){ + .form-horizontal .form-group-sm .control-label{ + padding-top:6px + } +} +.btn{ + display:inline-block; + margin-bottom:0; + font-weight:400; + text-align:center; + vertical-align:middle; + -ms-touch-action:manipulation; + touch-action:manipulation; + cursor:pointer; + background-image:none; + border:1px solid transparent; + white-space:nowrap; + padding:8px 12px; + font-size:14px; + line-height:1.42857143; + border-radius:0px; + -webkit-user-select:none; + -moz-user-select:none; + -ms-user-select:none; + user-select:none +} +.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{ + outline:dotted thin; + outline:-webkit-focus-ring-color auto; +} +.btn.focus,.btn:focus,.btn:hover{ + color:#fff; + text-decoration:none +} +.btn.active,.btn:active{ + outline:0; + background-image:none; + -webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125); + box-shadow:inset 0 3px 5px rgba(0,0,0,.125) +} +.btn.disabled,.btn[disabled],fieldset[disabled] .btn{ + cursor:not-allowed; + pointer-events:none; + opacity:.65; + filter:alpha(opacity=65); + -webkit-box-shadow:none; + box-shadow:none +} +.btn-default{ + color:#fff; + background-color:#111111C0; + border-color:#111111l +} +.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{ + color:#fff; + background-color:#282828; + border-color:#232323 +} +.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{ + background-image:none +} +.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{ + background-color:#424242; + border-color:#424242 +} +.btn-default .badge{ + color:#424242; + background-color:#fff +} +.btn-primary{ + color:#fff; + background-color:#339933; + border-color:#339933 +} +.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{ + color:#fff; + background-color:#2180ac; + border-color:#1f79a3 +} +.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{ + background-image:none +} +.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{ + background-color:#339933; + border-color:#339933 +} +.btn-primary .badge{ + color:#339933; + background-color:#fff +} +.btn-success{ + color:#fff; + background-color:#77b300; + border-color:#77b300 +} +.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{ + color:#fff; + background-color:#558000; + border-color:#4e7600 +} +.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{ + background-image:none +} +.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{ + background-color:#77b300; + border-color:#77b300 +} +.btn-success .badge{ + color:#77b300; + background-color:#fff +} +.btn-info{ + color:#fff; + background-color:#93c; + border-color:#93c +} +.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{ + color:#fff; + background-color:#7a29a3; + border-color:#74279b +} +.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{ + background-image:none +} +.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{ + background-color:#93c; + border-color:#93c +} +.btn-info .badge{ + color:#93c; + background-color:#fff +} +.btn-warning{ + color:#fff; + background-color:#f80; + border-color:#f80 +} +.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{ + color:#fff; + background-color:#cc6d00; + border-color:#c26700 +} +.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{ + background-image:none +} +.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{ + background-color:#f80; + border-color:#f80 +} +.btn-warning .badge{ + color:#f80; + background-color:#fff +} +.btn-danger{ + color:#fff; + background-color:#c00; + border-color:#c00 +} +.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{ + color:#fff; + background-color:#900; + border-color:#8f0000 +} +.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{ + background-image:none +} +.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{ + background-color:#c00; + border-color:#c00 +} +.btn-danger .badge{ + color:#c00; + background-color:#fff +} +.btn-link{ + color:#339933; + font-weight:400; + border-radius:0 +} +.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{ + background-color:transparent; + -webkit-box-shadow:none; + box-shadow:none +} +.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{ + border-color:transparent +} +.btn-link:focus,.btn-link:hover{ + color:#339933; + text-decoration:underline; + background-color:transparent +} +.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{ + color:#888; + text-decoration:none +} +.btn-group-lg>.btn,.btn-lg{ + padding:14px 16px; + font-size:18px; + line-height:1.33; + border-radius:0px +} +.btn-group-sm>.btn,.btn-sm{ + padding:5px 10px; + font-size:12px; + line-height:1.5; + border-radius:0px +} +.btn-group-xs>.btn,.btn-xs{ + padding:1px 5px; + font-size:12px; + line-height:1.5; + border-radius:0px +} +.btn-block{ + display:block; + width:100% +} +.btn-block+.btn-block{ + margin-top:5px +} +input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{ + width:100% +} +.fade{ + opacity:0; + -webkit-transition:opacity .15s linear; + -o-transition:opacity .15s linear; + transition:opacity .15s linear +} +.fade.in{ + opacity:1 +} +.collapse{ + display:none; + visibility:hidden +} +.collapse.in{ + display:block; + visibility:visible +} +tr.collapse.in{ + display:table-row +} +tbody.collapse.in{ + display:table-row-group +} +.collapsing{ + position:relative; + height:0; + overflow:hidden; + -webkit-transition-property:height,visibility; + -o-transition-property:height,visibility; + transition-property:height,visibility; + -webkit-transition-duration:.35s; + -o-transition-duration:.35s; + transition-duration:.35s; + -webkit-transition-timing-function:ease; + -o-transition-timing-function:ease; + transition-timing-function:ease +} +.caret{ + display:inline-block; + width:0; + height:0; + margin-left:2px; + vertical-align:middle; + border-top:4px solid; + border-right:4px solid transparent; + border-left:4px solid transparent +} +.dropdown{ + position:relative +} +.dropdown-toggle:focus{ + outline:0 +} +.dropdown-menu{ + position:absolute; + top:100%; + left:0; + z-index:1000; + display:none; + float:left; + min-width:160px; + padding:5px 0; + margin:2px 0 0; + list-style:none; + font-size:14px; + text-align:left; + background-color:#222; + border:1px solid #444; + border:1px solid rgba(255,255,255,.1); + border-radius:0px; + -webkit-box-shadow:0 6px 12px rgba(0,0,0,.175); + box-shadow:0 6px 12px rgba(0,0,0,.175); + -webkit-background-clip:padding-box; + background-clip:padding-box +} +.dropdown-menu.pull-right{ + right:0; + left:auto +} +.dropdown-menu .divider{ + height:1px; + margin:9px 0; + overflow:hidden; + background-color:rgba(255,255,255,.1) +} +.dropdown-menu>li>a{ + display:block; + padding:3px 20px; + clear:both; + font-weight:400; + line-height:1.42857143; + color:#fff; + white-space:nowrap +} +.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{ + text-decoration:none; + color:#fff; + background-color:#339933 +} +.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{ + color:#fff; + text-decoration:none; + outline:0; + background-color:#339933 +} +.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{ + color:#888 +} +.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{ + text-decoration:none; + background-color:transparent; + background-image:none; + filter:progid:DXImageTransform.Microsoft.gradient(enabled=false); + cursor:not-allowed +} +.open>.dropdown-menu{ + display:block +} +.open>a{ + outline:0 +} +.dropdown-menu-right{ + left:auto; + right:0 +} +.dropdown-menu-left{ + left:0; + right:auto +} +.dropdown-header{ + display:block; + padding:3px 20px; + font-size:12px; + line-height:1.42857143; + color:#888; + white-space:nowrap +} +.dropdown-backdrop{ + position:fixed; + left:0; + right:0; + bottom:0; + top:0; + z-index:990 +} +.pull-right>.dropdown-menu{ + right:0; + left:auto +} +.dropup .caret,.navbar-fixed-bottom .dropdown .caret{ + border-top:0; + border-bottom:4px solid; + content:"" +} +.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{ + top:auto; + bottom:100%; + margin-bottom:1px +} +@media (min-width:768px){ + .navbar-right .dropdown-menu{ + left:auto; + right:0 + } + .navbar-right .dropdown-menu-left{ + left:0; + right:auto + } +} +.btn-group,.btn-group-vertical{ + position:relative; + display:inline-block; + vertical-align:middle +} +.btn-group-vertical>.btn,.btn-group>.btn{ + position:relative; + float:left +} +.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{ + z-index:2 +} +.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{ + margin-left:-1px +} +.btn-toolbar{ + margin-left:-5px +} +.btn-toolbar .btn-group,.btn-toolbar .input-group{ + float:left +} +.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{ + margin-left:5px +} +.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){ + border-radius:0 +} +.btn-group>.btn:first-child{ + margin-left:0 +} +.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){ + border-bottom-right-radius:0; + border-top-right-radius:0 +} +.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){ + border-bottom-left-radius:0; + border-top-left-radius:0 +} +.btn-group>.btn-group{ + float:left +} +.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{ + border-radius:0 +} +.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{ + border-bottom-right-radius:0; + border-top-right-radius:0 +} +.btn-group>.btn-group:last-child>.btn:first-child{ + border-bottom-left-radius:0; + border-top-left-radius:0 +} +.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{ + outline:0 +} +.btn-group>.btn+.dropdown-toggle{ + padding-left:8px; + padding-right:8px +} +.btn-group>.btn-lg+.dropdown-toggle{ + padding-left:12px; + padding-right:12px +} +.btn-group.open .dropdown-toggle{ + -webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125); + box-shadow:inset 0 3px 5px rgba(0,0,0,.125) +} +.btn-group.open .dropdown-toggle.btn-link{ + -webkit-box-shadow:none; + box-shadow:none +} +.btn .caret{ + margin-left:0 +} +.btn-lg .caret{ + border-width:5px 5px 0 +} +.dropup .btn-lg .caret{ + border-width:0 5px 5px +} +.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{ + display:block; + float:none; + width:100%; + max-width:100% +} +.btn-group-vertical>.btn-group>.btn{ + float:none +} +.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{ + margin-top:-1px; + margin-left:0 +} +.btn-group-vertical>.btn:not(:first-child):not(:last-child){ + border-radius:0 +} +.btn-group-vertical>.btn:first-child:not(:last-child){ + border-top-right-radius:4px; + border-bottom-right-radius:0; + border-bottom-left-radius:0 +} +.btn-group-vertical>.btn:last-child:not(:first-child){ + border-bottom-left-radius:4px; + border-top-right-radius:0; + border-top-left-radius:0 +} +.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{ + border-radius:0 +} +.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{ + border-bottom-right-radius:0; + border-bottom-left-radius:0 +} +.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{ + border-top-right-radius:0; + border-top-left-radius:0 +} +.btn-group-justified{ + display:table; + width:100%; + table-layout:fixed; + border-collapse:separate +} +.btn-group-justified>.btn,.btn-group-justified>.btn-group{ + float:none; + display:table-cell; + width:1% +} +.btn-group-justified>.btn-group .btn{ + width:100% +} +.btn-group-justified>.btn-group .dropdown-menu{ + left:auto +} +[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{ + position:absolute; + clip:rect(0,0,0,0); + pointer-events:none +} +.input-group{ + position:relative; + display:table; + border-collapse:separate +} +.input-group[class*=col-]{ + float:none; + padding-left:0; + padding-right:0 +} +.input-group .form-control{ + position:relative; + z-index:2; + float:left; + width:100%; + margin-bottom:0 +} +.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{ + height:54px; + padding:14px 16px; + font-size:18px; + line-height:1.33; + border-radius:0px +} +select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{ + height:54px; + line-height:54px +} +select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{ + height:auto +} +.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{ + height:30px; + padding:5px 10px; + font-size:12px; + line-height:1.5; + border-radius:0px +} +select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{ + height:30px; + line-height:30px +} +select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{ + height:auto +} +.input-group .form-control,.input-group-addon,.input-group-btn{ + display:table-cell +} +.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){ + border-radius:0 +} +.input-group-addon,.input-group-btn{ + width:1%; + white-space:nowrap; + vertical-align:middle +} +.input-group-addon{ + padding:8px 12px; + font-size:14px; + font-weight:400; + line-height:1; + color:#888; + text-align:center; + border:1px solid #282828; + border-radius:0px +} +.input-group-addon.input-sm{ + padding:5px 10px; + font-size:12px; + border-radius:0px +} +.input-group-addon.input-lg{ + padding:14px 16px; + font-size:18px; + border-radius:0px +} +.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{ + margin-top:0 +} +.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){ + border-bottom-right-radius:0; + border-top-right-radius:0 +} +.input-group-addon:first-child{ + border-right:0 +} +.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{ + border-bottom-left-radius:0; + border-top-left-radius:0 +} +.input-group-addon:last-child{ + border-left:0 +} +.input-group-btn{ + position:relative; + font-size:0; + white-space:nowrap +} +.input-group-btn>.btn{ + position:relative +} +.input-group-btn>.btn+.btn{ + margin-left:-1px +} +.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{ + z-index:2 +} +.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{ + margin-right:-1px +} +.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{ + margin-left:-1px +} +.nav{ + margin-bottom:0; + padding-left:0; + list-style:none +} +.nav>li{ + position:relative; + display:block +} +.nav>li>a{ + position:relative; + display:block; + padding:10px 15px +} +.nav>li>a:focus,.nav>li>a:hover{ + text-decoration:none; + background-color:#222 +} +.nav>li.disabled>a{ + color:#888 +} +.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{ + color:#888; + text-decoration:none; + background-color:transparent; + cursor:not-allowed +} +.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{ + background-color:#222; + border-color:#339933 +} +.nav .nav-divider{ + height:1px; + margin:9px 0; + overflow:hidden; + background-color:#e5e5e5 +} +.nav>li>a>img{ + max-width:none +} +.nav-tabs{ + border-bottom:1px solid #282828 +} +.nav-tabs>li{ + float:left; + margin-bottom:-1px +} +.nav-tabs>li>a{ + margin-right:2px; + line-height:1.42857143; + border:1px solid transparent; + border-radius:0px 0px 0 0 +} +.nav-tabs>li>a:hover{ + border-color:transparent transparent #282828 +} +.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{ + color:#fff; + background-color:#339933; + border:1px solid #282828; + border-bottom-color:transparent; + cursor:default +} +.nav-tabs.nav-justified{ + width:100%; + border-bottom:0 +} +.nav-tabs.nav-justified>li{ + float:none +} +.nav-tabs.nav-justified>li>a{ + text-align:center; + margin-bottom:5px +} +.nav-tabs.nav-justified>.dropdown .dropdown-menu{ + top:auto; + left:auto +} +@media (min-width:768px){ + .nav-tabs.nav-justified>li{ + display:table-cell; + width:1% + } + .nav-tabs.nav-justified>li>a{ + margin-bottom:0 + } +} +.nav-tabs.nav-justified>li>a{ + margin-right:0; + border-radius:0px +} +.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{ + border:1px solid #ddd +} +@media (min-width:768px){ + .nav-tabs.nav-justified>li>a{ + border-bottom:1px solid #ddd; + border-radius:0 + } + .nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{ + border-bottom-color:#060606 + } +} +.nav-pills>li{ + float:left +} +.nav-pills>li>a{ + border-radius:0px +} +.nav-pills>li+li{ + margin-left:2px +} +.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{ + color:#fff; + background-color:#339933 +} +.nav-stacked>li{ + float:none +} +.nav-stacked>li+li{ + margin-top:2px; + margin-left:0 +} +.nav-justified{ + width:100% +} +.nav-justified>li{ + float:none +} +.nav-justified>li>a{ + text-align:center; + margin-bottom:5px +} +.nav-justified>.dropdown .dropdown-menu{ + top:auto; + left:auto +} +@media (min-width:768px){ + .nav-justified>li{ + display:table-cell; + width:1% + } + .nav-justified>li>a{ + margin-bottom:0 + } +} +.nav-tabs-justified{ + border-bottom:0 +} +.nav-tabs-justified>li>a{ + margin-right:0; + border-radius:0px +} +.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{ + border:1px solid #ddd +} +@media (min-width:768px){ + .nav-tabs-justified>li>a{ + border-bottom:1px solid #ddd; + border-radius: 0 0 + } + .nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{ + border-bottom-color:#060606 + } +} +.tab-content>.tab-pane{ + display:none; + visibility:hidden +} +.tab-content>.active{ + display:block; + visibility:visible +} +.nav-tabs .dropdown-menu{ + margin-top:-1px; + border-top-right-radius:0; + border-top-left-radius:0 +} +.navbar{ + position:relative; + min-height:50px; + margin-bottom:20px; + border:1px solid transparent +} +@media (min-width:768px){ + .navbar{ + border-radius:0px + } +} +@media (min-width:768px){ + .navbar-header{ + float:left + } +} +.navbar-collapse{ + overflow-x:visible; + padding-right:15px; + padding-left:15px; + border-top:1px solid transparent; + -webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1); + box-shadow:inset 0 1px 0 rgba(255,255,255,.1); + -webkit-overflow-scrolling:touch +} +.navbar-collapse.in{ + overflow-y:auto +} +@media (min-width:768px){ + .navbar-collapse{ + width:auto; + border-top:0; + -webkit-box-shadow:none; + box-shadow:none + } + .navbar-collapse.collapse{ + display:block!important; + visibility:visible!important; + height:auto!important; + padding-bottom:0; + overflow:visible!important + } + .navbar-collapse.in{ + overflow-y:visible + } + .navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{ + padding-left:0; + padding-right:0 + } +} +.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{ + max-height:340px +} +@media (max-device-width:480px) and (orientation:landscape){ + .navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{ + max-height:200px + } +} +.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{ + margin-right:-15px; + margin-left:-15px +} +@media (min-width:768px){ + .container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{ + margin-right:0; + margin-left:0 + } +} +.navbar-static-top{ + z-index:1000; + border-width:0 0 1px +} +@media (min-width:768px){ + .navbar-static-top{ + border-radius:0 + } +} +.navbar-fixed-bottom,.navbar-fixed-top{ + right:0; + left:0; + z-index:1030 +} +@media (min-width:768px){ + .navbar-fixed-bottom,.navbar-fixed-top{ + border-radius:0 + } +} +.navbar-fixed-top{ + top:0; + border-width:0 0 1px +} +.navbar-fixed-bottom{ + bottom:0; + margin-bottom:0; + border-width:1px 0 0 +} +.navbar-brand{ + float:left; + padding:15px; + font-size:18px; + line-height:20px; + height:50px +} +.navbar-brand:focus,.navbar-brand:hover{ + text-decoration:none +} +.navbar-brand>img{ + display:block +} +@media (min-width:768px){ + .navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{ + margin-left:-15px + } +} +.navbar-toggle{ + position:relative; + float:right; + margin-right:15px; + padding:9px 10px; + margin-top:8px; + margin-bottom:8px; + background-color:transparent; + background-image:none; + border:1px solid transparent; + border-radius:0px +} +.navbar-toggle:focus{ + outline:0 +} +.navbar-toggle .icon-bar{ + display:block; + width:22px; + height:2px; + border-radius:0px +} +.navbar-toggle .icon-bar+.icon-bar{ + margin-top:4px +} +@media (min-width:768px){ + .navbar-toggle{ + display:none + } +} +.navbar-nav{ + margin:7.5px -15px +} +.navbar-nav>li>a{ + padding-top:10px; + padding-bottom:10px; + line-height:20px +} +@media (max-width:767px){ + .navbar-nav .open .dropdown-menu{ + position:static; + float:none; + width:auto; + margin-top:0; + background-color:transparent; + border:0; + -webkit-box-shadow:none; + box-shadow:none + } + .navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{ + padding:5px 15px 5px 25px + } + .navbar-nav .open .dropdown-menu>li>a{ + line-height:20px + } + .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{ + background-image:none + } +} +@media (min-width:768px){ + .navbar-nav{ + float:left; + margin:0 + } + .navbar-nav>li{ + float:left + } + .navbar-nav>li>a{ + padding-top:15px; + padding-bottom:15px + } +} +.navbar-form{ + margin:6px -15px; + padding:10px 15px; + border-top:1px solid transparent; + border-bottom:1px solid transparent; + -webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1); + box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1) +} +@media (min-width:768px){ + .navbar-form .form-group{ + display:inline-block; + margin-bottom:0; + vertical-align:middle + } + .navbar-form .form-control{ + display:inline-block; + width:auto; + vertical-align:middle + } + .navbar-form .form-control-static{ + display:inline-block + } + .navbar-form .input-group{ + display:inline-table; + vertical-align:middle + } + .navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{ + width:auto + } + .navbar-form .input-group>.form-control{ + width:100% + } + .navbar-form .control-label{ + margin-bottom:0; + vertical-align:middle + } + .navbar-form .checkbox,.navbar-form .radio{ + display:inline-block; + margin-top:0; + margin-bottom:0; + vertical-align:middle + } + .navbar-form .checkbox label,.navbar-form .radio label{ + padding-left:0 + } + .navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{ + position:relative; + margin-left:0 + } + .navbar-form .has-feedback .form-control-feedback{ + top:0 + } +} +@media (max-width:767px){ + .navbar-form .form-group{ + margin-bottom:5px + } + .navbar-form .form-group:last-child{ + margin-bottom:0 + } +} +@media (min-width:768px){ + .navbar-form{ + width:auto; + border:0; + margin-left:0; + margin-right:0; + padding-top:0; + padding-bottom:0; + -webkit-box-shadow:none; + box-shadow:none + } +} +.navbar-nav>li>.dropdown-menu{ + margin-top:0; + border-top-right-radius:0; + border-top-left-radius:0 +} +.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{ + border-radius:0 +} +.navbar-btn{ + margin-top:6px; + margin-bottom:6px +} +.navbar-btn.btn-sm{ + margin-top:10px; + margin-bottom:10px +} +.navbar-btn.btn-xs{ + margin-top:14px; + margin-bottom:14px +} +.navbar-text{ + margin-top:15px; + margin-bottom:15px +} +@media (min-width:768px){ + .navbar-text{ + float:left; + margin-left:15px; + margin-right:15px + } +} +@media (min-width:768px){ + .navbar-left{ + float:left!important + } + .navbar-right{ + float:right!important; + margin-right:-15px + } + .navbar-right~.navbar-right{ + margin-right:0 + } +} +.navbar-default{ + background-color:#060606; + border-color:#282828 +} +.navbar-default .navbar-brand{ + color:#fff +} +.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{ + color:#fff; + background-color:transparent +} +.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{ + color:#888 +} +.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{ + color:#fff; + background-color:transparent +} +.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{ + color:#888; + background-color:transparent +} +.navbar-default .navbar-toggle{ + border-color:#282828 +} +.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{ + background-color:#282828 +} +.navbar-default .navbar-toggle .icon-bar{ + background-color:#ccc +} +.navbar-default .navbar-collapse,.navbar-default .navbar-form{ + border-color:#282828 +} +.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{ + background-color:transparent; + color:#fff +} +@media (max-width:767px){ + .navbar-default .navbar-nav .open .dropdown-menu>li>a{ + color:#888 + } + .navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{ + color:#fff; + background-color:transparent + } + .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{ + color:#888; + background-color:transparent + } +} +.navbar-default .navbar-link{ + color:#888 +} +.navbar-default .navbar-link:hover{ + color:#fff +} +.navbar-default .btn-link{ + color:#888 +} +.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{ + color:#fff +} +.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{ + color:#888 +} +.navbar-inverse{ + background-color:#0000002e; + border-color:#080808; +} +.navbar-inverse .navbar-brand{ + color:#fff +} +.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{ + color:#fff; + background-color:transparent +} +.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{ + color:#888 +} +.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{ + color:#fff; + background-color:transparent +} +.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{ + color:#aaa; + background-color:transparent +} +.navbar-inverse .navbar-toggle{ + border-color:#333 +} +.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{ + background-color:#333 +} +.navbar-inverse .navbar-toggle .icon-bar{ + background-color:#fff +} +.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{ + border-color:#101010 +} +.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{ + background-color:transparent; + color:#fff +} +@media (max-width:767px){ + .navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{ + border-color:#080808 + } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider{ + background-color:#080808 + } + .navbar-inverse .navbar-nav .open .dropdown-menu>li>a{ + color:#888 + } + .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{ + color:#fff; + background-color:transparent + } + .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{ + color:#aaa; + background-color:transparent + } +} +.navbar-inverse .navbar-link{ + color:#888 +} +.navbar-inverse .navbar-link:hover{ + color:#fff +} +.navbar-inverse .btn-link{ + color:#888 +} +.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{ + color:#fff +} +.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{ + color:#aaa +} +.breadcrumb{ + padding:8px 15px; + margin-bottom:20px; + list-style:none; + background-color:#222; + border-radius:0px +} +.breadcrumb>li{ + display:inline-block +} +.breadcrumb>li+li:before{ + content:"/\00a0"; + padding:0 5px; + color:#fff +} +.breadcrumb>.active{ + color:#888 +} +.pagination{ + display:inline-block; + padding-left:0; + margin:20px 0; + border-radius:0px +} +.pagination>li{ + display:inline +} +.pagination>li>a,.pagination>li>span{ + position:relative; + float:left; + padding:8px 12px; + line-height:1.42857143; + text-decoration:none; + color:#fff; + background-color:#222; + border:1px solid #282828; + margin-left:-1px +} +.pagination>li:first-child>a,.pagination>li:first-child>span{ + margin-left:0; + border-bottom-left-radius:4px; + border-top-left-radius:4px +} +.pagination>li:last-child>a,.pagination>li:last-child>span{ + border-bottom-right-radius:4px; + border-top-right-radius:4px +} +.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{ + color:#fff; + background-color:#339933; + border-color:transparent +} +.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{ + z-index:2; + color:#fff; + background-color:#339933; + border-color:transparent; + cursor:default +} +.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{ + color:#888; + background-color:#222; + border-color:#282828; + cursor:not-allowed +} +.pagination-lg>li>a,.pagination-lg>li>span{ + padding:14px 16px; + font-size:18px +} +.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{ + border-bottom-left-radius:6px; + border-top-left-radius:6px +} +.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{ + border-bottom-right-radius:6px; + border-top-right-radius:6px +} +.pagination-sm>li>a,.pagination-sm>li>span{ + padding:5px 10px; + font-size:12px +} +.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{ + border-bottom-left-radius:3px; + border-top-left-radius:3px +} +.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{ + border-bottom-right-radius:3px; + border-top-right-radius:3px +} +.pager{ + padding-left:0; + margin:20px 0; + list-style:none; + text-align:center +} +.pager li{ + display:inline +} +.pager li>a,.pager li>span{ + display:inline-block; + padding:5px 14px; + background-color:#222; + border:1px solid #282828; + border-radius:0px +} +.pager li>a:focus,.pager li>a:hover{ + text-decoration:none; + background-color:#339933 +} +.pager .next>a,.pager .next>span{ + float:right +} +.pager .previous>a,.pager .previous>span{ + float:left +} +.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{ + color:#888; + background-color:#222; + cursor:not-allowed +} +.label{ + display:inline; + padding:.2em .6em .3em; + font-size:75%; + font-weight:700; + line-height:1; + color:#fff; + text-align:center; + white-space:nowrap; + vertical-align:baseline; + border-radius:0; +} +a.label:focus,a.label:hover{ + color:#fff; + text-decoration:none; + cursor:pointer +} +.label:empty{ + display:none +} +.btn .label{ + position:relative; + top:-1px +} +.label-default{ + background-color:#424242 +} +.label-default[href]:focus,.label-default[href]:hover{ + background-color:#282828 +} +.label-primary{ + background-color:#339933 +} +.label-primary[href]:focus,.label-primary[href]:hover{ + background-color:#2180ac +} +.label-success{ + background-color:#77b300 +} +.label-success[href]:focus,.label-success[href]:hover{ + background-color:#558000 +} +.label-info{ + background-color:#93c +} +.label-info[href]:focus,.label-info[href]:hover{ + background-color:#7a29a3 +} +.label-warning{ + background-color:#f80 +} +.label-warning[href]:focus,.label-warning[href]:hover{ + background-color:#cc6d00 +} +.label-danger{ + background-color:#c00 +} +.label-danger[href]:focus,.label-danger[href]:hover{ + background-color:#900 +} +.badge{ + display:inline-block; + min-width:10px; + padding:3px 7px; + font-size:12px; + font-weight:700; + color:#fff; + line-height:1; + vertical-align:baseline; + white-space:nowrap; + text-align:center; + background-color:#339933; + border-radius:0px +} +.badge:empty{ + display:none +} +.btn .badge{ + position:relative; + top:-1px +} +.btn-xs .badge{ + top:0; + padding:1px 5px +} +a.badge:focus,a.badge:hover{ + color:#fff; + text-decoration:none; + cursor:pointer +} +.list-group-item.active>.badge,.nav-pills>.active>a>.badge{ + color:#339933; + background-color:#fff +} +.list-group-item>.badge{ + float:right +} +.list-group-item>.badge+.badge{ + margin-right:5px +} +.nav-pills>li>a>.badge{ + margin-left:3px +} +.jumbotron{ + padding:30px 15px; + margin-bottom:30px; + color:inherit; + background-color:#151515 +} +.jumbotron .h1,.jumbotron h1{ + color:inherit +} +.jumbotron p{ + margin-bottom:15px; + font-size:21px; + font-weight:200 +} +.jumbotron>hr{ + border-top-color:#000 +} +.container .jumbotron,.container-fluid .jumbotron{ + border-radius:0px +} +.jumbotron .container{ + max-width:100% +} +@media screen and (min-width:768px){ + .jumbotron{ + padding:48px 0 + } + .container .jumbotron,.container-fluid .jumbotron{ + padding-left:60px; + padding-right:60px + } + .jumbotron .h1,.jumbotron h1{ + font-size:63px + } +} +.thumbnail{ + display:block; + padding:4px; + margin-bottom:20px; + line-height:1.42857143; + background-color:#282828; + border:1px solid #282828; + border-radius:0px; + -webkit-transition:border .2s ease-in-out; + -o-transition:border .2s ease-in-out; + transition:border .2s ease-in-out +} +.thumbnail a>img,.thumbnail>img{ + margin-left:auto; + margin-right:auto +} +.thumbnail .caption{ + padding:9px; + color:#888 +} +.alert{ + padding:15px; + margin-bottom:20px; + border:1px solid transparent; + border-radius:0px +} +.alert h4{ + margin-top:0; + color:inherit +} +.alert .alert-link{ + font-weight:700 +} +.alert>p,.alert>ul{ + margin-bottom:0 +} +.alert>p+p{ + margin-top:5px +} +.alert-dismissable,.alert-dismissible{ + padding-right:35px +} +.alert-dismissable .close,.alert-dismissible .close{ + position:relative; + top:-2px; + right:-21px; + color:inherit +} +.alert-success{ + background-color:#77b300; + border-color:#809a00; + color:#fff +} +.alert-success hr{ + border-top-color:#6a8000 +} +.alert-success .alert-link{ + color:#e6e6e6 +} +.alert-info{ + background-color:#93c; + border-color:#6e2caf; + color:#fff +} +.alert-info hr{ + border-top-color:#61279b +} +.alert-info .alert-link{ + color:#e6e6e6 +} +.alert-warning{ + background-color:#f80; + border-color:#f05800; + color:#fff +} +.alert-warning hr{ + border-top-color:#d64f00 +} +.alert-warning .alert-link{ + color:#e6e6e6 +} +.alert-danger{ + background-color:#c00; + border-color:#bd001f; + color:#fff +} +.alert-danger hr{ + border-top-color:#a3001b +} +.alert-danger .alert-link{ + color:#e6e6e6 +} +@-webkit-keyframes progress-bar-stripes{ + from{ + background-position:40px 0 + } + to{ + background-position:0 0 + } +} +@-o-keyframes progress-bar-stripes{ + from{ + background-position:40px 0 + } + to{ + background-position:0 0 + } +} +@keyframes progress-bar-stripes{ + from{ + background-position:40px 0 + } + to{ + background-position:0 0 + } +} +.progress{ + overflow:hidden; + height:20px; + margin-bottom:20px; + background-color:#222; + border-radius:0px; + -webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1); + box-shadow:inset 0 1px 2px rgba(0,0,0,.1) +} +.progress-bar{ + float:left; + width:0; + height:100%; + font-size:12px; + line-height:20px; + color:#fff; + text-align:center; + background-color:#339933; + -webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15); + box-shadow:inset 0 -1px 0 rgba(0,0,0,.15); + -webkit-transition:width .6s ease; + -o-transition:width .6s ease; + transition:width .6s ease +} +.progress-bar-striped,.progress-striped .progress-bar{ + background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + -webkit-background-size:40px 40px; + background-size:40px 40px +} +.progress-bar.active,.progress.active .progress-bar{ + -webkit-animation:progress-bar-stripes 2s linear infinite; + -o-animation:progress-bar-stripes 2s linear infinite; + animation:progress-bar-stripes 2s linear infinite +} +.progress-bar-success{ + background-color:#77b300 +} +.progress-striped .progress-bar-success{ + background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} +.progress-bar-info{ + background-color:#93c +} +.progress-striped .progress-bar-info{ + background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} +.progress-bar-warning{ + background-color:#f80 +} +.progress-striped .progress-bar-warning{ + background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} +.progress-bar-danger{ + background-color:#c00 +} +.progress-striped .progress-bar-danger{ + background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); + background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent) +} +.media{ + margin-top:15px +} +.media:first-child{ + margin-top:0 +} +.media-right,.media>.pull-right{ + padding-left:10px +} +.media-left,.media>.pull-left{ + padding-right:10px +} +.media-body,.media-left,.media-right{ + display:table-cell; + vertical-align:top +} +.media-middle{ + vertical-align:middle +} +.media-bottom{ + vertical-align:bottom +} +.media-heading{ + margin-top:0; + margin-bottom:5px +} +.media-list{ + padding-left:0; + list-style:none +} +.list-group{ + margin-bottom:20px; + padding-left:0 +} +.list-group-item{ + position:relative; + display:block; + padding:10px 15px; + margin-bottom:-1px; + background-color:#222; + border:1px solid #282828 +} +.list-group-item:first-child{ + border-top-right-radius:4px; + border-top-left-radius:4px +} +.list-group-item:last-child{ + margin-bottom:0; + border-bottom-right-radius:4px; + border-bottom-left-radius:4px +} +a.list-group-item{ + color:#888 +} +a.list-group-item .list-group-item-heading{ + color:#fff +} +a.list-group-item:focus,a.list-group-item:hover{ + text-decoration:none; + color:#888; + background-color:#484848 +} +.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{ + background-color:#adafae; + color:#888; + cursor:not-allowed +} +.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{ + color:inherit +} +.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{ + color:#888 +} +.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{ + z-index:2; + color:#fff; + background-color:#339933; + border-color:#339933 +} +.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{ + color:inherit +} +.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{ + color:#d5ecf7 +} +.list-group-item-success{ + color:#fff; + background-color:#77b300 +} +a.list-group-item-success{ + color:#fff +} +a.list-group-item-success .list-group-item-heading{ + color:inherit +} +a.list-group-item-success:focus,a.list-group-item-success:hover{ + color:#fff; + background-color:#669a00 +} +a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{ + color:#fff; + border-color:#fff +} +.list-group-item-info{ + color:#fff; + background-color:#93c +} +a.list-group-item-info{ + color:#fff +} +a.list-group-item-info .list-group-item-heading{ + color:inherit +} +a.list-group-item-info:focus,a.list-group-item-info:hover{ + color:#fff; + background-color:#8a2eb8 +} +a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{ + color:#fff; + background-color:#fff; + border-color:#fff +} +.list-group-item-warning{ + color:#fff; + background-color:#f80 +} +a.list-group-item-warning{ + color:#fff +} +a.list-group-item-warning .list-group-item-heading{ + color:inherit +} +a.list-group-item-warning:focus,a.list-group-item-warning:hover{ + color:#fff; + background-color:#e67a00 +} +a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{ + color:#fff; + border-color:#fff +} +.list-group-item-danger{ + color:#fff; + background-color:#c00 +} +a.list-group-item-danger{ + color:#fff +} +a.list-group-item-danger .list-group-item-heading{ + color:inherit +} +a.list-group-item-danger:focus,a.list-group-item-danger:hover{ + color:#fff; + background-color:#b30000 +} +a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{ + color:#fff; + border-color:#fff +} +.list-group-item-heading{ + margin-top:0; + margin-bottom:5px +} +.list-group-item-text{ + margin-bottom:0; + line-height:1.3 +} +.panel{ + margin-bottom:20px; + background-color:#222; + border:1px solid transparent; + border-radius:0px; + -webkit-box-shadow:0 1px 1px rgba(0,0,0,.05); + box-shadow:0 1px 1px rgba(0,0,0,.05) +} +.panel-body{ + padding:15px +} +.panel-heading{ + padding:10px 15px; + border-bottom:1px solid transparent; + border-top-right-radius:3px; + border-top-left-radius:3px +} +.panel-heading>.dropdown .dropdown-toggle{ + color:inherit +} +.panel-title{ + margin-top:0; + margin-bottom:0; + font-size:16px; + color:inherit +} +.panel-title>a{ + color:inherit +} +.panel-footer{ + padding:10px 15px; + background-color:#3c3c3c; + border-top:1px solid #282828; + border-bottom-right-radius:3px; + border-bottom-left-radius:3px +} +.panel>.list-group,.panel>.panel-collapse>.list-group{ + margin-bottom:0 +} +.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{ + border-width:1px 0; + border-radius:0 +} +.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{ + border-top:0; + border-top-right-radius:3px; + border-top-left-radius:3px +} +.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{ + border-bottom:0; + border-bottom-right-radius:3px; + border-bottom-left-radius:3px +} +.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{ + border-top-width:0 +} +.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{ + margin-bottom:0 +} +.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{ + padding-left:15px; + padding-right:15px +} +.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{ + border-top-right-radius:3px; + border-top-left-radius:3px +} +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{ + border-top-left-radius:3px; + border-top-right-radius:3px +} +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{ + border-top-left-radius:3px +} +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{ + border-top-right-radius:3px +} +.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{ + border-bottom-right-radius:3px; + border-bottom-left-radius:3px +} +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{ + border-bottom-left-radius:3px; + border-bottom-right-radius:3px +} +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{ + border-bottom-left-radius:3px +} +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{ + border-bottom-right-radius:3px +} +.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{ + border-top:1px solid #282828 +} +.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{ + border-top:0 +} +.panel>.table-bordered,.panel>.table-responsive>.table-bordered{ + border:0 +} +.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{ + border-left:0 +} +.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{ + border-right:0 +} +.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{ + border-bottom:0 +} +.panel>.table-responsive{ + border:0; + margin-bottom:0 +} +.panel-group{ + margin-bottom:20px +} +.panel-group .panel{ + margin-bottom:0; + border-radius:0px +} +.panel-group .panel+.panel{ + margin-top:5px +} +.panel-group .panel-heading{ + border-bottom:0 +} +.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{ + border-top:1px solid #282828 +} +.panel-group .panel-footer{ + border-top:0 +} +.panel-group .panel-footer+.panel-collapse .panel-body{ + border-bottom:1px solid #282828 +} +.panel-default{ + border-color:#282828 +} +.panel-default>.panel-heading{ + color:#888; + background-color:#3c3c3c; + border-color:#282828 +} +.panel-default>.panel-heading+.panel-collapse>.panel-body{ + border-top-color:#282828 +} +.panel-default>.panel-heading .badge{ + color:#3c3c3c; + background-color:#888 +} +.panel-default>.panel-footer+.panel-collapse>.panel-body{ + border-bottom-color:#282828 +} +.panel-primary{ + border-color:#339933 +} +.panel-primary>.panel-heading{ + color:#fff; + background-color:#339933; + border-color:#339933 +} +.panel-primary>.panel-heading+.panel-collapse>.panel-body{ + border-top-color:#339933 +} +.panel-primary>.panel-heading .badge{ + color:#339933; + background-color:#fff +} +.panel-primary>.panel-footer+.panel-collapse>.panel-body{ + border-bottom-color:#339933 +} +.panel-success{ + border-color:#809a00 +} +.panel-success>.panel-heading{ + color:#fff; + background-color:#77b300; + border-color:#809a00 +} +.panel-success>.panel-heading+.panel-collapse>.panel-body{ + border-top-color:#809a00 +} +.panel-success>.panel-heading .badge{ + color:#77b300; + background-color:#fff +} +.panel-success>.panel-footer+.panel-collapse>.panel-body{ + border-bottom-color:#809a00 +} +.panel-info{ + border-color:#6e2caf +} +.panel-info>.panel-heading{ + color:#fff; + background-color:#93c; + border-color:#6e2caf +} +.panel-info>.panel-heading+.panel-collapse>.panel-body{ + border-top-color:#6e2caf +} +.panel-info>.panel-heading .badge{ + color:#93c; + background-color:#fff +} +.panel-info>.panel-footer+.panel-collapse>.panel-body{ + border-bottom-color:#6e2caf +} +.panel-warning{ + border-color:#f05800 +} +.panel-warning>.panel-heading{ + color:#fff; + background-color:#f80; + border-color:#f05800 +} +.panel-warning>.panel-heading+.panel-collapse>.panel-body{ + border-top-color:#f05800 +} +.panel-warning>.panel-heading .badge{ + color:#f80; + background-color:#fff +} +.panel-warning>.panel-footer+.panel-collapse>.panel-body{ + border-bottom-color:#f05800 +} +.panel-danger{ + border-color:#bd001f +} +.panel-danger>.panel-heading{ + color:#fff; + background-color:#c00; + border-color:#bd001f +} +.panel-danger>.panel-heading+.panel-collapse>.panel-body{ + border-top-color:#bd001f +} +.panel-danger>.panel-heading .badge{ + color:#c00; + background-color:#fff +} +.panel-danger>.panel-footer+.panel-collapse>.panel-body{ + border-bottom-color:#bd001f +} +.embed-responsive{ + position:relative; + display:block; + height:0; + padding:0; + overflow:hidden; + border: 1px solid #949494; +} +.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{ + position:absolute; + top:0; + left:0; + bottom:0; + height:100%; + width:100%; + border:0 +} +.embed-responsive.embed-responsive-16by9{ + padding-bottom:56.25% +} +.embed-responsive.embed-responsive-4by3{ + padding-bottom:75% +} +.well{ + min-height:20px; + padding:19px; + margin-bottom:0px; + background-color:#111111C0; + border:1px solid #030303; + border-radius:0px; + -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05); + box-shadow:inset 0 1px 1px rgba(0,0,0,.05) +} +.well blockquote{ + border-color:#ddd; + border-color:rgba(0,0,0,.15) +} +.well-lg{ + padding:24px; + border-radius:0px +} +.well-sm{ + padding:9px; + border-radius:0px +} +.close{ + float:right; + font-size:21px; + font-weight:700; + line-height:1; + text-shadow:0 1px 0 #fff; + filter:alpha(opacity=20) +} +.close:focus,.close:hover{ + text-decoration:none; + cursor:pointer; + filter:alpha(opacity=50) +} +button.close{ + padding:0; + cursor:pointer; + background:0 0; + border:0; + -webkit-appearance:none +} +.modal-open{ + overflow:hidden +} +.modal{ + display:none; + overflow:hidden; + position:fixed; + top:0; + right:0; + bottom:0; + left:0; + z-index:1040; + -webkit-overflow-scrolling:touch; + outline:0 +} +.modal.fade .modal-dialog{ + -webkit-transform:translate(0,-25%); + -ms-transform:translate(0,-25%); + -o-transform:translate(0,-25%); + transform:translate(0,-25%); + -webkit-transition:-webkit-transform .3s ease-out; + -o-transition:-o-transform .3s ease-out; + transition:transform .3s ease-out +} +.modal.in .modal-dialog{ + -webkit-transform:translate(0,0); + -ms-transform:translate(0,0); + -o-transform:translate(0,0); + transform:translate(0,0) +} +.modal-open .modal{ + overflow-x:hidden; + overflow-y:auto +} +.modal-dialog{ + position:relative; + width:auto; + margin:10px +} +.modal-content{ + position:relative; + background-color:#202020; + border:1px solid #999; + border:1px solid rgba(0,0,0,.2); + border-radius:0px; + -webkit-box-shadow:0 3px 9px rgba(0,0,0,.5); + box-shadow:0 3px 9px rgba(0,0,0,.5); + -webkit-background-clip:padding-box; + background-clip:padding-box; + outline:0 +} +.modal-backdrop{ + position:absolute; + top:0; + right:0; + left:0; + background-color:#000 +} +.modal-backdrop.fade{ + opacity:0; + filter:alpha(opacity=0) +} +.modal-backdrop.in{ + opacity:.5; + filter:alpha(opacity=50) +} +.modal-header{ + padding:15px; + border-bottom:1px solid #282828; + min-height:16.43px +} +.modal-header .close{ + margin-top:-2px +} +.modal-title{ + margin:0; + line-height:1.42857143 +} +.modal-body{ + position:relative; + padding:20px +} +.modal-footer{ + padding:20px; + text-align:right; + border-top:1px solid #282828 +} +.modal-footer .btn+.btn{ + margin-left:5px; + margin-bottom:0 +} +.modal-footer .btn-group .btn+.btn{ + margin-left:-1px +} +.modal-footer .btn-block+.btn-block{ + margin-left:0 +} +.modal-scrollbar-measure{ + position:absolute; + top:-9999px; + width:50px; + height:50px; + overflow:scroll +} +@media (min-width:768px){ + .modal-dialog{ + width:600px; + margin:30px auto + } + .modal-content{ + -webkit-box-shadow:0 5px 15px rgba(0,0,0,.5); + box-shadow:0 5px 15px rgba(0,0,0,.5) + } + .modal-sm{ + width:300px + } +} +@media (min-width:992px){ + .modal-lg{ + width:900px + } +} +.tooltip{ + position:absolute; + z-index:1070; + display:block; + visibility:visible; + font-family:"Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif; + font-size:12px; + font-weight:400; + line-height:1.4; + opacity:0; + filter:alpha(opacity=0) +} +.tooltip.in{ + opacity:.9; + filter:alpha(opacity=90) +} +.tooltip.top{ + margin-top:-3px; + padding:5px 0 +} +.tooltip.right{ + margin-left:3px; + padding:0 5px +} +.tooltip.bottom{ + margin-top:3px; + padding:5px 0 +} +.tooltip.left{ + margin-left:-3px; + padding:0 5px +} +.tooltip-inner{ + max-width:200px; + padding:3px 8px; + color:#fff; + text-align:center; + text-decoration:none; + background-color:rgba(0,0,0,.9); + border-radius:0px +} +.tooltip-arrow{ + position:absolute; + width:0; + height:0; + border-color:transparent; + border-style:solid +} +.tooltip.top .tooltip-arrow{ + bottom:0; + left:50%; + margin-left:-5px; + border-width:5px 5px 0; + border-top-color:rgba(0,0,0,.9) +} +.tooltip.top-left .tooltip-arrow{ + bottom:0; + right:5px; + margin-bottom:-5px; + border-width:5px 5px 0; + border-top-color:rgba(0,0,0,.9) +} +.tooltip.top-right .tooltip-arrow{ + bottom:0; + left:5px; + margin-bottom:-5px; + border-width:5px 5px 0; + border-top-color:rgba(0,0,0,.9) +} +.tooltip.right .tooltip-arrow{ + top:50%; + left:0; + margin-top:-5px; + border-width:5px 5px 5px 0; + border-right-color:rgba(0,0,0,.9) +} +.tooltip.left .tooltip-arrow{ + top:50%; + right:0; + margin-top:-5px; + border-width:5px 0 5px 5px; + border-left-color:rgba(0,0,0,.9) +} +.tooltip.bottom .tooltip-arrow{ + top:0; + left:50%; + margin-left:-5px; + border-width:0 5px 5px; + border-bottom-color:rgba(0,0,0,.9) +} +.tooltip.bottom-left .tooltip-arrow{ + top:0; + right:5px; + margin-top:-5px; + border-width:0 5px 5px; + border-bottom-color:rgba(0,0,0,.9) +} +.tooltip.bottom-right .tooltip-arrow{ + top:0; + left:5px; + margin-top:-5px; + border-width:0 5px 5px; + border-bottom-color:rgba(0,0,0,.9) +} +.popover{ + position:absolute; + top:0; + left:0; + z-index:1060; + display:none; + max-width:276px; + padding:1px; + font-family:"Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif; + font-size:14px; + font-weight:400; + line-height:1.42857143; + text-align:left; + background-color:#202020; + -webkit-background-clip:padding-box; + background-clip:padding-box; + border:1px solid #999; + border:1px solid rgba(0,0,0,.2); + border-radius:0px; + -webkit-box-shadow:0 5px 10px rgba(0,0,0,.2); + box-shadow:0 5px 10px rgba(0,0,0,.2); + white-space:normal +} +.popover.top{ + margin-top:-10px +} +.popover.right{ + margin-left:10px +} +.popover.bottom{ + margin-top:10px +} +.popover.left{ + margin-left:-10px +} +.popover-title{ + margin:0; + padding:8px 14px; + font-size:14px; + background-color:#181818; + border-bottom:1px solid #0b0b0b; + border-radius:0px 0px 0 0 +} +.popover-content{ + padding:9px 14px +} +.popover>.arrow,.popover>.arrow:after{ + position:absolute; + display:block; + width:0; + height:0; + border-color:transparent; + border-style:solid +} +.popover>.arrow{ + border-width:11px +} +.popover>.arrow:after{ + border-width:10px; + content:"" +} +.popover.top>.arrow{ + left:50%; + margin-left:-11px; + border-bottom-width:0; + border-top-color:#666; + border-top-color:rgba(0,0,0,.25); + bottom:-11px +} +.popover.top>.arrow:after{ + content:" "; + bottom:1px; + margin-left:-10px; + border-bottom-width:0; + border-top-color:#202020 +} +.popover.right>.arrow{ + top:50%; + left:-11px; + margin-top:-11px; + border-left-width:0; + border-right-color:#666; + border-right-color:rgba(0,0,0,.25) +} +.popover.right>.arrow:after{ + content:" "; + left:1px; + bottom:-10px; + border-left-width:0; + border-right-color:#202020 +} +.popover.bottom>.arrow{ + left:50%; + margin-left:-11px; + border-top-width:0; + border-bottom-color:#666; + border-bottom-color:rgba(0,0,0,.25); + top:-11px +} +.popover.bottom>.arrow:after{ + content:" "; + top:1px; + margin-left:-10px; + border-top-width:0; + border-bottom-color:#202020 +} +.popover.left>.arrow{ + top:50%; + right:-11px; + margin-top:-11px; + border-right-width:0; + border-left-color:#666; + border-left-color:rgba(0,0,0,.25) +} +.popover.left>.arrow:after{ + content:" "; + right:1px; + border-right-width:0; + border-left-color:#202020; + bottom:-10px +} +.carousel{ + position:relative +} +.carousel-inner{ + position:relative; + overflow:hidden; + width:100% +} +.carousel-inner>.item{ + display:none; + position:relative; + -webkit-transition:.6s ease-in-out left; + -o-transition:.6s ease-in-out left; + transition:.6s ease-in-out left +} +.carousel-inner>.item>a>img,.carousel-inner>.item>img{ + line-height:1 +} +@media all and (transform-3d),(-webkit-transform-3d){ + .carousel-inner>.item{ + -webkit-transition:-webkit-transform .6s ease-in-out; + -o-transition:-o-transform .6s ease-in-out; + transition:transform .6s ease-in-out; + -webkit-backface-visibility:hidden; + backface-visibility:hidden; + -webkit-perspective:1000; + perspective:1000 + } + .carousel-inner>.item.active.right,.carousel-inner>.item.next{ + -webkit-transform:translate3d(100%,0,0); + transform:translate3d(100%,0,0); + left:0 + } + .carousel-inner>.item.active.left,.carousel-inner>.item.prev{ + -webkit-transform:translate3d(-100%,0,0); + transform:translate3d(-100%,0,0); + left:0 + } + .carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{ + -webkit-transform:translate3d(0,0,0); + transform:translate3d(0,0,0); + left:0 + } +} +.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{ + display:block +} +.carousel-inner>.active{ + left:0 +} +.carousel-inner>.next,.carousel-inner>.prev{ + position:absolute; + top:0; + width:100% +} +.carousel-inner>.next{ + left:100% +} +.carousel-inner>.prev{ + left:-100% +} +.carousel-inner>.next.left,.carousel-inner>.prev.right{ + left:0 +} +.carousel-inner>.active.left{ + left:-100% +} +.carousel-inner>.active.right{ + left:100% +} +.carousel-control{ + position:absolute; + top:0; + left:0; + bottom:0; + width:15%; + opacity:.5; + filter:alpha(opacity=50); + font-size:20px; + color:#fff; + text-align:center; + text-shadow:0 1px 2px rgba(0,0,0,.6) +} +.carousel-control.left{ + background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%); + background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%); + background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001))); + background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%); + background-repeat:repeat-x; + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1) +} +.carousel-control.right{ + left:auto; + right:0; + background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%); + background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%); + background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5))); + background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%); + background-repeat:repeat-x; + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1) +} +.carousel-control:focus,.carousel-control:hover{ + outline:0; + color:#fff; + text-decoration:none; + opacity:.9; + filter:alpha(opacity=90) +} +.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{ + position:absolute; + top:50%; + z-index:5; + display:inline-block +} +.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{ + left:50%; + margin-left:-10px +} +.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{ + right:50%; + margin-right:-10px +} +.carousel-control .icon-next,.carousel-control .icon-prev{ + width:20px; + height:20px; + margin-top:-10px; + font-family:serif +} +.carousel-control .icon-prev:before{ + content:'\2039' +} +.carousel-control .icon-next:before{ + content:'\203a' +} +.carousel-indicators{ + position:absolute; + bottom:10px; + left:50%; + z-index:15; + width:60%; + margin-left:-30%; + padding-left:0; + list-style:none; + text-align:center +} +.carousel-indicators li{ + display:inline-block; + width:10px; + height:10px; + margin:1px; + text-indent:-999px; + border:1px solid #fff; + border-radius:0px; + cursor:pointer; + background-color:transparent +} +.carousel-indicators .active{ + margin:0; + width:12px; + height:12px; + background-color:#fff +} +.carousel-caption{ + position:absolute; + left:15%; + right:15%; + bottom:20px; + z-index:10; + padding-top:20px; + padding-bottom:20px; + color:#fff; + text-align:center; + text-shadow:0 1px 2px rgba(0,0,0,.6) +} +.carousel-caption .btn{ + text-shadow:none +} +@media screen and (min-width:768px){ + .carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{ + width:30px; + height:30px; + margin-top:-15px; + font-size:30px + } + .carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{ + margin-left:-15px + } + .carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{ + margin-right:-15px + } + .carousel-caption{ + left:20%; + right:20%; + padding-bottom:30px + } + .carousel-indicators{ + bottom:20px + } +} +.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{ + content:" "; + display:table +} +.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{ + clear:both +} +.center-block{ + display:block; + margin-left:auto; + margin-right:auto +} +.pull-right{ + float:right!important +} +.pull-left{ + float:left!important +} +.hide{ + display:none!important +} +.show{ + display:block!important +} +.invisible{ + visibility:hidden +} +.text-hide{ + font:0/0 a; + color:transparent; + text-shadow:none; + background-color:transparent; + border:0 +} +.hidden{ + display:none!important; + visibility:hidden!important +} +.affix{ + position:fixed +} +@-ms-viewport{ + width:device-width +} +.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-print,.visible-print-block,.visible-print-inline,.visible-print-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{ + display:none!important +} +@media (max-width:767px){ + .visible-xs{ + display:block!important + } + table.visible-xs{ + display:table + } + tr.visible-xs{ + display:table-row!important + } + td.visible-xs,th.visible-xs{ + display:table-cell!important + } +} +@media (max-width:767px){ + .visible-xs-block{ + display:block!important + } +} +@media (max-width:767px){ + .visible-xs-inline{ + display:inline!important + } +} +@media (max-width:767px){ + .visible-xs-inline-block{ + display:inline-block!important + } +} +@media (min-width:768px) and (max-width:991px){ + .visible-sm{ + display:block!important + } + table.visible-sm{ + display:table + } + tr.visible-sm{ + display:table-row!important + } + td.visible-sm,th.visible-sm{ + display:table-cell!important + } +} +@media (min-width:768px) and (max-width:991px){ + .visible-sm-block{ + display:block!important + } +} +@media (min-width:768px) and (max-width:991px){ + .visible-sm-inline{ + display:inline!important + } +} +@media (min-width:768px) and (max-width:991px){ + .visible-sm-inline-block{ + display:inline-block!important + } +} +@media (min-width:992px) and (max-width:1199px){ + .visible-md{ + display:block!important + } + table.visible-md{ + display:table + } + tr.visible-md{ + display:table-row!important + } + td.visible-md,th.visible-md{ + display:table-cell!important + } +} +@media (min-width:992px) and (max-width:1199px){ + .visible-md-block{ + display:block!important + } +} +@media (min-width:992px) and (max-width:1199px){ + .visible-md-inline{ + display:inline!important + } +} +@media (min-width:992px) and (max-width:1199px){ + .visible-md-inline-block{ + display:inline-block!important + } +} +@media (min-width:1200px){ + .visible-lg{ + display:block!important + } + table.visible-lg{ + display:table + } + tr.visible-lg{ + display:table-row!important + } + td.visible-lg,th.visible-lg{ + display:table-cell!important + } +} +@media (min-width:1200px){ + .visible-lg-block{ + display:block!important + } +} +@media (min-width:1200px){ + .visible-lg-inline{ + display:inline!important + } +} +@media (min-width:1200px){ + .visible-lg-inline-block{ + display:inline-block!important + } +} +@media (max-width:767px){ + .hidden-xs{ + display:none!important + } +} +@media (min-width:768px) and (max-width:991px){ + .hidden-sm{ + display:none!important + } +} +@media (min-width:992px) and (max-width:1199px){ + .hidden-md{ + display:none!important + } +} +@media (min-width:1200px){ + .hidden-lg{ + display:none!important + } +} +@media print{ + .visible-print{ + display:block!important + } + table.visible-print{ + display:table + } + tr.visible-print{ + display:table-row!important + } + td.visible-print,th.visible-print{ + display:table-cell!important + } +} +@media print{ + .visible-print-block{ + display:block!important + } +} +@media print{ + .visible-print-inline{ + display:inline!important + } +} +@media print{ + .visible-print-inline-block{ + display:inline-block!important + } +} +@media print{ + .hidden-print{ + display:none!important + } +} +.text-primary,.text-primary:hover{ + color:#339933 +} +.text-success,.text-success:hover{ + color:#77b300 +} +.text-danger,.text-danger:hover{ + color:#c00 +} +.text-warning,.text-warning:hover{ + color:#f80 +} +.text-info,.text-info:hover{ + color:#93c +} +.table,table{ + color:#fff +} +.table .dropdown-menu a,table .dropdown-menu a{ + text-decoration:none +} +.table .text-muted,table .text-muted{ + color:#888 +} +.table-responsive>.table{ + background-color:#181818 +} +.has-warning .control-label,.has-warning .form-control-feedback,.has-warning .help-block{ + color:#f80 +} +.has-warning .form-control,.has-warning .form-control:focus,.has-warning .input-group-addon{ + border-color:#f80 +} +.has-error .control-label,.has-error .form-control-feedback,.has-error .help-block{ + color:#c00 +} +.has-error .form-control,.has-error .form-control:focus,.has-error .input-group-addon{ + border-color:#c00 +} +.has-success .control-label,.has-success .form-control-feedback,.has-success .help-block{ + color:#77b300 +} +.has-success .form-control,.has-success .form-control:focus,.has-success .input-group-addon{ + border-color:#77b300 +} +legend{ + color:#fff +} +.input-group-addon{ + background-color:#424242 +} +.breadcrumb a,.nav-pills a,.nav-tabs a,.pager a{ + color:#fff +} +.alert .alert-link,.alert a{ + color:#fff; + text-decoration:underline +} +.alert .close{ + text-decoration:none +} +.close{ + color:#fff; + text-decoration:none; + opacity:.4 +} +.close:focus,.close:hover{ + color:#fff; + opacity:1 +} +a.list-group-item.active,a.list-group-item.active:focus,a.list-group-item.active:hover,a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{ + border-color:#282828 +} +a.list-group-item-success.active{ + background-color:#77b300 +} +a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{ + background-color:#669a00 +} +a.list-group-item-warning.active{ + background-color:#f80 +} +a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{ + background-color:#e67a00 +} +a.list-group-item-danger.active{ + background-color:#c00 +} +a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{ + background-color:#b30000 +} +.jumbotron h1,.jumbotron h2,.jumbotron h3,.jumbotron h4,.jumbotron h5,.jumbotron h6{ + color:#fff +} +/* CYTUBE EDIT */ + body { + background-color: #060206; + color: #c8c8c8; +} + +.userlist_siteadmin { + color: #000000 !important; + text-shadow: + -1px -1px 0 #CC0000, + 1px -1px 0 #CC0000, + -1px 1px 0 #CC0000, + 1px 1px 0 #CC0000; + font-size: 1em; +} + +.userlist_op { + color: #ffffff !important; + text-shadow: + -1px -1px 0 #339933, + 1px -1px 0 #339933, + -1px 1px 0 #339933, + 1px 1px 0 #339933; + font-size: 1em; +} +.userlist_owner { + color: #000000 !important; + text-shadow: + -1px -1px 0 #339933, + 1px -1px 0 #339933, + -1px 1px 0 #339933, + 1px 1px 0 #339933; + font-size: 1em; +} + .nick-highlight { + background-color: #262626; + color: #ffffff; +} + .server-whisper{ + color: #ffffff; +} + .nick-hover { + background-color: #222222; +} + .poll-notify { + color: #ff9900; +} + footer { + background-color: #0000004f !important; +} + input.form-control[type="text"], input.form-control[type="password"], input.form-control[type="email"], textarea.form-control { + background-color: #111111C0 !important; + color: #c8c8c8; +} + .profile-box, .user-dropdown, .emotelist-table td { + color: #c8c8c8; + background-color: #2d2d2d; +} + .chat-shadow { + color: #339933; +} + .drink { + border-color: #ff9900; +} + #drinkcount { + background-color: #000000; + color: #ffffff; +} + #plmeta { + border: 1px solid #949494; + border-radius: 0px; +} + #userlist, #messagebuffer { + border: 1px solid #949494; +} + #chatheader, #videowrap-header { + border: 1px solid #949494; + border-bottom-width: 0; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + .queue_entry { + border-color: #949494; + background-color: #060606; +} + .navbar-inverse .navbar-text-nofloat { + color: #888; +} + .queue_entry.queue_active { + background-color: #333333; +} + #newmessages-indicator-bghack { + background: rgb(32, 32, 32); + background: rgba(32, 32, 32, 0.75); +} + #newmessages-indicator { + color: #339933; +} + #chatheader, #userlist, #messagebuffer, #videowrap-header, .embed-responsive, #rightpane, #mainrow{ + background-color: #1111113D; +} + + .qe_sTime{ + float: right; + font-family: Monospace; +} + .aboutText{ + background-color: #111111C0; + padding: 10px; + border: 1px solid #949494; +} + #chatwrap, #videowrap{ + padding-right: 0px; + padding-left: 0px; + margin-bottom: 0px; +} + .navbar{ + margin-bottom: 0px; +} + #filei{ + background-color: #1e0d26; +} + +#userlist_color0{/*green0*/ + color: #7bc687; + text-shadow: none; +} + +#userlist_color1{/*red0*/ + color: #f2694d; + text-shadow: none; +} + +#userlist_color2{/*blue0*/ + color: #4d96f0; + text-shadow: none; +} + +#userlist_color3{/*tan0*/ + color: #f7f1d3; + text-shadow: none; +} + +#userlist_color4{/*pink0*/ + color: #ffaeae; + text-shadow: none; +} + +#userlist_color5{/*orange*/ + color: #fe9754; + text-shadow: none; +} + +#userlist_color6{/*violet*/ + color: #d1a7f6; + text-shadow: none; +} + +#botmsg{ + text-align: center; + color: #FFFFFF; + text-shadow: + -1px -1px 0 #339933, + 1px -1px 0 #339933, + -1px 1px 0 #339933, + 1px 1px 0 #339933; + font-size: 1.2em; +} + +#messagebuffer, #chatheader{ + border-left: 0px; +} + +#chatbar{ + border-bottom: 1px solid #949494; + border-right: 1px solid #949494; +} + +#emotelistbtn{ + border-right: 1px solid #949494; +} + +#chatsend{ + border-left: 1px solid #949494; +} diff --git a/www/cyp/fcyp.js b/www/cyp/fcyp.js deleted file mode 100644 index e7a3c3be..00000000 --- a/www/cyp/fcyp.js +++ /dev/null @@ -1,3678 +0,0 @@ -/* -The MIT License (MIT) - -Copyright (c) 2013-2014 Zimny Lech - -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 off -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. -*/ - -// DESCRIPTION: CyTube Plus - JavaScript and CSS library for CyTube channels enhancements -// CURRENT VERSION: 4.5 -// DATE OF MODIFICATION: 2014-08-29 -// PROJECT URL: https://github.com/zimny-lech/CyTube-Plus - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// INSTALLATION NOTES: - -// 0. Choose simple or custom installation (simple one has ready-to-use library with limited functionality). -// SIMPLE INSTALLATION: use 'https://dl.dropboxusercontent.com/s/2uks4pif8mx2qab/main-ready.js' as default URL -// go to -> 3. -// CUSTOM INSTALLATION: go to -> 1. - -// 1. Configure this library according to your wishes (see configuration sections below). -// 2. Save customized library to your file hosting (e.g. Dropbox) or to your own server. -// WARNING! You must be able to access .js file directly (browser's URL must contain .js extension, not .php etc.). -// WARNING FOR DROPBOX USERS! Always use 'dl.dropboxusercontent.com' URL instead of 'www.dropbox.com' URL. - -// 3. Enter your JS file location into 'External Javascript' field in 'Channel Settings' modal window. -// 4. Enter library CSS file location into 'External CSS' field in 'Channel Settings' modal window. -// NOTE: use default 'https://dl.dropboxusercontent.com/s/180y5d6mvlu8kd8/main.css' URL, -// or copy it to your own location. -// 5. Congratulations, your have just installed CyTube Plus! - -// Need detailed options explanations? Go to https://github.com/zimny-lech/CyTube-Plus/wiki/FAQ -// Problems? Something doesn't work? Go to https://github.com/zimny-lech/CyTube-Plus/wiki/Troubleshooting - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// CONFIGURE BELOW BEFORE INSTALLING IF YOU WANT TO CUSTOMIZE THIS LIBRARY - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- STARTING CONFIGURATION - USER INTERFACE (UI) ----- */ - -// CONFIGURATION NOTES: - -// In this section you can immediately enable and disable each option (set '1' to enable, '0' to disable) -// Every option marked as [&] requires additional configuration (see other sections below) -// WARNING! apostrophe sign (') in all text/html values must be prepend with "\" sign (e.g. "don\'t") - -// FILTERS INSTALLATION: open 'Channel Settings' modal window, go to 'Edit' -> 'Chat Filters', -// click 'Prepare fonts filters' button, and import - -// If you need more explanations, go to https://github.com/zimny-lech/CyTube-Plus/wiki/FAQ - -UI_DefaultSynchtube = 0; // default old Synchtube layout (player and playlist on the left) -UI_Favicon = 0; // [&] channel favicon -UI_MiniLogo = 0; // [&] small channel logo/avatar in the top navbar -UI_ChannelName =0; // [&] channel custom brand name -UI_HeaderDropMenu = 0; // [&] additional header dropdown menu -UI_RemoveLayoutMenu = 0; // removing 'Layout' menu from the header -UI_MOTDAutoLogo = 0; // [&] big channel logo inserted into MOTD -UI_MOTDTabs = 0; // [&] switchable MOTD tabs application for homepage-like channel header -UI_MOTDDelete = 0; // deleting previous MOTD after accepting/loading script -UI_RulesBtn = 0; // [&] button displaying channel rules -UI_AttentionBar = 0; // [&] imageboard-style attention bar (requires external application) -UI_ChannelAnnouncement = 0; // [&] additional custom channel announcement -UI_FullTitleBar = 0; // full-width video title bar -UI_ProgressBar = 1; // YouTube/Dailymotion progress bar - // [ REQUIRE: UI_FullTitleBar enabled ] -UI_TitleIcon = 1; // [&] full-width title bar icon - // [ REQUIRE: UI_FullTitleBar enabled ] -UI_TitleBarDescription = 1; // [&] custom title bar description (default "Currently Playing:") -UI_JoinText = 1; // [&] chat message after user joining -UI_LeaveText = 1; // [&] chat message after user leaving -UI_UserCommands = 1; // [&] additional commands in the chat window -UI_UserMarks = 0; // [&] special signs/avatars before every message for defined users -UI_Squavatars = 0; // automatic squavatars (2-colored square avatars) before every message - // [ REQUIRE: UI_UserMarks enabled ] -UI_UsernameMark = 0; // [&] custom mark after username (default ":") -UI_MessagesSuffix = 0; // [&] text added to random chat messages -UI_CustomPingSound = 1; // [&] custom sound for chat notifications -UI_SoundFilters = 0; // [&] chat sounds played after sending certain words -UI_ChatSpeak = 0; // text speaking after '!say' and '!mow' commands (english and polish) -UI_IndependentEmotes = 0; // [&] additional settings-independent emotes -UI_IndependentFilters = 1; // [&] additional settings-independent filters -UI_FontsBtn = 0; // button displaying box with clickable chat fonts - // [ REQUIRE: INSTALLATION (see above) ] -UI_UnicodeChars = 0; // [&] additional buttons in the fonts panel with unicode characters - // [ REQUIRE: UI_FontsBtn enabled ] -UI_EmotesBtn = 0; // button displaying box with clickable chat emotes -UI_GroupEmotes = 1; // [&] emotes panel pagination, display limited number of emotes at one time - // [ REQUIRE: UI_EmotesBtn enabled ] -UI_CommandsBtn = 0; // button displaying modal window with chat commands help -UI_ModPanel = 0; // [&] panel with messages and help for moderators -UI_CustomCaptions = 0; // [&] custom captions for add, refresh, voteskip buttons, and welcome text -UI_PlayerOptions = 0; // [&] additional player options -UI_TransformationBtns = 1; // player transformation buttons -UI_ChannelDatabase = 1; // [&] box with embed additional media database -UI_ChannelGalleries = 0; // [&] box with embed galleries -UI_DisplayModeSel = 1; // selector with player display modes -UI_ChannelTheme = 1; // [&] additional default channel theme -UI_EmbeddingMedia = 0; // [&] possibility to embedding (displaying) images and .webm videos on the chat -UI_MediaControls = 1; // embedded video preloaded controls - // [ REQUIRE: UI_EmbeddingMedia enabled ] -UI_QuickCommandsBtns = 1; // buttons with '/clear' and '/afk' functions -UI_VolumeBtns = 1; // additional volume buttons for YouTube player -UI_EmptyCornerBackground = 0; // [&] random background image for empty playlist row corner -UI_ExtendedGetURLs = 1; // extended 'Get URLs' function -UI_DefaultNonTemp = 1; // default unchecking "Add as temporary" checkbox after loading for registered users -UI_CustomFooter = 0; // [&] custom channel footer -UI_CustomRightFooter = 0; // [&] right-sided footer box -UI_UserStatistics = 1; // displaying in the footer user visits number and current online time -UI_ExternalScript = 0; // [&] additional external script file -UI_ChannelCache = 1; // caching script emotes, additional media database and default gallery - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- DETAILED BASIC CONFIGURATION ----- */ - -// NOTES: -// a) values for 'MOTDAutoLogo_Mode': 1 = first logo; 2 = random logo; 3 = logo rotation; 7 = weekdays logos -// b) in 'SoundFilters_Array' use .ogg or .wav files, some browsers has problems with embedded .mp3 -// c) in 'ModPanel_Array' item leave empty first (username) field to make a message to all moderators -// d) in 'EmbeddingMedia_Images' and 'EmbeddingMedia_Videos' you can define acceptable file extensions -// use CSS syntax: e.g. 'a[href$=""]' defines acceptable end of an URL (file extension) -// you can also define URL fragments: 'a[href*=""]', or add excluding clause: '.not(\'a[href*=""]\'), etc. - /* -- single variables -- */ - -Favicon_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -MiniLogo_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -ChannelName_Caption = 'CyTube Plus'; - -HeaderDropMenu_Title = 'Synch'; - -MOTDAutoLogo_Mode = 1; - -MOTDAutoLogo_Interval = 20; - -RulesBtn_Caption = 'Read Channel Rules'; - -AttentionBar_URL = ''; - -ChannelAnnouncement_Title = 'Administration Message'; - -TitleIcon_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -TitleBarDescription_Caption = 'Now Playing:'; - -JoinText_Message = 'joined'; - -LeaveText_Message = 'left'; - -UsernameMark_Char = '>'; - -MessagesSuffix_Text = '~xD'; - -MessagesSuffix_Percentage = 10; - -CustomPingSound_URL = 'https://dl.dropboxusercontent.com/s/0qtsttblgmkewnv/beep.wav'; - -PlayerHiding_URL = 'https://dl.dropboxusercontent.com/s/xz2o99scw5i7aai/stop.png'; - -GroupEmotes_Number = 100; - -ExternalScript_URL = ''; - - /* -- arrays -- */ - -HeaderDropMenu_Array = [ -['CyTube Servers', ''], -['Calzoneman CyTube', 'http://cytu.be/'], -['6irc Synchtube', 'http://synchtube.6irc.net/'], -['CyTube Stuff', ''], -['Source code', 'https://github.com/calzoneman/sync'], -['FAQ', 'https://github.com/calzoneman/sync/wiki/Beginner%27s-Guide-and-FAQ'], -['IRC', 'http://webchat.6irc.net/?channels=chat,synchtube'], -['CyTube Plus', 'https://github.com/zimny-lech/CyTube-Plus'], -]; - -MOTDAutoLogo_Array = [ -'https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png', -]; - -MOTDTabs_Array = [ -['Home', 'Welcome to our channel!'], -['Playlist', 'Playlist tab.We watched this, that and this.'], -['Schedule', 'Schedule:Monday: ...Tuesday: ...Wendesday: ...Thursday: ...Friday: ...Saturday: ...Sunday: ...'], -['Contact', 'Contact:Email - ...Skype - ...'], -]; - -RandomQuotes_Array = [ -'I like the Pope dancing', 'No quotes today', 'O rly?', -'People have the right to be stupid. You abuse that privilege', 'Don\'t play stupid with me', -'Roses are red violets are blue, God made me pretty, what happened to you?', -'Please don\'t interrupt me while I\'m ignoring you', -'Are you always this stupid, or are you making a special effort today?', -'I like you. You remind me of when I was young and stupid.', 'Go and buy me a beer', -'The door of this channel is always open for you... so feel free to leave!', -]; - -AskAnswers_Array = [ -'100% for sure', 'definitely yes', 'yes', 'probably', 'not any chance', 'definitely no', -'a little chance', 'no', '50/50', 'fairy is tired and will not answer', 'I refuse to answer', -]; - -Memes_Array = [ -'>', 'fb', 'omfg', 'u mad', -]; - -UserMarks_Array = { -'ZimnyLech': '', -'calzoneman': '♠', -} - -SoundFilters_Array = { -'habemus': 'https://dl.dropboxusercontent.com/s/3w1jahgffowjltz/hp.ogg', -'lol': 'https://dl.dropboxusercontent.com/s/9aqa1buu3phvpss/laugh.ogg', -} - -ModPanel_Array = [ -['', 'Welcome to the moderators panel. You can find here messages, news and help for all channel moderators, edited by script admin.'], -['', 'To temporary insert to the playlist any website instead of media files, click "Embed a custom frame" button in the playlist controls section. Then paste example code to the textarea: <iframe src="URL_of_your_page"></iframe>, and add.'], -]; - -CustomCaptions_Array = { -'add': 'Add here', -'refresh': 'Refresh player', -'voteskip': 'Voteskip', -'welcome': 'Hi', -} - -UnicodeChars_Array = [ -'★', '☆', '▲', '▼', '♥', '♪', '♿', '⚒', '♕', '✉', '☏', '♠', '→', -'☑', '☒', '✡', '☪', '✝', '☭', '☯', 'Ⓐ', '☕', '♨', '¥', '©', '∞', -]; - -ChannelGalleries_Array = [ -['Anime pictures', 'http://imgur.com/a/SjwJb/embed'], -['Historical photos', 'http://imgur.com/a/vnwC2/embed'], -]; - - /* -- HTML/CSS -- */ - -MOTDTabs_CSS = { -'padding': '20px', -'color': 'white', -'background-color': 'black', -} - -RulesBtn_HTML = 'You want to write on the chat? Enter temporary nickname into Guest Login input and click enter.You want to register a nick? Click Account -> Profile on the top of the channel, and fill the registration form. You don\'t need an email to register.Do not spam.You want to have this application on your own channel? Go to https://github.com/zimny-lech/CyTube-Plus.'; - -ChannelAnnouncement_HTML = ''; - -EmbeddingMedia_Images = 'a[href$=".jpg"], a[href$=".jpg:large"], a[href$=".jpeg"], a[href$=".JPG"], a[href$=".png"], a[href$=".tiff"], a[href$=".gif"]'; - -EmbeddingMedia_Videos = 'a[href$=".webm"]'; - -CustomFooter_HTML = 'This is custom footer.'; - -CustomRightFooter_HTML = ''; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- THEMES CONFIGURATION ----- */ - -// NOTES: -// a) TopUserLogo item has 3 attributes: name, URL, maximum height. -// Those images can be selected by user in Layout Configuration panel, and will be displayed on the channel top. - -ChannelThemeURL = 'https://ourfore.st/css/themes/fore.st.css'; - -ThemesCSS = [ -['forest', 'https://ourfore.st/css/themes/fore.st.css'], -['forestTest', 'http://10.0.2.15/css/themes/fore.st.css'], -['Plus Red', 'https://dl.dropboxusercontent.com/s/th8i1sj332wi0x9/plusred.css'], -['Celadon', 'https://dl.dropboxusercontent.com/s/iwarwhhph1ti2ek/celadon.css'], -]; - -TopUserLogo = [ -['cytube plus', 'https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png', 90], -['cosmos', 'https://dl.dropboxusercontent.com/s/v6dx49yqk5e3i2d/cosmos.jpg', 200], -['disco ball', 'https://dl.dropboxusercontent.com/s/ahpfm25pglc8j01/disco.jpg', 162], -['japanese landscape', 'https://dl.dropboxusercontent.com/s/llylt832evxrp6e/japan.jpg', 200], -['korean collage', 'https://dl.dropboxusercontent.com/s/qud9adhs183dq30/korea.jpg', 160], -]; - -EmptyCornerBackground = [ -'https://dl.dropboxusercontent.com/s/xa32t6jh68lor6p/kirino.png', -'https://dl.dropboxusercontent.com/s/xbz6j5vjqs34ihm/kobato0.png', -'https://dl.dropboxusercontent.com/s/sj67s6u5vwe6i7s/kuroneko.png', -'https://dl.dropboxusercontent.com/s/y9nnwvbrcbjm0fm/tsukiko.png', -'https://dl.dropboxusercontent.com/s/7bigihfi4ho0d29/moetan.png', -'https://dl.dropboxusercontent.com/s/0cg72kjsnt4p63g/azuki.png', -'https://dl.dropboxusercontent.com/s/va28xkaoz1co3ah/sakura.png', -]; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- INDEPENDENT EMOTES AND FILTERS CONFIGURATION ----- */ - -// NOTES ABOUT INDEPENDENT EMOTES: -// Every item has 4 attributes, respectively: chat code, image URL, image width, image height. -// Warning: due to conflict with RegExp, do not use square brackets or use proper "\\[" and "\\]" codes. - -IndependentEmotes = [ -[':awesome:', 'https://dl.dropboxusercontent.com/s/gz1k8oto90n16v6/awesome.png', 35, 35], -[':love:', 'https://dl.dropboxusercontent.com/s/fr9131zgnai0kix/heart.png', 35, 35], -]; - -// NOTES AND DEFAULT FILTERS EXAMPLES: -// If you use regular expression, you must put it between // signs with /g flag to change all occurences -// a) [mq]text[/mq] - fast scrolling text -// b) [mq0]text[/mq0] - slow scrolling text -// c) [imgur]suok1xr.jpg[/imgur] - imgur picture -// d) [drop]7mrz85gl29eiiks/logo.png[/drop] - dropbox picture -// e) [minus/i5]ig0qs6fvWvgBu.jpg[/minus] - minus.com picture -// f) [vi/b]1r8ih4t1.vichan.png[/vi] - vichan /b/ imageboard picture (you can use other boards too) - -IndependentFilters=[ -{ -before:/\[mq\](.*?)\[\/mq\]/g, -after:'$1' -}, -{ -before:/\[mq0\](.*?)\[\/(mq0|mq)\]/g, -after:'$1' -}, -{ -before:/\[imgur\](.*?)\[\/(i|imgur)\]/g, -after:'' -}, -{ -before:/\[drop\](.*?)\[\/(d|drop)\]/g, -after:'' - + '' -}, -{ -before:/\[minus\/(.*?)\](.*?)\[\/(m|minus)\]/g, -after:'' - + '' -}, -{ -before:/\[vi\/(.*?)\](.*?)\[\/(v|vi)\]/g, -after:'' - + '' -}, -]; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- MEDIA DATABASE CONFIGURATION ----- */ - -// NOTES: -// Leave empty URL field to create category button. -// WARNING! Use ChannelDatabase_URL only if you want to use external database file, it overwrites database below. -// If so, copy and configure 'https://raw.github.com/zimny-lech/CyTube-Plus/master/external-db.js' file. - -ChannelDatabase=[ -['', 'Japanese'], -['http://www.youtube.com/watch?v=Q3y-80HBM6Q', 'An Cafe - Smile Ichiban Ii Onna'], -['http://www.youtube.com/watch?v=nDqaTXqCN-Q', 'Babymetal - Ijime, Dame, Zettai'], -['http://www.youtube.com/watch?v=aNlkiymcT1Q', 'Hinoi Team - Ike Ike'], -['http://www.youtube.com/watch?v=JbQYK0mwLss', 'Morning Musume - Onna Ni Sachi Are'], -['http://www.youtube.com/watch?v=VZKMaFR2mtU', 'Perfume - Fake It'], -['http://www.youtube.com/watch?v=OYEHfWb1b4M', 'Shoko Nakagawa - Yuzurenai Negai'], -['http://www.youtube.com/watch?v=jvhI576M6so', 'Yuu Kikkawa - Bokarisuto?'], -['', 'Korean'], -['http://www.youtube.com/watch?v=M-XXJJFZcXg', '4Minute - Heart To Heart (jap.)'], -['http://www.youtube.com/watch?v=HchHZkkBOoE', 'As One - Catch Me Up'], -['http://www.youtube.com/watch?v=UVeTI4v24M0', 'C-REAL - No No No No No'], -['http://www.youtube.com/watch?v=04FdisNU3vw', 'Girl\'s Day - Oh! My God'], -['http://www.youtube.com/watch?v=ysnUHXksic8', 'NS Yoon-G - Reason To Become A Witch'], -['http://www.youtube.com/watch?v=mZUZdGCyLmw', 'Orange Caramel - Bangkok City'], -['http://www.youtube.com/watch?v=r-MXLmNnarQ', 'TINY-G - Minimanimo'], -['', 'Chinese'], -['http://www.youtube.com/watch?v=Bi0tjyVfHOg', 'Amber Ann - Lian Ai Yingyuan Tuan'], -['http://www.youtube.com/watch?v=dsU0Vu6aJhw', 'By2 - Love You Love You'], -['http://www.youtube.com/watch?v=ovPhJim1EUc', 'Momo - One Hundred Girlfriends '], -['http://www.youtube.com/watch?v=lxa2KqERBZE', 'S.H.E. - Shero'], -['http://www.youtube.com/watch?v=jd2-Nf86jvA', 'Weather Girls - Koi No Tenki Yohou'], -['', 'Anime songs'], -['http://www.youtube.com/watch?v=fJ_DH7jzoxQ', 'Ai No Tenshi (Perfect Blue)'], -['http://www.youtube.com/watch?v=ZNu_NV5PEM8', 'Chu☆ - Miko Miko Naasu - Ai No Teema'], -['http://www.youtube.com/watch?v=l65_QPNZ_k8', 'Hommarju feat. MAKI - Yamato Nadeshiko Education (Seitokai Yakuindomo OP)'], -['http://www.youtube.com/watch?v=dQbaJquz_jo', 'Kayo Sakata - Shoujo Q (Pani Poni Dash! OP)'], -['http://www.youtube.com/watch?v=nLSFxQijz6U', 'Kotoko - Princess Bride'], -['http://www.youtube.com/watch?v=QK-37CnYTpg', 'Princess Party Camelia OP'], -['http://www.youtube.com/watch?v=jehMXrY1q5I', 'Yui Makino - Yume No Tsubasa'], -]; - -ChannelDatabase_URL='https://ourfore.st/bumps.js'; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- END OF CONFIGURATION, DO NOT CHANGE ANYTHING BELOW ----- */ - -/* ----- Initial channel options ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// reload script after unexpected re-connection or script URL change - -var LOADED = (typeof LOADED==="undefined") ? false : true; -LOADED ? location.reload() : ''; - -/* ----- getting and setting channel options ----- */ - -if (UI_DefaultSynchtube=="1") { - defplayer="left"; defuserlist="right"; defqueue="left"; -} else { - defplayer="right"; defuserlist="left"; defqueue="right"; -} - -var DEFTHEME = (UI_ChannelTheme=="1" && ChannelThemeURL!="") ? ChannelThemeURL : "/css/themes/slate.css"; - -var USERCONFIG = { - "player":getOrDefault(CHANNEL.name+"_player", defplayer), - "userlist":getOrDefault(CHANNEL.name+"_userlist", defuserlist), - "queue":getOrDefault(CHANNEL.name+"_queue", defqueue), - "qsize":getOrDefault(CHANNEL.name+"_qsize", "wide"), - "main":getOrDefault(CHANNEL.name+"_main", "top"), - "motd":getOrDefault(CHANNEL.name+"_motd", "top"), - "logo":getOrDefault(CHANNEL.name+"_logo", "no"), - "logourl":getOrDefault(CHANNEL.name+"_logourl", ""), - "logoht":getOrDefault(CHANNEL.name+"_logoht", 250), - "header":getOrDefault(CHANNEL.name+"_header", "detached"), - "css":getOrDefault(CHANNEL.name+"_css", "no"), - "csscode":getOrDefault(CHANNEL.name+"_csscode", ""), - "modhash":getOrDefault(CHANNEL.name+"_modhash", ""), -} -var USERTHEME = getOrDefault(CHANNEL.name+"_theme", DEFTHEME); -var FLUID = getOrDefault(CHANNEL.name+"_fluid", true); -var LAYOUTBOX = getOrDefault(CHANNEL.name+"_layoutbox", true); -var SOUNDSLVL = getOrDefault(CHANNEL.name+"_soundslvl", 3); -var EMBEDIMG = getOrDefault(CHANNEL.name+"_embedimg", true); -var EMBEDVID = getOrDefault(CHANNEL.name+"_embedvid", true); -var AUTOVID = getOrDefault(CHANNEL.name+"_autovid", true); -var USERVISITS = getOrDefault(CHANNEL.name+"_visits", 0); - -var DEFDESCR = true; // standard item description in the player header -var NOPLAYER = false; // removed player in silent mode -var CHATFUNC = false; // admin chat functions panel visibility -var COMMAND = false; // aditional command occuring in the chat message -var VOICES = false; // chat sounds not disabled by user -var EMOTES = false; // emotes have been loaded into emotes panel -var CLEARING = false; // auto clearing messages window -var ANTIAFK = false; // enabled anti-AFK function -var SOUNDSPANEL = false; // chat sounds panel visibility -var PINNED = false; // playlist pinned to player -var FULLPL = false; // expanded playlist view -var MINIMIZED = false; // minimized layout -var CHANDB = false; // channel database has been loaded -var GALLERY = false; // channel galleries have been loaded -var GALLVIS = false; // channel galleries have been viewed by user -var ALTERCHATFORMAT = false; // using altered 'formatChatMessage' built-in function - -var PREVTIME = 0; // previous read of a current item time for the progress bar -var LASTADD = 0; // timestamp of the last adding random item from the channel database -var USERONLINE = 0; // user minutes online -var BGCHANGE = 0; // number of background changes for the easter egg function - -var MUTEDVOICES = new Array(); // list of users with muted chat sounds by user -var CHATSTAT = {"n":0, "l":0, "m":[]}; // array with user messages statistics -var ADDEDLINKS = new Array(); // array of links added from channel database by user - -var HASH = ''; // simple hash for comparing if the new messages have appeared in the mod panel - -WEBKIT="webkitRequestAnimationFrame" in window; -SOUNDSVALUES=new Array(0, 0.1, 0.2, 0.4, 0.7, 1); -SPEAKLINK='http://webanywhere.cs.washington.edu/cgi-bin/espeak/getsound.pl'; -IMBA=new Audio("https://dl.dropboxusercontent.com/s/xdnpynq643ziq9o/inba.ogg"); -CHATSOUND.volume=0.6; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- Global functions ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// toggle elements visibility - -function toggleDiv(div) { - $(div).css('display')=="none" ? $(div).show() : $(div).hide(); -} - -// refresh player - -function refreshPlayer() { - PLAYER.type=""; - PLAYER.id=""; - socket.emit("playerReady"); -} - -// add link to playlist - -function addToPlaylist(link, stand) { - parsed=parseMediaLink(link); - parsed["id"]!=null ? socket.emit("queue", {id:parsed["id"], pos:stand, type:parsed["type"]}) : ''; -} - -// get text content from inner HTML - -function getText(html) { - div=document.createElement("div"); - div.innerHTML=html; - return div.textContent||div.innerText; -} - -// create modal window - -function createModal(title) { - hidePlayer(); - outer = $('').appendTo($("body")); - modal = $('').appendTo(outer); - modal = $('').appendTo(modal); - head = $('').appendTo(modal); - $('').html('×').appendTo(head); - $('').text(title).appendTo(head); - body = $('').appendTo(modal); - footer = $('').appendTo(modal); - outer.on("hidden", function() { - outer.remove(); - unhidePlayer(); - }); - outer.modal(); -} - -// layout elements settings - -function playerLocation(a) { - $("#pinup-btn").show(); - if (a=="left") { - $("#videowrap").after($("#chatwrap").detach()); - normalPlayer(); - normalChat(); - } else if (a=="right") { - $("#videowrap").before($("#chatwrap").detach()); - normalPlayer(); - normalChat(); - } else if (a=="center") { - $("#videowrap").after($("#chatwrap").detach()); - $("#videowrap, #chatwrap").removeClass().addClass("col-lg-8 col-lg-offset-2 col-md-12"); - fitPlayer(); - fitChat(200); - $("#pinup-btn").hide(); - } -} - -function userlistLocation(a) { - a=="left" ? $("#userlist").css('float', 'left') : $("#userlist").css('float', 'right'); -} - -function queueLocation(a) { - $("#pinup-btn").show(); - if (a=="right") { - $("#rightpane").before($("#leftpane").detach()); - } else if (a=="left") { - $("#rightpane").after($("#leftpane").detach()); - } else if (a=="center") { - $("#rightpane").after($("#leftpane").detach()) - .removeClass().addClass('col-md-8 col-md-offset-2 col-md-12'); - $("#leftpane").removeClass().addClass('col-md-8 col-md-offset-2 col-md-12'); - $("#pinup-btn").hide(); - } - b = (a=="right") ? "left" : "right"; - $("#playlistrow").css('background-position', b+' bottom'); -} - -function queueSize(a) { - if (USERCONFIG.queue!="center") { - if (a=="wide") { - $("#leftpane").removeClass().addClass('col-lg-5 col-md-5'); - $("#rightpane").removeClass().addClass('col-lg-7 col-md-7'); - } else if (a=="narrow") { - $("#leftpane").removeClass().addClass('col-lg-7 col-md-7'); - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - } - } -} - -function mainLocation(a) { - if (a=="top") { - $("#main").before($("#titlerow").detach()).after($("#playlistrow").detach()); - } else if (a=="bottom") { - $("#main").before($("#playlistrow").detach()).before($("#titlerow").detach()); - } - $("#main").after($("#chatpanel").detach()); -} - -function motdLocation(a) { - if (a=="top") { - $("#zerorow").after($("#announcements").detach()).after($("#motdrow").detach()); - } else if (a=="bottom") { - $("#resizewrap").before($("#motdrow").detach()).before($("#announcements").detach()); - } -} - -function logoInsert(a) { - if (a!="no") { - link = (a!="user") ? TopUserLogo[a][1] : USERCONFIG.logourl; - ht = (a!="user") ? TopUserLogo[a][2] : USERCONFIG.logoht; - azukirow.css({'min-height':ht+'px', 'background-image':'url("'+link+'")'}); - } else if (a=="no") { - azukirow.css({'min-height':'5px', 'background-image':''}); - } -} - -function headerMode(a) { - $(".navbar-fixed-top").unbind(); - if (a=="fixed") { - $(".navbar-fixed-top").css({'position': 'fixed', 'top':'0px'}); - $("#mainpage").css('margin-top', '0px'); - } else if (a=="detached") { - $(".navbar-fixed-top").css('position', 'inherit'); - $("#mainpage").css('margin-top', '-72px'); - } else if (a=="mouseover") { - $(".navbar-fixed-top").css({'position':'fixed', 'top':'-40px'}) - .on("mouseover", function() { - $(".navbar-fixed-top").css('top', '0px'); - }) - .on("mouseout", function() { - $(".navbar-fixed-top").css('top', '-40px'); - }); - $("#mainpage").css('margin-top', '-40px'); - } -} - -function customCSS(a) { - $("#usercss").remove(); - a=="yes" ? $("head").append('') : ''; -} - -// set global layout according to user preferences - -function setLayout() { -// playerLocation(USERCONFIG.player); -// userlistLocation(USERCONFIG.userlist); -// queueLocation(USERCONFIG.queue); -// queueSize(USERCONFIG.qsize); -// mainLocation(USERCONFIG.main); -// motdLocation(USERCONFIG.motd); -// logoInsert(USERCONFIG.logo); -// headerMode(USERCONFIG.header); -// customCSS(USERCONFIG.css); -// refreshPlayer(); -} - -//-----STOP BREAKIN SHIT! -// fit player height - -function fitPlayer() { - //VW=$("#videowrap").width()+''; - //VH=Math.floor(parseInt(VW)*9/16+1)+''; - //$("#ytapiplayer").width(VW).height(VH); -} - -// fit chat height - -function fitChat(a) { - /*if (a=="auto") { - VW=$("#messagebuffer").width(); - VH=Math.floor(parseInt(VW)*9/16+1); - } else { - VH=a; - } - $("#messagebuffer").height(VH); - $("#userlist").height(VH);*/ -} - -// display mode helper functions - -function bigPlayer() { - //$("#videowrap").removeClass().addClass("col-lg-12 col-md-12"); - //fitPlayer(); -} - -function bigChat() { - //$("#chatwrap").removeClass().addClass('col-lg-12 col-md-12'); - //fitChat("auto"); -} - -function normalPlayer() { - //$("#videowrap").removeClass().addClass("col-lg-7 col-md-7"); - //fitPlayer(); -} - -function normalChat() { - /*c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5'; - $("#chatwrap").removeClass().addClass(c); - fitChat(338);*/ -} - -// set display mode - -function setMode(a) { - if (NOPLAYER) { - $("#videowrap").show(); - ytapiplayer = $('') - .insertBefore("#playercontrols"); - refreshPlayer(); - NOPLAYER = false; - } - - $("#main").show(); - pinupbtn.hide(); - modesel.find("option[value='chMode'], option[value='rMode']").show(); - PINNED ? modesel.find("option[value='chMode']").hide() : ''; - - if (a=="syMode") { - - $("#videowrap, #videowrap p, #videowrap div, #chatwrap, #rightpane, #pinup-btn").show(); - $("#config-btn, #configbtnwrap br, #pinup-btn").show(); - $("#min-layout").parent().show(); - - normalPlayer(); - - c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5'; - //$("#chatwrap").removeClass().addClass(c); - //H=parseInt(VH)-$("#chatline").outerHeight()-1; - //$("#messagebuffer").height(H); - //$("#userlist").height(H); - - USERCONFIG.player=="center" ? playerLocation("center") : ''; - PINNED ? pinUp() : ''; - - } else if (a=="kMode") { - - $("#videowrap").show(); - PINNED ? $("#rightpane").hide() : $("#chatwrap").hide(); - $("#fontspanel, #emotespanel").hide(); - - bigPlayer(); - - } else if (a=="chMode") { - - $("#chatwrap").show(); - - if (WEBKIT) { - $("#videowrap").hide(); - } else { - $("#videowrap div, #videowrap p").hide(); - $("#ytapiplayer").width(1).height(1); - } - - bigChat(); - - } else if (a=="sMode") { - - $("#chatwrap").show(); - $("#videowrap").hide(); - $("#ytapiplayer").remove(); - $("#fontspanel, #emotespanel").hide(); - modesel.find("option[value='chMode'], option[value='rMode']").hide(); - NOPLAYER = true; - - bigChat(); - - } else if (a=="rMode") { - - if (WEBKIT) { - $("#main").hide(); - } else { - PINNED ? $("#rightpane").hide() : $("#chatwrap").hide(); - $("#videowrap div, #videowrap p").hide(); - $("#ytapiplayer").width(1).height(1); - } - - !PINNED ? $("#min-layout").parent().show() : ''; - - } -} - -// fix layout after changing media - -function setModeAfterVideoChange() { - m=modesel.val(); - (m=="syMode" || m=="chMode" || m=="rMode") ? setMode(m) : ''; -} - -// change welcome text - -function changeWelcomeText() { - if (CLIENT.rank>0) { - $("#welcome").html($("#welcome").html().replace(/Welcome/, CustomCaptions_Array['welcome'])); - } -} - -// set MOTD - -function changeMOTD() { - if (UI_MOTDTabs=="1" && MOTDTabs_Array.length>0) { - // adding tabs application - - motdtabswrap = $('') - .appendTo("#motd"); - for (i in MOTDTabs_Array) { - btn = $('') - .text(MOTDTabs_Array[i][0]) - .appendTo(motdtabswrap) - .on("click", function() { - $(".motdtabs-btn").removeClass('btn-success'); - $(this).addClass('btn-success'); - nr=$(this).attr('tab'); - motdtabscontent.html(MOTDTabs_Array[nr][1]); - }); - } - motdtabscontent = $(''+MOTDTabs_Array[0][1]+'') - .css(MOTDTabs_CSS) - .appendTo("#motd"); - $(".motdtabs-btn:nth-child(1)").addClass('btn-success'); - } - if (UI_MOTDAutoLogo=="1") { - // adding logo - - var logo = 0; - var len = MOTDAutoLogo_Array.length; - if (len<1) { - MOTDAutoLogo_Array=['https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png']; - len=1; - } - if (MOTDAutoLogo_Mode=="2" || MOTDAutoLogo_Mode=="3") { - logo=Math.floor(Math.random()*len); - } else if (MOTDAutoLogo_Mode=="7") { - logo=new Date().getDay(); - typeof MOTDAutoLogo_Array[logo]==="undefined" ? logo=0 : ''; - } - $('').prependTo("#motd"); - } - if (UI_RulesBtn=="1") { - // adding rules button - - RulesBtn_Caption=="" ? RulesBtn_Caption='Read Channel Rules' : ''; - RulesBtn_HTML=="" ? RulesBtn_HTML='No rules.' : ''; - rulesbtnwrap = $('').appendTo("#motd"); - rulesbtn = $('') - .text(RulesBtn_Caption+' ▸') - .appendTo(rulesbtnwrap) - .on("click", function() { - toggleDiv(rulespanel); - }); - rulespanelouter = $('').appendTo("#motd"); - rulespanel = $('') - .html(RulesBtn_HTML) - .appendTo(rulespanelouter); - } -} - -// change title bar description - -function changeTitle() { - title=$("#currenttitle").text(); - $("#currenttitle").text(title.replace(/Currently Playing:/, TitleBarDescription_Caption)); -} - -// YouTube/Dailymotion progress bar - -function progressBar() { - var a = 0; - if (PLAYER.type=="yt") { - b=PLAYER.player.getCurrentTime(); - b!=PREVTIME ? a=b/PLAYER.player.getDuration()*100 : ''; - PREVTIME=b; - } else if (PLAYER.type=="dm") { - b=PLAYER.player.currentTime; - b!=PREVTIME ? a=b/PLAYER.player.duration*100 : ''; - PREVTIME=b; - } - titlerow.css('background-size', a+'% 100%'); -} - -// toggle additional chat functions - -function toggleChatFunctions() { - CLIENT.rank>2 ? chatflair.show() : chatflair.hide(); -} - -// set chat side panel properties - -function setPanelProperties(div) { - bgcolor=$("body").css('background-color'); - color=$("body").css('color'); - height=$("#userlist").height(); - width=$("#userlist").width(); - $(div).css({'background-color':bgcolor, 'color':color, 'height':height+'px', 'width':width+'px'}); -} - -// refresh user chat statistics - -function userChatStats(str) { - CHATSTAT['n']++; - CHATSTAT['l']=CHATSTAT['l']+str.length; - CHATSTAT['m'].push(str); -} - -// create squavatar - -function createSquavatar(str) { - for (i=0, hash=0; i>i++*8)&0xFF).toString(16)).slice(-2)); - r=parseInt(col.substring(0,2), 16); - g=parseInt(col.substring(2,4), 16); - b=parseInt(col.substring(4,6), 16); - r2=255-r; - g2=255-g; - b2=255-b; - html=''; - return html; -} - -// format chat messages before sending and execute commands - -function prepareMessage(msg) { - /*if (UI_MessagesSuffix=="1") { - if ((typeof MessagesSuffix_Percentage!=="number") || MessagesSuffix_Percentage<0) { - MessagesSuffix_Percentage='10'; - } - Math.random()<(MessagesSuffix_Percentage/100) ? msg+=' '+MessagesSuffix_Text : ''; - } - - if (UI_UserCommands=="1" && msg.indexOf("!")==0) { - COMMAND=true; - if (msg.indexOf("!stat")==0) { - - num=CHATSTAT['n']; - len=CHATSTAT['l']; - if (num>0) { - rnd=Math.round(Math.random()*(CHATSTAT['m'].length-1)); - avg=Math.round(len/num*10)/10; - } else { - rnd=0; - avg=0; - } - a = (num!=1) ? 's' : ''; - b = (avg!=1) ? 's' : ''; - msg='you have sent '+num+' message'+a+', ' - +'total length is '+len+' character'+b+' ('+avg+' per message), ' - +'random message: '+CHATSTAT['m'][rnd]; - - } else if (msg.indexOf("!memestats")==0) { - - num=CHATSTAT['n']; - len=Memes_Array.length; - mem=0; - for (i=0; i-1 ? mem++ : ''; - } - } - a = (num!=1) ? 's' : ''; - b = (mem!=1) ? 's' : ''; - if (len>0) { - msg='in '+num+' message'+a+' you have used '+mem+' meme'+b; - } else { - msg='error: no defined memes'; - } - - } else if (msg.indexOf("!pick ")==0) { - - arr=msg.split("!pick ")[1].split(","); - rnd=Math.round(Math.random()*(arr.length-1)); - msg=arr[rnd]; - - } else if (msg.indexOf("!ask ")==0) { - - AskAnswers_Array.length<1 ? AskAnswers_Array=['yes', 'no'] : ''; - rnd=a=Math.round(Math.random()*(AskAnswers_Array.length-1)); - msg=AskAnswers_Array[rnd]; - - } else if (msg.indexOf("!time")==0) { - - var h = new Date().getHours(); - h<10 ? h='0'+h : ''; - var m = new Date().getMinutes(); - m<10 ? m='0'+m : ''; - msg='current time: '+h+':'+m; - - } else if (msg.indexOf("!dice")==0) { - - rnd=Math.round(Math.random()*5)+1; - msg=''+rnd; - - } else if (msg.indexOf("!roll")==0) { - - var rnd = Math.round(Math.random()*999); - rnd<100 ? rnd="0"+rnd : ''; - rnd<10 ? rnd="0"+rnd : ''; - msg=''+rnd; - - } else if (msg.indexOf("!q")==0) { - - RandomQuotes_Array.length<1 ? RandomQuotes_Array=['error: no quotes available'] : ''; - rnd=Math.round(Math.random()*(RandomQuotes_Array.length-1)); - msg=RandomQuotes_Array[rnd]; - - } else if (msg.indexOf("!random")==0 && hasPermission("playlistadd")) { - - if (UI_ChannelDatabase=="1") { - var link=""; - while (link=="") { - rnd=Math.round(Math.random()*(ChannelDatabase.length-1)); - link=ChannelDatabase[rnd][0]; - title=ChannelDatabase[rnd][1]; - } - addToPlaylist(link, "end"); - msg='random media adding attempt: '+title; - } - - } else if (msg.indexOf("!calc ")==0) { - - func=msg.split("!calc "); - msg=''+eval(func[1]); - - } else if (msg.indexOf("!skip")==0 && hasPermission("voteskip")) { - - socket.emit("voteskip"); - msg='current item has been voteskipped'; - - } else if (msg.indexOf("!next")==0 && hasPermission("playlistjump")) { - - socket.emit("playNext"); - msg='start playing next item'; - - } else if (msg.indexOf("!bump")==0 && hasPermission("playlistmove")) { - - last=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+last+")").data("uid"); - title=$("#queue .queue_entry:nth-child("+last+") .qe_title").html(); - socket.emit("moveMedia", {from:uid, after:PL_CURRENT}); - msg='last item bumped as next: '+title; - - } else if (msg.indexOf("!add ")==0 && hasPermission("playlistadd")) { - - parsed=parseMediaLink(msg.split("!add ")[1]); - if (parsed["id"]===null) { - msg='error: wrong link, item has not been added'; - } else { - socket.emit("queue", {id:parsed["id"], pos:"end", type:parsed["type"]}); - msg='video has been added'; - } - - } else if (msg.indexOf("!now")==0) { - - msg='Now playing: '+$(".queue_active a").html(); - - } else if (msg.indexOf("!CO ZJE TEH?")==0) { - - msg='TEH ZJE HUJ'; - - } else if (msg.indexOf("!inba")==0) { - - IMBA.volume=0.6; - IMBA.play(); - mutePlayer(); - inbix=setInterval(function() { - inba(); - }, 200); - setTimeout(function() { - unmutePlayer(); - BGCHANGE=0; - clearInterval(inbix); - $("body").css({'background-image':'', 'background-color':''}); - setUserCSS(); - }, 12000); - msg='JP2GMD'; - - } else { - COMMAND=false; - } - }*/ - return msg; -} - -// insert code into chatline - -function insertText(str) { - $("#chatline").val($("#chatline").val()+str).focus(); -} - -// toggle YT mute button - -function toggleMuteBtn() { - (PLAYER && PLAYER.type=="yt") ? muteplayerbtn.show() : muteplayerbtn.hide(); -} - -// toggle mod panel button -function toggleModPanel() { - if (CLIENT.rank<2) { - modbtn.hide(); - } else { - modbtn.show(); - HASH=''; - for (i in ModPanel_Array) { - name=ModPanel_Array[i][0]; - (name=="" || name==CLIENT.name) ? HASH+=''+ModPanel_Array[i][1].length : ''; - } - if (HASH!=USERCONFIG.modhash) { - modbtn.addClass('btn-danger').html(modbtn.html()+' (New Mess.)'); - } - } -} - -// create media database - -function createDatabase() { - html='' - + ChannelDatabase[0][1] - + '' - + ''; - - len=ChannelDatabase.length; - for (i=1; i' - + '' - + ChannelDatabase[i][1] - + '' - + ''; - } else { - item_nr++; - count_nr++; - link=ChannelDatabase[i][0]; - - html+='' - + '' - + 'End' - + ''; - - parsed=parseMediaLink(link); - if (parsed["type"]=="yt") { - a=parsed["id"]; - html+='' - + '' - + ''; - } - html+='' - + item_nr - + '' - + ChannelDatabase[i][1] - + '' - + link - + ''; - } - } - - html+='' - + '' - + 'Reload Data (if channel seems working slow)' - + ''; - - item_count[layer_nr-1]=count_nr; - opening[layer_nr-1]=0; - dbwell.html(html); - html=''; - - len=item_count.length; - for(i=1; i<=len; i++) { - $("#la"+i).append(' ['+item_count[i-1]+']'); - } - - cleardbbtn = $("#cleardb-btn") - .on("click", function() { - toggleDiv(dbwrap); - dbwell.html(''); - CHANDB=false; - }); - - for (i in opening) { - opening[i]=0; - } - dbcat = $(".db-cat").hide(); - CHANDB=true; -} - -// toggle database sections - -function toggleCat(a) { - b=a-1; - if (opening[b]==0) { - dbcat.hide(); - for (i in opening) { - opening[i]=0; - } - $("#l"+a).show(); - opening[b]=1; - } else { - $("#l"+a).hide(); - opening[b]=0; - } -} - -// patch layout for guest logins - -function patchWrap() { - setTimeout(function() { - $("#playlistmanagerwrap").show(); - }, 1500); -} - -// create channel gallery - -function createGallery() { - galleryframe = $('') - .attr({'frameborder':'0', 'scrolling':'no', 'height':'415px'}) - .appendTo(gallerywell); - galtitle = $('Select Gallery').appendTo(gallerywell); - galsel = $('') - .appendTo(gallerywell) - .on("change", function() { - galleryframe.attr('src', galsel.val()); - }); - - for (i in ChannelGalleries_Array) { - $('') - .html(ChannelGalleries_Array[i][0]) - .appendTo(galsel); - } - - text='Reload Galleries (if problems or slow channel)'; - cleargallerybtn = $(''+text+'') - .appendTo(gallerywell) - .on("click", function() { - toggleDiv(gallerywrap); - gallerywell.html(''); - GALLERY=false; - }); - GALLERY=true; -} - -// toggle "/clear" button depends on rank - -function toggleClearBtn() { - hasPermission("chatclear") ? clearbtn.show() : 'clearbtn.hide()'; -} - -// toggle YT volume buttons depends on player type - -function toggleVolBtn() { - if (PLAYER && PLAYER.type=="yt") { - voldownbtn.show(); - volupbtn.show(); - } else { - voldownbtn.hide(); - volupbtn.hide(); - } -} - -// toggle advanced playlist options buttons - -function toggleAdvancedPl() { - CLIENT.rank<2 ? advplaylist.hide() : advplaylist.show(); - hasPermission("playlistjump") ? playnextbtn.show() : playnextbtn.hide(); - (hasPermission("playlistadd") && UI_ChannelDatabase=="1") ? addrandombtn.show() : addrandombtn.hide(); - hasPermission("playlistmove") ? bumplastbtn.show() : bumplastbtn.hide(); - hasPermission("playlistdelete") ? deletelastbtn.show() : deletelastbtn.hide(); -} - -// get playlist helper functions - -function formatRawList() { - len=$("#queue .queue_entry").length+1; - list = new Array(); - for (i=1; i'+title+' ['+duration+'] - '+link+''); - } - return list.join('\n'); -} - -function formatOrderedList() { - len=$("#queue .queue_entry").length+1; - var list = new Array(); - for (i=1; i div, #playlistrow > div {\n' - + ' padding-left:5px; padding-right:5px; margin-top:5px; margin-bottom:5px;\n' - + '}\n' - + '#motdwrap {margin:5px -10px}\n' - + '#announcements .alert {margin:0px -10px 5px}\n' - + '#drinkcount {margin:0px}\n'; - - //$("head").append(''); - $("#usertheme").attr('href', '/css/themes/slate.css'); - $("#usertheme-fix").remove(); - if (USERTHEME.indexOf("/css/themes/")>-1) { - $("#usertheme").attr('href', USERTHEME); - } else { - $('') - .appendTo("head"); - } - $("#usercss").remove(); - if (USERCONFIG.css!="no") { - $("head").append(''); - } -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- UI events functions ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -function prepareFilters() { - str='{"name":"white color","source":"\\\\[white\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"yellow color","source":"\\\\[yellow\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"orange color","source":"\\\\[orange\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"pink color","source":"\\\\[pink\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"red color","source":"\\\\[red\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"limegreen color","source":"\\\\[lime\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"green color","source":"\\\\[green\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"aqua color","source":"\\\\[aqua\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"blue color","source":"\\\\[blue\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"violet color","source":"\\\\[violet\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"brown color","source":"\\\\[brown\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"silver color","source":"\\\\[silver\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"black color","source":"\\\\[black\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"white color on black","source":"\\\\[bw\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"bold text","source":"\\\\[b\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"italic text","source":"\\\\[i\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"underlined text","source":"\\\\[u\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"striked text","source":"\\\\[s\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"distinguished text","source":"\\\\[d\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"fire text","source":"\\\\[f\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"short spoiler","source":"\\\\[sp\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"closing font style","source":"\\\\[\\\\/\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false}]'; - - callback = function(data) { - socket.listeners("chatFilters").splice( - socket.listeners("chatFilters").indexOf(callback) - ); - json=JSON.stringify(data); - comma = (json.length!="2") ? ',' : ''; - $("#cs-chatfilters-exporttext").val(json.substring(0, json.length-1)+comma+str); - }; - - socket.on("chatFilters", callback); - socket.emit("requestChatFilters"); - - txt = 'This option does NOT affect your current filters, all of them will be saved.\n' - + 'Click "Import filter list" button if you\'ll decide to install.'; - alert(txt); -} - -// show chat additional functions - -function showChatFunctions() { - $("#userlist").append(''); - setPanelProperties("#chatfunc-dropdown"); - - $("#chatfunc-dropdown").append('Prevent room freezing if spam:'); - - spamclearbtn = $('Auto Clear') - .appendTo("#chatfunc-dropdown") - .on("click", function() { - if (!CLEARING) { - $(this).text('Stop Clearing').addClass('btn-danger'); - CLEARING=setInterval(function() { - socket.emit("chatMsg", {msg: '/clear'}); - }, 500); - } else { - $(this).text('Auto Clear').removeClass('btn-danger'); - clearInterval(CLEARING); - CLEARING=false; - } - }); - CLEARING ? $("#spamclear-btn").text('Stop Clearing').addClass('btn-danger') : ''; - - $("#chatfunc-dropdown").append('Prevent me from AFK:'); - - antiafkbtn = $('Anti AFK') - .appendTo("#chatfunc-dropdown") - .on("click", function() { - if (!ANTIAFK) { - $(this).addClass('btn-danger'); - ANTIAFK=setInterval(function() { - $("#userlist").find('span[class^=userlist]').each(function() { - if ($(this).html()==CLIENT.name && $(this).css('font-style')=="italic") { - socket.emit("chatMsg", {msg: '/afk'}); - return; - } - }); - }, 4000); - } else { - $(this).removeClass('btn-danger'); - clearInterval(ANTIAFK); - ANTIAFK=false; - } - }); - ANTIAFK ? $("#antiafk-btn").addClass('btn-danger') : ''; -} - -// display list of emotes - -function showEmotes() { - if (typeof GroupEmotes_Number!=="number" || GroupEmotes_Number<1) { - GroupEmotes_Number=100; - } - len=CHANNEL.emotes.length; - if (len<1) { - emotespanel.addClass('row'); - makeAlert("No emotes available", "Ask channel administrator.").appendTo(emotespanel); - } else if (UI_GroupEmotes!="1" || len<=GroupEmotes_Number) { - for (i in CHANNEL.emotes) { - $('') - .attr({'src':CHANNEL.emotes[i].image, 'title':CHANNEL.emotes[i].name}) - .appendTo(emotespanel); - } - } else { - var arr = new Array(); - stop=GroupEmotes_Number-1; - gr=Math.ceil(CHANNEL.emotes.length/GroupEmotes_Number); - html=''; - - for (i=0; i'; - if (i%GroupEmotes_Number==stop) { - arr.push(html); - html=''; - } - } - len%GroupEmotes_Number!=0 ? arr.push(html) : ''; - - for (i=0; i') - .html(arr[i]) - .appendTo(emotespanel); - } - arr=''; - - emotesbtnwrap = $('').appendTo(emotespanel); - emotesbtngroup = $('').appendTo(emotesbtnwrap); - - for (i=0; i'+(i+1)+'') - .appendTo(emotesbtngroup) - .on("click", function() { - $(".emotesbtn").removeClass('active'); - $(this).addClass('active'); - $(".groupemotes").hide(); - nr=$(this).attr('group'); - $("#emotes-"+nr).show(); - }); - } - $("#emotes-0").show(); - $("#emotescontrols button:nth-child(1)").addClass('active'); - } - EMOTES=true; -} - -// show chat commands modal window - -function showChatHelp() { - createModal('Chat Commands'); - if (UI_FontsBtn=="1") { - body.append('Fonts commands'); - html='[white], [yellow], [orange], [pink], ' - + '[red], [lime], [green], [aqua], ' - + '[blue], [violet], [brown], [silver], ' - + '[black] - begin of colored text' - + '[bw] - begin of white text on the black background' - + '[b], [i], [u], [s] - ' - + 'begin of bold, italic, underlined, striked or underlined text' - + '[d] - begin of a distinguished text (red on yelllow background)' - + '[f] - begin of a text with a fire effect' - + '[sp] - begin of an inline spoiler' - + '[/] - end of any color, style or spoiler' - + 'If fonts commands don\'t work, ask script administrator about proper filters installation.'; - $('').html(html).appendTo(body); - } - if (UI_UserCommands=="1") { - arr = { - 'pick':'choosing a random option from a list separated by commas ' - + '(e.g. !pick japan,korea,china)', - 'ask':'asking a question with yes/no type answer ' - + '(e.g. !ask Will this channel be popular?)', - 'q':'displaying random quote (!q)', - 'dice':'rolling dice (!dice)', - 'roll':'rolling 3-digit number (!roll)', - 'time':'displaying current time (!time)', - 'now':'displaying current playing title (!now)', - 'calc':'calculating a math operation ' - + '(all JavaScript Math methods and constants allowed, e.g. !calc Math.PI*10)', - 'skip':'skip current item (!skip)', - 'add':'adding a link to the end of playlist ' - + '(e.g. !add https://www.youtube.com/watch?v=29FFHC2D12Q)', - 'stat': 'displaying user chat statistics in current session (!stat)', - 'memestats': 'displaying number memes used by user in all messages (!memestats)' - } - if (UI_ChannelDatabase=="1") { - arr['random']='adding random link from database (!random)'; - } - body.append('New chat commands'); - ul = $('').appendTo(body); - for (cmd in arr) { - ul.append('!'+cmd+' - '+arr[cmd]+''); - } - } - if (UI_ChatSpeak=="1") { - body.append('Voice commands'); - html='!say - text speaking in english (!say Hello!)' - + '!mow - text speaking in polish (!mow Chrząszcz brzmi w trzcinie.)'; - $('').html(html).appendTo(body); - } - arr = { - 'me':'showing an action-style message (username does something, e.g. /me is dancing)', - 'sp':'hiding a message in a hover-to-show spoiler box (e.g. /sp This message is hidden)', - 'afk':'toggling your AFK (away from keyboard) status (/afk)', - } - body.append('Default CyTube commands'); - ul = $('').appendTo(body); - for (cmd in arr) { - ul.append('/'+cmd+' - '+arr[cmd]+''); - } -} - -// show chat sounds panel - -function showSoundsPanel() { - $("#userlist").append(''); - setPanelProperties("#sounds-dropdown"); - - muteallbtn = $('Mute All') - .appendTo("#sounds-dropdown") - .on("click", function() { - if (VOICES) { - $(this).text('Unmute All').addClass('btn-danger'); - voicesbtn.addClass('btn-danger').attr('title', 'Unmute chat voices'); - VOICES = false; - SOUNDSPANEL = false; - $("#sounds-dropdown").remove(); - } else { - $(this).text('Mute All').removeClass('btn-danger'); - voicesbtn.removeClass('btn-danger').attr('title', 'Mute chat voices'); - VOICES = true; - } - }); - !VOICES ? muteallbtn.text('Unmute All').addClass('btn-danger') : ''; - - $("#sounds-dropdown").append('Sounds level:'); - - lvlgroup = $('') - .appendTo("#sounds-dropdown"); - - for (i=1; i<=5; i++) { - btn=$('') - .html(i) - .appendTo(lvlgroup) - .on("click", function() { - $("#lvlvol"+SOUNDSLVL).removeClass('btn-success'); - SOUNDSLVL=$(this).attr('level'); - setOpt(CHANNEL.name+"_soundslvl", SOUNDSLVL); - $(this).addClass('btn-success'); - }); - } - $("#lvlvol"+SOUNDSLVL).addClass('btn-success'); - - $("#sounds-dropdown").append('Select users to mute sounds:'); - - mutegroup = $('').appendTo("#sounds-dropdown"); - - $(".userlist_item").each(function() { - user=$(this).find("span:nth-child(2)").html(); - btn=$('') - .html(user) - .appendTo(mutegroup) - .on("click", function() { - name=$(this).attr('name'); - if (name in MUTEDVOICES && MUTEDVOICES[name]=="1") { - $(this).removeClass('btn-danger'); - MUTEDVOICES[name]=0; - } else { - $(this).addClass('btn-danger'); - MUTEDVOICES[name]=1; - } - }); - (user in MUTEDVOICES && MUTEDVOICES[user]=="1") ? btn.addClass('btn-danger') : ''; - }); -} - -// show moderators panel - -function showModPanel() { - createModal("Moderators panel"); - - html=''; - for (i in ModPanel_Array) { - name=ModPanel_Array[i][0]; - mess=ModPanel_Array[i][1]; - if (name=="") { - html+=' ' - + mess - + ''; - } else if (name==CLIENT.name) { - html+=' ' - + ' ' - + '(to: '+CLIENT.name+') → '+mess - + ''; - } - } - body.append(html); - $("#mod-btn").removeClass('btn-danger').html(''); - setOpt(CHANNEL.name+"_modhash", HASH); -} - -// show info about current or next media - -function showInfo() { - if (DEFDESCR) { - contr=$(".queue_active").attr("title"); - if (typeof contr==="undefined") { - text='Nothing Playing'; - } else { - duration=$(".queue_active .qe_time").html(); - text=contr+' ['+duration+']'; - } - mediainfo.html(text); - } else { - var arr=new Array(); - text='Playing Next:'; - li1=$(".queue_active").next(); - li2=li1.next(); - li3=li2.next(); - li1.length>0 ? arr.push(' 1▸ '+li1.children("a").html()) : ''; - li2.length>0 ? arr.push(' // 2▸ '+li2.children("a").html()) : ''; - li3.length>0 ? arr.push(' // 3▸ '+li3.children("a").html()) : ''; - text+=arr.join(""); - arr.length<3 ? text+=' // END OF PLAYLIST //' : ''; - mediainfo.html(''+text+''); - } -} - -// hide and show player with covering image - -function coverPlayer() { - PlayerHiding_URL=="" ? PlayerHiding_URL='https://dl.dropboxusercontent.com/s/xz2o99scw5i7aai/stop.png' : ''; - $("#videowrap").addClass('relative'); - w=$("#ytapiplayer").css('width'); - h=$("#videowrap").css('height').replace('px', '')-31; - coverpl = $('') - .css({'width':w, 'height':h+'px', 'background-image':'url('+PlayerHiding_URL+')'}) - .appendTo($("#videowrap")); - hideplayerbtn.addClass('btn-danger').attr('title', 'Show player'); -} - -function showPlayer() { - coverpl.remove(); - hideplayerbtn.removeClass('btn-danger').attr('title', 'Hide player'); - $("#videowrap").removeClass('relative'); -} - -// mute YT player - -function mutePlayer() { - (PLAYER && PLAYER.type=="yt") ? PLAYER.player.mute() : ''; -} - -// unmute YT player - -function unmutePlayer() { - (PLAYER && PLAYER.type=="yt") ? PLAYER.player.unMute() : ''; -} - -// download current item - -function downloadCurrentItem() { - uid=$(".pluid-"+PL_CURRENT).data("media"); - arr={ - 'yt':'http://youtube.com/watch?v=', - 'vi':'http://vimeo.com/', - 'dm':'http://dailymotion.com/video/', - 'sc':'' - } - link = (uid.type in arr ? arr[uid.type]+''+uid.id : ''); - if (link=="") { - alert('This link is not supported. Try YouTube, Vimeo, Dailymotion or SoundCloud.'); - } - else { - createModal("Download current item"); - - $('Click here to download') - .appendTo(body) - .on("click", function() { - outer.modal('hide'); - }); - } -} - -// preview YT video in modal window - -function prevVideo(a) { - createModal('Preview Video'); - - player=$('') - .attr('src', 'http://www.youtube.com/embed/'+a+'?wmode=transparent&enablejsapi') - .appendTo(body); -} - -// toggle configuration panel - -function toggleConfigPanel() { - if (MINIMIZED) { - $("#rightpane-inner").show(); - $("#azukirow, #leftpane-inner").show(); - !$("#hide-motd").prop('checked') ? $("#motdrow").show() : ''; - !$("#hide-ann").prop('checked') ? $("#announcements").show() : ''; - !$("#hide-hf").prop('checked') ? $("footer").show() : ''; - pinupbtn.show(); - layoutbtn.removeClass('btn-danger').addClass('btn-success') - .html(' Layout'); - $("#min-layout").prop('checked', false); - $("#plcontrol button, #db-btn, #gallery-btn, #newpollbtn").removeAttr('disabled'); - MINIMIZED=false; - // patch: giving back 15px additional space on the top - $("#mainpage").css('margin-top', $("#mainpage").css('margin-top').replace('px', '')*1-15+'px'); - } else { - toggleDiv(configwrap); - if (configwrap.css('display')=="none") { - layoutbtn.removeClass('btn-success'); - } else { - layoutbtn.addClass('btn-success'); - } - LAYOUTBOX = !LAYOUTBOX; - setOpt(CHANNEL.name+"_layoutbox", LAYOUTBOX); - } -} - -// show layout configuration modal window - -function showConfig() { - createModal("Layout Configuration"); - - form = $('').appendTo(body); - - function addOption(txt, elem) { - g = $('').appendTo(form); - $('').text(txt).appendTo(g); - c = $('').appendTo(g); - elem.appendTo(c); - } - - playerlocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(playerlocation); - $('').attr('value', 'right').text('right').appendTo(playerlocation); - $('').attr('value', 'center').text('center').appendTo(playerlocation); - playerlocation.val(USERCONFIG.player); - addOption('Player location', playerlocation); - - userlistlocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(userlistlocation); - $('').attr('value', 'right').text('right').appendTo(userlistlocation); - userlistlocation.val(USERCONFIG.userlist); - addOption('Userlist location', userlistlocation); - - queuelocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(queuelocation); - $('').attr('value', 'right').text('right').appendTo(queuelocation); - $('').attr('value', 'center').text('center').appendTo(queuelocation); - queuelocation.val(USERCONFIG.queue); - addOption('Queue location', queuelocation); - - queuesize = $('').addClass('form-control'); - $('').attr('value', 'wide').text('wide').appendTo(queuesize); - $('').attr('value', 'narrow').text('narrow').appendTo(queuesize); - queuesize.val(USERCONFIG.qsize); - addOption('Queue column size', queuesize); - - mainlocation = $('').addClass('form-control'); - $('').attr('value', 'top').text('above playlist').appendTo(mainlocation); - $('').attr('value', 'bottom').text('below playlist').appendTo(mainlocation); - mainlocation.val(USERCONFIG.main); - addOption('Player & chat', mainlocation); - - motdlocation = $('').addClass('form-control'); - $('').attr('value', 'top').text('channel top').appendTo(motdlocation); - $('').attr('value', 'bottom').text('channel bottom').appendTo(motdlocation); - motdlocation.val(USERCONFIG.motd); - addOption('MOTD & announcements', motdlocation); - - logoinsert = $('').addClass('form-control'); - $('').attr('value', 'no').text('no image').appendTo(logoinsert); - $('').attr('value', 'user').text('user image').appendTo(logoinsert); - for (i in TopUserLogo) { - $("").attr('value', i).text(TopUserLogo[i][0]).appendTo(logoinsert); - } - logoinsert.val(USERCONFIG.logo); - addOption('Top logo', logoinsert); - - userlogo = $('').addClass('form-control').attr('type', 'text') - .attr('placeholder', 'Image URL'); - userlogo.val(''); - addOption('User logo URL', userlogo); - - userlogoht = $('').addClass('form-control').attr('type', 'text') - .attr('placeholder', 'Image Height (in px)'); - userlogoht.val(''); - addOption('User logo height', userlogoht); - - if (USERCONFIG.logo!="user") { - userlogo.parent().parent().hide(); - userlogoht.parent().parent().hide(); - } else { - userlogo.val(USERCONFIG.logourl); - userlogoht.val(USERCONFIG.logoht); - } - - headermode = $('').addClass('form-control') - $('').attr('value', 'fixed').text('fixed').appendTo(headermode); - $('').attr('value', 'detached').text('detached').appendTo(headermode); - $('').attr('value', 'mouseover').text('mouseover').appendTo(headermode); - headermode.val(USERCONFIG.header); - addOption('Header menu', headermode); - - customcss = $('').addClass('form-control'); - $('').attr('value', 'no').text('no').appendTo(customcss); - $('').attr('value', 'yes').text('yes').appendTo(customcss); - customcss.val(USERCONFIG.css); - addOption('Custom CSS', customcss); - - usercss = $('').addClass('form-control') - .attr('placeholder', 'Insert CSS code'); - usercss.val(USERCONFIG.csscode); - addOption('CSS code', usercss); - - if (USERCONFIG.css=="no") { - usercss.parent().parent().hide(); - } - - submit = $('').text("Save changes").appendTo(footer); - reset = $('').text('Default').appendTo(footer); - column = $('').text('One column').appendTo(footer); - - logoinsert.on("change", function() { - if (logoinsert.val()=="user") { - userlogo.parent().parent().show(); - userlogoht.parent().parent().show(); - userlogo.val(USERCONFIG.logourl); - userlogoht.val(USERCONFIG.logoht); - } else { - userlogo.parent().parent().hide(); - userlogoht.parent().parent().hide(); - } - }); - - customcss.on("change", function() { - if (customcss.val()=="yes") { - usercss.parent().parent().show(); - } else { - usercss.parent().parent().hide(); - } - }); - - submit.on("click", function() { - outer.modal('hide'); - - USERCONFIG.player=playerlocation.val(); - setOpt(CHANNEL.name+"_player",playerlocation.val()); - - USERCONFIG.userlist=userlistlocation.val(); - setOpt(CHANNEL.name+"_userlist",userlistlocation.val()); - - USERCONFIG.queue=queuelocation.val(); - setOpt(CHANNEL.name+"_queue",queuelocation.val()); - - USERCONFIG.qsize=queuesize.val(); - setOpt(CHANNEL.name+"_qsize",queuesize.val()); - - USERCONFIG.main=mainlocation.val(); - setOpt(CHANNEL.name+"_main",mainlocation.val()); - - USERCONFIG.motd=motdlocation.val(); - setOpt(CHANNEL.name+"_motd",motdlocation.val()); - - if (logoinsert.val()=="user") { - if (userlogo.val()=="") { - logoinsert.val("no"); - } else if (userlogoht.val()=="") { - userlogoht.val('200'); - } else { - a=userlogoht.val()*1; - if (isNaN(a) || a<1) { - userlogoht.val('200'); - } - } - USERCONFIG.logourl=userlogo.val(); - USERCONFIG.logoht=userlogoht.val(); - setOpt(CHANNEL.name+"_logourl",userlogo.val()); - setOpt(CHANNEL.name+"_logoht",userlogoht.val()); - } - - USERCONFIG.logo=logoinsert.val(); - setOpt(CHANNEL.name+"_logo",logoinsert.val()); - - USERCONFIG.header=headermode.val(); - setOpt(CHANNEL.name+"_header",headermode.val()); - - if (customcss.val()=="yes") { - USERCONFIG.csscode=usercss.val(); - setOpt(CHANNEL.name+"_csscode",usercss.val()); - } - - USERCONFIG.css=customcss.val(); - setOpt(CHANNEL.name+"_css",customcss.val()); - - setLayout(); - scrollChat(); - scrollQueue(); - }); - - reset.on("click", function() { - outer.modal("hide"); - - USERCONFIG.player=defplayer; - setOpt(CHANNEL.name+"_player",defplayer); - - USERCONFIG.userlist=defuserlist; - setOpt(CHANNEL.name+"_userlist",defuserlist); - - USERCONFIG.queue=defqueue; - setOpt(CHANNEL.name+"_queue",defqueue); - - USERCONFIG.qsize="wide"; - setOpt(CHANNEL.name+"_qsize","wide"); - - USERCONFIG.main="top"; - setOpt(CHANNEL.name+"_main","top"); - - USERCONFIG.motd="top"; - setOpt(CHANNEL.name+"_motd","top"); - - USERCONFIG.logo="no"; - setOpt(CHANNEL.name+"_logo","no"); - - USERCONFIG.header="detached"; - setOpt(CHANNEL.name+"_header","detached"); - - USERCONFIG.css="no"; - setOpt(CHANNEL.name+"_css","no"); - - setLayout(); - scrollChat(); - scrollQueue(); - }); - - column.on("click", function() { - outer.modal("hide"); - - USERCONFIG.player="center"; - setOpt(CHANNEL.name+"_player","center"); - - USERCONFIG.userlist="left"; - setOpt(CHANNEL.name+"_userlist","left"); - - USERCONFIG.queue="center"; - setOpt(CHANNEL.name+"_queue","center"); - - USERCONFIG.main="top"; - setOpt(CHANNEL.name+"_main","top"); - - USERCONFIG.motd="bottom"; - setOpt(CHANNEL.name+"_motd","bottom"); - - USERCONFIG.logo="no"; - setOpt(CHANNEL.name+"_logo","no"); - - USERCONFIG.header="detached"; - setOpt(CHANNEL.name+"_header","detached"); - - setLayout(); - scrollChat(); - scrollQueue(); - }); -} - -// toggle fluid layout - -function toggleFluidLayout() { - if (FLUID) { - $("body").removeClass('fullscreen'); - $(".container-fluid").removeClass('container-fluid').addClass('container'); - $("#fontspanel, #emotespanel").removeClass('fluidpanel'); - } else { - $("body").addClass('fullscreen'); - $(".container").removeClass('container').addClass('container-fluid'); - $("footer .container-fluid").removeClass('container-fluid').addClass('container'); - $("#fontspanel, #emotespanel").addClass('fluidpanel'); - } - UI_DisplayModeSel=="1" ? setMode(modesel.val()) : ''; - FLUID=!FLUID; - setOpt(CHANNEL.name+"_fluid", FLUID); - scrollChat(); -} - -// toggle minimized layout - -function toggleMinLayout() { - if (!MINIMIZED) { - $("#rightpane-inner").hide(); - $("#azukirow, #motdrow, #announcements, #leftpane-inner, footer").hide(); - pinupbtn.hide(); - layoutbtn.removeClass('btn-success').addClass('btn-danger').html('Maximize'); - $("#plcontrol button, #db-btn, #gallery-btn, #newpollbtn").attr('disabled', 'disabled'); - MINIMIZED=true; - // patch for 15px more space on the top - $("#mainpage").css('margin-top', $("#mainpage").css('margin-top').replace('px', '')*1+15+'px'); - } -} - -// pin-up playlist to player - -function pinUp() { - if (USERCONFIG.player=="left") { - $("#videowrap").after($("#rightpane").detach()); - } else if (USERCONFIG.player=="right") { - $("#videowrap").before($("#rightpane").detach()); - } - if (USERCONFIG.queue=="left") { - //$("#leftpane").before($("#chatwrap").detach()); - } else if (USERCONFIG.queue=="right") { - //$("#leftpane").after($("#chatwrap").detach()); - } - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - if (USERCONFIG.qsize=="wide") { - //$("#chatwrap").removeClass().addClass('col-lg-7 col-md-7'); - } else { - //$("#chatwrap").removeClass().addClass('col-lg-5 col-md-5'); - } - $("#pinup-btn").attr('title', 'Unpin playlist'); - $("#config-btn, #configbtnwrap br").hide(); - $("#min-layout").parent().hide(); - $("#mode-sel").find("option[value='chMode'], option[value='sMode']").hide(); - PINNED=true; -} - -// un-pin playlist from player - -function unPin() { - if (USERCONFIG.queue=="left") { - $("#leftpane").before($("#rightpane").detach()); - } else if (USERCONFIG.queue=="right") { - $("#leftpane").after($("#rightpane").detach()); - } - if (USERCONFIG.player=="left") { - $("#videowrap").after($("#chatwrap").detach()); - } else if (USERCONFIG.player=="right") { - $("#videowrap").before($("#chatwrap").detach()); - } - $("#chatwrap").removeClass().addClass('col-lg-5 col-md-5'); - if (USERCONFIG.qsize=="wide") { - $("#rightpane").removeClass().addClass('col-lg-7 col-md-7'); - } else { - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - } - $("#pinup-btn").attr('title', 'Pinup playlist to player'); - $("#config-btn, #configbtnwrap br").show(); - $("#min-layout").parent().show(); - $("#mode-sel").find("option[value='chMode'], option[value='sMode']").show(); - PINNED=false; -} - -// show contributors list - -function showContributors() { - createModal("Contributors List"); - - len=$("#queue li").length+1; - var list = []; - for (i=1; i'+list3.join(""); - body.append(html); -} - -// expand/collapse queue - -function expandQueue() { - if (!FULLPL) { - $("#queue").css('max-height', '100000px'); - expandbtn.attr('title', 'Collapse playlist'); - FULLPL=true; - } else { - $("#queue").css('max-height', '500px'); - expandbtn.attr('title', 'Expand playlist'); - FULLPL=false; - scrollQueue(); - } -} - -// get playlist URLS - -function getPlaylistURLs() { - createModal('Playlist URLs'); - - data=$('').val(formatRawList()).appendTo(body); - rlist=$('Raw Links').appendTo(footer); - tlist=$('Plain Text').appendTo(footer); - hlist=$('HTML Code').appendTo(footer); - olist=$('Ordered List').appendTo(footer); - dlist=$('Database Format').appendTo(footer); - - rlist.on("click", function() { - data.val(formatRawList()); - }); - tlist.on("click", function() { - data.val(formatPlainTextList()); - }); - hlist.on("click", function() { - data.val('\n'+formatHTMLList()+'\n'); - }); - olist.on("click", function() { - data.val(formatOrderedList()); - }); - dlist.on("click", function() { - data.val(formatDBList()); - }); -} - -// add random item from channel database - -function addRandomItem() { - time=(new Date()).getTime(); - if ((time-LASTADD)<0) { - alert('You can add random video every 2 minutes.'); - } else { - var link=""; - while (link=="") { - rnd=Math.round(Math.random()*(ChannelDatabase.length-1)); - link=ChannelDatabase[rnd][0]; - } - addToPlaylist(link, "end"); - LASTADD=time; - } -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- User Interface ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// adding important hidden reference row - -zerorow = $('').insertBefore("#motdrow"); - -// adding top logo row - -//azukirow = $('').insertBefore(zerorow); - -// adding video wrap if user has enabled "Hide Player" option - -if (USEROPTS.hidevid) { - $("#chatwrap, #chatline").removeClass('col-lg-12 col-md-12').addClass('col-lg-5 col-md-5'); - videowrap = $('') - .insertBefore("#chatwrap"); - currenttitle = $('') - .html('Currently Playing: '+$(".queue_active a").html()) - .appendTo(videowrap); - ytapiplayer = $('') - .appendTo(videowrap); - - html='According to your User Preferences, video player is hidden. ' - + 'Click a button below to continue hiding player. ' - + 'Click default "Reload" icon to show player in this session. ' - + 'If you\'ll stay in "Chat Only" mode, functionality of this channel will be limited.'; - makeAlert("No Player", html).appendTo(ytapiplayer); - - staybtn = $('Stay In "Chat Only" Mode') - .appendTo("#ytapiplayer .alert") - .on("click", function() { - videowrap.remove(); - $("#chatwrap").removeClass().addClass('col-lg-12 col-md-12'); - $("#configform, #modeform, #pinup-btn").hide(); - fitChat("auto"); - }); -} - -// changing initial layout to compact for new users - -$("body").addClass('fluid'); -compactLayout(); -setLayout(); -scrollChat(); -scrollQueue(); - -// adding "id" attributes - -$(".navbar-collapse .navbar-nav").children().first().attr('id', 'home-link'); -$("#home-link").next().attr('id', 'account-link'); -$("#account-link").next().attr('id', 'options-link'); -$("#options-link").next().attr('id', 'channelset-link'); -$("#channelset-link").next().attr('id', 'layout-link'); - -// changing location of some layout elements - -$("#main").prepend($("#drinkbar").detach()); -$("#videowrap").append(''); -$("#playercontrols").append($("#mediarefresh").detach()); -$("#rightpane").prepend($("#videocontrols").detach()); -$("#rightpane").prepend($("#plcontrol").detach()); -$("#leftpane").prepend($("#newpollbtn").detach()); -$("#plcontrol").prepend($("#showmediaurl").detach()); -//$("#leftpane").prepend($("#emotelistbtn").detach()); - -// header and footer links open in a new tab - -$("#home-link a, #account-link ul a, .credit a").attr('target', '_blank'); - -// adding default CyTube Plus CSS if not set - -if ($("#chanexternalcss").length<1) { - url='https://dl.dropboxusercontent.com/s/hbhlrmys5piztgo/main.css'; - $("head").append(''); -} - -setUserCSS(); - -// adding favicon - -if (UI_Favicon=="1" && Favicon_URL!="") { - $(document).ready(function() { - $('') - .appendTo("head"); - }); -} - -// changing carets to unicode characters - -$("nav .caret, #cs-edit-dd-toggle .caret").removeClass('caret').html(' ▾'); - -// adding important messages to "Options" - -text1='Please use "Personal theme" selector in the room configuration box to select a theme for this channel. '; -text2='Please use "Click to configure" button in the room configuration box to configure this channel. '; -text3='If you want to make global changes, please go to another channel, or make changes before accepting ' - + 'special features.'; -$("#us-theme").hide(); -$("#us-theme").parent().append(''+text1+''+text3+''); -$("#us-layout").hide(); -$("#us-layout").parent().append(''+text2+''+text3+''); - -// creating channel settings filters preparation button - -csfontsimport = $('Prepare fonts filters') - .insertAfter("#cs-chatfilters-import") - .on("click", function() { - prepareFilters(); - }); - -// fixing layout after saving global user options - -$("#useroptions .modal-footer button:nth-child(1)").on("click", function() { - USEROPTS.hidevid ? location.reload() : '' - html='All changes are applying globally, but this channel uses its own layout. ' - + 'Please use "Click to configure" button to configure this channel layout.' - + 'Reload player if the wrong title is displaying. ' - + 'In HD layout or if player is removed, you may not see some elements due to CyTube API. ' - + 'If so, reload channel.'; - makeAlert("You have changed global User Preferences", html, "alert-info").appendTo("#announcements"); - compactLayout(); - setLayout(); - FLUID ? fluidLayout() : ''; - setUserCSS(); - scrollChat(); - scrollQueue(); -}); - -// changing channel name - -if (UI_ChannelName=="1" && ChannelName_Caption!="") { - $(".navbar-brand").html(ChannelName_Caption); -} - -// adding channel small logo - -if (UI_MiniLogo=="1" && MiniLogo_URL!="") { - $('').prependTo(".navbar-brand"); -} - -// adding header dropdown menu - -if (UI_HeaderDropMenu=="1") { - HeaderDropMenu_Title=="" ? HeaderDropMenu_Title='Menu' : ''; - headerdrop = $('') - .insertAfter("#home-link"); - $('') - .html(HeaderDropMenu_Title+' ▾') - .appendTo(headerdrop); - headermenu = $('') - .appendTo(headerdrop); - - HeaderDropMenu_Array.length<1 ? HeaderDropMenu_Array=[['no menu available', '']] : ''; - for (i in HeaderDropMenu_Array) { - title=HeaderDropMenu_Array[i][0]; - link=HeaderDropMenu_Array[i][1]; - if (link=="") { - headermenu.append(''+title+''); - } else { - $('') - .append(''+title+'') - .appendTo(headermenu); - } - } -} - -// optional removing of "Layout" menu from header - -if (UI_RemoveLayoutMenu=="1") { - $("#layout-link").remove(); -} else { - $("#layout-link li:nth-child(2) a").on("click", function() { - $("#configform, #modeform, #pinup-btn").hide(); - fitChat("auto"); - }); -} - -// changing some button captions or welcome message - -if (UI_CustomCaptions=="1") { - if (CustomCaptions_Array['add']!="") { - $("#showmediaurl").html(CustomCaptions_Array['add']); - } - if (CustomCaptions_Array['refresh']!="") { - $("#mediarefresh").html(CustomCaptions_Array['refresh']); - } - if (CustomCaptions_Array['voteskip']!="") { - socket.on("voteskip", changeSkipText); - changeSkipText(); - } - if (CustomCaptions_Array['welcome']!="") { - socket.on("login", changeWelcomeText); - changeWelcomeText(); - } -} - -// deleting previous MOTD - -UI_MOTDDelete=="1" ? $("#motd").html('') : ''; - -// setting MOTD - -if (UI_MOTDAutoLogo=="1" || UI_RulesBtn=="1" || (UI_MOTDTabs=="1" && MOTDTabs_Array.length>0)) { - socket.on("setMotd", changeMOTD); - changeMOTD(); -} - -// setting MOTD logo - -if (UI_MOTDAutoLogo=="1") { - if (MOTDAutoLogo_Mode!="1" && MOTDAutoLogo_Mode!="2" && MOTDAutoLogo_Mode!="3" && MOTDAutoLogo_Mode!="7") { - MOTDAutoLogo_Mode='1'; - } - if (MOTDAutoLogo_Mode=="3") { - if (typeof MOTDAutoLogo_Interval!=="number" || MOTDAutoLogo_Interval<1) { - MOTDAutoLogo_Interval=20; - } - setInterval(function() { - nr=Math.floor(Math.random()*MOTDAutoLogo_Array.length); - $("#motdlogo").attr('src', MOTDAutoLogo_Array[nr]); - }, MOTDAutoLogo_Interval*1000); - } -} - -// adding attention bar - -if (UI_AttentionBar=="1" && AttentionBar_URL!="") { - attbarwrap = $('').prependTo("#announcements"); - attbar = $('') - .attr('src', AttentionBar_URL) - .appendTo(attbarwrap); -} - -// adding custom channel announcement - -if (UI_ChannelAnnouncement=="1") { - ChannelAnnouncement_Title=="" ? ChannelAnnouncement_Title='Administration Message' : ''; - ChannelAnnouncement_HTML=="" ? ChannelAnnouncement_HTML='no messages' : ''; - makeAlert(ChannelAnnouncement_Title, ChannelAnnouncement_HTML).appendTo("#announcements"); -} - -// adding full-width title bar and progress bar - -if (UI_FullTitleBar=="1") { - titlerow = $('').insertBefore("#main"); - titlerowouter = $('') - .html($("#currenttitle").detach()) - .appendTo(titlerow); - mediainfo = $('').html('Nothing playing').prependTo("#videowrap"); - - UI_ProgressBar=="1" ? setInterval(function() {progressBar()}, 2000) : ''; - - socket.on("changeMedia", showInfo); - showInfo(); - - if (UI_TitleIcon=="1" && TitleIcon_URL!="") { - $("#titlerow #currenttitle").css({ - 'background-image':'url("'+TitleIcon_URL+'")', - 'background-repeat':'no-repeat', - 'background-position':'left center' - }); - } -} - -// changing title bar description - -if (UI_TitleBarDescription=="1") { - socket.on("changeMedia", changeTitle); - changeTitle(); -} - -// easter egg - -function inba() { - $("body").css('background-image', 'none'); - BGCHANGE++; - BGCHANGE%2==0 ? $("body").css('background-color', 'gold') : $("body").css('background-color', 'blue'); -} - -// customizing chat notifications sound - -if (UI_CustomPingSound=="1" && CustomPingSound_URL!="") { - CHATSOUND = new Audio(CustomPingSound_URL); - CHATSOUND.volume=0.6; -} - -// additional chat functions - -chatflair = $('Func') - .insertAfter("#adminflair") - .on("click", function() { - if(!CHATFUNC) { - $("#sounds-dropdown").remove(); - SOUNDSPANEL = false; - showChatFunctions(); - CHATFUNC = true; - } else { - $("#chatfunc-dropdown").remove(); - CHATFUNC = false; - } - }); -socket.on("rank", toggleChatFunctions); -toggleChatFunctions(); - -// optional chat joining message - -if (UI_JoinText=="1") { - JoinText_Message=="" ? JoinText_Message="joined" : ''; - socket.emit("chatMsg", {msg: '/me '+JoinText_Message}); -} - -// optional chat leaving message - -if (UI_LeaveText=="1") { - LeaveText_Message=="" ? LeaveText_Message="left" : ''; - $(window).unload(function() { - socket.emit("chatMsg", {msg: '/me '+LeaveText_Message}); - }); -} - -// adding chat buttons wrapping - -if (UI_FontsBtn=="1" || UI_EmotesBtn=="1" || UI_CommandsBtn=="1" || UI_SoundFilters=="1" || UI_ModPanel=="1" || UI_ChatSpeak=="1") { - chatcontrols = $('').appendTo("#chatwrap"); -} - -// adding chat fonts button - -if (UI_FontsBtn=="1") { - fontsbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - toggleDiv(fontspanel); - }); -} - -// adding chat emotes button - -if (UI_EmotesBtn=="1") { - emotesbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - toggleDiv(emotespanel); - (UI_ChannelCache!="1" && !EMOTES) ? showEmotes() : ''; - }); -} - -// adding chat commands button - -if (UI_CommandsBtn=="1" && (UI_UserCommands=="1" || UI_FontsBtn=="1" || UI_ChatSpeak=="1")) { - chathelpbtn = $('') - .text('Chat Commands') - .appendTo(chatcontrols) - .on("click", function() { - showChatHelp(); - }); -} - -// adding chat sounds toggle button and control panel - -if (UI_SoundFilters=="1" || UI_ChatSpeak=="1") { - voicesbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - if(!SOUNDSPANEL) { - $("#chatfunc-dropdown").remove(); - CHATFUNC=false; - showSoundsPanel(); - SOUNDSPANEL = true; - } else { - $("#sounds-dropdown").remove(); - SOUNDSPANEL = false; - } - }); - VOICES=true; -} - -// adding moderators panel button - -if (UI_ModPanel=="1") { - modbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - showModPanel(); - }); - - socket.on("rank", toggleModPanel); - toggleModPanel(); -} - -// adding player control buttons - -if (UI_PlayerOptions=="1") { - if (UI_FullTitleBar=="1") { - switchdescrbtn = $('') - .attr('title', 'Switch description') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - DEFDESCR = !DEFDESCR; - showInfo(); - }); - } - - hideplayerbtn = $('') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - $(this).hasClass('btn-danger') ? showPlayer() : coverPlayer(); - }); - - muteplayerbtn = $('') - .append('') - .appendTo("#playercontrols") - .on("click", function() { - if ($(this).hasClass('btn-danger')) { - $(this).removeClass('btn-danger').attr('title', 'Mute player'); - unmutePlayer(); - } else { - $(this).addClass('btn-danger').attr('title', 'Unmute player'); - mutePlayer(); - } - }); - - socket.on("changeMedia", toggleMuteBtn); - toggleMuteBtn(); - - savemediabtn = $('') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - downloadCurrentItem(); - }); -} - -// adding player transformation buttons - -if (UI_TransformationBtns=="1") { - transcontrols = $('').appendTo("#videowrap"); - - mirrorxbtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('mX')) { - $("#ytapiplayer").removeClass('mX'); - } else { - $("#ytapiplayer").addClass('mX'); - } - }); - - mirrorybtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('mY')) { - $("#ytapiplayer").removeClass('mY'); - } else { - $("#ytapiplayer").addClass('mY'); - } - }); - - rotatebtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('rotate')) { - $("#ytapiplayer").removeClass('rotate'); - } else { - $("#ytapiplayer").addClass('rotate'); - } - }); - - verticalbtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('vertical')) { - $("#ytapiplayer").removeClass('vertical'); - this.attr('title', 'Vertical player'); - } else { - $("#ytapiplayer").addClass('vertical'); - this.attr('title', 'Horizontal player'); - } - }); -} - -// creating fonts and emotes main row - -if (UI_FontsBtn=="1" || UI_EmotesBtn=="1") { - chatpanel = $('').insertBefore("#playlistrow"); -} - -// adding fonts panel - -if (UI_FontsBtn=="1") { - fontspanel = $('').appendTo(chatpanel); - fontsbtnwrap = $('').appendTo(fontspanel); - - FontsArray = [ - ['background:white', 'white', '■'], - ['background:gold', 'yellow', '■'], - ['background:orange', 'orange', '■'], - ['background:#FFBBFF', 'pink', '■'], - ['background:red', 'red', '■'], - ['background:limegreen', 'lime', '■'], - ['background:green', 'green', '■'], - ['background:aqua', 'aqua', '■'], - ['background:blue', 'blue', '■'], - ['background:#660099', 'violet', '■'], - ['background:#660000', 'brown', '■'], - ['background:silver', 'silver', '■'], - ['background:black', 'black', '■'], - ['background:black; color:white', 'bw', 'a'], - ['background:white; font-weight:bold; color:black', 'b', 'B'], - ['background:white; font-style:italic; color:black', 'i', 'I'], - ['background:white; text-decoration:underline; color:black', 'u', 'U'], - ['background:white; text-decoration:line-through; color:black', 's', 's'], - ['background:gold; color:red', 'd', 'D'], - ['background:black; color:gold; font-family:impact, sans-serif', 'f', 'F'], - ['background:black; color:white', 'sp', 'sp'], - ['background:white; color:black; border:solid 2px red', '\\/', '\[\/\]'], - ]; - - for (i in FontsArray) { - $('') - .addClass('btn btn-default').attr('style', FontsArray[i][0]).text(FontsArray[i][2]) - .appendTo(fontsbtnwrap); - i%13==12 ? fontsbtnwrap.append('') : false; - } - - if (UI_UnicodeChars=="1" && UnicodeChars_Array.length>0) { - unibtnwrap = $('').appendTo(fontspanel); - for (i in UnicodeChars_Array) { - btn=$('') - .addClass('btn btn-default').text(UnicodeChars_Array[i]) - .appendTo(unibtnwrap); - } - } -} - -// adding emotes panel - -if (UI_EmotesBtn=="1") { - emotespanel = $('').appendTo(chatpanel); - UI_ChannelCache=="1" ? showEmotes() : ''; -} - -// adding background image to empty playlistrow corner - -if (UI_EmptyCornerBackground=="1" && EmptyCornerBackground.length>0) { - rnd=Math.round(Math.random()*(EmptyCornerBackground.length-1)); - $("#playlistrow").css({ - 'background-image':'url("'+EmptyCornerBackground[rnd]+'")', 'background-repeat':'no-repeat' - }); -} - -// adding layout configuration panel button - -layoutbtn = $('') - .html(' Layout') - .prependTo("#leftpane") - .on("click", function() { - toggleConfigPanel(); - }); -$("#playlistmanagerwrap").show(); - -// adding media database and gallery wrap - -if (UI_ChannelDatabase=="1" || UI_ChannelGalleries=="1") { - leftpanecontrols = $('').insertAfter(layoutbtn); -} - -// adding media database button - -if (UI_ChannelDatabase=="1") { - dbbtn = $('Bumps') - .appendTo(leftpanecontrols) - .on("click", function() { - toggleDiv(dbwrap); - !CHANDB ? createDatabase() : ''; - }); -} - -// adding galleries button - -if (UI_ChannelGalleries=="1") { - gallerybtn = $('Channel Galleries') - .appendTo(leftpanecontrols) - .on("click", function() { - toggleDiv(gallerywrap); - !GALLERY ? createGallery() : ''; - - // patch: strange imgur behaviour (not loading first cached gallery) - if(!GALLVIS && UI_ChannelCache=="1" && gallerywrap.css('display')!="none") { - iframe=document.getElementById("galleryFrame"); - if(iframe.src.indexOf('imgur.com')>-1) { - iframe.src=iframe.src; - } - } - GALLVIS=true; - }); -} - -// adding layout configuration well - -configwrap = $('').appendTo("#leftpane-inner"); -configwell = $('').appendTo(configwrap); - -if (!LAYOUTBOX) { - toggleDiv(configwrap); - layoutbtn.removeClass('btn-success'); -} - -// adding layout configuration form - -configform = $('').appendTo(configwell); -$('Global layout').appendTo(configform); -configbtnwrap = $('').appendTo(configform); - -configbtn = $('Click to configure') - .appendTo(configbtnwrap) - .on("click", function() { - showConfig(); - }); - -configbtnwrap.append(''); - -fluidlayout = $('').appendTo(configbtnwrap); -cbox = $('') - .appendTo(fluidlayout) - .on("click", function() { - toggleFluidLayout(); - }); -cbox.after(' Fluid'); - -minlayout = $('').appendTo(configbtnwrap); -cbox = $('') - .appendTo(minlayout) - .on("click", function() { - toggleMinLayout(); - }); -cbox.after(' Minimized'); - -// adding selector with player display modes - -if (UI_DisplayModeSel=="1") { - modeform = $('').appendTo(configwell); - $('Display mode').appendTo(modeform); - modewrap = $('').appendTo(modeform); - - modesel = $('') - .append('synchtube mode') - .append('cinema mode') - .append('chatroom mode') - .append('silent mode') - .append('radio mode') - .appendTo(modewrap) - .on("change", function() { - $("#config-btn, #configbtnwrap br").hide(); - $("#min-layout").parent().hide(); - $("#sounds-dropdown, #chatfunc-dropdown").remove(); - SOUNDSPANEL=false; - CHATFUNC=false; - PLAYER.type=="jw" ? refreshPlayer() : ''; - setMode($(this).val()); - scrollQueue(); - scrollChat(); - showPlayer(); - }); - - socket.on("changeMedia", setModeAfterVideoChange); -} - -// adding selector with channel themes - -themeform = $('').appendTo(configwell); -$('Personal theme').appendTo(themeform); -themewrap = $('').appendTo(themeform); - -themesel = $('') - .append('default themes') - .append('# Light') - .append('# Bootstrap') - .append('# Slate') - .append('# Cyborg') - .appendTo(themewrap) - .on("change", function() { - $("#sounds-dropdown, #chatfunc-dropdown").remove(); - $("#playlistmanagerwrap").show(); - SOUNDSPANEL=false; - CHATFUNC=false; - USERTHEME=$(this).val(); - setUserCSS(); - setOpt(CHANNEL.name+"_theme", USERTHEME); - }); - -if (ThemesCSS.length>0) { - themesel.append('additional themes'); - for (i in ThemesCSS) { - themesel.append(''+ThemesCSS[i][0]+''); - } -} - -if (UI_ChannelTheme=="1" && ChannelThemeURL!="") { - themesel.prepend('# Channel Theme') - .prepend('main theme'); -} - -themesel.val(USERTHEME); - -// adding temporary hiding options - -hideform = $('').appendTo(configwell); -$('Temporary hide').appendTo(hideform); -hidewrap = $('').appendTo(hideform); - -hidemotd = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidemotd) - .on("click", function() { - toggleDiv("#motdrow"); - }); -cbox.after(' MOTD'); - -hideann = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hideann) - .on("click", function() { - toggleDiv("#announcements"); - }); -cbox.after(' Announcements'); - -hidetitle = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidetitle) - .on("click", function() { - toggleDiv("#titlerow"); - toggleDiv("#currenttitle"); - }); -cbox.after(' Title'); - -hidepl = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidepl) - .on("click", function() { - toggleDiv("#queue"); - toggleDiv("#plmeta"); - }); -cbox.after(' Playlist'); - -hidehf = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidehf) - .on("click", function() { - $("nav").css('display')!="none" ? headerMode("fixed") : headerMode(USERCONFIG.header); - toggleDiv("nav"); - toggleDiv("footer"); - }); -cbox.after(' H&F'); - -// adding embedding options - -if (UI_EmbeddingMedia=="1" && (EmbeddingMedia_Images!="" || EmbeddingMedia_Videos!="")) { - embedform = $('').appendTo(configwell); - $('Embeds [?]') - .appendTo(embedform); - embedwrap = $('').appendTo(embedform); - - $("#embed-help").on("click", function() { - txt = 'This option lets you see images or videos directly on the chat, instead of links.\n' - + 'Click on image or double click on video to open in the new tab.\n' - + 'All videos are muted by default, if autoplay - click to unmute, else click to play.\n\n' - + 'This channel supports following types of links (specified as CSS codes):\n' - + '■ Images - '; - (EmbeddingMedia_Images!="") ? txt+=EmbeddingMedia_Images : 'none'; - txt += '\n■ Videos - '; - (EmbeddingMedia_Videos!="") ? txt+=EmbeddingMedia_Videos : 'none'; - alert(txt); - }); - - if (EmbeddingMedia_Images!="") { - embedimg = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(embedimg) - .on("click", function() { - EMBEDIMG = !EMBEDIMG; - setOpt(CHANNEL.name+"_embedimg", EMBEDIMG); - }); - cbox.after(' img'); - !EMBEDIMG ? cbox.removeAttr('checked') : ''; - } - - if (EmbeddingMedia_Videos!="") { - embedvid = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(embedvid) - .on("click", function() { - EMBEDVID = !EMBEDVID; - setOpt(CHANNEL.name+"_embedvid", EMBEDVID); - EMBEDVID ? autovid.show() : autovid.hide(); - }); - cbox.after(' video'); - !EMBEDVID ? cbox.removeAttr('checked') : ''; - - autovid = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(autovid) - .on("click", function() { - AUTOVID = !AUTOVID; - setOpt(CHANNEL.name+"_autovid", AUTOVID); - }); - cbox.after(' autoplay'); - !AUTOVID ? cbox.removeAttr('checked') : ''; - !EMBEDVID ? autovid.hide() : ''; - } -} - -// adding quick commands and volume buttons - -if (UI_QuickCommandsBtns=="1" || UI_VolumeBtns=="1") { - funcbtnform = $('').appendTo(configwell); - $('Command buttons').appendTo(funcbtnform); - funcbtnwrap = $('').appendTo(funcbtnform); - btnsgroup = $('').appendTo(funcbtnwrap); - - if (UI_QuickCommandsBtns=="1") { - clearbtn = $('/clear') - .appendTo(btnsgroup) - .on("click", function() { - if (confirm('Are you sure to clear the chat window?')) { - socket.emit("chatMsg", {msg: '/clear'}); - } - }); - afkbtn = $('/afk') - .appendTo(btnsgroup) - .on("click", function() { - socket.emit("chatMsg", {msg: '/afk'}); - }); - - socket.on("rank", toggleClearBtn); - toggleClearBtn(); - } - - if (UI_VolumeBtns=="1") { - voldownbtn = $('vol -') - .appendTo(btnsgroup) - .on("click", function() { - a=PLAYER.player.getVolume(); - PLAYER.player.setVolume(a-1); - }); - volupbtn = $('vol +') - .appendTo(btnsgroup) - .on("click", function() { - a=PLAYER.player.getVolume(); - PLAYER.player.setVolume(a+1); - }); - - socket.on("changeMedia", toggleVolBtn); - toggleVolBtn(); - } -} - -// adding media database layout - -if (UI_ChannelDatabase=="1" && ChannelDatabase_URL=="") { - dbwrap = $('').insertBefore(configwrap); - dbwell = $('').appendTo(dbwrap); - - var item_nr=0; - var layer_nr=1; - var opening=new Array(); - var item_count=new Array(0); - var count_nr=0; - - if (ChannelDatabase.length<1 || ChannelDatabase[0][0]!="") { - ChannelDatabase.unshift(['', '(various media)']); - } - UI_ChannelCache=="1" ? createDatabase() : ''; -} else if (UI_ChannelDatabase=="1" && ChannelDatabase_URL!="") { - $.getScript(ChannelDatabase_URL); -} - -// adding galleries layout - -if (UI_ChannelGalleries=="1") { - gallerywrap = $('') - .appendTo("#leftpane-inner"); - gallerywell = $('').appendTo(gallerywrap); - - if (ChannelGalleries_Array.length<1) { - ChannelGalleries_Array=[['Anime pictures', 'http://imgur.com/a/SjwJb/embed']]; - } - UI_ChannelCache=="1" ? createGallery() : ''; -} - -// unchecking temporary media checkbox for registered users - -if (UI_DefaultNonTemp=="1") { - CLIENT.rank>0 ? $(".add-temp").prop('checked', false) : ''; -} - -// adding playlist options for moderators button - -advplaylist = $('') - .append('') - .insertBefore("#qlockbtn") - .on("click", function() { - toggleDiv(advplcontrols); - }); - -// adding advanced playlist options form - -advplcontrol = $('').insertAfter("#playlistmanager"); -advplcontrols = $('').appendTo(advplcontrol); - -// adding advanced playlist options buttons - -playnextbtn = $('Play next') - .appendTo(advplcontrols) - .on("click", function() { - socket.emit("playNext"); - }); - -addrandombtn = $('Add random') - .appendTo(advplcontrols) - .on("click", function() { - addRandomItem(); - }); - -bumplastbtn = $('Bump last') - .appendTo(advplcontrols) - .on("click", function() { - len=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+len+")").data("uid"); - socket.emit("moveMedia", {from:uid, after:PL_CURRENT}); - }); - -deletelastbtn = $('Delete last') - .appendTo(advplcontrols) - .on("click", function() { - if (confirm('Are you sure to delete last item?')) { - len=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+len+")").data("uid"); - socket.emit("delete", uid); - } - }); - -toggleAdvancedPl(); - -// adding playlist expanding button - -expandbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - expandQueue(); - }); - -// adding playlist scrolling button - -scrollbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - scrollQueue(); - }); - -// adding contributors button - -contribbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - showContributors(); - }); - -// adding pin-up button - -pinupbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - !PINNED ? pinUp() : unPin(); - scrollQueue(); - scrollChat(); - }); - -// extending 'Get URLs' function - -if (UI_ExtendedGetURLs=="1") { - $("#getplaylist").unbind() - .on("click", function() { - getPlaylistURLs(); - }); -} - -// altering message for the first-timers - -if ($("#plonotification").length>0) { - repl = '"the old style" of playlist buttons (recommended) - more compact playlist with nice icons ' - + '(see image ' - + 'here).'; - html=$("#plonotification .alert").html().replace(/the old style of playlist buttons./, repl); - html=html.replace('right click). ', 'right click).'); - $("#plonotification .alert").html(html); -} - -// rearranging footer - -/*html='CyTube Plus 4.5 · Copyright © 2013-2014 Zimny Lech · ' - + 'Free source on GitHub · ' - + 'Wiki'; -$(".credit").append(html);*/ - -if (UI_CustomRightFooter=="1") { - rightfooter = $(''+CustomRightFooter_HTML+'') - .appendTo("footer .container"); -} - -if (UI_CustomFooter=="1" || UI_UserStatistics=="1") { - leftfooter = (UI_CustomRightFooter=="1") ? $('') : $(''); - (UI_CustomRightFooter=="1" && CustomFooter_HTML!="") ? leftfooter.html(CustomFooter_HTML) : ''; - leftfooter.appendTo("footer .container"); -} - -// updating user visits - -USERVISITS++; -setOpt(CHANNEL.name+"_visits", USERVISITS); - -if (UI_UserStatistics=="1") { - (UI_CustomFooter=="1" && CustomFooter_HTML!="") ? $('').appendTo(leftfooter) : ''; - - $('My visits: '+USERVISITS+' / ') - .appendTo(leftfooter); - $('Current online time: ').appendTo(leftfooter); - onlinetime = $('0:00').appendTo(leftfooter); - - setInterval(function() {onlineTime()}, 60000); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- Chat and window extensions and events ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -(UI_EmbeddingMedia=="1" && (EmbeddingMedia_Images!="" || EmbeddingMedia_Videos!="")) ? ALTERCHATFORMAT=true : ''; -(UI_UserMarks=="1" || UI_IndependentEmotes=="1" || UI_IndependentFilters=="1") ? ALTERCHATFORMAT=true : ''; - -// alter chat messages formatting -// DEV NOTE: this is extended function from CyTube "util.js" file - -/*if (ALTERCHATFORMAT) { - function formatChatMessage(data, last) { - if (!data.meta || data.msgclass) { - data.meta = {addClass:data.msgclass, addClassToNameAndTimestamp:data.msgclass}; - } - - skip=data.username===last.name; - data.meta.addClass==="server-whisper" ? skip=true : '';*/ - //*data.msg.match(/^\s*\w+\s*:\s*<\/strong>\s*/) ? skip=false : '';/* - /*data.meta.forceShowName ? skip=false : ''; - data.msg=execEmotes(data.msg); - - last.name = data.username; - div = $(''); - if (data.meta.addClass==="drink") { - div.addClass('drink'); - data.meta.addClass=''; - } - - if (USEROPTS.show_timestamps) { - time = $('').appendTo(div); - timestamp = new Date(data.time).toTimeString().split(' ')[0]; - time.text('['+timestamp+'] '); - if (data.meta.addClass && data.meta.addClassToNameAndTimestamp) { - time.addClass(data.meta.addClass); - } - } - - if (UI_UserMarks=="1" && UI_Squavatars=="1") { - html=createSquavatar(data.username); - div.html(div.html()+html); - } - if (UI_UserMarks=="1" && UI_Squavatars!="1") { - if (UserMarks_Array[data.username]!=undefined) { - html=''+UserMarks_Array[data.username]+''; - div.html(div.html()+html); - } - } - - uname = $(''); - !skip ? uname.appendTo(div) : ''; - mark = (UI_UsernameMark=="1" && UsernameMark_Char!="") ? UsernameMark_Char : ':'; - $('').text(data.username+mark+' ').appendTo(uname); - - data.meta.modflair ? uname.addClass(getNameColor(data.meta.modflair)) : ''; - if (data.meta.addClass && data.meta.addClassToNameAndTimestamp) { - uname.addClass(data.meta.addClass); - } - if (data.meta.superadminflair) { - uname.addClass('globalmod label').addClass(data.meta.superadminflair.labelclass); - $('').addClass(data.meta.superadminflair.icon) - .prependTo(uname); - } - - message = $('').appendTo(div); - message[0].innerHTML=data.msg; - - (data.meta.addClass=="greentext") ? message.addClass('greentext') : ''; - (data.meta.addClass=="spoiler") ? message.addClass('spoiler') : ''; - (data.meta.addClass=="action") ? message.addClass('action') : ''; - (data.meta.addClass=="server-whisper") ? message.addClass('server-whisper') : ''; - - if (data.meta.action) { - uname.remove(); - message[0].innerHTML=data.username+' '+data.msg; - } - - if (UI_IndependentEmotes=="1") { - _div=div.html(); - for (i in IndependentEmotes) { - filter=IndependentEmotes[i][0]; - html = ''; - re=new RegExp(filter, 'g'); - _div=_div.replace(re, html); - } - div.html(_div); - } - if (UI_IndependentFilters=="1") { - _div=div.html(); - for (i in IndependentFilters) { - _div=_div.replace(IndependentFilters[i].before, IndependentFilters[i].after); - } - div.html(_div); - } - - data.meta.addClass ? message.addClass(data.meta.addClass) : ''; - data.meta.shadow ? div.addClass("chat-shadow") : ''; - div.find("img").load(function() { - SCROLLCHAT ? scrollChat() : ''; - }); - - if (EMBEDIMG && UI_EmbeddingMedia=="1") { - div.find(EmbeddingMedia_Images).each(function() { - img = $('').attr('src', this.href) - .load(function() { - SCROLLCHAT ? scrollChat() : ''; - }); - $(this).html(img); - }); - } - if (EMBEDVID && UI_EmbeddingMedia=="1") { - div.find(EmbeddingMedia_Videos).each(function() { - vid = $('').attr('src', this.href).prop('loop', 'true') - .load(function() { - SCROLLCHAT ? scrollChat() : ''; - }).on("click", function() { - if (!AUTOVID) { - if ($(this).get(0).paused) { - $(this).get(0).play(); - } else { - $(this).get(0).pause(); - } - } else { - $(this).prop('muted', !$(this).prop('muted')); - }; - return false; - }).on("dblclick", function() { - window.open(this.src, '_blank'); - return false; - }); - AUTOVID ? vid.prop('autoplay', 'true').prop('muted', 'true') : ''; - UI_MediaControls=="1" ? vid.attr('controls', '') : ''; - $(this).html(vid); - }); - } - - return div; - } -}*/ - -// client-side chat buffer for playing sounds - -_chatBuffer=addChatMessage; -addChatMessage=function(data) { - if (UI_SoundFilters=="1" && VOICES && (!(data.username in MUTEDVOICES) || MUTEDVOICES[data.username]=="0")) { - for (i in SoundFilters_Array) { - if (data.msg.indexOf(i)>-1) { - aud=new Audio(SoundFilters_Array[i]); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } - } - } - if (UI_ChatSpeak=="1" && VOICES && (!(data.username in MUTEDVOICES) || MUTEDVOICES[data.username]=="0")) { - msg=getText(data.msg) - if (msg.indexOf("!mow ")>=0) { - str=msg.split("!mow "); - aud=new Audio(SPEAKLINK+'?lang=polish&text='+encodeURI(str[1])); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } else if (msg.indexOf("!say ")>=0) { - str=msg.split("!say "); - aud=new Audio(SPEAKLINK+'?lang=english&text='+encodeURI(str[1])); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } - } - _chatBuffer(data); -} - -// fix formatting and sending chat messages -// DEV NOTE: this are extended events from CyTube "util.js" file -/* -$("#chatline, #chatbtn").unbind(); - -$("#chatline").on("keydown", function(ev) { - if (ev.keyCode==13) { - if (CHATTHROTTLE) { - return; - } - _msg=$("#chatline").val(); - msg=$("#chatline").val(); - if (msg.trim()) { - msg=prepareMessage(msg.trim()); - meta={}; - if (COMMAND) { - socket.emit("chatMsg", {msg:_msg}); - msg='➥ '+msg; - COMMAND=false; - } - if (USEROPTS.adminhat && CLIENT.rank>=255) { - msg='/a '+msg; - } else if (USEROPTS.modhat && CLIENT.rank>=Rank.Moderator) { - meta.modflair=CLIENT.rank; - } - if (CLIENT.rank>=2 && msg.indexOf("/m ")===0) { - meta.modflair=CLIENT.rank; - msg=msg.substring(3); - } - socket.emit("chatMsg", {msg:msg, meta:meta}); - userChatStats(_msg); - CHATHIST.push($("#chatline").val()); - CHATHISTIDX=CHATHIST.length; - $("#chatline").val(''); - } - return; - } else if (ev.keyCode==9) { - chatTabComplete(); - ev.preventDefault(); - return false; - } else if (ev.keyCode==38) { - if (CHATHISTIDX==CHATHIST.length) { - CHATHIST.push($("#chatline").val()); - } - if(CHATHISTIDX>0) { - CHATHISTIDX--; - $("#chatline").val(CHATHIST[CHATHISTIDX]); - } - ev.preventDefault(); - return false; - } else if (ev.keyCode==40) { - if (CHATHISTIDX 3. -// CUSTOM INSTALLATION: go to -> 1. - -// 1. Configure this library according to your wishes (see configuration sections below). -// 2. Save customized library to your file hosting (e.g. Dropbox) or to your own server. -// WARNING! You must be able to access .js file directly (browser's URL must contain .js extension, not .php etc.). -// WARNING FOR DROPBOX USERS! Always use 'dl.dropboxusercontent.com' URL instead of 'www.dropbox.com' URL. - -// 3. Enter your JS file location into 'External Javascript' field in 'Channel Settings' modal window. -// 4. Enter library CSS file location into 'External CSS' field in 'Channel Settings' modal window. -// NOTE: use default 'https://dl.dropboxusercontent.com/s/180y5d6mvlu8kd8/main.css' URL, -// or copy it to your own location. -// 5. Congratulations, your have just installed CyTube Plus! - -// Need detailed options explanations? Go to https://github.com/zimny-lech/CyTube-Plus/wiki/FAQ -// Problems? Something doesn't work? Go to https://github.com/zimny-lech/CyTube-Plus/wiki/Troubleshooting - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// CONFIGURE BELOW BEFORE INSTALLING IF YOU WANT TO CUSTOMIZE THIS LIBRARY - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- STARTING CONFIGURATION - USER INTERFACE (UI) ----- */ - -// CONFIGURATION NOTES: - -// In this section you can immediately enable and disable each option (set '1' to enable, '0' to disable) -// Every option marked as [&] requires additional configuration (see other sections below) -// WARNING! apostrophe sign (') in all text/html values must be prepend with "\" sign (e.g. "don\'t") - -// FILTERS INSTALLATION: open 'Channel Settings' modal window, go to 'Edit' -> 'Chat Filters', -// click 'Prepare fonts filters' button, and import - -// If you need more explanations, go to https://github.com/zimny-lech/CyTube-Plus/wiki/FAQ - -UI_DefaultSynchtube = 1; // default old Synchtube layout (player and playlist on the left) -UI_Favicon = 0; // [&] channel favicon -UI_MiniLogo = 0; // [&] small channel logo/avatar in the top navbar -UI_ChannelName =0; // [&] channel custom brand name -UI_HeaderDropMenu = 0; // [&] additional header dropdown menu -UI_RemoveLayoutMenu = 1; // removing 'Layout' menu from the header -UI_MOTDAutoLogo = 0; // [&] big channel logo inserted into MOTD -UI_MOTDTabs = 0; // [&] switchable MOTD tabs application for homepage-like channel header -UI_MOTDDelete = 0; // deleting previous MOTD after accepting/loading script -UI_RulesBtn = 0; // [&] button displaying channel rules -UI_AttentionBar = 0; // [&] imageboard-style attention bar (requires external application) -UI_ChannelAnnouncement = 0; // [&] additional custom channel announcement -UI_FullTitleBar = 0; // full-width video title bar -UI_ProgressBar = 1; // YouTube/Dailymotion progress bar - // [ REQUIRE: UI_FullTitleBar enabled ] -UI_TitleIcon = 1; // [&] full-width title bar icon - // [ REQUIRE: UI_FullTitleBar enabled ] -UI_TitleBarDescription = 1; // [&] custom title bar description (default "Currently Playing:") -UI_JoinText = 1; // [&] chat message after user joining -UI_LeaveText = 1; // [&] chat message after user leaving -UI_UserCommands = 1; // [&] additional commands in the chat window -UI_UserMarks = 0; // [&] special signs/avatars before every message for defined users -UI_Squavatars = 0; // automatic squavatars (2-colored square avatars) before every message - // [ REQUIRE: UI_UserMarks enabled ] -UI_UsernameMark = 1; // [&] custom mark after username (default ":") -UI_MessagesSuffix = 0; // [&] text added to random chat messages -UI_CustomPingSound = 1; // [&] custom sound for chat notifications -UI_SoundFilters = 0; // [&] chat sounds played after sending certain words -UI_ChatSpeak = 0; // text speaking after '!say' and '!mow' commands (english and polish) -UI_IndependentEmotes = 0; // [&] additional settings-independent emotes -UI_IndependentFilters = 1; // [&] additional settings-independent filters -UI_FontsBtn = 0; // button displaying box with clickable chat fonts - // [ REQUIRE: INSTALLATION (see above) ] -UI_UnicodeChars = 0; // [&] additional buttons in the fonts panel with unicode characters - // [ REQUIRE: UI_FontsBtn enabled ] -UI_EmotesBtn = 1; // button displaying box with clickable chat emotes -UI_GroupEmotes = 1; // [&] emotes panel pagination, display limited number of emotes at one time - // [ REQUIRE: UI_EmotesBtn enabled ] -UI_CommandsBtn = 1; // button displaying modal window with chat commands help -UI_ModPanel = 0; // [&] panel with messages and help for moderators -UI_CustomCaptions = 0; // [&] custom captions for add, refresh, voteskip buttons, and welcome text -UI_PlayerOptions = 1; // [&] additional player options -UI_TransformationBtns = 1; // player transformation buttons -UI_ChannelDatabase = 1; // [&] box with embed additional media database -UI_ChannelGalleries = 0; // [&] box with embed galleries -UI_DisplayModeSel = 1; // selector with player display modes -UI_ChannelTheme = 1; // [&] additional default channel theme -UI_EmbeddingMedia = 1; // [&] possibility to embedding (displaying) images and .webm videos on the chat -UI_MediaControls = 1; // embedded video preloaded controls - // [ REQUIRE: UI_EmbeddingMedia enabled ] -UI_QuickCommandsBtns = 1; // buttons with '/clear' and '/afk' functions -UI_VolumeBtns = 1; // additional volume buttons for YouTube player -UI_EmptyCornerBackground = 0; // [&] random background image for empty playlist row corner -UI_ExtendedGetURLs = 1; // extended 'Get URLs' function -UI_DefaultNonTemp = 1; // default unchecking "Add as temporary" checkbox after loading for registered users -UI_CustomFooter = 0; // [&] custom channel footer -UI_CustomRightFooter = 0; // [&] right-sided footer box -UI_UserStatistics = 1; // displaying in the footer user visits number and current online time -UI_ExternalScript = 0; // [&] additional external script file -UI_ChannelCache = 1; // caching script emotes, additional media database and default gallery - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- DETAILED BASIC CONFIGURATION ----- */ - -// NOTES: -// a) values for 'MOTDAutoLogo_Mode': 1 = first logo; 2 = random logo; 3 = logo rotation; 7 = weekdays logos -// b) in 'SoundFilters_Array' use .ogg or .wav files, some browsers has problems with embedded .mp3 -// c) in 'ModPanel_Array' item leave empty first (username) field to make a message to all moderators -// d) in 'EmbeddingMedia_Images' and 'EmbeddingMedia_Videos' you can define acceptable file extensions -// use CSS syntax: e.g. 'a[href$=""]' defines acceptable end of an URL (file extension) -// you can also define URL fragments: 'a[href*=""]', or add excluding clause: '.not(\'a[href*=""]\'), etc. - /* -- single variables -- */ - -Favicon_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -MiniLogo_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -ChannelName_Caption = 'CyTube Plus'; - -HeaderDropMenu_Title = 'Synch'; - -MOTDAutoLogo_Mode = 1; - -MOTDAutoLogo_Interval = 20; - -RulesBtn_Caption = 'Read Channel Rules'; - -AttentionBar_URL = ''; - -ChannelAnnouncement_Title = 'Administration Message'; - -TitleIcon_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -TitleBarDescription_Caption = 'Now Playing:'; - -JoinText_Message = 'joined'; - -LeaveText_Message = 'left'; - -UsernameMark_Char = '>'; - -MessagesSuffix_Text = '~xD'; - -MessagesSuffix_Percentage = 10; - -CustomPingSound_URL = 'https://dl.dropboxusercontent.com/s/0qtsttblgmkewnv/beep.wav'; - -PlayerHiding_URL = 'https://dl.dropboxusercontent.com/s/xz2o99scw5i7aai/stop.png'; - -GroupEmotes_Number = 100; - -ExternalScript_URL = ''; - - /* -- arrays -- */ - -HeaderDropMenu_Array = [ -['CyTube Servers', ''], -['Calzoneman CyTube', 'http://cytu.be/'], -['6irc Synchtube', 'http://synchtube.6irc.net/'], -['CyTube Stuff', ''], -['Source code', 'https://github.com/calzoneman/sync'], -['FAQ', 'https://github.com/calzoneman/sync/wiki/Beginner%27s-Guide-and-FAQ'], -['IRC', 'http://webchat.6irc.net/?channels=chat,synchtube'], -['CyTube Plus', 'https://github.com/zimny-lech/CyTube-Plus'], -]; - -MOTDAutoLogo_Array = [ -'https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png', -]; - -MOTDTabs_Array = [ -['Home', 'Welcome to our channel!'], -['Playlist', 'Playlist tab.We watched this, that and this.'], -['Schedule', 'Schedule:Monday: ...Tuesday: ...Wendesday: ...Thursday: ...Friday: ...Saturday: ...Sunday: ...'], -['Contact', 'Contact:Email - ...Skype - ...'], -]; - -RandomQuotes_Array = [ -'I like the Pope dancing', 'No quotes today', 'O rly?', -'People have the right to be stupid. You abuse that privilege', 'Don\'t play stupid with me', -'Roses are red violets are blue, God made me pretty, what happened to you?', -'Please don\'t interrupt me while I\'m ignoring you', -'Are you always this stupid, or are you making a special effort today?', -'I like you. You remind me of when I was young and stupid.', 'Go and buy me a beer', -'The door of this channel is always open for you... so feel free to leave!', -]; - -AskAnswers_Array = [ -'100% for sure', 'definitely yes', 'yes', 'probably', 'not any chance', 'definitely no', -'a little chance', 'no', '50/50', 'fairy is tired and will not answer', 'I refuse to answer', -]; - -Memes_Array = [ -'>', 'fb', 'omfg', 'u mad', -]; - -UserMarks_Array = { -'ZimnyLech': '', -'calzoneman': '♠', -} - -SoundFilters_Array = { -'habemus': 'https://dl.dropboxusercontent.com/s/3w1jahgffowjltz/hp.ogg', -'lol': 'https://dl.dropboxusercontent.com/s/9aqa1buu3phvpss/laugh.ogg', -} - -ModPanel_Array = [ -['', 'Welcome to the moderators panel. You can find here messages, news and help for all channel moderators, edited by script admin.'], -['', 'To temporary insert to the playlist any website instead of media files, click "Embed a custom frame" button in the playlist controls section. Then paste example code to the textarea: <iframe src="URL_of_your_page"></iframe>, and add.'], -]; - -CustomCaptions_Array = { -'add': 'Add here', -'refresh': 'Refresh player', -'voteskip': 'Voteskip', -'welcome': 'Hi', -} - -UnicodeChars_Array = [ -'★', '☆', '▲', '▼', '♥', '♪', '♿', '⚒', '♕', '✉', '☏', '♠', '→', -'☑', '☒', '✡', '☪', '✝', '☭', '☯', 'Ⓐ', '☕', '♨', '¥', '©', '∞', -]; - -ChannelGalleries_Array = [ -['Anime pictures', 'http://imgur.com/a/SjwJb/embed'], -['Historical photos', 'http://imgur.com/a/vnwC2/embed'], -]; - - /* -- HTML/CSS -- */ - -MOTDTabs_CSS = { -'padding': '20px', -'color': 'white', -'background-color': 'black', -} - -RulesBtn_HTML = 'You want to write on the chat? Enter temporary nickname into Guest Login input and click enter.You want to register a nick? Click Account -> Profile on the top of the channel, and fill the registration form. You don\'t need an email to register.Do not spam.You want to have this application on your own channel? Go to https://github.com/zimny-lech/CyTube-Plus.'; - -ChannelAnnouncement_HTML = ''; - -EmbeddingMedia_Images = 'a[href$=".jpg"], a[href$=".jpg:large"], a[href$=".jpeg"], a[href$=".JPG"], a[href$=".png"], a[href$=".tiff"], a[href$=".gif"]'; - -EmbeddingMedia_Videos = 'a[href$=".webm"]'; - -CustomFooter_HTML = 'This is custom footer.'; - -CustomRightFooter_HTML = ''; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- THEMES CONFIGURATION ----- */ - -// NOTES: -// a) TopUserLogo item has 3 attributes: name, URL, maximum height. -// Those images can be selected by user in Layout Configuration panel, and will be displayed on the channel top. - -ChannelThemeURL = 'https://ourfore.st/css/themes/fore.st.css'; - -ThemesCSS = [ -['forest', 'https://ourfore.st/css/themes/fore.st.css'], -['Plus Red', 'https://dl.dropboxusercontent.com/s/th8i1sj332wi0x9/plusred.css'], -['Celadon', 'https://dl.dropboxusercontent.com/s/iwarwhhph1ti2ek/celadon.css'], -]; - -TopUserLogo = [ -['cytube plus', 'https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png', 90], -['cosmos', 'https://dl.dropboxusercontent.com/s/v6dx49yqk5e3i2d/cosmos.jpg', 200], -['disco ball', 'https://dl.dropboxusercontent.com/s/ahpfm25pglc8j01/disco.jpg', 162], -['japanese landscape', 'https://dl.dropboxusercontent.com/s/llylt832evxrp6e/japan.jpg', 200], -['korean collage', 'https://dl.dropboxusercontent.com/s/qud9adhs183dq30/korea.jpg', 160], -]; - -EmptyCornerBackground = [ -'https://dl.dropboxusercontent.com/s/xa32t6jh68lor6p/kirino.png', -'https://dl.dropboxusercontent.com/s/xbz6j5vjqs34ihm/kobato0.png', -'https://dl.dropboxusercontent.com/s/sj67s6u5vwe6i7s/kuroneko.png', -'https://dl.dropboxusercontent.com/s/y9nnwvbrcbjm0fm/tsukiko.png', -'https://dl.dropboxusercontent.com/s/7bigihfi4ho0d29/moetan.png', -'https://dl.dropboxusercontent.com/s/0cg72kjsnt4p63g/azuki.png', -'https://dl.dropboxusercontent.com/s/va28xkaoz1co3ah/sakura.png', -]; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- INDEPENDENT EMOTES AND FILTERS CONFIGURATION ----- */ - -// NOTES ABOUT INDEPENDENT EMOTES: -// Every item has 4 attributes, respectively: chat code, image URL, image width, image height. -// Warning: due to conflict with RegExp, do not use square brackets or use proper "\\[" and "\\]" codes. - -IndependentEmotes = [ -[':awesome:', 'https://dl.dropboxusercontent.com/s/gz1k8oto90n16v6/awesome.png', 35, 35], -[':love:', 'https://dl.dropboxusercontent.com/s/fr9131zgnai0kix/heart.png', 35, 35], -]; - -// NOTES AND DEFAULT FILTERS EXAMPLES: -// If you use regular expression, you must put it between // signs with /g flag to change all occurences -// a) [mq]text[/mq] - fast scrolling text -// b) [mq0]text[/mq0] - slow scrolling text -// c) [imgur]suok1xr.jpg[/imgur] - imgur picture -// d) [drop]7mrz85gl29eiiks/logo.png[/drop] - dropbox picture -// e) [minus/i5]ig0qs6fvWvgBu.jpg[/minus] - minus.com picture -// f) [vi/b]1r8ih4t1.vichan.png[/vi] - vichan /b/ imageboard picture (you can use other boards too) - -IndependentFilters=[ -{ -before:/\[mq\](.*?)\[\/mq\]/g, -after:'$1' -}, -{ -before:/\[mq0\](.*?)\[\/(mq0|mq)\]/g, -after:'$1' -}, -{ -before:/\[imgur\](.*?)\[\/(i|imgur)\]/g, -after:'' -}, -{ -before:/\[drop\](.*?)\[\/(d|drop)\]/g, -after:'' - + '' -}, -{ -before:/\[minus\/(.*?)\](.*?)\[\/(m|minus)\]/g, -after:'' - + '' -}, -{ -before:/\[vi\/(.*?)\](.*?)\[\/(v|vi)\]/g, -after:'' - + '' -}, -]; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- MEDIA DATABASE CONFIGURATION ----- */ - -// NOTES: -// Leave empty URL field to create category button. -// WARNING! Use ChannelDatabase_URL only if you want to use external database file, it overwrites database below. -// If so, copy and configure 'https://raw.github.com/zimny-lech/CyTube-Plus/master/external-db.js' file. - -ChannelDatabase=[ -['', 'Japanese'], -['http://www.youtube.com/watch?v=Q3y-80HBM6Q', 'An Cafe - Smile Ichiban Ii Onna'], -['http://www.youtube.com/watch?v=nDqaTXqCN-Q', 'Babymetal - Ijime, Dame, Zettai'], -['http://www.youtube.com/watch?v=aNlkiymcT1Q', 'Hinoi Team - Ike Ike'], -['http://www.youtube.com/watch?v=JbQYK0mwLss', 'Morning Musume - Onna Ni Sachi Are'], -['http://www.youtube.com/watch?v=VZKMaFR2mtU', 'Perfume - Fake It'], -['http://www.youtube.com/watch?v=OYEHfWb1b4M', 'Shoko Nakagawa - Yuzurenai Negai'], -['http://www.youtube.com/watch?v=jvhI576M6so', 'Yuu Kikkawa - Bokarisuto?'], -['', 'Korean'], -['http://www.youtube.com/watch?v=M-XXJJFZcXg', '4Minute - Heart To Heart (jap.)'], -['http://www.youtube.com/watch?v=HchHZkkBOoE', 'As One - Catch Me Up'], -['http://www.youtube.com/watch?v=UVeTI4v24M0', 'C-REAL - No No No No No'], -['http://www.youtube.com/watch?v=04FdisNU3vw', 'Girl\'s Day - Oh! My God'], -['http://www.youtube.com/watch?v=ysnUHXksic8', 'NS Yoon-G - Reason To Become A Witch'], -['http://www.youtube.com/watch?v=mZUZdGCyLmw', 'Orange Caramel - Bangkok City'], -['http://www.youtube.com/watch?v=r-MXLmNnarQ', 'TINY-G - Minimanimo'], -['', 'Chinese'], -['http://www.youtube.com/watch?v=Bi0tjyVfHOg', 'Amber Ann - Lian Ai Yingyuan Tuan'], -['http://www.youtube.com/watch?v=dsU0Vu6aJhw', 'By2 - Love You Love You'], -['http://www.youtube.com/watch?v=ovPhJim1EUc', 'Momo - One Hundred Girlfriends '], -['http://www.youtube.com/watch?v=lxa2KqERBZE', 'S.H.E. - Shero'], -['http://www.youtube.com/watch?v=jd2-Nf86jvA', 'Weather Girls - Koi No Tenki Yohou'], -['', 'Anime songs'], -['http://www.youtube.com/watch?v=fJ_DH7jzoxQ', 'Ai No Tenshi (Perfect Blue)'], -['http://www.youtube.com/watch?v=ZNu_NV5PEM8', 'Chu☆ - Miko Miko Naasu - Ai No Teema'], -['http://www.youtube.com/watch?v=l65_QPNZ_k8', 'Hommarju feat. MAKI - Yamato Nadeshiko Education (Seitokai Yakuindomo OP)'], -['http://www.youtube.com/watch?v=dQbaJquz_jo', 'Kayo Sakata - Shoujo Q (Pani Poni Dash! OP)'], -['http://www.youtube.com/watch?v=nLSFxQijz6U', 'Kotoko - Princess Bride'], -['http://www.youtube.com/watch?v=QK-37CnYTpg', 'Princess Party Camelia OP'], -['http://www.youtube.com/watch?v=jehMXrY1q5I', 'Yui Makino - Yume No Tsubasa'], -]; - -ChannelDatabase_URL='https://ourfore.st/bumps.js'; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- END OF CONFIGURATION, DO NOT CHANGE ANYTHING BELOW ----- */ - -/* ----- Initial channel options ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// reload script after unexpected re-connection or script URL change - -var LOADED = (typeof LOADED==="undefined") ? false : true; -LOADED ? location.reload() : ''; - -/* ----- getting and setting channel options ----- */ - -if (UI_DefaultSynchtube=="1") { - defplayer="left"; defuserlist="right"; defqueue="left"; -} else { - defplayer="right"; defuserlist="left"; defqueue="right"; -} - -var DEFTHEME = (UI_ChannelTheme=="1" && ChannelThemeURL!="") ? ChannelThemeURL : "/css/themes/slate.css"; - -var USERCONFIG = { - "player":getOrDefault(CHANNEL.name+"_player", defplayer), - "userlist":getOrDefault(CHANNEL.name+"_userlist", defuserlist), - "queue":getOrDefault(CHANNEL.name+"_queue", defqueue), - "qsize":getOrDefault(CHANNEL.name+"_qsize", "wide"), - "main":getOrDefault(CHANNEL.name+"_main", "top"), - "motd":getOrDefault(CHANNEL.name+"_motd", "top"), - "logo":getOrDefault(CHANNEL.name+"_logo", "no"), - "logourl":getOrDefault(CHANNEL.name+"_logourl", ""), - "logoht":getOrDefault(CHANNEL.name+"_logoht", 250), - "header":getOrDefault(CHANNEL.name+"_header", "detached"), - "css":getOrDefault(CHANNEL.name+"_css", "no"), - "csscode":getOrDefault(CHANNEL.name+"_csscode", ""), - "modhash":getOrDefault(CHANNEL.name+"_modhash", ""), -} -var USERTHEME = getOrDefault(CHANNEL.name+"_theme", DEFTHEME); -var FLUID = getOrDefault(CHANNEL.name+"_fluid", true); -var LAYOUTBOX = getOrDefault(CHANNEL.name+"_layoutbox", true); -var SOUNDSLVL = getOrDefault(CHANNEL.name+"_soundslvl", 3); -var EMBEDIMG = getOrDefault(CHANNEL.name+"_embedimg", true); -var EMBEDVID = getOrDefault(CHANNEL.name+"_embedvid", true); -var AUTOVID = getOrDefault(CHANNEL.name+"_autovid", true); -var USERVISITS = getOrDefault(CHANNEL.name+"_visits", 0); - -var DEFDESCR = true; // standard item description in the player header -var NOPLAYER = false; // removed player in silent mode -var CHATFUNC = false; // admin chat functions panel visibility -var COMMAND = false; // aditional command occuring in the chat message -var VOICES = false; // chat sounds not disabled by user -var EMOTES = false; // emotes have been loaded into emotes panel -var CLEARING = false; // auto clearing messages window -var ANTIAFK = false; // enabled anti-AFK function -var SOUNDSPANEL = false; // chat sounds panel visibility -var PINNED = false; // playlist pinned to player -var FULLPL = false; // expanded playlist view -var MINIMIZED = false; // minimized layout -var CHANDB = false; // channel database has been loaded -var GALLERY = false; // channel galleries have been loaded -var GALLVIS = false; // channel galleries have been viewed by user -var ALTERCHATFORMAT = false; // using altered 'formatChatMessage' built-in function - -var PREVTIME = 0; // previous read of a current item time for the progress bar -var LASTADD = 0; // timestamp of the last adding random item from the channel database -var USERONLINE = 0; // user minutes online -var BGCHANGE = 0; // number of background changes for the easter egg function - -var MUTEDVOICES = new Array(); // list of users with muted chat sounds by user -var CHATSTAT = {"n":0, "l":0, "m":[]}; // array with user messages statistics -var ADDEDLINKS = new Array(); // array of links added from channel database by user - -var HASH = ''; // simple hash for comparing if the new messages have appeared in the mod panel - -WEBKIT="webkitRequestAnimationFrame" in window; -SOUNDSVALUES=new Array(0, 0.1, 0.2, 0.4, 0.7, 1); -SPEAKLINK='http://webanywhere.cs.washington.edu/cgi-bin/espeak/getsound.pl'; -IMBA=new Audio("https://dl.dropboxusercontent.com/s/xdnpynq643ziq9o/inba.ogg"); -CHATSOUND.volume=0.6; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- Global functions ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// toggle elements visibility - -function toggleDiv(div) { - $(div).css('display')=="none" ? $(div).show() : $(div).hide(); -} - -// refresh player - -function refreshPlayer() { - PLAYER.type=""; - PLAYER.id=""; - socket.emit("playerReady"); -} - -// add link to playlist - -function addToPlaylist(link, stand) { - parsed=parseMediaLink(link); - parsed["id"]!=null ? socket.emit("queue", {id:parsed["id"], pos:stand, type:parsed["type"]}) : ''; -} - -// get text content from inner HTML - -function getText(html) { - div=document.createElement("div"); - div.innerHTML=html; - return div.textContent||div.innerText; -} - -// create modal window - -function createModal(title) { - hidePlayer(); - outer = $('').appendTo($("body")); - modal = $('').appendTo(outer); - modal = $('').appendTo(modal); - head = $('').appendTo(modal); - $('').html('×').appendTo(head); - $('').text(title).appendTo(head); - body = $('').appendTo(modal); - footer = $('').appendTo(modal); - outer.on("hidden", function() { - outer.remove(); - unhidePlayer(); - }); - outer.modal(); -} - -// layout elements settings - -function playerLocation(a) { - $("#pinup-btn").show(); - if (a=="left") { - $("#videowrap").after($("#chatwrap").detach()); - normalPlayer(); - normalChat(); - } else if (a=="right") { - $("#videowrap").before($("#chatwrap").detach()); - normalPlayer(); - normalChat(); - } else if (a=="center") { - $("#videowrap").after($("#chatwrap").detach()); - $("#videowrap, #chatwrap").removeClass().addClass("col-lg-8 col-lg-offset-2 col-md-12"); - fitPlayer(); - fitChat(200); - $("#pinup-btn").hide(); - } -} - -function userlistLocation(a) { - a=="left" ? $("#userlist").css('float', 'left') : $("#userlist").css('float', 'right'); -} - -function queueLocation(a) { - $("#pinup-btn").show(); - if (a=="right") { - $("#rightpane").before($("#leftpane").detach()); - } else if (a=="left") { - $("#rightpane").after($("#leftpane").detach()); - } else if (a=="center") { - $("#rightpane").after($("#leftpane").detach()) - .removeClass().addClass('col-md-8 col-md-offset-2 col-md-12'); - $("#leftpane").removeClass().addClass('col-md-8 col-md-offset-2 col-md-12'); - $("#pinup-btn").hide(); - } - b = (a=="right") ? "left" : "right"; - $("#playlistrow").css('background-position', b+' bottom'); -} - -function queueSize(a) { - if (USERCONFIG.queue!="center") { - if (a=="wide") { - $("#leftpane").removeClass().addClass('col-lg-5 col-md-5'); - $("#rightpane").removeClass().addClass('col-lg-7 col-md-7'); - } else if (a=="narrow") { - $("#leftpane").removeClass().addClass('col-lg-7 col-md-7'); - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - } - } -} - -function mainLocation(a) { - if (a=="top") { - $("#main").before($("#titlerow").detach()).after($("#playlistrow").detach()); - } else if (a=="bottom") { - $("#main").before($("#playlistrow").detach()).before($("#titlerow").detach()); - } - $("#main").after($("#chatpanel").detach()); -} - -function motdLocation(a) { - if (a=="top") { - $("#zerorow").after($("#announcements").detach()).after($("#motdrow").detach()); - } else if (a=="bottom") { - $("#resizewrap").before($("#motdrow").detach()).before($("#announcements").detach()); - } -} - -function logoInsert(a) { - if (a!="no") { - link = (a!="user") ? TopUserLogo[a][1] : USERCONFIG.logourl; - ht = (a!="user") ? TopUserLogo[a][2] : USERCONFIG.logoht; - azukirow.css({'min-height':ht+'px', 'background-image':'url("'+link+'")'}); - } else if (a=="no") { - azukirow.css({'min-height':'5px', 'background-image':''}); - } -} - -function headerMode(a) { - $(".navbar-fixed-top").unbind(); - if (a=="fixed") { - $(".navbar-fixed-top").css({'position': 'fixed', 'top':'0px'}); - $("#mainpage").css('margin-top', '0px'); - } else if (a=="detached") { - $(".navbar-fixed-top").css('position', 'inherit'); - $("#mainpage").css('margin-top', '-72px'); - } else if (a=="mouseover") { - $(".navbar-fixed-top").css({'position':'fixed', 'top':'-40px'}) - .on("mouseover", function() { - $(".navbar-fixed-top").css('top', '0px'); - }) - .on("mouseout", function() { - $(".navbar-fixed-top").css('top', '-40px'); - }); - $("#mainpage").css('margin-top', '-40px'); - } -} - -function customCSS(a) { - $("#usercss").remove(); - a=="yes" ? $("head").append('') : ''; -} - -// set global layout according to user preferences - -function setLayout() { - playerLocation(USERCONFIG.player); - userlistLocation(USERCONFIG.userlist); - queueLocation(USERCONFIG.queue); - queueSize(USERCONFIG.qsize); - mainLocation(USERCONFIG.main); - motdLocation(USERCONFIG.motd); - logoInsert(USERCONFIG.logo); - headerMode(USERCONFIG.header); - customCSS(USERCONFIG.css); - refreshPlayer(); -} - -// fit player height - -function fitPlayer() { - VW=$("#videowrap").width()+''; - VH=Math.floor(parseInt(VW)*9/16+1)+''; - $("#ytapiplayer").width(VW).height(VH); -} - -// fit chat height - -function fitChat(a) { - if (a=="auto") { - VW=$("#messagebuffer").width(); - VH=Math.floor(parseInt(VW)*9/16+1); - } else { - VH=a; - } - $("#messagebuffer").height(VH); - $("#userlist").height(VH); -} - -// display mode helper functions - -function bigPlayer() { - $("#videowrap").removeClass().addClass("col-lg-12 col-md-12"); - fitPlayer(); -} - -function bigChat() { - $("#chatwrap").removeClass().addClass('col-lg-12 col-md-12'); - fitChat("auto"); -} - -function normalPlayer() { - $("#videowrap").removeClass().addClass("col-lg-7 col-md-7"); - fitPlayer(); -} - -function normalChat() { - c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5'; - $("#chatwrap").removeClass().addClass(c); - fitChat(338); -} - -// set display mode - -function setMode(a) { - if (NOPLAYER) { - $("#videowrap").show(); - ytapiplayer = $('') - .insertBefore("#playercontrols"); - refreshPlayer(); - NOPLAYER = false; - } - - $("#main").show(); - pinupbtn.hide(); - modesel.find("option[value='chMode'], option[value='rMode']").show(); - PINNED ? modesel.find("option[value='chMode']").hide() : ''; - - if (a=="syMode") { - - $("#videowrap, #videowrap p, #videowrap div, #chatwrap, #rightpane, #pinup-btn").show(); - $("#config-btn, #configbtnwrap br, #pinup-btn").show(); - $("#min-layout").parent().show(); - - normalPlayer(); - - c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5'; - $("#chatwrap").removeClass().addClass(c); - H=parseInt(VH)-$("#chatline").outerHeight()-1; - $("#messagebuffer").height(H); - $("#userlist").height(H); - - USERCONFIG.player=="center" ? playerLocation("center") : ''; - PINNED ? pinUp() : ''; - - } else if (a=="kMode") { - - $("#videowrap").show(); - PINNED ? $("#rightpane").hide() : $("#chatwrap").hide(); - $("#fontspanel, #emotespanel").hide(); - - bigPlayer(); - - } else if (a=="chMode") { - - $("#chatwrap").show(); - - if (WEBKIT) { - $("#videowrap").hide(); - } else { - $("#videowrap div, #videowrap p").hide(); - $("#ytapiplayer").width(1).height(1); - } - - bigChat(); - - } else if (a=="sMode") { - - $("#chatwrap").show(); - $("#videowrap").hide(); - $("#ytapiplayer").remove(); - $("#fontspanel, #emotespanel").hide(); - modesel.find("option[value='chMode'], option[value='rMode']").hide(); - NOPLAYER = true; - - bigChat(); - - } else if (a=="rMode") { - - if (WEBKIT) { - $("#main").hide(); - } else { - PINNED ? $("#rightpane").hide() : $("#chatwrap").hide(); - $("#videowrap div, #videowrap p").hide(); - $("#ytapiplayer").width(1).height(1); - } - - !PINNED ? $("#min-layout").parent().show() : ''; - - } -} - -// fix layout after changing media - -function setModeAfterVideoChange() { - m=modesel.val(); - (m=="syMode" || m=="chMode" || m=="rMode") ? setMode(m) : ''; -} - -// change welcome text - -function changeWelcomeText() { - if (CLIENT.rank>0) { - $("#welcome").html($("#welcome").html().replace(/Welcome/, CustomCaptions_Array['welcome'])); - } -} - -// set MOTD - -function changeMOTD() { - if (UI_MOTDTabs=="1" && MOTDTabs_Array.length>0) { - // adding tabs application - - motdtabswrap = $('') - .appendTo("#motd"); - for (i in MOTDTabs_Array) { - btn = $('') - .text(MOTDTabs_Array[i][0]) - .appendTo(motdtabswrap) - .on("click", function() { - $(".motdtabs-btn").removeClass('btn-success'); - $(this).addClass('btn-success'); - nr=$(this).attr('tab'); - motdtabscontent.html(MOTDTabs_Array[nr][1]); - }); - } - motdtabscontent = $(''+MOTDTabs_Array[0][1]+'') - .css(MOTDTabs_CSS) - .appendTo("#motd"); - $(".motdtabs-btn:nth-child(1)").addClass('btn-success'); - } - if (UI_MOTDAutoLogo=="1") { - // adding logo - - var logo = 0; - var len = MOTDAutoLogo_Array.length; - if (len<1) { - MOTDAutoLogo_Array=['https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png']; - len=1; - } - if (MOTDAutoLogo_Mode=="2" || MOTDAutoLogo_Mode=="3") { - logo=Math.floor(Math.random()*len); - } else if (MOTDAutoLogo_Mode=="7") { - logo=new Date().getDay(); - typeof MOTDAutoLogo_Array[logo]==="undefined" ? logo=0 : ''; - } - $('').prependTo("#motd"); - } - if (UI_RulesBtn=="1") { - // adding rules button - - RulesBtn_Caption=="" ? RulesBtn_Caption='Read Channel Rules' : ''; - RulesBtn_HTML=="" ? RulesBtn_HTML='No rules.' : ''; - rulesbtnwrap = $('').appendTo("#motd"); - rulesbtn = $('') - .text(RulesBtn_Caption+' ▸') - .appendTo(rulesbtnwrap) - .on("click", function() { - toggleDiv(rulespanel); - }); - rulespanelouter = $('').appendTo("#motd"); - rulespanel = $('') - .html(RulesBtn_HTML) - .appendTo(rulespanelouter); - } -} - -// change title bar description - -function changeTitle() { - title=$("#currenttitle").text(); - $("#currenttitle").text(title.replace(/Currently Playing:/, TitleBarDescription_Caption)); -} - -// YouTube/Dailymotion progress bar - -function progressBar() { - var a = 0; - if (PLAYER.type=="yt") { - b=PLAYER.player.getCurrentTime(); - b!=PREVTIME ? a=b/PLAYER.player.getDuration()*100 : ''; - PREVTIME=b; - } else if (PLAYER.type=="dm") { - b=PLAYER.player.currentTime; - b!=PREVTIME ? a=b/PLAYER.player.duration*100 : ''; - PREVTIME=b; - } - titlerow.css('background-size', a+'% 100%'); -} - -// toggle additional chat functions - -function toggleChatFunctions() { - CLIENT.rank>2 ? chatflair.show() : chatflair.hide(); -} - -// set chat side panel properties - -function setPanelProperties(div) { - bgcolor=$("body").css('background-color'); - color=$("body").css('color'); - height=$("#userlist").height(); - width=$("#userlist").width(); - $(div).css({'background-color':bgcolor, 'color':color, 'height':height+'px', 'width':width+'px'}); -} - -// refresh user chat statistics - -function userChatStats(str) { - CHATSTAT['n']++; - CHATSTAT['l']=CHATSTAT['l']+str.length; - CHATSTAT['m'].push(str); -} - -// create squavatar - -function createSquavatar(str) { - for (i=0, hash=0; i>i++*8)&0xFF).toString(16)).slice(-2)); - r=parseInt(col.substring(0,2), 16); - g=parseInt(col.substring(2,4), 16); - b=parseInt(col.substring(4,6), 16); - r2=255-r; - g2=255-g; - b2=255-b; - html=''; - return html; -} - -// format chat messages before sending and execute commands - -function prepareMessage(msg) { - if (UI_MessagesSuffix=="1") { - if ((typeof MessagesSuffix_Percentage!=="number") || MessagesSuffix_Percentage<0) { - MessagesSuffix_Percentage='10'; - } - Math.random()<(MessagesSuffix_Percentage/100) ? msg+=' '+MessagesSuffix_Text : ''; - } - - if (UI_UserCommands=="1" && msg.indexOf("!")==0) { - COMMAND=true; - if (msg.indexOf("!stat")==0) { - - num=CHATSTAT['n']; - len=CHATSTAT['l']; - if (num>0) { - rnd=Math.round(Math.random()*(CHATSTAT['m'].length-1)); - avg=Math.round(len/num*10)/10; - } else { - rnd=0; - avg=0; - } - a = (num!=1) ? 's' : ''; - b = (avg!=1) ? 's' : ''; - msg='you have sent '+num+' message'+a+', ' - +'total length is '+len+' character'+b+' ('+avg+' per message), ' - +'random message: '+CHATSTAT['m'][rnd]; - - } else if (msg.indexOf("!memestats")==0) { - - num=CHATSTAT['n']; - len=Memes_Array.length; - mem=0; - for (i=0; i-1 ? mem++ : ''; - } - } - a = (num!=1) ? 's' : ''; - b = (mem!=1) ? 's' : ''; - if (len>0) { - msg='in '+num+' message'+a+' you have used '+mem+' meme'+b; - } else { - msg='error: no defined memes'; - } - - } else if (msg.indexOf("!pick ")==0) { - - arr=msg.split("!pick ")[1].split(","); - rnd=Math.round(Math.random()*(arr.length-1)); - msg=arr[rnd]; - - } else if (msg.indexOf("!ask ")==0) { - - AskAnswers_Array.length<1 ? AskAnswers_Array=['yes', 'no'] : ''; - rnd=a=Math.round(Math.random()*(AskAnswers_Array.length-1)); - msg=AskAnswers_Array[rnd]; - - } else if (msg.indexOf("!time")==0) { - - var h = new Date().getHours(); - h<10 ? h='0'+h : ''; - var m = new Date().getMinutes(); - m<10 ? m='0'+m : ''; - msg='current time: '+h+':'+m; - - } else if (msg.indexOf("!dice")==0) { - - rnd=Math.round(Math.random()*5)+1; - msg=''+rnd; - - } else if (msg.indexOf("!roll")==0) { - - var rnd = Math.round(Math.random()*999); - rnd<100 ? rnd="0"+rnd : ''; - rnd<10 ? rnd="0"+rnd : ''; - msg=''+rnd; - - } else if (msg.indexOf("!q")==0) { - - RandomQuotes_Array.length<1 ? RandomQuotes_Array=['error: no quotes available'] : ''; - rnd=Math.round(Math.random()*(RandomQuotes_Array.length-1)); - msg=RandomQuotes_Array[rnd]; - - } else if (msg.indexOf("!random")==0 && hasPermission("playlistadd")) { - - if (UI_ChannelDatabase=="1") { - var link=""; - while (link=="") { - rnd=Math.round(Math.random()*(ChannelDatabase.length-1)); - link=ChannelDatabase[rnd][0]; - title=ChannelDatabase[rnd][1]; - } - addToPlaylist(link, "end"); - msg='random media adding attempt: '+title; - } - - } else if (msg.indexOf("!calc ")==0) { - - func=msg.split("!calc "); - msg=''+eval(func[1]); - - } else if (msg.indexOf("!skip")==0 && hasPermission("voteskip")) { - - socket.emit("voteskip"); - msg='current item has been voteskipped'; - - } else if (msg.indexOf("!next")==0 && hasPermission("playlistjump")) { - - socket.emit("playNext"); - msg='start playing next item'; - - } else if (msg.indexOf("!bump")==0 && hasPermission("playlistmove")) { - - last=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+last+")").data("uid"); - title=$("#queue .queue_entry:nth-child("+last+") .qe_title").html(); - socket.emit("moveMedia", {from:uid, after:PL_CURRENT}); - msg='last item bumped as next: '+title; - - } else if (msg.indexOf("!add ")==0 && hasPermission("playlistadd")) { - - parsed=parseMediaLink(msg.split("!add ")[1]); - if (parsed["id"]===null) { - msg='error: wrong link, item has not been added'; - } else { - socket.emit("queue", {id:parsed["id"], pos:"end", type:parsed["type"]}); - msg='video has been added'; - } - - } else if (msg.indexOf("!now")==0) { - - msg='Now playing: '+$(".queue_active a").html(); - - } else if (msg.indexOf("!CO ZJE TEH?")==0) { - - msg='TEH ZJE HUJ'; - - } else if (msg.indexOf("!inba")==0) { - - IMBA.volume=0.6; - IMBA.play(); - mutePlayer(); - inbix=setInterval(function() { - inba(); - }, 200); - setTimeout(function() { - unmutePlayer(); - BGCHANGE=0; - clearInterval(inbix); - $("body").css({'background-image':'', 'background-color':''}); - setUserCSS(); - }, 12000); - msg='JP2GMD'; - - } else { - COMMAND=false; - } - } - return msg; -} - -// insert code into chatline - -function insertText(str) { - $("#chatline").val($("#chatline").val()+str).focus(); -} - -// toggle YT mute button - -function toggleMuteBtn() { - (PLAYER && PLAYER.type=="yt") ? muteplayerbtn.show() : muteplayerbtn.hide(); -} - -// toggle mod panel button -function toggleModPanel() { - if (CLIENT.rank<2) { - modbtn.hide(); - } else { - modbtn.show(); - HASH=''; - for (i in ModPanel_Array) { - name=ModPanel_Array[i][0]; - (name=="" || name==CLIENT.name) ? HASH+=''+ModPanel_Array[i][1].length : ''; - } - if (HASH!=USERCONFIG.modhash) { - modbtn.addClass('btn-danger').html(modbtn.html()+' (New Mess.)'); - } - } -} - -// create media database - -function createDatabase() { - html='' - + ChannelDatabase[0][1] - + '' - + ''; - - len=ChannelDatabase.length; - for (i=1; i' - + '' - + ChannelDatabase[i][1] - + '' - + ''; - } else { - item_nr++; - count_nr++; - link=ChannelDatabase[i][0]; - - html+='' - + '' - + 'End' - + ''; - - parsed=parseMediaLink(link); - if (parsed["type"]=="yt") { - a=parsed["id"]; - html+='' - + '' - + ''; - } - html+='' - + item_nr - + '' - + ChannelDatabase[i][1] - + '' - + link - + ''; - } - } - - html+='' - + '' - + 'Reload Data (if channel seems working slow)' - + ''; - - item_count[layer_nr-1]=count_nr; - opening[layer_nr-1]=0; - dbwell.html(html); - html=''; - - len=item_count.length; - for(i=1; i<=len; i++) { - $("#la"+i).append(' ['+item_count[i-1]+']'); - } - - cleardbbtn = $("#cleardb-btn") - .on("click", function() { - toggleDiv(dbwrap); - dbwell.html(''); - CHANDB=false; - }); - - for (i in opening) { - opening[i]=0; - } - dbcat = $(".db-cat").hide(); - CHANDB=true; -} - -// toggle database sections - -function toggleCat(a) { - b=a-1; - if (opening[b]==0) { - dbcat.hide(); - for (i in opening) { - opening[i]=0; - } - $("#l"+a).show(); - opening[b]=1; - } else { - $("#l"+a).hide(); - opening[b]=0; - } -} - -// patch layout for guest logins - -function patchWrap() { - setTimeout(function() { - $("#playlistmanagerwrap").show(); - }, 1500); -} - -// create channel gallery - -function createGallery() { - galleryframe = $('') - .attr({'frameborder':'0', 'scrolling':'no', 'height':'415px'}) - .appendTo(gallerywell); - galtitle = $('Select Gallery').appendTo(gallerywell); - galsel = $('') - .appendTo(gallerywell) - .on("change", function() { - galleryframe.attr('src', galsel.val()); - }); - - for (i in ChannelGalleries_Array) { - $('') - .html(ChannelGalleries_Array[i][0]) - .appendTo(galsel); - } - - text='Reload Galleries (if problems or slow channel)'; - cleargallerybtn = $(''+text+'') - .appendTo(gallerywell) - .on("click", function() { - toggleDiv(gallerywrap); - gallerywell.html(''); - GALLERY=false; - }); - GALLERY=true; -} - -// toggle "/clear" button depends on rank - -function toggleClearBtn() { - hasPermission("chatclear") ? clearbtn.show() : 'clearbtn.hide()'; -} - -// toggle YT volume buttons depends on player type - -function toggleVolBtn() { - if (PLAYER && PLAYER.type=="yt") { - voldownbtn.show(); - volupbtn.show(); - } else { - voldownbtn.hide(); - volupbtn.hide(); - } -} - -// toggle advanced playlist options buttons - -function toggleAdvancedPl() { - CLIENT.rank<2 ? advplaylist.hide() : advplaylist.show(); - hasPermission("playlistjump") ? playnextbtn.show() : playnextbtn.hide(); - (hasPermission("playlistadd") && UI_ChannelDatabase=="1") ? addrandombtn.show() : addrandombtn.hide(); - hasPermission("playlistmove") ? bumplastbtn.show() : bumplastbtn.hide(); - hasPermission("playlistdelete") ? deletelastbtn.show() : deletelastbtn.hide(); -} - -// get playlist helper functions - -function formatRawList() { - len=$("#queue .queue_entry").length+1; - list = new Array(); - for (i=1; i'+title+' ['+duration+'] - '+link+''); - } - return list.join('\n'); -} - -function formatOrderedList() { - len=$("#queue .queue_entry").length+1; - var list = new Array(); - for (i=1; i div, #playlistrow > div {\n' - + ' padding-left:5px; padding-right:5px; margin-top:5px; margin-bottom:5px;\n' - + '}\n' - + '#motdwrap {margin:5px -10px}\n' - + '#announcements .alert {margin:0px -10px 5px}\n' - + '#drinkcount {margin:0px}\n'; - - $("head").append(''); - $("#usertheme").attr('href', '/css/themes/slate.css'); - $("#usertheme-fix").remove(); - if (USERTHEME.indexOf("/css/themes/")>-1) { - $("#usertheme").attr('href', USERTHEME); - } else { - $('') - .appendTo("head"); - } - $("#usercss").remove(); - if (USERCONFIG.css!="no") { - $("head").append(''); - } -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- UI events functions ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -function prepareFilters() { - str='{"name":"white color","source":"\\\\[white\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"yellow color","source":"\\\\[yellow\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"orange color","source":"\\\\[orange\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"pink color","source":"\\\\[pink\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"red color","source":"\\\\[red\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"limegreen color","source":"\\\\[lime\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"green color","source":"\\\\[green\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"aqua color","source":"\\\\[aqua\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"blue color","source":"\\\\[blue\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"violet color","source":"\\\\[violet\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"brown color","source":"\\\\[brown\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"silver color","source":"\\\\[silver\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"black color","source":"\\\\[black\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"white color on black","source":"\\\\[bw\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"bold text","source":"\\\\[b\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"italic text","source":"\\\\[i\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"underlined text","source":"\\\\[u\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"striked text","source":"\\\\[s\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"distinguished text","source":"\\\\[d\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"fire text","source":"\\\\[f\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"short spoiler","source":"\\\\[sp\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"closing font style","source":"\\\\[\\\\/\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false}]'; - - callback = function(data) { - socket.listeners("chatFilters").splice( - socket.listeners("chatFilters").indexOf(callback) - ); - json=JSON.stringify(data); - comma = (json.length!="2") ? ',' : ''; - $("#cs-chatfilters-exporttext").val(json.substring(0, json.length-1)+comma+str); - }; - - socket.on("chatFilters", callback); - socket.emit("requestChatFilters"); - - txt = 'This option does NOT affect your current filters, all of them will be saved.\n' - + 'Click "Import filter list" button if you\'ll decide to install.'; - alert(txt); -} - -// show chat additional functions - -function showChatFunctions() { - $("#userlist").append(''); - setPanelProperties("#chatfunc-dropdown"); - - $("#chatfunc-dropdown").append('Prevent room freezing if spam:'); - - spamclearbtn = $('Auto Clear') - .appendTo("#chatfunc-dropdown") - .on("click", function() { - if (!CLEARING) { - $(this).text('Stop Clearing').addClass('btn-danger'); - CLEARING=setInterval(function() { - socket.emit("chatMsg", {msg: '/clear'}); - }, 500); - } else { - $(this).text('Auto Clear').removeClass('btn-danger'); - clearInterval(CLEARING); - CLEARING=false; - } - }); - CLEARING ? $("#spamclear-btn").text('Stop Clearing').addClass('btn-danger') : ''; - - $("#chatfunc-dropdown").append('Prevent me from AFK:'); - - antiafkbtn = $('Anti AFK') - .appendTo("#chatfunc-dropdown") - .on("click", function() { - if (!ANTIAFK) { - $(this).addClass('btn-danger'); - ANTIAFK=setInterval(function() { - $("#userlist").find('span[class^=userlist]').each(function() { - if ($(this).html()==CLIENT.name && $(this).css('font-style')=="italic") { - socket.emit("chatMsg", {msg: '/afk'}); - return; - } - }); - }, 4000); - } else { - $(this).removeClass('btn-danger'); - clearInterval(ANTIAFK); - ANTIAFK=false; - } - }); - ANTIAFK ? $("#antiafk-btn").addClass('btn-danger') : ''; -} - -// display list of emotes - -function showEmotes() { - if (typeof GroupEmotes_Number!=="number" || GroupEmotes_Number<1) { - GroupEmotes_Number=100; - } - len=CHANNEL.emotes.length; - if (len<1) { - emotespanel.addClass('row'); - makeAlert("No emotes available", "Ask channel administrator.").appendTo(emotespanel); - } else if (UI_GroupEmotes!="1" || len<=GroupEmotes_Number) { - for (i in CHANNEL.emotes) { - $('') - .attr({'src':CHANNEL.emotes[i].image, 'title':CHANNEL.emotes[i].name}) - .appendTo(emotespanel); - } - } else { - var arr = new Array(); - stop=GroupEmotes_Number-1; - gr=Math.ceil(CHANNEL.emotes.length/GroupEmotes_Number); - html=''; - - for (i=0; i'; - if (i%GroupEmotes_Number==stop) { - arr.push(html); - html=''; - } - } - len%GroupEmotes_Number!=0 ? arr.push(html) : ''; - - for (i=0; i') - .html(arr[i]) - .appendTo(emotespanel); - } - arr=''; - - emotesbtnwrap = $('').appendTo(emotespanel); - emotesbtngroup = $('').appendTo(emotesbtnwrap); - - for (i=0; i'+(i+1)+'') - .appendTo(emotesbtngroup) - .on("click", function() { - $(".emotesbtn").removeClass('active'); - $(this).addClass('active'); - $(".groupemotes").hide(); - nr=$(this).attr('group'); - $("#emotes-"+nr).show(); - }); - } - $("#emotes-0").show(); - $("#emotescontrols button:nth-child(1)").addClass('active'); - } - EMOTES=true; -} - -// show chat commands modal window - -function showChatHelp() { - createModal('Chat Commands'); - if (UI_FontsBtn=="1") { - body.append('Fonts commands'); - html='[white], [yellow], [orange], [pink], ' - + '[red], [lime], [green], [aqua], ' - + '[blue], [violet], [brown], [silver], ' - + '[black] - begin of colored text' - + '[bw] - begin of white text on the black background' - + '[b], [i], [u], [s] - ' - + 'begin of bold, italic, underlined, striked or underlined text' - + '[d] - begin of a distinguished text (red on yelllow background)' - + '[f] - begin of a text with a fire effect' - + '[sp] - begin of an inline spoiler' - + '[/] - end of any color, style or spoiler' - + 'If fonts commands don\'t work, ask script administrator about proper filters installation.'; - $('').html(html).appendTo(body); - } - if (UI_UserCommands=="1") { - arr = { - 'pick':'choosing a random option from a list separated by commas ' - + '(e.g. !pick japan,korea,china)', - 'ask':'asking a question with yes/no type answer ' - + '(e.g. !ask Will this channel be popular?)', - 'q':'displaying random quote (!q)', - 'dice':'rolling dice (!dice)', - 'roll':'rolling 3-digit number (!roll)', - 'time':'displaying current time (!time)', - 'now':'displaying current playing title (!now)', - 'calc':'calculating a math operation ' - + '(all JavaScript Math methods and constants allowed, e.g. !calc Math.PI*10)', - 'skip':'skip current item (!skip)', - 'add':'adding a link to the end of playlist ' - + '(e.g. !add https://www.youtube.com/watch?v=29FFHC2D12Q)', - 'stat': 'displaying user chat statistics in current session (!stat)', - 'memestats': 'displaying number memes used by user in all messages (!memestats)' - } - if (UI_ChannelDatabase=="1") { - arr['random']='adding random link from database (!random)'; - } - body.append('New chat commands'); - ul = $('').appendTo(body); - for (cmd in arr) { - ul.append('!'+cmd+' - '+arr[cmd]+''); - } - } - if (UI_ChatSpeak=="1") { - body.append('Voice commands'); - html='!say - text speaking in english (!say Hello!)' - + '!mow - text speaking in polish (!mow Chrząszcz brzmi w trzcinie.)'; - $('').html(html).appendTo(body); - } - arr = { - 'me':'showing an action-style message (username does something, e.g. /me is dancing)', - 'sp':'hiding a message in a hover-to-show spoiler box (e.g. /sp This message is hidden)', - 'afk':'toggling your AFK (away from keyboard) status (/afk)', - } - body.append('Default CyTube commands'); - ul = $('').appendTo(body); - for (cmd in arr) { - ul.append('/'+cmd+' - '+arr[cmd]+''); - } -} - -// show chat sounds panel - -function showSoundsPanel() { - $("#userlist").append(''); - setPanelProperties("#sounds-dropdown"); - - muteallbtn = $('Mute All') - .appendTo("#sounds-dropdown") - .on("click", function() { - if (VOICES) { - $(this).text('Unmute All').addClass('btn-danger'); - voicesbtn.addClass('btn-danger').attr('title', 'Unmute chat voices'); - VOICES = false; - SOUNDSPANEL = false; - $("#sounds-dropdown").remove(); - } else { - $(this).text('Mute All').removeClass('btn-danger'); - voicesbtn.removeClass('btn-danger').attr('title', 'Mute chat voices'); - VOICES = true; - } - }); - !VOICES ? muteallbtn.text('Unmute All').addClass('btn-danger') : ''; - - $("#sounds-dropdown").append('Sounds level:'); - - lvlgroup = $('') - .appendTo("#sounds-dropdown"); - - for (i=1; i<=5; i++) { - btn=$('') - .html(i) - .appendTo(lvlgroup) - .on("click", function() { - $("#lvlvol"+SOUNDSLVL).removeClass('btn-success'); - SOUNDSLVL=$(this).attr('level'); - setOpt(CHANNEL.name+"_soundslvl", SOUNDSLVL); - $(this).addClass('btn-success'); - }); - } - $("#lvlvol"+SOUNDSLVL).addClass('btn-success'); - - $("#sounds-dropdown").append('Select users to mute sounds:'); - - mutegroup = $('').appendTo("#sounds-dropdown"); - - $(".userlist_item").each(function() { - user=$(this).find("span:nth-child(2)").html(); - btn=$('') - .html(user) - .appendTo(mutegroup) - .on("click", function() { - name=$(this).attr('name'); - if (name in MUTEDVOICES && MUTEDVOICES[name]=="1") { - $(this).removeClass('btn-danger'); - MUTEDVOICES[name]=0; - } else { - $(this).addClass('btn-danger'); - MUTEDVOICES[name]=1; - } - }); - (user in MUTEDVOICES && MUTEDVOICES[user]=="1") ? btn.addClass('btn-danger') : ''; - }); -} - -// show moderators panel - -function showModPanel() { - createModal("Moderators panel"); - - html=''; - for (i in ModPanel_Array) { - name=ModPanel_Array[i][0]; - mess=ModPanel_Array[i][1]; - if (name=="") { - html+=' ' - + mess - + ''; - } else if (name==CLIENT.name) { - html+=' ' - + ' ' - + '(to: '+CLIENT.name+') → '+mess - + ''; - } - } - body.append(html); - $("#mod-btn").removeClass('btn-danger').html(''); - setOpt(CHANNEL.name+"_modhash", HASH); -} - -// show info about current or next media - -function showInfo() { - if (DEFDESCR) { - contr=$(".queue_active").attr("title"); - if (typeof contr==="undefined") { - text='Nothing Playing'; - } else { - duration=$(".queue_active .qe_time").html(); - text=contr+' ['+duration+']'; - } - mediainfo.html(text); - } else { - var arr=new Array(); - text='Playing Next:'; - li1=$(".queue_active").next(); - li2=li1.next(); - li3=li2.next(); - li1.length>0 ? arr.push(' 1▸ '+li1.children("a").html()) : ''; - li2.length>0 ? arr.push(' // 2▸ '+li2.children("a").html()) : ''; - li3.length>0 ? arr.push(' // 3▸ '+li3.children("a").html()) : ''; - text+=arr.join(""); - arr.length<3 ? text+=' // END OF PLAYLIST //' : ''; - mediainfo.html(''+text+''); - } -} - -// hide and show player with covering image - -function coverPlayer() { - PlayerHiding_URL=="" ? PlayerHiding_URL='https://dl.dropboxusercontent.com/s/xz2o99scw5i7aai/stop.png' : ''; - $("#videowrap").addClass('relative'); - w=$("#ytapiplayer").css('width'); - h=$("#videowrap").css('height').replace('px', '')-31; - coverpl = $('') - .css({'width':w, 'height':h+'px', 'background-image':'url('+PlayerHiding_URL+')'}) - .appendTo($("#videowrap")); - hideplayerbtn.addClass('btn-danger').attr('title', 'Show player'); -} - -function showPlayer() { - coverpl.remove(); - hideplayerbtn.removeClass('btn-danger').attr('title', 'Hide player'); - $("#videowrap").removeClass('relative'); -} - -// mute YT player - -function mutePlayer() { - (PLAYER && PLAYER.type=="yt") ? PLAYER.player.mute() : ''; -} - -// unmute YT player - -function unmutePlayer() { - (PLAYER && PLAYER.type=="yt") ? PLAYER.player.unMute() : ''; -} - -// download current item - -function downloadCurrentItem() { - uid=$(".pluid-"+PL_CURRENT).data("media"); - arr={ - 'yt':'http://youtube.com/watch?v=', - 'vi':'http://vimeo.com/', - 'dm':'http://dailymotion.com/video/', - 'sc':'' - } - link = (uid.type in arr ? arr[uid.type]+''+uid.id : ''); - if (link=="") { - alert('This link is not supported. Try YouTube, Vimeo, Dailymotion or SoundCloud.'); - } - else { - createModal("Download current item"); - - $('Click here to download') - .appendTo(body) - .on("click", function() { - outer.modal('hide'); - }); - } -} - -// preview YT video in modal window - -function prevVideo(a) { - createModal('Preview Video'); - - player=$('') - .attr('src', 'http://www.youtube.com/embed/'+a+'?wmode=transparent&enablejsapi') - .appendTo(body); -} - -// toggle configuration panel - -function toggleConfigPanel() { - if (MINIMIZED) { - $("#rightpane-inner").show(); - $("#azukirow, #leftpane-inner").show(); - !$("#hide-motd").prop('checked') ? $("#motdrow").show() : ''; - !$("#hide-ann").prop('checked') ? $("#announcements").show() : ''; - !$("#hide-hf").prop('checked') ? $("footer").show() : ''; - pinupbtn.show(); - layoutbtn.removeClass('btn-danger').addClass('btn-success') - .html(' Layout'); - $("#min-layout").prop('checked', false); - $("#plcontrol button, #db-btn, #gallery-btn, #newpollbtn").removeAttr('disabled'); - MINIMIZED=false; - // patch: giving back 15px additional space on the top - $("#mainpage").css('margin-top', $("#mainpage").css('margin-top').replace('px', '')*1-15+'px'); - } else { - toggleDiv(configwrap); - if (configwrap.css('display')=="none") { - layoutbtn.removeClass('btn-success'); - } else { - layoutbtn.addClass('btn-success'); - } - LAYOUTBOX = !LAYOUTBOX; - setOpt(CHANNEL.name+"_layoutbox", LAYOUTBOX); - } -} - -// show layout configuration modal window - -function showConfig() { - createModal("Layout Configuration"); - - form = $('').appendTo(body); - - function addOption(txt, elem) { - g = $('').appendTo(form); - $('').text(txt).appendTo(g); - c = $('').appendTo(g); - elem.appendTo(c); - } - - playerlocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(playerlocation); - $('').attr('value', 'right').text('right').appendTo(playerlocation); - $('').attr('value', 'center').text('center').appendTo(playerlocation); - playerlocation.val(USERCONFIG.player); - addOption('Player location', playerlocation); - - userlistlocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(userlistlocation); - $('').attr('value', 'right').text('right').appendTo(userlistlocation); - userlistlocation.val(USERCONFIG.userlist); - addOption('Userlist location', userlistlocation); - - queuelocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(queuelocation); - $('').attr('value', 'right').text('right').appendTo(queuelocation); - $('').attr('value', 'center').text('center').appendTo(queuelocation); - queuelocation.val(USERCONFIG.queue); - addOption('Queue location', queuelocation); - - queuesize = $('').addClass('form-control'); - $('').attr('value', 'wide').text('wide').appendTo(queuesize); - $('').attr('value', 'narrow').text('narrow').appendTo(queuesize); - queuesize.val(USERCONFIG.qsize); - addOption('Queue column size', queuesize); - - mainlocation = $('').addClass('form-control'); - $('').attr('value', 'top').text('above playlist').appendTo(mainlocation); - $('').attr('value', 'bottom').text('below playlist').appendTo(mainlocation); - mainlocation.val(USERCONFIG.main); - addOption('Player & chat', mainlocation); - - motdlocation = $('').addClass('form-control'); - $('').attr('value', 'top').text('channel top').appendTo(motdlocation); - $('').attr('value', 'bottom').text('channel bottom').appendTo(motdlocation); - motdlocation.val(USERCONFIG.motd); - addOption('MOTD & announcements', motdlocation); - - logoinsert = $('').addClass('form-control'); - $('').attr('value', 'no').text('no image').appendTo(logoinsert); - $('').attr('value', 'user').text('user image').appendTo(logoinsert); - for (i in TopUserLogo) { - $("").attr('value', i).text(TopUserLogo[i][0]).appendTo(logoinsert); - } - logoinsert.val(USERCONFIG.logo); - addOption('Top logo', logoinsert); - - userlogo = $('').addClass('form-control').attr('type', 'text') - .attr('placeholder', 'Image URL'); - userlogo.val(''); - addOption('User logo URL', userlogo); - - userlogoht = $('').addClass('form-control').attr('type', 'text') - .attr('placeholder', 'Image Height (in px)'); - userlogoht.val(''); - addOption('User logo height', userlogoht); - - if (USERCONFIG.logo!="user") { - userlogo.parent().parent().hide(); - userlogoht.parent().parent().hide(); - } else { - userlogo.val(USERCONFIG.logourl); - userlogoht.val(USERCONFIG.logoht); - } - - headermode = $('').addClass('form-control') - $('').attr('value', 'fixed').text('fixed').appendTo(headermode); - $('').attr('value', 'detached').text('detached').appendTo(headermode); - $('').attr('value', 'mouseover').text('mouseover').appendTo(headermode); - headermode.val(USERCONFIG.header); - addOption('Header menu', headermode); - - customcss = $('').addClass('form-control'); - $('').attr('value', 'no').text('no').appendTo(customcss); - $('').attr('value', 'yes').text('yes').appendTo(customcss); - customcss.val(USERCONFIG.css); - addOption('Custom CSS', customcss); - - usercss = $('').addClass('form-control') - .attr('placeholder', 'Insert CSS code'); - usercss.val(USERCONFIG.csscode); - addOption('CSS code', usercss); - - if (USERCONFIG.css=="no") { - usercss.parent().parent().hide(); - } - - submit = $('').text("Save changes").appendTo(footer); - reset = $('').text('Default').appendTo(footer); - column = $('').text('One column').appendTo(footer); - - logoinsert.on("change", function() { - if (logoinsert.val()=="user") { - userlogo.parent().parent().show(); - userlogoht.parent().parent().show(); - userlogo.val(USERCONFIG.logourl); - userlogoht.val(USERCONFIG.logoht); - } else { - userlogo.parent().parent().hide(); - userlogoht.parent().parent().hide(); - } - }); - - customcss.on("change", function() { - if (customcss.val()=="yes") { - usercss.parent().parent().show(); - } else { - usercss.parent().parent().hide(); - } - }); - - submit.on("click", function() { - outer.modal('hide'); - - USERCONFIG.player=playerlocation.val(); - setOpt(CHANNEL.name+"_player",playerlocation.val()); - - USERCONFIG.userlist=userlistlocation.val(); - setOpt(CHANNEL.name+"_userlist",userlistlocation.val()); - - USERCONFIG.queue=queuelocation.val(); - setOpt(CHANNEL.name+"_queue",queuelocation.val()); - - USERCONFIG.qsize=queuesize.val(); - setOpt(CHANNEL.name+"_qsize",queuesize.val()); - - USERCONFIG.main=mainlocation.val(); - setOpt(CHANNEL.name+"_main",mainlocation.val()); - - USERCONFIG.motd=motdlocation.val(); - setOpt(CHANNEL.name+"_motd",motdlocation.val()); - - if (logoinsert.val()=="user") { - if (userlogo.val()=="") { - logoinsert.val("no"); - } else if (userlogoht.val()=="") { - userlogoht.val('200'); - } else { - a=userlogoht.val()*1; - if (isNaN(a) || a<1) { - userlogoht.val('200'); - } - } - USERCONFIG.logourl=userlogo.val(); - USERCONFIG.logoht=userlogoht.val(); - setOpt(CHANNEL.name+"_logourl",userlogo.val()); - setOpt(CHANNEL.name+"_logoht",userlogoht.val()); - } - - USERCONFIG.logo=logoinsert.val(); - setOpt(CHANNEL.name+"_logo",logoinsert.val()); - - USERCONFIG.header=headermode.val(); - setOpt(CHANNEL.name+"_header",headermode.val()); - - if (customcss.val()=="yes") { - USERCONFIG.csscode=usercss.val(); - setOpt(CHANNEL.name+"_csscode",usercss.val()); - } - - USERCONFIG.css=customcss.val(); - setOpt(CHANNEL.name+"_css",customcss.val()); - - setLayout(); - scrollChat(); - scrollQueue(); - }); - - reset.on("click", function() { - outer.modal("hide"); - - USERCONFIG.player=defplayer; - setOpt(CHANNEL.name+"_player",defplayer); - - USERCONFIG.userlist=defuserlist; - setOpt(CHANNEL.name+"_userlist",defuserlist); - - USERCONFIG.queue=defqueue; - setOpt(CHANNEL.name+"_queue",defqueue); - - USERCONFIG.qsize="wide"; - setOpt(CHANNEL.name+"_qsize","wide"); - - USERCONFIG.main="top"; - setOpt(CHANNEL.name+"_main","top"); - - USERCONFIG.motd="top"; - setOpt(CHANNEL.name+"_motd","top"); - - USERCONFIG.logo="no"; - setOpt(CHANNEL.name+"_logo","no"); - - USERCONFIG.header="detached"; - setOpt(CHANNEL.name+"_header","detached"); - - USERCONFIG.css="no"; - setOpt(CHANNEL.name+"_css","no"); - - setLayout(); - scrollChat(); - scrollQueue(); - }); - - column.on("click", function() { - outer.modal("hide"); - - USERCONFIG.player="center"; - setOpt(CHANNEL.name+"_player","center"); - - USERCONFIG.userlist="left"; - setOpt(CHANNEL.name+"_userlist","left"); - - USERCONFIG.queue="center"; - setOpt(CHANNEL.name+"_queue","center"); - - USERCONFIG.main="top"; - setOpt(CHANNEL.name+"_main","top"); - - USERCONFIG.motd="bottom"; - setOpt(CHANNEL.name+"_motd","bottom"); - - USERCONFIG.logo="no"; - setOpt(CHANNEL.name+"_logo","no"); - - USERCONFIG.header="detached"; - setOpt(CHANNEL.name+"_header","detached"); - - setLayout(); - scrollChat(); - scrollQueue(); - }); -} - -// toggle fluid layout - -function toggleFluidLayout() { - if (FLUID) { - $("body").removeClass('fullscreen'); - $(".container-fluid").removeClass('container-fluid').addClass('container'); - $("#fontspanel, #emotespanel").removeClass('fluidpanel'); - } else { - $("body").addClass('fullscreen'); - $(".container").removeClass('container').addClass('container-fluid'); - $("footer .container-fluid").removeClass('container-fluid').addClass('container'); - $("#fontspanel, #emotespanel").addClass('fluidpanel'); - } - UI_DisplayModeSel=="1" ? setMode(modesel.val()) : ''; - FLUID=!FLUID; - setOpt(CHANNEL.name+"_fluid", FLUID); - scrollChat(); -} - -// toggle minimized layout - -function toggleMinLayout() { - if (!MINIMIZED) { - $("#rightpane-inner").hide(); - $("#azukirow, #motdrow, #announcements, #leftpane-inner, footer").hide(); - pinupbtn.hide(); - layoutbtn.removeClass('btn-success').addClass('btn-danger').html('Maximize'); - $("#plcontrol button, #db-btn, #gallery-btn, #newpollbtn").attr('disabled', 'disabled'); - MINIMIZED=true; - // patch for 15px more space on the top - $("#mainpage").css('margin-top', $("#mainpage").css('margin-top').replace('px', '')*1+15+'px'); - } -} - -// pin-up playlist to player - -function pinUp() { - if (USERCONFIG.player=="left") { - $("#videowrap").after($("#rightpane").detach()); - } else if (USERCONFIG.player=="right") { - $("#videowrap").before($("#rightpane").detach()); - } - if (USERCONFIG.queue=="left") { - $("#leftpane").before($("#chatwrap").detach()); - } else if (USERCONFIG.queue=="right") { - $("#leftpane").after($("#chatwrap").detach()); - } - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - if (USERCONFIG.qsize=="wide") { - $("#chatwrap").removeClass().addClass('col-lg-7 col-md-7'); - } else { - $("#chatwrap").removeClass().addClass('col-lg-5 col-md-5'); - } - $("#pinup-btn").attr('title', 'Unpin playlist'); - $("#config-btn, #configbtnwrap br").hide(); - $("#min-layout").parent().hide(); - $("#mode-sel").find("option[value='chMode'], option[value='sMode']").hide(); - PINNED=true; -} - -// un-pin playlist from player - -function unPin() { - if (USERCONFIG.queue=="left") { - $("#leftpane").before($("#rightpane").detach()); - } else if (USERCONFIG.queue=="right") { - $("#leftpane").after($("#rightpane").detach()); - } - if (USERCONFIG.player=="left") { - $("#videowrap").after($("#chatwrap").detach()); - } else if (USERCONFIG.player=="right") { - $("#videowrap").before($("#chatwrap").detach()); - } - $("#chatwrap").removeClass().addClass('col-lg-5 col-md-5'); - if (USERCONFIG.qsize=="wide") { - $("#rightpane").removeClass().addClass('col-lg-7 col-md-7'); - } else { - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - } - $("#pinup-btn").attr('title', 'Pinup playlist to player'); - $("#config-btn, #configbtnwrap br").show(); - $("#min-layout").parent().show(); - $("#mode-sel").find("option[value='chMode'], option[value='sMode']").show(); - PINNED=false; -} - -// show contributors list - -function showContributors() { - createModal("Contributors List"); - - len=$("#queue li").length+1; - var list = []; - for (i=1; i'+list3.join(""); - body.append(html); -} - -// expand/collapse queue - -function expandQueue() { - if (!FULLPL) { - $("#queue").css('max-height', '100000px'); - expandbtn.attr('title', 'Collapse playlist'); - FULLPL=true; - } else { - $("#queue").css('max-height', '500px'); - expandbtn.attr('title', 'Expand playlist'); - FULLPL=false; - scrollQueue(); - } -} - -// get playlist URLS - -function getPlaylistURLs() { - createModal('Playlist URLs'); - - data=$('').val(formatRawList()).appendTo(body); - rlist=$('Raw Links').appendTo(footer); - tlist=$('Plain Text').appendTo(footer); - hlist=$('HTML Code').appendTo(footer); - olist=$('Ordered List').appendTo(footer); - dlist=$('Database Format').appendTo(footer); - - rlist.on("click", function() { - data.val(formatRawList()); - }); - tlist.on("click", function() { - data.val(formatPlainTextList()); - }); - hlist.on("click", function() { - data.val('\n'+formatHTMLList()+'\n'); - }); - olist.on("click", function() { - data.val(formatOrderedList()); - }); - dlist.on("click", function() { - data.val(formatDBList()); - }); -} - -// add random item from channel database - -function addRandomItem() { - time=(new Date()).getTime(); - if ((time-LASTADD)<0) { - alert('You can add random video every 2 minutes.'); - } else { - var link=""; - while (link=="") { - rnd=Math.round(Math.random()*(ChannelDatabase.length-1)); - link=ChannelDatabase[rnd][0]; - } - addToPlaylist(link, "end"); - LASTADD=time; - } -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- User Interface ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// adding important hidden reference row - -zerorow = $('').insertBefore("#motdrow"); - -// adding top logo row - -azukirow = $('').insertBefore(zerorow); - -// adding video wrap if user has enabled "Hide Player" option - -if (USEROPTS.hidevid) { - $("#chatwrap, #chatline").removeClass('col-lg-12 col-md-12').addClass('col-lg-5 col-md-5'); - videowrap = $('') - .insertBefore("#chatwrap"); - currenttitle = $('') - .html('Currently Playing: '+$(".queue_active a").html()) - .appendTo(videowrap); - ytapiplayer = $('') - .appendTo(videowrap); - - html='According to your User Preferences, video player is hidden. ' - + 'Click a button below to continue hiding player. ' - + 'Click default "Reload" icon to show player in this session. ' - + 'If you\'ll stay in "Chat Only" mode, functionality of this channel will be limited.'; - makeAlert("No Player", html).appendTo(ytapiplayer); - - staybtn = $('Stay In "Chat Only" Mode') - .appendTo("#ytapiplayer .alert") - .on("click", function() { - videowrap.remove(); - $("#chatwrap").removeClass().addClass('col-lg-12 col-md-12'); - $("#configform, #modeform, #pinup-btn").hide(); - fitChat("auto"); - }); -} - -// changing initial layout to compact for new users - -$("body").addClass('fluid'); -compactLayout(); -setLayout(); -scrollChat(); -scrollQueue(); - -// adding "id" attributes - -$(".navbar-collapse .navbar-nav").children().first().attr('id', 'home-link'); -$("#home-link").next().attr('id', 'account-link'); -$("#account-link").next().attr('id', 'options-link'); -$("#options-link").next().attr('id', 'channelset-link'); -$("#channelset-link").next().attr('id', 'layout-link'); - -// changing location of some layout elements - -$("#main").prepend($("#drinkbar").detach()); -$("#videowrap").append(''); -$("#playercontrols").append($("#mediarefresh").detach()); -$("#rightpane").prepend($("#videocontrols").detach()); -$("#rightpane").prepend($("#plcontrol").detach()); -$("#leftpane").prepend($("#newpollbtn").detach()); -$("#plcontrol").prepend($("#showmediaurl").detach()); - -// header and footer links open in a new tab - -$("#home-link a, #account-link ul a, .credit a").attr('target', '_blank'); - -// adding default CyTube Plus CSS if not set - -if ($("#chanexternalcss").length<1) { - url='https://dl.dropboxusercontent.com/s/hbhlrmys5piztgo/main.css'; - $("head").append(''); -} - -setUserCSS(); - -// adding favicon - -if (UI_Favicon=="1" && Favicon_URL!="") { - $(document).ready(function() { - $('') - .appendTo("head"); - }); -} - -// changing carets to unicode characters - -$("nav .caret, #cs-edit-dd-toggle .caret").removeClass('caret').html(' ▾'); - -// adding important messages to "Options" - -text1='Please use "Personal theme" selector in the room configuration box to select a theme for this channel. '; -text2='Please use "Click to configure" button in the room configuration box to configure this channel. '; -text3='If you want to make global changes, please go to another channel, or make changes before accepting ' - + 'special features.'; -$("#us-theme").hide(); -$("#us-theme").parent().append(''+text1+''+text3+''); -$("#us-layout").hide(); -$("#us-layout").parent().append(''+text2+''+text3+''); - -// creating channel settings filters preparation button - -csfontsimport = $('Prepare fonts filters') - .insertAfter("#cs-chatfilters-import") - .on("click", function() { - prepareFilters(); - }); - -// fixing layout after saving global user options - -$("#useroptions .modal-footer button:nth-child(1)").on("click", function() { - USEROPTS.hidevid ? location.reload() : '' - html='All changes are applying globally, but this channel uses its own layout. ' - + 'Please use "Click to configure" button to configure this channel layout.' - + 'Reload player if the wrong title is displaying. ' - + 'In HD layout or if player is removed, you may not see some elements due to CyTube API. ' - + 'If so, reload channel.'; - makeAlert("You have changed global User Preferences", html, "alert-info").appendTo("#announcements"); - compactLayout(); - setLayout(); - FLUID ? fluidLayout() : ''; - setUserCSS(); - scrollChat(); - scrollQueue(); -}); - -// changing channel name - -if (UI_ChannelName=="1" && ChannelName_Caption!="") { - $(".navbar-brand").html(ChannelName_Caption); -} - -// adding channel small logo - -if (UI_MiniLogo=="1" && MiniLogo_URL!="") { - $('').prependTo(".navbar-brand"); -} - -// adding header dropdown menu - -if (UI_HeaderDropMenu=="1") { - HeaderDropMenu_Title=="" ? HeaderDropMenu_Title='Menu' : ''; - headerdrop = $('') - .insertAfter("#home-link"); - $('') - .html(HeaderDropMenu_Title+' ▾') - .appendTo(headerdrop); - headermenu = $('') - .appendTo(headerdrop); - - HeaderDropMenu_Array.length<1 ? HeaderDropMenu_Array=[['no menu available', '']] : ''; - for (i in HeaderDropMenu_Array) { - title=HeaderDropMenu_Array[i][0]; - link=HeaderDropMenu_Array[i][1]; - if (link=="") { - headermenu.append(''+title+''); - } else { - $('') - .append(''+title+'') - .appendTo(headermenu); - } - } -} - -// optional removing of "Layout" menu from header - -if (UI_RemoveLayoutMenu=="1") { - $("#layout-link").remove(); -} else { - $("#layout-link li:nth-child(2) a").on("click", function() { - $("#configform, #modeform, #pinup-btn").hide(); - fitChat("auto"); - }); -} - -// changing some button captions or welcome message - -if (UI_CustomCaptions=="1") { - if (CustomCaptions_Array['add']!="") { - $("#showmediaurl").html(CustomCaptions_Array['add']); - } - if (CustomCaptions_Array['refresh']!="") { - $("#mediarefresh").html(CustomCaptions_Array['refresh']); - } - if (CustomCaptions_Array['voteskip']!="") { - socket.on("voteskip", changeSkipText); - changeSkipText(); - } - if (CustomCaptions_Array['welcome']!="") { - socket.on("login", changeWelcomeText); - changeWelcomeText(); - } -} - -// deleting previous MOTD - -UI_MOTDDelete=="1" ? $("#motd").html('') : ''; - -// setting MOTD - -if (UI_MOTDAutoLogo=="1" || UI_RulesBtn=="1" || (UI_MOTDTabs=="1" && MOTDTabs_Array.length>0)) { - socket.on("setMotd", changeMOTD); - changeMOTD(); -} - -// setting MOTD logo - -if (UI_MOTDAutoLogo=="1") { - if (MOTDAutoLogo_Mode!="1" && MOTDAutoLogo_Mode!="2" && MOTDAutoLogo_Mode!="3" && MOTDAutoLogo_Mode!="7") { - MOTDAutoLogo_Mode='1'; - } - if (MOTDAutoLogo_Mode=="3") { - if (typeof MOTDAutoLogo_Interval!=="number" || MOTDAutoLogo_Interval<1) { - MOTDAutoLogo_Interval=20; - } - setInterval(function() { - nr=Math.floor(Math.random()*MOTDAutoLogo_Array.length); - $("#motdlogo").attr('src', MOTDAutoLogo_Array[nr]); - }, MOTDAutoLogo_Interval*1000); - } -} - -// adding attention bar - -if (UI_AttentionBar=="1" && AttentionBar_URL!="") { - attbarwrap = $('').prependTo("#announcements"); - attbar = $('') - .attr('src', AttentionBar_URL) - .appendTo(attbarwrap); -} - -// adding custom channel announcement - -if (UI_ChannelAnnouncement=="1") { - ChannelAnnouncement_Title=="" ? ChannelAnnouncement_Title='Administration Message' : ''; - ChannelAnnouncement_HTML=="" ? ChannelAnnouncement_HTML='no messages' : ''; - makeAlert(ChannelAnnouncement_Title, ChannelAnnouncement_HTML).appendTo("#announcements"); -} - -// adding full-width title bar and progress bar - -if (UI_FullTitleBar=="1") { - titlerow = $('').insertBefore("#main"); - titlerowouter = $('') - .html($("#currenttitle").detach()) - .appendTo(titlerow); - mediainfo = $('').html('Nothing playing').prependTo("#videowrap"); - - UI_ProgressBar=="1" ? setInterval(function() {progressBar()}, 2000) : ''; - - socket.on("changeMedia", showInfo); - showInfo(); - - if (UI_TitleIcon=="1" && TitleIcon_URL!="") { - $("#titlerow #currenttitle").css({ - 'background-image':'url("'+TitleIcon_URL+'")', - 'background-repeat':'no-repeat', - 'background-position':'left center' - }); - } -} - -// changing title bar description - -if (UI_TitleBarDescription=="1") { - socket.on("changeMedia", changeTitle); - changeTitle(); -} - -// easter egg - -function inba() { - $("body").css('background-image', 'none'); - BGCHANGE++; - BGCHANGE%2==0 ? $("body").css('background-color', 'gold') : $("body").css('background-color', 'blue'); -} - -// customizing chat notifications sound - -if (UI_CustomPingSound=="1" && CustomPingSound_URL!="") { - CHATSOUND = new Audio(CustomPingSound_URL); - CHATSOUND.volume=0.6; -} - -// additional chat functions - -chatflair = $('Func') - .insertAfter("#adminflair") - .on("click", function() { - if(!CHATFUNC) { - $("#sounds-dropdown").remove(); - SOUNDSPANEL = false; - showChatFunctions(); - CHATFUNC = true; - } else { - $("#chatfunc-dropdown").remove(); - CHATFUNC = false; - } - }); -socket.on("rank", toggleChatFunctions); -toggleChatFunctions(); - -// optional chat joining message - -if (UI_JoinText=="1") { - JoinText_Message=="" ? JoinText_Message="joined" : ''; - socket.emit("chatMsg", {msg: '/me '+JoinText_Message}); -} - -// optional chat leaving message - -if (UI_LeaveText=="1") { - LeaveText_Message=="" ? LeaveText_Message="left" : ''; - $(window).unload(function() { - socket.emit("chatMsg", {msg: '/me '+LeaveText_Message}); - }); -} - -// adding chat buttons wrapping - -if (UI_FontsBtn=="1" || UI_EmotesBtn=="1" || UI_CommandsBtn=="1" || UI_SoundFilters=="1" || UI_ModPanel=="1" || UI_ChatSpeak=="1") { - chatcontrols = $('').appendTo("#chatwrap"); -} - -// adding chat fonts button - -if (UI_FontsBtn=="1") { - fontsbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - toggleDiv(fontspanel); - }); -} - -// adding chat emotes button - -if (UI_EmotesBtn=="1") { - emotesbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - toggleDiv(emotespanel); - (UI_ChannelCache!="1" && !EMOTES) ? showEmotes() : ''; - }); -} - -// adding chat commands button - -if (UI_CommandsBtn=="1" && (UI_UserCommands=="1" || UI_FontsBtn=="1" || UI_ChatSpeak=="1")) { - chathelpbtn = $('') - .text('Chat Commands') - .appendTo(chatcontrols) - .on("click", function() { - showChatHelp(); - }); -} - -// adding chat sounds toggle button and control panel - -if (UI_SoundFilters=="1" || UI_ChatSpeak=="1") { - voicesbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - if(!SOUNDSPANEL) { - $("#chatfunc-dropdown").remove(); - CHATFUNC=false; - showSoundsPanel(); - SOUNDSPANEL = true; - } else { - $("#sounds-dropdown").remove(); - SOUNDSPANEL = false; - } - }); - VOICES=true; -} - -// adding moderators panel button - -if (UI_ModPanel=="1") { - modbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - showModPanel(); - }); - - socket.on("rank", toggleModPanel); - toggleModPanel(); -} - -// adding player control buttons - -if (UI_PlayerOptions=="1") { - if (UI_FullTitleBar=="1") { - switchdescrbtn = $('') - .attr('title', 'Switch description') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - DEFDESCR = !DEFDESCR; - showInfo(); - }); - } - - hideplayerbtn = $('') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - $(this).hasClass('btn-danger') ? showPlayer() : coverPlayer(); - }); - - muteplayerbtn = $('') - .append('') - .appendTo("#playercontrols") - .on("click", function() { - if ($(this).hasClass('btn-danger')) { - $(this).removeClass('btn-danger').attr('title', 'Mute player'); - unmutePlayer(); - } else { - $(this).addClass('btn-danger').attr('title', 'Unmute player'); - mutePlayer(); - } - }); - - socket.on("changeMedia", toggleMuteBtn); - toggleMuteBtn(); - - savemediabtn = $('') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - downloadCurrentItem(); - }); -} - -// adding player transformation buttons - -if (UI_TransformationBtns=="1") { - transcontrols = $('').appendTo("#videowrap"); - - mirrorxbtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('mX')) { - $("#ytapiplayer").removeClass('mX'); - } else { - $("#ytapiplayer").addClass('mX'); - } - }); - - mirrorybtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('mY')) { - $("#ytapiplayer").removeClass('mY'); - } else { - $("#ytapiplayer").addClass('mY'); - } - }); - - rotatebtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('rotate')) { - $("#ytapiplayer").removeClass('rotate'); - } else { - $("#ytapiplayer").addClass('rotate'); - } - }); - - verticalbtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('vertical')) { - $("#ytapiplayer").removeClass('vertical'); - this.attr('title', 'Vertical player'); - } else { - $("#ytapiplayer").addClass('vertical'); - this.attr('title', 'Horizontal player'); - } - }); -} - -// creating fonts and emotes main row - -if (UI_FontsBtn=="1" || UI_EmotesBtn=="1") { - chatpanel = $('').insertBefore("#playlistrow"); -} - -// adding fonts panel - -if (UI_FontsBtn=="1") { - fontspanel = $('').appendTo(chatpanel); - fontsbtnwrap = $('').appendTo(fontspanel); - - FontsArray = [ - ['background:white', 'white', '■'], - ['background:gold', 'yellow', '■'], - ['background:orange', 'orange', '■'], - ['background:#FFBBFF', 'pink', '■'], - ['background:red', 'red', '■'], - ['background:limegreen', 'lime', '■'], - ['background:green', 'green', '■'], - ['background:aqua', 'aqua', '■'], - ['background:blue', 'blue', '■'], - ['background:#660099', 'violet', '■'], - ['background:#660000', 'brown', '■'], - ['background:silver', 'silver', '■'], - ['background:black', 'black', '■'], - ['background:black; color:white', 'bw', 'a'], - ['background:white; font-weight:bold; color:black', 'b', 'B'], - ['background:white; font-style:italic; color:black', 'i', 'I'], - ['background:white; text-decoration:underline; color:black', 'u', 'U'], - ['background:white; text-decoration:line-through; color:black', 's', 's'], - ['background:gold; color:red', 'd', 'D'], - ['background:black; color:gold; font-family:impact, sans-serif', 'f', 'F'], - ['background:black; color:white', 'sp', 'sp'], - ['background:white; color:black; border:solid 2px red', '\\/', '\[\/\]'], - ]; - - for (i in FontsArray) { - $('') - .addClass('btn btn-default').attr('style', FontsArray[i][0]).text(FontsArray[i][2]) - .appendTo(fontsbtnwrap); - i%13==12 ? fontsbtnwrap.append('') : false; - } - - if (UI_UnicodeChars=="1" && UnicodeChars_Array.length>0) { - unibtnwrap = $('').appendTo(fontspanel); - for (i in UnicodeChars_Array) { - btn=$('') - .addClass('btn btn-default').text(UnicodeChars_Array[i]) - .appendTo(unibtnwrap); - } - } -} - -// adding emotes panel - -if (UI_EmotesBtn=="1") { - emotespanel = $('').appendTo(chatpanel); - UI_ChannelCache=="1" ? showEmotes() : ''; -} - -// adding background image to empty playlistrow corner - -if (UI_EmptyCornerBackground=="1" && EmptyCornerBackground.length>0) { - rnd=Math.round(Math.random()*(EmptyCornerBackground.length-1)); - $("#playlistrow").css({ - 'background-image':'url("'+EmptyCornerBackground[rnd]+'")', 'background-repeat':'no-repeat' - }); -} - -// adding layout configuration panel button - -layoutbtn = $('') - .html(' Layout') - .prependTo("#leftpane") - .on("click", function() { - toggleConfigPanel(); - }); -$("#playlistmanagerwrap").show(); - -// adding media database and gallery wrap - -if (UI_ChannelDatabase=="1" || UI_ChannelGalleries=="1") { - leftpanecontrols = $('').insertAfter(layoutbtn); -} - -// adding media database button - -if (UI_ChannelDatabase=="1") { - dbbtn = $('Bumps') - .appendTo(leftpanecontrols) - .on("click", function() { - toggleDiv(dbwrap); - !CHANDB ? createDatabase() : ''; - }); -} - -// adding galleries button - -if (UI_ChannelGalleries=="1") { - gallerybtn = $('Channel Galleries') - .appendTo(leftpanecontrols) - .on("click", function() { - toggleDiv(gallerywrap); - !GALLERY ? createGallery() : ''; - - // patch: strange imgur behaviour (not loading first cached gallery) - if(!GALLVIS && UI_ChannelCache=="1" && gallerywrap.css('display')!="none") { - iframe=document.getElementById("galleryFrame"); - if(iframe.src.indexOf('imgur.com')>-1) { - iframe.src=iframe.src; - } - } - GALLVIS=true; - }); -} - -// adding layout configuration well - -configwrap = $('').appendTo("#leftpane-inner"); -configwell = $('').appendTo(configwrap); - -if (!LAYOUTBOX) { - toggleDiv(configwrap); - layoutbtn.removeClass('btn-success'); -} - -// adding layout configuration form - -configform = $('').appendTo(configwell); -$('Global layout').appendTo(configform); -configbtnwrap = $('').appendTo(configform); - -configbtn = $('Click to configure') - .appendTo(configbtnwrap) - .on("click", function() { - showConfig(); - }); - -configbtnwrap.append(''); - -fluidlayout = $('').appendTo(configbtnwrap); -cbox = $('') - .appendTo(fluidlayout) - .on("click", function() { - toggleFluidLayout(); - }); -cbox.after(' Fluid'); - -minlayout = $('').appendTo(configbtnwrap); -cbox = $('') - .appendTo(minlayout) - .on("click", function() { - toggleMinLayout(); - }); -cbox.after(' Minimized'); - -// adding selector with player display modes - -if (UI_DisplayModeSel=="1") { - modeform = $('').appendTo(configwell); - $('Display mode').appendTo(modeform); - modewrap = $('').appendTo(modeform); - - modesel = $('') - .append('synchtube mode') - .append('cinema mode') - .append('chatroom mode') - .append('silent mode') - .append('radio mode') - .appendTo(modewrap) - .on("change", function() { - $("#config-btn, #configbtnwrap br").hide(); - $("#min-layout").parent().hide(); - $("#sounds-dropdown, #chatfunc-dropdown").remove(); - SOUNDSPANEL=false; - CHATFUNC=false; - PLAYER.type=="jw" ? refreshPlayer() : ''; - setMode($(this).val()); - scrollQueue(); - scrollChat(); - showPlayer(); - }); - - socket.on("changeMedia", setModeAfterVideoChange); -} - -// adding selector with channel themes - -themeform = $('').appendTo(configwell); -$('Personal theme').appendTo(themeform); -themewrap = $('').appendTo(themeform); - -themesel = $('') - .append('default themes') - .append('# Light') - .append('# Bootstrap') - .append('# Slate') - .append('# Cyborg') - .appendTo(themewrap) - .on("change", function() { - $("#sounds-dropdown, #chatfunc-dropdown").remove(); - $("#playlistmanagerwrap").show(); - SOUNDSPANEL=false; - CHATFUNC=false; - USERTHEME=$(this).val(); - setUserCSS(); - setOpt(CHANNEL.name+"_theme", USERTHEME); - }); - -if (ThemesCSS.length>0) { - themesel.append('additional themes'); - for (i in ThemesCSS) { - themesel.append(''+ThemesCSS[i][0]+''); - } -} - -if (UI_ChannelTheme=="1" && ChannelThemeURL!="") { - themesel.prepend('# Channel Theme') - .prepend('main theme'); -} - -themesel.val(USERTHEME); - -// adding temporary hiding options - -hideform = $('').appendTo(configwell); -$('Temporary hide').appendTo(hideform); -hidewrap = $('').appendTo(hideform); - -hidemotd = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidemotd) - .on("click", function() { - toggleDiv("#motdrow"); - }); -cbox.after(' MOTD'); - -hideann = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hideann) - .on("click", function() { - toggleDiv("#announcements"); - }); -cbox.after(' Announcements'); - -hidetitle = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidetitle) - .on("click", function() { - toggleDiv("#titlerow"); - toggleDiv("#currenttitle"); - }); -cbox.after(' Title'); - -hidepl = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidepl) - .on("click", function() { - toggleDiv("#queue"); - toggleDiv("#plmeta"); - }); -cbox.after(' Playlist'); - -hidehf = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidehf) - .on("click", function() { - $("nav").css('display')!="none" ? headerMode("fixed") : headerMode(USERCONFIG.header); - toggleDiv("nav"); - toggleDiv("footer"); - }); -cbox.after(' H&F'); - -// adding embedding options - -if (UI_EmbeddingMedia=="1" && (EmbeddingMedia_Images!="" || EmbeddingMedia_Videos!="")) { - embedform = $('').appendTo(configwell); - $('Embeds [?]') - .appendTo(embedform); - embedwrap = $('').appendTo(embedform); - - $("#embed-help").on("click", function() { - txt = 'This option lets you see images or videos directly on the chat, instead of links.\n' - + 'Click on image or double click on video to open in the new tab.\n' - + 'All videos are muted by default, if autoplay - click to unmute, else click to play.\n\n' - + 'This channel supports following types of links (specified as CSS codes):\n' - + '■ Images - '; - (EmbeddingMedia_Images!="") ? txt+=EmbeddingMedia_Images : 'none'; - txt += '\n■ Videos - '; - (EmbeddingMedia_Videos!="") ? txt+=EmbeddingMedia_Videos : 'none'; - alert(txt); - }); - - if (EmbeddingMedia_Images!="") { - embedimg = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(embedimg) - .on("click", function() { - EMBEDIMG = !EMBEDIMG; - setOpt(CHANNEL.name+"_embedimg", EMBEDIMG); - }); - cbox.after(' img'); - !EMBEDIMG ? cbox.removeAttr('checked') : ''; - } - - if (EmbeddingMedia_Videos!="") { - embedvid = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(embedvid) - .on("click", function() { - EMBEDVID = !EMBEDVID; - setOpt(CHANNEL.name+"_embedvid", EMBEDVID); - EMBEDVID ? autovid.show() : autovid.hide(); - }); - cbox.after(' video'); - !EMBEDVID ? cbox.removeAttr('checked') : ''; - - autovid = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(autovid) - .on("click", function() { - AUTOVID = !AUTOVID; - setOpt(CHANNEL.name+"_autovid", AUTOVID); - }); - cbox.after(' autoplay'); - !AUTOVID ? cbox.removeAttr('checked') : ''; - !EMBEDVID ? autovid.hide() : ''; - } -} - -// adding quick commands and volume buttons - -if (UI_QuickCommandsBtns=="1" || UI_VolumeBtns=="1") { - funcbtnform = $('').appendTo(configwell); - $('Command buttons').appendTo(funcbtnform); - funcbtnwrap = $('').appendTo(funcbtnform); - btnsgroup = $('').appendTo(funcbtnwrap); - - if (UI_QuickCommandsBtns=="1") { - clearbtn = $('/clear') - .appendTo(btnsgroup) - .on("click", function() { - if (confirm('Are you sure to clear the chat window?')) { - socket.emit("chatMsg", {msg: '/clear'}); - } - }); - afkbtn = $('/afk') - .appendTo(btnsgroup) - .on("click", function() { - socket.emit("chatMsg", {msg: '/afk'}); - }); - - socket.on("rank", toggleClearBtn); - toggleClearBtn(); - } - - if (UI_VolumeBtns=="1") { - voldownbtn = $('vol -') - .appendTo(btnsgroup) - .on("click", function() { - a=PLAYER.player.getVolume(); - PLAYER.player.setVolume(a-1); - }); - volupbtn = $('vol +') - .appendTo(btnsgroup) - .on("click", function() { - a=PLAYER.player.getVolume(); - PLAYER.player.setVolume(a+1); - }); - - socket.on("changeMedia", toggleVolBtn); - toggleVolBtn(); - } -} - -// adding media database layout - -if (UI_ChannelDatabase=="1" && ChannelDatabase_URL=="") { - dbwrap = $('').insertBefore(configwrap); - dbwell = $('').appendTo(dbwrap); - - var item_nr=0; - var layer_nr=1; - var opening=new Array(); - var item_count=new Array(0); - var count_nr=0; - - if (ChannelDatabase.length<1 || ChannelDatabase[0][0]!="") { - ChannelDatabase.unshift(['', '(various media)']); - } - UI_ChannelCache=="1" ? createDatabase() : ''; -} else if (UI_ChannelDatabase=="1" && ChannelDatabase_URL!="") { - $.getScript(ChannelDatabase_URL); -} - -// adding galleries layout - -if (UI_ChannelGalleries=="1") { - gallerywrap = $('') - .appendTo("#leftpane-inner"); - gallerywell = $('').appendTo(gallerywrap); - - if (ChannelGalleries_Array.length<1) { - ChannelGalleries_Array=[['Anime pictures', 'http://imgur.com/a/SjwJb/embed']]; - } - UI_ChannelCache=="1" ? createGallery() : ''; -} - -// unchecking temporary media checkbox for registered users - -if (UI_DefaultNonTemp=="1") { - CLIENT.rank>0 ? $(".add-temp").prop('checked', false) : ''; -} - -// adding playlist options for moderators button - -advplaylist = $('') - .append('') - .insertBefore("#qlockbtn") - .on("click", function() { - toggleDiv(advplcontrols); - }); - -// adding advanced playlist options form - -advplcontrol = $('').insertAfter("#playlistmanager"); -advplcontrols = $('').appendTo(advplcontrol); - -// adding advanced playlist options buttons - -playnextbtn = $('Play next') - .appendTo(advplcontrols) - .on("click", function() { - socket.emit("playNext"); - }); - -addrandombtn = $('Add random') - .appendTo(advplcontrols) - .on("click", function() { - addRandomItem(); - }); - -bumplastbtn = $('Bump last') - .appendTo(advplcontrols) - .on("click", function() { - len=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+len+")").data("uid"); - socket.emit("moveMedia", {from:uid, after:PL_CURRENT}); - }); - -deletelastbtn = $('Delete last') - .appendTo(advplcontrols) - .on("click", function() { - if (confirm('Are you sure to delete last item?')) { - len=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+len+")").data("uid"); - socket.emit("delete", uid); - } - }); - -toggleAdvancedPl(); - -// adding playlist expanding button - -expandbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - expandQueue(); - }); - -// adding playlist scrolling button - -scrollbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - scrollQueue(); - }); - -// adding contributors button - -contribbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - showContributors(); - }); - -// adding pin-up button - -pinupbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - !PINNED ? pinUp() : unPin(); - scrollQueue(); - scrollChat(); - }); - -// extending 'Get URLs' function - -if (UI_ExtendedGetURLs=="1") { - $("#getplaylist").unbind() - .on("click", function() { - getPlaylistURLs(); - }); -} - -// altering message for the first-timers - -if ($("#plonotification").length>0) { - repl = '"the old style" of playlist buttons (recommended) - more compact playlist with nice icons ' - + '(see image ' - + 'here).'; - html=$("#plonotification .alert").html().replace(/the old style of playlist buttons./, repl); - html=html.replace('right click). ', 'right click).'); - $("#plonotification .alert").html(html); -} - -// rearranging footer - -/*html='CyTube Plus 4.5 · Copyright © 2013-2014 Zimny Lech · ' - + 'Free source on GitHub · ' - + 'Wiki'; -$(".credit").append(html);*/ - -if (UI_CustomRightFooter=="1") { - rightfooter = $(''+CustomRightFooter_HTML+'') - .appendTo("footer .container"); -} - -if (UI_CustomFooter=="1" || UI_UserStatistics=="1") { - leftfooter = (UI_CustomRightFooter=="1") ? $('') : $(''); - (UI_CustomRightFooter=="1" && CustomFooter_HTML!="") ? leftfooter.html(CustomFooter_HTML) : ''; - leftfooter.appendTo("footer .container"); -} - -// updating user visits - -USERVISITS++; -setOpt(CHANNEL.name+"_visits", USERVISITS); - -if (UI_UserStatistics=="1") { - (UI_CustomFooter=="1" && CustomFooter_HTML!="") ? $('').appendTo(leftfooter) : ''; - - $('My visits: '+USERVISITS+' / ') - .appendTo(leftfooter); - $('Current online time: ').appendTo(leftfooter); - onlinetime = $('0:00').appendTo(leftfooter); - - setInterval(function() {onlineTime()}, 60000); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- Chat and window extensions and events ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -(UI_EmbeddingMedia=="1" && (EmbeddingMedia_Images!="" || EmbeddingMedia_Videos!="")) ? ALTERCHATFORMAT=true : ''; -(UI_UserMarks=="1" || UI_IndependentEmotes=="1" || UI_IndependentFilters=="1") ? ALTERCHATFORMAT=true : ''; - -// alter chat messages formatting -// DEV NOTE: this is extended function from CyTube "util.js" file - -if (ALTERCHATFORMAT) { - function formatChatMessage(data, last) { - if (!data.meta || data.msgclass) { - data.meta = {addClass:data.msgclass, addClassToNameAndTimestamp:data.msgclass}; - } - - skip=data.username===last.name; - data.meta.addClass==="server-whisper" ? skip=true : ''; - data.msg.match(/^\s*\w+\s*:\s*<\/strong>\s*/) ? skip=false : ''; - data.meta.forceShowName ? skip=false : ''; - data.msg=execEmotes(data.msg); - - last.name = data.username; - div = $(''); - if (data.meta.addClass==="drink") { - div.addClass('drink'); - data.meta.addClass=''; - } - - if (USEROPTS.show_timestamps) { - time = $('').appendTo(div); - timestamp = new Date(data.time).toTimeString().split(' ')[0]; - time.text('['+timestamp+'] '); - if (data.meta.addClass && data.meta.addClassToNameAndTimestamp) { - time.addClass(data.meta.addClass); - } - } - - if (UI_UserMarks=="1" && UI_Squavatars=="1") { - html=createSquavatar(data.username); - div.html(div.html()+html); - } - if (UI_UserMarks=="1" && UI_Squavatars!="1") { - if (UserMarks_Array[data.username]!=undefined) { - html=''+UserMarks_Array[data.username]+''; - div.html(div.html()+html); - } - } - - uname = $(''); - !skip ? uname.appendTo(div) : ''; - mark = (UI_UsernameMark=="1" && UsernameMark_Char!="") ? UsernameMark_Char : ':'; - $('').text(data.username+mark+' ').appendTo(uname); - - data.meta.modflair ? uname.addClass(getNameColor(data.meta.modflair)) : ''; - if (data.meta.addClass && data.meta.addClassToNameAndTimestamp) { - uname.addClass(data.meta.addClass); - } - if (data.meta.superadminflair) { - uname.addClass('globalmod label').addClass(data.meta.superadminflair.labelclass); - $('').addClass(data.meta.superadminflair.icon) - .prependTo(uname); - } - - message = $('').appendTo(div); - message[0].innerHTML=data.msg; - - (data.meta.addClass=="greentext") ? message.addClass('greentext') : ''; - (data.meta.addClass=="spoiler") ? message.addClass('spoiler') : ''; - (data.meta.addClass=="action") ? message.addClass('action') : ''; - (data.meta.addClass=="server-whisper") ? message.addClass('server-whisper') : ''; - - if (data.meta.action) { - uname.remove(); - message[0].innerHTML=data.username+' '+data.msg; - } - - if (UI_IndependentEmotes=="1") { - _div=div.html(); - for (i in IndependentEmotes) { - filter=IndependentEmotes[i][0]; - html = ''; - re=new RegExp(filter, 'g'); - _div=_div.replace(re, html); - } - div.html(_div); - } - if (UI_IndependentFilters=="1") { - _div=div.html(); - for (i in IndependentFilters) { - _div=_div.replace(IndependentFilters[i].before, IndependentFilters[i].after); - } - div.html(_div); - } - - data.meta.addClass ? message.addClass(data.meta.addClass) : ''; - data.meta.shadow ? div.addClass("chat-shadow") : ''; - div.find("img").load(function() { - SCROLLCHAT ? scrollChat() : ''; - }); - - if (EMBEDIMG && UI_EmbeddingMedia=="1") { - div.find(EmbeddingMedia_Images).each(function() { - img = $('').attr('src', this.href) - .load(function() { - SCROLLCHAT ? scrollChat() : ''; - }); - $(this).html(img); - }); - } - if (EMBEDVID && UI_EmbeddingMedia=="1") { - div.find(EmbeddingMedia_Videos).each(function() { - vid = $('').attr('src', this.href).prop('loop', 'true') - .load(function() { - SCROLLCHAT ? scrollChat() : ''; - }).on("click", function() { - if (!AUTOVID) { - if ($(this).get(0).paused) { - $(this).get(0).play(); - } else { - $(this).get(0).pause(); - } - } else { - $(this).prop('muted', !$(this).prop('muted')); - }; - return false; - }).on("dblclick", function() { - window.open(this.src, '_blank'); - return false; - }); - AUTOVID ? vid.prop('autoplay', 'true').prop('muted', 'true') : ''; - UI_MediaControls=="1" ? vid.attr('controls', '') : ''; - $(this).html(vid); - }); - } - - return div; - } -} - -// client-side chat buffer for playing sounds - -_chatBuffer=addChatMessage; -addChatMessage=function(data) { - if (UI_SoundFilters=="1" && VOICES && (!(data.username in MUTEDVOICES) || MUTEDVOICES[data.username]=="0")) { - for (i in SoundFilters_Array) { - if (data.msg.indexOf(i)>-1) { - aud=new Audio(SoundFilters_Array[i]); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } - } - } - if (UI_ChatSpeak=="1" && VOICES && (!(data.username in MUTEDVOICES) || MUTEDVOICES[data.username]=="0")) { - msg=getText(data.msg) - if (msg.indexOf("!mow ")>=0) { - str=msg.split("!mow "); - aud=new Audio(SPEAKLINK+'?lang=polish&text='+encodeURI(str[1])); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } else if (msg.indexOf("!say ")>=0) { - str=msg.split("!say "); - aud=new Audio(SPEAKLINK+'?lang=english&text='+encodeURI(str[1])); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } - } - _chatBuffer(data); -} - -// fix formatting and sending chat messages -// DEV NOTE: this are extended events from CyTube "util.js" file - -$("#chatline, #chatbtn").unbind(); - -$("#chatline").on("keydown", function(ev) { - if (ev.keyCode==13) { - if (CHATTHROTTLE) { - return; - } - _msg=$("#chatline").val(); - msg=$("#chatline").val(); - if (msg.trim()) { - msg=prepareMessage(msg.trim()); - meta={}; - if (COMMAND) { - socket.emit("chatMsg", {msg:_msg}); - msg='➥ '+msg; - COMMAND=false; - } - if (USEROPTS.adminhat && CLIENT.rank>=255) { - msg='/a '+msg; - } else if (USEROPTS.modhat && CLIENT.rank>=Rank.Moderator) { - meta.modflair=CLIENT.rank; - } - if (CLIENT.rank>=2 && msg.indexOf("/m ")===0) { - meta.modflair=CLIENT.rank; - msg=msg.substring(3); - } - socket.emit("chatMsg", {msg:msg, meta:meta}); - userChatStats(_msg); - CHATHIST.push($("#chatline").val()); - CHATHISTIDX=CHATHIST.length; - $("#chatline").val(''); - } - return; - } else if (ev.keyCode==9) { - chatTabComplete(); - ev.preventDefault(); - return false; - } else if (ev.keyCode==38) { - if (CHATHISTIDX==CHATHIST.length) { - CHATHIST.push($("#chatline").val()); - } - if(CHATHISTIDX>0) { - CHATHISTIDX--; - $("#chatline").val(CHATHIST[CHATHISTIDX]); - } - ev.preventDefault(); - return false; - } else if (ev.keyCode==40) { - if (CHATHISTIDX 3. -// CUSTOM INSTALLATION: go to -> 1. - -// 1. Configure this library according to your wishes (see configuration sections below). -// 2. Save customized library to your file hosting (e.g. Dropbox) or to your own server. -// WARNING! You must be able to access .js file directly (browser's URL must contain .js extension, not .php etc.). -// WARNING FOR DROPBOX USERS! Always use 'dl.dropboxusercontent.com' URL instead of 'www.dropbox.com' URL. - -// 3. Enter your JS file location into 'External Javascript' field in 'Channel Settings' modal window. -// 4. Enter library CSS file location into 'External CSS' field in 'Channel Settings' modal window. -// NOTE: use default 'https://dl.dropboxusercontent.com/s/180y5d6mvlu8kd8/main.css' URL, -// or copy it to your own location. -// 5. Congratulations, your have just installed CyTube Plus! - -// Need detailed options explanations? Go to https://github.com/zimny-lech/CyTube-Plus/wiki/FAQ -// Problems? Something doesn't work? Go to https://github.com/zimny-lech/CyTube-Plus/wiki/Troubleshooting - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// CONFIGURE BELOW BEFORE INSTALLING IF YOU WANT TO CUSTOMIZE THIS LIBRARY - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- STARTING CONFIGURATION - USER INTERFACE (UI) ----- */ - -// CONFIGURATION NOTES: - -// In this section you can immediately enable and disable each option (set '1' to enable, '0' to disable) -// Every option marked as [&] requires additional configuration (see other sections below) -// WARNING! apostrophe sign (') in all text/html values must be prepend with "\" sign (e.g. "don\'t") - -// FILTERS INSTALLATION: open 'Channel Settings' modal window, go to 'Edit' -> 'Chat Filters', -// click 'Prepare fonts filters' button, and import - -// If you need more explanations, go to https://github.com/zimny-lech/CyTube-Plus/wiki/FAQ - -UI_DefaultSynchtube = 1; // default old Synchtube layout (player and playlist on the left) -UI_Favicon = 1; // [&] channel favicon -UI_MiniLogo = 1; // [&] small channel logo/avatar in the top navbar -UI_ChannelName = 1; // [&] channel custom brand name -UI_HeaderDropMenu = 1; // [&] additional header dropdown menu -UI_RemoveLayoutMenu = 1; // removing 'Layout' menu from the header -UI_MOTDAutoLogo = 0; // [&] big channel logo inserted into MOTD -UI_MOTDTabs = 0; // [&] switchable MOTD tabs application for homepage-like channel header -UI_MOTDDelete = 0; // deleting previous MOTD after accepting/loading script -UI_RulesBtn = 0; // [&] button displaying channel rules -UI_AttentionBar = 0; // [&] imageboard-style attention bar (requires external application) -UI_ChannelAnnouncement = 0; // [&] additional custom channel announcement -UI_FullTitleBar = 1; // full-width video title bar -UI_ProgressBar = 1; // YouTube/Dailymotion progress bar - // [ REQUIRE: UI_FullTitleBar enabled ] -UI_TitleIcon = 1; // [&] full-width title bar icon - // [ REQUIRE: UI_FullTitleBar enabled ] -UI_TitleBarDescription = 1; // [&] custom title bar description (default "Currently Playing:") -UI_JoinText = 1; // [&] chat message after user joining -UI_LeaveText = 1; // [&] chat message after user leaving -UI_UserCommands = 1; // [&] additional commands in the chat window -UI_UserMarks = 0; // [&] special signs/avatars before every message for defined users -UI_Squavatars = 0; // automatic squavatars (2-colored square avatars) before every message - // [ REQUIRE: UI_UserMarks enabled ] -UI_UsernameMark = 1; // [&] custom mark after username (default ":") -UI_MessagesSuffix = 0; // [&] text added to random chat messages -UI_CustomPingSound = 1; // [&] custom sound for chat notifications -UI_SoundFilters = 0; // [&] chat sounds played after sending certain words -UI_ChatSpeak = 1; // text speaking after '!say' and '!mow' commands (english and polish) -UI_IndependentEmotes = 0; // [&] additional settings-independent emotes -UI_IndependentFilters = 1; // [&] additional settings-independent filters -UI_FontsBtn = 0; // button displaying box with clickable chat fonts - // [ REQUIRE: INSTALLATION (see above) ] -UI_UnicodeChars = 1; // [&] additional buttons in the fonts panel with unicode characters - // [ REQUIRE: UI_FontsBtn enabled ] -UI_EmotesBtn = 1; // button displaying box with clickable chat emotes -UI_GroupEmotes = 1; // [&] emotes panel pagination, display limited number of emotes at one time - // [ REQUIRE: UI_EmotesBtn enabled ] -UI_CommandsBtn = 1; // button displaying modal window with chat commands help -UI_ModPanel = 0; // [&] panel with messages and help for moderators -UI_CustomCaptions = 0; // [&] custom captions for add, refresh, voteskip buttons, and welcome text -UI_PlayerOptions = 1; // [&] additional player options -UI_TransformationBtns = 1; // player transformation buttons -UI_ChannelDatabase = 0; // [&] box with embed additional media database -UI_ChannelGalleries = 0; // [&] box with embed galleries -UI_DisplayModeSel = 1; // selector with player display modes -UI_ChannelTheme = 0; // [&] additional default channel theme -UI_EmbeddingMedia = 1; // [&] possibility to embedding (displaying) images and .webm videos on the chat -UI_MediaControls = 1; // embedded video preloaded controls - // [ REQUIRE: UI_EmbeddingMedia enabled ] -UI_QuickCommandsBtns = 1; // buttons with '/clear' and '/afk' functions -UI_VolumeBtns = 1; // additional volume buttons for YouTube player -UI_EmptyCornerBackground = 0; // [&] random background image for empty playlist row corner -UI_ExtendedGetURLs = 1; // extended 'Get URLs' function -UI_DefaultNonTemp = 1; // default unchecking "Add as temporary" checkbox after loading for registered users -UI_CustomFooter = 0; // [&] custom channel footer -UI_CustomRightFooter = 0; // [&] right-sided footer box -UI_UserStatistics = 1; // displaying in the footer user visits number and current online time -UI_ExternalScript = 0; // [&] additional external script file -UI_ChannelCache = 1; // caching script emotes, additional media database and default gallery - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- DETAILED BASIC CONFIGURATION ----- */ - -// NOTES: -// a) values for 'MOTDAutoLogo_Mode': 1 = first logo; 2 = random logo; 3 = logo rotation; 7 = weekdays logos -// b) in 'SoundFilters_Array' use .ogg or .wav files, some browsers has problems with embedded .mp3 -// c) in 'ModPanel_Array' item leave empty first (username) field to make a message to all moderators -// d) in 'EmbeddingMedia_Images' and 'EmbeddingMedia_Videos' you can define acceptable file extensions -// use CSS syntax: e.g. 'a[href$=""]' defines acceptable end of an URL (file extension) -// you can also define URL fragments: 'a[href*=""]', or add excluding clause: '.not(\'a[href*=""]\'), etc. - - /* -- single variables -- */ - -Favicon_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -MiniLogo_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -ChannelName_Caption = 'CyTube Plus'; - -HeaderDropMenu_Title = 'Synch'; - -MOTDAutoLogo_Mode = 1; - -MOTDAutoLogo_Interval = 20; - -RulesBtn_Caption = 'Read Channel Rules'; - -AttentionBar_URL = ''; - -ChannelAnnouncement_Title = 'Administration Message'; - -TitleIcon_URL = 'https://dl.dropboxusercontent.com/s/xgefazzyhs8xncp/icon.png'; - -TitleBarDescription_Caption = 'Now Playing:'; - -JoinText_Message = 'joined'; - -LeaveText_Message = 'left'; - -UsernameMark_Char = '>'; - -MessagesSuffix_Text = '~xD'; - -MessagesSuffix_Percentage = 10; - -CustomPingSound_URL = 'https://dl.dropboxusercontent.com/s/0qtsttblgmkewnv/beep.wav'; - -PlayerHiding_URL = 'https://dl.dropboxusercontent.com/s/xz2o99scw5i7aai/stop.png'; - -GroupEmotes_Number = 100; - -ExternalScript_URL = ''; - - /* -- arrays -- */ - -HeaderDropMenu_Array = [ -['CyTube Servers', ''], -['Calzoneman CyTube', 'http://cytu.be/'], -['6irc Synchtube', 'http://synchtube.6irc.net/'], -['CyTube Stuff', ''], -['Source code', 'https://github.com/calzoneman/sync'], -['FAQ', 'https://github.com/calzoneman/sync/wiki/Beginner%27s-Guide-and-FAQ'], -['IRC', 'http://webchat.6irc.net/?channels=chat,synchtube'], -['CyTube Plus', 'https://github.com/zimny-lech/CyTube-Plus'], -]; - -MOTDAutoLogo_Array = [ -'https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png', -]; - -MOTDTabs_Array = [ -['Home', 'Welcome to our channel!'], -['Playlist', 'Playlist tab.We watched this, that and this.'], -['Schedule', 'Schedule:Monday: ...Tuesday: ...Wendesday: ...Thursday: ...Friday: ...Saturday: ...Sunday: ...'], -['Contact', 'Contact:Email - ...Skype - ...'], -]; - -RandomQuotes_Array = [ -'I like the Pope dancing', 'No quotes today', 'O rly?', -'People have the right to be stupid. You abuse that privilege', 'Don\'t play stupid with me', -'Roses are red violets are blue, God made me pretty, what happened to you?', -'Please don\'t interrupt me while I\'m ignoring you', -'Are you always this stupid, or are you making a special effort today?', -'I like you. You remind me of when I was young and stupid.', 'Go and buy me a beer', -'The door of this channel is always open for you... so feel free to leave!', -]; - -AskAnswers_Array = [ -'100% for sure', 'definitely yes', 'yes', 'probably', 'not any chance', 'definitely no', -'a little chance', 'no', '50/50', 'fairy is tired and will not answer', 'I refuse to answer', -]; - -Memes_Array = [ -'>', 'fb', 'omfg', 'u mad', -]; - -UserMarks_Array = { -'ZimnyLech': '', -'calzoneman': '♠', -} - -SoundFilters_Array = { -'habemus': 'https://dl.dropboxusercontent.com/s/3w1jahgffowjltz/hp.ogg', -'lol': 'https://dl.dropboxusercontent.com/s/9aqa1buu3phvpss/laugh.ogg', -} - -ModPanel_Array = [ -['', 'Welcome to the moderators panel. You can find here messages, news and help for all channel moderators, edited by script admin.'], -['', 'To temporary insert to the playlist any website instead of media files, click "Embed a custom frame" button in the playlist controls section. Then paste example code to the textarea: <iframe src="URL_of_your_page"></iframe>, and add.'], -]; - -CustomCaptions_Array = { -'add': 'Add here', -'refresh': 'Refresh player', -'voteskip': 'Voteskip', -'welcome': 'Hi', -} - -UnicodeChars_Array = [ -'★', '☆', '▲', '▼', '♥', '♪', '♿', '⚒', '♕', '✉', '☏', '♠', '→', -'☑', '☒', '✡', '☪', '✝', '☭', '☯', 'Ⓐ', '☕', '♨', '¥', '©', '∞', -]; - -ChannelGalleries_Array = [ -['Anime pictures', 'http://imgur.com/a/SjwJb/embed'], -['Historical photos', 'http://imgur.com/a/vnwC2/embed'], -]; - - /* -- HTML/CSS -- */ - -MOTDTabs_CSS = { -'padding': '20px', -'color': 'white', -'background-color': 'black', -} - -RulesBtn_HTML = 'You want to write on the chat? Enter temporary nickname into Guest Login input and click enter.You want to register a nick? Click Account -> Profile on the top of the channel, and fill the registration form. You don\'t need an email to register.Do not spam.You want to have this application on your own channel? Go to https://github.com/zimny-lech/CyTube-Plus.'; - -ChannelAnnouncement_HTML = 'This channel has been created with CyTube Plus 4.5.'; - -EmbeddingMedia_Images = 'a[href$=".jpg"], a[href$=".jpg:large"], a[href$=".jpeg"], a[href$=".JPG"], a[href$=".png"], a[href$=".tiff"], a[href$=".gif"]'; - -EmbeddingMedia_Videos = 'a[href$=".webm"]'; - -CustomFooter_HTML = 'This is custom footer.'; - -CustomRightFooter_HTML = ''; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- THEMES CONFIGURATION ----- */ - -// NOTES: -// a) TopUserLogo item has 3 attributes: name, URL, maximum height. -// Those images can be selected by user in Layout Configuration panel, and will be displayed on the channel top. - -ChannelThemeURL = 'https://dl.dropboxusercontent.com/s/l1qoep4su4xn5qz/chinska.css'; - -ThemesCSS = [ -['Plus Red', 'https://dl.dropboxusercontent.com/s/th8i1sj332wi0x9/plusred.css'], -['Kobato', 'https://dl.dropboxusercontent.com/s/1r3twlb0loipybw/kobato.css'], -['Celadon', 'https://dl.dropboxusercontent.com/s/iwarwhhph1ti2ek/celadon.css'], -]; - -TopUserLogo = [ -['cytube plus', 'https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png', 90], -['anime girl', 'https://dl.dropboxusercontent.com/s/knxd7dpup1u8lm3/azuki.png', 200], -['cosmos', 'https://dl.dropboxusercontent.com/s/v6dx49yqk5e3i2d/cosmos.jpg', 200], -['disco ball', 'https://dl.dropboxusercontent.com/s/ahpfm25pglc8j01/disco.jpg', 162], -['japanese landscape', 'https://dl.dropboxusercontent.com/s/llylt832evxrp6e/japan.jpg', 200], -['korean collage', 'https://dl.dropboxusercontent.com/s/qud9adhs183dq30/korea.jpg', 160], -['my little pony', 'https://dl.dropboxusercontent.com/s/r4ozo8oj8lmerec/mlp.jpg', 190], -]; - -EmptyCornerBackground = [ -'https://dl.dropboxusercontent.com/s/xa32t6jh68lor6p/kirino.png', -'https://dl.dropboxusercontent.com/s/xbz6j5vjqs34ihm/kobato0.png', -'https://dl.dropboxusercontent.com/s/sj67s6u5vwe6i7s/kuroneko.png', -'https://dl.dropboxusercontent.com/s/y9nnwvbrcbjm0fm/tsukiko.png', -'https://dl.dropboxusercontent.com/s/7bigihfi4ho0d29/moetan.png', -'https://dl.dropboxusercontent.com/s/0cg72kjsnt4p63g/azuki.png', -'https://dl.dropboxusercontent.com/s/va28xkaoz1co3ah/sakura.png', -]; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- INDEPENDENT EMOTES AND FILTERS CONFIGURATION ----- */ - -// NOTES ABOUT INDEPENDENT EMOTES: -// Every item has 4 attributes, respectively: chat code, image URL, image width, image height. -// Warning: due to conflict with RegExp, do not use square brackets or use proper "\\[" and "\\]" codes. - -IndependentEmotes = [ -[':awesome:', 'https://dl.dropboxusercontent.com/s/gz1k8oto90n16v6/awesome.png', 35, 35], -[':love:', 'https://dl.dropboxusercontent.com/s/fr9131zgnai0kix/heart.png', 35, 35], -]; - -// NOTES AND DEFAULT FILTERS EXAMPLES: -// If you use regular expression, you must put it between // signs with /g flag to change all occurences -// a) [mq]text[/mq] - fast scrolling text -// b) [mq0]text[/mq0] - slow scrolling text -// c) [imgur]suok1xr.jpg[/imgur] - imgur picture -// d) [drop]7mrz85gl29eiiks/logo.png[/drop] - dropbox picture -// e) [minus/i5]ig0qs6fvWvgBu.jpg[/minus] - minus.com picture -// f) [vi/b]1r8ih4t1.vichan.png[/vi] - vichan /b/ imageboard picture (you can use other boards too) - -IndependentFilters=[ -{ -before:/\[mq\](.*?)\[\/mq\]/g, -after:'$1' -}, -{ -before:/\[mq0\](.*?)\[\/(mq0|mq)\]/g, -after:'$1' -}, -{ -before:/\[imgur\](.*?)\[\/(i|imgur)\]/g, -after:'' -}, -{ -before:/\[drop\](.*?)\[\/(d|drop)\]/g, -after:'' - + '' -}, -{ -before:/\[minus\/(.*?)\](.*?)\[\/(m|minus)\]/g, -after:'' - + '' -}, -{ -before:/\[vi\/(.*?)\](.*?)\[\/(v|vi)\]/g, -after:'' - + '' -}, -]; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- MEDIA DATABASE CONFIGURATION ----- */ - -// NOTES: -// Leave empty URL field to create category button. -// WARNING! Use ChannelDatabase_URL only if you want to use external database file, it overwrites database below. -// If so, copy and configure 'https://raw.github.com/zimny-lech/CyTube-Plus/master/external-db.js' file. - -ChannelDatabase=[ -['', 'Japanese'], -['http://www.youtube.com/watch?v=Q3y-80HBM6Q', 'An Cafe - Smile Ichiban Ii Onna'], -['http://www.youtube.com/watch?v=nDqaTXqCN-Q', 'Babymetal - Ijime, Dame, Zettai'], -['http://www.youtube.com/watch?v=aNlkiymcT1Q', 'Hinoi Team - Ike Ike'], -['http://www.youtube.com/watch?v=JbQYK0mwLss', 'Morning Musume - Onna Ni Sachi Are'], -['http://www.youtube.com/watch?v=VZKMaFR2mtU', 'Perfume - Fake It'], -['http://www.youtube.com/watch?v=OYEHfWb1b4M', 'Shoko Nakagawa - Yuzurenai Negai'], -['http://www.youtube.com/watch?v=jvhI576M6so', 'Yuu Kikkawa - Bokarisuto?'], -['', 'Korean'], -['http://www.youtube.com/watch?v=M-XXJJFZcXg', '4Minute - Heart To Heart (jap.)'], -['http://www.youtube.com/watch?v=HchHZkkBOoE', 'As One - Catch Me Up'], -['http://www.youtube.com/watch?v=UVeTI4v24M0', 'C-REAL - No No No No No'], -['http://www.youtube.com/watch?v=04FdisNU3vw', 'Girl\'s Day - Oh! My God'], -['http://www.youtube.com/watch?v=ysnUHXksic8', 'NS Yoon-G - Reason To Become A Witch'], -['http://www.youtube.com/watch?v=mZUZdGCyLmw', 'Orange Caramel - Bangkok City'], -['http://www.youtube.com/watch?v=r-MXLmNnarQ', 'TINY-G - Minimanimo'], -['', 'Chinese'], -['http://www.youtube.com/watch?v=Bi0tjyVfHOg', 'Amber Ann - Lian Ai Yingyuan Tuan'], -['http://www.youtube.com/watch?v=dsU0Vu6aJhw', 'By2 - Love You Love You'], -['http://www.youtube.com/watch?v=ovPhJim1EUc', 'Momo - One Hundred Girlfriends '], -['http://www.youtube.com/watch?v=lxa2KqERBZE', 'S.H.E. - Shero'], -['http://www.youtube.com/watch?v=jd2-Nf86jvA', 'Weather Girls - Koi No Tenki Yohou'], -['', 'Anime songs'], -['http://www.youtube.com/watch?v=fJ_DH7jzoxQ', 'Ai No Tenshi (Perfect Blue)'], -['http://www.youtube.com/watch?v=ZNu_NV5PEM8', 'Chu☆ - Miko Miko Naasu - Ai No Teema'], -['http://www.youtube.com/watch?v=l65_QPNZ_k8', 'Hommarju feat. MAKI - Yamato Nadeshiko Education (Seitokai Yakuindomo OP)'], -['http://www.youtube.com/watch?v=dQbaJquz_jo', 'Kayo Sakata - Shoujo Q (Pani Poni Dash! OP)'], -['http://www.youtube.com/watch?v=nLSFxQijz6U', 'Kotoko - Princess Bride'], -['http://www.youtube.com/watch?v=QK-37CnYTpg', 'Princess Party Camelia OP'], -['http://www.youtube.com/watch?v=jehMXrY1q5I', 'Yui Makino - Yume No Tsubasa'], -]; - -ChannelDatabase_URL=''; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- END OF CONFIGURATION, DO NOT CHANGE ANYTHING BELOW ----- */ - -/* ----- Initial channel options ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// reload script after unexpected re-connection or script URL change - -var LOADED = (typeof LOADED==="undefined") ? false : true; -LOADED ? location.reload() : ''; - -/* ----- getting and setting channel options ----- */ - -if (UI_DefaultSynchtube=="1") { - defplayer="left"; defuserlist="right"; defqueue="left"; -} else { - defplayer="right"; defuserlist="left"; defqueue="right"; -} - -var DEFTHEME = (UI_ChannelTheme=="1" && ChannelThemeURL!="") ? ChannelThemeURL : "/css/themes/slate.css"; - -var USERCONFIG = { - "player":getOrDefault(CHANNEL.name+"_player", defplayer), - "userlist":getOrDefault(CHANNEL.name+"_userlist", defuserlist), - "queue":getOrDefault(CHANNEL.name+"_queue", defqueue), - "qsize":getOrDefault(CHANNEL.name+"_qsize", "wide"), - "main":getOrDefault(CHANNEL.name+"_main", "top"), - "motd":getOrDefault(CHANNEL.name+"_motd", "top"), - "logo":getOrDefault(CHANNEL.name+"_logo", "no"), - "logourl":getOrDefault(CHANNEL.name+"_logourl", ""), - "logoht":getOrDefault(CHANNEL.name+"_logoht", 250), - "header":getOrDefault(CHANNEL.name+"_header", "detached"), - "css":getOrDefault(CHANNEL.name+"_css", "no"), - "csscode":getOrDefault(CHANNEL.name+"_csscode", ""), - "modhash":getOrDefault(CHANNEL.name+"_modhash", ""), -} -var USERTHEME = getOrDefault(CHANNEL.name+"_theme", DEFTHEME); -var FLUID = getOrDefault(CHANNEL.name+"_fluid", false); -var LAYOUTBOX = getOrDefault(CHANNEL.name+"_layoutbox", true); -var SOUNDSLVL = getOrDefault(CHANNEL.name+"_soundslvl", 3); -var EMBEDIMG = getOrDefault(CHANNEL.name+"_embedimg", true); -var EMBEDVID = getOrDefault(CHANNEL.name+"_embedvid", true); -var AUTOVID = getOrDefault(CHANNEL.name+"_autovid", true); -var USERVISITS = getOrDefault(CHANNEL.name+"_visits", 0); - -var DEFDESCR = true; // standard item description in the player header -var NOPLAYER = false; // removed player in silent mode -var CHATFUNC = false; // admin chat functions panel visibility -var COMMAND = false; // aditional command occuring in the chat message -var VOICES = false; // chat sounds not disabled by user -var EMOTES = false; // emotes have been loaded into emotes panel -var CLEARING = false; // auto clearing messages window -var ANTIAFK = false; // enabled anti-AFK function -var SOUNDSPANEL = false; // chat sounds panel visibility -var PINNED = false; // playlist pinned to player -var FULLPL = false; // expanded playlist view -var MINIMIZED = false; // minimized layout -var CHANDB = false; // channel database has been loaded -var GALLERY = false; // channel galleries have been loaded -var GALLVIS = false; // channel galleries have been viewed by user -var ALTERCHATFORMAT = false; // using altered 'formatChatMessage' built-in function - -var PREVTIME = 0; // previous read of a current item time for the progress bar -var LASTADD = 0; // timestamp of the last adding random item from the channel database -var USERONLINE = 0; // user minutes online -var BGCHANGE = 0; // number of background changes for the easter egg function - -var MUTEDVOICES = new Array(); // list of users with muted chat sounds by user -var CHATSTAT = {"n":0, "l":0, "m":[]}; // array with user messages statistics -var ADDEDLINKS = new Array(); // array of links added from channel database by user - -var HASH = ''; // simple hash for comparing if the new messages have appeared in the mod panel - -WEBKIT="webkitRequestAnimationFrame" in window; -SOUNDSVALUES=new Array(0, 0.1, 0.2, 0.4, 0.7, 1); -SPEAKLINK='http://webanywhere.cs.washington.edu/cgi-bin/espeak/getsound.pl'; -IMBA=new Audio("https://dl.dropboxusercontent.com/s/xdnpynq643ziq9o/inba.ogg"); -CHATSOUND.volume=0.6; - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- Global functions ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// toggle elements visibility - -function toggleDiv(div) { - $(div).css('display')=="none" ? $(div).show() : $(div).hide(); -} - -// refresh player - -function refreshPlayer() { - PLAYER.type=""; - PLAYER.id=""; - socket.emit("playerReady"); -} - -// add link to playlist - -function addToPlaylist(link, stand) { - parsed=parseMediaLink(link); - parsed["id"]!=null ? socket.emit("queue", {id:parsed["id"], pos:stand, type:parsed["type"]}) : ''; -} - -// get text content from inner HTML - -function getText(html) { - div=document.createElement("div"); - div.innerHTML=html; - return div.textContent||div.innerText; -} - -// create modal window - -function createModal(title) { - hidePlayer(); - outer = $('').appendTo($("body")); - modal = $('').appendTo(outer); - modal = $('').appendTo(modal); - head = $('').appendTo(modal); - $('').html('×').appendTo(head); - $('').text(title).appendTo(head); - body = $('').appendTo(modal); - footer = $('').appendTo(modal); - outer.on("hidden", function() { - outer.remove(); - unhidePlayer(); - }); - outer.modal(); -} - -// layout elements settings - -function playerLocation(a) { - $("#pinup-btn").show(); - if (a=="left") { - $("#videowrap").after($("#chatwrap").detach()); - normalPlayer(); - normalChat(); - } else if (a=="right") { - $("#videowrap").before($("#chatwrap").detach()); - normalPlayer(); - normalChat(); - } else if (a=="center") { - $("#videowrap").after($("#chatwrap").detach()); - $("#videowrap, #chatwrap").removeClass().addClass("col-lg-8 col-lg-offset-2 col-md-12"); - fitPlayer(); - fitChat(200); - $("#pinup-btn").hide(); - } -} - -function userlistLocation(a) { - a=="left" ? $("#userlist").css('float', 'left') : $("#userlist").css('float', 'right'); -} - -function queueLocation(a) { - $("#pinup-btn").show(); - if (a=="right") { - $("#rightpane").before($("#leftpane").detach()); - } else if (a=="left") { - $("#rightpane").after($("#leftpane").detach()); - } else if (a=="center") { - $("#rightpane").after($("#leftpane").detach()) - .removeClass().addClass('col-md-8 col-md-offset-2 col-md-12'); - $("#leftpane").removeClass().addClass('col-md-8 col-md-offset-2 col-md-12'); - $("#pinup-btn").hide(); - } - b = (a=="right") ? "left" : "right"; - $("#playlistrow").css('background-position', b+' bottom'); -} - -function queueSize(a) { - if (USERCONFIG.queue!="center") { - if (a=="wide") { - $("#leftpane").removeClass().addClass('col-lg-5 col-md-5'); - $("#rightpane").removeClass().addClass('col-lg-7 col-md-7'); - } else if (a=="narrow") { - $("#leftpane").removeClass().addClass('col-lg-7 col-md-7'); - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - } - } -} - -function mainLocation(a) { - if (a=="top") { - $("#main").before($("#titlerow").detach()).after($("#playlistrow").detach()); - } else if (a=="bottom") { - $("#main").before($("#playlistrow").detach()).before($("#titlerow").detach()); - } - $("#main").after($("#chatpanel").detach()); -} - -function motdLocation(a) { - if (a=="top") { - $("#zerorow").after($("#announcements").detach()).after($("#motdrow").detach()); - } else if (a=="bottom") { - $("#resizewrap").before($("#motdrow").detach()).before($("#announcements").detach()); - } -} - -function logoInsert(a) { - if (a!="no") { - link = (a!="user") ? TopUserLogo[a][1] : USERCONFIG.logourl; - ht = (a!="user") ? TopUserLogo[a][2] : USERCONFIG.logoht; - azukirow.css({'min-height':ht+'px', 'background-image':'url("'+link+'")'}); - } else if (a=="no") { - azukirow.css({'min-height':'5px', 'background-image':''}); - } -} - -function headerMode(a) { - $(".navbar-fixed-top").unbind(); - if (a=="fixed") { - $(".navbar-fixed-top").css({'position': 'fixed', 'top':'0px'}); - $("#mainpage").css('margin-top', '0px'); - } else if (a=="detached") { - $(".navbar-fixed-top").css('position', 'inherit'); - $("#mainpage").css('margin-top', '-72px'); - } else if (a=="mouseover") { - $(".navbar-fixed-top").css({'position':'fixed', 'top':'-40px'}) - .on("mouseover", function() { - $(".navbar-fixed-top").css('top', '0px'); - }) - .on("mouseout", function() { - $(".navbar-fixed-top").css('top', '-40px'); - }); - $("#mainpage").css('margin-top', '-40px'); - } -} - -function customCSS(a) { - $("#usercss").remove(); - a=="yes" ? $("head").append('') : ''; -} - -// set global layout according to user preferences - -function setLayout() { - playerLocation(USERCONFIG.player); - userlistLocation(USERCONFIG.userlist); - queueLocation(USERCONFIG.queue); - queueSize(USERCONFIG.qsize); - mainLocation(USERCONFIG.main); - motdLocation(USERCONFIG.motd); - logoInsert(USERCONFIG.logo); - headerMode(USERCONFIG.header); - customCSS(USERCONFIG.css); -} - -// fit player height - -function fitPlayer() { - VW=$("#videowrap").width()+''; - VH=Math.floor(parseInt(VW)*9/16+1)+''; - $("#ytapiplayer").width(VW).height(VH); -} - -// fit chat height - -function fitChat(a) { - if (a=="auto") { - VW=$("#messagebuffer").width(); - VH=Math.floor(parseInt(VW)*9/16+1); - } else { - VH=a; - } - $("#messagebuffer").height(VH); - $("#userlist").height(VH); -} - -// display mode helper functions - -function bigPlayer() { - $("#videowrap").removeClass().addClass("col-lg-12 col-md-12"); - fitPlayer(); -} - -function bigChat() { - $("#chatwrap").removeClass().addClass('col-lg-12 col-md-12'); - fitChat("auto"); -} - -function normalPlayer() { - $("#videowrap").removeClass().addClass("col-lg-7 col-md-7"); - fitPlayer(); -} - -function normalChat() { - c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5'; - $("#chatwrap").removeClass().addClass(c); - fitChat(338); -} - -// set display mode - -function setMode(a) { - if (NOPLAYER) { - $("#videowrap").show(); - ytapiplayer = $('') - .insertBefore("#playercontrols"); - refreshPlayer(); - NOPLAYER = false; - } - - $("#main").show(); - pinupbtn.hide(); - modesel.find("option[value='chMode'], option[value='rMode']").show(); - PINNED ? modesel.find("option[value='chMode']").hide() : ''; - - if (a=="syMode") { - - $("#videowrap, #videowrap p, #videowrap div, #chatwrap, #rightpane, #pinup-btn").show(); - $("#config-btn, #configbtnwrap br, #pinup-btn").show(); - $("#min-layout").parent().show(); - - normalPlayer(); - - c = (PINNED && USERCONFIG.qsize=="wide") ? 'col-lg-7 col-md-7' : 'col-lg-5 col-md-5'; - $("#chatwrap").removeClass().addClass(c); - H=parseInt(VH)-$("#chatline").outerHeight()-1; - $("#messagebuffer").height(H); - $("#userlist").height(H); - - USERCONFIG.player=="center" ? playerLocation("center") : ''; - PINNED ? pinUp() : ''; - - } else if (a=="kMode") { - - $("#videowrap").show(); - PINNED ? $("#rightpane").hide() : $("#chatwrap").hide(); - $("#fontspanel, #emotespanel").hide(); - - bigPlayer(); - - } else if (a=="chMode") { - - $("#chatwrap").show(); - - if (WEBKIT) { - $("#videowrap").hide(); - } else { - $("#videowrap div, #videowrap p").hide(); - $("#ytapiplayer").width(1).height(1); - } - - bigChat(); - - } else if (a=="sMode") { - - $("#chatwrap").show(); - $("#videowrap").hide(); - $("#ytapiplayer").remove(); - $("#fontspanel, #emotespanel").hide(); - modesel.find("option[value='chMode'], option[value='rMode']").hide(); - NOPLAYER = true; - - bigChat(); - - } else if (a=="rMode") { - - if (WEBKIT) { - $("#main").hide(); - } else { - PINNED ? $("#rightpane").hide() : $("#chatwrap").hide(); - $("#videowrap div, #videowrap p").hide(); - $("#ytapiplayer").width(1).height(1); - } - - !PINNED ? $("#min-layout").parent().show() : ''; - - } -} - -// fix layout after changing media - -function setModeAfterVideoChange() { - m=modesel.val(); - (m=="syMode" || m=="chMode" || m=="rMode") ? setMode(m) : ''; -} - -// change welcome text - -function changeWelcomeText() { - if (CLIENT.rank>0) { - $("#welcome").html($("#welcome").html().replace(/Welcome/, CustomCaptions_Array['welcome'])); - } -} - -// set MOTD - -function changeMOTD() { - if (UI_MOTDTabs=="1" && MOTDTabs_Array.length>0) { - // adding tabs application - - motdtabswrap = $('') - .appendTo("#motd"); - for (i in MOTDTabs_Array) { - btn = $('') - .text(MOTDTabs_Array[i][0]) - .appendTo(motdtabswrap) - .on("click", function() { - $(".motdtabs-btn").removeClass('btn-success'); - $(this).addClass('btn-success'); - nr=$(this).attr('tab'); - motdtabscontent.html(MOTDTabs_Array[nr][1]); - }); - } - motdtabscontent = $(''+MOTDTabs_Array[0][1]+'') - .css(MOTDTabs_CSS) - .appendTo("#motd"); - $(".motdtabs-btn:nth-child(1)").addClass('btn-success'); - } - if (UI_MOTDAutoLogo=="1") { - // adding logo - - var logo = 0; - var len = MOTDAutoLogo_Array.length; - if (len<1) { - MOTDAutoLogo_Array=['https://dl.dropboxusercontent.com/s/7mrz85gl29eiiks/logo.png']; - len=1; - } - if (MOTDAutoLogo_Mode=="2" || MOTDAutoLogo_Mode=="3") { - logo=Math.floor(Math.random()*len); - } else if (MOTDAutoLogo_Mode=="7") { - logo=new Date().getDay(); - typeof MOTDAutoLogo_Array[logo]==="undefined" ? logo=0 : ''; - } - $('').prependTo("#motd"); - } - if (UI_RulesBtn=="1") { - // adding rules button - - RulesBtn_Caption=="" ? RulesBtn_Caption='Read Channel Rules' : ''; - RulesBtn_HTML=="" ? RulesBtn_HTML='No rules.' : ''; - rulesbtnwrap = $('').appendTo("#motd"); - rulesbtn = $('') - .text(RulesBtn_Caption+' ▸') - .appendTo(rulesbtnwrap) - .on("click", function() { - toggleDiv(rulespanel); - }); - rulespanelouter = $('').appendTo("#motd"); - rulespanel = $('') - .html(RulesBtn_HTML) - .appendTo(rulespanelouter); - } -} - -// change title bar description - -function changeTitle() { - title=$("#currenttitle").text(); - $("#currenttitle").text(title.replace(/Currently Playing:/, TitleBarDescription_Caption)); -} - -// YouTube/Dailymotion progress bar - -function progressBar() { - var a = 0; - if (PLAYER.type=="yt") { - b=PLAYER.player.getCurrentTime(); - b!=PREVTIME ? a=b/PLAYER.player.getDuration()*100 : ''; - PREVTIME=b; - } else if (PLAYER.type=="dm") { - b=PLAYER.player.currentTime; - b!=PREVTIME ? a=b/PLAYER.player.duration*100 : ''; - PREVTIME=b; - } - titlerow.css('background-size', a+'% 100%'); -} - -// toggle additional chat functions - -function toggleChatFunctions() { - CLIENT.rank>2 ? chatflair.show() : chatflair.hide(); -} - -// set chat side panel properties - -function setPanelProperties(div) { - bgcolor=$("body").css('background-color'); - color=$("body").css('color'); - height=$("#userlist").height(); - width=$("#userlist").width(); - $(div).css({'background-color':bgcolor, 'color':color, 'height':height+'px', 'width':width+'px'}); -} - -// refresh user chat statistics - -function userChatStats(str) { - CHATSTAT['n']++; - CHATSTAT['l']=CHATSTAT['l']+str.length; - CHATSTAT['m'].push(str); -} - -// create squavatar - -function createSquavatar(str) { - for (i=0, hash=0; i>i++*8)&0xFF).toString(16)).slice(-2)); - r=parseInt(col.substring(0,2), 16); - g=parseInt(col.substring(2,4), 16); - b=parseInt(col.substring(4,6), 16); - r2=255-r; - g2=255-g; - b2=255-b; - html=''; - return html; -} - -// format chat messages before sending and execute commands - -function prepareMessage(msg) { - if (UI_MessagesSuffix=="1") { - if ((typeof MessagesSuffix_Percentage!=="number") || MessagesSuffix_Percentage<0) { - MessagesSuffix_Percentage='10'; - } - Math.random()<(MessagesSuffix_Percentage/100) ? msg+=' '+MessagesSuffix_Text : ''; - } - - if (UI_UserCommands=="1" && msg.indexOf("!")==0) { - COMMAND=true; - if (msg.indexOf("!stat")==0) { - - num=CHATSTAT['n']; - len=CHATSTAT['l']; - if (num>0) { - rnd=Math.round(Math.random()*(CHATSTAT['m'].length-1)); - avg=Math.round(len/num*10)/10; - } else { - rnd=0; - avg=0; - } - a = (num!=1) ? 's' : ''; - b = (avg!=1) ? 's' : ''; - msg='you have sent '+num+' message'+a+', ' - +'total length is '+len+' character'+b+' ('+avg+' per message), ' - +'random message: '+CHATSTAT['m'][rnd]; - - } else if (msg.indexOf("!memestats")==0) { - - num=CHATSTAT['n']; - len=Memes_Array.length; - mem=0; - for (i=0; i-1 ? mem++ : ''; - } - } - a = (num!=1) ? 's' : ''; - b = (mem!=1) ? 's' : ''; - if (len>0) { - msg='in '+num+' message'+a+' you have used '+mem+' meme'+b; - } else { - msg='error: no defined memes'; - } - - } else if (msg.indexOf("!pick ")==0) { - - arr=msg.split("!pick ")[1].split(","); - rnd=Math.round(Math.random()*(arr.length-1)); - msg=arr[rnd]; - - } else if (msg.indexOf("!ask ")==0) { - - AskAnswers_Array.length<1 ? AskAnswers_Array=['yes', 'no'] : ''; - rnd=a=Math.round(Math.random()*(AskAnswers_Array.length-1)); - msg=AskAnswers_Array[rnd]; - - } else if (msg.indexOf("!time")==0) { - - var h = new Date().getHours(); - h<10 ? h='0'+h : ''; - var m = new Date().getMinutes(); - m<10 ? m='0'+m : ''; - msg='current time: '+h+':'+m; - - } else if (msg.indexOf("!dice")==0) { - - rnd=Math.round(Math.random()*5)+1; - msg=''+rnd; - - } else if (msg.indexOf("!roll")==0) { - - var rnd = Math.round(Math.random()*999); - rnd<100 ? rnd="0"+rnd : ''; - rnd<10 ? rnd="0"+rnd : ''; - msg=''+rnd; - - } else if (msg.indexOf("!q")==0) { - - RandomQuotes_Array.length<1 ? RandomQuotes_Array=['error: no quotes available'] : ''; - rnd=Math.round(Math.random()*(RandomQuotes_Array.length-1)); - msg=RandomQuotes_Array[rnd]; - - } else if (msg.indexOf("!random")==0 && hasPermission("playlistadd")) { - - if (UI_ChannelDatabase=="1") { - var link=""; - while (link=="") { - rnd=Math.round(Math.random()*(ChannelDatabase.length-1)); - link=ChannelDatabase[rnd][0]; - title=ChannelDatabase[rnd][1]; - } - addToPlaylist(link, "end"); - msg='random media adding attempt: '+title; - } - - } else if (msg.indexOf("!calc ")==0) { - - func=msg.split("!calc "); - msg=''+eval(func[1]); - - } else if (msg.indexOf("!skip")==0 && hasPermission("voteskip")) { - - socket.emit("voteskip"); - msg='current item has been voteskipped'; - - } else if (msg.indexOf("!next")==0 && hasPermission("playlistjump")) { - - socket.emit("playNext"); - msg='start playing next item'; - - } else if (msg.indexOf("!bump")==0 && hasPermission("playlistmove")) { - - last=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+last+")").data("uid"); - title=$("#queue .queue_entry:nth-child("+last+") .qe_title").html(); - socket.emit("moveMedia", {from:uid, after:PL_CURRENT}); - msg='last item bumped as next: '+title; - - } else if (msg.indexOf("!add ")==0 && hasPermission("playlistadd")) { - - parsed=parseMediaLink(msg.split("!add ")[1]); - if (parsed["id"]===null) { - msg='error: wrong link, item has not been added'; - } else { - socket.emit("queue", {id:parsed["id"], pos:"end", type:parsed["type"]}); - msg='video has been added'; - } - - } else if (msg.indexOf("!now")==0) { - - msg='Now playing: '+$(".queue_active a").html(); - - } else if (msg.indexOf("!CO ZJE TEH?")==0) { - - msg='TEH ZJE HUJ'; - - } else if (msg.indexOf("!inba")==0) { - - IMBA.volume=0.6; - IMBA.play(); - mutePlayer(); - inbix=setInterval(function() { - inba(); - }, 200); - setTimeout(function() { - unmutePlayer(); - BGCHANGE=0; - clearInterval(inbix); - $("body").css({'background-image':'', 'background-color':''}); - setUserCSS(); - }, 12000); - msg='JP2GMD'; - - } else { - COMMAND=false; - } - } - return msg; -} - -// insert code into chatline - -function insertText(str) { - $("#chatline").val($("#chatline").val()+str).focus(); -} - -// toggle YT mute button - -function toggleMuteBtn() { - (PLAYER && PLAYER.type=="yt") ? muteplayerbtn.show() : muteplayerbtn.hide(); -} - -// toggle mod panel button -function toggleModPanel() { - if (CLIENT.rank<2) { - modbtn.hide(); - } else { - modbtn.show(); - HASH=''; - for (i in ModPanel_Array) { - name=ModPanel_Array[i][0]; - (name=="" || name==CLIENT.name) ? HASH+=''+ModPanel_Array[i][1].length : ''; - } - if (HASH!=USERCONFIG.modhash) { - modbtn.addClass('btn-danger').html(modbtn.html()+' (New Mess.)'); - } - } -} - -// create media database - -function createDatabase() { - html='' - + ChannelDatabase[0][1] - + '' - + ''; - - len=ChannelDatabase.length; - for (i=1; i' - + '' - + ChannelDatabase[i][1] - + '' - + ''; - } else { - item_nr++; - count_nr++; - link=ChannelDatabase[i][0]; - - html+='' - + '' - + 'End' - + ''; - - parsed=parseMediaLink(link); - if (parsed["type"]=="yt") { - a=parsed["id"]; - html+='' - + '' - + ''; - } - html+='' - + item_nr - + '' - + ChannelDatabase[i][1] - + '' - + link - + ''; - } - } - - html+='' - + '' - + 'Reload Data (if channel seems working slow)' - + ''; - - item_count[layer_nr-1]=count_nr; - opening[layer_nr-1]=0; - dbwell.html(html); - html=''; - - len=item_count.length; - for(i=1; i<=len; i++) { - $("#la"+i).append(' ['+item_count[i-1]+']'); - } - - cleardbbtn = $("#cleardb-btn") - .on("click", function() { - toggleDiv(dbwrap); - dbwell.html(''); - CHANDB=false; - }); - - for (i in opening) { - opening[i]=0; - } - dbcat = $(".db-cat").hide(); - CHANDB=true; -} - -// toggle database sections - -function toggleCat(a) { - b=a-1; - if (opening[b]==0) { - dbcat.hide(); - for (i in opening) { - opening[i]=0; - } - $("#l"+a).show(); - opening[b]=1; - } else { - $("#l"+a).hide(); - opening[b]=0; - } -} - -// patch layout for guest logins - -function patchWrap() { - setTimeout(function() { - $("#playlistmanagerwrap").show(); - }, 1500); -} - -// create channel gallery - -function createGallery() { - galleryframe = $('') - .attr({'frameborder':'0', 'scrolling':'no', 'height':'415px'}) - .appendTo(gallerywell); - galtitle = $('Select Gallery').appendTo(gallerywell); - galsel = $('') - .appendTo(gallerywell) - .on("change", function() { - galleryframe.attr('src', galsel.val()); - }); - - for (i in ChannelGalleries_Array) { - $('') - .html(ChannelGalleries_Array[i][0]) - .appendTo(galsel); - } - - text='Reload Galleries (if problems or slow channel)'; - cleargallerybtn = $(''+text+'') - .appendTo(gallerywell) - .on("click", function() { - toggleDiv(gallerywrap); - gallerywell.html(''); - GALLERY=false; - }); - GALLERY=true; -} - -// toggle "/clear" button depends on rank - -function toggleClearBtn() { - hasPermission("chatclear") ? clearbtn.show() : 'clearbtn.hide()'; -} - -// toggle YT volume buttons depends on player type - -function toggleVolBtn() { - if (PLAYER && PLAYER.type=="yt") { - voldownbtn.show(); - volupbtn.show(); - } else { - voldownbtn.hide(); - volupbtn.hide(); - } -} - -// toggle advanced playlist options buttons - -function toggleAdvancedPl() { - CLIENT.rank<2 ? advplaylist.hide() : advplaylist.show(); - hasPermission("playlistjump") ? playnextbtn.show() : playnextbtn.hide(); - (hasPermission("playlistadd") && UI_ChannelDatabase=="1") ? addrandombtn.show() : addrandombtn.hide(); - hasPermission("playlistmove") ? bumplastbtn.show() : bumplastbtn.hide(); - hasPermission("playlistdelete") ? deletelastbtn.show() : deletelastbtn.hide(); -} - -// get playlist helper functions - -function formatRawList() { - len=$("#queue .queue_entry").length+1; - list = new Array(); - for (i=1; i'+title+' ['+duration+'] - '+link+''); - } - return list.join('\n'); -} - -function formatOrderedList() { - len=$("#queue .queue_entry").length+1; - var list = new Array(); - for (i=1; i div, #playlistrow > div {\n' - + ' padding-left:5px; padding-right:5px; margin-top:5px; margin-bottom:5px;\n' - + '}\n' - + '#motdwrap {margin:5px -10px}\n' - + '#announcements .alert {margin:0px -10px 5px}\n' - + '#drinkcount {margin:0px}\n'; - - $("head").append(''); - $("#usertheme").attr('href', '/css/themes/slate.css'); - $("#usertheme-fix").remove(); - if (USERTHEME.indexOf("/css/themes/")>-1) { - $("#usertheme").attr('href', USERTHEME); - } else { - $('') - .appendTo("head"); - } - $("#usercss").remove(); - if (USERCONFIG.css!="no") { - $("head").append(''); - } -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- UI events functions ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -function prepareFilters() { - str='{"name":"white color","source":"\\\\[white\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"yellow color","source":"\\\\[yellow\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"orange color","source":"\\\\[orange\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"pink color","source":"\\\\[pink\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"red color","source":"\\\\[red\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"limegreen color","source":"\\\\[lime\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"green color","source":"\\\\[green\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"aqua color","source":"\\\\[aqua\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"blue color","source":"\\\\[blue\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"violet color","source":"\\\\[violet\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"brown color","source":"\\\\[brown\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"silver color","source":"\\\\[silver\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"black color","source":"\\\\[black\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"white color on black","source":"\\\\[bw\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"bold text","source":"\\\\[b\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"italic text","source":"\\\\[i\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"underlined text","source":"\\\\[u\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"striked text","source":"\\\\[s\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"distinguished text","source":"\\\\[d\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"fire text","source":"\\\\[f\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"short spoiler","source":"\\\\[sp\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false},' - + '{"name":"closing font style","source":"\\\\[\\\\/\\\\]","flags":"g",' - + '"replace":"","active":true,"filterlinks":false}]'; - - callback = function(data) { - socket.listeners("chatFilters").splice( - socket.listeners("chatFilters").indexOf(callback) - ); - json=JSON.stringify(data); - comma = (json.length!="2") ? ',' : ''; - $("#cs-chatfilters-exporttext").val(json.substring(0, json.length-1)+comma+str); - }; - - socket.on("chatFilters", callback); - socket.emit("requestChatFilters"); - - txt = 'This option does NOT affect your current filters, all of them will be saved.\n' - + 'Click "Import filter list" button if you\'ll decide to install.'; - alert(txt); -} - -// show chat additional functions - -function showChatFunctions() { - $("#userlist").append(''); - setPanelProperties("#chatfunc-dropdown"); - - $("#chatfunc-dropdown").append('Prevent room freezing if spam:'); - - spamclearbtn = $('Auto Clear') - .appendTo("#chatfunc-dropdown") - .on("click", function() { - if (!CLEARING) { - $(this).text('Stop Clearing').addClass('btn-danger'); - CLEARING=setInterval(function() { - socket.emit("chatMsg", {msg: '/clear'}); - }, 500); - } else { - $(this).text('Auto Clear').removeClass('btn-danger'); - clearInterval(CLEARING); - CLEARING=false; - } - }); - CLEARING ? $("#spamclear-btn").text('Stop Clearing').addClass('btn-danger') : ''; - - $("#chatfunc-dropdown").append('Prevent me from AFK:'); - - antiafkbtn = $('Anti AFK') - .appendTo("#chatfunc-dropdown") - .on("click", function() { - if (!ANTIAFK) { - $(this).addClass('btn-danger'); - ANTIAFK=setInterval(function() { - $("#userlist").find('span[class^=userlist]').each(function() { - if ($(this).html()==CLIENT.name && $(this).css('font-style')=="italic") { - socket.emit("chatMsg", {msg: '/afk'}); - return; - } - }); - }, 4000); - } else { - $(this).removeClass('btn-danger'); - clearInterval(ANTIAFK); - ANTIAFK=false; - } - }); - ANTIAFK ? $("#antiafk-btn").addClass('btn-danger') : ''; -} - -// display list of emotes - -function showEmotes() { - if (typeof GroupEmotes_Number!=="number" || GroupEmotes_Number<1) { - GroupEmotes_Number=100; - } - len=CHANNEL.emotes.length; - if (len<1) { - emotespanel.addClass('row'); - makeAlert("No emotes available", "Ask channel administrator.").appendTo(emotespanel); - } else if (UI_GroupEmotes!="1" || len<=GroupEmotes_Number) { - for (i in CHANNEL.emotes) { - $('') - .attr({'src':CHANNEL.emotes[i].image, 'title':CHANNEL.emotes[i].name}) - .appendTo(emotespanel); - } - } else { - var arr = new Array(); - stop=GroupEmotes_Number-1; - gr=Math.ceil(CHANNEL.emotes.length/GroupEmotes_Number); - html=''; - - for (i=0; i'; - if (i%GroupEmotes_Number==stop) { - arr.push(html); - html=''; - } - } - len%GroupEmotes_Number!=0 ? arr.push(html) : ''; - - for (i=0; i') - .html(arr[i]) - .appendTo(emotespanel); - } - arr=''; - - emotesbtnwrap = $('').appendTo(emotespanel); - emotesbtngroup = $('').appendTo(emotesbtnwrap); - - for (i=0; i'+(i+1)+'') - .appendTo(emotesbtngroup) - .on("click", function() { - $(".emotesbtn").removeClass('active'); - $(this).addClass('active'); - $(".groupemotes").hide(); - nr=$(this).attr('group'); - $("#emotes-"+nr).show(); - }); - } - $("#emotes-0").show(); - $("#emotescontrols button:nth-child(1)").addClass('active'); - } - EMOTES=true; -} - -// show chat commands modal window - -function showChatHelp() { - createModal('Chat Commands'); - if (UI_FontsBtn=="1") { - body.append('Fonts commands'); - html='[white], [yellow], [orange], [pink], ' - + '[red], [lime], [green], [aqua], ' - + '[blue], [violet], [brown], [silver], ' - + '[black] - begin of colored text' - + '[bw] - begin of white text on the black background' - + '[b], [i], [u], [s] - ' - + 'begin of bold, italic, underlined, striked or underlined text' - + '[d] - begin of a distinguished text (red on yelllow background)' - + '[f] - begin of a text with a fire effect' - + '[sp] - begin of an inline spoiler' - + '[/] - end of any color, style or spoiler' - + 'If fonts commands don\'t work, ask script administrator about proper filters installation.'; - $('').html(html).appendTo(body); - } - if (UI_UserCommands=="1") { - arr = { - 'pick':'choosing a random option from a list separated by commas ' - + '(e.g. !pick japan,korea,china)', - 'ask':'asking a question with yes/no type answer ' - + '(e.g. !ask Will this channel be popular?)', - 'q':'displaying random quote (!q)', - 'dice':'rolling dice (!dice)', - 'roll':'rolling 3-digit number (!roll)', - 'time':'displaying current time (!time)', - 'now':'displaying current playing title (!now)', - 'calc':'calculating a math operation ' - + '(all JavaScript Math methods and constants allowed, e.g. !calc Math.PI*10)', - 'skip':'skip current item (!skip)', - 'add':'adding a link to the end of playlist ' - + '(e.g. !add https://www.youtube.com/watch?v=29FFHC2D12Q)', - 'stat': 'displaying user chat statistics in current session (!stat)', - 'memestats': 'displaying number memes used by user in all messages (!memestats)' - } - if (UI_ChannelDatabase=="1") { - arr['random']='adding random link from database (!random)'; - } - body.append('New chat commands'); - ul = $('').appendTo(body); - for (cmd in arr) { - ul.append('!'+cmd+' - '+arr[cmd]+''); - } - } - if (UI_ChatSpeak=="1") { - body.append('Voice commands'); - html='!say - text speaking in english (!say Hello!)' - + '!mow - text speaking in polish (!mow Chrząszcz brzmi w trzcinie.)'; - $('').html(html).appendTo(body); - } - arr = { - 'me':'showing an action-style message (username does something, e.g. /me is dancing)', - 'sp':'hiding a message in a hover-to-show spoiler box (e.g. /sp This message is hidden)', - 'afk':'toggling your AFK (away from keyboard) status (/afk)', - } - body.append('Default CyTube commands'); - ul = $('').appendTo(body); - for (cmd in arr) { - ul.append('/'+cmd+' - '+arr[cmd]+''); - } -} - -// show chat sounds panel - -function showSoundsPanel() { - $("#userlist").append(''); - setPanelProperties("#sounds-dropdown"); - - muteallbtn = $('Mute All') - .appendTo("#sounds-dropdown") - .on("click", function() { - if (VOICES) { - $(this).text('Unmute All').addClass('btn-danger'); - voicesbtn.addClass('btn-danger').attr('title', 'Unmute chat voices'); - VOICES = false; - SOUNDSPANEL = false; - $("#sounds-dropdown").remove(); - } else { - $(this).text('Mute All').removeClass('btn-danger'); - voicesbtn.removeClass('btn-danger').attr('title', 'Mute chat voices'); - VOICES = true; - } - }); - !VOICES ? muteallbtn.text('Unmute All').addClass('btn-danger') : ''; - - $("#sounds-dropdown").append('Sounds level:'); - - lvlgroup = $('') - .appendTo("#sounds-dropdown"); - - for (i=1; i<=5; i++) { - btn=$('') - .html(i) - .appendTo(lvlgroup) - .on("click", function() { - $("#lvlvol"+SOUNDSLVL).removeClass('btn-success'); - SOUNDSLVL=$(this).attr('level'); - setOpt(CHANNEL.name+"_soundslvl", SOUNDSLVL); - $(this).addClass('btn-success'); - }); - } - $("#lvlvol"+SOUNDSLVL).addClass('btn-success'); - - $("#sounds-dropdown").append('Select users to mute sounds:'); - - mutegroup = $('').appendTo("#sounds-dropdown"); - - $(".userlist_item").each(function() { - user=$(this).find("span:nth-child(2)").html(); - btn=$('') - .html(user) - .appendTo(mutegroup) - .on("click", function() { - name=$(this).attr('name'); - if (name in MUTEDVOICES && MUTEDVOICES[name]=="1") { - $(this).removeClass('btn-danger'); - MUTEDVOICES[name]=0; - } else { - $(this).addClass('btn-danger'); - MUTEDVOICES[name]=1; - } - }); - (user in MUTEDVOICES && MUTEDVOICES[user]=="1") ? btn.addClass('btn-danger') : ''; - }); -} - -// show moderators panel - -function showModPanel() { - createModal("Moderators panel"); - - html=''; - for (i in ModPanel_Array) { - name=ModPanel_Array[i][0]; - mess=ModPanel_Array[i][1]; - if (name=="") { - html+=' ' - + mess - + ''; - } else if (name==CLIENT.name) { - html+=' ' - + ' ' - + '(to: '+CLIENT.name+') → '+mess - + ''; - } - } - body.append(html); - $("#mod-btn").removeClass('btn-danger').html(''); - setOpt(CHANNEL.name+"_modhash", HASH); -} - -// show info about current or next media - -function showInfo() { - if (DEFDESCR) { - contr=$(".queue_active").attr("title"); - if (typeof contr==="undefined") { - text='Nothing Playing'; - } else { - duration=$(".queue_active .qe_time").html(); - text=contr+' ['+duration+']'; - } - mediainfo.html(text); - } else { - var arr=new Array(); - text='Playing Next:'; - li1=$(".queue_active").next(); - li2=li1.next(); - li3=li2.next(); - li1.length>0 ? arr.push(' 1▸ '+li1.children("a").html()) : ''; - li2.length>0 ? arr.push(' // 2▸ '+li2.children("a").html()) : ''; - li3.length>0 ? arr.push(' // 3▸ '+li3.children("a").html()) : ''; - text+=arr.join(""); - arr.length<3 ? text+=' // END OF PLAYLIST //' : ''; - mediainfo.html(''+text+''); - } -} - -// hide and show player with covering image - -function coverPlayer() { - PlayerHiding_URL=="" ? PlayerHiding_URL='https://dl.dropboxusercontent.com/s/xz2o99scw5i7aai/stop.png' : ''; - $("#videowrap").addClass('relative'); - w=$("#ytapiplayer").css('width'); - h=$("#videowrap").css('height').replace('px', '')-31; - coverpl = $('') - .css({'width':w, 'height':h+'px', 'background-image':'url('+PlayerHiding_URL+')'}) - .appendTo($("#videowrap")); - hideplayerbtn.addClass('btn-danger').attr('title', 'Show player'); -} - -function showPlayer() { - coverpl.remove(); - hideplayerbtn.removeClass('btn-danger').attr('title', 'Hide player'); - $("#videowrap").removeClass('relative'); -} - -// mute YT player - -function mutePlayer() { - (PLAYER && PLAYER.type=="yt") ? PLAYER.player.mute() : ''; -} - -// unmute YT player - -function unmutePlayer() { - (PLAYER && PLAYER.type=="yt") ? PLAYER.player.unMute() : ''; -} - -// download current item - -function downloadCurrentItem() { - uid=$(".pluid-"+PL_CURRENT).data("media"); - arr={ - 'yt':'http://youtube.com/watch?v=', - 'vi':'http://vimeo.com/', - 'dm':'http://dailymotion.com/video/', - 'sc':'' - } - link = (uid.type in arr ? arr[uid.type]+''+uid.id : ''); - if (link=="") { - alert('This link is not supported. Try YouTube, Vimeo, Dailymotion or SoundCloud.'); - } - else { - createModal("Download current item"); - - $('Click here to download') - .appendTo(body) - .on("click", function() { - outer.modal('hide'); - }); - } -} - -// preview YT video in modal window - -function prevVideo(a) { - createModal('Preview Video'); - - player=$('') - .attr('src', 'http://www.youtube.com/embed/'+a+'?wmode=transparent&enablejsapi') - .appendTo(body); -} - -// toggle configuration panel - -function toggleConfigPanel() { - if (MINIMIZED) { - $("#rightpane-inner").show(); - $("#azukirow, #leftpane-inner").show(); - !$("#hide-motd").prop('checked') ? $("#motdrow").show() : ''; - !$("#hide-ann").prop('checked') ? $("#announcements").show() : ''; - !$("#hide-hf").prop('checked') ? $("footer").show() : ''; - pinupbtn.show(); - layoutbtn.removeClass('btn-danger').addClass('btn-success') - .html(' Layout'); - $("#min-layout").prop('checked', false); - $("#plcontrol button, #db-btn, #gallery-btn, #newpollbtn").removeAttr('disabled'); - MINIMIZED=false; - // patch: giving back 15px additional space on the top - $("#mainpage").css('margin-top', $("#mainpage").css('margin-top').replace('px', '')*1-15+'px'); - } else { - toggleDiv(configwrap); - if (configwrap.css('display')=="none") { - layoutbtn.removeClass('btn-success'); - } else { - layoutbtn.addClass('btn-success'); - } - LAYOUTBOX = !LAYOUTBOX; - setOpt(CHANNEL.name+"_layoutbox", LAYOUTBOX); - } -} - -// show layout configuration modal window - -function showConfig() { - createModal("Layout Configuration"); - - form = $('').appendTo(body); - - function addOption(txt, elem) { - g = $('').appendTo(form); - $('').text(txt).appendTo(g); - c = $('').appendTo(g); - elem.appendTo(c); - } - - playerlocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(playerlocation); - $('').attr('value', 'right').text('right').appendTo(playerlocation); - $('').attr('value', 'center').text('center').appendTo(playerlocation); - playerlocation.val(USERCONFIG.player); - addOption('Player location', playerlocation); - - userlistlocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(userlistlocation); - $('').attr('value', 'right').text('right').appendTo(userlistlocation); - userlistlocation.val(USERCONFIG.userlist); - addOption('Userlist location', userlistlocation); - - queuelocation = $('').addClass('form-control'); - $('').attr('value', 'left').text('left').appendTo(queuelocation); - $('').attr('value', 'right').text('right').appendTo(queuelocation); - $('').attr('value', 'center').text('center').appendTo(queuelocation); - queuelocation.val(USERCONFIG.queue); - addOption('Queue location', queuelocation); - - queuesize = $('').addClass('form-control'); - $('').attr('value', 'wide').text('wide').appendTo(queuesize); - $('').attr('value', 'narrow').text('narrow').appendTo(queuesize); - queuesize.val(USERCONFIG.qsize); - addOption('Queue column size', queuesize); - - mainlocation = $('').addClass('form-control'); - $('').attr('value', 'top').text('above playlist').appendTo(mainlocation); - $('').attr('value', 'bottom').text('below playlist').appendTo(mainlocation); - mainlocation.val(USERCONFIG.main); - addOption('Player & chat', mainlocation); - - motdlocation = $('').addClass('form-control'); - $('').attr('value', 'top').text('channel top').appendTo(motdlocation); - $('').attr('value', 'bottom').text('channel bottom').appendTo(motdlocation); - motdlocation.val(USERCONFIG.motd); - addOption('MOTD & announcements', motdlocation); - - logoinsert = $('').addClass('form-control'); - $('').attr('value', 'no').text('no image').appendTo(logoinsert); - $('').attr('value', 'user').text('user image').appendTo(logoinsert); - for (i in TopUserLogo) { - $("").attr('value', i).text(TopUserLogo[i][0]).appendTo(logoinsert); - } - logoinsert.val(USERCONFIG.logo); - addOption('Top logo', logoinsert); - - userlogo = $('').addClass('form-control').attr('type', 'text') - .attr('placeholder', 'Image URL'); - userlogo.val(''); - addOption('User logo URL', userlogo); - - userlogoht = $('').addClass('form-control').attr('type', 'text') - .attr('placeholder', 'Image Height (in px)'); - userlogoht.val(''); - addOption('User logo height', userlogoht); - - if (USERCONFIG.logo!="user") { - userlogo.parent().parent().hide(); - userlogoht.parent().parent().hide(); - } else { - userlogo.val(USERCONFIG.logourl); - userlogoht.val(USERCONFIG.logoht); - } - - headermode = $('').addClass('form-control') - $('').attr('value', 'fixed').text('fixed').appendTo(headermode); - $('').attr('value', 'detached').text('detached').appendTo(headermode); - $('').attr('value', 'mouseover').text('mouseover').appendTo(headermode); - headermode.val(USERCONFIG.header); - addOption('Header menu', headermode); - - customcss = $('').addClass('form-control'); - $('').attr('value', 'no').text('no').appendTo(customcss); - $('').attr('value', 'yes').text('yes').appendTo(customcss); - customcss.val(USERCONFIG.css); - addOption('Custom CSS', customcss); - - usercss = $('').addClass('form-control') - .attr('placeholder', 'Insert CSS code'); - usercss.val(USERCONFIG.csscode); - addOption('CSS code', usercss); - - if (USERCONFIG.css=="no") { - usercss.parent().parent().hide(); - } - - submit = $('').text("Save changes").appendTo(footer); - reset = $('').text('Default').appendTo(footer); - column = $('').text('One column').appendTo(footer); - - logoinsert.on("change", function() { - if (logoinsert.val()=="user") { - userlogo.parent().parent().show(); - userlogoht.parent().parent().show(); - userlogo.val(USERCONFIG.logourl); - userlogoht.val(USERCONFIG.logoht); - } else { - userlogo.parent().parent().hide(); - userlogoht.parent().parent().hide(); - } - }); - - customcss.on("change", function() { - if (customcss.val()=="yes") { - usercss.parent().parent().show(); - } else { - usercss.parent().parent().hide(); - } - }); - - submit.on("click", function() { - outer.modal('hide'); - - USERCONFIG.player=playerlocation.val(); - setOpt(CHANNEL.name+"_player",playerlocation.val()); - - USERCONFIG.userlist=userlistlocation.val(); - setOpt(CHANNEL.name+"_userlist",userlistlocation.val()); - - USERCONFIG.queue=queuelocation.val(); - setOpt(CHANNEL.name+"_queue",queuelocation.val()); - - USERCONFIG.qsize=queuesize.val(); - setOpt(CHANNEL.name+"_qsize",queuesize.val()); - - USERCONFIG.main=mainlocation.val(); - setOpt(CHANNEL.name+"_main",mainlocation.val()); - - USERCONFIG.motd=motdlocation.val(); - setOpt(CHANNEL.name+"_motd",motdlocation.val()); - - if (logoinsert.val()=="user") { - if (userlogo.val()=="") { - logoinsert.val("no"); - } else if (userlogoht.val()=="") { - userlogoht.val('200'); - } else { - a=userlogoht.val()*1; - if (isNaN(a) || a<1) { - userlogoht.val('200'); - } - } - USERCONFIG.logourl=userlogo.val(); - USERCONFIG.logoht=userlogoht.val(); - setOpt(CHANNEL.name+"_logourl",userlogo.val()); - setOpt(CHANNEL.name+"_logoht",userlogoht.val()); - } - - USERCONFIG.logo=logoinsert.val(); - setOpt(CHANNEL.name+"_logo",logoinsert.val()); - - USERCONFIG.header=headermode.val(); - setOpt(CHANNEL.name+"_header",headermode.val()); - - if (customcss.val()=="yes") { - USERCONFIG.csscode=usercss.val(); - setOpt(CHANNEL.name+"_csscode",usercss.val()); - } - - USERCONFIG.css=customcss.val(); - setOpt(CHANNEL.name+"_css",customcss.val()); - - setLayout(); - scrollChat(); - scrollQueue(); - }); - - reset.on("click", function() { - outer.modal("hide"); - - USERCONFIG.player=defplayer; - setOpt(CHANNEL.name+"_player",defplayer); - - USERCONFIG.userlist=defuserlist; - setOpt(CHANNEL.name+"_userlist",defuserlist); - - USERCONFIG.queue=defqueue; - setOpt(CHANNEL.name+"_queue",defqueue); - - USERCONFIG.qsize="wide"; - setOpt(CHANNEL.name+"_qsize","wide"); - - USERCONFIG.main="top"; - setOpt(CHANNEL.name+"_main","top"); - - USERCONFIG.motd="top"; - setOpt(CHANNEL.name+"_motd","top"); - - USERCONFIG.logo="no"; - setOpt(CHANNEL.name+"_logo","no"); - - USERCONFIG.header="detached"; - setOpt(CHANNEL.name+"_header","detached"); - - USERCONFIG.css="no"; - setOpt(CHANNEL.name+"_css","no"); - - setLayout(); - scrollChat(); - scrollQueue(); - }); - - column.on("click", function() { - outer.modal("hide"); - - USERCONFIG.player="center"; - setOpt(CHANNEL.name+"_player","center"); - - USERCONFIG.userlist="left"; - setOpt(CHANNEL.name+"_userlist","left"); - - USERCONFIG.queue="center"; - setOpt(CHANNEL.name+"_queue","center"); - - USERCONFIG.main="top"; - setOpt(CHANNEL.name+"_main","top"); - - USERCONFIG.motd="bottom"; - setOpt(CHANNEL.name+"_motd","bottom"); - - USERCONFIG.logo="no"; - setOpt(CHANNEL.name+"_logo","no"); - - USERCONFIG.header="detached"; - setOpt(CHANNEL.name+"_header","detached"); - - setLayout(); - scrollChat(); - scrollQueue(); - }); -} - -// toggle fluid layout - -function toggleFluidLayout() { - if (FLUID) { - $("body").removeClass('fullscreen'); - $(".container-fluid").removeClass('container-fluid').addClass('container'); - $("#fontspanel, #emotespanel").removeClass('fluidpanel'); - } else { - $("body").addClass('fullscreen'); - $(".container").removeClass('container').addClass('container-fluid'); - $("footer .container-fluid").removeClass('container-fluid').addClass('container'); - $("#fontspanel, #emotespanel").addClass('fluidpanel'); - } - UI_DisplayModeSel=="1" ? setMode(modesel.val()) : ''; - FLUID=!FLUID; - setOpt(CHANNEL.name+"_fluid", FLUID); - scrollChat(); -} - -// toggle minimized layout - -function toggleMinLayout() { - if (!MINIMIZED) { - $("#rightpane-inner").hide(); - $("#azukirow, #motdrow, #announcements, #leftpane-inner, footer").hide(); - pinupbtn.hide(); - layoutbtn.removeClass('btn-success').addClass('btn-danger').html('Maximize'); - $("#plcontrol button, #db-btn, #gallery-btn, #newpollbtn").attr('disabled', 'disabled'); - MINIMIZED=true; - // patch for 15px more space on the top - $("#mainpage").css('margin-top', $("#mainpage").css('margin-top').replace('px', '')*1+15+'px'); - } -} - -// pin-up playlist to player - -function pinUp() { - if (USERCONFIG.player=="left") { - $("#videowrap").after($("#rightpane").detach()); - } else if (USERCONFIG.player=="right") { - $("#videowrap").before($("#rightpane").detach()); - } - if (USERCONFIG.queue=="left") { - $("#leftpane").before($("#chatwrap").detach()); - } else if (USERCONFIG.queue=="right") { - $("#leftpane").after($("#chatwrap").detach()); - } - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - if (USERCONFIG.qsize=="wide") { - $("#chatwrap").removeClass().addClass('col-lg-7 col-md-7'); - } else { - $("#chatwrap").removeClass().addClass('col-lg-5 col-md-5'); - } - $("#pinup-btn").attr('title', 'Unpin playlist'); - $("#config-btn, #configbtnwrap br").hide(); - $("#min-layout").parent().hide(); - $("#mode-sel").find("option[value='chMode'], option[value='sMode']").hide(); - PINNED=true; -} - -// un-pin playlist from player - -function unPin() { - if (USERCONFIG.queue=="left") { - $("#leftpane").before($("#rightpane").detach()); - } else if (USERCONFIG.queue=="right") { - $("#leftpane").after($("#rightpane").detach()); - } - if (USERCONFIG.player=="left") { - $("#videowrap").after($("#chatwrap").detach()); - } else if (USERCONFIG.player=="right") { - $("#videowrap").before($("#chatwrap").detach()); - } - $("#chatwrap").removeClass().addClass('col-lg-5 col-md-5'); - if (USERCONFIG.qsize=="wide") { - $("#rightpane").removeClass().addClass('col-lg-7 col-md-7'); - } else { - $("#rightpane").removeClass().addClass('col-lg-5 col-md-5'); - } - $("#pinup-btn").attr('title', 'Pinup playlist to player'); - $("#config-btn, #configbtnwrap br").show(); - $("#min-layout").parent().show(); - $("#mode-sel").find("option[value='chMode'], option[value='sMode']").show(); - PINNED=false; -} - -// show contributors list - -function showContributors() { - createModal("Contributors List"); - - len=$("#queue li").length+1; - var list = []; - for (i=1; i'+list3.join(""); - body.append(html); -} - -// expand/collapse queue - -function expandQueue() { - if (!FULLPL) { - $("#queue").css('max-height', '100000px'); - expandbtn.attr('title', 'Collapse playlist'); - FULLPL=true; - } else { - $("#queue").css('max-height', '500px'); - expandbtn.attr('title', 'Expand playlist'); - FULLPL=false; - scrollQueue(); - } -} - -// get playlist URLS - -function getPlaylistURLs() { - createModal('Playlist URLs'); - - data=$('').val(formatRawList()).appendTo(body); - rlist=$('Raw Links').appendTo(footer); - tlist=$('Plain Text').appendTo(footer); - hlist=$('HTML Code').appendTo(footer); - olist=$('Ordered List').appendTo(footer); - dlist=$('Database Format').appendTo(footer); - - rlist.on("click", function() { - data.val(formatRawList()); - }); - tlist.on("click", function() { - data.val(formatPlainTextList()); - }); - hlist.on("click", function() { - data.val('\n'+formatHTMLList()+'\n'); - }); - olist.on("click", function() { - data.val(formatOrderedList()); - }); - dlist.on("click", function() { - data.val(formatDBList()); - }); -} - -// add random item from channel database - -function addRandomItem() { - time=(new Date()).getTime(); - if ((time-LASTADD)<120000) { - alert('You can add random video every 2 minutes.'); - } else { - var link=""; - while (link=="") { - rnd=Math.round(Math.random()*(ChannelDatabase.length-1)); - link=ChannelDatabase[rnd][0]; - } - addToPlaylist(link, "end"); - LASTADD=time; - } -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- User Interface ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// adding important hidden reference row - -zerorow = $('').insertBefore("#motdrow"); - -// adding top logo row - -azukirow = $('').insertBefore(zerorow); - -// adding video wrap if user has enabled "Hide Player" option - -if (USEROPTS.hidevid) { - $("#chatwrap, #chatline").removeClass('col-lg-12 col-md-12').addClass('col-lg-5 col-md-5'); - videowrap = $('') - .insertBefore("#chatwrap"); - currenttitle = $('') - .html('Currently Playing: '+$(".queue_active a").html()) - .appendTo(videowrap); - ytapiplayer = $('') - .appendTo(videowrap); - - html='According to your User Preferences, video player is hidden. ' - + 'Click a button below to continue hiding player. ' - + 'Click default "Reload" icon to show player in this session. ' - + 'If you\'ll stay in "Chat Only" mode, functionality of this channel will be limited.'; - makeAlert("No Player", html).appendTo(ytapiplayer); - - staybtn = $('Stay In "Chat Only" Mode') - .appendTo("#ytapiplayer .alert") - .on("click", function() { - videowrap.remove(); - $("#chatwrap").removeClass().addClass('col-lg-12 col-md-12'); - $("#configform, #modeform, #pinup-btn").hide(); - fitChat("auto"); - }); -} - -// changing initial layout to compact for new users - -$("body").addClass('fluid'); -compactLayout(); -setLayout(); -scrollChat(); -scrollQueue(); - -// adding "id" attributes - -$(".navbar-collapse .navbar-nav").children().first().attr('id', 'home-link'); -$("#home-link").next().attr('id', 'account-link'); -$("#account-link").next().attr('id', 'options-link'); -$("#options-link").next().attr('id', 'channelset-link'); -$("#channelset-link").next().attr('id', 'layout-link'); - -// changing location of some layout elements - -$("#main").prepend($("#drinkbar").detach()); -$("#videowrap").append(''); -$("#playercontrols").append($("#mediarefresh").detach()); -$("#rightpane").prepend($("#videocontrols").detach()); -$("#rightpane").prepend($("#plcontrol").detach()); -$("#leftpane").prepend($("#newpollbtn").detach()); -$("#plcontrol").prepend($("#showmediaurl").detach()); - -// header and footer links open in a new tab - -$("#home-link a, #account-link ul a, .credit a").attr('target', '_blank'); - -// adding default CyTube Plus CSS if not set - -if ($("#chanexternalcss").length<1) { - url='https://dl.dropboxusercontent.com/s/hbhlrmys5piztgo/main.css'; - $("head").append(''); -} - -setUserCSS(); - -// adding favicon - -if (UI_Favicon=="1" && Favicon_URL!="") { - $(document).ready(function() { - $('') - .appendTo("head"); - }); -} - -// changing carets to unicode characters - -$("nav .caret, #cs-edit-dd-toggle .caret").removeClass('caret').html(' ▾'); - -// adding important messages to "Options" - -text1='Please use "Personal theme" selector in the room configuration box to select a theme for this channel. '; -text2='Please use "Click to configure" button in the room configuration box to configure this channel. '; -text3='If you want to make global changes, please go to another channel, or make changes before accepting ' - + 'special features.'; -$("#us-theme").hide(); -$("#us-theme").parent().append(''+text1+''+text3+''); -$("#us-layout").hide(); -$("#us-layout").parent().append(''+text2+''+text3+''); - -// creating channel settings filters preparation button - -csfontsimport = $('Prepare fonts filters') - .insertAfter("#cs-chatfilters-import") - .on("click", function() { - prepareFilters(); - }); - -// fixing layout after saving global user options - -$("#useroptions .modal-footer button:nth-child(1)").on("click", function() { - USEROPTS.hidevid ? location.reload() : '' - html='All changes are applying globally, but this channel uses its own layout. ' - + 'Please use "Click to configure" button to configure this channel layout.' - + 'Reload player if the wrong title is displaying. ' - + 'In HD layout or if player is removed, you may not see some elements due to CyTube API. ' - + 'If so, reload channel.'; - makeAlert("You have changed global User Preferences", html, "alert-info").appendTo("#announcements"); - compactLayout(); - setLayout(); - FLUID ? fluidLayout() : ''; - setUserCSS(); - scrollChat(); - scrollQueue(); -}); - -// changing channel name - -if (UI_ChannelName=="1" && ChannelName_Caption!="") { - $(".navbar-brand").html(ChannelName_Caption); -} - -// adding channel small logo - -if (UI_MiniLogo=="1" && MiniLogo_URL!="") { - $('').prependTo(".navbar-brand"); -} - -// adding header dropdown menu - -if (UI_HeaderDropMenu=="1") { - HeaderDropMenu_Title=="" ? HeaderDropMenu_Title='Menu' : ''; - headerdrop = $('') - .insertAfter("#home-link"); - $('') - .html(HeaderDropMenu_Title+' ▾') - .appendTo(headerdrop); - headermenu = $('') - .appendTo(headerdrop); - - HeaderDropMenu_Array.length<1 ? HeaderDropMenu_Array=[['no menu available', '']] : ''; - for (i in HeaderDropMenu_Array) { - title=HeaderDropMenu_Array[i][0]; - link=HeaderDropMenu_Array[i][1]; - if (link=="") { - headermenu.append(''+title+''); - } else { - $('') - .append(''+title+'') - .appendTo(headermenu); - } - } -} - -// optional removing of "Layout" menu from header - -if (UI_RemoveLayoutMenu=="1") { - $("#layout-link").remove(); -} else { - $("#layout-link li:nth-child(2) a").on("click", function() { - $("#configform, #modeform, #pinup-btn").hide(); - fitChat("auto"); - }); -} - -// changing some button captions or welcome message - -if (UI_CustomCaptions=="1") { - if (CustomCaptions_Array['add']!="") { - $("#showmediaurl").html(CustomCaptions_Array['add']); - } - if (CustomCaptions_Array['refresh']!="") { - $("#mediarefresh").html(CustomCaptions_Array['refresh']); - } - if (CustomCaptions_Array['voteskip']!="") { - socket.on("voteskip", changeSkipText); - changeSkipText(); - } - if (CustomCaptions_Array['welcome']!="") { - socket.on("login", changeWelcomeText); - changeWelcomeText(); - } -} - -// deleting previous MOTD - -UI_MOTDDelete=="1" ? $("#motd").html('') : ''; - -// setting MOTD - -if (UI_MOTDAutoLogo=="1" || UI_RulesBtn=="1" || (UI_MOTDTabs=="1" && MOTDTabs_Array.length>0)) { - socket.on("setMotd", changeMOTD); - changeMOTD(); -} - -// setting MOTD logo - -if (UI_MOTDAutoLogo=="1") { - if (MOTDAutoLogo_Mode!="1" && MOTDAutoLogo_Mode!="2" && MOTDAutoLogo_Mode!="3" && MOTDAutoLogo_Mode!="7") { - MOTDAutoLogo_Mode='1'; - } - if (MOTDAutoLogo_Mode=="3") { - if (typeof MOTDAutoLogo_Interval!=="number" || MOTDAutoLogo_Interval<1) { - MOTDAutoLogo_Interval=20; - } - setInterval(function() { - nr=Math.floor(Math.random()*MOTDAutoLogo_Array.length); - $("#motdlogo").attr('src', MOTDAutoLogo_Array[nr]); - }, MOTDAutoLogo_Interval*1000); - } -} - -// adding attention bar - -if (UI_AttentionBar=="1" && AttentionBar_URL!="") { - attbarwrap = $('').prependTo("#announcements"); - attbar = $('') - .attr('src', AttentionBar_URL) - .appendTo(attbarwrap); -} - -// adding custom channel announcement - -if (UI_ChannelAnnouncement=="1") { - ChannelAnnouncement_Title=="" ? ChannelAnnouncement_Title='Administration Message' : ''; - ChannelAnnouncement_HTML=="" ? ChannelAnnouncement_HTML='no messages' : ''; - makeAlert(ChannelAnnouncement_Title, ChannelAnnouncement_HTML).appendTo("#announcements"); -} - -// adding full-width title bar and progress bar - -if (UI_FullTitleBar=="1") { - titlerow = $('').insertBefore("#main"); - titlerowouter = $('') - .html($("#currenttitle").detach()) - .appendTo(titlerow); - mediainfo = $('').html('Nothing playing').prependTo("#videowrap"); - - UI_ProgressBar=="1" ? setInterval(function() {progressBar()}, 2000) : ''; - - socket.on("changeMedia", showInfo); - showInfo(); - - if (UI_TitleIcon=="1" && TitleIcon_URL!="") { - $("#titlerow #currenttitle").css({ - 'background-image':'url("'+TitleIcon_URL+'")', - 'background-repeat':'no-repeat', - 'background-position':'left center' - }); - } -} - -// changing title bar description - -if (UI_TitleBarDescription=="1") { - socket.on("changeMedia", changeTitle); - changeTitle(); -} - -// easter egg - -function inba() { - $("body").css('background-image', 'none'); - BGCHANGE++; - BGCHANGE%2==0 ? $("body").css('background-color', 'gold') : $("body").css('background-color', 'blue'); -} - -// customizing chat notifications sound - -if (UI_CustomPingSound=="1" && CustomPingSound_URL!="") { - CHATSOUND = new Audio(CustomPingSound_URL); - CHATSOUND.volume=0.6; -} - -// additional chat functions - -chatflair = $('Func') - .insertAfter("#adminflair") - .on("click", function() { - if(!CHATFUNC) { - $("#sounds-dropdown").remove(); - SOUNDSPANEL = false; - showChatFunctions(); - CHATFUNC = true; - } else { - $("#chatfunc-dropdown").remove(); - CHATFUNC = false; - } - }); -socket.on("rank", toggleChatFunctions); -toggleChatFunctions(); - -// optional chat joining message - -if (UI_JoinText=="1") { - JoinText_Message=="" ? JoinText_Message="joined" : ''; - socket.emit("chatMsg", {msg: '/me '+JoinText_Message}); -} - -// optional chat leaving message - -if (UI_LeaveText=="1") { - LeaveText_Message=="" ? LeaveText_Message="left" : ''; - $(window).unload(function() { - socket.emit("chatMsg", {msg: '/me '+LeaveText_Message}); - }); -} - -// adding chat buttons wrapping - -if (UI_FontsBtn=="1" || UI_EmotesBtn=="1" || UI_CommandsBtn=="1" || UI_SoundFilters=="1" || UI_ModPanel=="1" || UI_ChatSpeak=="1") { - chatcontrols = $('').appendTo("#chatwrap"); -} - -// adding chat fonts button - -if (UI_FontsBtn=="1") { - fontsbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - toggleDiv(fontspanel); - }); -} - -// adding chat emotes button - -if (UI_EmotesBtn=="1") { - emotesbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - toggleDiv(emotespanel); - (UI_ChannelCache!="1" && !EMOTES) ? showEmotes() : ''; - }); -} - -// adding chat commands button - -if (UI_CommandsBtn=="1" && (UI_UserCommands=="1" || UI_FontsBtn=="1" || UI_ChatSpeak=="1")) { - chathelpbtn = $('') - .text('Chat Commands') - .appendTo(chatcontrols) - .on("click", function() { - showChatHelp(); - }); -} - -// adding chat sounds toggle button and control panel - -if (UI_SoundFilters=="1" || UI_ChatSpeak=="1") { - voicesbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - if(!SOUNDSPANEL) { - $("#chatfunc-dropdown").remove(); - CHATFUNC=false; - showSoundsPanel(); - SOUNDSPANEL = true; - } else { - $("#sounds-dropdown").remove(); - SOUNDSPANEL = false; - } - }); - VOICES=true; -} - -// adding moderators panel button - -if (UI_ModPanel=="1") { - modbtn = $('') - .html('') - .appendTo(chatcontrols) - .on("click", function() { - showModPanel(); - }); - - socket.on("rank", toggleModPanel); - toggleModPanel(); -} - -// adding player control buttons - -if (UI_PlayerOptions=="1") { - if (UI_FullTitleBar=="1") { - switchdescrbtn = $('') - .attr('title', 'Switch description') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - DEFDESCR = !DEFDESCR; - showInfo(); - }); - } - - hideplayerbtn = $('') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - $(this).hasClass('btn-danger') ? showPlayer() : coverPlayer(); - }); - - muteplayerbtn = $('') - .append('') - .appendTo("#playercontrols") - .on("click", function() { - if ($(this).hasClass('btn-danger')) { - $(this).removeClass('btn-danger').attr('title', 'Mute player'); - unmutePlayer(); - } else { - $(this).addClass('btn-danger').attr('title', 'Unmute player'); - mutePlayer(); - } - }); - - socket.on("changeMedia", toggleMuteBtn); - toggleMuteBtn(); - - savemediabtn = $('') - .html('') - .appendTo("#playercontrols") - .on("click", function() { - downloadCurrentItem(); - }); -} - -// adding player transformation buttons - -if (UI_TransformationBtns=="1") { - transcontrols = $('').appendTo("#videowrap"); - - mirrorxbtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('mX')) { - $("#ytapiplayer").removeClass('mX'); - } else { - $("#ytapiplayer").addClass('mX'); - } - }); - - mirrorybtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('mY')) { - $("#ytapiplayer").removeClass('mY'); - } else { - $("#ytapiplayer").addClass('mY'); - } - }); - - rotatebtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('rotate')) { - $("#ytapiplayer").removeClass('rotate'); - } else { - $("#ytapiplayer").addClass('rotate'); - } - }); - - verticalbtn = $('') - .html('') - .appendTo(transcontrols) - .on("click", function() { - if ($("#ytapiplayer").hasClass('vertical')) { - $("#ytapiplayer").removeClass('vertical'); - this.attr('title', 'Vertical player'); - } else { - $("#ytapiplayer").addClass('vertical'); - this.attr('title', 'Horizontal player'); - } - }); -} - -// creating fonts and emotes main row - -if (UI_FontsBtn=="1" || UI_EmotesBtn=="1") { - chatpanel = $('').insertBefore("#playlistrow"); -} - -// adding fonts panel - -if (UI_FontsBtn=="1") { - fontspanel = $('').appendTo(chatpanel); - fontsbtnwrap = $('').appendTo(fontspanel); - - FontsArray = [ - ['background:white', 'white', '■'], - ['background:gold', 'yellow', '■'], - ['background:orange', 'orange', '■'], - ['background:#FFBBFF', 'pink', '■'], - ['background:red', 'red', '■'], - ['background:limegreen', 'lime', '■'], - ['background:green', 'green', '■'], - ['background:aqua', 'aqua', '■'], - ['background:blue', 'blue', '■'], - ['background:#660099', 'violet', '■'], - ['background:#660000', 'brown', '■'], - ['background:silver', 'silver', '■'], - ['background:black', 'black', '■'], - ['background:black; color:white', 'bw', 'a'], - ['background:white; font-weight:bold; color:black', 'b', 'B'], - ['background:white; font-style:italic; color:black', 'i', 'I'], - ['background:white; text-decoration:underline; color:black', 'u', 'U'], - ['background:white; text-decoration:line-through; color:black', 's', 's'], - ['background:gold; color:red', 'd', 'D'], - ['background:black; color:gold; font-family:impact, sans-serif', 'f', 'F'], - ['background:black; color:white', 'sp', 'sp'], - ['background:white; color:black; border:solid 2px red', '\\/', '\[\/\]'], - ]; - - for (i in FontsArray) { - $('') - .addClass('btn btn-default').attr('style', FontsArray[i][0]).text(FontsArray[i][2]) - .appendTo(fontsbtnwrap); - i%13==12 ? fontsbtnwrap.append('') : false; - } - - if (UI_UnicodeChars=="1" && UnicodeChars_Array.length>0) { - unibtnwrap = $('').appendTo(fontspanel); - for (i in UnicodeChars_Array) { - btn=$('') - .addClass('btn btn-default').text(UnicodeChars_Array[i]) - .appendTo(unibtnwrap); - } - } -} - -// adding emotes panel - -if (UI_EmotesBtn=="1") { - emotespanel = $('').appendTo(chatpanel); - UI_ChannelCache=="1" ? showEmotes() : ''; -} - -// adding background image to empty playlistrow corner - -if (UI_EmptyCornerBackground=="1" && EmptyCornerBackground.length>0) { - rnd=Math.round(Math.random()*(EmptyCornerBackground.length-1)); - $("#playlistrow").css({ - 'background-image':'url("'+EmptyCornerBackground[rnd]+'")', 'background-repeat':'no-repeat' - }); -} - -// adding layout configuration panel button - -layoutbtn = $('') - .html(' Layout') - .prependTo("#leftpane") - .on("click", function() { - toggleConfigPanel(); - }); -$("#playlistmanagerwrap").show(); - -// adding media database and gallery wrap - -if (UI_ChannelDatabase=="1" || UI_ChannelGalleries=="1") { - leftpanecontrols = $('').insertAfter(layoutbtn); -} - -// adding media database button - -if (UI_ChannelDatabase=="1") { - dbbtn = $('Channel Database') - .appendTo(leftpanecontrols) - .on("click", function() { - toggleDiv(dbwrap); - !CHANDB ? createDatabase() : ''; - }); -} - -// adding galleries button - -if (UI_ChannelGalleries=="1") { - gallerybtn = $('Channel Galleries') - .appendTo(leftpanecontrols) - .on("click", function() { - toggleDiv(gallerywrap); - !GALLERY ? createGallery() : ''; - - // patch: strange imgur behaviour (not loading first cached gallery) - if(!GALLVIS && UI_ChannelCache=="1" && gallerywrap.css('display')!="none") { - iframe=document.getElementById("galleryFrame"); - if(iframe.src.indexOf('imgur.com')>-1) { - iframe.src=iframe.src; - } - } - GALLVIS=true; - }); -} - -// adding layout configuration well - -configwrap = $('').appendTo("#leftpane-inner"); -configwell = $('').appendTo(configwrap); - -if (!LAYOUTBOX) { - toggleDiv(configwrap); - layoutbtn.removeClass('btn-success'); -} - -// adding layout configuration form - -configform = $('').appendTo(configwell); -$('Global layout').appendTo(configform); -configbtnwrap = $('').appendTo(configform); - -configbtn = $('Click to configure') - .appendTo(configbtnwrap) - .on("click", function() { - showConfig(); - }); - -configbtnwrap.append(''); - -fluidlayout = $('').appendTo(configbtnwrap); -cbox = $('') - .appendTo(fluidlayout) - .on("click", function() { - toggleFluidLayout(); - }); -cbox.after(' Fluid'); - -minlayout = $('').appendTo(configbtnwrap); -cbox = $('') - .appendTo(minlayout) - .on("click", function() { - toggleMinLayout(); - }); -cbox.after(' Minimized'); - -// adding selector with player display modes - -if (UI_DisplayModeSel=="1") { - modeform = $('').appendTo(configwell); - $('Display mode').appendTo(modeform); - modewrap = $('').appendTo(modeform); - - modesel = $('') - .append('synchtube mode') - .append('cinema mode') - .append('chatroom mode') - .append('silent mode') - .append('radio mode') - .appendTo(modewrap) - .on("change", function() { - $("#config-btn, #configbtnwrap br").hide(); - $("#min-layout").parent().hide(); - $("#sounds-dropdown, #chatfunc-dropdown").remove(); - SOUNDSPANEL=false; - CHATFUNC=false; - PLAYER.type=="jw" ? refreshPlayer() : ''; - setMode($(this).val()); - scrollQueue(); - scrollChat(); - showPlayer(); - }); - - socket.on("changeMedia", setModeAfterVideoChange); -} - -// adding selector with channel themes - -themeform = $('').appendTo(configwell); -$('Personal theme').appendTo(themeform); -themewrap = $('').appendTo(themeform); - -themesel = $('') - .append('default themes') - .append('# Light') - .append('# Bootstrap') - .append('# Slate') - .append('# Cyborg') - .appendTo(themewrap) - .on("change", function() { - $("#sounds-dropdown, #chatfunc-dropdown").remove(); - $("#playlistmanagerwrap").show(); - SOUNDSPANEL=false; - CHATFUNC=false; - USERTHEME=$(this).val(); - setUserCSS(); - setOpt(CHANNEL.name+"_theme", USERTHEME); - }); - -if (ThemesCSS.length>0) { - themesel.append('additional themes'); - for (i in ThemesCSS) { - themesel.append(''+ThemesCSS[i][0]+''); - } -} - -if (UI_ChannelTheme=="1" && ChannelThemeURL!="") { - themesel.prepend('# Channel Theme') - .prepend('main theme'); -} - -themesel.val(USERTHEME); - -// adding temporary hiding options - -hideform = $('').appendTo(configwell); -$('Temporary hide').appendTo(hideform); -hidewrap = $('').appendTo(hideform); - -hidemotd = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidemotd) - .on("click", function() { - toggleDiv("#motdrow"); - }); -cbox.after(' MOTD'); - -hideann = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hideann) - .on("click", function() { - toggleDiv("#announcements"); - }); -cbox.after(' Announcements'); - -hidetitle = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidetitle) - .on("click", function() { - toggleDiv("#titlerow"); - toggleDiv("#currenttitle"); - }); -cbox.after(' Title'); - -hidepl = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidepl) - .on("click", function() { - toggleDiv("#queue"); - toggleDiv("#plmeta"); - }); -cbox.after(' Playlist'); - -hidehf = $('').appendTo(hidewrap); -cbox = $('') - .appendTo(hidehf) - .on("click", function() { - $("nav").css('display')!="none" ? headerMode("fixed") : headerMode(USERCONFIG.header); - toggleDiv("nav"); - toggleDiv("footer"); - }); -cbox.after(' H&F'); - -// adding embedding options - -if (UI_EmbeddingMedia=="1" && (EmbeddingMedia_Images!="" || EmbeddingMedia_Videos!="")) { - embedform = $('').appendTo(configwell); - $('Embeds [?]') - .appendTo(embedform); - embedwrap = $('').appendTo(embedform); - - $("#embed-help").on("click", function() { - txt = 'This option lets you see images or videos directly on the chat, instead of links.\n' - + 'Click on image or double click on video to open in the new tab.\n' - + 'All videos are muted by default, if autoplay - click to unmute, else click to play.\n\n' - + 'This channel supports following types of links (specified as CSS codes):\n' - + '■ Images - '; - (EmbeddingMedia_Images!="") ? txt+=EmbeddingMedia_Images : 'none'; - txt += '\n■ Videos - '; - (EmbeddingMedia_Videos!="") ? txt+=EmbeddingMedia_Videos : 'none'; - alert(txt); - }); - - if (EmbeddingMedia_Images!="") { - embedimg = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(embedimg) - .on("click", function() { - EMBEDIMG = !EMBEDIMG; - setOpt(CHANNEL.name+"_embedimg", EMBEDIMG); - }); - cbox.after(' img'); - !EMBEDIMG ? cbox.removeAttr('checked') : ''; - } - - if (EmbeddingMedia_Videos!="") { - embedvid = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(embedvid) - .on("click", function() { - EMBEDVID = !EMBEDVID; - setOpt(CHANNEL.name+"_embedvid", EMBEDVID); - EMBEDVID ? autovid.show() : autovid.hide(); - }); - cbox.after(' video'); - !EMBEDVID ? cbox.removeAttr('checked') : ''; - - autovid = $('').appendTo(embedwrap); - cbox = $('') - .appendTo(autovid) - .on("click", function() { - AUTOVID = !AUTOVID; - setOpt(CHANNEL.name+"_autovid", AUTOVID); - }); - cbox.after(' autoplay'); - !AUTOVID ? cbox.removeAttr('checked') : ''; - !EMBEDVID ? autovid.hide() : ''; - } -} - -// adding quick commands and volume buttons - -if (UI_QuickCommandsBtns=="1" || UI_VolumeBtns=="1") { - funcbtnform = $('').appendTo(configwell); - $('Command buttons').appendTo(funcbtnform); - funcbtnwrap = $('').appendTo(funcbtnform); - btnsgroup = $('').appendTo(funcbtnwrap); - - if (UI_QuickCommandsBtns=="1") { - clearbtn = $('/clear') - .appendTo(btnsgroup) - .on("click", function() { - if (confirm('Are you sure to clear the chat window?')) { - socket.emit("chatMsg", {msg: '/clear'}); - } - }); - afkbtn = $('/afk') - .appendTo(btnsgroup) - .on("click", function() { - socket.emit("chatMsg", {msg: '/afk'}); - }); - - socket.on("rank", toggleClearBtn); - toggleClearBtn(); - } - - if (UI_VolumeBtns=="1") { - voldownbtn = $('vol -') - .appendTo(btnsgroup) - .on("click", function() { - a=PLAYER.player.getVolume(); - PLAYER.player.setVolume(a-1); - }); - volupbtn = $('vol +') - .appendTo(btnsgroup) - .on("click", function() { - a=PLAYER.player.getVolume(); - PLAYER.player.setVolume(a+1); - }); - - socket.on("changeMedia", toggleVolBtn); - toggleVolBtn(); - } -} - -// adding media database layout - -if (UI_ChannelDatabase=="1" && ChannelDatabase_URL=="") { - dbwrap = $('').insertBefore(configwrap); - dbwell = $('').appendTo(dbwrap); - - var item_nr=0; - var layer_nr=1; - var opening=new Array(); - var item_count=new Array(0); - var count_nr=0; - - if (ChannelDatabase.length<1 || ChannelDatabase[0][0]!="") { - ChannelDatabase.unshift(['', '(various media)']); - } - UI_ChannelCache=="1" ? createDatabase() : ''; -} else if (UI_ChannelDatabase=="1" && ChannelDatabase_URL!="") { - $.getScript(ChannelDatabase_URL); -} - -// adding galleries layout - -if (UI_ChannelGalleries=="1") { - gallerywrap = $('') - .appendTo("#leftpane-inner"); - gallerywell = $('').appendTo(gallerywrap); - - if (ChannelGalleries_Array.length<1) { - ChannelGalleries_Array=[['Anime pictures', 'http://imgur.com/a/SjwJb/embed']]; - } - UI_ChannelCache=="1" ? createGallery() : ''; -} - -// unchecking temporary media checkbox for registered users - -if (UI_DefaultNonTemp=="1") { - CLIENT.rank>0 ? $(".add-temp").prop('checked', false) : ''; -} - -// adding playlist options for moderators button - -advplaylist = $('') - .append('') - .insertBefore("#qlockbtn") - .on("click", function() { - toggleDiv(advplcontrols); - }); - -// adding advanced playlist options form - -advplcontrol = $('').insertAfter("#playlistmanager"); -advplcontrols = $('').appendTo(advplcontrol); - -// adding advanced playlist options buttons - -playnextbtn = $('Play next') - .appendTo(advplcontrols) - .on("click", function() { - socket.emit("playNext"); - }); - -addrandombtn = $('Add random') - .appendTo(advplcontrols) - .on("click", function() { - addRandomItem(); - }); - -bumplastbtn = $('Bump last') - .appendTo(advplcontrols) - .on("click", function() { - len=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+len+")").data("uid"); - socket.emit("moveMedia", {from:uid, after:PL_CURRENT}); - }); - -deletelastbtn = $('Delete last') - .appendTo(advplcontrols) - .on("click", function() { - if (confirm('Are you sure to delete last item?')) { - len=$("#queue").children().length; - uid=$("#queue .queue_entry:nth-child("+len+")").data("uid"); - socket.emit("delete", uid); - } - }); - -toggleAdvancedPl(); - -// adding playlist expanding button - -expandbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - expandQueue(); - }); - -// adding playlist scrolling button - -scrollbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - scrollQueue(); - }); - -// adding contributors button - -contribbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - showContributors(); - }); - -// adding pin-up button - -pinupbtn = $('') - .append('') - .prependTo("#videocontrols") - .on("click", function() { - !PINNED ? pinUp() : unPin(); - scrollQueue(); - scrollChat(); - }); - -// extending 'Get URLs' function - -if (UI_ExtendedGetURLs=="1") { - $("#getplaylist").unbind() - .on("click", function() { - getPlaylistURLs(); - }); -} - -// altering message for the first-timers - -if ($("#plonotification").length>0) { - repl = '"the old style" of playlist buttons (recommended) - more compact playlist with nice icons ' - + '(see image ' - + 'here).'; - html=$("#plonotification .alert").html().replace(/the old style of playlist buttons./, repl); - html=html.replace('right click). ', 'right click).'); - $("#plonotification .alert").html(html); -} - -// rearranging footer - -html='CyTube Plus 4.5 · Copyright © 2013-2014 Zimny Lech · ' - + 'Free source on GitHub · ' - + 'Wiki'; -$(".credit").append(html); - -if (UI_CustomRightFooter=="1") { - rightfooter = $(''+CustomRightFooter_HTML+'') - .appendTo("footer .container"); -} - -if (UI_CustomFooter=="1" || UI_UserStatistics=="1") { - leftfooter = (UI_CustomRightFooter=="1") ? $('') : $(''); - (UI_CustomRightFooter=="1" && CustomFooter_HTML!="") ? leftfooter.html(CustomFooter_HTML) : ''; - leftfooter.appendTo("footer .container"); -} - -// updating user visits - -USERVISITS++; -setOpt(CHANNEL.name+"_visits", USERVISITS); - -if (UI_UserStatistics=="1") { - (UI_CustomFooter=="1" && CustomFooter_HTML!="") ? $('').appendTo(leftfooter) : ''; - - $('My visits: '+USERVISITS+' / ') - .appendTo(leftfooter); - $('Current online time: ').appendTo(leftfooter); - onlinetime = $('0:00').appendTo(leftfooter); - - setInterval(function() {onlineTime()}, 60000); -} - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/* ----- Chat and window extensions and events ----- */ - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -(UI_EmbeddingMedia=="1" && (EmbeddingMedia_Images!="" || EmbeddingMedia_Videos!="")) ? ALTERCHATFORMAT=true : ''; -(UI_UserMarks=="1" || UI_IndependentEmotes=="1" || UI_IndependentFilters=="1") ? ALTERCHATFORMAT=true : ''; - -// alter chat messages formatting -// DEV NOTE: this is extended function from CyTube "util.js" file - -if (ALTERCHATFORMAT) { - function formatChatMessage(data, last) { - if (!data.meta || data.msgclass) { - data.meta = {addClass:data.msgclass, addClassToNameAndTimestamp:data.msgclass}; - } - - skip=data.username===last.name; - data.meta.addClass==="server-whisper" ? skip=true : ''; - data.msg.match(/^\s*\w+\s*:\s*<\/strong>\s*/) ? skip=false : ''; - data.meta.forceShowName ? skip=false : ''; - data.msg=execEmotes(data.msg); - - last.name = data.username; - div = $(''); - if (data.meta.addClass==="drink") { - div.addClass('drink'); - data.meta.addClass=''; - } - - if (USEROPTS.show_timestamps) { - time = $('').appendTo(div); - timestamp = new Date(data.time).toTimeString().split(' ')[0]; - time.text('['+timestamp+'] '); - if (data.meta.addClass && data.meta.addClassToNameAndTimestamp) { - time.addClass(data.meta.addClass); - } - } - - if (UI_UserMarks=="1" && UI_Squavatars=="1") { - html=createSquavatar(data.username); - div.html(div.html()+html); - } - if (UI_UserMarks=="1" && UI_Squavatars!="1") { - if (UserMarks_Array[data.username]!=undefined) { - html=''+UserMarks_Array[data.username]+''; - div.html(div.html()+html); - } - } - - uname = $(''); - !skip ? uname.appendTo(div) : ''; - mark = (UI_UsernameMark=="1" && UsernameMark_Char!="") ? UsernameMark_Char : ':'; - $('').text(data.username+mark+' ').appendTo(uname); - - data.meta.modflair ? uname.addClass(getNameColor(data.meta.modflair)) : ''; - if (data.meta.addClass && data.meta.addClassToNameAndTimestamp) { - uname.addClass(data.meta.addClass); - } - if (data.meta.superadminflair) { - uname.addClass('globalmod label').addClass(data.meta.superadminflair.labelclass); - $('').addClass(data.meta.superadminflair.icon) - .prependTo(uname); - } - - message = $('').appendTo(div); - message[0].innerHTML=data.msg; - - (data.meta.addClass=="greentext") ? message.addClass('greentext') : ''; - (data.meta.addClass=="spoiler") ? message.addClass('spoiler') : ''; - (data.meta.addClass=="action") ? message.addClass('action') : ''; - (data.meta.addClass=="server-whisper") ? message.addClass('server-whisper') : ''; - - if (data.meta.action) { - uname.remove(); - message[0].innerHTML=data.username+' '+data.msg; - } - - if (UI_IndependentEmotes=="1") { - _div=div.html(); - for (i in IndependentEmotes) { - filter=IndependentEmotes[i][0]; - html = ''; - re=new RegExp(filter, 'g'); - _div=_div.replace(re, html); - } - div.html(_div); - } - if (UI_IndependentFilters=="1") { - _div=div.html(); - for (i in IndependentFilters) { - _div=_div.replace(IndependentFilters[i].before, IndependentFilters[i].after); - } - div.html(_div); - } - - data.meta.addClass ? message.addClass(data.meta.addClass) : ''; - data.meta.shadow ? div.addClass("chat-shadow") : ''; - div.find("img").load(function() { - SCROLLCHAT ? scrollChat() : ''; - }); - - if (EMBEDIMG && UI_EmbeddingMedia=="1") { - div.find(EmbeddingMedia_Images).each(function() { - img = $('').attr('src', this.href) - .load(function() { - SCROLLCHAT ? scrollChat() : ''; - }); - $(this).html(img); - }); - } - if (EMBEDVID && UI_EmbeddingMedia=="1") { - div.find(EmbeddingMedia_Videos).each(function() { - vid = $('').attr('src', this.href).prop('loop', 'true') - .load(function() { - SCROLLCHAT ? scrollChat() : ''; - }).on("click", function() { - if (!AUTOVID) { - if ($(this).get(0).paused) { - $(this).get(0).play(); - } else { - $(this).get(0).pause(); - } - } else { - $(this).prop('muted', !$(this).prop('muted')); - }; - return false; - }).on("dblclick", function() { - window.open(this.src, '_blank'); - return false; - }); - AUTOVID ? vid.prop('autoplay', 'true').prop('muted', 'true') : ''; - UI_MediaControls=="1" ? vid.attr('controls', '') : ''; - $(this).html(vid); - }); - } - - return div; - } -} - -// client-side chat buffer for playing sounds - -_chatBuffer=addChatMessage; -addChatMessage=function(data) { - if (UI_SoundFilters=="1" && VOICES && (!(data.username in MUTEDVOICES) || MUTEDVOICES[data.username]=="0")) { - for (i in SoundFilters_Array) { - if (data.msg.indexOf(i)>-1) { - aud=new Audio(SoundFilters_Array[i]); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } - } - } - if (UI_ChatSpeak=="1" && VOICES && (!(data.username in MUTEDVOICES) || MUTEDVOICES[data.username]=="0")) { - msg=getText(data.msg) - if (msg.indexOf("!mow ")>=0) { - str=msg.split("!mow "); - aud=new Audio(SPEAKLINK+'?lang=polish&text='+encodeURI(str[1])); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } else if (msg.indexOf("!say ")>=0) { - str=msg.split("!say "); - aud=new Audio(SPEAKLINK+'?lang=english&text='+encodeURI(str[1])); - aud.volume=SOUNDSVALUES[SOUNDSLVL]; - aud.play(); - } - } - _chatBuffer(data); -} - -// fix formatting and sending chat messages -// DEV NOTE: this are extended events from CyTube "util.js" file - -$("#chatline, #chatbtn").unbind(); - -$("#chatline").on("keydown", function(ev) { - if (ev.keyCode==13) { - if (CHATTHROTTLE) { - return; - } - _msg=$("#chatline").val(); - msg=$("#chatline").val(); - if (msg.trim()) { - msg=prepareMessage(msg.trim()); - meta={}; - if (COMMAND) { - socket.emit("chatMsg", {msg:_msg}); - msg='➥ '+msg; - COMMAND=false; - } - if (USEROPTS.adminhat && CLIENT.rank>=255) { - msg='/a '+msg; - } else if (USEROPTS.modhat && CLIENT.rank>=Rank.Moderator) { - meta.modflair=CLIENT.rank; - } - if (CLIENT.rank>=2 && msg.indexOf("/m ")===0) { - meta.modflair=CLIENT.rank; - msg=msg.substring(3); - } - socket.emit("chatMsg", {msg:msg, meta:meta}); - userChatStats(_msg); - CHATHIST.push($("#chatline").val()); - CHATHISTIDX=CHATHIST.length; - $("#chatline").val(''); - } - return; - } else if (ev.keyCode==9) { - chatTabComplete(); - ev.preventDefault(); - return false; - } else if (ev.keyCode==38) { - if (CHATHISTIDX==CHATHIST.length) { - CHATHIST.push($("#chatline").val()); - } - if(CHATHISTIDX>0) { - CHATHISTIDX--; - $("#chatline").val(CHATHIST[CHATHISTIDX]); - } - ev.preventDefault(); - return false; - } else if (ev.keyCode==40) { - if (CHATHISTIDX div, #playlistrow > div { - padding-left:5px; padding-right:5px; margin-top:5px; margin-bottom:5px; -} -#motdwrap {margin:5px -10px} -#announcements .alert {margin:0px -10px 5px} -#drinkcount {margin:0px} -*/ - - -/* ----- CyTube Plus created elements CSS ----- */ - - - /* -- channel avatar -- */ - -#chanavatar {margin-right:10px} - - /* -- azuki row (user top logo) -- */ - -#azukirow { - padding-left:5px; padding-right:5px; border-left:solid 2px transparent; border-right:solid 2px transparent; - background:transparent; background-repeat:no-repeat !important; background-position:center center !important; - margin:0px -8px; min-height:5px; -} - - /* -- MOTD elements -- */ - -#motdlogo {margin-bottom:8px} -#motdtabswrap {margin-top:8px} -.motdtabs-btn {margin-right:5px} -#motdtabscontent {padding:10px 5px} - - /* -- rules button and panel -- */ - -#rulesbtnwrap {text-align:center} -#rules-btn {margin-top:10px; margin-bottom:5px} -#rulespanel-outer {width:100%; padding:0px} -#rulespanel { - max-width:700px; margin:0 auto; margin-top:0px; padding:4px; border:solid 2px white; text-align:left; - border-radius:8px; -moz-border-radius:8px; -webkit-border-radius:8px; -} - - /* -- attention bar -- */ - -#attbarrow-outer {padding:0px 5px} -#attbar {height:22px; background-color:white} - - /* -- full-sized title row -- */ - -#titlerow { - background-color:white; - background-image:linear-gradient(to right, #cccccc, #cccccc); - background-position:0px center; - background-size:0% 100%; background-repeat:no-repeat; - margin:-5px -8px 5px; - border-radius:4px; -} -#titlerow-outer { - padding:3px 5px; text-align:center; font-size:16pt; color:black; - text-shadow: 0px 0px 10px #666666, 0px 0px 10px #666666; -} -#titlerow #currenttitle {border:none; background:transparent} - - /* -- media info bar -- */ - -#mediainfo { - background:transparent; margin-bottom:0px; border-width: 1px 1px 0px; border-style:solid solid none; - border-color:#CCC #CCC -moz-use-text-color; border-radius:5px 5px 0px 0px; -} - - /* -- player alert (if hidden video after loading) -- */ - -#ytapiplayer .alert {text-align:left; margin:0px -15px} - - /* -- player covering layer -- */ - -#coverpl { - position:absolute; left:5px; top:0px; background-color:white; - background-repeat:no-repeat; background-position:center center; -} - - /* -- sounds and admin panels GUI layers -- */ - -#sounds-dropdown, #chatfunc-dropdown { - position:absolute; top:22px; display:block; z-index:10000; padding:5px; - overflow:auto; margin-right:5px; -} -#muteall-btn, #spamclear-btn, #antiafk-btn {width:100%} - - /* -- chat controls buttons group -- */ - -#chatcontrols {margin-top:4px} - - /* -- chat elements -- */ - -.squavatar {width:24px; height:24px; margin-right:3px; border:solid 6px; vertical-align:middle; display:inline-block} -.avatar {margin-right:3px} -.server-whisper + .squavatar {display:none} -.globalmod {margin-right:2px} -.embedimg {max-width:200px; max-height:300px} -.embedvid {max-width:200px; max-height:300px; border:0px; vertical-align:middle} - - /* -- main fonts and emotes GUI layer -- */ - -#chatpanel {margin-top:0px; margin-bottom:0px} -#fontspanel, #emotespanel { - text-align:center; max-width:700px; margin:0px auto 5px auto; border:solid 2px white; border-radius:6px -} -.fluidpanel {max-width:1200px !important} - - /* -- fonts panel -- */ - -#fontsbtnwrap {margin-top:5px; margin-bottom:5px} -#unibtnwrap {margin:5px 45px 2px} -@media (max-width:767px) { - #unibtnwrap {margin:5px 25px 2px} -} -#fontsbtnwrap .btn, #unibtnwrap .btn {margin:0px 3px 3px 3px} - - /* -- emotes panel -- */ - -#emotespanel img {margin:5px; max-height:35px; cursor:pointer} -#emotesbtnwrap {text-align:center; margin:5px} -#emotespanel .alert {text-align:left; margin:5px -10px} - - /* -- advanced playlist controls -- */ - -#advplcontrols {width:100%; padding-top:10px} -#advplcontrols button {width:25%} - - /* -- database and galleries buttons gruoup -- */ - -#leftpanecontrols {margin-right:5px} - - /* -- layout configuration box toggling button -- */ - -#layout-btn {margin-left:5px} - - /* -- various configuration box elements -- */ - -#configbtnwrap, #modewrap, #themewrap, #funcbtnwrap, #cleardbwrap, #gallery-well, #hidewrap, #embedwrap { - text-align:center; -} -.conf-cap {padding-top:9px} -#mode-sel, #theme-sel, #gal-sel {width:80%; margin:0px auto} -.theme-header {text-align:center; font-size:9pt; font-style:italic} -#embed-help {cursor:pointer; margin-left:7px} - - /* -- channel database -- */ - -.db-cat {overflow:auto; max-height:400px} -.db-break {width:100%} -.db-title {margin-left:4px} -.db-link {margin-left:5px} -#previewFrame {margin:0 auto; display:block} - - /* -- channel galleries -- */ - -#galleryFrame {margin-bottom:10px} -#gal-sel {margin-bottom:20px} - - /* -- custom footer -- */ - -#leftfooter {font-size:10pt} -div[id="leftfooter"] {text-align:center; margin-bottom:5px} -#rightfooter {float:right; margin:0px 0px 15px 15px} - - -/* ----- Additional JS classes ----- */ - - -.relative {position:relative} - -.covered {visibility:hidden; opacity:0} - -.dist {background-color:gold; color:red; font-size:12pt; font-family:times new roman; padding:3px} - -.mX { - -webkit-transform:scaleX(-1); -moz-transform:scaleX(-1); transform:scaleX(-1); - -ms-transform:scaleX(-1); -o-transform:scaleX(-1); -} - -.mY { - -webkit-transform:scaleY(-1); -moz-transform:scaleY(-1); transform:scaleY(-1); - -ms-transform:scaleY(-1); -o-transform:scaleY(-1); -} - -.rotate { - -webkit-transform:rotate(180deg); -moz-transform:rotate(180deg); transform:rotate(180deg); - -ms-transform:rotate(180deg); -o-transform:rotate(180deg); -} - -.vertical { - -webkit-transform:rotate(270deg); -moz-transform:rotate(270deg); transform:rotate(270deg); - -ms-transform:rotate(270deg); -o-transform:rotate(270deg); -} \ No newline at end of file diff --git a/www/img/frst.jpg b/www/img/frst.jpg index b5e04865..1923de5a 100644 Binary files a/www/img/frst.jpg and b/www/img/frst.jpg differ diff --git a/www/img/tokeleaf.png b/www/img/tokeleaf.png new file mode 100644 index 00000000..ee5c7cde Binary files /dev/null and b/www/img/tokeleaf.png differ diff --git a/www/js/acp.js b/www/js/acp.js index 452c317c..5576ea72 100644 --- a/www/js/acp.js +++ b/www/js/acp.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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 () { var chosenServer = IO_SERVERS[0]; // Is the array even necessary for the ACP? diff --git a/www/js/callbacks.js b/www/js/callbacks.js index d5c5ae6f..d412bbdb 100644 --- a/www/js/callbacks.js +++ b/www/js/callbacks.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + Callbacks = { /* fired when socket connection completes */ connect: function() { @@ -173,22 +212,17 @@ Callbacks = { }, time)); }, - channelNotRegistered: function() { - var div = $("").addClass("alert alert-info") + channelNotFound: function() { + $("#motdwrap").hide(); + $("#chatline").prop("placeholder","Channel not found!"); + var div = $("").addClass("alert alert-danger") .appendTo($("").addClass("col-md-12").appendTo($("#announcements"))); - $("").addClass("close pull-right") - .appendTo(div) - .click(function () { - div.parent().remove(); - }) - .html("×"); - $("").appendTo(div).text("Unregistered channel"); + $("").appendTo(div).text("Channel not found!"); $("").appendTo(div) - .html("This channel is not registered to a CyTube account. You can still " + - "use it, but some features will not be available. To register a " + - "channel to your account, visit your " + - "channels page."); + .html("Go watch one of the channels that actually exists here."); + + $("#ytapiplayer").append('')//KSSSSSSSSSSSSSSSSSSSSSSSH }, setMotd: function(motd) { @@ -515,9 +549,16 @@ Callbacks = { } }, - clearchat: function() { - $("#messagebuffer").html(""); - LASTCHAT.name = ""; + clearchat: function(data) { + console.log(data); + + if(data.target == null){ + $("#messagebuffer").html(""); + }else{ + $(".chat-msg-" + data.target).html(""); + } + + LASTCHAT.name = (data.target == null || data.target == LASTCHAT.name.toLowerCase()) ? "" : LASTCHAT.name; }, userlist: function(data) { @@ -820,6 +861,10 @@ Callbacks = { } function loadNext() { + if(PLAYER){ + PLAYER.latch(); + } + $("#latchvid").hide(); if (!PLAYER || data.type !== PLAYER.mediaType) { loadMediaPlayer(data); } else { @@ -932,72 +977,21 @@ Callbacks = { /* REGION Polls */ newPoll: function(data) { - Callbacks.closePoll(); - var pollMsg = $("").addClass("poll-notify") - .html(data.initiator + " opened a poll: \"" + data.title + "\"") - .appendTo($("#messagebuffer")); - scrollChat(); + //lnewPoll(data); + fpoll.data = data; + panelbtn(fpoll) + $("#pollopenbtn").show("blinds"); - var poll = $("").addClass("well active").prependTo($("#pollwrap")); - $("").addClass("close pull-right").html("×") - .appendTo(poll) - .click(function() { poll.remove(); }); - if(hasPermission("pollctl")) { - $("").addClass("btn btn-danger btn-sm pull-right").text("End Poll") - .appendTo(poll) - .click(function() { - socket.emit("closePoll") - }); - } - - $("").html(data.title).appendTo(poll); - for(var i = 0; i < data.options.length; i++) { - (function(i) { - var callback = function () { - socket.emit("vote", { - option: i - }); - poll.find(".option button").each(function() { - $(this).removeClass("active"); - $(this).parent().removeClass("option-selected"); - }); - $(this).addClass("active"); - $(this).parent().addClass("option-selected"); - } - $("").addClass("btn btn-default btn-sm").text(data.counts[i]) - .prependTo($("").addClass("option").html(data.options[i]) - .appendTo(poll)) - .click(callback); - })(i); - - } - $("").addClass("label label-default pull-right").data('timestamp',data.timestamp).appendTo(poll) - .attr('title', 'Poll opened by ' + data.initiator).data('initiator',data.initiator) - .text(new Date(data.timestamp).toTimeString().split(" ")[0]); - - poll.find(".btn").attr("disabled", !hasPermission("pollvote")); }, updatePoll: function(data) { - var poll = $("#pollwrap .active"); - var i = 0; - poll.find(".option button").each(function() { - $(this).html(data.counts[i]); - i++; - }); + fpoll.updatePoll(data); }, closePoll: function() { - if($("#pollwrap .active").length != 0) { - var poll = $("#pollwrap .active"); - poll.removeClass("active").addClass("muted"); - poll.find(".option button").each(function() { - $(this).attr("disabled", true); - }); - poll.find(".btn-danger").each(function() { - $(this).remove() - }); - } + //lclosePoll(); + fpoll.closePoll(); + }, listPlaylists: function(data) { diff --git a/www/js/data.js b/www/js/data.js index 37306322..a6847fc4 100644 --- a/www/js/data.js +++ b/www/js/data.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + var CL_VERSION = 3.0; var GS_VERSION = 1.7; // Google Drive Userscript @@ -121,7 +160,6 @@ var USEROPTS = { blink_title : getOrDefault("blink_title", "onlyping"), sync_accuracy : getOrDefault("sync_accuracy", 2), wmode_transparent : getOrDefault("wmode_transparent", true), - chatbtn : getOrDefault("chatbtn", false), altsocket : getOrDefault("altsocket", false), qbtn_hide : getOrDefault("qbtn_hide", false), qbtn_idontlikechange : getOrDefault("qbtn_idontlikechange", false), @@ -130,6 +168,7 @@ var USEROPTS = { ignore_channeljs : getOrDefault("ignore_channeljs", false), sort_rank : getOrDefault("sort_rank", true), sort_afk : getOrDefault("sort_afk", false), + legacy_emote : getOrDefault("legacy_emote", false), default_quality : getOrDefault("default_quality", "auto"), boop : getOrDefault("boop", "never"), show_shadowchat : getOrDefault("show_shadowchat", false), @@ -138,7 +177,8 @@ var USEROPTS = { strip_image : getOrDefault("strip_image", false), chat_tab_method : getOrDefault("chat_tab_method", "Cycle options"), notifications : getOrDefault("notifications", "never"), - show_ip_in_tooltip : getOrDefault("show_ip_in_tooltip", true) + show_ip_in_tooltip : getOrDefault("show_ip_in_tooltip", true), + show_orientation : getOrDefault("show_orientation", "true") }; /* Backwards compatibility check */ diff --git a/www/js/fchat.js b/www/js/fchat.js index 85b52dd5..07174152 100644 --- a/www/js/fchat.js +++ b/www/js/fchat.js @@ -1,4 +1,19 @@ -//var colorList = ["#ff2e2e", "#5f5cff", "#4de024", "#f4861f", "##b88e8e", "#8f8eb8", "#8eb1b8", "#8eb897", "#abb88e"]; +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, +*/ + var colorList = ["userlist_color0", "userlist_color1", "userlist_color2", "userlist_color3", "userlist_color4", "userlist_color5", "userlist_color6"]; var usrColors = ([[],[]]); diff --git a/www/js/fembed.js b/www/js/fembed.js index 0b251ee8..16af4894 100644 --- a/www/js/fembed.js +++ b/www/js/fembed.js @@ -1,3 +1,19 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, +*/ + img_ext = ['jpg', 'jpg:large', 'jpeg', 'png', 'tiff', 'gif']; vid_ext = ['webm', 'gifv', 'mp4']; proto = ['http', 'https']; @@ -36,7 +52,7 @@ function checkEmbed(word, isEmote){ let usersplit = word.split(stripd,2);//split word by stripd, array of before and after name return usersplit[0] + '' + stripd + '' + usersplit[1];//decorate name - }else if(tstripd.charAt(0) === '!'){//if !toke command(same logic as above) + }else if(tstripd.charAt(0) === '!' && !isEmote){//if !toke command(same logic as above) let tokesplit = word.split(tstripd,2); return tokesplit[0] + '' + tstripd + '' + tokesplit[1]; }else{ diff --git a/www/js/fpanel.js b/www/js/fpanel.js new file mode 100644 index 00000000..a1e87ca6 --- /dev/null +++ b/www/js/fpanel.js @@ -0,0 +1,307 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, +*/ + +//---Global Variables--- +CURRENTFPANEL = null; + +//---Global Functions--- +function closeFPanel(cb){//close and null out fpanel, cb function to call when panel is closed + $("#fpaneldiv").hide("slide", 250,function(){ + $("#fpcontdiv").empty(); + $("#fptitle").html("null Panel"); + $("#closefpanel").prop("title", "Close null panel."); + CURRENTFPANEL = null; + if(typeof cb === 'function'){ + cb(); + } + }); +} + +function sizeFPDiv(){//set inner div height to fix overflow + $("#fpcontdiv").outerHeight($("#fpaneldiv").height() - $("#fptitlediv").outerHeight()); +} + +function panelbtn(panel){ + if($("#fpaneldiv").is(":visible")){//if panel is visible + difClose = CURRENTFPANEL != panel;//set difclose to if CURRENTPANEL is the same one attatched to the button we're clicking + closeFPanel(function(){//closem panel + if(difClose){//if + panel.popMenu(panel.data);//pop da panel + } + }); + }else{//else + panel.popMenu(panel.data);//pop that bitch son + } +} + +//---base panel--- +function fpmenu(title, elm, data, ocall){//fpmenu constructor + this.title = title;//title of menu + this.elm = elm;//elements to insert (good for simple menus) + this.data = data;//menu data (not used for all menus) + this.ocall = function ocall(){};//function to call upon menu opening (used for more advanced menus) +} + +fpmenu.prototype.popMenu = function(idata){//POP goes the weasal! + this.data = idata//set data + $("#fpcontdiv").empty();//empty content div + $("#fptitle").html(this.title + " Panel");//set panel tittle + $("#closefpanel").prop("title", "Close " + this.title + " panel.");//set close button hover text + $("#fpcontdiv").append(this.elm);//append element array + this.ocall(this.data);//run open function + CURRENTFPANEL = this; + $("#fpaneldiv").show("slide", 250, function() {sizeFPDiv()});//show panel and correct size once open +} + +//---fpanel poll--- +var fpoll = new fpmenu("Poll");//create new panel fpoll + +fpoll.elm = [//fpoll element array + $("").prop("id","polltitle").html("Null Poll Title")//poll title +] + +fpoll.ocall = function(data){//fpoll open call function + $("#polltitle").html("Poll: " + data.title);//set poll title + if(hasPermission("pollctl")) {//if ur allowed to fuck wit da poll + $("").addClass("btn btn-danger btn-sm pull-right").text("End Poll")//add end poll button + .prop("id","endpollbtn")//set id + .appendTo("#fpcontdiv")//append + .click(function() {//click event + socket.emit("closePoll")//endem poll + }); + } + + for(var i = 0; i < data.options.length; i++) {//fer all the options in the poll + (function(i) { + var callback = function () {//create callback function + socket.emit("vote", {//send vote + option: i//use current option + }); + $("#fpcontdiv").find(".option button").each(function() {//find currently selected button + $(this).removeClass("active");//unselect it + $(this).parent().removeClass("option-selected"); + }); + $(this).addClass("active");//set current option as actively selected + $(this).parent().addClass("option-selected"); + } + $("").addClass("btn btn-default btn-sm").text(data.options[i])//add button + .prependTo($("").addClass("option").html('' + data.counts[i] + "")//set cont labels + .appendTo("#fpcontdiv"))//append them to div + .click(callback);//add click event to callback function + })(i); + } +} + +fpoll.updatePoll = function(data){//updatem poll + var poll = $("#pollwrap .active"); + var i = 0; + $("#fpcontdiv").find(".option p").each(function() {//for every option + $(this).html(data.counts[i]);//correct count labels + i++;//increment counter + }); +} + +fpoll.closePoll = function(data){//close poll + tmpttl = $("#polltitle").html();//grab poll title + $("#polltitle").html(tmpttl + " (Poll Closed)");//add closed label + $("#pollopenbtn").hide("blinds");//hide poll button + + $("#fpcontdiv").find(".option button").each(function() {//disable poll buttons + $(this).prop("disabled", true); + }); + + $("#fpcontdiv").find(".btn-danger").each(function() {//remove end poll button + $(this).remove() + }); +} + +//---emote panel--- +var fpemote = new fpmenu("Emote");//create fpemote new fpanel obj + +fpemote.isAlpha = true;//isAlpha to true because this emote panel is a fucking chad + +fpemote.ocall = function(data){//fpemote open function + let symask = /["!#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g;//symbol mask + + $("").prop("action","javascript:void(0)").prop("id","emotecont").append([//top inputs + $("").prop("placeholder","Search Emotes").prop("type","text").prop("id", "esearchbar").addClass("form-control").keyup(function(ev){//emote search bar + fpemote.searchEmote($("#esearchbar").val());//search for emotes when key as users finger lifts up + }), + $("").prop("id","anumspan").append([//alphanumspan + $("").prop("id","emotealphabox").prop("type", "checkbox").prop("checked", fpemote.isAlpha).click(function(){//alphanum sort checkbox + fpemote.alphaPop($("#emotealphabox").prop("checked"));//pop alphanum sort + }), + $("").prop("for", "emotealphabox").addClass("glyphicon glyphicon-sort-by-alphabet")//alphanum sort label + ]) + ]).appendTo("#fpcontdiv");//add search bar, adding this in elm causes strange behavior + + $("").addClass("emotecontdiv").appendTo("#fpcontdiv");//add emote container div, creating this in elm causes obnoxious behaviour + + fpemote.alpha = window.CHANNEL.emotes.slice(0);//create second emote array + fpemote.alpha.sort((a, b) => a.name.replace(symask, '').toLowerCase().localeCompare(b.name.replace(symask, '').toLowerCase()));//sort it by alphabetical + + + earray = fpemote.isAlpha ? fpemote.alpha : window.CHANNEL.emotes//use the alphanum sorted array if alphanum sort is enabled + + earray.forEach(function(value){//for every emote + fpemote.popEmote(value);//poulate emotes + }); +} + +fpemote.popEmote = function(emote){ + $("").addClass("emotediv").append([//add new div for every emote + $("").prop("id","emspan").append($("").prop("src", emote.image)),//insert emote thumbnails + $("").html(emote.name),//insert emote name labels + ]).click(function(){//find current emote and add onclick function + chatpaste(emote.name);//paste emote name + closeFPanel();//close fpanel + }).appendTo(".emotecontdiv");//append to emote container div +} + +fpemote.searchEmote = function(sstring){ + i = 0; + $(".emotecontdiv").empty(); + earray = fpemote.isAlpha ? fpemote.alpha : window.CHANNEL.emotes + earray.forEach(function(value){ + if(value.name.toLowerCase().includes(sstring.toLowerCase()) || (sstring == null || sstring == "")){ + i++; + fpemote.popEmote(value); + } + }); + + if(i <= 2){ + $(".emotecontdiv").prop("style", "grid-template-columns: auto"); + }else{ + $(".emotecontdiv").prop("style", ""); + } +} + +fpemote.alphaPop = function(setalpha){ + $(".emotecontdiv").empty(); + if(setalpha == null){ + fpemote.isAlpha = !fpemote.isAlpha; + }else{ + fpemote.isAlpha = setalpha + } + earray = fpemote.isAlpha ? fpemote.alpha : window.CHANNEL.emotes + if($("#esearchbar").val() != ""){ + fpemote.searchEmote($("#esearchbar").val()); + }else{ + earray.forEach(function(value){//for every emote + fpemote.popEmote(value);//poulate emotes + }); + } +} + +//---Quick Settings Panel--- +var fpset = new fpmenu("Quick Settings"); + +fpset.ocall = function(){ + $("#fpcontdiv").append(spanel = $("").prop("id","fpsetdiv")); + + spanel.append([ + $("").html("General Preferences"), + + $("").append( + $("").prop("for","qs-theme").html("Theme: "), + $("").prop("id","qs-theme").addClass("qs-form").change(function() { + USEROPTS.theme = $("#qs-theme").val(); + processOpts(); + }), + ), + + $("").html("Playback Preferences"), + + $("").html("Video Orientation: "), + $("").prop("id","flipx-video").addClass("qsbtn glyphicon glyphicon-resize-horizontal pointer").prop("title", "Flip Player Horizontally").attr("onclick",'javascript:$("#ytapiplayer").toggleClass("mirx")'), + $("").prop("id","flipy-video").addClass("qsbtn glyphicon glyphicon-resize-vertical pointer").prop("title", "Flip Player Vertically").attr("onclick",'javascript:$("#ytapiplayer").toggleClass("miry")'), + + $("").append( + $("").prop("for","qs-orient-buttons").html("Video Orientation Buttons on Titlebar: "), + $("").prop("id","qs-orient-buttons").prop("type","checkbox").addClass("qs-form").change(function() { + USEROPTS.show_orientation = $("#qs-orient-buttons").prop("checked"); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-sync-threshold").html("Sync Threshold(seconds): "), + $("").prop("id","qs-sync-threshold").prop("type","text").addClass("qs-form"), + $("").addClass("btn btn-primary btn-ln").text("Save").prop("type","button").prop("id","qs-sync-threshold-save").click(function() { + + USEROPTS.sync_accuracy = parseFloat($("#qs-sync-threshold").val()) || 2; + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-yt-source").html("Youtube Source: "), + $("").prop("id","qs-yt-source").addClass("qs-form"), + ), + + + $("").html("Chat Preferences"), + $("").append( + $("").prop("for","qs-legacy-emote").html("Use legacy cytube emote menu: "), + $("").prop("id","qs-legacy-emote").prop("type","checkbox").addClass("qs-form").change(function() { + USEROPTS.legacy_emote = $("#qs-legacy-emote").prop("checked"); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-blink-title").html("Blink page title on new messages: "), + $("").prop("id","qs-blink-title").addClass("qs-form").change(function() { + USEROPTS.blink_title = $("#qs-blink-title").val(); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-boop").html("Beep on new message: "), + $("").prop("id","qs-boop").addClass("qs-form").change(function() { + USEROPTS.boop = $("#qs-boop").val(); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-notifications").html("Browser Notification on new message: "), + $("").prop("id","qs-notifications").addClass("qs-form").change(function() { + USEROPTS.notifications = $("#qs-notifications").val(); + processOpts(); + }), + ), + + + ]) + fpset.loadSettings(); +} + +fpset.loadSettings = function(){ + $("#us-theme").children().clone().appendTo($("#qs-theme")); + $("#qs-theme").val(USEROPTS.theme); + $("#qs-orient-buttons").prop("checked", USEROPTS.show_orientation); + $("#qs-sync-threshold").val(USEROPTS.sync_accuracy); + $("#qs-legacy-emote").prop("checked", USEROPTS.legacy_emote); + $("#us-blink-title").children().clone().appendTo($("#qs-blink-title")); + $("#qs-blink-title").val(USEROPTS.blink_title); + $("#us-ping-sound").children().clone().appendTo($("#qs-boop")); + $("#qs-boop").val(USEROPTS.boop); + $("#us-notifications").children().clone().appendTo($("#qs-notifications")); + $("#qs-notifications").val(USEROPTS.notifications); + +} diff --git a/www/js/fschd.js b/www/js/fschd.js index 65c08bed..4b2e7357 100644 --- a/www/js/fschd.js +++ b/www/js/fschd.js @@ -1,3 +1,19 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, +*/ + var startTimes = [[],[]]//UID's, StartTimes var activeItem = 0;//active UID; var rptime = 0;//reference playlist time @@ -14,12 +30,14 @@ function dispSTimes(){//update sTimes for(var i = 0; i < startTimes[0].length; i++){//for every item startTime var rdif = startTimes[1][i] - rptime; st.setTime(rltime + (rdif * 1000)); - ltimeString = "airdate: " + st.toLocaleTimeString() + " " + st.toLocaleDateString() + ""; - ptimeString = "(pref time) " + formatTime(startTimes[1][i]);// create ptimeString + ltimeString = "airdate: " + st.toLocaleTimeString() + " " + st.toLocaleDateString(); + //ptimeString = ' (pref time) ' + formatTime(startTimes[1][i] + '');// create ptimeString + ptimeString = '(pref time) ' + formatTime(startTimes[1][i]);// create ptimeString - if(document.getElementsByClassName("pluid-" + startTimes[0][i])[0] != null || document.getElementsByClassName("pluid-" + startTimes[0][i])[0] != undefined){//if current item isnt null or undefined + if($(".pluid-" + startTimes[0][i]) != null || $(".pluid-" + startTimes[0][i]) != undefined){//if current item isnt null or undefined - document.getElementsByClassName("pluid-" + startTimes[0][i])[0].getElementsByClassName("qe_sTime")[0].innerHTML = ltimeString + ptimeString;// set current item qe_sTime innerHTML to ptimeString + $(".pluid-" + startTimes[0][i]).children(".qe_sTime").text(ltimeString);// set current item qe_sTime innerHTML to ptimeString + $(".pluid-" + startTimes[0][i]).children(".qe_pref").text(ptimeString);// set current item qe_sTime innerHTML to ptimeString } } @@ -36,3 +54,39 @@ function calcRefs(){ PLAYER.getTime(function(seek){ctime = seek}); rltime = ld.getTime() - (ctime * 1000); } + +function expandItem(itm){ + itm.find(".btn-group").show("blind"); + itm.find(".qe_time").show("blind"); + itm.find(".qe_pref").show("blind"); +} + +function collapseItem(itm){ + itm.find(".btn-group").hide("blind"); + itm.find(".qe_time").hide("blind"); + itm.find(".qe_pref").hide("blind"); +} + +function toggleItem(itm){ + itm.find(".btn-group").toggle("blind"); + itm.find(".qe_time").toggle("blind"); + itm.find(".qe_pref").toggle("blind"); +} + +function collapseItems(){ + $.each($("#queue").find("li"), function(i,el){ + collapseItem($(el)); + }) +} + +function expandItems(){ + $.each($("#queue").find("li"), function(i,el){ + expandItem($(el)); + }) +} + +function toggleItems(){ + $.each($("#queue").find("li"), function(i,el){ + toggleItem($(el)); + }) +} diff --git a/www/js/player.js b/www/js/player.js index 58bce3b1..c92cab96 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -10,6 +10,9 @@ } this.setMediaProperties(data); this.paused = false; + this.latched = true; + this.seeklatch = false; + this.lastSTime = 0; } Player.prototype.load = function(data) { @@ -30,6 +33,31 @@ return this.paused = true; }; + Player.prototype.latch = function() { + if (!this.latched) { + return this.latched = true; + } + }; + + Player.prototype.unlatch = function() { + if (!this.seeklatch) { + if (this.latched) { + $("#latchvid").show(); + } + return this.latched = false; + } else { + return this.seeklatch = false; + } + }; + + Player.prototype.latchseek = function() { + return this.seeklatch = true; + }; + + Player.prototype.getLatch = function(cb) { + return cb(this.latched); + }; + Player.prototype.seekTo = function(time) {}; Player.prototype.setVolume = function(volume) {}; @@ -64,6 +92,7 @@ VimeoPlayer.prototype.load = function(data) { this.setMediaProperties(data); + this.latched = true; return waitUntilDefined(window, 'Vimeo', (function(_this) { return function() { var video; @@ -88,6 +117,8 @@ _this.paused = true; if (CLIENT.leader) { return sendVideoUpdate(); + } else { + return _this.unlatch(); } }); _this.vimeo.on('play', function() { @@ -96,6 +127,11 @@ return sendVideoUpdate(); } }); + _this.vimeo.on('seeked', function() { + if (!CLIENT.leader) { + return _this.unlatch(); + } + }); _this.play(); return _this.setVolume(VOLUME); }; @@ -294,6 +330,7 @@ this.setMediaProperties(data); this.initialVolumeSet = false; this.playbackReadyCb = null; + this.latched = true; waitUntilDefined(window, 'DM', (function(_this) { return function() { var params, quality; @@ -324,6 +361,8 @@ _this.paused = true; if (CLIENT.leader) { return sendVideoUpdate(); + } else { + return _this.unlatch(); } }); _this.dm.addEventListener('playing', function() { @@ -336,6 +375,11 @@ return _this.initialVolumeSet = true; } }); + _this.dm.addEventListener('seeked', function() { + if (!CLIENT.leader) { + return _this.unlatch(); + } + }); _this.dm.addEventListener('video_end', function() { return _this.dmReady = false; }); @@ -557,22 +601,6 @@ }).appendTo(video); }); } - if (data.meta.textTracks) { - data.meta.textTracks.forEach(function(track) { - var label; - label = track.name; - attrs = { - src: track.url, - kind: 'subtitles', - type: track.type, - label: label - }; - if ((track["default"] != null) && track["default"]) { - attrs["default"] = ''; - } - return $('').attr(attrs).appendTo(video); - }); - } _this.player = videojs(video[0], { autoplay: _this.sources[0].type !== 'application/dash+xml', controls: true, @@ -614,6 +642,8 @@ _this.paused = true; if (CLIENT.leader) { return sendVideoUpdate(); + } else { + return _this.unlatch(); } }); _this.player.on('play', function() { @@ -623,7 +653,10 @@ } }); _this.player.on('seeked', function() { - return $('.vjs-waiting').removeClass('vjs-waiting'); + $('.vjs-waiting').removeClass('vjs-waiting'); + if (!CLIENT.leader) { + return _this.unlatch(); + } }); return setTimeout(function() { return $('#ytapiplayer .vjs-subtitles-button .vjs-menu-item').each(function(i, elem) { @@ -646,8 +679,26 @@ VideoJSPlayer.prototype.load = function(data) { this.setMediaProperties(data); + this.latched = true; this.destroy(); - return this.loadPlayer(data); + this.loadPlayer(data); + return this.setTracks(data); + }; + + VideoJSPlayer.prototype.setTracks = function(data) { + if (data.meta.textTracks) { + return data.meta.textTracks.forEach(function(track) { + var label; + label = track.name; + return $('').attr({ + src: track.url, + kind: 'subtitles', + type: track.type, + label: label, + "default": true + }).prependTo("video"); + }); + } }; VideoJSPlayer.prototype.play = function() { @@ -660,7 +711,10 @@ VideoJSPlayer.prototype.pause = function() { this.paused = true; if (this.player && this.player.readyState() > 0) { - return this.player.pause(); + this.player.pause(); + if (!CLIENT.leader) { + return this.unlatch(); + } } }; @@ -1624,8 +1678,11 @@ window.handleMediaUpdate = function(data) { var PLAYER, waiting; PLAYER = window.PLAYER; - handleWindowResize(); dispSTimes(); + PLAYER.lastSTime = data.currentTime; + if (!PLAYER.latched) { + return; + } if (typeof PLAYER.mediaLength === 'number' && PLAYER.mediaLength > 0 && data.currentTime > PLAYER.mediaLength) { return; } @@ -1639,6 +1696,7 @@ } if (waiting) { PLAYER.seekTo(0); + PLAYER.latchseek(); if (PLAYER instanceof YouTubePlayer) { PLAYER.pauseSeekRaceCondition = true; } else { @@ -1653,6 +1711,7 @@ } if (data.paused && !PLAYER.paused) { PLAYER.seekTo(data.currentTime); + PLAYER.latchseek(); PLAYER.pause(); } else if (PLAYER.paused && !data.paused) { PLAYER.play(); @@ -1666,12 +1725,14 @@ accuracy = Math.max(accuracy, 5); } if (diff > accuracy) { - return PLAYER.seekTo(time); + PLAYER.seekTo(time); + return PLAYER.latchseek(); } else if (diff < -accuracy) { if (!(PLAYER instanceof DailymotionPlayer)) { time += 1; } - return PLAYER.seekTo(time); + PLAYER.seekTo(time); + return PLAYER.latchseek(); } }); }; diff --git a/www/js/tabcomplete.js b/www/js/tabcomplete.js index acbfd4d4..0809508e 100644 --- a/www/js/tabcomplete.js +++ b/www/js/tabcomplete.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + CyTube.tabCompleteMethods = {}; // Bash-style completion diff --git a/www/js/theme.js b/www/js/theme.js index e0690124..909f30f8 100644 --- a/www/js/theme.js +++ b/www/js/theme.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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 () { var c = document.cookie.split(";").map(function (s) { return s.trim(); diff --git a/www/js/ui.js b/www/js/ui.js index 94331b71..c2d6e0c8 100644 --- a/www/js/ui.js +++ b/www/js/ui.js @@ -1,3 +1,41 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ /* window focus/blur */ CyTube.ui.onPageFocus = function () { FOCUSED = true; @@ -16,7 +54,7 @@ $(".modal").focus(CyTube.ui.onPageFocus); $("#togglemotd").click(function () { var hidden = $("#motdwrap")[0].style.display === "none"; - $("#motdwrap").toggle(); + $("#motdwrap").toggle("blind"); if (hidden) { $("#togglemotd").find(".glyphicon-plus") .removeClass("glyphicon-plus") @@ -37,13 +75,13 @@ $("#modflair").click(function () { m.removeClass("label-success"); if (SUPERADMIN) { USEROPTS.adminhat = true; - m.addClass("label-danger"); + m.addClass("label-admin"); } else { m.addClass("label-default"); } - } else if (m.hasClass("label-danger")) { + } else if (m.hasClass("label-admin")) { USEROPTS.adminhat = false; - m.removeClass("label-danger") + m.removeClass("label-admin") .addClass("label-default"); } else { USEROPTS.modhat = true; @@ -183,7 +221,7 @@ function callChat(){ if(msg.trim()) { var meta = {}; if (USEROPTS.adminhat && CLIENT.rank >= 255) { - msg = "/a " + msg; + msg = "!a " + msg; } else if (USEROPTS.modhat && CLIENT.rank >= Rank.Moderator) { meta.modflair = CLIENT.rank; } @@ -329,6 +367,14 @@ $("#mediarefresh").click(function() { socket.emit("playerReady"); }); +$("#latchvid").click(function() { + PLAYER.latch(); + PLAYER.play(); + PLAYER.latchseek() + PLAYER.seekTo(PLAYER.lastSTime); + $("#latchvid").hide(); +}); + /* playlist controls */ $("#queue").sortable({ @@ -406,6 +452,7 @@ function queue(pos, src) { var duration = undefined; var title = undefined; + var subtitle = ""; if (data.type === "fi") { if (data.id.match(/^http:/)) { Callbacks.queueFail({ @@ -436,6 +483,7 @@ function queue(pos, src) { // Raw files allow title overrides since the ffprobe tag data // is not always correct. title = $("#addfromurl-title-val").val(); + subtitle = $("#addfromurl-subtitle-val").val(); } if (data.id == null || data.type == null) { @@ -451,7 +499,8 @@ function queue(pos, src) { duration: duration, title: title, temp: addTemp, - link: link + link: link, + subtitle: subtitle }); } }); @@ -500,26 +549,45 @@ $("#mediaurl").keyup(function(ev) { } catch (error) { } - if (editTitle) { + if (editTitle) {//Add title and subtitles fieldS var title = $("#addfromurl-title"); - if (title.length === 0) { - title = $("") - .attr("id", "addfromurl-title") - .appendTo($("#addfromurl")); - $("").text("Title (optional; for raw files only)") - .appendTo(title); - $("").addClass("form-control") - .attr("type", "text") + var subtitle = $("#addfromurl-subtitle"); + + if (title.length === 0) {//if there is no title set + title = $("")//create title div + .attr("id", "addfromurl-title")//title div attr + .insertAfter($("#addfromurl").find(".input-group"));//insert after URL bar + + + $("").addClass("form-control")//create title field + .attr("type", "text")//the attributes .attr("id", "addfromurl-title-val") + .attr("placeholder", "Alternate Title") + .attr("style", "display: none; width: 100%;") .keydown(function (ev) { if (ev.keyCode === 13) { queue("end", "url"); } }) - .appendTo($("#addfromurl-title")); + .appendTo($("#addfromurl-title")).show("blind");//append and show + + $("").addClass("form-control")//create title field + .attr("type", "text")//the attributes + .attr("id", "addfromurl-subtitle-val") + .attr("placeholder", "Alternate Subtitle Track") + .attr("style", "display: none; width: 100%;") + .keydown(function (ev) { + if (ev.keyCode === 13) { + queue("end", "url"); + } + }) + .appendTo($("#addfromurl-title")).show("blind");//append and show + + } } else { - $("#addfromurl-title").remove(); + $("#addfromurl-title").hide("blind"); + $("#addfromurl-title").remove();//otherwise remove } } }); @@ -539,6 +607,27 @@ $("#voteskip").click(function() { $("#voteskip").attr("disabled", true); }); +$("#blindItems").click(function(){ + $("#blindItems").toggleClass("glyphicon-resize-small"); + $("#blindItems").toggleClass("glyphicon-resize-full"); + $("#blindItems").prop("title", + ($("#blindItems").prop("title") == "Collapse All Items") ? "Expand All Items" : "Collapse All Items" + ) + toggleItems(); +}); + +$("#hideplaylist").click(function(){ + $("#rightcontrols").hide("blind"); + $("#playlistrow").hide("blind"); + $("#showplaylist").show(""); +}); + +$("#showplaylist").click(function(){ + $("#rightcontrols").show("blind"); + $("#playlistrow").show("blind"); + $("#showplaylist").hide(""); +}); + $("#getplaylist").click(function() { var callback = function(data) { var idx = socket.listeners("errorMsg").indexOf(errCallback); @@ -912,6 +1001,7 @@ EMOTELISTMODAL.find(".emotelist-alphabetical").change(function () { }); EMOTELISTMODAL.find(".emotelist-alphabetical").prop("checked", USEROPTS.emotelist_sort); + $("#fullscreenbtn").click(function () { var elem = document.querySelector("#videowrap .embed-responsive"); // this shit is why frontend web development sucks @@ -962,4 +1052,3 @@ $("#resize-video-smaller").click(function () { console.error(error); } }); - diff --git a/www/js/util.js b/www/js/util.js index 4336a9c0..63a18f89 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1,4 +1,42 @@ - function makeAlert(title, text, klass, textOnly) { +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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 makeAlert(title, text, klass, textOnly) { if(!klass) { klass = "alert-info"; } @@ -211,6 +249,60 @@ function addUserDropdown(entry) { var btngroup = $("").addClass("btn-group-vertical").appendTo(menu); + /* give/remove leader (moderator+ only) */ + if (hasPermission("leaderctl")) { + var ldr = $("").addClass("btn btn-xs btn-default") + .appendTo(btngroup); + if(leader) { + ldr.text("Remove Leader"); + ldr.click(function () { + socket.emit("assignLeader", { + name: "" + }); + }); + } else { + ldr.text("Give Leader"); + ldr.click(function () { + socket.emit("assignLeader", { + name: name + }); + }); + } + } + + /* pm button */ + if (name !== CLIENT.name) { + var pm = $("").addClass("btn btn-xs btn-default") + .text("Private Message") + .appendTo(btngroup) + .click(function () { + initPm(name).find(".panel-heading").click(); + menu.hide(); + }); + } + + /* mention button */ + var pm = $("").addClass("btn btn-xs btn-default") + .text("Mention") + .appendTo(btngroup) + .click(function () { + chatpaste(name); + menu.hide(); + }); + + /* toke invide button */ + var pm = $("").addClass("btn btn-xs btn-default") + .text("Toke" + (name !== CLIENT.name ? " With" : "")) + .appendTo(btngroup) + .click(function () { + if (name !== CLIENT.name) { + chatsmack(" !toke up " + name); + }else{ + chatsmack(" !toke up fuckers"); + } + menu.hide(); + }); + /* ignore button */ if (name !== CLIENT.name) { var ignore = $("").addClass("btn btn-xs btn-default") @@ -236,55 +328,6 @@ function addUserDropdown(entry) { } } - /* pm button */ - if (name !== CLIENT.name) { - var pm = $("").addClass("btn btn-xs btn-default") - .text("Private Message") - .appendTo(btngroup) - .click(function () { - initPm(name).find(".panel-heading").click(); - menu.hide(); - }); - } - - /* give/remove leader (moderator+ only) */ - if (hasPermission("leaderctl")) { - var ldr = $("").addClass("btn btn-xs btn-default") - .appendTo(btngroup); - if(leader) { - ldr.text("Remove Leader"); - ldr.click(function () { - socket.emit("assignLeader", { - name: "" - }); - }); - } else { - ldr.text("Give Leader"); - ldr.click(function () { - socket.emit("assignLeader", { - name: name - }); - }); - } - } - - /* kick button */ - if(hasPermission("kick")) { - $("").addClass("btn btn-xs btn-default") - .text("Kick") - .click(function () { - var reason = prompt("Enter kick reason (optional)"); - if (reason === null) { - return; - } - socket.emit("chatMsg", { - msg: "/kick " + name + " " + reason, - meta: {} - }); - }) - .appendTo(btngroup); - } - /* mute buttons */ if (hasPermission("mute")) { var mute = $("").addClass("btn btn-xs btn-default") @@ -322,6 +365,23 @@ function addUserDropdown(entry) { } } + /* kick button */ + if(hasPermission("kick")) { + $("").addClass("btn btn-xs btn-default") + .text("Kick") + .click(function () { + var reason = prompt("Enter kick reason (optional)"); + if (reason === null) { + return; + } + socket.emit("chatMsg", { + msg: "/kick " + name + " " + reason, + meta: {} + }); + }) + .appendTo(btngroup); + } + /* ban buttons */ if(hasPermission("ban")) { $("").addClass("btn btn-xs btn-default") @@ -466,7 +526,6 @@ function scrollQueue() { function makeQueueEntry(item, addbtns) { var video = item.media; var li = $(""); - console.log(item); li.addClass("queue_entry"); li.addClass("pluid-" + item.uid); li.data("uid", item.uid); @@ -482,11 +541,12 @@ function makeQueueEntry(item, addbtns) { .text(video.title) .attr("href", formatURL(video)) .attr("target", "_blank"); + var sTime = $("").addClass("qe_sTime").appendTo(li); + $("").appendTo(li); + var pref = $("").addClass("qe_pref").appendTo(li); + pref.text(" \n"); var time = $("").addClass("qe_time").appendTo(li); time.text("airtime: " + video.duration); - $("").appendTo(li); - var sTime = $("").addClass("qe_sTime").appendTo(li); - sTime.text(" \n"); //dispSTimes(); var clear = $("").addClass("qe_clear").appendTo(li); if(item.temp) { @@ -522,6 +582,8 @@ function makeSearchEntry(video) { function addQueueButtons(li) { li.find(".btn-group").remove(); var menu = $("").addClass("btn-group").appendTo(li); + var atime = li.find(".qe_time"); + var ptime = li.find(".qe_pref"); // Play if(hasPermission("playlistjump")) { $("").addClass("btn btn-xs btn-default qbtn-play") @@ -573,8 +635,6 @@ function addQueueButtons(li) { // I DON'T LIKE CHANGE if(USEROPTS.qbtn_idontlikechange) { - menu.addClass("pull-left"); - menu.detach().prependTo(li); menu.find(".btn").each(function() { // Clear icon var icon = $(this).find(".glyphicon"); @@ -584,17 +644,24 @@ function addQueueButtons(li) { menu.find(".qbtn-play").addClass("btn-success"); menu.find(".qbtn-delete").addClass("btn-danger"); } - else if(menu.find(".btn").length != 0) { + if(menu.find(".btn").length != 0) { li.unbind("contextmenu"); li.contextmenu(function(ev) { // Allow shift+click to open context menu // (Chrome workaround, works by default on Firefox) if (ev.shiftKey) return true; ev.preventDefault(); - if(menu.css("display") == "none") - menu.show("blind"); - else - menu.hide("blind"); + if(menu.css("display") == "none"){ + //menu.show("blind"); + //atime.show("blind"); + //ptime.show("blind"); + expandItem(li); + }else{ + //menu.hide("blind"); + //atime.hide("blind"); + //ptime.hide("blind"); + collapseItem(li); + } return false; }); } @@ -646,15 +713,16 @@ function showUserOptions() { $("#us-hidevideo").prop("checked", USEROPTS.hidevid); $("#us-playlistbuttons").prop("checked", USEROPTS.qbtn_hide); $("#us-oldbtns").prop("checked", USEROPTS.qbtn_idontlikechange); + $("#us-video-orientation").prop("checked", USEROPTS.show_orientation); $("#us-default-quality").val(USEROPTS.default_quality || "auto"); $("#us-chat-timestamp").prop("checked", USEROPTS.show_timestamps); $("#us-sort-rank").prop("checked", USEROPTS.sort_rank); $("#us-sort-afk").prop("checked", USEROPTS.sort_afk); + $("#us-legacy-emote").prop("checked", USEROPTS.legacy_emote); $("#us-blink-title").val(USEROPTS.blink_title); $("#us-ping-sound").val(USEROPTS.boop); $("#us-notifications").val(USEROPTS.notifications); - $("#us-sendbtn").prop("checked", USEROPTS.chatbtn); $("#us-no-emotes").prop("checked", USEROPTS.no_emotes); $("#us-strip-image").prop("checked", USEROPTS.strip_image); $("#us-chat-tab-method").val(USEROPTS.chat_tab_method); @@ -683,15 +751,16 @@ function saveUserOptions() { USEROPTS.hidevid = $("#us-hidevideo").prop("checked"); USEROPTS.qbtn_hide = $("#us-playlistbuttons").prop("checked"); USEROPTS.qbtn_idontlikechange = $("#us-oldbtns").prop("checked"); + USEROPTS.show_orientation = $("#us-video-orientation").prop("checked"); USEROPTS.default_quality = $("#us-default-quality").val(); USEROPTS.show_timestamps = $("#us-chat-timestamp").prop("checked"); USEROPTS.sort_rank = $("#us-sort-rank").prop("checked"); USEROPTS.sort_afk = $("#us-sort-afk").prop("checked"); + USEROPTS.legacy_emote = $("#us-legacy-emote").prop("checked"); USEROPTS.blink_title = $("#us-blink-title").val(); USEROPTS.boop = $("#us-ping-sound").val(); USEROPTS.notifications = $("#us-notifications").val(); - USEROPTS.chatbtn = $("#us-sendbtn").prop("checked"); USEROPTS.no_emotes = $("#us-no-emotes").prop("checked"); USEROPTS.strip_image = $("#us-strip-image").prop("checked"); USEROPTS.chat_tab_method = $("#us-chat-tab-method").val(); @@ -700,7 +769,10 @@ function saveUserOptions() { USEROPTS.modhat = $("#us-modflair").prop("checked"); USEROPTS.show_shadowchat = $("#us-shadowchat").prop("checked"); } + processOpts(); +} +function processOpts(){ storeOpts(); applyOpts(); } @@ -727,7 +799,7 @@ function applyOpts() { fixWeirdButtonAlignmentIssue(); } - switch (USEROPTS.layout) { + /*switch (USEROPTS.layout) { case "synchtube-fluid": fluidLayout(); case "synchtube": @@ -740,8 +812,20 @@ function applyOpts() { hdLayout(); break; default: - compactLayout(); + fluidLayout(); + //compactLayout();Actual fucking cancer layout. Even for 2014. What the actual shit, this was a barely acceptable layout in 05' break; + }*/ + fluidLayout();//Temporary measure until the other layouts are removed for good. + + $("#emoteopenbtn").attr("onclick", (USEROPTS.legacy_emote ? "javascript:EMOTELISTMODAL.modal()" : "javascript:panelbtn(fpemote)")); + + if(USEROPTS.show_orientation){ + $("#flipx-video").show(); + $("#flipy-video").show(); + }else{ + $("#flipx-video").hide(); + $("#flipy-video").hide(); } if(USEROPTS.hidevid) { @@ -1014,6 +1098,8 @@ function handlePermissionChange() { setVisible("#chatline", CLIENT.rank >= 0); setVisible("#queue", hasPermission("seeplaylist")); setVisible("#plmeta", hasPermission("seeplaylist")); + setVisible("#rightcontrols", hasPermission("seeplaylist")); + setVisible("#playlistrow", hasPermission("seeplaylist")); $("#getplaylist").attr("disabled", !hasPermission("seeplaylist")); setVisible("#showplaylistmanager", hasPermission("seeplaylist")); @@ -1133,6 +1219,11 @@ function addLibraryButtons(li, item, source) { var id = item.id; var type = item.type; + + //item.subtitle = (!subtitle) ? item.subtitle : ""; + if(item.subtitle == null || item.subtitle != undefined){ + item.subtitle = ""; + } if(hasPermission("playlistadd")) { if(hasPermission("playlistnext")) { @@ -1143,6 +1234,7 @@ function addLibraryButtons(li, item, source) { id: id, pos: "next", type: type, + subtitle: item.subtitle, temp: $(".add-temp").prop("checked") }); }) @@ -1155,6 +1247,7 @@ function addLibraryButtons(li, item, source) { id: id, pos: "end", type: type, + subtitle: item.subtitle, temp: $(".add-temp").prop("checked") }); }) @@ -1530,10 +1623,10 @@ function formatChatMessage(data, last) { addClassToNameAndTimestamp: data.msgclass }; } - //break if toke command - if(data.msg.charAt() === '!'){ + //break if toke command [DEPRICATED] No longer in use as chozobot is no longer used + /*if(data.msg.charAt() === '!'){ return; - } + }*/ // Phase 1: Determine whether to show the username or not var skip = data.username === last.name; if(data.meta.addClass === "server-whisper") @@ -1549,15 +1642,9 @@ function formatChatMessage(data, last) { last.name = data.username; var div = $(""); - /* drink is a special case because the entire container gets the class, not - just the message */ - if (data.meta.addClass === "drink") { - div.addClass("drink"); - data.meta.addClass = ""; - } // Add timestamps (unless disabled) - if (USEROPTS.show_timestamps && data.meta.modflair != 4) { + if (USEROPTS.show_timestamps && data.meta.addClass != "shout") { var time = $("").addClass("timestamp").appendTo(div); var timestamp = new Date(data.time).toTimeString().split(" ")[0]; time.text("["+timestamp+"] "); @@ -1571,9 +1658,18 @@ function formatChatMessage(data, last) { if (!skip) { name.appendTo(div); } - assignColors(data.username); + if(!data.meta.addClass === "shout"){ + assignColors(data.username); + } + console.log(data.meta.addClass); if (data.meta.superadminflair) { - $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "> ").appendTo(name); + + $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + + (data.meta.addClass === "shout" ? '' : ">") + ).appendTo(name); + if(data.meta.addClass === "shout"){ + $("").appendTo(name); + } name.addClass("label") .addClass(data.meta.superadminflair.labelclass); $("").addClass(data.meta.superadminflair.icon) @@ -1581,12 +1677,16 @@ function formatChatMessage(data, last) { .css("margin-right", "3px") .prependTo(name); }else if (data.meta.modflair) { - if(data.meta.modflair === 4){ + if(data.meta.addClass === "shout"){ + console.log('asdasd'); $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "\n").appendTo(name); }else{ $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "> ").appendTo(name); } name.addClass(getNameColor(data.meta.modflair)); + }else if(data.meta.addClass === "shout"){ + console.log('asdasd'); + $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "\n").appendTo(name); }else{ $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").attr('id',getColor(data.username)).text(data.username + "> ").appendTo(name); } @@ -1627,8 +1727,10 @@ function addChatMessage(data) { // a message, it highlights messages from that user var safeUsername = data.username.replace(/[^\w-]/g, '\\$'); div.addClass("chat-msg-" + safeUsername); - if(data.meta.modflair === 4){ - div.attr("id", "botmsg"); + console.log(data.meta.modflair); + if(data.meta.addClass === "shout"){//legacy tokebot junk + div.addClass("shout"); + } div.appendTo(msgBuf); div.mouseover(function() { @@ -1648,7 +1750,7 @@ function addChatMessage(data) { var newMessageDiv = $("#newmessages-indicator"); if (!newMessageDiv.length) { newMessageDiv = $("").attr("id", "newmessages-indicator") - .insertBefore($("#chatline")); + .insertBefore($("#chatbar")); var bgHack = $("").attr("id", "newmessages-indicator-bghack") .appendTo(newMessageDiv); @@ -1926,6 +2028,7 @@ function handleWindowResize() { $("#chatheader").outerHeight(); $("#messagebuffer").outerHeight(h); $("#userlist").outerHeight(h); + $("#sidepanel").outerHeight(h); return; } else { handleVideoResize(); @@ -1946,7 +2049,8 @@ function handleVideoResize() { var height = responsiveFrame.outerHeight() - $("#chatline").outerHeight() - 2; $("#messagebuffer").height(height); $("#userlist").height(height); - + $("#fpaneldiv").height(height); + sizeFPDiv(); $("#ytapiplayer").attr("height", VHEIGHT = responsiveFrame.outerHeight()); $("#ytapiplayer").attr("width", VWIDTH = responsiveFrame.outerWidth()); }; diff --git a/www/js/videojs-dash.js b/www/js/videojs-dash.js index 2f0aaeb1..1c8de2b5 100644 --- a/www/js/videojs-dash.js +++ b/www/js/videojs-dash.js @@ -104,7 +104,7 @@ function setupAudioTracks(player, tech) { 'use strict'; exports.__esModule = true; -exports['default'] = setupTextTracks; +//exports['default'] = setupTextTracks; var _dashjs = (typeof window !== "undefined" ? window['dashjs'] : typeof global !== "undefined" ? global['dashjs'] : null); @@ -210,7 +210,7 @@ function attachDashTextTracksToVideojs(player, tech, tracks) { } // Update dash when videojs's selected text track changes. - player.textTracks().on('change', updateActiveDashTextTrack); + //player.textTracks().on('change', updateActiveDashTextTrack); // Cleanup event listeners whenever we start loading a new source player.one('loadstart', function () { @@ -445,7 +445,7 @@ var Html5DashJS = function () { _setupAudioTracks2['default'].call(null, this.player, tech); // Setup text tracks - _setupTextTracks2['default'].call(null, this.player, tech, options); + //_setupTextTracks2['default'].call(null, this.player, tech, options); // Attach the source with any protection data this.mediaPlayer_.setProtectionData(this.keySystemOptions_); @@ -633,4 +633,4 @@ _video2['default'].Html5DashJS = Html5DashJS; exports['default'] = Html5DashJS; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./setup-audio-tracks":1,"./setup-text-tracks":2,"global/window":3}]},{},[4])(4) -}); \ No newline at end of file +});
wmode=transparent
[white]
[yellow]
[orange]
[pink]
[red]
[lime]
[green]
[aqua]
[blue]
[violet]
[brown]
[silver]
[black]
[bw]
[b]
[i]
[u]
[s]
[d]
[f]
[sp]
[/]
!'+cmd+'
!say
!mow
/'+cmd+'
'+text1+''+text3+'
'+text2+''+text3+'
' + data.counts[i] + "
").html(emote.name),//insert emote name labels + ]).click(function(){//find current emote and add onclick function + chatpaste(emote.name);//paste emote name + closeFPanel();//close fpanel + }).appendTo(".emotecontdiv");//append to emote container div +} + +fpemote.searchEmote = function(sstring){ + i = 0; + $(".emotecontdiv").empty(); + earray = fpemote.isAlpha ? fpemote.alpha : window.CHANNEL.emotes + earray.forEach(function(value){ + if(value.name.toLowerCase().includes(sstring.toLowerCase()) || (sstring == null || sstring == "")){ + i++; + fpemote.popEmote(value); + } + }); + + if(i <= 2){ + $(".emotecontdiv").prop("style", "grid-template-columns: auto"); + }else{ + $(".emotecontdiv").prop("style", ""); + } +} + +fpemote.alphaPop = function(setalpha){ + $(".emotecontdiv").empty(); + if(setalpha == null){ + fpemote.isAlpha = !fpemote.isAlpha; + }else{ + fpemote.isAlpha = setalpha + } + earray = fpemote.isAlpha ? fpemote.alpha : window.CHANNEL.emotes + if($("#esearchbar").val() != ""){ + fpemote.searchEmote($("#esearchbar").val()); + }else{ + earray.forEach(function(value){//for every emote + fpemote.popEmote(value);//poulate emotes + }); + } +} + +//---Quick Settings Panel--- +var fpset = new fpmenu("Quick Settings"); + +fpset.ocall = function(){ + $("#fpcontdiv").append(spanel = $("
").html("Video Orientation: "), + $("").prop("id","flipx-video").addClass("qsbtn glyphicon glyphicon-resize-horizontal pointer").prop("title", "Flip Player Horizontally").attr("onclick",'javascript:$("#ytapiplayer").toggleClass("mirx")'), + $("").prop("id","flipy-video").addClass("qsbtn glyphicon glyphicon-resize-vertical pointer").prop("title", "Flip Player Vertically").attr("onclick",'javascript:$("#ytapiplayer").toggleClass("miry")'), + + $("").append( + $("").prop("for","qs-orient-buttons").html("Video Orientation Buttons on Titlebar: "), + $("").prop("id","qs-orient-buttons").prop("type","checkbox").addClass("qs-form").change(function() { + USEROPTS.show_orientation = $("#qs-orient-buttons").prop("checked"); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-sync-threshold").html("Sync Threshold(seconds): "), + $("").prop("id","qs-sync-threshold").prop("type","text").addClass("qs-form"), + $("").addClass("btn btn-primary btn-ln").text("Save").prop("type","button").prop("id","qs-sync-threshold-save").click(function() { + + USEROPTS.sync_accuracy = parseFloat($("#qs-sync-threshold").val()) || 2; + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-yt-source").html("Youtube Source: "), + $("").prop("id","qs-yt-source").addClass("qs-form"), + ), + + + $("").html("Chat Preferences"), + $("").append( + $("").prop("for","qs-legacy-emote").html("Use legacy cytube emote menu: "), + $("").prop("id","qs-legacy-emote").prop("type","checkbox").addClass("qs-form").change(function() { + USEROPTS.legacy_emote = $("#qs-legacy-emote").prop("checked"); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-blink-title").html("Blink page title on new messages: "), + $("").prop("id","qs-blink-title").addClass("qs-form").change(function() { + USEROPTS.blink_title = $("#qs-blink-title").val(); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-boop").html("Beep on new message: "), + $("").prop("id","qs-boop").addClass("qs-form").change(function() { + USEROPTS.boop = $("#qs-boop").val(); + processOpts(); + }), + ), + + $("").append( + $("").prop("for","qs-notifications").html("Browser Notification on new message: "), + $("").prop("id","qs-notifications").addClass("qs-form").change(function() { + USEROPTS.notifications = $("#qs-notifications").val(); + processOpts(); + }), + ), + + + ]) + fpset.loadSettings(); +} + +fpset.loadSettings = function(){ + $("#us-theme").children().clone().appendTo($("#qs-theme")); + $("#qs-theme").val(USEROPTS.theme); + $("#qs-orient-buttons").prop("checked", USEROPTS.show_orientation); + $("#qs-sync-threshold").val(USEROPTS.sync_accuracy); + $("#qs-legacy-emote").prop("checked", USEROPTS.legacy_emote); + $("#us-blink-title").children().clone().appendTo($("#qs-blink-title")); + $("#qs-blink-title").val(USEROPTS.blink_title); + $("#us-ping-sound").children().clone().appendTo($("#qs-boop")); + $("#qs-boop").val(USEROPTS.boop); + $("#us-notifications").children().clone().appendTo($("#qs-notifications")); + $("#qs-notifications").val(USEROPTS.notifications); + +} diff --git a/www/js/fschd.js b/www/js/fschd.js index 65c08bed..4b2e7357 100644 --- a/www/js/fschd.js +++ b/www/js/fschd.js @@ -1,3 +1,19 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, +*/ + var startTimes = [[],[]]//UID's, StartTimes var activeItem = 0;//active UID; var rptime = 0;//reference playlist time @@ -14,12 +30,14 @@ function dispSTimes(){//update sTimes for(var i = 0; i < startTimes[0].length; i++){//for every item startTime var rdif = startTimes[1][i] - rptime; st.setTime(rltime + (rdif * 1000)); - ltimeString = "airdate: " + st.toLocaleTimeString() + " " + st.toLocaleDateString() + ""; - ptimeString = "(pref time) " + formatTime(startTimes[1][i]);// create ptimeString + ltimeString = "airdate: " + st.toLocaleTimeString() + " " + st.toLocaleDateString(); + //ptimeString = ' (pref time) ' + formatTime(startTimes[1][i] + '');// create ptimeString + ptimeString = '(pref time) ' + formatTime(startTimes[1][i]);// create ptimeString - if(document.getElementsByClassName("pluid-" + startTimes[0][i])[0] != null || document.getElementsByClassName("pluid-" + startTimes[0][i])[0] != undefined){//if current item isnt null or undefined + if($(".pluid-" + startTimes[0][i]) != null || $(".pluid-" + startTimes[0][i]) != undefined){//if current item isnt null or undefined - document.getElementsByClassName("pluid-" + startTimes[0][i])[0].getElementsByClassName("qe_sTime")[0].innerHTML = ltimeString + ptimeString;// set current item qe_sTime innerHTML to ptimeString + $(".pluid-" + startTimes[0][i]).children(".qe_sTime").text(ltimeString);// set current item qe_sTime innerHTML to ptimeString + $(".pluid-" + startTimes[0][i]).children(".qe_pref").text(ptimeString);// set current item qe_sTime innerHTML to ptimeString } } @@ -36,3 +54,39 @@ function calcRefs(){ PLAYER.getTime(function(seek){ctime = seek}); rltime = ld.getTime() - (ctime * 1000); } + +function expandItem(itm){ + itm.find(".btn-group").show("blind"); + itm.find(".qe_time").show("blind"); + itm.find(".qe_pref").show("blind"); +} + +function collapseItem(itm){ + itm.find(".btn-group").hide("blind"); + itm.find(".qe_time").hide("blind"); + itm.find(".qe_pref").hide("blind"); +} + +function toggleItem(itm){ + itm.find(".btn-group").toggle("blind"); + itm.find(".qe_time").toggle("blind"); + itm.find(".qe_pref").toggle("blind"); +} + +function collapseItems(){ + $.each($("#queue").find("li"), function(i,el){ + collapseItem($(el)); + }) +} + +function expandItems(){ + $.each($("#queue").find("li"), function(i,el){ + expandItem($(el)); + }) +} + +function toggleItems(){ + $.each($("#queue").find("li"), function(i,el){ + toggleItem($(el)); + }) +} diff --git a/www/js/player.js b/www/js/player.js index 58bce3b1..c92cab96 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -10,6 +10,9 @@ } this.setMediaProperties(data); this.paused = false; + this.latched = true; + this.seeklatch = false; + this.lastSTime = 0; } Player.prototype.load = function(data) { @@ -30,6 +33,31 @@ return this.paused = true; }; + Player.prototype.latch = function() { + if (!this.latched) { + return this.latched = true; + } + }; + + Player.prototype.unlatch = function() { + if (!this.seeklatch) { + if (this.latched) { + $("#latchvid").show(); + } + return this.latched = false; + } else { + return this.seeklatch = false; + } + }; + + Player.prototype.latchseek = function() { + return this.seeklatch = true; + }; + + Player.prototype.getLatch = function(cb) { + return cb(this.latched); + }; + Player.prototype.seekTo = function(time) {}; Player.prototype.setVolume = function(volume) {}; @@ -64,6 +92,7 @@ VimeoPlayer.prototype.load = function(data) { this.setMediaProperties(data); + this.latched = true; return waitUntilDefined(window, 'Vimeo', (function(_this) { return function() { var video; @@ -88,6 +117,8 @@ _this.paused = true; if (CLIENT.leader) { return sendVideoUpdate(); + } else { + return _this.unlatch(); } }); _this.vimeo.on('play', function() { @@ -96,6 +127,11 @@ return sendVideoUpdate(); } }); + _this.vimeo.on('seeked', function() { + if (!CLIENT.leader) { + return _this.unlatch(); + } + }); _this.play(); return _this.setVolume(VOLUME); }; @@ -294,6 +330,7 @@ this.setMediaProperties(data); this.initialVolumeSet = false; this.playbackReadyCb = null; + this.latched = true; waitUntilDefined(window, 'DM', (function(_this) { return function() { var params, quality; @@ -324,6 +361,8 @@ _this.paused = true; if (CLIENT.leader) { return sendVideoUpdate(); + } else { + return _this.unlatch(); } }); _this.dm.addEventListener('playing', function() { @@ -336,6 +375,11 @@ return _this.initialVolumeSet = true; } }); + _this.dm.addEventListener('seeked', function() { + if (!CLIENT.leader) { + return _this.unlatch(); + } + }); _this.dm.addEventListener('video_end', function() { return _this.dmReady = false; }); @@ -557,22 +601,6 @@ }).appendTo(video); }); } - if (data.meta.textTracks) { - data.meta.textTracks.forEach(function(track) { - var label; - label = track.name; - attrs = { - src: track.url, - kind: 'subtitles', - type: track.type, - label: label - }; - if ((track["default"] != null) && track["default"]) { - attrs["default"] = ''; - } - return $('').attr(attrs).appendTo(video); - }); - } _this.player = videojs(video[0], { autoplay: _this.sources[0].type !== 'application/dash+xml', controls: true, @@ -614,6 +642,8 @@ _this.paused = true; if (CLIENT.leader) { return sendVideoUpdate(); + } else { + return _this.unlatch(); } }); _this.player.on('play', function() { @@ -623,7 +653,10 @@ } }); _this.player.on('seeked', function() { - return $('.vjs-waiting').removeClass('vjs-waiting'); + $('.vjs-waiting').removeClass('vjs-waiting'); + if (!CLIENT.leader) { + return _this.unlatch(); + } }); return setTimeout(function() { return $('#ytapiplayer .vjs-subtitles-button .vjs-menu-item').each(function(i, elem) { @@ -646,8 +679,26 @@ VideoJSPlayer.prototype.load = function(data) { this.setMediaProperties(data); + this.latched = true; this.destroy(); - return this.loadPlayer(data); + this.loadPlayer(data); + return this.setTracks(data); + }; + + VideoJSPlayer.prototype.setTracks = function(data) { + if (data.meta.textTracks) { + return data.meta.textTracks.forEach(function(track) { + var label; + label = track.name; + return $('').attr({ + src: track.url, + kind: 'subtitles', + type: track.type, + label: label, + "default": true + }).prependTo("video"); + }); + } }; VideoJSPlayer.prototype.play = function() { @@ -660,7 +711,10 @@ VideoJSPlayer.prototype.pause = function() { this.paused = true; if (this.player && this.player.readyState() > 0) { - return this.player.pause(); + this.player.pause(); + if (!CLIENT.leader) { + return this.unlatch(); + } } }; @@ -1624,8 +1678,11 @@ window.handleMediaUpdate = function(data) { var PLAYER, waiting; PLAYER = window.PLAYER; - handleWindowResize(); dispSTimes(); + PLAYER.lastSTime = data.currentTime; + if (!PLAYER.latched) { + return; + } if (typeof PLAYER.mediaLength === 'number' && PLAYER.mediaLength > 0 && data.currentTime > PLAYER.mediaLength) { return; } @@ -1639,6 +1696,7 @@ } if (waiting) { PLAYER.seekTo(0); + PLAYER.latchseek(); if (PLAYER instanceof YouTubePlayer) { PLAYER.pauseSeekRaceCondition = true; } else { @@ -1653,6 +1711,7 @@ } if (data.paused && !PLAYER.paused) { PLAYER.seekTo(data.currentTime); + PLAYER.latchseek(); PLAYER.pause(); } else if (PLAYER.paused && !data.paused) { PLAYER.play(); @@ -1666,12 +1725,14 @@ accuracy = Math.max(accuracy, 5); } if (diff > accuracy) { - return PLAYER.seekTo(time); + PLAYER.seekTo(time); + return PLAYER.latchseek(); } else if (diff < -accuracy) { if (!(PLAYER instanceof DailymotionPlayer)) { time += 1; } - return PLAYER.seekTo(time); + PLAYER.seekTo(time); + return PLAYER.latchseek(); } }); }; diff --git a/www/js/tabcomplete.js b/www/js/tabcomplete.js index acbfd4d4..0809508e 100644 --- a/www/js/tabcomplete.js +++ b/www/js/tabcomplete.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ + CyTube.tabCompleteMethods = {}; // Bash-style completion diff --git a/www/js/theme.js b/www/js/theme.js index e0690124..909f30f8 100644 --- a/www/js/theme.js +++ b/www/js/theme.js @@ -1,3 +1,42 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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 () { var c = document.cookie.split(";").map(function (s) { return s.trim(); diff --git a/www/js/ui.js b/www/js/ui.js index 94331b71..c2d6e0c8 100644 --- a/www/js/ui.js +++ b/www/js/ui.js @@ -1,3 +1,41 @@ +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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. +*/ /* window focus/blur */ CyTube.ui.onPageFocus = function () { FOCUSED = true; @@ -16,7 +54,7 @@ $(".modal").focus(CyTube.ui.onPageFocus); $("#togglemotd").click(function () { var hidden = $("#motdwrap")[0].style.display === "none"; - $("#motdwrap").toggle(); + $("#motdwrap").toggle("blind"); if (hidden) { $("#togglemotd").find(".glyphicon-plus") .removeClass("glyphicon-plus") @@ -37,13 +75,13 @@ $("#modflair").click(function () { m.removeClass("label-success"); if (SUPERADMIN) { USEROPTS.adminhat = true; - m.addClass("label-danger"); + m.addClass("label-admin"); } else { m.addClass("label-default"); } - } else if (m.hasClass("label-danger")) { + } else if (m.hasClass("label-admin")) { USEROPTS.adminhat = false; - m.removeClass("label-danger") + m.removeClass("label-admin") .addClass("label-default"); } else { USEROPTS.modhat = true; @@ -183,7 +221,7 @@ function callChat(){ if(msg.trim()) { var meta = {}; if (USEROPTS.adminhat && CLIENT.rank >= 255) { - msg = "/a " + msg; + msg = "!a " + msg; } else if (USEROPTS.modhat && CLIENT.rank >= Rank.Moderator) { meta.modflair = CLIENT.rank; } @@ -329,6 +367,14 @@ $("#mediarefresh").click(function() { socket.emit("playerReady"); }); +$("#latchvid").click(function() { + PLAYER.latch(); + PLAYER.play(); + PLAYER.latchseek() + PLAYER.seekTo(PLAYER.lastSTime); + $("#latchvid").hide(); +}); + /* playlist controls */ $("#queue").sortable({ @@ -406,6 +452,7 @@ function queue(pos, src) { var duration = undefined; var title = undefined; + var subtitle = ""; if (data.type === "fi") { if (data.id.match(/^http:/)) { Callbacks.queueFail({ @@ -436,6 +483,7 @@ function queue(pos, src) { // Raw files allow title overrides since the ffprobe tag data // is not always correct. title = $("#addfromurl-title-val").val(); + subtitle = $("#addfromurl-subtitle-val").val(); } if (data.id == null || data.type == null) { @@ -451,7 +499,8 @@ function queue(pos, src) { duration: duration, title: title, temp: addTemp, - link: link + link: link, + subtitle: subtitle }); } }); @@ -500,26 +549,45 @@ $("#mediaurl").keyup(function(ev) { } catch (error) { } - if (editTitle) { + if (editTitle) {//Add title and subtitles fieldS var title = $("#addfromurl-title"); - if (title.length === 0) { - title = $("") - .attr("id", "addfromurl-title") - .appendTo($("#addfromurl")); - $("").text("Title (optional; for raw files only)") - .appendTo(title); - $("").addClass("form-control") - .attr("type", "text") + var subtitle = $("#addfromurl-subtitle"); + + if (title.length === 0) {//if there is no title set + title = $("")//create title div + .attr("id", "addfromurl-title")//title div attr + .insertAfter($("#addfromurl").find(".input-group"));//insert after URL bar + + + $("").addClass("form-control")//create title field + .attr("type", "text")//the attributes .attr("id", "addfromurl-title-val") + .attr("placeholder", "Alternate Title") + .attr("style", "display: none; width: 100%;") .keydown(function (ev) { if (ev.keyCode === 13) { queue("end", "url"); } }) - .appendTo($("#addfromurl-title")); + .appendTo($("#addfromurl-title")).show("blind");//append and show + + $("").addClass("form-control")//create title field + .attr("type", "text")//the attributes + .attr("id", "addfromurl-subtitle-val") + .attr("placeholder", "Alternate Subtitle Track") + .attr("style", "display: none; width: 100%;") + .keydown(function (ev) { + if (ev.keyCode === 13) { + queue("end", "url"); + } + }) + .appendTo($("#addfromurl-title")).show("blind");//append and show + + } } else { - $("#addfromurl-title").remove(); + $("#addfromurl-title").hide("blind"); + $("#addfromurl-title").remove();//otherwise remove } } }); @@ -539,6 +607,27 @@ $("#voteskip").click(function() { $("#voteskip").attr("disabled", true); }); +$("#blindItems").click(function(){ + $("#blindItems").toggleClass("glyphicon-resize-small"); + $("#blindItems").toggleClass("glyphicon-resize-full"); + $("#blindItems").prop("title", + ($("#blindItems").prop("title") == "Collapse All Items") ? "Expand All Items" : "Collapse All Items" + ) + toggleItems(); +}); + +$("#hideplaylist").click(function(){ + $("#rightcontrols").hide("blind"); + $("#playlistrow").hide("blind"); + $("#showplaylist").show(""); +}); + +$("#showplaylist").click(function(){ + $("#rightcontrols").show("blind"); + $("#playlistrow").show("blind"); + $("#showplaylist").hide(""); +}); + $("#getplaylist").click(function() { var callback = function(data) { var idx = socket.listeners("errorMsg").indexOf(errCallback); @@ -912,6 +1001,7 @@ EMOTELISTMODAL.find(".emotelist-alphabetical").change(function () { }); EMOTELISTMODAL.find(".emotelist-alphabetical").prop("checked", USEROPTS.emotelist_sort); + $("#fullscreenbtn").click(function () { var elem = document.querySelector("#videowrap .embed-responsive"); // this shit is why frontend web development sucks @@ -962,4 +1052,3 @@ $("#resize-video-smaller").click(function () { console.error(error); } }); - diff --git a/www/js/util.js b/www/js/util.js index 4336a9c0..63a18f89 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1,4 +1,42 @@ - function makeAlert(title, text, klass, textOnly) { +/* +fore.st 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. + +fore.st 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 fore.st. If not, see < http://www.gnu.org/licenses/ >. +(C) 2022- by rainbownapkin, + +Original cytube license: +MIT License + +Copyright (c) 2013-2022 Calvin Montgomery + +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 makeAlert(title, text, klass, textOnly) { if(!klass) { klass = "alert-info"; } @@ -211,6 +249,60 @@ function addUserDropdown(entry) { var btngroup = $("").addClass("btn-group-vertical").appendTo(menu); + /* give/remove leader (moderator+ only) */ + if (hasPermission("leaderctl")) { + var ldr = $("").addClass("btn btn-xs btn-default") + .appendTo(btngroup); + if(leader) { + ldr.text("Remove Leader"); + ldr.click(function () { + socket.emit("assignLeader", { + name: "" + }); + }); + } else { + ldr.text("Give Leader"); + ldr.click(function () { + socket.emit("assignLeader", { + name: name + }); + }); + } + } + + /* pm button */ + if (name !== CLIENT.name) { + var pm = $("").addClass("btn btn-xs btn-default") + .text("Private Message") + .appendTo(btngroup) + .click(function () { + initPm(name).find(".panel-heading").click(); + menu.hide(); + }); + } + + /* mention button */ + var pm = $("").addClass("btn btn-xs btn-default") + .text("Mention") + .appendTo(btngroup) + .click(function () { + chatpaste(name); + menu.hide(); + }); + + /* toke invide button */ + var pm = $("").addClass("btn btn-xs btn-default") + .text("Toke" + (name !== CLIENT.name ? " With" : "")) + .appendTo(btngroup) + .click(function () { + if (name !== CLIENT.name) { + chatsmack(" !toke up " + name); + }else{ + chatsmack(" !toke up fuckers"); + } + menu.hide(); + }); + /* ignore button */ if (name !== CLIENT.name) { var ignore = $("").addClass("btn btn-xs btn-default") @@ -236,55 +328,6 @@ function addUserDropdown(entry) { } } - /* pm button */ - if (name !== CLIENT.name) { - var pm = $("").addClass("btn btn-xs btn-default") - .text("Private Message") - .appendTo(btngroup) - .click(function () { - initPm(name).find(".panel-heading").click(); - menu.hide(); - }); - } - - /* give/remove leader (moderator+ only) */ - if (hasPermission("leaderctl")) { - var ldr = $("").addClass("btn btn-xs btn-default") - .appendTo(btngroup); - if(leader) { - ldr.text("Remove Leader"); - ldr.click(function () { - socket.emit("assignLeader", { - name: "" - }); - }); - } else { - ldr.text("Give Leader"); - ldr.click(function () { - socket.emit("assignLeader", { - name: name - }); - }); - } - } - - /* kick button */ - if(hasPermission("kick")) { - $("").addClass("btn btn-xs btn-default") - .text("Kick") - .click(function () { - var reason = prompt("Enter kick reason (optional)"); - if (reason === null) { - return; - } - socket.emit("chatMsg", { - msg: "/kick " + name + " " + reason, - meta: {} - }); - }) - .appendTo(btngroup); - } - /* mute buttons */ if (hasPermission("mute")) { var mute = $("").addClass("btn btn-xs btn-default") @@ -322,6 +365,23 @@ function addUserDropdown(entry) { } } + /* kick button */ + if(hasPermission("kick")) { + $("").addClass("btn btn-xs btn-default") + .text("Kick") + .click(function () { + var reason = prompt("Enter kick reason (optional)"); + if (reason === null) { + return; + } + socket.emit("chatMsg", { + msg: "/kick " + name + " " + reason, + meta: {} + }); + }) + .appendTo(btngroup); + } + /* ban buttons */ if(hasPermission("ban")) { $("").addClass("btn btn-xs btn-default") @@ -466,7 +526,6 @@ function scrollQueue() { function makeQueueEntry(item, addbtns) { var video = item.media; var li = $(""); - console.log(item); li.addClass("queue_entry"); li.addClass("pluid-" + item.uid); li.data("uid", item.uid); @@ -482,11 +541,12 @@ function makeQueueEntry(item, addbtns) { .text(video.title) .attr("href", formatURL(video)) .attr("target", "_blank"); + var sTime = $("").addClass("qe_sTime").appendTo(li); + $("").appendTo(li); + var pref = $("").addClass("qe_pref").appendTo(li); + pref.text(" \n"); var time = $("").addClass("qe_time").appendTo(li); time.text("airtime: " + video.duration); - $("").appendTo(li); - var sTime = $("").addClass("qe_sTime").appendTo(li); - sTime.text(" \n"); //dispSTimes(); var clear = $("").addClass("qe_clear").appendTo(li); if(item.temp) { @@ -522,6 +582,8 @@ function makeSearchEntry(video) { function addQueueButtons(li) { li.find(".btn-group").remove(); var menu = $("").addClass("btn-group").appendTo(li); + var atime = li.find(".qe_time"); + var ptime = li.find(".qe_pref"); // Play if(hasPermission("playlistjump")) { $("").addClass("btn btn-xs btn-default qbtn-play") @@ -573,8 +635,6 @@ function addQueueButtons(li) { // I DON'T LIKE CHANGE if(USEROPTS.qbtn_idontlikechange) { - menu.addClass("pull-left"); - menu.detach().prependTo(li); menu.find(".btn").each(function() { // Clear icon var icon = $(this).find(".glyphicon"); @@ -584,17 +644,24 @@ function addQueueButtons(li) { menu.find(".qbtn-play").addClass("btn-success"); menu.find(".qbtn-delete").addClass("btn-danger"); } - else if(menu.find(".btn").length != 0) { + if(menu.find(".btn").length != 0) { li.unbind("contextmenu"); li.contextmenu(function(ev) { // Allow shift+click to open context menu // (Chrome workaround, works by default on Firefox) if (ev.shiftKey) return true; ev.preventDefault(); - if(menu.css("display") == "none") - menu.show("blind"); - else - menu.hide("blind"); + if(menu.css("display") == "none"){ + //menu.show("blind"); + //atime.show("blind"); + //ptime.show("blind"); + expandItem(li); + }else{ + //menu.hide("blind"); + //atime.hide("blind"); + //ptime.hide("blind"); + collapseItem(li); + } return false; }); } @@ -646,15 +713,16 @@ function showUserOptions() { $("#us-hidevideo").prop("checked", USEROPTS.hidevid); $("#us-playlistbuttons").prop("checked", USEROPTS.qbtn_hide); $("#us-oldbtns").prop("checked", USEROPTS.qbtn_idontlikechange); + $("#us-video-orientation").prop("checked", USEROPTS.show_orientation); $("#us-default-quality").val(USEROPTS.default_quality || "auto"); $("#us-chat-timestamp").prop("checked", USEROPTS.show_timestamps); $("#us-sort-rank").prop("checked", USEROPTS.sort_rank); $("#us-sort-afk").prop("checked", USEROPTS.sort_afk); + $("#us-legacy-emote").prop("checked", USEROPTS.legacy_emote); $("#us-blink-title").val(USEROPTS.blink_title); $("#us-ping-sound").val(USEROPTS.boop); $("#us-notifications").val(USEROPTS.notifications); - $("#us-sendbtn").prop("checked", USEROPTS.chatbtn); $("#us-no-emotes").prop("checked", USEROPTS.no_emotes); $("#us-strip-image").prop("checked", USEROPTS.strip_image); $("#us-chat-tab-method").val(USEROPTS.chat_tab_method); @@ -683,15 +751,16 @@ function saveUserOptions() { USEROPTS.hidevid = $("#us-hidevideo").prop("checked"); USEROPTS.qbtn_hide = $("#us-playlistbuttons").prop("checked"); USEROPTS.qbtn_idontlikechange = $("#us-oldbtns").prop("checked"); + USEROPTS.show_orientation = $("#us-video-orientation").prop("checked"); USEROPTS.default_quality = $("#us-default-quality").val(); USEROPTS.show_timestamps = $("#us-chat-timestamp").prop("checked"); USEROPTS.sort_rank = $("#us-sort-rank").prop("checked"); USEROPTS.sort_afk = $("#us-sort-afk").prop("checked"); + USEROPTS.legacy_emote = $("#us-legacy-emote").prop("checked"); USEROPTS.blink_title = $("#us-blink-title").val(); USEROPTS.boop = $("#us-ping-sound").val(); USEROPTS.notifications = $("#us-notifications").val(); - USEROPTS.chatbtn = $("#us-sendbtn").prop("checked"); USEROPTS.no_emotes = $("#us-no-emotes").prop("checked"); USEROPTS.strip_image = $("#us-strip-image").prop("checked"); USEROPTS.chat_tab_method = $("#us-chat-tab-method").val(); @@ -700,7 +769,10 @@ function saveUserOptions() { USEROPTS.modhat = $("#us-modflair").prop("checked"); USEROPTS.show_shadowchat = $("#us-shadowchat").prop("checked"); } + processOpts(); +} +function processOpts(){ storeOpts(); applyOpts(); } @@ -727,7 +799,7 @@ function applyOpts() { fixWeirdButtonAlignmentIssue(); } - switch (USEROPTS.layout) { + /*switch (USEROPTS.layout) { case "synchtube-fluid": fluidLayout(); case "synchtube": @@ -740,8 +812,20 @@ function applyOpts() { hdLayout(); break; default: - compactLayout(); + fluidLayout(); + //compactLayout();Actual fucking cancer layout. Even for 2014. What the actual shit, this was a barely acceptable layout in 05' break; + }*/ + fluidLayout();//Temporary measure until the other layouts are removed for good. + + $("#emoteopenbtn").attr("onclick", (USEROPTS.legacy_emote ? "javascript:EMOTELISTMODAL.modal()" : "javascript:panelbtn(fpemote)")); + + if(USEROPTS.show_orientation){ + $("#flipx-video").show(); + $("#flipy-video").show(); + }else{ + $("#flipx-video").hide(); + $("#flipy-video").hide(); } if(USEROPTS.hidevid) { @@ -1014,6 +1098,8 @@ function handlePermissionChange() { setVisible("#chatline", CLIENT.rank >= 0); setVisible("#queue", hasPermission("seeplaylist")); setVisible("#plmeta", hasPermission("seeplaylist")); + setVisible("#rightcontrols", hasPermission("seeplaylist")); + setVisible("#playlistrow", hasPermission("seeplaylist")); $("#getplaylist").attr("disabled", !hasPermission("seeplaylist")); setVisible("#showplaylistmanager", hasPermission("seeplaylist")); @@ -1133,6 +1219,11 @@ function addLibraryButtons(li, item, source) { var id = item.id; var type = item.type; + + //item.subtitle = (!subtitle) ? item.subtitle : ""; + if(item.subtitle == null || item.subtitle != undefined){ + item.subtitle = ""; + } if(hasPermission("playlistadd")) { if(hasPermission("playlistnext")) { @@ -1143,6 +1234,7 @@ function addLibraryButtons(li, item, source) { id: id, pos: "next", type: type, + subtitle: item.subtitle, temp: $(".add-temp").prop("checked") }); }) @@ -1155,6 +1247,7 @@ function addLibraryButtons(li, item, source) { id: id, pos: "end", type: type, + subtitle: item.subtitle, temp: $(".add-temp").prop("checked") }); }) @@ -1530,10 +1623,10 @@ function formatChatMessage(data, last) { addClassToNameAndTimestamp: data.msgclass }; } - //break if toke command - if(data.msg.charAt() === '!'){ + //break if toke command [DEPRICATED] No longer in use as chozobot is no longer used + /*if(data.msg.charAt() === '!'){ return; - } + }*/ // Phase 1: Determine whether to show the username or not var skip = data.username === last.name; if(data.meta.addClass === "server-whisper") @@ -1549,15 +1642,9 @@ function formatChatMessage(data, last) { last.name = data.username; var div = $(""); - /* drink is a special case because the entire container gets the class, not - just the message */ - if (data.meta.addClass === "drink") { - div.addClass("drink"); - data.meta.addClass = ""; - } // Add timestamps (unless disabled) - if (USEROPTS.show_timestamps && data.meta.modflair != 4) { + if (USEROPTS.show_timestamps && data.meta.addClass != "shout") { var time = $("").addClass("timestamp").appendTo(div); var timestamp = new Date(data.time).toTimeString().split(" ")[0]; time.text("["+timestamp+"] "); @@ -1571,9 +1658,18 @@ function formatChatMessage(data, last) { if (!skip) { name.appendTo(div); } - assignColors(data.username); + if(!data.meta.addClass === "shout"){ + assignColors(data.username); + } + console.log(data.meta.addClass); if (data.meta.superadminflair) { - $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "> ").appendTo(name); + + $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + + (data.meta.addClass === "shout" ? '' : ">") + ).appendTo(name); + if(data.meta.addClass === "shout"){ + $("").appendTo(name); + } name.addClass("label") .addClass(data.meta.superadminflair.labelclass); $("").addClass(data.meta.superadminflair.icon) @@ -1581,12 +1677,16 @@ function formatChatMessage(data, last) { .css("margin-right", "3px") .prependTo(name); }else if (data.meta.modflair) { - if(data.meta.modflair === 4){ + if(data.meta.addClass === "shout"){ + console.log('asdasd'); $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "\n").appendTo(name); }else{ $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "> ").appendTo(name); } name.addClass(getNameColor(data.meta.modflair)); + }else if(data.meta.addClass === "shout"){ + console.log('asdasd'); + $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").text(data.username + "\n").appendTo(name); }else{ $("").addClass("username").attr('onclick',"chatpaste('" + data.username + "')").attr('id',getColor(data.username)).text(data.username + "> ").appendTo(name); } @@ -1627,8 +1727,10 @@ function addChatMessage(data) { // a message, it highlights messages from that user var safeUsername = data.username.replace(/[^\w-]/g, '\\$'); div.addClass("chat-msg-" + safeUsername); - if(data.meta.modflair === 4){ - div.attr("id", "botmsg"); + console.log(data.meta.modflair); + if(data.meta.addClass === "shout"){//legacy tokebot junk + div.addClass("shout"); + } div.appendTo(msgBuf); div.mouseover(function() { @@ -1648,7 +1750,7 @@ function addChatMessage(data) { var newMessageDiv = $("#newmessages-indicator"); if (!newMessageDiv.length) { newMessageDiv = $("").attr("id", "newmessages-indicator") - .insertBefore($("#chatline")); + .insertBefore($("#chatbar")); var bgHack = $("").attr("id", "newmessages-indicator-bghack") .appendTo(newMessageDiv); @@ -1926,6 +2028,7 @@ function handleWindowResize() { $("#chatheader").outerHeight(); $("#messagebuffer").outerHeight(h); $("#userlist").outerHeight(h); + $("#sidepanel").outerHeight(h); return; } else { handleVideoResize(); @@ -1946,7 +2049,8 @@ function handleVideoResize() { var height = responsiveFrame.outerHeight() - $("#chatline").outerHeight() - 2; $("#messagebuffer").height(height); $("#userlist").height(height); - + $("#fpaneldiv").height(height); + sizeFPDiv(); $("#ytapiplayer").attr("height", VHEIGHT = responsiveFrame.outerHeight()); $("#ytapiplayer").attr("width", VWIDTH = responsiveFrame.outerWidth()); }; diff --git a/www/js/videojs-dash.js b/www/js/videojs-dash.js index 2f0aaeb1..1c8de2b5 100644 --- a/www/js/videojs-dash.js +++ b/www/js/videojs-dash.js @@ -104,7 +104,7 @@ function setupAudioTracks(player, tech) { 'use strict'; exports.__esModule = true; -exports['default'] = setupTextTracks; +//exports['default'] = setupTextTracks; var _dashjs = (typeof window !== "undefined" ? window['dashjs'] : typeof global !== "undefined" ? global['dashjs'] : null); @@ -210,7 +210,7 @@ function attachDashTextTracksToVideojs(player, tech, tracks) { } // Update dash when videojs's selected text track changes. - player.textTracks().on('change', updateActiveDashTextTrack); + //player.textTracks().on('change', updateActiveDashTextTrack); // Cleanup event listeners whenever we start loading a new source player.one('loadstart', function () { @@ -445,7 +445,7 @@ var Html5DashJS = function () { _setupAudioTracks2['default'].call(null, this.player, tech); // Setup text tracks - _setupTextTracks2['default'].call(null, this.player, tech, options); + //_setupTextTracks2['default'].call(null, this.player, tech, options); // Attach the source with any protection data this.mediaPlayer_.setProtectionData(this.keySystemOptions_); @@ -633,4 +633,4 @@ _video2['default'].Html5DashJS = Html5DashJS; exports['default'] = Html5DashJS; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./setup-audio-tracks":1,"./setup-text-tracks":2,"global/window":3}]},{},[4])(4) -}); \ No newline at end of file +});