Repository: anime-plus/graph Branch: main Commit: 1181950032fc Files: 287 Total size: 739.0 KB Directory structure: gitextract_r4orqg0m/ ├── .editorconfig ├── .gitmodules ├── LICENSE.md ├── README.md ├── achievements.md ├── data/ │ ├── achievement/ │ │ ├── anime-boku-no-pico.json │ │ ├── anime-dementia-psychological.json │ │ ├── anime-dropped-0.json │ │ ├── anime-duration-short.json │ │ ├── anime-episode-long.json │ │ ├── anime-finished.json │ │ ├── anime-franchise-long.json │ │ ├── anime-game.json │ │ ├── anime-gar.json │ │ ├── anime-historical.json │ │ ├── anime-horror-thriller.json │ │ ├── anime-light-novel.json │ │ ├── anime-mahou-shoujo.json │ │ ├── anime-mecha.json │ │ ├── anime-music.json │ │ ├── anime-mystery.json │ │ ├── anime-original.json │ │ ├── anime-pervert-0.json │ │ ├── anime-pervert-1.json │ │ ├── anime-pervert-2.json │ │ ├── anime-pervert-3.json │ │ ├── anime-re.json │ │ ├── anime-release-classic.json │ │ ├── anime-release-old.json │ │ ├── anime-romance.json │ │ ├── anime-school-days.json │ │ ├── anime-score-high.json │ │ ├── anime-score-low.json │ │ ├── anime-score-very-low.json │ │ ├── anime-slice-of-life.json │ │ ├── anime-space.json │ │ ├── anime-sports.json │ │ ├── anime-studio-ghibli.json │ │ ├── anime-time.json │ │ ├── anime-year.json │ │ ├── manga-dropped-0.json │ │ ├── manga-finished.json │ │ ├── manga-horror.json │ │ ├── manga-mahou-shoujo.json │ │ ├── manga-mystery.json │ │ ├── manga-novel.json │ │ ├── manga-pervert-0.json │ │ ├── manga-pervert-1.json │ │ ├── manga-pervert-2.json │ │ ├── manga-pervert-3.json │ │ ├── manga-re.json │ │ ├── manga-release-old.json │ │ ├── manga-romance.json │ │ ├── manga-score-high.json │ │ ├── manga-score-low.json │ │ ├── manga-score-very-low.json │ │ ├── manga-sports.json │ │ ├── manga-time.json │ │ ├── manga-vampire-demons.json │ │ ├── manga-volume-long.json │ │ ├── manga-yaoi-shounen-ai.json │ │ ├── manga-year.json │ │ └── manga-yuri-shoujo-ai.json │ ├── banned-creators.lst │ ├── banned-franchise-coupling.json │ ├── banned-genres.lst │ ├── banned-users.lst │ ├── cache/ │ │ └── .gitignore │ ├── db/ │ │ └── .gitignore │ ├── globals-cache.json │ ├── logs/ │ │ └── .gitignore │ ├── mirror/ │ │ └── .gitignore │ ├── queue-media.lst │ ├── queue-sizes.json │ ├── queue-users-media.lst │ ├── queue-users.lst │ ├── recs-banned-genres.lst │ └── static-recommendations.lst ├── public_html/ │ ├── index.php │ ├── media/ │ │ ├── css/ │ │ │ ├── admin/ │ │ │ │ ├── index.css │ │ │ │ └── login.css │ │ │ ├── core.css │ │ │ ├── glider.css │ │ │ ├── header.css │ │ │ ├── headerless.css │ │ │ ├── icons.css │ │ │ ├── index/ │ │ │ │ ├── about.css │ │ │ │ ├── globals.css │ │ │ │ └── index.css │ │ │ ├── infobox.css │ │ │ ├── menu.css │ │ │ ├── mini-sections.css │ │ │ └── user/ │ │ │ ├── achievements.css │ │ │ ├── entries.css │ │ │ ├── favorites.css │ │ │ ├── history.css │ │ │ ├── list.css │ │ │ ├── profile.css │ │ │ ├── ratings.css │ │ │ └── recommendations.css │ │ └── js/ │ │ ├── glider.js │ │ ├── highcharts-mg.js │ │ ├── index/ │ │ │ └── index.js │ │ ├── jquery.cookie.js │ │ ├── jquery.farbtastic.js │ │ ├── jquery.highcharts.js │ │ ├── jquery.tablesorter.js │ │ ├── misc.js │ │ ├── tooltips.js │ │ └── user/ │ │ ├── achievements.js │ │ ├── entries.js │ │ ├── favorites.js │ │ ├── history.js │ │ ├── list.js │ │ ├── profile.js │ │ ├── ratings.js │ │ └── recommendations.js │ └── robots.txt ├── script/ │ ├── cron-cache.php │ ├── cron-globals.php │ ├── cron-queue-sizes.php │ ├── cron-queue.php │ ├── cron-users.php │ ├── make-db.php │ ├── process.php │ ├── queue-all-media.php │ ├── unnuke-media.php │ └── unnuke-users.php └── src/ ├── .gitignore ├── Cache.php ├── Config.example.php ├── ControllerModules/ │ ├── AbstractControllerModule.php │ ├── AbstractUserControllerModule.php │ ├── AdminControllerIndexModule.php │ ├── AdminControllerLoginModule.php │ ├── AdminControllerLogoutModule.php │ ├── AdminControllerMiscModule.php │ ├── AdminControllerProcessorModule.php │ ├── IndexControllerAboutModule.php │ ├── IndexControllerGlobalsModule.php │ ├── IndexControllerIndexModule.php │ ├── IndexControllerSearchModule.php │ ├── UserControllerAchievementsModule.php │ ├── UserControllerEntriesModule.php │ ├── UserControllerExportModule.php │ ├── UserControllerFavoritesModule.php │ ├── UserControllerHistoryModule.php │ ├── UserControllerListsModule.php │ ├── UserControllerProfileModule.php │ ├── UserControllerQueueAddModule.php │ ├── UserControllerQueuePositionModule.php │ ├── UserControllerRatingsModule.php │ └── UserControllerRecommendationsModule.php ├── Controllers/ │ ├── AbstractController.php │ ├── AdminController.php │ ├── ControllerContext.php │ ├── IndexController.php │ └── UserController.php ├── CronRunner.php ├── Database.php ├── Document.php ├── Downloader.php ├── Enums/ │ ├── AnimeMediaSource.php │ ├── AnimeMediaType.php │ ├── Enum.php │ ├── MangaMediaType.php │ ├── Media.php │ ├── MediaRelation.php │ ├── MediaStatus.php │ ├── MediaType.php │ └── UserListStatus.php ├── ErrorHandler.php ├── Exceptions/ │ ├── BadMediaException.php │ ├── BadProcessorDocumentException.php │ ├── BadProcessorKeyException.php │ ├── DocumentException.php │ ├── DownloadFailureException.php │ ├── InstanceAlreadyRunningException.php │ └── UnimplementedException.php ├── Helpers/ │ ├── BanHelper.php │ ├── BenchmarkHelper.php │ ├── HttpHeadersHelper.php │ ├── ReflectionHelper.php │ ├── TextHelper.php │ ├── UrlHelper.php │ └── WebMediaHelper.php ├── Logger.php ├── ModelUtils/ │ ├── DataSorter.php │ ├── DistributionEvaluator.php │ ├── Distributions/ │ │ ├── AbstractDistribution.php │ │ ├── MediaCreatorDistribution.php │ │ ├── MediaDecadeDistribution.php │ │ ├── MediaGenreDistribution.php │ │ ├── MediaLengthDistribution.php │ │ ├── MediaSourceDistribution.php │ │ ├── MediaTypeDistribution.php │ │ ├── MediaYearDistribution.php │ │ ├── RatingDistribution.php │ │ └── RatingTimeDistribution.php │ └── UserMediaFilter.php ├── Models/ │ ├── Model_Media.php │ ├── Model_MixedUserMedia.php │ └── Model_User.php ├── Processors/ │ ├── AbstractProcessor.php │ ├── AnimeProcessor.php │ ├── MangaProcessor.php │ ├── ProcessingContext.php │ ├── SubProcessors/ │ │ ├── AbstractSubProcessor.php │ │ ├── AnimeSubProcessorBasic.php │ │ ├── AnimeSubProcessorProducers.php │ │ ├── MangaSubProcessorAuthors.php │ │ ├── MangaSubProcessorBasic.php │ │ ├── MediaSubProcessor.php │ │ ├── MediaSubProcessorBasic.php │ │ ├── MediaSubProcessorFranchises.php │ │ ├── MediaSubProcessorGenres.php │ │ ├── MediaSubProcessorRecommendations.php │ │ ├── MediaSubProcessorRelations.php │ │ ├── UserMediaSubProcessor.php │ │ ├── UserMediaSubProcessorBasic.php │ │ ├── UserSubProcessor.php │ │ ├── UserSubProcessorFriends.php │ │ ├── UserSubProcessorHistory.php │ │ ├── UserSubProcessorProfile.php │ │ └── UserSubProcessorUserMedia.php │ ├── UserMediaProcessor.php │ └── UserProcessor.php ├── Queue.php ├── QueueItem.php ├── SingleInstance.php ├── Singleton.php ├── Strings.php ├── Views/ │ ├── View.php │ ├── ViewContext.php │ ├── admin-index.phtml │ ├── admin-login.phtml │ ├── error-403.phtml │ ├── error-404.phtml │ ├── error-user-blocked.phtml │ ├── error-user-enqueued.phtml │ ├── error-user-invalid.phtml │ ├── error-user-not-found.phtml │ ├── error.phtml │ ├── index-about.phtml │ ├── index-globals.phtml │ ├── index-index.phtml │ ├── layout-ajax.phtml │ ├── layout-base.phtml │ ├── layout-headerless.phtml │ ├── layout-json.phtml │ ├── layout-raw.phtml │ ├── layout.phtml │ ├── maintenance.phtml │ ├── user-achievements.phtml │ ├── user-entries-creator.phtml │ ├── user-entries-decade.phtml │ ├── user-entries-franchises.phtml │ ├── user-entries-genre.phtml │ ├── user-entries-length.phtml │ ├── user-entries-mismatches.phtml │ ├── user-entries-ratings.phtml │ ├── user-entries-source.phtml │ ├── user-entries-type.phtml │ ├── user-entries-year.phtml │ ├── user-favorites-creators.phtml │ ├── user-favorites-decades.phtml │ ├── user-favorites-genres.phtml │ ├── user-favorites-sources.phtml │ ├── user-favorites-types.phtml │ ├── user-favorites.phtml │ ├── user-history-daily.phtml │ ├── user-history-monthly.phtml │ ├── user-history.phtml │ ├── user-list.phtml │ ├── user-menu.phtml │ ├── user-profile-basic.phtml │ ├── user-profile-friends.phtml │ ├── user-profile-media-summaries.phtml │ ├── user-profile.phtml │ ├── user-ratings-dist.phtml │ ├── user-ratings-length-dist.phtml │ ├── user-ratings-time-dist.phtml │ ├── user-ratings.phtml │ ├── user-recommendations-missing.phtml │ ├── user-recommendations-new.phtml │ └── user-recommendations.phtml └── core.php ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ root = true [*] charset = utf-8 end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true trim_trailing_whitespace = true ================================================ FILE: .gitmodules ================================================ [submodule "library/redbean"] path = library/redbean url = https://github.com/gabordemooij/redbean.git ================================================ FILE: LICENSE.md ================================================ ### GNU GENERAL PUBLIC LICENSE Version 3, 29 June 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 General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. 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. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. 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 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. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. #### 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's 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 General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands \`show w' and \`show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: README.md ================================================ ## GRAPH [GRAPH](https://anime.plus) is an extension of your myanimelist.net profile, showing you various information about your anime and manga. ### License GRAPH is licensed under the [GNU General Public License version 3](https://www.gnu.org/licenses/gpl-3.0.html) or later. The original source code can be found [here](https://github.com/rr-/malgraph4). ================================================ FILE: achievements.md ================================================ All genre-based achievements have 4 levels. Count-based badges have 12 levels, and score-based have 3 pseudo-levels. There are some other special badges awarded for achieving something big. In total, we have over 150 images that make you want to watch more anime or read more manga. If you're curious about titles that count towards certain badges, read [these files](https://github.com/anime-plus/graph/tree/master/data/achievement), but note that some genre-based achievements have their title list generated automatically from genres on myanimelist.net. These can also have additional titles added manually, to fill up genre holes left by myanimelist.net (e.g. sequel to a historical anime isn't tagged as such). Thresholds for manga/anime genres are 1/2% of titles (up to 10/20) for level 1, 2/4% (up to 20/40) for level 2, 4/8% (up to 40/80) for level 3 and 8/16% (up to 80/160) for the maximum level. ## Anime achievements ### Psychological Awarded for watching Psychological anime.
What exactly did I just watch? You discovered a whole new world of weird. Keep on watching.
My mind is full of fu** Your attempt to wrap your mind around this failed completely.
Is this the real life? It has become hard to distinguish between reality and fiction.
「 Wired Sound 」 You've seen too much. You've transcended humanity and operate on another level now.
  ### GAR Awarded for watching anime with manly men.
So manly I can't breathe Watching all those men made you feel like a little girl... and you liked it.
Testosterone storm Your body has adapted into GAR anime. You can hear your muscles growing.
You are already man Resistance is futile. People are simply no match for you.
Alpha Male You aren't made out of testosterone. Testosterone is made out of you.
  ### Historical Awarded for watching Historical anime.
History class History doesn't have to be boring. There's a lot to learn.
A look at passing time Instead of dreaming of the future, you prefer to look back at the past.
Archaeologist You have learned that sometimes going further just isn't worth it. And yet you try.
Time machine Kids these days are boring. You'd rather watch something heartwarming about siblings catching fireflies.
  ### Horror Awarded for watching Horror anime.
Paranoia fuel It's not like you needed to sleep tonight, anyway.
Too many teeth You know something is following you. You just don't know what.
Extreme phobia You are terrified; you are transfixed.
Flowers of flesh and blood It's far too late, now.
  ### Mahou Shoujo Awarded for watching anime with magical girls.
Signed the contract Became a magical girl and started saving the world, step by step.
Magic is my middle name Transformed into a magical girl: level two. In the name of the Moon, I will punish you!
Too magical to comprehend Watched so many mahou shoujo anime that you sparkle occasionally.
Are you a wizard? All limiters removed. You can call yourself a god, a wizard, or whatever you wish. You set the rules.
  ### Mecha Awarded for watching Mecha anime.
Me? PILOT this thing?! A secret organization wants you to pilot a huge mecha. Can you do it?
Engineer After watching over 40 mecha anime you should be able to build your own mobile suit. Remember not to kill the rest of us.
Mechazawa Having watched over 80 mecha anime, you've probably became a robot already. Nice job, hero.
Pierce the HEAVENS! Do the impossible. See the invisible. ROW ROW FIGHT THE POWAH! You just sang that in your head, didn't you?
  ### Music Awarded for watching Music anime.
Gettin' your keys on! You don't know what you've just listened to, but you like it.
This is even better live Proudly display the badges you have earned in the fancafe.
Dreaming of the city Your musical knowledge has expanded so much you are tempted to make a career out of it.
Hall of Fame The stage is now your second home.
  ### Mystery Awarded for watching Mystery anime.
Growing suspicions It's suspicious because nothing looks suspicious, and if it looks suspicious from the start it's obviously suspicious.
Detective's assistant Now it's your business to know what other people don't know too.
Genius detective You're already a genius at unraveling mysteries... but how is it possible that everywhere you go someone ends up dead?
Golden Truth You can solve any mystery by now. The path to the Golden Land has already been revealed to you.
  ### Romance Awarded for watching Romance anime.
Stalker I'll stalk you so hard you won't notice me for 24 episodes. Why don't you love me yet?
Unrequited love If you won't confess, they'll never know how you feel. But don't bother if you're the best girl - these never win.
Sparkles and bubbles Every time you two get close you feel butterflies in your stomach. Now kiss.
Heart full of love So many romance anime! You surely are an expert in relationships already.
  ### Slice of Life Awarded for watching Slice of Life anime.
Normal high school boy Got started into the furious ride with slice-of-life anime.
cute × ( girls + things ) Didn't get bored of watching cute girls doing cute things. As if that's possible.
Enjoying life Found the equilibrium between boring and interesting.
Prima Undine Awarded Ph.D. degree in slice-of-life-ology. You can teach others how to stay calm and take it easy.
  ### Space Awarded for watching Space anime.
3... 2... 1... Liftoff! You've taken one small step for man, not such a giant leap for mankind.
The Earth looks so small from up here You're finally outside the atmosphere, but there's still a lot to explore.
Interstellar traveler You've traveled vast interstellar distances and seen many galaxies in your way.
Emperor of the Universe You're the ruler of the whole Universe. There's no one with more power than you.
  ### Sports Awarded for watching Sports anime.
Knockout! You've held your own in the ring, time to go all the way.
Get your head in the game The odds are against you, time to get in the zone.
Welcome to the Big Leagues There's no stopping you, just one final push.
Olympian First across the finish line, great job!
  ### Studio Ghibli Awarded for watching 10+ anime from Studio Ghibli.
Memories Once you've seen them, you can never forget them.
  ### Boku no Pico One level. Is it the highest, or the lowest possible level a person can achieve? You decide.
Feels... weird, man Watched Boku no Pico. This is what you get when you follow /a/'s recommendations.
  ### School Days This award is a compensation for the intense, paranoid fear of relationships the anime has left you with.
It's just me and you now Awarded for completing School Days. And they say true romance is dead!
  ### Light Novel Awarded for watching anime with Light Novel source.
First Chapter Some stories need more progress. Yours is one of those.
Searcher Everyone has a role. Which is yours?
The Realization What matters is in the heart. You feel like you can start to see everyone's intentions just by looking at them.
New Self You have acquired the storytelling and character development required to move your world forward.
  ### Original Awarded for watching anime with Original source.
Uncharted waters You have just stumbled across a wonderful, strange new world.
Into the jungle The deeper you go, the less you want out.
Center of the Earth You have forgotten about the outside world; nature has assimilated you. An apple falls - not only have you flowered, you have produced fruit.
Transcendence You have been returned to the primordial ocean. From the highest point in the sky, you can peer into every universe, and lose yourself in an infinity of stories.
  ### Video Games Awarded for watching anime adapted from Games and Visual Novels.
Eternal Spring It all started one fateful morning in April...
At the gates of Eden You're so close to heaven, you can almost feel it.
Banquet of the Golden Witch You've challenged her to a game. There is no turning back, now.
Hacking to the Gate All these games have made of you a wizard; you can crack any code without breaking a sweat.
  ### Franchises Special achievement given upon completing 200+ episodes of 10+ franchises.
Long and hard Ten years ago, you began this journey...
  ### Shorts Awarded for watching anime with episode length of under 15 minutes.
Blink, and you'll miss it It was over before it started, but it managed to tell an enticing tale.
Quickie addict You've been saying "one more" for the past nine hours.
Block by block Just like in a game of tetris, you're building something great out of small pieces.
Short but gold You have learned that some of the greatest things come in small packages.
  ### Long runner Awarded for watching 20+ anime that are 100+ episodes long.
I like them long Didn't fall asleep while watching long anime series. 100 episodes isn't a big deal to you.
  ### Old anime Awarded for watching 20+ old anime (finished in 1980 at most).
VHS master race You overwrote my cartoons with The Karate Kid?! MOOOM!
  ### Classics Awarded for watching anime classics (finished between 1981 and 2000).
Cassette tape The first time you watched these, you didn't even know what they were.
Solid color Bomber jackets, high-waisted jeans, an overload of patterns, and bishies everywhere.
It's raining... tragic backstories! It might be the nostalgia lens, but you swear things had more substance back then.
Blockbuster Man, do you feel old as all hell.
  ### Age diversity Awarded for watching 40+ anime, all of which started in different years.
Chronomaster Your discerning eye has traveled across the aeons of animation.
  ### Pervert Are you a pervert? There's a formula: 100 ÷ *anime completed* × (*ecchi anime completed* × 2 + *erotica anime completed* × 3 + *hentai anime completed* × 4)
Innocent One Puritan, oblivious, or serial killer in the making? Either way, you made it through No Man's Land without glimpsing a single bra. Good job!
I watch anime only for the plot... It's not your fault that there is so much fan service... Right?
Only accidents! I swear! Physics in anime are incredible. When you trip, you always cop a feel.
Hentai Overlord No use denying it! You know what you are...
  ### Mean score Related to mean anime score.
I love Chinese cartoons Mean anime score higher than 8.5. How about using the whole scale and re-rating stuff? That could make you look less like a fanboy...
Watching anime is suffering Mean anime score lower than 5. Someone has to counterweigh the fanboys, right?
Less than three Mean anime score lower than 3. Is it hate, or is it love?
  ### No drop 20+ completed, zero dropped.
Completionist You've managed to survive watching so many anime without dropping any of them. You masochist.
  ### Rewatch Awarded for having 20+ rewatches.
Endless Eight Is the replay button stuck?
  ### Total time spent Awarded for reaching certain thresholds in your time spent watching anime.
Hair antenna Whose watchtime are you calling puny‽
Endurance training By doing a daily ten-episode run, you are sure to become a master in no time!
Consciousness upload Consuming the medium becomes a lot easier once you yourself are raw data.
Wicked cultured By making a deal with the devil, you have ensured access to even the most obscure of materials.
  ### Total number completed No living being should be able to get to 10k.
The first step Watched 100 anime. Congratulations, you broke the magical number. Take a breath now, it will only get more difficult.
Casual watcher Watched 200 anime. You're used to seeing character's eyes bigger than their nose. If they have any nose.
A millionaire Watched 300 anime. You DID buy all of them, right?
Bragging rights Watched 400 anime. That's... a lot. You can be proud of yourself, that's for sure.
A lot of free time Watched 500 anime. Now pause, take a breath and stretch a bit. Remember not to sit too close to the screen.
Not even my final form Watched 750 anime. Your power level is way above others'. The only way is up.
Gotta watch them all! Watched 1000 anime. You should already know what that picture means.
The Collector Watched 1500 animes. No, wait. The plural of anime is anime.
The Maniac Watched 2500 anime. Is this healthy? You should contact your doctor.
The Legend Watched 5000 anime. You're one of the chosen ones. You don't even have to brag, since everyone heard about you.
Database Breaker Watched 7.5 × 10³ anime. Are you having fun, breaking all the rules? By the way, since when do we have that many anime in the database?!
This is it Watched 10000 anime. There is no higher level. You can stop now. Everyone, go home.
  ## Manga achievements ### Horror Awarded for reading Horror manga.
HONEY, I'M HOME WHAT IS FOR DINNER TODAY?
Lovely smile of a psychopath You can't spell slaughter without laughter.
What have I become? Sweetheart, something's wrong with your make up...
Heart attack Not all surprises are pleasant, but it looks like you love being scared.
  ### Mahou Shoujo Awarded for reading manga with magical girls.
Let me lift that curse If you wish hard enough, you can become a magical girl in the blink of an eye.
Conflict Breaker Fighting hardly solves any problems. There are better ways to live our lives.
Aim for the top Even if you work alone, never forget your friends who helped you overcome all fears.
Complete control Read over 32 mahou shoujo manga. At this level magic circles form around you at will.
  ### Mystery Awarded for reading Mystery manga.
Curiosity If it is you who is curious, no case shall remain unsolved.
Determination No matter who the villain is... you WILL find out the answers.
Collecting the pieces Sometimes the smallest bit of information can turn the whole case around.
Raw intuition Investigative skills honed up. You know the answers just by looking at mere shards of data.
  ### Romance Awarded for reading Romance manga.
Mixed feelings 98% hatred, 2% love. Give it some time and these two will reverse.
Love me or die Yandere is a form of love too. A rather extreme one, but still!
Breaking the chains With love, nothing is impossible. You just have to let someone break you free of restrictions.
Heart that never stops beating When I see you, my kokoro goes doki-doki and the sekai starts to spin around. How could I live without you?
  ### Sports Awarded for reading Sports manga.
The stakes are high Joined the game for real. The more you read, the more addictive it gets.
Do you even read? Even during the most exhausting excercise you still find time to read. Can't miss a chapter.
Got balls Looking at all this struggling inspires you to become strong yourself.
Kuro Basket You know the rules of all games already. The podium is yours!
  ### Vampires/Demons Awarded for reading Vampires/Demons manga.
Sweet tooth Donuts? Really? You lived for 500 years just to eat them?
Vegetarian Some creatures prefer juicy fruits instead of sucking blood or eating raw meat. Weaklings.
Carnivore Don't mess with me if you want to keep your limbs attached to your body.
Pure Evil EVIL!!! FANGS! DEMONS! BLOOD! Yeah. That's the stuff.
  ### Boys Love Awarded for reading Boys Love manga.
Inner fujoshi awakened I was just taking a peek in this manga I accidentally found... and surprisingly liked it.
Not a day without BL It's already too late to stop and turn back, just remember to watch your back while reading.
Yaoi detector I don't care! I ship it!
Full Fledged Fujoshi Yaoi isn't just a genre to you anymore, it's a way of life.
  ### Girls Love Awarded for reading Girls Love manga.
But that's forbidden love Cute girls doing cute things... right?
I kissed a girl... ...and I liked it!
All female school There are only girls here to love... but I don't mind it.
Lily You feel it everywhere.
  ### Novel 1+ volumes completed.
Cracking the book You didn't get bored reading plain text.
IKEA trip Instead of playing Candy Crush, you now read during transit.
Personal library The tales you've read have taken you on a journey you never want to end.
What is sleep? The more you've learned, the more you wanted to keep on learning.
  ### Long runner Awarded for reading 10+ manga that are 20+ volumes long.
Long runner The best stories can't be told in less than 20 volumes.
  ### Old manga Awarded for reading 10+ old manga (finished in 1980 at most).
At the end of the galaxy Your never-ending journey for the most forgotten comic books has finally paid off.
  ### Age diversity Awarded for reading 40+ manga, all of which started in different years.
Ancient Scholar You witnessed the beginning of the medium. You hope you will not witness its end.
  ### Pervert Are you a pervert? There's a formula: 100 ÷ *manga completed* × (*ecchi manga completed* × 2 + *erotica manga completed* × 3 + *hentai manga completed* × 4)
Chastity belt Mama said that if you touch your no-no square, the Yogi Bear will come and get you. Congratulations on resisting the siren call of h-doujin!
I peek just a little Wait a minute, this wasn't the men's bath?
We need a blood donor here Even if I die from blood loss, I just can't stop...
Ero-sennin What do you mean that I am a pervert? I am THE pervert!
  ### Mean score Related to mean manga score.
So good I can't handle it Mean manga score above 8.5. Looks like you only pick the best titles to read.
Professional Critic Mean manga score below 5. Watch out, we got a critic over here.
Best I can do is 2 Mean manga score below 3. Aren't you a bit too harsh?
  ### No drop 10+ completed, zero dropped.
I've seen some sh** Despite seemingly endless suffering, you've never dropped any manga. That's impressive.
  ### Reread Awarded for having 10+ rereads.
Take me back Ah, it's every bit as good as the first time.
  ### Total time spent Awarded for reaching certain thresholds in your time spent reading manga.
Downward spiral Once drawn inside this inky whirlpool, you will find yourself sinking faster than the Titanic.
Revelations (18:14) You've developed quite the appetite. Devouring fifty chapters a day doesn't seem challenging to you anymore.
Voluntary confinement Every title you read brings you closer to your self.
Apocryphal Sanctuary You've journeyed through hell and heaven, and learned much in your wanderings.
  ### Total number completed No living being should be able to get to 10k.
Casual reader Read 100 manga. Looks like reading doesn't hurt.
Bookworm Read 200 manga. Sitting in your comfortable chair, reading favorite Korean comics. This is bliss.
Dat scent Read 300 manga. There's nothing better than the smell of freshly opened book. Or a PDF.
Where do I put these? Read 400 manga. Consider investing in another bookshelf, or you'll be swimming in books soon.
Half a grand Read 500 manga. Now think of what kind of person you'd be if you didn't start reading manga then. On that particular day...
Read or die Read 750 manga. You managed to make a bow out of paper, but remember that cellulose fibers don't work well as a bulletproof shield.
Librarian Read 1000 manga. You work with books, right? Right?
The floor is books Read 1500 manga. Sleeping on books must be pretty... hard?
Still not enough Read 2500 manga. In search for the perfect story you've read six lifetimes worth of words. Did you find it?
Sleep deprivation Read 5000 manga. Think of all the mangakas and writers that couldn't sleep just to make this moment happen.
Reincarnation Read 7500 manga. How, exactly? This is not possible for normal humans.
I've seen it all Read 10000 manga. Ten. Thousand. Manga. An average user's list is shorter than your list of titles starting with "A" alone.
  ================================================ FILE: data/achievement/anime-boku-no-pico.json ================================================ { "media": "A", "order": 202, "achievements": [ { "threshold": "1+", "id": "anime-boku-no-pico", "level": "It's Just an Ice Cream", "title": "Feels... Weird, Man", "desc": "Watched Boku no Pico. This is what you get when you follow /a/'s recommendations." } ], "requirement": { "type": "title", "titles": [ "A1639", //Boku no Pico "A5391", //Pico to Chico "A4866", //Pico x CoCo x Chico "A6546" //Pico: My Little Summer Story ] } } ================================================ FILE: data/achievement/anime-dementia-psychological.json ================================================ { "media": "A", "order": 101, "achievements": [ { "threshold": "7-13", "id": "anime-dementia-psychological-1", "level": "Psychological: level 1", "title": "What Exactly Did I Just Watch?", "desc": "You discovered a whole new world of weird. Keep on watching." }, { "threshold": "14-27", "id": "anime-dementia-psychological-2", "level": "Psychological: level 2", "title": "My Mind Is Full of Fu**", "desc": "Your attempt to wrap your mind around this failed completely." }, { "threshold": "28-55", "id": "anime-dementia-psychological-3", "level": "Psychological: level 3", "title": "Is This the Real Life?", "desc": "It has become hard to distinguish between reality and fiction." }, { "threshold": "56+", "id": "anime-dementia-psychological-4", "level": "Psychological: level MAX", "title": "「 Wired Sound 」", "desc": "You've seen too much. You've transcended humanity and operate on another level now." } ], "requirement": { "type": "genre-title", "genre": 40 } } ================================================ FILE: data/achievement/anime-dropped-0.json ================================================ { "media": "A", "order": 309, "achievements": [ { "threshold": "20+", "id": "anime-dropped-0", "level": "I'll Endure Anything", "title": "Completionist", "desc": "You've managed to survive watching so many anime without dropping any of them. You masochist." } ], "requirement": { "type": "dropped-0" } } ================================================ FILE: data/achievement/anime-duration-short.json ================================================ { "media": "A", "order": 302, "achievements": [ { "threshold": "20-39", "id": "anime-duration-short-1", "level": "Shorts: level 1", "title": "Blink, and You'll Miss It", "desc": "It was over before it started, but it managed to tell an enticing tale." }, { "threshold": "40-79", "id": "anime-duration-short-2", "level": "Shorts: level 2", "title": "Quickie Addict", "desc": "You've been saying \"one more\" for the past nine hours." }, { "threshold": "80-159", "id": "anime-duration-short-3", "level": "Shorts: level 3", "title": "Block by Block", "desc": "Just like in a game of tetris, you're building something great out of small pieces." }, { "threshold": "160+", "id": "anime-duration-short-4", "level": "Shorts: level MIN", "title": "Short but Gold", "desc": "You have learned that some of the greatest things come in small packages." } ], "requirement": { "type": "duration-short" } } ================================================ FILE: data/achievement/anime-episode-long.json ================================================ { "media": "A", "order": 303, "achievements": [ { "threshold": "20+", "id": "anime-episode-long", "level": "Anime, That Is", "title": "I Like Them Long", "desc": "Didn't fall asleep while watching long anime series. 100 episodes isn't a big deal to you." } ], "requirement": { "type": "episode-long" } } ================================================ FILE: data/achievement/anime-finished.json ================================================ { "media": "A", "order": 312, "achievements": [ { "threshold": "100-199", "id": "anime-finished-100", "level": "Passed 100 Mark", "title": "The first step", "desc": "Watched 100 anime. Congratulations, you broke the magical number. Take a breath now, it will only get more difficult." }, { "threshold": "200-299", "id": "anime-finished-200", "level": "Passed 200 Mark", "title": "Casual watcher", "desc": "Watched 200 anime. You're used to seeing character's eyes bigger than their nose. If they have any nose." }, { "threshold": "300-399", "id": "anime-finished-300", "level": "Passed 300 Mark", "title": "A millionaire", "desc": "Watched 300 anime. You DID buy all of them, right?" }, { "threshold": "400-499", "id": "anime-finished-400", "level": "Passed 400 Mark", "title": "Bragging rights", "desc": "Watched 400 anime. That's... a lot. You can be proud of yourself, that's for sure." }, { "threshold": "500-749", "id": "anime-finished-500", "level": "Passed 500 Mark", "title": "A lot of free time", "desc": "Watched 500 anime. Now pause, take a breath and stretch a bit. Remember not to sit too close to the screen." }, { "threshold": "750-999", "id": "anime-finished-750", "level": "Passed 750 Mark", "title": "Not Even My Final Form", "desc": "Watched 750 anime. Your power level is way above others'. The only way is up." }, { "threshold": "1000-1499", "id": "anime-finished-1000", "level": "Passed 1000 Mark", "title": "Gotta Watch Them All!", "desc": "Watched 1000 anime. You should already know what that picture means." }, { "threshold": "1500-2499", "id": "anime-finished-1500", "level": "Passed 1500 Mark", "title": "The Collector", "desc": "Watched 1500 animes. No, wait. The plural of anime is anime." }, { "threshold": "2500-4999", "id": "anime-finished-2500", "level": "Passed 2500 Mark", "title": "The Maniac", "desc": "Watched 2500 anime. Is this healthy? You should contact your doctor." }, { "threshold": "5000-7499", "id": "anime-finished-5000", "level": "Passed 5000 Mark", "title": "The Legend", "desc": "Watched 5000 anime. You're one of the chosen ones. You don't even have to brag, since everyone heard about you." }, { "threshold": "7500-9999", "id": "anime-finished-7500", "level": "Passed 7500 Mark", "title": "Database Breaker", "desc": "Watched 7.5 × 10³ anime. Are you having fun, breaking all the rules? By the way, since when do we have that many anime in the database?!" }, { "threshold": "10000+", "id": "anime-finished-10000", "level": "Passed 10000 Mark", "title": "This Is It", "desc": "Watched 10000 anime. There is no higher level. You can stop now. Everyone, go home." } ], "requirement": { "type": "finished" } } ================================================ FILE: data/achievement/anime-franchise-long.json ================================================ { "media": "A", "order": 301, "achievements": [ { "threshold": "10+", "id": "anime-franchise-long", "level": "The Process of Acquiring This Achievement, That Is", "title": "Long and Hard", "desc": "Ten years ago, you began this journey..." } ], "requirement": { "type": "franchise" } } ================================================ FILE: data/achievement/anime-game.json ================================================ { "media": "A", "order": 302, "achievements": [ { "threshold": "20-39", "id": "anime-game-1", "level": "Game: level 1", "title": "Eternal Spring", "desc": "It all started one fateful morning in April..." }, { "threshold": "40-79", "id": "anime-game-2", "level": "Game: level 2", "title": "At the Gates of Eden", "desc": "You're so close to heaven, you can almost feel it." }, { "threshold": "80-159", "id": "anime-game-3", "level": "Game: level 3", "title": "Banquet of the Golden Witch", "desc": "You've challenged her to a game. There is no turning back, now." }, { "threshold": "160+", "id": "anime-game-4", "level": "Immersion: level MAX", "title": "Hacking to the Gate", "desc": "All these games have made of you a wizard; you can crack any code without breaking a sweat." } ], "requirement": { "type": "source-title", "source": [ 8, 9 ] } } ================================================ FILE: data/achievement/anime-gar.json ================================================ { "media": "A", "order": 102, "achievements": [ { "threshold": "12-23", "id": "anime-gar-1", "level": "GAR: level 1", "title": "So Manly I Can't Breathe", "desc": "Watching all those men made you feel like a little girl... and you liked it." }, { "threshold": "24-43", "id": "anime-gar-2", "level": "GAR: level 2", "title": "Testosterone Storm", "desc": "Your body has adapted into GAR anime. You can hear your muscles growing." }, { "threshold": "44-87", "id": "anime-gar-3", "level": "GAR: level 3", "title": "You Are Already Man", "desc": "Resistance is futile. People are simply no match for you." }, { "threshold": "88+", "id": "anime-gar-4", "level": "GAR: level MAKSHIMUM", "title": "Alpha Male", "desc": "You aren't made out of testosterone. Testosterone is made out of you." } ], "requirement": { "type": "title", "titles": [ "A32998", //91 Days "A33964", //91 Days: Mijikai Rousoku "A34777", //91 Days: Toki no Asase/Subete no Kinou/Ashita, Mata Ashita "A8216", //Aa Harimanada "A22831", //Abarenbou Rikishi!! Matsutarou "A1292", //Afro Samurai "A13709", //Afro Samurai Movie "A27939", //Afro Samurai Pilot "A4970", //Afro Samurai: Resurrection "A47", //Akira "A2356", //Amon: Devilman Mokushiroku "A35834", //Angolmois: Genkou Kassenki "A6721", //Ankoku Cat "M36636", //Ankoku Cat VS "A1488", //Area 88 "A284", //Area 88 (TV) "A33232", //Area 88 Movie "A2402", //Ashita no Joe "A2920", //Ashita no Joe (Movie) "A2921", //Ashita no Joe 2 "A2922", //Ashita no Joe 2 (Movie) "A19973", //Ashita no Joe Pilots "A2251", //Baccano! "A3901", //Baccano! Specials "A34443", //Baki "A39555", //Baki: Dai Raitaisai-hen "A33566", //Baki: Most Evil Death Row Convicts Special Anime "A58573", //Baki-dou "A1468", //Baoh Raihousha "A67", //Basilisk: Kouga Ninpou Chou "A35964", //Basilisk: Ouka Ninpouchou "A404", //Bastard!! Ankoku no Hakaishin "A50953", //Bastard!! Ankoku no Hakaishin (ONA) "A51366", //Bastard!! Ankoku no Hakaishin Part 2 (ONA) "A54141", //Bastard!! Ankoku no Hakaishin: Jigoku no Chinkonka-hen "A4094", //Batman: Gotham Knight "A1799", //Battle Fighters Garou Densetsu "A1800", //Battle Fighters Garou Densetsu 2 "A3625", //Battle Royal High School "A1009", //Battle Spirits: Ryuuko no Ken "A37483", //Bean Bandit "A9513", //Beelzebub "A9120", //Beelzebub: Hirotta Akachan wa Daimaou!? "A32379", //Berserk "A34055", //Berserk 2nd Season "A35676", //Berserk: Majo no Tsuisou "A10218", //Berserk: Ougon Jidaihen I - Haou no Tamago "A12113", //Berserk: Ougon Jidaihen II - Doldrey Kouryaku "A12115", //Berserk: Ougon Jidaihen III - Kourin "A35009", //Berserk Recap "A2622", //Big Wars: Kami Utsu Akaki Kouya ni "A8278", //Biohazard 4: Incubate "A5624", //Biohazard 4D-Executer "A9544", //Biohazard: Damnation "A54398", //Biohazard: Death Island "A3446", //Biohazard: Degeneration "A42976", //Biohazard: Infinite Darkness "A31853", //Biohazard: Vendetta "A1269", //Bio Hunter "A1520", //Black Jack "A2214", //Black Jack 21 "A1373", //Black Jack Specials: Inochi wo Meguru Yottsu no Kiseki "A1521", //Black Jack the Movie "A2213", //Black Jack (TV) "A4071", //Black Jack (TV): Hizouban Specials "A1983", //Black Jack: Futari no Kuroi Isha "A10055", //Black Jack: Heian Sento "A6246", //Black Jack: Sora kara Kita Kodomo "A889", //Black Lagoon "A4901", //Black Lagoon: Roberta's Blood Trail "A1519", //Black Lagoon: The Second Barrage "A6920", //Blade "A4151", //Blade of the Immortal "A4522", //Bounty Hunter: The Hard "A9177", //Burning Blood "A3389", //Bus Gamer "A17269", //Captain Herlock "A4981", //Casshern Sins "A1598", //Casshern: Robot Hunter "A43763", //Cestvs: The Roman Fighter "A978", //Change!! Getter Robo: Sekai Saigo no Hi "A2881", //Chinmoku no Kantai "A2341", //Choujin Densetsu Urotsukidouji "A2360", //Choujin Densetsu Urotsukidouji 2 "A2345", //Choujin Densetsu Urotsukidouji 5: Kanketsu-hen "A2359", //Choujin Densetsu Urotsukidouji Movie "A2344", //Choujin Densetsu Urotsukidouji: Inferno Road "A2343", //Choujin Densetsu Urotsukidouji: Mirai-hen "A37338", //Chuukan Kanriroku Tonegawa "A1470", //City Hunter "A1471", //City Hunter 2 "A1472", //City Hunter 3 "A1473", //City Hunter '91 "A1474", //City Hunter: Ai to Shukumei no Magnum "A1475", //City Hunter: Bay City Wars "A1478", //City Hunter: Goodbye My Sweetheart "A1476", //City Hunter: Hyakuman Dollar no Inbou "A1479", //City Hunter: Kinkyuu Namachuukei!? Kyouakuhan Saeba Ryou no Saigo "A37516", //City Hunter Movie: Shinjuku Private Eyes "A1477", //City Hunter: The Secret Service "A5032", //Cobra the Animation "A4646", //Cobra the Animation: The Psycho-Gun "A5031", //Cobra the Animation: Time Drive "A1676", //Cosmo Warrior Zero "A1", //Cowboy Bebop "A5", //Cowboy Bebop: Tengoku no Tobira "A4037", //Cowboy Bebop: Yose Atsume Blues "A2722", //Crusher Joe "A2696", //Crusher Joe OVA "A1153", //Crying Freeman "A1352", //Cyber City Oedo 808 "A42310", //Cyberpunk: Edgerunners "A31050", //Cyborg 009 VS Devilman "A18795", //Dagram vs. Round-Facer "A7122", //Dai Yamato Zero-gou "A1178", //Detonator Orgun "A3702", //Detroit Metal City "A5065", //Detroit Metal City: Birth of the Metal Devil "A2252", //Devilman "A35120", //Devilman: Crybaby "A37590", //Devilman: Crybaby - Digest Eizou "A35952", //Devilman Memorial "A2354", //Devilman: Tanjou-hen "A2355", //Devilman: Yochou Sirene-hen "A1726", //Devil May Cry "A2318", //Dog Soldier "A5593", //Dogs: Bullets & Carnage "A29605", //Double Hard "A223", //Dragon Ball "A12231", //Dragon Ball: Episode of Bardock "A56894", //Dragon Ball Daima "A225", //Dragon Ball GT "A987", //Dragon Ball GT: Gokuu Gaiden! Yuuki no Akashi wa Suushinchuu "A6033", //Dragon Ball Kai "A22777", //Dragon Ball Kai (2014) "A11359", //Dragon Ball Kai: Mirai ni Heiwa wo! Goku no Tamashii yo Eien ni "A502", //Dragon Ball Movie 1: Shen Long no Densetsu "A891", //Dragon Ball Movie 2: Majinjou no Nemuri Hime "A892", //Dragon Ball Movie 3: Makafushigi Daibouken "A893", //Dragon Ball Movie 4: Saikyou e no Michi "A5152", //Dragon Ball: Ossu! Kaette Kita Son Gokuu to Nakama-tachi!! "A2520", //Dragon Ball Specials "A30694", //Dragon Ball Super "A36946", //Dragon Ball Super: Broly "A38653", //Dragon Ball Super: Broly - Skytree Super "A10017", //Dragon Ball: Super Saiya-jin Zetsumetsu Keikaku "A48903", //Dragon Ball Super: Super Hero "A813", //Dragon Ball Z "A6714", //Dragon Ball Z: Atsumare! Gokuu World "A894", //Dragon Ball Z Movie 01: Ora no Gohan wo Kaese!! "A895", //Dragon Ball Z Movie 02: Kono Yo de Ichiban Tsuyoi Yatsu "A896", //Dragon Ball Z Movie 03: Chikyuu Marugoto Choukessen "A897", //Dragon Ball Z Movie 04: Super Saiyajin da Son Gokuu "A898", //Dragon Ball Z Movie 05: Tobikkiri no Saikyou tai Saikyou "A899", //Dragon Ball Z Movie 06: Gekitotsu!! 100-oku Power no Senshi-tachi "A900", //Dragon Ball Z Movie 07: Kyokugen Battle!! Sandai Super Saiyajin "A901", //Dragon Ball Z Movie 08: Moetsukiro!! Nessen, Ressen, Chougekisen "A902", //Dragon Ball Z Movie 09: Ginga Girigiri!! Bucchigiri no Sugoi Yatsu "A903", //Dragon Ball Z Movie 10: Kiken na Futari! Super Senshi wa Nemurenai "A904", //Dragon Ball Z Movie 11: Super Senshi Gekiha!! Katsu no wa Ore da "A905", //Dragon Ball Z Movie 12: Fukkatsu no Fusion!! Gokuu to Vegeta "A906", //Dragon Ball Z Movie 13: Ryuuken Bakuhatsu!! Goku ga Yaraneba Dare ga Yaru "A14837", //Dragon Ball Z Movie 14: Kami to Kami "A25389", //Dragon Ball Z Movie 15: Fukkatsu no "F" "A984", //Dragon Ball Z: Saiya-jin Zetsumetsu Keikaku "A986", //Dragon Ball Z Special 1: Tatta Hitori no Saishuu Kessen "A985", //Dragon Ball Z Special 2: Zetsubou e no Hankou!! Nokosareta Chousenshi - Gohan to Trunks "A22695", //Dragon Ball Z: Summer Vacation Special "A33947", //Dragon Ball Z: The Real 4-D "A42449", //Dragon Ball Z: The Real 4-D at Super Tenkaichi Budokai "A52282", //Dragon Ball Z x Kao "A22699", //Dragon Ball Z: Zenbu Misemasu Toshi Wasure Dragon Ball Z! "A31339", //Drifters "A36480", //Drifters (OVA) "A33032", //Drifters: Special Edition "A38360", //Drifters: The Outlandish Knight "A12885", //Dynamic Super Robots Soushingekki "A5883", //Examurai Sengoku "A26209", //Examurai Sengoku Recap "A61543", //Fatal Fury: City of the Wolves "A34662", //Fate/Apocrypha "A36729", //Fate/Apocrypha Recaps "A34321", //Fate/Grand Order: First Order "A36915", //Fate/Grand Order: Moonlight/Lostroom "A38085", //Fate/Grand Order: Shinsei Entaku Ryouiki Camelot 1 - Wandering; Agateram "A38086", //Fate/Grand Order: Shinsei Entaku Ryouiki Camelot 2 - Paladin; Agateram "A41497", //Fate/Grand Order: Shuukyoku Tokuiten - Kani Jikan Shinden Solomon "A51410", //Fate/Grand Order: Shuukyoku Tokuiten - Kani Jikan Shinden Solomon Specials "A38084", //Fate/Grand Order: Zettai Majuu Sensen Babylonia "A40206", //Fate/Grand Order: Zettai Majuu Sensen Babylonia - Initium Iter "A40761", //Fate/Grand Order: Zettai Majuu Sensen Babylonia Recaps "A12565", //Fate/Prototype "A356", //Fate/stay night "A25537", //Fate/stay night Movie: Heaven's Feel - I. Presage Flower "A33049", //Fate/stay night Movie: Heaven's Feel - II. Lost Butterfly "A33050", //Fate/stay night Movie: Heaven's Feel - III. Spring Song "A6922", //Fate/stay night Movie: Unlimited Blade Works "A7559", //Fate/stay night TV Reproduction "A22297", //Fate/stay night: Unlimited Blade Works "A27821", //Fate/stay night: Unlimited Blade Works Prologue "A28701", //Fate/stay night: Unlimited Blade Works 2nd Season "A31389", //Fate/stay night: Unlimited Blade Works 2nd Season - Sunny Day "A55830", //Fate/strange Fake "A53127", //Fate/strange Fake: Whispers of Dawn "A40982", //Fate/strange Fake PV "A10087", //Fate/Zero "A11741", //Fate/Zero 2nd Season "A13183", //Fate/Zero Remix "A317", //Final Fantasy VII: Advent Children "A2952", //Final Fantasy VII: Advent Children Complete "A6152", //Final Fantasy VII: Advent Children - Venice Film Festival Footage "A408", //Final Fantasy VII: Last Order "A4298", //Futari no Joe "A21821", //Fuuun Ishin Dai Shogun "A37657", //Gakuen Basara "A25183", //Gangsta. "A31561", //Gangsta. Recap "A384", //Gantz "A395", //Gantz 2nd Stage "A32071", //Gantz:O "A28537", //Garo: Guren no Tsuki "A33709", //Garo: Guren no Tsuki Special "A23311", //Garo: Honoo no Kokuin "A32415", //Garo: Honoo no Kokuin - Home "A28539", //Garo Movie: Divine Flame "A36144", //Garo: Vanishing Line "A37032", //Garo: Vanishing Line Recap "A504", //Garou Densetsu: The Motion Picture "A3154", //Gatchaman "A3579", //Getter Robo "A43741", //Geter Robo Arc "A4486", //Getter Robo G "A5292", //Getter Robo Go "A42153", //Getter Robo Memorial "A8252", //Getter Robo (Movie) "A7661", //Giant Killing "A18771", //Gifuu Doudou!!: Kanetsugu to Keiji "A820", //Ginga Eiyuu Densetsu "A3016", //Ginga Eiyuu Densetsu: Arata Naru Tatakai no Overture "A42886", //Ginga Eiyuu Densetsu: Die Neue These - Gekitotsu "A31433", //Ginga Eiyuu Densetsu: Die Neue These - Kaikou "A51805", //Ginga Eiyuu Densetsu: Die Neue These - Sakubou "A36369", //Ginga Eiyuu Densetsu: Die Neue These - Seiran 1 "A36370", //Ginga Eiyuu Densetsu: Die Neue These - Seiran 2 "A36371", //Ginga Eiyuu Densetsu: Die Neue These - Seiran 3 "A3371", //Ginga Eiyuu Densetsu Gaiden "A3665", //Ginga Eiyuu Densetsu Gaiden (1999) "A3015", //Ginga Eiyuu Densetsu Gaiden: Ougon no Tsubasa "A3014", //Ginga Eiyuu Densetsu: Waga Yuku wa Hoshi no Taikai "A915", //Ginga Densetsu Weed "A589", //Ginga Nagareboshi Gin "A3907", //Ginga Sengoku Gunyuuden Rai "A43692", //Gokushufudou "A48707", //Gokushufudou Part 2 "A53148", //Gokushufudou Season 2 "A37755", //Golden Douga Gekijou "A51149", //Golden Douga Gekijou Specials "A36028", //Golden Kamuy "A37989", //Golden Kamuy 2nd Season "A38710", //Golden Kamuy 2nd Season OVA "A40059", //Golden Kamuy 3rd Season "A50528", //Golden Kamuy 4th Season "A61834", //Golden Kamuy: Inazuma Goutou to Mamushi no Ogin/Shimaenaga "A37884", //Golden Kamuy OVA "A55772", //Golden Kamuy: Saishuushou "A62067", //Golden Kamuy: Sapporo Beer Koujou-hen "A4039", //Golgo 13 "A1761", //Golgo 13: Queen Bee "A1760", //Golgo 13: The Professional "A49895", //Go! Saitama "A1859", //Grappler Baki "A287", //Grappler Baki (TV) "A551", //Grappler Baki: Saidai Tournament-hen "A5658", //Great Mazinger "A4385", //Great Mazinger tai Getter Robo "A4386", //Great Mazinger tai Getter Robo G: Kuuchuu Dai-Gekitotsu "A245", //Great Teacher Onizuka "A3481", //Grendizer: Getter Robo G - Great Mazinger Kessen! Daikaijuu "A31467", //Grendizer Giga "A56189", //Grendizer U "A2423", //Grey: Digital Target "A5041", //Guin Saga "A1706", //Gun Frontier "A411", //Gun x Sword "A267", //Gungrave "A2070", //Guy: Youma Kakusei "A3002", //Gyakkyou Burai Kaiji: Ultimate Survivor "A10271", //Gyakkyou Burai Kaiji: Hakairoku Hen "A263", //Hajime no Ippo "A12069", //Hajime no Ippo: Boxer no Kobushi "A264", //Hajime no Ippo: Champion Road "A265", //Hajime no Ippo: Mashiba vs. Kimura "A5258", //Hajime no Ippo: New Challenger "A19647", //Hajime no Ippo: Rising "A42940", //Hanma Baki: Son of Ogre "A51318", //Hanma Baki: Son of Ogre 2nd Season "A58510", //Hanma Baki vs. Kengan Ashura "A10964", //Heavy "A270", //Hellsing "A777", //Hellsing Ultimate "A11077", //Hellsing: The Dawn "A7728", //Hellsing: Psalm of Darkness "A6904", //Hellsing I: Digest for Freaks "A1645", //Herlock Saga: Nibelung no Yubiwa "A59712", //Herlock Saga: Nibelung no Yubiwa Pilot "A2178", //Highlander: The Search for Vengeance "A967", //Hokuto no Ken "A1356", //Hokuto no Ken 2 "A1358", //Hokuto no Ken Movie "A7363", //Hokuto No Ken: Legend of Heroes "A2174", //Hokuto no Ken: Raoh Gaiden Gekitou-hen "A1773", //Hokuto no Ken: Raoh Gaiden Junai-hen "A4549", //Hokuto no Ken: Raoh Gaiden Ten no Haoh "A4312", //Hokuto no Ken: Toki-den "A3027", //Hokuto no Ken: Yuria-den "A5291", //Hokuto no Ken Zero: Kenshiro Den "A2050", //Honoo no Tenkousei "A6090", //Hon Ran "A4808", //Hurricane Polymar "A16774", //Inferno Cop "A17843", //Inferno Cop: Fact Files "A31035", //Inferno Cop Specials "A33027", //Infini-T Force "A36197", //Infini-T Force Movie: Gatchaman - Saraba Tomo yo "A1759", //Jigen Sengokushi: Kuro no Shishi - Jinnai Hen "A33400", //Jigoku de Naze Warui "A666", //JoJo no Kimyou na Bouken "A665", //JoJo no Kimyou na Bouken: Adventure "A14719", //JoJo no Kimyou na Bouken (TV) "A20899", //JoJo no Kimyou na Bouken Part 3: Stardust Crusaders "A26055", //JoJo no Kimyou na Bouken Part 3: Stardust Crusaders 2nd Season "A31933", //JoJo no Kimyou na Bouken Part 4: Diamond wa Kudakenai "A37991", //JoJo no Kimyou na Bouken Part 5: Ougon no Kaze "A38972", //JoJo no Kimyou na Bouken Part 5: Ougon no Kaze Recaps "A48661", //JoJo no Kimyou na Bouken Part 6: Stone Ocean "A51367", //JoJo no Kimyou na Bouken Part 6: Stone Ocean Part 2 "A53273", //JoJo no Kimyou na Bouken Part 6: Stone Ocean Part 3 "A3603", //JoJo no Kimyou na Bouken: Phantom Blood "A41306", //JoJo no Kimyou na Bouken: Phantom Blood Pilot "A52593", //JoJo no Kimyou na Bouken: The Real 4-D Dio no Sekai "A12413", //Jormungand "A13331", //Jormungand: Perfect Order "A15735", //Jormungand: Perfect Order Recap "A617", //Juubee Ninpuuchou "A618", //Juubee Ninpuuchou: Ryuuhougyoku-hen "A2389", //Kagaku Ninja-tai Gatchaman "A6374", //Kagaku Ninja-tai Gatchaman II "A6375", //Kagaku Ninja-tai Gatchaman F "A3153", //Kagaku Ninja-tai Gatchaman (Movie) "A52588", //Kaijuu 8-gou "A59490", //Kaijuu 8-gou: Hoshina no Kyuujitsu "A59177", //Kaijuu 8-gou 2nd Season "A59489", //Kaijuu 8-gou Movie "A496", //Kamui no Ken "A2243", //Karasu Tengu Kabuto "A3726", //Karasu Tengu Kabuto: Ougon no Me no Kemono "A1777", //Kaze no Tairiku "A24439", //Kekkai Sensen "A34451", //Kekkai Sensen & Beyond "A37364", //Kekkai Sensen & Beyond OVA "A30915", //Kekkai Sensen: Soresaemo Saitei de Saikou na Hibi "A32574", //Kekkai Sensen: Ousama no Restaurant no Ousama "A36903", //Kengan Ashura "A40269", //Kengan Ashura Part 2 "A51369", //Kengan Ashura Season 2 "A56704", //Kengan Ashura Season 2 Part 2 "A33", //Kenpuu Denki Berserk "A96", //Kidou Butouden G Gundam "A31251", //Kidou Senshi Gundam: Tekketsu no Orphans "A33051", //Kidou Senshi Gundam: Tekketsu no Orphans 2nd Season "A62264", //Kidou Senshi Gundam: Tekketsu no Orphans - Makuai no Kusabi "A51569", //Kidou Senshi Gundam: Tekketsu no Orphans - Tokubetsu-hen "A62805", //Kidou Senshi Gundam: Tekketsu no Orphans - Urdr Hunt: Chiisana Chousensha no Kiseki "A31973", //Kidou Senshi Gundam Thunderbolt "A34391", //Kidou Senshi Gundam Thunderbolt 2nd Season "A35949", //Kidou Senshi Gundam Thunderbolt: Bandit Flower "A33221", //Kidou Senshi Gundam Thunderbolt: December Sky "A38000", //Kimetsu no Yaiba "A55701", //Kimetsu no Yaiba: Hashira Geiko-hen "A51019", //Kimetsu no Yaiba: Katanakaji no Sato-hen "A49926", //Kimetsu no Yaiba: Mugen Ressha-hen "A47778", //Kimetsu no Yaiba: Yuukaku-hen "A40456", //Kimetsu no Yaiba Movie: Mugen Ressha-hen "A59192", //Kimetsu no Yaiba Movie 1: Mugenjou-hen - Akaza Sairai "A12031", //Kingdom "A17389", //Kingdom 2nd Season "A40682", //Kingdom 3rd Season "A50160", //Kingdom 4th Season "A53223", //Kingdom 5th Season "A61517", //Kingdom 6th Season "A825", //King of Fighters: Another Day "A34678", //Kingsglaive: FFXV Fan Kansha Tokubetsu Movie "A3272", //Kinnikuman "A3273", //Kinnikuman (1984) "A3276", //Kinnikuman: Gyakushuu! Uchuu Kakure Choujin "A3277", //Kinnikuman: Haresugata! Seigi Choujin "A54730", //Kinnikuman: Kanpeki Choujin Shiso-hen "A59162", //Kinnikuman: Kanpeki Choujin Shiso-hen Episode 0 "A59914", //Kinnikuman: Kanpeki Choujin Shiso-hen Season 2 "A3281", //Kinnikuman: Kinnikusei Oui Soudatsu-hen "A3278", //Kinnikuman: New York Kikiippatsu! "A3275", //Kinnikuman: Seigi Choujin vs. Kodai Choujin "A3279", //Kinnikuman: Seigi Choujin vs. Senshi Choujin "A3280", //Kinnikuman: Kessen! Shichinin no Seigi Choujin vs. Uchuu Nobushi "A3274", //Kinnikuman: Ooabare! Segi Choujin "A1707", //Kinnikuman II Sei "A12279", //Kinnikuman II Sei Muscle: Ninjin Soudatsu sen! Choujin Daisensou "A6310", //Kinnikuman II Sei: Second Generations "A5967", //Kinnikuman II Sei: Ultimate Muscle "A5968", //Kinnikuman II Sei: Ultimate Muscle 2 "A2048", //Kikou Ryohei Mellowlink "A33191", //Kishibe Rohan wa Ugokanai "A1573", //Kishin Douji Zenki "A5828", //Kishin Douji Zenki Gaiden: Anki Kitan "A766", //Kishin Houkou Demonbane "A1067", //Kishin Houkou Demonbane (TV) "A23753", //Kishin Houkou Demonbane (TV) Specials "A3064", //Kizuoibito "A2346", //Koroshiya 1 The Animation: Episode 0 "A6293", //Koukou Butouden Crows "A2797", //Koukou Tekken-den Tough "A2737", //Kouryuu no Mimi: Mina no Shou "A4198", //Koutetsu Jeeg "A2157", //Koutetsushin Jeeg "A851", //Kyou kara Ore wa!! "A2293", //Kyoushoku Soukou Guyver "A6016", //Kyoushoku Soukou Guyver (1989) "A1374", //Kyoushoku Soukou Guyver (2005) "A1336", //Kyoushoku Soukou Guyver II "A434", //Legend of Lemnear: Kyokuguro no Tsubasa Valkisas "A37506", //Legend of Lemnear: Kyokuguro no Tsubasa Valkisas Pilot Film "A3676", //Machine Robo: Revenge of Chronos "A6577", //Machine Robo: Leina, The Legend of Wolf Blade "A474", //Macross Plus "A1211", //Macross Plus Movie Edition "A3448", //Mad★Bull 34 "A1455", //Makai Tenshou "A499", //Makai Toshi Shinjuku "A1628", //Maou Dante "A6061", //Maryuu Senki "A2253", //Mazinger Z "A10625", //Mazinger Z (Movie) "A34820", //Mazinger Z Movie: Infinity "A3898", //Mazinger Z tai Devilman "A4388", //Mazinger Z tai Dr. Hell "A4406", //Mazinger Z tai Ankoku Daishougun "A1064", //Mazinkaiser "A8666", //Mazinkaiser SKL "A2734", //Mazinkaiser: Shitou! Ankoku Dai Shogun "A1286", //MD Geist II: Death Force "A36563", //Megalo Box "A37703", //Megalo Box Specials "A16255", //Meisou-Ou Border "A1879", //Midnight Eye: Gokuu "A1880", //Midnight Eye: Gokuu II "A5386", //Miyamoto Musashi: Souken ni Haseru Yume "A1941", //Moonlight Mile 1st Season: Lift Off "A2929", //Moonlight Mile 2nd Season: Touch Down "A6946", //Mudazumo Naki Kaikaku: The Legend of Koizumi "A39806", //Mugen no Juunin: Immortal "A4617", //Nana Toshi Monogatari: Hokkyokukai Sensen "A6030", //Needless "A8935", //Nekketsu Uchuujin "A36517", //Ninja Batman "A58964", //Ninja Batman tai Yakuza League "A619", //Ninja Ryuukenden "A23605", //Ninja Slayer From Animation "A19855", //Nobunagun "A39539", //No Guns Life "A40529", //No Guns Life 2nd Season "A40729", //Nomad: Megalo Box 2 "A48678", //Nomad: Megalo Box 2 Short Anime "A7836", //Notari Matsutarou "A5040", //One Outs "A30276", //One Punch Man "A34134", //One Punch Man 2nd Season "A39652", //One Punch Man 2nd Season Commemorative Special "A39705", //One Punch Man 2nd Season Specials "A62653", //One Punch Man 2nd Season: Ichigeki de Wakaru! Maji Furikaeri! "A52807", //One Punch Man 3 "A31704", //One Punch Man: Road to Hero "A31772", //One Punch Man Specials "A33983", //Onihei "A28297", //Ore Monogatari!! "A6031", //Osu!! Karate Bu "A17903", //Otokogi "A35848", //Promare "A39991", //Promare: Galo-hen "A40313", //Promare: Lio-hen "A1027", //Psychic Force "A6114", //Rainbow: Nisha Rokubou no Shichinin "A6675", //Redline "A11483", //Redline Pilot "A917", //Riding Bean "A3509", //Riki-Oh: Toukatsu Jigoku "A3511", //Riki-Oh 2: Horobi no Ko "A23", //Ring ni Kakero 1 "A7793", //Ring ni Kakero 1: Kage Dou-hen "A1771", //Ring ni Kakero 1: Nichibei Kessen-hen "A34307", //Ring ni Kakero 1 Pilot "A10346", //Ring ni Kakero 1: Sekai Taikai-hen "A9077", //Rokudenashi Blues "A9078", //Rokudenashi Blues 1993 "A6591", //Rurouni Kenshin DVD-BOX Special Ending "A45", //Rurouni Kenshin: Meiji Kenkaku Romantan "A50613", //Rurouni Kenshin: Meiji Kenkaku Romantan (2023) "A46", //Rurouni Kenshin: Meiji Kenkaku Romantan - Ishinshishi e no Chinkonka "A57554", //Rurouni Kenshin: Meiji Kenkaku Romantan - Kyoto Douran "A401", //Rurouni Kenshin: Meiji Kenkaku Romantan - Seisou-hen "A11441", //Rurouni Kenshin: Meiji Kenkaku Romantan - Shin Kyoto-hen "A44", //Rurouni Kenshin: Meiji Kenkaku Romantan - Tsuioku-hen "A10334", //Rurouni Kenshin Recap "A9716", //Rurouni Kenshin: Review Special "A12067", //Rurouni Kenshin Special "A4664", //Rurouni Kenshin: Special Techniques "A1254", //Saint Seiya "A1256", //Saint Seiya: Jashin Eris "A1258", //Saint Seiya: Kamigami no Atsuki Tatakai "A36040", //Saint Seiya: Knights of the Zodiac "A52273", //Saint Seiya: Knights of the Zodiac - Battle Sanctuary "A53748", //Saint Seiya: Knights of the Zodiac - Battle Sanctuary Part 2 "A10687", //Saint Seiya: Legend of Sanctuary "A3515", //Saint Seiya: Meiou Hades Elysion-hen "A1257", //Saint Seiya: Meiou Hades Juuni Kyuu-hen "A6154", //Saint Seiya: Meiou Hades Juuni Kyuu-hen - Yomigaerishi Gold Saint-tachi no Shinwa "A1253", //Saint Seiya: Meiou Hades Meikai-hen "A12929", //Saint Seiya Omega "A6153", //Saint Seiya Recap "A1260", //Saint Seiya: Saishuu Seisen no Senshi-tachi "A34539", //Saint Seiya: Saintia Shou "A1255", //Saint Seiya: Shinku no Shounen Densetsu "A28215", //Saint Seiya: Soul of Gold "A1259", //Saint Seiya: Tenkai-hen Josou - Overture "A6171", //Saint Seiya: The Lost Canvas - Meiou Shinwa "A9130", //Saint Seiya: The Lost Canvas - Meiou Shinwa 2 "A114", //Sakigake!! Cromartie Koukou "A2903", //Sakigake!! Otokojuku "A4031", //Sakigake!! Otokojuku Movie "A1608", //Salaryman Kintarou "A166", //Samurai 7 "A205", //Samurai Champloo "A33734", //Samurai Noodles: The Originator "A2698", //Sanctuary "A3067", //Saraba Uchuu Senkan Yamato: Ai no Senshi-tachi "A168", //s.CRY.ed "A10592", //s.CRY.ed Alteration I: Tao "A12223", //s.CRY.ed Alteration II: Quan "A400", //Seihou Bukyou Outlaw Star "A4650", //Seihou Bukyou Outlaw Star Pilot "A33713", //Seihou Bukyou Outlaw Star Specials "A3882", //Seijuuki Cyguard "A5355", //Sengoku Basara "A23201", //Sengoku Basara: Judge End "A9745", //Sengoku Basara Movie: The Last Party "A6581", //Sengoku Basara: Setonai no Gekitotsu! Hi wo Fuku Umi no Daiyousai - Fugaku!! "A6634", //Sengoku Basara Two "A10483", //Sengoku Basara Two: Ryuko, Itadaki no Chikai! Atsuki Mirai e Kakeru Tamashii!! "A3005", //Shadow Skill "A679", //Shadow Skill (1996) "A678", //Shadow Skill: Eigi "A1099", //Shadow Skill: Kurudaryuu Kousatsuhou no Himitsu "A18683", //Shibai Taroka "A2216", //Shigurui "A1559", //Shijou Saikyou no Deshi Kenichi "A11813", //Shijou Saikyou no Deshi Kenichi OVA "A24029", //Shijou Saikyou no Deshi Kenichi Specials "A884", //Shin Angyo Onshi "A2342", //Shin Choujin Densetsu Urotsukidouji Mataiden "A2978", //Shin Getter Robo "A938", //Shin Getter Robo tai Neo Getter Robo "A1357", //Shin Hokuto no Ken "A3398", //Shin Hurricane Polymar "A5485", //Shin Mazinger Shougeki! Z-Hen "A9749", //Shin Otokogi "A4810", //Shinzou Ningen Casshern "A1913", //Shonan Junai Gumi! "A52642", //Shounen Sunday CM: Shijou Saikyou no Deshi Kenichi "A1451", //Shuranosuke Zanmaken: Shikamamon no Otoko "A1227", //Shuten Douji "A2161", //Skull Man "A170", //Slam Dunk "A2499", //Slam Dunk: Hoero Basketman-damashii Hanamichi to Rukawa no Atsuki Natsu "A52159", //Slam Dunk: Ketsui no Shouhoku Basket-bu "A1764", //Slam Dunk (Movie) "A2498", //Slam Dunk: Shouhoku Saidai no Kiki Moero Sakuragi Hanamichi "A1861", //Slam Dunk: Zenkoku Seiha Da Sakuragi Hanamichi "A1285", //Soukihei MD Geist "A2582", //Soukou Kihei Votoms "A2584", //Soukou Kihei Votoms: Big Battle "A8017", //Soukou Kihei Votoms: Gen-ei Hen "A2586", //Soukou Kihei Votoms: Kakuyaku taru Itan "A8250", //Soukou Kihei Votoms: Koei Futatabi "A3256", //Soukou Kihei Votoms: Pailsen Files "A7536", //Soukou Kihei Votoms: Pailsen Files the Movie "A2585", //Soukou Kihei Votoms: Red Shoulder Document - Yabou no Roots "A2583", //Soukou Kihei Votoms: The Last Red Shoulder "A12439", //Soukou Kihei Votoms: Vol.1 Stories of the 'A.T. Votoms' "A12441", //Soukou Kihei Votoms: Vol.2 Highlights of the 'A.T. Votoms' "A12337", //Soukou Kihei Votoms Recaps "A1345", //Soujuu Senshi Psychic Wars "A5226", //Souten Kouro "A1541", //Souten no Ken "A36655", //Souten no Ken: Regenesis "A37388", //Souten no Ken: Regenesis 2nd Season "A3864", //Souten no Ken Specials "A2452", //Space Adventure Cobra "A2451", //Space Cobra "A5742", //Space Cobra Pilot "A20057", //Space☆Dandy "A25635", //Space☆Dandy Picture Drama "A23327", //Space☆Dandy 2nd Season "A30246", //Space☆Dandy 2nd Season Picture Drama "A1081", //Space Pirate Captain Herlock: Outside Legend - The Endless Odyssey "A420", //Spriggan "A39489", //Spriggan (ONA) "A14629", //Starship Troopers: Invasion "A36194", //Starship Troopers: Red Planet "A61469", //Steel Ball Run: JoJo no Kimyou na Bouken "A3086", //Strait Jacket "A2418", //Stranger: Mukou Hadan "A14617", //Stranger: Mukou Hadan Pilot "A950", //Street Fighter Alpha: Generations "A876", //Street Fighter II V "A1362", //Street Fighter II Movie "A17379", //Street Fighter II: Yomigaeru Fujiwara-Kyou - Toki wo Kaketa Fighter-tachi "A41873", //Street Fighter IV: Aftermath "A5369", //Street Fighter IV: Aratanaru Kizuna "A979", //Street Fighter Zero The Animation "A37885", //Super Dragon Ball Heroes "A3252", //Super Express Mazinger 7 "A1603", //Super Robot Taisen OG: Divine Wars "A4075", //Super Robot Taisen OG: Divine Wars Special "A1544", //Super Robot Taisen OG: The Animation "A9241", //Super Robot Taisen OG: The Inspector "A8026", //Super Street Fighter IV "A2257", //Taiyou no Kiba Dagram "A4427", //Tatakae!! Ramenman "A16728", //Tatakae!! Ramenman (Movie) "A537", //Tekken "A51347", //Tekken: Bloodline "A10702", //Tekken: Blood Vengeance "A2001", //Tengen Toppa Gurren Lagann "A5947", //Tengen Toppa Gurren Lagann Movie: Lagann-hen Special - Viral no Amai Yume "A4107", //Tengen Toppa Gurren Lagann Movie: Gurren-hen "A4565", //Tengen Toppa Gurren Lagann Movie: Lagann-hen "A3352", //Tengen Toppa Gurren Lagann: Mitee Mono wa Miteen da!! "A10622", //Tengen Toppa Gurren Lagann: Ore no Gurren wa Pikka-Pika!! "A4705", //Tengen Toppa Gurren Lagann Parallel Works "A8348", //Tengen Toppa Gurren Lagann Parallel Works 2 "A174", //Tenjou Tenge "A760", //Tenjou Tenge: The Past Chapter "A448", //Tenjou Tenge: The Ultimate Fight "A23723", //Teppen "A22687", //Terra Formars "A22689", //Terra Formars: Bugs 2-hen "A34532", //Terra Formars: Earth-hen "A31430", //Terra Formars Revenge "A2500", //The Cockpit "A45649", //The First Slam Dunk "A58047", //The King of Fighters: Awaken PV "A35204", //The King of Fighters: Destiny "A48582", //The King of Fighters XV "A4714", //The Rapeman "A3009", //Tiger Mask "A18061", //Tiger Mask (Movie) "A18063", //Tiger Mask Fuku Men League Sen "A5832", //Tiger Mask Nisei "A32881", //Tiger Mask W "A1703", //Tokyo Tribe 2 "A10033", //Toriko "A10074", //Toriko 3D: Kaimaku Gourmet Adventure!! "A11787", //Toriko: Barbarian Ivy wo Hokaku Seyo! "A6941", //Toriko: Jump Super Anime Tour 2009 Special "A17699", //Toriko Movie: Bishokushin no Special Menu "A658", //Touhai Densetsu Akagi: Yami ni Maiorita Tensai "A6", //Trigun "A4106", //Trigun: Badlands Rumble "A52093", //Trigun Stampede "A54863", //Trigun Stargaze "A1000", //Uchuu Kaizoku Captain Herlock "A2470", //Uchuu Kaizoku Captain Herlock: Arcadia-gou no Nazo "A1458", //Uchuu no Kishi Tekkaman "A1459", //Uchuu no Kishi Tekkaman Blade "A1460", //Uchuu no Kishi Tekkaman Blade II "A2299", //Uchuu no Kishi Tekkaman Blade OVA: Burning Clock "A2301", //Uchuu no Kishi Tekkaman Blade OVA: Missing Link "A2300", //Uchuu no Kishi Tekkaman Blade OVA: Twin Blood "A2516", //Uchuu no Senshi "A1650", //Uchuu Senkan Yamato "A1651", //Uchuu Senkan Yamato 2 "A12029", //Uchuu Senkan Yamato 2199 "A23249", //Uchuu Senkan Yamato 2199: Hoshimeguru Hakobune "A23931", //Uchuu Senkan Yamato 2199: Tsuioku no Koukai "A33064", //Uchuu Senkan Yamato 2202: Ai no Senshi-tachi "A40389", //Uchuu Senkan Yamato 2205: Aratanaru Tabidachi "A3071", //Uchuu Senkan Yamato: Aratanaru Tabidachi "A7144", //Uchuu Senkan Yamato: Fukkatsu-hen "A53625", //Uchuu Senkan Yamato II: Yamato yo Eien Nare "A1652", //Uchuu Senkan Yamato III "A53604", //Uchuu Senkan Yamato III: Taiyoukei no Hakai "A3072", //Uchuu Senkan Yamato: Kanketsu-hen "A711", //Uchuu Senkan Yamato (Movie) "A37082", //Uchuu Senkan Yamato Pilot Film "A40554", //"Uchuu Senkan Yamato" to Iu Jidai: Seireki 2202-nen no Sentaku "A1985", //UFO Robo Grendizer "A4387", //UFO Robo Grendizer tai Great Mazinger "A36858", //Usuzumizakura: Garo "A732", //Vampire Hunter D "A543", //Vampire Hunter D: Bloodlust "A1765", //Vampire Sensou "A48617", //Vegeta Super Yasaijin ni Narou-hen "A37521", //Vinland Saga "A49387", //Vinland Saga Season 2 "A54463", //Vinland Saga Season 2: Drowning in the Shadow "A55272", //Vinland Saga Season 2: Same Old Story "A1341", //Violence Jack: Harlem Bomber-hen "A1343", //Violence Jack: Hell's Wind-hen "A1342", //Violence Jack: Jigoku Gai-hen "A961", //Virtua Fighter "A36937", //Virtua Fighter: Costomize Clip "A1560", //Voltage Fighter Gowcaizer "A2202", //Waga Seishun no Arcadia "A2203", //Waga Seishun no Arcadia: Mugen Kidou SSX "A1959", //Wild 7 "A1745", //Wild 7 Another Bouryaku Unga "A6918", //Wolverine "A32534", //Xiyouji zhi Dasheng Guilai "A6718", //Yamato 2520 "A3069", //Yamato yo Towa ni "A50855", //Yamato yo, Towa ni: Rebel 3199 "A43697", //Yasuke "A10113", //Yokohama Meibutsu: Otoko Katayama-gumi! "A32615", //Youjo Senki "A37055", //Youjo Senki Movie "A49236", //Youjo Senki: Sabaku no Pasta Daisakusen "A34904", //Youjo Senki: Senkyou Houkoku "A1107", //Youjuu Toshi "A1484", //Youma "A30740", //Young Black Jack "A1677", //Young Herlock wo Oe! Cosmo Warrior Zero Gaiden "A1766", //Youseiki Suikoden "A3325", //Yuusha Exkaiser "A890", //Yuusha-Ou GaoGaiGar "A1382", //Yuusha-Ou GaoGaiGar Final "A4416", //Yuusha-Ou GaoGaiGar Final Grand Glorious Gathering "A392", //Yuu☆Yuu☆Hakusho "A2125", //Yuu☆Yuu☆Hakusho: Eizou Hakusho - Ankoku Bujutsukai no Shou "A2126", //Yuu☆Yuu☆Hakusho: Eizou Hakusho II "A42880", //Yuu☆Yuu☆Hakusho: Eizou Hakusho - Opening Ending Encyclopedia "A883", //Yuu☆Yuu☆Hakusho: Meikai Shitou-hen - Honoo no Kizuna "A882", //Yuu☆Yuu☆Hakusho (Movie) "A36951", //Yuu☆Yuu☆Hakusho: Two Shots/Noru ka Soru ka "A11837" //Zetman ] } } ================================================ FILE: data/achievement/anime-historical.json ================================================ { "media": "A", "order": 103, "achievements": [ { "threshold": "20-39", "id": "anime-historical-1", "level": "Historical: level 1", "title": "History Class", "desc": "History doesn't have to be boring. There's a lot to learn." }, { "threshold": "40-79", "id": "anime-historical-2", "level": "Historical: level 2", "title": "A Look at Passing Time", "desc": "Instead of dreaming of the future, you prefer to look back at the past." }, { "threshold": "80-159", "id": "anime-historical-3", "level": "Historical: level 3", "title": "Archaeologist", "desc": "You have learned that sometimes going further just isn't worth it. And yet you try." }, { "threshold": "160+", "id": "anime-historical-4", "level": "Historical: level MAX", "title": "Time Machine", "desc": "Kids these days are boring. You'd rather watch something heartwarming about siblings catching fireflies." } ], "requirement": { "type": "genre-title", "genre": 13, "titles": [ "A12561", //Benkei tai Ushiwaka "A2800", //Candy Candy "A723", //Candy Candy (Movie) "A2802", //Candy Candy: Candy no Natsuyasumi "A2801", //Candy Candy: Haru no Yobigoe "A2830", //Chibikko Remi to Meiken Kapi "A724", //Enzai "A2553", //Flanders no Inu "A2623", //Flanders no Inu (Movie) "A24679", //Flanders no Inu Specials "A3381", //Fushigi no Umi no Nadia Specials "A7775", //Futatsu no Kurumi "A26283", //Gin no Rousokutate "A336", //Ginyuu Mokushiroku Meine Liebe "A1663", //Haha wo Tazunete Sanzenri "A23585", //Haha wo Tazunete Sanzenri Specials "A2405", //Hello! Lady Lynn "A4800", //Huckleberry Finn Monogatarii "A2831", //Ie Naki Ko (Movie) "A2829", //Ie Naki Ko Remi "A10471", //Ie Naki Ko Remi Specials "A25087", //Ie Naki Ko Remi Specials (2001) "A249", //InuYasha "A6811", //InuYasha: Kanketsu-hen "A4886", //InuYasha: Kuroi Tessaiga "A5900", //Jean Valjean Monogatari "A618", //Juubee Ninpuuchou: Ryuuhougyoku-hen "A5305", //Koihime†Musou OVA "A6707", //Kuroshitsuji II "A9136", //Kuroshitsuji II Specials "A8068", //Kuroshitsuji Picture Drama "A6163", //Kuroshitsuji Recap "A6793", //Kuroshitsuji Special "A9773", //Lady Lady!! (1988) "A4926", //Marco: Haha wo Tazunete Sanzenri "A912", //Ninku "A16345", //Ninku: Knife no Bohyou "A8487", //Onigamiden "A6884", //Ookami to Koushinryou II Specials "A9716", //Rurouni Kenshin: Review Special "A4664", //Rurouni Kenshin: Special Techniques "A839", //Samurai Spirits 2: Asura Zanmaden "A7774", //Shin Koihime†Musou OVA "A8635", //Shin Koihime†Musou: Live Revolution "A10297", //Shin Koihime†Musou: Otome Tairan OVA "A173", //Tactics "A8961", //Tono to Issho: Ippunkan Gekijou "A5917", //Tsuru ni Notte: Tomoko no Bouken "A4132" //Wakakusa no Yon Shimai ] } } ================================================ FILE: data/achievement/anime-horror-thriller.json ================================================ { "media": "A", "order": 104, "achievements": [ { "threshold": "10-19", "id": "anime-horror-thriller-1", "level": "Horror: level 1", "title": "Paranoia Fuel", "desc": "It's not like you needed to sleep tonight, anyway." }, { "threshold": "20-39", "id": "anime-horror-thriller-2", "level": "Horror: level 2", "title": "Too Many Teeth", "desc": "You know something is following you. You just don't know what." }, { "threshold": "40-79", "id": "anime-horror-thriller-3", "level": "Horror: level 3", "title": "Extreme Phobia", "desc": "You are terrified; you are transfixed." }, { "threshold": "80+", "id": "anime-horror-thriller-4", "level": "Trauma: level MAX", "title": "Flowers of Flesh and Blood", "desc": "It's far too late, now." } ], "requirement": { "type": "genre-title", "genre": 14 } } ================================================ FILE: data/achievement/anime-light-novel.json ================================================ { "media": "A", "order": 301, "achievements": [ { "threshold": "20-39", "id": "anime-light-novel-1", "level": "Light Novel: level 1", "title": "First Chapter", "desc": "Some stories need more progress. Yours is one of those." }, { "threshold": "40-79", "id": "anime-light-novel-2", "level": "Light Novel: level 2", "title": "Searcher", "desc": "Everyone has a role. Which is yours?" }, { "threshold": "80-159", "id": "anime-light-novel-3", "level": "Light Novel: level 3", "title": "The Realization", "desc": "What matters is in the heart. You feel like you can start to see everyone's intentions just by looking at them." }, { "threshold": "160+", "id": "anime-light-novel-4", "level": "Light Novel: level MAX", "title": "New Self", "desc": "You have acquired the storytelling and character development required to move your world forward." } ], "requirement": { "type": "source-title", "source": 7 } } ================================================ FILE: data/achievement/anime-mahou-shoujo.json ================================================ { "media": "A", "order": 105, "achievements": [ { "threshold": "6-11", "id": "anime-mahou-shoujo-1", "level": "Mahou Shoujo: level 1", "title": "Signed the Contract", "desc": "Became a magical girl and started saving the world, step by step." }, { "threshold": "12-23", "id": "anime-mahou-shoujo-2", "level": "Mahou Shoujo: level 2", "title": "Magic Is My Middle Name", "desc": "Transformed into a magical girl: level two. In the name of the Moon, I will punish you!" }, { "threshold": "24-47", "id": "anime-mahou-shoujo-3", "level": "Mahou Shoujo: level 3", "title": "Too Magical to Comprehend", "desc": "Watched so many mahou shoujo anime that you sparkle occasionally." }, { "threshold": "48+", "id": "anime-mahou-shoujo-4", "level": "Mahou Shoujo: MAX POWER", "title": "Are You a Wizard", "desc": "All limiters removed. You can call yourself a god, a wizard, or whatever you wish. You set the rules." } ], "requirement": { "type": "genre-title", "genre": 66 } } ================================================ FILE: data/achievement/anime-mecha.json ================================================ { "media": "A", "order": 106, "achievements": [ { "threshold": "20-39", "id": "anime-mecha-1", "level": "Mecha: level 1", "title": "Me? PILOT This Thing?!", "desc": "A secret organization wants you to pilot a huge mecha. Can you do it?" }, { "threshold": "40-79", "id": "anime-mecha-2", "level": "Mecha: level 2", "title": "Engineer", "desc": "After watching over 40 mecha anime you should be able to build your own mobile suit. Remember not to kill the rest of us." }, { "threshold": "80-159", "id": "anime-mecha-3", "level": "Mecha: level 3", "title": "Mechazawa", "desc": "Having watched over 80 mecha anime, you've probably become a robot already. Nice job, hero." }, { "threshold": "160+", "id": "anime-mecha-4", "level": "Mecha: level MAX", "title": "Pierce the HEAVENS!", "desc": "Do the impossible. See the invisible. ROW ROW FIGHT THE POWAH! You just sang that in your head, didn't you?" } ], "requirement": { "type": "genre-title", "genre": 18 } } ================================================ FILE: data/achievement/anime-music.json ================================================ { "media": "A", "order": 107, "achievements": [ { "threshold": "20-39", "id": "anime-music-1", "level": "Music: level 1", "title": "Gettin' Your Keys On!", "desc": "You don't know what you've just listened to, but you like it." }, { "threshold": "40-79", "id": "anime-music-2", "level": "Music: level 2", "title": "This Is Even Better Live", "desc": "Proudly display the badges you have earned in the fancafe." }, { "threshold": "80-159", "id": "anime-music-3", "level": "Music: level 3", "title": "Dreaming of the City", "desc": "Your musical knowledge has expanded so much you are tempted to make a career out of it." }, { "threshold": "160+", "id": "anime-music-4", "level": "Music: level SUPERSTAR", "title": "Hall of Fame", "desc": "The stage is now your second home." } ], "requirement": { "type": "genre-title", "genre": 19 } } ================================================ FILE: data/achievement/anime-mystery.json ================================================ { "media": "A", "order": 108, "achievements": [ { "threshold": "14-27", "id": "anime-mystery-1", "level": "Mystery: level 1", "title": "Growing Suspicions", "desc": "It's suspicious because nothing looks suspicious, and if it looks suspicious from the start it's obviously suspicious." }, { "threshold": "28-55", "id": "anime-mystery-2", "level": "Mystery: level 2", "title": "Detective's Assistant", "desc": "Now it's your business to know what other people don't know too." }, { "threshold": "56-111", "id": "anime-mystery-3", "level": "Mystery: level 3", "title": "Genius Detective", "desc": "You're already a genius at unraveling mysteries... but how is it possible that everywhere you go someone ends up dead?" }, { "threshold": "112+", "id": "anime-mystery-4", "level": "Mystery: level MAX", "title": "Golden Truth", "desc": "You can solve any mystery by now. The path to the Golden Land has already been revealed to you." } ], "requirement": { "type": "genre-title", "genre": 7 } } ================================================ FILE: data/achievement/anime-original.json ================================================ { "media": "A", "order": 301, "achievements": [ { "threshold": "20-39", "id": "anime-original-1", "level": "Original: level 1", "title": "Uncharted Waters", "desc": "You have just stumbled across a wonderful, strange new world." }, { "threshold": "40-79", "id": "anime-original-2", "level": "Original: level 2", "title": "Into the Jungle", "desc": "The deeper you go, the less you want out." }, { "threshold": "80-159", "id": "anime-original-3", "level": "Original: level 3", "title": "Center of the Earth", "desc": "You have forgotten about the outside world; nature has assimilated you. An apple falls - not only have you flowered, you have produced fruit." }, { "threshold": "160+", "id": "anime-original-4", "level": "Original: level MAX", "title": "Transcendence", "desc": "You have been returned to the primordial ocean. From the highest point in the sky, you can peer into every universe, and lose yourself in an infinity of stories." } ], "requirement": { "type": "source-title", "source": 1 } } ================================================ FILE: data/achievement/anime-pervert-0.json ================================================ { "media": "A", "order": 307, "achievements": [ { "threshold": "0-24.99", "id": "anime-pervert-0", "level": "Saint", "title": "Innocent One", "desc": "Puritan, oblivious, or serial killer in the making? Either way, you made it through No Man's Land without glimpsing a single bra. Good job!", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/anime-pervert-1.json ================================================ { "media": "A", "order": 307, "achievements": [ { "threshold": "25-49.99", "id": "anime-pervert-1", "level": "\"Plot\"", "title": "I Watch Anime Only for the Plot...", "desc": "It's not your fault that there is so much fan service... Right?", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/anime-pervert-2.json ================================================ { "media": "A", "order": 307, "achievements": [ { "threshold": "50-74.99", "id": "anime-pervert-2", "level": "Naughty", "title": "Only Accidents! I Swear!", "desc": "Physics in anime are incredible. When you trip, you always cop a feel.", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/anime-pervert-3.json ================================================ { "media": "A", "order": 307, "achievements": [ { "threshold": "75-100", "id": "anime-pervert-3", "level": "Pervert", "title": "Hentai Overlord", "desc": "No use denying it! You know what you are...", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/anime-re.json ================================================ { "media": "A", "order": 310, "achievements": [ { "threshold": "20+", "id": "anime-re", "level": "Looping...", "title": "Endless Eight", "desc": "Is the replay button stuck?" } ], "requirement": { "type": "re" } } ================================================ FILE: data/achievement/anime-release-classic.json ================================================ { "media": "A", "order": 305, "achievements": [ { "threshold": "20-39", "id": "anime-release-classic-1", "level": "Classics: level 1", "title": "Cassette Tape", "desc": "The first time you watched these, you didn't even know what they were." }, { "threshold": "40-79", "id": "anime-release-classic-2", "level": "Classics: level 2", "title": "Solid Color", "desc": "Bomber jackets, high-waisted jeans, an overload of patterns, and bishies everywhere." }, { "threshold": "80-159", "id": "anime-release-classic-3", "level": "Classics: level 3", "title": "It's Raining... Tragic Backstories!", "desc": "It might be the nostalgia lens, but you swear things had more substance back then." }, { "threshold": "160+", "id": "anime-release-classic-4", "level": "Nostalgia: level MAX", "title": "Blockbuster", "desc": "Man, do you feel old as all hell." } ], "requirement": { "type": "release-classic" } } ================================================ FILE: data/achievement/anime-release-old.json ================================================ { "media": "A", "order": 304, "achievements": [ { "threshold": "20+", "id": "anime-release-old", "level": "Pre-1980 Anime", "title": "VHS Master Race", "desc": "You overwrote my cartoons with The Karate Kid?! MOOOM!" } ], "requirement": { "type": "release-old" } } ================================================ FILE: data/achievement/anime-romance.json ================================================ { "media": "A", "order": 109, "achievements": [ { "threshold": "20-39", "id": "anime-romance-1", "level": "Romance: level 1", "title": "Stalker", "desc": "I'll stalk you so hard you won't notice me for 24 episodes. Why don't you love me yet?" }, { "threshold": "40-79", "id": "anime-romance-2", "level": "Romance: level 2", "title": "Unrequited Love", "desc": "If you won't confess, they'll never know how you feel. But don't bother if you're the best girl - these never win." }, { "threshold": "80-159", "id": "anime-romance-3", "level": "Romance: level 3", "title": "Sparkles and Bubbles", "desc": "Every time you two get close you feel butterflies in your stomach. Now kiss." }, { "threshold": "160+", "id": "anime-romance-4", "level": "Romance: FULL LOVE", "title": "Heart Full of Love", "desc": "So many romance anime! You surely are an expert in relationships already." } ], "requirement": { "type": "genre-title", "genre": [ 22, 26, 28, 74 ] } } ================================================ FILE: data/achievement/anime-school-days.json ================================================ { "media": "A", "order": 203, "achievements": [ { "threshold": "1+", "id": "anime-school-days", "level": "Nice Boat", "title": "It's Just Me and You Now", "desc": "Awarded for completing School Days. And they say true romance is dead!" } ], "requirement": { "type": "title", "titles": [ "A2476" //School Days ] } } ================================================ FILE: data/achievement/anime-score-high.json ================================================ { "media": "A", "order": 308, "achievements": [ { "threshold": "8.5-10", "id": "anime-score-high", "level": "10/10! EVERYTHING!", "title": "I Love Chinese Cartoons", "desc": "Mean anime score higher than 8.5. How about using the whole scale and re-rating stuff? That could make you look less like a fanboy...", "tooltip": "Mean score: {subject}" } ], "requirement": { "type": "score" } } ================================================ FILE: data/achievement/anime-score-low.json ================================================ { "media": "A", "order": 308, "achievements": [ { "threshold": "3-5", "id": "anime-score-low", "level": "My Eyes! It Hurts!", "title": "Watching Anime Is Suffering", "desc": "Mean anime score lower than 5. Someone has to counterweigh the fanboys, right?", "tooltip": "Mean score: {subject}" } ], "requirement": { "type": "score" } } ================================================ FILE: data/achievement/anime-score-very-low.json ================================================ { "media": "A", "order": 308, "achievements": [ { "threshold": "0-2.99", "id": "anime-score-very-low", "level": "0/10. Play Next One", "title": "Less Than Three", "desc": "Mean anime score lower than 3. Is it hate, or is it love?", "tooltip": "Mean score: {subject}" } ], "requirement": { "type": "score" } } ================================================ FILE: data/achievement/anime-slice-of-life.json ================================================ { "media": "A", "order": 110, "achievements": [ { "threshold": "20-39", "id": "anime-slice-of-life-1", "level": "Slice of Life: level 1", "title": "Normal High School Boy", "desc": "Got started into the furious ride with slice-of-life anime." }, { "threshold": "40-79", "id": "anime-slice-of-life-2", "level": "Slice of Life: level 2", "title": "Cute × ( Girls + Things )", "desc": "Didn't get bored of watching cute girls doing cute things. As if that's possible." }, { "threshold": "80-159", "id": "anime-slice-of-life-3", "level": "Slice of Life: level 3", "title": "Enjoying Life", "desc": "Found the equilibrium between boring and interesting." }, { "threshold": "160+", "id": "anime-slice-of-life-4", "level": "Slice of Life: level MAX", "title": "Prima Undine", "desc": "Awarded Ph.D. degree in slice-of-life-ology. You can teach others how to stay calm and take it easy." } ], "requirement": { "type": "genre-title", "genre": 36 } } ================================================ FILE: data/achievement/anime-space.json ================================================ { "media": "A", "order": 111, "achievements": [ { "threshold": "10-19", "id": "anime-space-1", "level": "Space: level 1", "title": "3... 2... 1... Liftoff!", "desc": "You've taken one small step for man, not such a giant leap for mankind." }, { "threshold": "20-39", "id": "anime-space-2", "level": "Space: level 2", "title": "The Earth Looks So Small from Up Here", "desc": "You're finally outside the atmosphere, but there's still a lot to explore." }, { "threshold": "40-79", "id": "anime-space-3", "level": "Space: level 3", "title": "Interstellar Traveler", "desc": "You've traveled vast interstellar distances and seen many galaxies in your way." }, { "threshold": "80+", "id": "anime-space-4", "level": "Space: level MAX", "title": "Emperor of the Universe", "desc": "You're the ruler of the whole Universe. There's no one with more power than you." } ], "requirement": { "type": "genre-title", "genre": 29 } } ================================================ FILE: data/achievement/anime-sports.json ================================================ { "media": "A", "order": 112, "achievements": [ { "threshold": "14-27", "id": "anime-sports-1", "level": "Sports: level 1", "title": "Knockout!", "desc": "You've held your own in the ring, time to go all the way." }, { "threshold": "28-55", "id": "anime-sports-2", "level": "Sports: level 2", "title": "Get Your Head in the Game", "desc": "The odds are against you, time to get in the zone." }, { "threshold": "56-111", "id": "anime-sports-3", "level": "Sports: level 3", "title": "Welcome to the Big Leagues", "desc": "There's no stopping you, just one final push." }, { "threshold": "112+", "id": "anime-sports-4", "level": "Sports: level MAX", "title": "Olympian", "desc": "First across the finish line, great job!" } ], "requirement": { "type": "genre-title", "genre": 30 } } ================================================ FILE: data/achievement/anime-studio-ghibli.json ================================================ { "media": "A", "order": 201, "achievements": [ { "threshold": "10+", "id": "anime-studio-ghibli", "level": "Studio Ghibli", "title": "Memories", "desc": "Once you've seen them, you can never forget them." } ], "requirement": { "type": "title", "titles": [ "A2890", //Gake no Ue no Ponyo "A1829", //Gedo Senki "A1030", //Heisei Tanuki Gassen Ponpoko "A578", //Hotaru no Haka "A431", //Howl no Ugoku Shiro "A16664", //Kaguya-hime no Monogatari "A7711", //Karigurashi no Arrietty "A16662", //Kaze Tachinu "A36699", //Kimitachi wa Dou Ikiru ka "A10029", //Kokurikozaka kara "A416", //Kurenai no Buta "A512", //Majo no Takkyuubin "A585", //Mimi wo Sumaseba "A164", //Mononoke Hime "A597", //Neko no Ongaeshi "A199", //Sen to Chihiro no Kamikakushi "A513", //Tenkuu no Shiro Laputa "A523", //Tonari no Totoro "A415", //Tonari no Yamada-kun "A21557", //Omoide no Marnie "A1029", //Omoide Poroporo "A743" //Umi ga Kikoeru ] } } ================================================ FILE: data/achievement/anime-time.json ================================================ { "media": "A", "order": 311, "achievements": [ { "threshold": "14-91.24", "id": "anime-time-1", "level": "Time: level 1", "title": "Hair Antenna", "desc": "Whose watchtime are you calling puny‽" }, { "threshold": "91.25-182.49", "id": "anime-time-2", "level": "Time: level 2", "title": "Endurance Training", "desc": "By doing a daily ten-episode run, you are sure to become a master in no time!" }, { "threshold": "182.50-364.99", "id": "anime-time-3", "level": "Time: level 3", "title": "Consciousness Upload", "desc": "Consuming the medium becomes a lot easier once you yourself are raw data." }, { "threshold": "365+", "id": "anime-time-4", "level": "Youth: WASTED", "title": "Wicked Cultured", "desc": "By making a deal with the devil, you have ensured access to even the most obscure of materials." } ], "requirement": { "type": "time" } } ================================================ FILE: data/achievement/anime-year.json ================================================ { "media": "A", "order": 306, "achievements": [ { "threshold": "40+", "id": "anime-year", "level": "Tempus Fugit", "title": "Chronomaster", "desc": "Your discerning eye has traveled across the aeons of animation." } ], "requirement": { "type": "year" } } ================================================ FILE: data/achievement/manga-dropped-0.json ================================================ { "media": "M", "order": 307, "achievements": [ { "threshold": "10+", "id": "manga-dropped-0", "level": "And It Still Hurts", "title": "I've Seen Some Sh**", "desc": "Despite seemingly endless suffering, you've never dropped any manga. That's impressive." } ], "requirement": { "type": "dropped-0" } } ================================================ FILE: data/achievement/manga-finished.json ================================================ { "media": "M", "order": 310, "achievements": [ { "threshold": "100-199", "id": "manga-finished-100", "level": "Passed 100 Mark", "title": "Casual Reader", "desc": "Read 100 manga. Looks like reading doesn't hurt." }, { "threshold": "200-299", "id": "manga-finished-200", "level": "Passed 200 Mark", "title": "Bookworm", "desc": "Read 200 manga. Sitting in your comfortable chair, reading favorite Korean comics. This is bliss." }, { "threshold": "300-399", "id": "manga-finished-300", "level": "Passed 300 Mark", "title": "Dat Scent", "desc": "Read 300 manga. There's nothing better than the smell of freshly opened book. Or a PDF." }, { "threshold": "400-499", "id": "manga-finished-400", "level": "Passed 400 Mark", "title": "Where Do I Put These?", "desc": "Read 400 manga. Consider investing in another bookshelf, or you'll be swimming in books soon." }, { "threshold": "500-749", "id": "manga-finished-500", "level": "Passed 500 Mark", "title": "Half a Grand", "desc": "Read 500 manga. Now think of what kind of person you'd be if you didn't start reading manga then. On that particular day..." }, { "threshold": "750-999", "id": "manga-finished-750", "level": "Passed 750 Mark", "title": "Read or Die", "desc": "Read 750 manga. You managed to make a bow out of paper, but remember that cellulose fibers don't work well as a bulletproof shield." }, { "threshold": "1000-1499", "id": "manga-finished-1000", "level": "Passed 1000 Mark", "title": "Librarian", "desc": "Read 1000 manga. You work with books, right? Right?" }, { "threshold": "1500-2499", "id": "manga-finished-1500", "level": "Passed 1500 Mark", "title": "The Floor Is Books", "desc": "Read 1500 manga. Sleeping on books must be pretty... hard?" }, { "threshold": "2500-4999", "id": "manga-finished-2500", "level": "Passed 2500 Mark", "title": "Still Not Enough", "desc": "Read 2500 manga. In search for the perfect story you've read six lifetimes worth of words. Did you find it?" }, { "threshold": "5000-7499", "id": "manga-finished-5000", "level": "Passed 5000 Mark", "title": "Sleep Deprivation", "desc": "Read 5000 manga. Think of all the mangakas and writers that couldn't sleep just to make this moment happen." }, { "threshold": "7500-9999", "id": "manga-finished-7500", "level": "Passed 7500 Mark", "title": "Reincarnation", "desc": "Read 7500 manga. How, exactly? This is not possible for normal humans." }, { "threshold": "10000+", "id": "manga-finished-10000", "level": "Passed 10000 Mark", "title": "I've Seen It All", "desc": "Read 10000 manga. Ten. Thousand. Manga. An average user's list is shorter than your list of titles starting with \"A\" alone." } ], "requirement": { "type": "finished" } } ================================================ FILE: data/achievement/manga-horror.json ================================================ { "media": "M", "order": 101, "achievements": [ { "threshold": "10-19", "id": "manga-horror-1", "level": "Horror: level 1", "title": "HONEY, I'M HOME", "desc": "WHAT IS FOR DINNER TODAY?" }, { "threshold": "20-39", "id": "manga-horror-2", "level": "Horror: level 2", "title": "Lovely Smile of a Psychopath", "desc": "You can't spell slaughter without laughter." }, { "threshold": "40-79", "id": "manga-horror-3", "level": "Horror: level 3", "title": "What Have I Become?", "desc": "Sweetheart, something's wrong with your make up..." }, { "threshold": "80+", "id": "manga-horror-4", "level": "Horror: level MAX", "title": "Heart Attack", "desc": "Not all surprises are pleasant, but it looks like you love being scared." } ], "requirement": { "type": "genre-title", "genre": 14 } } ================================================ FILE: data/achievement/manga-mahou-shoujo.json ================================================ { "media": "M", "order": 102, "achievements": [ { "threshold": "2-3", "id": "manga-mahou-shoujo-1", "level": "Mahou Shoujo: level 1", "title": "Let Me Lift That Curse", "desc": "If you wish hard enough, you can become a magical girl in the blink of an eye." }, { "threshold": "4-7", "id": "manga-mahou-shoujo-2", "level": "Mahou Shoujo: level 2", "title": "Conflict Breaker", "desc": "Fighting hardly solves any problems. There are better ways to live our lives." }, { "threshold": "8-15", "id": "manga-mahou-shoujo-3", "level": "Mahou Shoujo: level 3", "title": "Aim for the Top", "desc": "Even if you work alone, never forget your friends who helped you overcome all fears." }, { "threshold": "16+", "id": "manga-mahou-shoujo-4", "level": "Mahou Shoujo: MAX POWER", "title": "Complete Control", "desc": "Read over 32 mahou shoujo manga. At this level magic circles form around you at will." } ], "requirement": { "type": "genre-title", "genre": 66 } } ================================================ FILE: data/achievement/manga-mystery.json ================================================ { "media": "M", "order": 103, "achievements": [ { "threshold": "10-19", "id": "manga-mystery-1", "level": "Mystery: level 1", "title": "Curiosity", "desc": "If it is you who is curious, no case shall remain unsolved." }, { "threshold": "20-39", "id": "manga-mystery-2", "level": "Mystery: level 2", "title": "Determination", "desc": "No matter who the villain is... you WILL find out the answers." }, { "threshold": "40-79", "id": "manga-mystery-3", "level": "Mystery: level 3", "title": "Collecting the Pieces", "desc": "Sometimes the smallest bit of information can turn the whole case around." }, { "threshold": "80+", "id": "manga-mystery-4", "level": "Mystery: level MAX", "title": "Raw Intuition", "desc": "Investigative skills honed up. You know the answers just by looking at mere shards of data." } ], "requirement": { "type": "genre-title", "genre": 7 } } ================================================ FILE: data/achievement/manga-novel.json ================================================ { "media": "M", "order": 301, "achievements": [ { "threshold": "10-19", "id": "manga-novel-1", "level": "Novel: level 1", "title": "Cracking the Book", "desc": "You didn't get bored reading plain text." }, { "threshold": "20-39", "id": "manga-novel-2", "level": "Novel: level 2", "title": "IKEA Trip", "desc": "Instead of playing Candy Crush, you now read during transit." }, { "threshold": "40-79", "id": "manga-novel-3", "level": "Novel: level 3", "title": "Personal Library", "desc": "The tales you've read have taken you on a journey you never want to end." }, { "threshold": "80+", "id": "manga-novel-4", "level": "Bookworm: level MAX", "title": "What Is Sleep?", "desc": "The more you've learned, the more you wanted to keep on learning." } ], "requirement": { "type": "novel" } } ================================================ FILE: data/achievement/manga-pervert-0.json ================================================ { "media": "M", "order": 305, "achievements": [ { "threshold": "0-24.99", "id": "manga-pervert-0", "level": "Virgin", "title": "Chastity Belt", "desc": "Mama said that if you touch your no-no square, the Yogi Bear will come and get you. Congratulations on resisting the siren call of h-doujin!", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/manga-pervert-1.json ================================================ { "media": "M", "order": 305, "achievements": [ { "threshold": "25-49.99", "id": "manga-pervert-1", "level": "Eek!", "title": "I Peek Just a Little", "desc": "Wait a minute, this wasn't the men's bath?", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/manga-pervert-2.json ================================================ { "media": "M", "order": 305, "achievements": [ { "threshold": "50-74.99", "id": "manga-pervert-2", "level": "Naughty", "title": "We Need a Blood Donor Here", "desc": "Even if I die from blood loss, I just can't stop...", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/manga-pervert-3.json ================================================ { "media": "M", "order": 305, "achievements": [ { "threshold": "75-100", "id": "manga-pervert-3", "level": "Pervert", "title": "Ero-sennin", "desc": "What do you mean that I am a pervert? I am THE pervert!", "tooltip": "{subject}% pervert" } ], "requirement": { "type": "pervert" } } ================================================ FILE: data/achievement/manga-re.json ================================================ { "media": "M", "order": 308, "achievements": [ { "threshold": "10+", "id": "manga-re", "level": "In Time", "title": "Take Me Back", "desc": "Ah, it's every bit as good as the first time." } ], "requirement": { "type": "re" } } ================================================ FILE: data/achievement/manga-release-old.json ================================================ { "media": "M", "order": 303, "achievements": [ { "threshold": "10+", "id": "manga-release-old", "level": "Pre-1980 Manga", "title": "At the End of the Galaxy", "desc": "Your never-ending journey for the most forgotten comic books has finally paid off." } ], "requirement": { "type": "release-old" } } ================================================ FILE: data/achievement/manga-romance.json ================================================ { "media": "M", "order": 104, "achievements": [ { "threshold": "10-19", "id": "manga-romance-1", "level": "Romance: level 1", "title": "Mixed Feelings", "desc": "98% hatred, 2% love. Give it some time and these two will reverse." }, { "threshold": "20-39", "id": "manga-romance-2", "level": "Romance: level 2", "title": "Love Me or Die", "desc": "Yandere is a form of love too. A rather extreme one, but still!" }, { "threshold": "40-79", "id": "manga-romance-3", "level": "Romance: level 3", "title": "Breaking the Chains", "desc": "With love, nothing is impossible. You just have to let someone break you free of restrictions." }, { "threshold": "80+", "id": "manga-romance-4", "level": "Romance: FULL LOVE", "title": "Heart That Never Stops Beating", "desc": "When I see you, my kokoro goes doki-doki and the sekai starts to spin around. How could I live without you?" } ], "requirement": { "type": "genre-title", "genre": [ 22, 26, 28, 75 ] } } ================================================ FILE: data/achievement/manga-score-high.json ================================================ { "media": "M", "order": 306, "achievements": [ { "threshold": "8.5-10", "id": "manga-score-high", "level": "Dat Plot", "title": "So Good I Can't Handle It", "desc": "Mean manga score above 8.5. Looks like you only pick the best titles to read.", "tooltip": "Mean score: {subject}" } ], "requirement": { "type": "score" } } ================================================ FILE: data/achievement/manga-score-low.json ================================================ { "media": "M", "order": 306, "achievements": [ { "threshold": "3-5", "id": "manga-score-low", "level": "Not Worth My Time", "title": "Professional Critic", "desc": "Mean manga score below 5. Watch out, we got a critic over here.", "tooltip": "Mean score: {subject}" } ], "requirement": { "type": "score" } } ================================================ FILE: data/achievement/manga-score-very-low.json ================================================ { "media": "M", "order": 306, "achievements": [ { "threshold": "0-2.99", "id": "manga-score-very-low", "level": "Lowest of the Low", "title": "Best I Can Do Is 2", "desc": "Mean manga score below 3. Aren't you a bit too harsh?", "tooltip": "Mean score: {subject}" } ], "requirement": { "type": "score" } } ================================================ FILE: data/achievement/manga-sports.json ================================================ { "media": "M", "order": 105, "achievements": [ { "threshold": "10-19", "id": "manga-sports-1", "level": "Sports: level 1", "title": "The Stakes Are High", "desc": "Joined the game for real. The more you read, the more addictive it gets." }, { "threshold": "20-39", "id": "manga-sports-2", "level": "Sports: level 2", "title": "Do You Even Read?", "desc": "Even during the most exhausting excercise you still find time to read. Can't miss a chapter." }, { "threshold": "40-79", "id": "manga-sports-3", "level": "Sports: level 3", "title": "Got Balls", "desc": "Looking at all this struggling inspires you to become strong yourself." }, { "threshold": "80+", "id": "manga-sports-4", "level": "Sports: level MAX", "title": "Kuro Basket", "desc": "You know the rules of all games already. The podium is yours!" } ], "requirement": { "type": "genre-title", "genre": 30 } } ================================================ FILE: data/achievement/manga-time.json ================================================ { "media": "M", "order": 309, "achievements": [ { "threshold": "14-91.24", "id": "manga-time-1", "level": "Time: level 1", "title": "Downward Spiral", "desc": "Once drawn inside this inky whirlpool, you will find yourself sinking faster than the Titanic." }, { "threshold": "91.25-182.49", "id": "manga-time-2", "level": "Time: level 2", "title": "Revelations (18:14)", "desc": "You've developed quite the appetite. Devouring fifty chapters a day doesn't seem challenging to you anymore." }, { "threshold": "182.50-364.99", "id": "manga-time-3", "level": "Time: level 3", "title": "Voluntary Confinement", "desc": "Every title you read brings you closer to your self." }, { "threshold": "365+", "id": "manga-time-4", "level": "Blindness: level BAT", "title": "Apocryphal Sanctuary", "desc": "You've journeyed through hell and heaven, and learned much in your wanderings." } ], "requirement": { "type": "time" } } ================================================ FILE: data/achievement/manga-vampire-demons.json ================================================ { "media": "M", "order": 106, "achievements": [ { "threshold": "10-19", "id": "manga-vampire-demons-1", "level": "Vampires/Demons: level 1", "title": "Sweet Tooth", "desc": "Donuts? Really? You lived for 500 years just to eat them?" }, { "threshold": "20-39", "id": "manga-vampire-demons-2", "level": "Vampires/Demons: level 2", "title": "Vegetarian", "desc": "Some creatures prefer juicy fruits instead of sucking blood or eating raw meat. Weaklings." }, { "threshold": "40-79", "id": "manga-vampire-demons-3", "level": "Vampires/Demons: level 3", "title": "Carnivore", "desc": "Don't mess with me if you want to keep your limbs attached to your body." }, { "threshold": "80+", "id": "manga-vampire-demons-4", "level": "Vampires/Demons: level MAX", "title": "Pure Evil", "desc": "EVIL!!! FANGS! DEMONS! BLOOD! Yeah. That's the stuff." } ], "requirement": { "type": "genre-title", "genre": [6, 32] } } ================================================ FILE: data/achievement/manga-volume-long.json ================================================ { "media": "M", "order": 302, "achievements": [ { "threshold": "10+", "id": "manga-volume-long", "level": "Infinite Stamina", "title": "Long Runner", "desc": "The best stories can't be told in less than 20 volumes." } ], "requirement": { "type": "volume-long" } } ================================================ FILE: data/achievement/manga-yaoi-shounen-ai.json ================================================ { "media": "M", "order": 107, "achievements": [ { "threshold": "10-19", "id": "manga-yaoi-shounen-ai-1", "level": "Boys Love: level 1", "title": "Inner Fujoshi Awakened", "desc": "I was just taking a peek in this manga I accidentally found... and surprisingly liked it." }, { "threshold": "20-39", "id": "manga-yaoi-shounen-ai-2", "level": "Boys Love: level 2", "title": "Not a Day Without BL", "desc": "It's already too late to stop and turn back, just remember to watch your back while reading." }, { "threshold": "40-79", "id": "manga-yaoi-shounen-ai-3", "level": "Boys Love: level 3", "title": "Yaoi Detector", "desc": "I don't care! I ship it!" }, { "threshold": "80+", "id": "manga-yaoi-shounen-ai-4", "level": "Boys Love: level MAX", "title": "Full Fledged Fujoshi", "desc": "Yaoi isn't just a genre to you anymore, it's a way of life." } ], "requirement": { "type": "genre-title", "genre": 28 } } ================================================ FILE: data/achievement/manga-year.json ================================================ { "media": "M", "order": 304, "achievements": [ { "threshold": "40+", "id": "manga-year", "level": "Elder", "title": "Ancient Scholar", "desc": "You witnessed the beginning of the medium. You hope you will not witness its end." } ], "requirement": { "type": "year" } } ================================================ FILE: data/achievement/manga-yuri-shoujo-ai.json ================================================ { "media": "M", "order": 108, "achievements": [ { "threshold": "10-19", "id": "manga-yuri-shoujo-ai-1", "level": "Girls Love: level 1", "title": "But That's Forbidden Love", "desc": "Cute girls doing cute things... right?" }, { "threshold": "20-39", "id": "manga-yuri-shoujo-ai-2", "level": "Girls Love: level 2", "title": "I Kissed a Girl...", "desc": "...and I liked it!" }, { "threshold": "40-79", "id": "manga-yuri-shoujo-ai-3", "level": "Girls Love: level 3", "title": "All Female School", "desc": "There are only girls here to love... but I don't mind it." }, { "threshold": "80+", "id": "manga-yuri-shoujo-ai-4", "level": "Girls Love: level MAX", "title": "Lily", "desc": "You feel it everywhere." } ], "requirement": { "type": "genre-title", "genre": 26 } } ================================================ FILE: data/banned-creators.lst ================================================ ================================================ FILE: data/banned-franchise-coupling.json ================================================ { "A512": //Majo no Takkyuubin [ "A35770" //Hungry Days: Aoharu ka yo. ], "A2225": //Alps no Shoujo Heidi [ "A35770" //Hungry Days: Aoharu ka yo. ], "A2406": //Sazae-san [ "A35770" //Hungry Days: Aoharu ka yo. ], "A35770": //Hungry Days: Aoharu ka yo. [ "A512", //Majo no Takkyuubin "A2225", //Alps no Shoujo Heidi "A2406" //Sazae-san ], "A966": //Crayon Shin-chan [ "A35686" //Doraemon (2005) Specials ], "A1412": //Lupin III [ "A6115" //Lupin III vs. Detective Conan ], "A2354": //Devilman: Tanjou-hen [ "A3898" //Mazinger Z tai Devilman ], "A3898": //Mazinger Z tai Devilman [ "A2252" //Devilman ], "A4385": //Great Mazinger tai Getter Robo [ "A3579" //Getter Robo ], "A4386": //Great Mazinger tai Getter Robo G: Kuuchuu Dai-Gekitotsu [ "A4486" //Getter Robo G ], "A6566": //It's a Rumic World: 50th Anniversary Weekly★Shonen Sunday [ "A210", //Ranma ½ "A249", //InuYasha "A1293" //Urusei Yatsura ], "A15785": //Inazuma Eleven Go vs. Danball Senki W Movie [ "A10507", //Inazuma Eleven Go "A12651" //Danball Senki W ], "A17819": //Kyoto Animation: Suiei-hen [ "A18507" //Free! ], "A18393": //Fairy Tail x Rave [ "A246", //Groove Adventure Rave "A6702" //Fairy Tail ], "A28149": //Nihon Animator Mihonichi [ "A38055" //Evangelion: Another Impact (VR) ], "A38055": //Evangelion: Another Impact (VR) [ "A28149" //Nihon Animator Mihonichi ], "A33512": //Animegatari x Ghost in the Shell Collab Eizou [ "A30617" //Animegatari ], "A37012": //Animegatari x Shingeki no Kyojin Collab Eizou [ "A30617" //Animegatari ], "A33544": //InaDan Movie x Mameshiba Collab CM [ "A15785" //Inazuma Eleven Go vs. Danball Senki W Movie ], "A33547": //Mameshiba x Gaist Crusher Collab CM [ "A19871" //Gaist Crusher ], "A33549": //Mame-Mofu Collab Animation [ "A5241" //Mofu☆Mofu ], "A35631": //Mahouka x Mameshiba [ "A7261" //Mameshiba ], "A35686": //Doraemon (2005) Specials [ "A966" //Crayon Shin-chan ], "M881": //Cross Epoch [ "M13", //One Piece "M42" //Dragon Ball ], "M7887": //Toriko [ "M25146" //One Piece x Toriko ], "M25146": //One Piece x Toriko [ "M13", //One Piece "M7887" //Toriko ], "M1474": //Devilman [ "M26751" //Devilman vs Getter Robo ], "M1475": //Devilman Lady [ "M75723" //Cutie Honey Tai Devilman Lady ], "M1551": //Getter Robo [ "M26751", //Devilman vs Getter Robo "M37701" //Super Robot Retsuden ], "M1639": //Cyborg 009 [ "M95091" //Cyborg 009 VS Devilman: Breakdown ], "M7658": //Cutie Honey [ "M75723" //Cutie Honey Tai Devilman Lady ], "M8773": //Mazinger Z [ "M37701" //Super Robot Retsuden ], "M13891": //Kakioroshi Manga Bangai-hen: Valentine Special [ "M43", //Eyeshield 21 "M47", //Katekyou Hitman Reborn! "M671", //To LOVE-Ru "M1414", //SKET Dance "M9711" //Bakuman. ], "M26751": //Devilman vs Getter Robo [ "M1474", //Devilman "M1551" //Getter Robo ], "M30723": //Koutetsu Jeeg [ "M37701" //Super Robot Retsuden ], "M37701": //Super Robot Retsuden [ "M1551", //Getter Robo "M8773", //Mazinger Z "M30723" //Koutetsu Jeeg ], "M75723": //Cutie Honey Tai Devilman Lady [ "M1475", //Devilman Lady "M7658" //Cutie Honey ], "M95091": //Cyborg 009 VS Devilman: Breakdown [ "M1474", //Devilman "M1639" //Cyborg 009 ], "M16124": //Maburaho VS Slayers!? - Dragon All Stars Gekitouhen [ "M120", //Maburaho "M8876" //Slayers ], "M20870": //Slayers VS Orphen [ "M8876", //Slayers "M39745" //Majutsushi Orphen Hagure Tabi ], "M47000": //Nisekyuu!! [ "M31499", //Nisekoi "M35243" //Haikyuu!! ], "M52389": //Ore Ride!! [ "M24294", //Ao Haru Ride "M36933" //Ore Monogatari!! ], "M58193": //Ore Koi!! [ "M31499", //Nisekoi "M36933" //Ore Monogatari!! ], "M75053": //Magazine Heroines on the Beach [ "M8300", //Baby Steps "M35003", //Yamada-kun to 7-nin no Majo "M47102", //Aho Girl "M67019" //Fuuka ], "M86414": //Magazine Boys' Valentine! [ "M8795", //Area no Kishi "M47363", //Kamisama no Iutoori 2 "M65685", //Real Account "M67019" //Fuuka ], "M88032": //Magazine Ohanami!! [ "M598", //Fairy Tail "M8300", //Baby Steps "M35003", //Yamada-kun to 7-nin no Majo "M67019" //Fuuka ], "M102286": //Minna no Kochikame [ "M733", //Kochira Katsushikaku Kameari Kouenmae Hashutsujo "M1414", //SKET Dance "M5664", //Nurarihyon no Mago "M10010", //Beelzebub "M31499", //Nisekoi "M39883", //Ansatsu Kyoushitsu "M67545" //Isobe Isobee Monogatari: Ukiyo wa Tsurai yo ] } ================================================ FILE: data/banned-genres.lst ================================================ ================================================ FILE: data/banned-users.lst ================================================ ================================================ FILE: data/cache/.gitignore ================================================ * !.gitignore ================================================ FILE: data/db/.gitignore ================================================ * !.gitignore ================================================ FILE: data/globals-cache.json ================================================ ================================================ FILE: data/logs/.gitignore ================================================ * !.gitignore ================================================ FILE: data/mirror/.gitignore ================================================ * !.gitignore ================================================ FILE: data/queue-media.lst ================================================ ================================================ FILE: data/queue-sizes.json ================================================ ================================================ FILE: data/queue-users-media.lst ================================================ ================================================ FILE: data/queue-users.lst ================================================ ================================================ FILE: data/recs-banned-genres.lst ================================================ ================================================ FILE: data/static-recommendations.lst ================================================ ================================================ FILE: public_html/index.php ================================================ cache->bypass(!empty($_GET['bypass-cache'])); $viewContext = new ViewContext(); $logger = new Logger(__FILE__); if (!empty(Config::$maintenanceMessage)) { $viewContext->viewName = 'maintenance'; $viewContext->layoutName = 'layout-headerless'; View::render($viewContext); } elseif (isset($_GET['e'])) { try { $viewContext->viewName = 'error-' . $_GET['e']; View::render($viewContext); } catch (Exception $e) { $viewContext->viewName = 'error-404'; View::render($viewContext); } } else { try { $url = $_SERVER['REQUEST_URI']; if (!empty($_SERVER['HTTP_HOST']) and !empty(Config::$enforcedDomain) and $_SERVER['HTTP_HOST'] != Config::$enforcedDomain) { $fixedUrl = 'http://' . Config::$enforcedDomain . '/' . trim($_SERVER['REQUEST_URI'], '/'); HttpHeadersHelper::setCurrentHeader('Location', $fixedUrl); exit(0); } $controllerContext->url = $url; $workingClassName = null; foreach ($classNames as $className) { if ($className::parseRequest($url, $controllerContext)) { $workingClassName = $className; break; } } if (!empty($workingClassName)) { $workingClassName::preWork($controllerContext, $viewContext); if ($controllerContext->cache->isFresh($url)) { $controllerContext->cache->load($url); flush(); } else { $f = function() use ($workingClassName, $controllerContext, $viewContext) { $workingClassName::work($controllerContext, $viewContext); View::render($viewContext); }; if (!$controllerContext->cache->isBypassed()) { $controllerContext->cache->save($url, $f); } else { $f(); } } $workingClassName::postWork($controllerContext, $viewContext); if (HttpHeadersHelper::getCurrentHeader('Content-Type') == 'text/html') { printf('', microtime(true) - $viewContext->renderStart); } exit(0); } $viewContext->viewName = 'error-404'; View::render($viewContext); } catch (Exception $e) { #log error information $logger->log($e); $viewContext->viewName = 'error'; $viewContext->exception = $e; View::render($viewContext); } exit(1); } ================================================ FILE: public_html/media/css/admin/index.css ================================================ fieldset { border: 1px solid silver; margin-bottom: 1em; padding: 1em; } label.aligned { float: left; position: absolute; vertical-align: middle; text-align: right; width: 6em; line-height: 1.75em; } label.aligned:after { display: inline; content: ': '; margin-right: 0.5em; } fieldset .control-group div { position: relative; left: 6em; } .control-group div { margin-left: 0.5em; margin-bottom: 1em; } .control-group button, .control-group textarea, .control-group input { margin-bottom: 0; } .control-group small { display: block; margin-top: 0; } .control-group textarea { width: 80%; height: 8em; } .alert { background: whitesmoke; padding: 0.5em; } .alert.info { background: #adf; } .alert.error { background: #f42; color: white; } .logout { float: right; } ================================================ FILE: public_html/media/css/admin/login.css ================================================ label.aligned { float: left; position: absolute; vertical-align: middle; text-align: right; width: 6em; line-height: 1.75em; } label.aligned:after { display: inline; content: ': '; margin-right: 0.5em; } .control-group>div { position: relative; left: 6em; margin-left: 0.5em; margin-bottom: 1em; } .control-group button, .control-group textarea, .control-group input { margin-bottom: 0; } .alert { background: whitesmoke; display: inline-block; padding: 0.5em; } .alert.info { background: #adf; } .alert.error { background: #f42; color: white; } ================================================ FILE: public_html/media/css/core.css ================================================ html { -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; } * { max-height: 1000000px; } /* base, fonts etc */ body { overflow-y: scroll; margin: 0; padding: 0 0 3em 0; text-align: center; background-color: white; font-family: 'Open Sans', 'Verdana', 'Dejavu sans', sans-serif; font-size: 11pt; -webkit-tap-highlight-color: transparent; min-width: 320px; } h1, h2, h3 { font-weight: normal; font-family: 'Ubuntu', sans-serif; } h2 { font-size: 1.5em; } h3 { font-size: 1.17em; } h2, h3 { font-weight: normal; text-align: center; margin: 0 0 1em 0; position: relative; } h2:after, h3:after { position: absolute; bottom: -14px; left: 0; width: 100%; height: 8px; border-top: 1px solid #eee; background: center bottom no-repeat radial-gradient(#f6f6f6, #fff 70%); background-size: 100% 16px; content: ''; } .clear { clear: both; } /* links */ a { color: #1969CB; text-decoration: none; } a, a span, a i { transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease; } a:focus { opacity: .8; outline: 0; } a:hover, a:hover span { color: #2D7DE0; text-decoration: none; } #notice-wrapper { top: 0; left: 0; width: 100%; } .notice { background: #516ba2; color: black; padding: 10px; font-size: 10pt; font-weight: bold; text-align: center; } .notice a { color: #fff; } #no-script { background: orangered; color: white; } /* ie image border */ img { border: 0; } /* layout */ .main-wrapper { text-align: left; margin: 0 auto; max-width: 960px; padding: 0; } /* miscellaneous */ *:first-child { margin-top: 0; } div.section+div.section { margin-top: 1.5em; } h2 .icon-tooltip, h3 .icon-tooltip { float: right; display: block; } .section-body p { margin: 0.5em; } /* search input */ .search input { padding: 1px 4px 1px 4px; margin: 0 -1px 0 0; height: 25px; } .search button { display: inline-block; padding: 1px 12px; margin: 0 -1px 0 0; vertical-align: bottom; height: 25px; } .search input, .search button { /* fix round corners on chrome */ -webkit-appearance: none; /* fix height-padding problem */ box-sizing: content-box; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; } /* tooltips */ .highcharts-tooltip { z-index: 50; padding: 0; margin: 0; visibility: hidden; } .tooltip { position: absolute; z-index: 50; padding-top: 8px; } .tooltip span { float: left; } .tooltip span, .highcharts-tooltip span { position: relative !important; display: inline-block; background: rgba(0, 0, 0, 0.7); color: white !important; border-radius: 0.5em; -webkit-border-radius: 0.5em; padding: 4px 8px !important; font-size: 8pt !important; line-height: 150% !important; text-align: center; } .tooltip span:before { position: absolute; content: ' '; bottom: 100%; left: 50%; width: 0; height: 0; margin-left: -4.5px; border: 5px solid rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0.7); } .tooltip, .tooltip span, .highcharts-tooltip, .highcharts-tooltip span { cursor: default !important; } .highcharts-tooltip span { white-space: normal !important; } g.highcharts-tooltip { display: none !important } /* tablesorter */ table.tablesorter { border-spacing: 0; width: 100%; } table.tablesorter thead th { background-color: #f5f5f5; padding: 0.5em 6px 0.5em 21px; border-right: 1px solid white; } table.tablesorter tbody td { padding: 0.1em 6px 0.1em 6px; } table.tablesorter tbody tr:hover td { background: #f5f5f5; } table.tablesorter thead tr .header { background: #f5f5f5 url('/media/img/bg.gif') no-repeat center left; cursor: pointer; } table.tablesorter thead tr .headerSortUp { background: #2D7DE0 url('/media/img/asc.gif') no-repeat center left; color: white; } table.tablesorter thead tr .headerSortDown { background: #2D7De0 url('/media/img/desc.gif') no-repeat center left; color: white; } /* misc */ .ad { margin: 1em auto; } #adblock-enabled { display: none; background: #f5f5f5; padding: 0.5em; max-width: 728px; } #adblock-enabled p { margin-bottom: 0; } #adblock-enabled ul { margin-top: 1em; } #adblock-enabled li { font-size: 90%; } #google-ads { width: 728px; border: 1px solid silver; height: 90px; overflow: hidden; } ul.horizontal { margin: 0; padding: 0; list-style-type: none; } ul.horizontal li { display: inline-block; } ul.horizontal li:not(:last-child):after { content: '·'; display: inline-block; margin: 0 0.75em; } /* form controls */ label, input, button, select, textarea { font-weight: normal; } textarea, input, select, .btn { background-color: #fff; border: 1px solid #ccc; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset; transition: all 0.1s ease; border-radius: 4px; color: #555; display: inline-block; font-size: 14px; margin-bottom: 10px; padding: 4px 6px; vertical-align: middle; /* weird fix for chrome yellow border */ outline: 0; } input { height: 20px; line-height: 20px; } .btn { background: #e6e6e6 linear-gradient(to bottom, #fff, #e6e6e6) repeat-x; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05); border: 1px solid #ccc; border-bottom-color: #a2a2a2; border-radius: 4px; color: #333; cursor: pointer; font-size: 14px; padding: 4px 12px; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); /* fix for chrome yellow border */ outline: none; } .btn:hover, .btn:focus { background-position: 0 -1em; box-shadow: 0 0 0.5em #eee; border: 1px solid #aaa; color: black; text-decoration: none; } select:focus, input:focus { box-shadow: 0 0 0.5em #d1d7e5; border: 1px solid #2D7DE0; } /* weird fix for firefox' dotted border */ ::-moz-focus-inner { border: 0; } .input-append input, .input-prepend input, .input-append select, .input-prepend select { border-radius: 0 4px 4px 0; margin-bottom: 0; position: relative; vertical-align: top; } .input-apend .add-on:last-child, .input-append .btn:last-child { border-radius: 0 4px 4px 0; } .input-append .add-on, .input-prepend .add-on, .input-append .btn, .input-prepend .btn { vertical-align: top; } .input-append, .input-prepend { font-size: 0; white-space: nowrap; } .input-append input, .input-append select { border-radius: 4px 0 0 4px; } ================================================ FILE: public_html/media/css/glider.css ================================================ #glider { position: fixed; height: 100%; width: 100%; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.2); display: none; z-index: 99; } #glider>div { top: 200px; position: relative; margin: 0 auto; box-shadow: 0 0 0.5em 1em white; background-color: white; width: 96px; } #glider .target { background-image: url('/media/img/glider.png'); background-repeat: no-repeat; background-position: 0 0; width: 96px; height: 96px; } #glider p { margin-bottom: 0; display: block; } #glider:after { content: ''; /* fix for rendering resized box on IE */ } #preloader { background: url('/media/img/glider.png'); } ================================================ FILE: public_html/media/css/header.css ================================================ #header { padding: 0.5em 0; margin: 0 0 1em 0; border-bottom: 1px solid #ddd; font-size: 115%; background: #f5f5f5 url('/media/img/heading.png') repeat-x bottom; } #header form { margin: 0; } #header #top-nav { float: right; vertical-align: middle; } #header .input-append { vertical-align: middle; float: left; } #logo { float: left; } #logo a { display: inline-block; vertical-align: middle; background-repeat: no-repeat; background-image: url('/media/img/logo-header.png'); background-position: top right; width: 50px; height: 30px; text-decoration: none; } #logo a span { display: none; } #header input { vertical-align: middle; margin-left: 0.75em; display: block; float: left; width: 12em; } #header .btn { float: left; margin-right: 1em; } #header .sep { display: inline-block; width: 0; height: 24px; border-left: 1px solid rgba(0, 0, 0, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.7); margin: 0 0.75em; vertical-align: middle; } ================================================ FILE: public_html/media/css/headerless.css ================================================ #main { margin-top: 4em; } .main-wrapper { max-width: 960px; } ================================================ FILE: public_html/media/css/icons.css ================================================ [class^='icon-'], [class*=' icon-'] { display: inline-block; vertical-align: text-top; line-height: 16px; width: 16px; height: 16px; margin: 0; background-repeat: no-repeat; background-image: url('/media/img/icons.png'); } .icon-empty { background: none; } .icon-status-finished { background-position: 0 0; } .icon-status-dropped { background-position: -17px 0; } .icon-status-completing { background-position: -34px 0; } .icon-status-onhold { background-position: -51px 0; } .icon-status-planned { background-position: -68px 0; } .icon-search { background-position: -85px 0; } .icon-not-yet-aired { background-position: 0 -17px; } .icon-small-close { background-position: -17px -17px; } .icon-menu-profile { background-position: -102px 0; width: 20px; height: 20px; } .icon-menu-list { background-position: -123px 0; width: 20px; height: 20px; } .icon-menu-ratings { background-position: -144px 0; width: 20px; height: 20px; } .icon-menu-history { background-position: -165px 0; width: 20px; height: 20px; } .icon-menu-favorites { background-position: -102px -21px; width: 20px; height: 20px; } .icon-menu-recommended { background-position: -123px -21px; width: 20px; height: 20px; } .icon-menu-achievements { background-position: -144px -21px; width: 20px; height: 20px; } .icon-close { background-position: -186px 0; width: 24px; height: 24px; margin: 0; } ================================================ FILE: public_html/media/css/index/about.css ================================================ .fb-wrapper { margin-left: 2em; } ================================================ FILE: public_html/media/css/index/globals.css ================================================ .target { height: 210px; } ul.infobox { height: 200px; } .section-body { margin-bottom: 2em; } .queue-sizes .target-wrapper, .queue-sizes .target { width: 100%; } ================================================ FILE: public_html/media/css/index/index.css ================================================ .main-wrapper { max-width: 960px; } #start { background: #f6f6f6; position: relative; z-index: 1; box-shadow: 0 0 5px #aaa inset; text-align: center; padding: 1.5em; } #start:before { background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); position: absolute; top: 0; left: 0; width: 5em; content: ''; display: block; height: 100%; z-index: 2; } #start:after { background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); position: absolute; top: 0; right: 0; width: 5em; content: ''; display: block; height: 100%; z-index: 2; } #start span, #start label { line-height: 30px; vertical-align: middle; margin: 0 1em; } #start span { font-size: 90%; white-space: pre; } footer { text-align: center; color: silver; margin-top: 1em; font-size: 95%; } footer a { color: silver; } footer a:hover, footer a:focus { color: gray; text-decoration: none; } #showcase { height: 20em; margin-bottom: 4em; position: relative; overflow: hidden; } #showcase nav { position: absolute; bottom: 0; margin: 0; padding: 0; width: 205px; } #showcase nav ul { list-style-type: none; margin: 0; padding: 0; } #showcase nav li { display: inline-block; padding: 0; margin: 0; } #showcase nav li:not(:last-of-type) { margin-bottom: 2em; } #showcase nav li a { text-decoration: none; display: inline-block; color: #aaa; } #showcase nav li.active a span, #showcase nav li:hover a span { color: #1969CB; } #showcase nav li.active i[class*='icon'], #showcase nav li:hover i[class*='icon'] { background-color: #1969CB; } #showcase .tab-wrapper { margin-left: 205px; position: absolute; left: 0; right: 0; bottom: 0; } #showcase .tab { display: none; text-align: center; } #showcase .tab img { max-width: 80%; } #showcase .tab img.screenshot { margin: 0 auto; max-height: 15em; } #showcase .tab:first-child { display: block; } #showcase .tab p { font-size: 110%; width: 85%; margin: 1em auto 0 auto; } #showcase i[class^='icon-'] { line-height: 32px; width: 32px; height: 32px; background-color: #aaa; float: left; margin-top: 4px; margin-right: 8px; } #showcase nav span { text-decoration: none; line-height: 20px; width: 165px; float: left; display: inline-block; } .icon-mg { background-position: 0px -42px; } .icon-suggestions { background-position: -33px -42px; } .icon-achievements { background-position: -66px -42px; } .icon-globals { background-position: -99px -42px; } ================================================ FILE: public_html/media/css/infobox.css ================================================ .target-wrapper { width: 79%; } ul.infobox { float: right; width: 20%; max-width: 20%; overflow: hidden; list-style-type: none; text-align: center; display: table; padding: 0; margin: 0; } ul.infobox li { margin-bottom: 1em; display: table-row; } ul.infobox li>div { display: table-cell; vertical-align: middle; } ul.infobox li span.prefix { display: block; margin: 0; } ul.infobox li span.prefix:after { content: ':'; } ul.infobox li span.subject { display: inline-block; margin: 0.1em auto; font-size: 1.75em; } ul.infobox li span.suffix { display: block; padding: 0; } ================================================ FILE: public_html/media/css/menu.css ================================================ .main-wrapper { max-width: 960px; } #logo .sep { margin-right: 0; } #menu-wrapper { float: left; position: relative; width: 180px; font-size: 110%; } #main { margin-left: 200px; max-width: 960px; overflow: hidden; /* allow children to clear floats */ } #menu { padding: 30px 0 16px 0; position: relative; background: top right repeat-y linear-gradient(to left, #f6f6f6 0, #fff 8px); background-size: 8px 100%; box-shadow: -1px 0 0 #ddd inset; } #menu:before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 16px); bottom: 0; } #menu:after { background: linear-gradient(to top, rgba(255, 255, 255, 0) 0, #fff 16px); top: 0; } #menu:before, #menu:after { position: absolute; content: ''; height: 16px; right: 0; width: 100%; } #menu hr { position: relative; margin-right: 1px; background: linear-gradient(to bottom, #f6f6f6 0, rgba(255, 255, 255, 0) 8px); height: 4px; border: 0; } #menu hr:after { position: absolute; background: linear-gradient(to right, #fff 0, rgba(255, 255, 255, 0) 100%); top: 0; width: 100%; height: 4px; content: ''; } #menu ul { list-style-type: none; margin: 0; padding: 0; line-height: 2em; } #menu ul li { margin: 0; padding: 0; font-weight: normal; white-space: nowrap; overflow: hidden; position: relative; float: right; min-width: 180px; } #menu ul li a { display: block; color: dimgray; padding: 4px 12px 4px 8px; text-align: right; text-decoration: none; margin: 1px 0; } #menu ul li.active a { background: white; border-left: 3px solid #1969CB; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-radius: 2px 0 0 2px; color: black; } #menu ul li:not(.active) a:focus, #menu ul li:not(.active) a:hover { border-right: 3px solid #ddd; padding-right: 9px; color: black; text-decoration: none; } #menu ul li.active i, #menu ul li a:focus i, #menu ul li a:hover i { opacity: 1; } #menu span { margin-right: 12px; } #menu i { background-color: #888; opacity: .75; } #menu .anime i { background-color: #5B94DA; } #menu .manga i { background-color: #EBA478; } /* small screens */ @media (max-width: 599px), (max-device-width: 599px) { #menu-wrapper { width: 40px; } #menu ul li { float: none; min-width: 0; } #main { margin-left: 60px; } #menu span { display: none; } } /* big screens */ @media (min-width: 599px) and (min-device-width: 599px) { #logo { width: 181px; /*184px -3px for border-right*/ text-align: right; } #logo a { width: 163px; height: 28px; background-image: url('/media/img/logo-header-big.png'); } } ================================================ FILE: public_html/media/css/mini-sections.css ================================================ .left { width: 50%; text-align: center; float: left; } .right { width: 50%; text-align: center; float: right; } .mini-section { margin-bottom: 2.5em; } p.big-number span.desc { font-size: 110%; vertical-align: middle; } p.big-number span.value { font-size: 150%; padding-left: 1em; display: inline-block; vertical-align: middle; } .bar { background: #eee; height: 3px; width: 12em; margin: 0.5em auto; position: relative; } .bar .filled { background: #5B94DA; height: 3px; } .bar .tick { position: absolute; width: 1px; height: 9px; top: -3px; background: black; } ================================================ FILE: public_html/media/css/user/achievements.css ================================================ img.achi { float: right; padding: 0; margin: 0 0 0 0.5em; position: relative; z-index: 3; border-radius: 4px; } img.achi.entries-trigger { cursor: pointer; } img.achi.entries-trigger:hover { opacity: 0.85; } p.level { float: right; margin: 0.3em 0 0 0; font-size: 8pt; color: gray; } p.desc { margin: 0; padding: 0.5em 0; } .progress-wrapper { position: relative; overflow: hidden; padding: 0.5em 0; opacity: 0.5; } .progress-wrapper:hover { opacity: 1; } .progress { background: #ddd; } .progress .bar { background: #2D7DE0; height: 3px; } h3 { text-align: left; margin-bottom: 0; } .achi-entry h3, .achi-entry h3:after, .achi-entry h3:before { box-shadow: none; border: 0; background: 0; } .achi-entry { margin-bottom: 3em; } .achi-entry.hidden { display: none; } .previous-msg { text-align: center; padding-bottom: 0.5em; } ================================================ FILE: public_html/media/css/user/entries.css ================================================ .entries-wrapper { display: none; font-size: 90%; } .entries-wrapper ul { margin: 0; padding-top: 0; padding-right: 0; padding-bottom: 2em; } .entries-wrapper .close { float: right; cursor: pointer; padding: 0.5em 0 0.5em 0.5em; } .entries-wrapper span.details { color: silver; margin-left: 0.5em; font-size: 92.5%; } .entries-wrapper p { margin: 0.5em 0 0.5em 0.5em; } ================================================ FILE: public_html/media/css/user/favorites.css ================================================ .decades .target-wrapper { width: 100%; } .decades .target { height: 300px; width: 100%; } .types .target-wrapper { width: 100%; } .types .target { height: 220px; } .sources .target-wrapper { width: 100%; } .sources .target { height: 220px; } table { font-size: 90%; } table .title { width: 100%; } table .ord { text-align: center; } table .mean, table .time, table .count { text-align: right; } table.tablesorter thead th:first-child { padding-left: 6px; padding-right: 6px; } span.info { font-size: 7pt; color: gray; } tr.entries-wrapper-row td { background: none !important; } .toggle-decades-msg { text-align: center; } ================================================ FILE: public_html/media/css/user/history.css ================================================ .history-daily .target { height: 20em; } ul.infobox { height: 17.5em; } .history-monthly p.unknown { margin: 0; padding: 1em 0; text-align: center; } .history-monthly table { empty-cells: show; border-spacing: 2px; margin: 0 auto; } .history-monthly table th { text-align: center; font-weight: normal; vertical-align: middle; } .history-monthly table thead th { padding-bottom: 8px; } .history-monthly table th:first-child { text-align: center; } .history-monthly table th.entries-trigger:first-child { cursor: pointer; } .history-monthly table { width: 100%; table-layout: fixed; } .history-monthly table .box-cell { padding: 0; } .history-monthly thead th { width: 7.7%; overflow: hidden; } .history-monthly table .box { height: 2em; background: #1969CB; } .history-monthly table .box-wrapper { position: relative; z-index: 1; } .history-monthly table .box-cell.entries-trigger:hover .box-wrapper { margin: -1px; border: 1px solid white; outline: 1px solid black; cursor: pointer; z-index: 3; } .history-monthly table .box-cell.now .box-wrapper { margin: -1px; border: 1px solid white; outline: 1px solid #ED561B; z-index: 2; } ================================================ FILE: public_html/media/css/user/list.css ================================================ table { font-size: 90%; } td.no-score { color: #aaa; } th, td { padding: 2px 2px; text-align: center; } th.title, td.title { width: 100%; padding: 2px 8px; text-align: left; } td.status i { margin-top: 1px; } #filter-form { white-space: nowrap; } #filter-form label, #filter-form input, #filter-form select, #filter-form button { vertical-align: middle; margin: 0 0.33em; } #filter-form label { display: inline; padding: 0; margin: 0 0.5em 0 0; line-height: 2em; } #filter-form #filter-title { width: 30%; } #filter-form #filter-status { width: 20%; } #filter-form { text-align: center; } form { margin: 0 0 1em 0; } .filter-hint { display: none; } .higher { color: #007e00; } .lower { color: #b60000; } ================================================ FILE: public_html/media/css/user/profile.css ================================================ .updated, .queue-pos { position: absolute; font-size: 65%; padding-top: 0.25em; } .updated { left: 0; } .queue-pos { right: 0; } .updated span, .queue-pos span { opacity: .25; padding: 3px 6px; display: inline-block; margin-top: 2px; } .updated a, .queue-pos a { opacity: .8; padding: 3px 6px; margin-top: 2px; display: inline-block; border-radius: 4px; -webkit-animation: update-button-animation 2s infinite; -ms-animation: update-button-animation 2s infinite; -o-animation: update-button-animation 2s infinite; animation: update-button-animation 2s infinite; } @-webkit-keyframes update-button-animation { 0% { background: none; } 20% { background: rgba(45, 125, 224, .3); } 100% { background: none; } } @-o-keyframes update-button-animation { 0% { background: none; } 20% { background: rgba(45, 125, 224, .3); } 100% { background: none; } } @-ms-keyframes update-button-animation { 0% { background: none; } 20% { background: rgba(45, 125, 224, .3); } 100% { background: none; } } @keyframes update-button-animation { 0% { background: none; } 20% { background: rgba(45, 125, 224, .3); } 100% { background: none; } } .list-views .suffix { margin-left: 0.67em; color: gray; } .friends ul, .basic ul { list-style-type: none; margin: 0; padding: 0; } .friends a { position: relative; font-size: 120%; line-height: 1.75em; } .friends ul li { overflow: hidden; display: block; text-overflow: ellipsis; float: left; text-align: center; width: 50%; } .user-pic { width: 40%; float: right; } .user-pic a { font-size: 0; line-height: 0; margin: 0; padding: 0; } .user-pic img { box-shadow: 0 0 2px rgba(96,96,96,0.5) inset; border-radius: 4px; padding: 0; margin: 0 auto; background-color: rgba(255, 255, 255, 0.6); background-size: cover; background-repeat: no-repeat; background-position: top center; width: 100%; } .user-pic img.unavailable { background-image: url('/media/img/anon.png'); } .friends { margin-bottom: 2.5em; } .list-views .bar { background: #EBA478; } .list-views .anime { color: #5B94DA; } .list-views .manga { color: #EBA478; } ol li { margin-bottom: 1em; } ================================================ FILE: public_html/media/css/user/ratings.css ================================================ .target { height: 228px; line-height: 0; } .rating-length-dist .target { height: 20em; } ul.infobox { height: 250px; } ul.infobox .btn { margin-top: 1em; } .popup-wrapper { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 5; text-align: center; font-size: 0.9em; } .popup { background: white; margin: 10% auto auto auto; display: inline-block; text-align: left; box-shadow: 0 0 1em rgba(0, 0, 0, 0.5); border-radius: 2px; padding: 1em; } .popup .header { position: relative; } .popup .close { cursor: pointer; display: block; position: absolute; z-index: 2; right: 0; top: -0.5em; padding: 0.5em 0 0.5em 0.5em; } .export .combo-wrapper p { display: inline-block; margin: 0 1em 0 0; } .export .combo-wrapper { line-height: 2em; vertical-align: middle; } .export .combo-wrapper select { display: inline-block; margin: 0 1em 0 0; width: auto; max-width: 40%; } .export select[name='type'] { max-width: 25%; width: auto; } .export select[name='theme'] { margin-right: 0; } .export button { margin: 0; float: left; } .export textarea { margin: 1em 0 0 0; width: 100%; height: 7em; cursor: text !important; /* fix right padding problem */ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .export .body-wrapper, .export .custom-theme p { text-align: center; } .export .body p { margin-top: 0; } .export .preview p { margin-top: 1em; } .export .preview img { max-width: 100%; max-height: 161px; } .export .body-wrapper { float: left; width: 33em; padding-right: 1em; border-right: 1px solid rgba(0, 0, 0, 0.1); margin-right: -1em; } .export .custom-theme { float: right; display: none; margin-left: 2em; } .export .custom-theme p { text-align: left; overflow: hidden; white-space: pre; } .export .custom-theme select { width: 200px; } .export .custom-theme input { width: calc(200px - 14px); } ================================================ FILE: public_html/media/css/user/recommendations.css ================================================ .missing .undelete-msg { text-align: center; display: none; } .missing .center { text-align: center; } .missing table { font-size: 90%; table-layout: fixed; width: 100%; border-spacing: 0; line-height: 1.6em; } .missing table tbody tr:first-child td { padding: 0.5em 0.5em; box-shadow: inset 0 1em 1em -1em #ddd; vertical-align: top; } .missing table thead tr th { padding: 0.5em 1em; background: whitesmoke; width: 50%; } /* multiple tbody are used for highlighting (more) link row along with proposition row */ .missing table tbody:hover tr td { background: #f5f5f5; } .missing table td ul { overflow: hidden; list-style-type: none; margin: 0; padding: 0; } .missing table td ul li { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-right: 20px; position: relative; } .missing i.left { margin-right: 4px; } .missing i.right { position: absolute; right: 4px; } .original img { width: 80px; margin-right: 0.5em; float: left; } .original .details-wrapper .header:after { margin: 0.1em 0; content: ''; height: 1px; display: block; background: #e6e6e6 linear-gradient(to right, #e6e6e6, #fff) repeat-y; } .original .details-wrapper { float: left; width: 240px; line-height: 1.5em; } .original .details-wrapper div { white-space: pre; overflow: hidden; text-overflow: ellipsis; } .original .details { font-size: 85%; } .original ul { margin: 0; padding: 0; } .original li { padding: 0; margin: 0 1em 1em 0; vertical-align: top; display: inline-block; } ================================================ FILE: public_html/media/js/glider.js ================================================ //animate glider - change background position every x ms function animateGlider() { var pos = $('#glider .target').css('background-position'); var matches = pos.match(/(-?\d+)/g); var left = matches[0]; var top = matches[1]; left -= 96; if (left <= 96 * -4) { left = 0; } $('#glider .target').css('background-position', left + 'px ' + top + 'px'); var diff = (new Date() - $('#glider').data('start')) / 1000; for (var i in messages) { var subMessages = messages[i]; var message = subMessages[Math.floor(Math.random() * subMessages.length)]; if (diff >= i) { delete messages[i]; $('#glider p').fadeOut(function() { $(this).html(message).fadeIn(); }); break; } } } var messages = { 5: [ 'downloading your data…', 'performing magic tricks…', 'reticulating splines…', 'making you read this text…', 'preparing the awesome…', 'cropping avatars…' ], 10: [ 'applying final touches…', 'antialiasing buttons…', 'rendering gradients…', 'please wait…', 'connecting the dots…' ], 15: [ '[your ad here]', 'proving P=NP…', 'warming up the server…', 'breaking fourth wall…', 'signing the contract…' ], 22: [ 'this shouldn’t take much longer.', 'don’t panic yet.', 'the engine needs some oil.', 'moving the gears…', 'randomizing messages…' ], 30: [ 'yep, still loading.', 'loading just according to keikaku.', 'analyzing your taste…', 'transforming to final form…' ], 40: [ 'does your list even end?', 'you should have clicked harder.', 'there’s a reward at the end.', 'tick… tock…' ], 50: [ 'the game.', 'your stats will appear any second now.', 'good things come to those who wait.', 'it’ll be worth the wait.' ], 60: [ 'loading…' ], 90: [ 'yawn.', 'hmm…' ], 100: [ 'does your list even end?', 'please wait a bit longer.' ], 110: [ 'loading…' ] }; //show glider function showGlider() { $('#glider').data('start', new Date()); $('#glider').fadeIn('slow'); window.setInterval(animateGlider, 550); } //show glider with short delay var timeout; function showGliderDelayed() { timeout = window.setTimeout(showGlider, 550); } //attach glider showing to an event to an element function attachGlider(elems, event) { elems.each(function() { var target = $(this); target.bind(event, function(e, data) { if (e.isPropagationStopped()) { return true; } //supress showing glider on middle mouse button click if (!(e.type == 'click' && e.which == 2)) { showGliderDelayed(); } return true; }); }); } $(function() { //fix some weird history issues on some browsers $(window).unload(function() { if (timeout) { window.clearTimeout(timeout); } }); attachGlider($('a.waitable, button.waitable'), 'click'); attachGlider($('form.waitable'), 'submit'); }); ================================================ FILE: public_html/media/js/highcharts-mg.js ================================================ Highcharts.theme = { colors: [ '#1969CB', '#ED561B', '#50B432', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4' ], credits: {'enabled': false}, chart: { plotShadow: false, backgroundColor: 'rgba(255, 255, 255, 0)', spacingTop: 0, spacingBottom: 0, spacingLeft: 0, spacingRight: 0, alignTicks: false, }, title: false, legend: { enabled: false }, xAxis: { gridLineWidth: 1, minorGridLineColor: '#f5f5f5', gridLineColor: '#f5f5f5', lineColor: '#000', tickColor: '#000', labels: { style: { color: '#000', font: '8pt Verdana, Dejavu Sans, sans-serif' } }, title: { style: { color: '#333', fontWeight: 'bold', fontSize: '9pt', fontFamily: 'Verdana, Dejavu Sans, sans-serif' } } }, yAxis: { minorTickInterval: 'auto', gridLineColor: '#ddd', minorGridLineColor: '#f5f5f5', lineColor: '#000', lineWidth: 1, tickWidth: 1, tickColor: '#000', labels: { style: { color: '#000', font: '8pt Verdana, Dejavu Sans, sans-serif' } }, title: { style: { color: '#333', fontWeight: 'bold', fontSize: '9pt', fontFamily: 'Verdana, Dejavu Sans, sans-serif' } } }, labels: { style: { color: '#99b' } }, plotOptions: { bar: { pointWidth: 18, borderWidth: 1, shadow: false, }, column: { pointWidth: 18, borderWidth: 1, shadow: false, }, line: { shadow: false, } }, tooltip: { backgroundColor: 'auto', style: { }, useHTML: true, shadow: false, borderWidth: 0 } }; // Apply the theme var highchartsOptions = Highcharts.setOptions(Highcharts.theme); ================================================ FILE: public_html/media/js/index/index.js ================================================ var lastNum = 0; function switchShowcaseTab(num) { $('#showcase nav li').removeClass('active'); $('#showcase nav li').eq(num).addClass('active'); if (lastNum == num) { return; } lastNum = num; $('#showcase .tab').slideUp('fast'); $('#showcase .tab').eq(num).slideDown('fast'); } function nextShowcaseTab() { var num = $('#showcase nav li.active').index(); num ++; num %= $('#showcase nav li').length; switchShowcaseTab(num); } $(function() { $('#main .search input').focus(); var timeout = window.setInterval(nextShowcaseTab, 5000); $('#showcase nav li').each(function(i, index) { $(this).click(function(e) { window.clearTimeout(timeout); switchShowcaseTab(i); e.preventDefault(); }); }); switchShowcaseTab(0); }); ================================================ FILE: public_html/media/js/jquery.cookie.js ================================================ /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2006, 2014 Klaus Hartl * Released under the MIT license */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD (Register as an anonymous module) define(['jquery'], factory); } else if (typeof exports === 'object') { // Node/CommonJS module.exports = factory(require('jquery')); } else { // Browser globals factory(jQuery); } }(function ($) { var pluses = /\+/g; function encode(s) { return config.raw ? s : encodeURIComponent(s); } function decode(s) { return config.raw ? s : decodeURIComponent(s); } function stringifyCookieValue(value) { return encode(config.json ? JSON.stringify(value) : String(value)); } function parseCookieValue(s) { if (s.indexOf('"') === 0) { // This is a quoted cookie as according to RFC2068, unescape... s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); } try { // Replace server-side written pluses with spaces. // If we can't decode the cookie, ignore it, it's unusable. // If we can't parse the cookie, ignore it, it's unusable. s = decodeURIComponent(s.replace(pluses, ' ')); return config.json ? JSON.parse(s) : s; } catch(e) {} } function read(s, converter) { var value = config.raw ? s : parseCookieValue(s); return $.isFunction(converter) ? converter(value) : value; } var config = $.cookie = function (key, value, options) { // Write if (arguments.length > 1 && !$.isFunction(value)) { options = $.extend({}, config.defaults, options); if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setMilliseconds(t.getMilliseconds() + days * 864e+5); } return (document.cookie = [ encode(key), '=', stringifyCookieValue(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // Read var result = key ? undefined : {}, // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. Also prevents odd result when // calling $.cookie(). cookies = document.cookie ? document.cookie.split('; ') : [], i = 0, l = cookies.length; for (; i < l; i++) { var parts = cookies[i].split('='), name = decode(parts.shift()), cookie = parts.join('='); if (key === name) { // If second argument (value) is a function it's a converter... result = read(cookie, value); break; } // Prevent storing a cookie that we couldn't decode. if (!key && (cookie = read(cookie)) !== undefined) { result[name] = cookie; } } return result; }; config.defaults = {}; $.removeCookie = function (key, options) { // Must not alter options, thus extending a fresh object... $.cookie(key, '', $.extend({}, options, { expires: -1 })); return !$.cookie(key); }; })); ================================================ FILE: public_html/media/js/jquery.farbtastic.js ================================================ // Farbtastic 2.0.0-alpha.1 (function ($) { var __debug = false; $.fn.farbtastic = function (options) { $.farbtastic(this, options); return this; }; $.farbtastic = function (container, options) { var container = $(container)[0]; return container.farbtastic || (container.farbtastic = new $._farbtastic(container, options)); } $._farbtastic = function (container, options) { var fb = this; ///////////////////////////////////////////////////// /** * Link to the given element(s) or callback. */ fb.linkTo = function (callback) { // Unbind previous nodes if (typeof fb.callback == 'object') { $(fb.callback).unbind('keyup', fb.updateValue); } // Reset color fb.color = null; // Bind callback or elements if (typeof callback == 'function') { fb.callback = callback; } else if (typeof callback == 'object' || typeof callback == 'string') { fb.callback = $(callback); fb.callback.bind('keyup', fb.updateValue); if (fb.callback[0].value) { fb.setColor(fb.callback[0].value); } } return this; } fb.updateValue = function (event) { if (this.value && this.value != fb.color) { fb.setColor(this.value); } } /** * Change color with HTML syntax #123456 */ fb.setColor = function (color) { var unpack = fb.unpack(color); if (fb.color != color && unpack) { fb.color = color; fb.rgb = unpack; fb.hsl = fb.RGBToHSL(fb.rgb); fb.updateDisplay(); } return this; } /** * Change color with HSL triplet [0..1, 0..1, 0..1] */ fb.setHSL = function (hsl) { fb.hsl = hsl; fb.rgb = fb.HSLToRGB(hsl); fb.color = fb.pack(fb.rgb); fb.updateDisplay(); return this; } ///////////////////////////////////////////////////// /** * Initialize the color picker widget. */ fb.initWidget = function () { // Insert markup and size accordingly. var dim = { width: options.width, height: options.width }; $(container) .html( '
' + '
' + '' + '' + '
' ) .find('*').attr(dim).css(dim).end() .find('div>*').css('position', 'absolute'); // IE Fix: Recreate canvas elements with doc.createElement and excanvas. $.browser.msie || false && $('canvas', container).each(function () { // Fetch info. var attr = { 'class': $(this).attr('class'), style: this.getAttribute('style') }, e = document.createElement('canvas'); // Replace element. $(this).before($(e).attr(attr)).remove(); // Init with explorerCanvas. G_vmlCanvasManager && G_vmlCanvasManager.initElement(e); // Set explorerCanvas elements dimensions and absolute positioning. $(e).attr(dim).css(dim).css('position', 'absolute') .find('*').attr(dim).css(dim); }); // Determine layout fb.radius = (options.width - options.wheelWidth) / 2 - 1; fb.square = Math.floor((fb.radius - options.wheelWidth / 2) * 0.7) - 1; fb.mid = Math.floor(options.width / 2); fb.markerSize = options.wheelWidth * 0.3; fb.solidFill = $('.farbtastic-solid', container).css({ width: fb.square * 2 - 1, height: fb.square * 2 - 1, left: fb.mid - fb.square, top: fb.mid - fb.square }); // Set up drawing context. fb.cnvMask = $('.farbtastic-mask', container); fb.ctxMask = fb.cnvMask[0].getContext('2d'); fb.cnvOverlay = $('.farbtastic-overlay', container); fb.ctxOverlay = fb.cnvOverlay[0].getContext('2d'); fb.ctxMask.translate(fb.mid, fb.mid); fb.ctxOverlay.translate(fb.mid, fb.mid); // Draw widget base layers. fb.drawCircle(); fb.drawMask(); } /** * Draw the color wheel. */ fb.drawCircle = function () { var tm = +(new Date()); // Draw a hue circle with a bunch of gradient-stroked beziers. // Have to use beziers, as gradient-stroked arcs don't work. var n = 24, r = fb.radius, w = options.wheelWidth, nudge = 8 / r / n * Math.PI, // Fudge factor for seams. m = fb.ctxMask, angle1 = 0, color1, d1; m.save(); m.lineWidth = w / r; m.scale(r, r); // Each segment goes from angle1 to angle2. for (var i = 0; i <= n; ++i) { var d2 = i / n, angle2 = d2 * Math.PI * 2, // Endpoints x1 = Math.sin(angle1), y1 = -Math.cos(angle1); x2 = Math.sin(angle2), y2 = -Math.cos(angle2), // Midpoint chosen so that the endpoints are tangent to the circle. am = (angle1 + angle2) / 2, tan = 1 / Math.cos((angle2 - angle1) / 2), xm = Math.sin(am) * tan, ym = -Math.cos(am) * tan, // New color color2 = fb.pack(fb.HSLToRGB([d2, 1, 0.5])); if (i > 0) { if ($.browser.msie || false) { // IE's gradient calculations mess up the colors. Correct along the diagonals. var corr = (1 + Math.min(Math.abs(Math.tan(angle1)), Math.abs(Math.tan(Math.PI / 2 - angle1)))) / n; color1 = fb.pack(fb.HSLToRGB([d1 - 0.15 * corr, 1, 0.5])); color2 = fb.pack(fb.HSLToRGB([d2 + 0.15 * corr, 1, 0.5])); // Create gradient fill between the endpoints. var grad = m.createLinearGradient(x1, y1, x2, y2); grad.addColorStop(0, color1); grad.addColorStop(1, color2); m.fillStyle = grad; // Draw quadratic curve segment as a fill. var r1 = (r + w / 2) / r, r2 = (r - w / 2) / r; // inner/outer radius. m.beginPath(); m.moveTo(x1 * r1, y1 * r1); m.quadraticCurveTo(xm * r1, ym * r1, x2 * r1, y2 * r1); m.lineTo(x2 * r2, y2 * r2); m.quadraticCurveTo(xm * r2, ym * r2, x1 * r2, y1 * r2); m.fill(); } else { // Create gradient fill between the endpoints. var grad = m.createLinearGradient(x1, y1, x2, y2); grad.addColorStop(0, color1); grad.addColorStop(1, color2); m.strokeStyle = grad; // Draw quadratic curve segment. m.beginPath(); m.moveTo(x1, y1); m.quadraticCurveTo(xm, ym, x2, y2); m.stroke(); } } // Prevent seams where curves join. angle1 = angle2 - nudge; color1 = color2; d1 = d2; } m.restore(); __debug && $('body').append('
drawCircle '+ (+(new Date()) - tm) +'ms'); }; /** * Draw the saturation/luminance mask. */ fb.drawMask = function () { var tm = +(new Date()); // Iterate over sat/lum space and calculate appropriate mask pixel values. var size = fb.square * 2, sq = fb.square; function calculateMask(sizex, sizey, outputPixel) { var isx = 1 / sizex, isy = 1 / sizey; for (var y = 0; y <= sizey; ++y) { var l = 1 - y * isy; for (var x = 0; x <= sizex; ++x) { var s = 1 - x * isx; // From sat/lum to alpha and color (grayscale) var a = 1 - 2 * Math.min(l * s, (1 - l) * s); var c = (a > 0) ? ((2 * l - 1 + a) * .5 / a) : 0; outputPixel(x, y, c, a); } } } // Method #1: direct pixel access (new Canvas). if (fb.ctxMask.getImageData) { // Create half-resolution buffer. var sz = Math.floor(size / 2); var buffer = document.createElement('canvas'); buffer.width = buffer.height = sz + 1; var ctx = buffer.getContext('2d'); var frame = ctx.getImageData(0, 0, sz + 1, sz + 1); var i = 0; calculateMask(sz, sz, function (x, y, c, a) { frame.data[i++] = frame.data[i++] = frame.data[i++] = c * 255; frame.data[i++] = a * 255; }); ctx.putImageData(frame, 0, 0); fb.ctxMask.drawImage(buffer, 0, 0, sz + 1, sz + 1, -sq, -sq, sq * 2, sq * 2); } // Method #2: drawing commands (old Canvas). else if (!($.browser.msie || false)) { // Render directly at half-resolution var sz = Math.floor(size / 2); calculateMask(sz, sz, function (x, y, c, a) { c = Math.round(c * 255); fb.ctxMask.fillStyle = 'rgba(' + c + ', ' + c + ', ' + c + ', ' + a +')'; fb.ctxMask.fillRect(x * 2 - sq - 1, y * 2 - sq - 1, 2, 2); }); } // Method #3: vertical DXImageTransform gradient strips (IE). else { var cache_last, cache, w = 6; // Each strip is 6 pixels wide. var sizex = Math.floor(size / w); // 6 vertical pieces of gradient per strip. calculateMask(sizex, 6, function (x, y, c, a) { if (x == 0) { cache_last = cache; cache = []; } c = Math.round(c * 255); a = Math.round(a * 255); // We can only start outputting gradients once we have two rows of pixels. if (y > 0) { var c_last = cache_last[x][0], a_last = cache_last[x][1], color1 = fb.packDX(c_last, a_last), color2 = fb.packDX(c, a), y1 = Math.round(fb.mid + ((y - 1) * .333 - 1) * sq), y2 = Math.round(fb.mid + (y * .333 - 1) * sq); $('
').css({ position: 'absolute', filter: "progid:DXImageTransform.Microsoft.Gradient(StartColorStr="+ color1 +", EndColorStr="+ color2 +", GradientType=0)", top: y1, height: y2 - y1, // Avoid right-edge sticking out. left: fb.mid + (x * w - sq - 1), width: w - (x == sizex ? Math.round(w / 2) : 0) }).appendTo(fb.cnvMask); } cache.push([c, a]); }); } __debug && $('body').append('
drawMask '+ (+(new Date()) - tm) +'ms'); } /** * Draw the selection markers. */ fb.drawMarkers = function () { // Determine marker dimensions var sz = options.width, lw = Math.ceil(fb.markerSize / 4), r = fb.markerSize - lw + 1; var angle = fb.hsl[0] * 6.28, x1 = Math.sin(angle) * fb.radius, y1 = -Math.cos(angle) * fb.radius, x2 = 2 * fb.square * (.5 - fb.hsl[1]), y2 = 2 * fb.square * (.5 - fb.hsl[2]), c1 = fb.invert ? '#fff' : '#000', c2 = fb.invert ? '#000' : '#fff'; var circles = [ { x: x1, y: y1, r: r, c: '#000', lw: lw + 1 }, { x: x1, y: y1, r: fb.markerSize, c: '#fff', lw: lw }, { x: x2, y: y2, r: r, c: c2, lw: lw + 1 }, { x: x2, y: y2, r: fb.markerSize, c: c1, lw: lw }, ]; // Update the overlay canvas. fb.ctxOverlay.clearRect(-fb.mid, -fb.mid, sz, sz); for (var i = 0; i < circles.length; i++) { var c = circles[i]; fb.ctxOverlay.lineWidth = c.lw; fb.ctxOverlay.strokeStyle = c.c; fb.ctxOverlay.beginPath(); fb.ctxOverlay.arc(c.x, c.y, c.r, 0, Math.PI * 2, true); fb.ctxOverlay.stroke(); } } /** * Update the markers and styles */ fb.updateDisplay = function () { // Determine whether labels/markers should invert. fb.invert = (fb.rgb[0] * 0.3 + fb.rgb[1] * .59 + fb.rgb[2] * .11) <= 0.6; // Update the solid background fill. fb.solidFill.css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5]))); // Draw markers fb.drawMarkers(); // Linked elements or callback if (typeof fb.callback == 'object') { // Set background/foreground color $(fb.callback).css({ backgroundColor: fb.color, color: fb.invert ? '#fff' : '#000' }); // Change linked value $(fb.callback).each(function() { if ((typeof this.value == 'string') && this.value != fb.color) { this.value = fb.color; } }).change(); } else if (typeof fb.callback == 'function') { fb.callback.call(fb, fb.color); } } /** * Helper for returning coordinates relative to the center. */ fb.widgetCoords = function (event) { return { x: event.pageX - fb.offset.left - fb.mid, y: event.pageY - fb.offset.top - fb.mid }; } /** * Mousedown handler */ fb.mousedown = function (event) { // Capture mouse if (!$._farbtastic.dragging) { $(document).bind('mousemove', fb.mousemove).bind('mouseup', fb.mouseup); $._farbtastic.dragging = true; } // Update the stored offset for the widget. fb.offset = $(container).offset(); // Check which area is being dragged var pos = fb.widgetCoords(event); fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) > (fb.square + 2); // Process fb.mousemove(event); return false; } /** * Mousemove handler */ fb.mousemove = function (event) { // Get coordinates relative to color picker center var pos = fb.widgetCoords(event); // Set new HSL parameters if (fb.circleDrag) { var hue = Math.atan2(pos.x, -pos.y) / 6.28; fb.setHSL([(hue + 1) % 1, fb.hsl[1], fb.hsl[2]]); } else { var sat = Math.max(0, Math.min(1, -(pos.x / fb.square / 2) + .5)); var lum = Math.max(0, Math.min(1, -(pos.y / fb.square / 2) + .5)); fb.setHSL([fb.hsl[0], sat, lum]); } return false; } /** * Mouseup handler */ fb.mouseup = function () { // Uncapture mouse $(document).unbind('mousemove', fb.mousemove); $(document).unbind('mouseup', fb.mouseup); $._farbtastic.dragging = false; } /* Various color utility functions */ fb.dec2hex = function (x) { return (x < 16 ? '0' : '') + x.toString(16); } fb.packDX = function (c, a) { return '#' + fb.dec2hex(a) + fb.dec2hex(c) + fb.dec2hex(c) + fb.dec2hex(c); }; fb.pack = function (rgb) { var r = Math.round(rgb[0] * 255); var g = Math.round(rgb[1] * 255); var b = Math.round(rgb[2] * 255); return '#' + fb.dec2hex(r) + fb.dec2hex(g) + fb.dec2hex(b); }; fb.unpack = function (color) { if (color.length == 7) { function x(i) { return parseInt(color.substring(i, i + 2), 16) / 255; } return [ x(1), x(3), x(5) ]; } else if (color.length == 4) { function x(i) { return parseInt(color.substring(i, i + 1), 16) / 15; } return [ x(1), x(2), x(3) ]; } }; fb.HSLToRGB = function (hsl) { var m1, m2, r, g, b; var h = hsl[0], s = hsl[1], l = hsl[2]; m2 = (l <= 0.5) ? l * (s + 1) : l + s - l * s; m1 = l * 2 - m2; return [ this.hueToRGB(m1, m2, h + 0.33333), this.hueToRGB(m1, m2, h), this.hueToRGB(m1, m2, h - 0.33333) ]; }; fb.hueToRGB = function (m1, m2, h) { h = (h + 1) % 1; if (h * 6 < 1) return m1 + (m2 - m1) * h * 6; if (h * 2 < 1) return m2; if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6; return m1; }; fb.RGBToHSL = function (rgb) { var r = rgb[0], g = rgb[1], b = rgb[2], min = Math.min(r, g, b), max = Math.max(r, g, b), delta = max - min, h = 0, s = 0, l = (min + max) / 2; if (l > 0 && l < 1) { s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l)); } if (delta > 0) { if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6; } return [h, s, l]; }; // Parse options. if (!options.callback) { options = { callback: options }; } options = $.extend({ width: 300, wheelWidth: (options.width || 300) / 10, callback: null }, options); // Initialize. fb.initWidget(); // Install mousedown handler (the others are set on the document on-demand) $('canvas.farbtastic-overlay', container).mousedown(fb.mousedown); // Set linked elements/callback if (options.callback) { fb.linkTo(options.callback); } // Set to gray. if (!fb.color) fb.setColor('#808080'); } })(jQuery); ================================================ FILE: public_html/media/js/jquery.highcharts.js ================================================ /* Highcharts JS v4.1.5 (2015-04-13) (c) 2009-2014 Torstein Honsi License: www.highcharts.com/license */ (function(){function z(){var a,b=arguments,c,d={},e=function(a,b){var c,d;typeof a!=="object"&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&typeof c==="object"&&Object.prototype.toString.call(c)!=="[object Array]"&&d!=="renderTo"&&typeof c.nodeType!=="number"?e(a[d]||{},c):b[d]);return a};b[0]===!0&&(d=b[1],b=Array.prototype.slice.call(b,2));c=b.length;for(a=0;a-1?h.thousandsSep:""))):e=Oa(f,e)}j.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}j.push(a);return j.join("")}function ob(a){return V.pow(10,U(V.log(a)/V.LN10))}function pb(a,b,c,d,e){var f,g=a,c=p(c,1);f=a/c;b||(b=[1,2,2.5,5,10],d===!1&&(c=== 1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/2)break;g*=c;return g}function qb(a,b){var c=a.length,d,e;for(e=0;ec&&(c=a[b]);return c}function Qa(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(), delete a[c]}function Ra(a){fb||(fb=Z(Ka));a&&fb.appendChild(a);fb.innerHTML=""}function ka(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;H.console&&console.log(c)}function da(a){return parseFloat(a.toPrecision(14))}function Sa(a,b){za=p(a,b.animation)}function Cb(){var a=P.global,b=a.useUTC,c=b?"getUTC":"get",d=b?"setUTC":"set";Aa=a.Date||window.Date;nb=b&&a.timezoneOffset;eb=b&&a.getTimezoneOffset;gb=function(a,c,d,h,i,j){var k;b?(k=Aa.UTC.apply(0,arguments),k+= Wa(k)):k=(new Aa(a,c,p(d,1),p(h,0),p(i,0),p(j,0))).getTime();return k};rb=c+"Minutes";sb=c+"Hours";tb=c+"Day";Xa=c+"Date";Ya=c+"Month";Za=c+"FullYear";Db=d+"Milliseconds";Eb=d+"Seconds";Fb=d+"Minutes";Gb=d+"Hours";ub=d+"Date";vb=d+"Month";wb=d+"FullYear"}function K(){}function Ta(a,b,c,d){this.axis=a;this.pos=b;this.type=c||"";this.isNew=!0;!c&&!d&&this.addLabel()}function Hb(a,b,c,d,e){var f=a.chart.inverted;this.axis=a;this.isNegative=c;this.options=b;this.x=d;this.total=null;this.points={};this.stack= e;this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:p(b.y,f?4:c?14:-6),x:p(b.x,f?c?-6:6:0)};this.textAlign=b.textAlign||(f?c?"right":"left":"center")}var u,A=document,H=window,V=Math,x=V.round,U=V.floor,sa=V.ceil,t=V.max,I=V.min,O=V.abs,W=V.cos,$=V.sin,la=V.PI,ga=la*2/360,Ba=navigator.userAgent,Ib=H.opera,ya=/(msie|trident)/i.test(Ba)&&!Ib,hb=A.documentMode===8,xb=/AppleWebKit/.test(Ba),La=/Firefox/.test(Ba),Jb=/(Mobile|Android|Windows Phone)/.test(Ba), Ca="http://www.w3.org/2000/svg",ba=!!A.createElementNS&&!!A.createElementNS(Ca,"svg").createSVGRect,Nb=La&&parseInt(Ba.split("Firefox/")[1],10)<4,ea=!ba&&!ya&&!!A.createElement("canvas").getContext,$a,ab,Kb={},yb=0,fb,P,Oa,za,zb,G,ma=function(){return u},X=[],bb=0,Ka="div",R="none",Ob=/^[0-9]+$/,ib=["plotTop","marginRight","marginBottom","plotLeft"],Pb="stroke-width",Aa,gb,nb,eb,rb,sb,tb,Xa,Ya,Za,Db,Eb,Fb,Gb,ub,vb,wb,J={},w;w=H.Highcharts=H.Highcharts?ka(16,!0):{};w.seriesTypes=J;var r=w.extend=function(a, b){var c;a||(a={});for(c in b)a[c]=b[c];return a},p=w.pick=function(){var a=arguments,b,c,d=a.length;for(b=0;b3?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+O(a-c).toFixed(f).slice(2):"")};zb={init:function(a,b,c){var b=b||"",d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g,b=b.split(" "),c=[].concat(c),h,i,j=function(a){for(g=a.length;g--;)a[g]==="M"&&a.splice(g+ 1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(j(b),j(c));a.isArea&&(h=b.splice(b.length-6,6),i=c.splice(c.length-6,6));if(d<=c.length/f&&b.length===c.length)for(;d--;)c=[].concat(c).splice(0,f).concat(c);a.shift=0;if(b.length)for(a=c.length;b.length{point.key}
',pointFormat:'\u25CF {series.name}: {point.y}
', shadow:!0,snap:Jb?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var aa=P.plotOptions,T=aa.line;Cb();var Tb=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,Ub=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/, Vb=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,na=function(a){var b=[],c,d;(function(a){a&&a.stops?d=Ua(a.stops,function(a){return na(a[1])}):(c=Tb.exec(a))?b=[B(c[1]),B(c[2]),B(c[3]),parseFloat(c[4],10)]:(c=Ub.exec(a))?b=[B(c[1],16),B(c[2],16),B(c[3],16),1]:(c=Vb.exec(a))&&(b=[B(c[1]),B(c[2]),B(c[3]),1])})(a);return{get:function(c){var f;d?(f=z(a),f.stops=[].concat(f.stops),m(d,function(a,b){f.stops[b]=[f.stops[b][0],a.get(c)]})):f=b&&!isNaN(b[0])?c==="rgb"?"rgb("+b[0]+","+ b[1]+","+b[2]+")":c==="a"?b[3]:"rgba("+b.join(",")+")":a;return f},brighten:function(a){if(d)m(d,function(b){b.brighten(a)});else if(qa(a)&&a!==0){var c;for(c=0;c<3;c++)b[c]+=B(a*255),b[c]<0&&(b[c]=0),b[c]>255&&(b[c]=255)}return this},rgba:b,setOpacity:function(a){b[3]=a;return this},raw:a}};K.prototype={opacity:1,textProps:"fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textShadow".split(","),init:function(a,b){this.element=b==="span"?Z(b):A.createElementNS(Ca,b); this.renderer=a},animate:function(a,b,c){b=p(b,za,!0);db(this);if(b){b=z(b,{});if(c)b.complete=c;lb(this,a,b)}else this.attr(a),c&&c();return this},colorGradient:function(a,b,c){var d=this.renderer,e,f,g,h,i,j,k,l,n,o,q=[];a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient");if(f){g=a[f];h=d.gradients;j=a.stops;n=c.radialReference;Ha(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});f==="radialGradient"&&n&&!s(g.gradientUnits)&&(g=z(g,{cx:n[0]-n[2]/ 2+g.cx*n[2],cy:n[1]-n[2]/2+g.cy*n[2],r:g.r*n[2],gradientUnits:"userSpaceOnUse"}));for(o in g)o!=="id"&&q.push(o,g[o]);for(o in j)q.push(j[o]);q=q.join(",");h[q]?a=h[q].attr("id"):(g.id=a="highcharts-"+yb++,h[q]=i=d.createElement(f).attr(g).add(d.defs),i.stops=[],m(j,function(a){a[1].indexOf("rgba")===0?(e=na(a[1]),k=e.get("rgb"),l=e.get("a")):(k=a[1],l=1);a=d.createElement("stop").attr({offset:a[0],"stop-color":k,"stop-opacity":l}).add(i);i.stops.push(a)}));c.setAttribute(b,"url("+d.url+"#"+a+")")}}, applyTextShadow:function(a){var b=this.element,c,d=a.indexOf("contrast")!==-1,e=this.renderer.forExport||b.style.textShadow!==u&&!ya;d&&(a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));e?d&&F(b,{textShadow:a}):(this.fakeTS=!0,this.ySetter=this.xSetter,c=[].slice.call(b.getElementsByTagName("tspan")),m(a.split(/\s?,\s?/g),function(a){var d=b.firstChild,e,i,a=a.split(" ");e=a[a.length-1];(i=a[a.length-2])&&m(c,function(a,c){var f;c===0&&(a.setAttribute("x",b.getAttribute("x")),c=b.getAttribute("y"), a.setAttribute("y",c||0),c===null&&b.setAttribute("y",0));f=a.cloneNode(1);L(f,{"class":"highcharts-text-shadow",fill:e,stroke:e,"stroke-opacity":1/t(B(i),3),"stroke-width":i,"stroke-linejoin":"round"});b.insertBefore(f,d)})}))},attr:function(a,b){var c,d,e=this.element,f,g=this,h;typeof a==="string"&&b!==u&&(c=a,a={},a[c]=b);if(typeof a==="string")g=(this[a+"Getter"]||this._defaultGetter).call(this,a,e);else{for(c in a){d=a[c];h=!1;this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&& (f||(this.symbolAttr(a),f=!0),h=!0);if(this.rotation&&(c==="x"||c==="y"))this.doTransform=!0;h||(this[c+"Setter"]||this._defaultSetter).call(this,d,c,e);this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d)}if(this.doTransform)this.updateTransform(),this.doTransform=!1}return g},updateShadows:function(a,b){for(var c=this.shadows,d=c.length;d--;)c[d].setAttribute(a,a==="height"?t(b-(c[d].cutHeight||0),0):a==="d"?this.d:b)},addClass:function(a){var b=this.element, c=L(b,"class")||"";c.indexOf(a)===-1&&L(b,"class",c+" "+a);return this},symbolAttr:function(a){var b=this;m("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=p(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":R)},crisp:function(a){var b,c={},d,e=a.strokeWidth||this.strokeWidth||0;d=x(e)%2/2;a.x=U(a.x||this.x||0)+d;a.y=U(a.y||this.y||0)+d;a.width= U((a.width||this.width||0)-2*d);a.height=U((a.height||this.height||0)-2*d);a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=c[b]=a[b]);return c},css:function(a){var b=this.styles,c={},d=this.element,e,f,g="";e=!b;if(a&&a.color)a.fill=a.color;if(b)for(f in a)a[f]!==b[f]&&(c[f]=a[f],e=!0);if(e){e=this.textWidth=a&&a.width&&d.nodeName.toLowerCase()==="text"&&B(a.width)||this.textWidth;b&&(a=r(b,c));this.styles=a;e&&(ea||!ba&&this.renderer.forExport)&&delete a.width;if(ya&&!ba)F(this.element,a);else{b= function(a,b){return"-"+b.toLowerCase()};for(f in a)g+=f.replace(/([A-Z])/g,b)+":"+a[f]+";";L(d,"style",g)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;ab&&a==="click"?(d.ontouchstart=function(a){c.touchEventFired=Aa.now();a.preventDefault();b.call(d,a)},d.onclick=function(a){(Ba.indexOf("Android")===-1||Aa.now()-(c.touchEventFired||0)>1100)&&b.call(d,a)}):d["on"+a]=b;return this},setRadialReference:function(a){this.element.radialReference=a;return this}, translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){this.inverted=!0;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height"));a=["translate("+a+","+b+")"];e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")");(s(c)||s(d))&& a.push("scale("+p(c,1)+" "+p(d,1)+")");a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){var d,e,f,g,h={};e=this.renderer;f=e.alignedObjects;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!c||Da(c))this.alignTo=d=c||"renderer",ia(f,this),f.push(this),c=null}else a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;c=p(c,e[d],e);d=a.align;e=a.verticalAlign;f=(c.x||0)+(a.x||0);g=(c.y||0)+ (a.y||0);if(d==="right"||d==="center")f+=(c.width-(a.width||0))/{right:1,center:2}[d];h[b?"translateX":"x"]=x(f);if(e==="bottom"||e==="middle")g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1);h[b?"translateY":"y"]=x(g);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this},getBBox:function(a){var b,c=this.renderer,d,e=this.rotation,f=this.element,g=this.styles,h=e*ga;d=this.textStr;var i,j=f.style,k,l;d!==u&&(l=["",e||0,g&&g.fontSize,f.style.width].join(","),l=d=== ""||Ob.test(d)?"num:"+d.toString().length+l:d+l);l&&!a&&(b=c.cache[l]);if(!b){if(f.namespaceURI===Ca||c.forExport){try{k=this.fakeTS&&function(a){m(f.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=a})},La&&j.textShadow?(i=j.textShadow,j.textShadow=""):k&&k(R),b=f.getBBox?r({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight},i?j.textShadow=i:k&&k("")}catch(n){}if(!b||b.width<0)b={width:0,height:0}}else b=this.htmlGetBBox();if(c.isSVG){a=b.width;d=b.height;if(ya&&g&& g.fontSize==="11px"&&d.toPrecision(3)==="16.9")b.height=d=14;if(e)b.width=O(d*$(h))+O(a*W(h)),b.height=O(d*W(h))+O(a*$(h))}c.cache[l]=b}return b},show:function(a){a&&this.element.namespaceURI===Ca?this.element.removeAttribute("visibility"):this.attr({visibility:a?"inherit":"visible"});return this},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer, c=this.element,d;if(a)this.parentGroup=a;this.parentInverted=a&&a.inverted;this.textStr!==void 0&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)d=this.zIndexSetter();d||(a?a.element:b.box).appendChild(c);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=a.renderer.isSVG&&b.nodeName==="SPAN"&&a.parentGroup,e,f;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point= null;db(a);if(a.clipPath)a.clipPath=a.clipPath.destroy();if(a.stops){for(f=0;f]*>/g, "")},textSetter:function(a){if(a!==this.textStr)delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this)},fillSetter:function(a,b,c){typeof a==="string"?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},zIndexSetter:function(a,b){var c=this.renderer,d=this.parentGroup,c=(d||c).element||c.box,e,f,g=this.element,h;e=this.added;var i;s(a)&&(g.setAttribute(b,a),a=+a,this[b]===a&&(e=!1),this[b]=a);if(e){if((a=this.zIndex)&&d)d.handleZ=!0;d=c.childNodes;for(i=0;ia||!s(a)&&s(f)))c.insertBefore(g,e),h=!0;h||c.appendChild(g)}return h},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};K.prototype.yGetter=K.prototype.xGetter;K.prototype.translateXSetter=K.prototype.translateYSetter=K.prototype.rotationSetter=K.prototype.verticalAlignSetter=K.prototype.scaleXSetter=K.prototype.scaleYSetter=function(a,b){this[b]=a;this.doTransform=!0};K.prototype["stroke-widthSetter"]=K.prototype.strokeSetter=function(a,b,c){this[b]=a;if(this.stroke&& this["stroke-width"])this.strokeWidth=this["stroke-width"],K.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0;else if(b==="stroke-width"&&a===0&&this.hasStroke)c.removeAttribute("stroke"),this.hasStroke=!1};var ta=function(){this.init.apply(this,arguments)};ta.prototype={Element:K,init:function(a,b,c,d,e){var f=location,g,d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));g=d.element;a.appendChild(g); a.innerHTML.indexOf("xmlns")===-1&&L(g,"xmlns",Ca);this.isSVG=!0;this.box=g;this.boxWrapper=d;this.alignedObjects=[];this.url=(La||xb)&&A.getElementsByTagName("base").length?f.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(A.createTextNode("Created with Highcharts 4.1.5"));this.defs=this.createElement("defs").add();this.forExport=e;this.gradients={};this.cache={};this.setSize(b,c,!1);var h;if(La&&a.getBoundingClientRect)this.subPixelFix= b=function(){F(a,{left:0,top:0});h=a.getBoundingClientRect();F(a,{left:sa(h.left)-h.left+"px",top:sa(h.top)-h.top+"px"})},b(),N(H,"resize",b)},getStyle:function(a){return this.style=r({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();Qa(this.gradients||{});this.gradients=null;if(a)this.defs=a.destroy(); this.subPixelFix&&Y(H,"resize",this.subPixelFix);return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:function(){},buildText:function(a){for(var b=a.element,c=this,d=c.forExport,e=p(a.textStr,"").toString(),f=e.indexOf("<")!==-1,g=b.childNodes,h,i,j=L(b,"x"),k=a.styles,l=a.textWidth,n=k&&k.lineHeight,o=k&&k.textShadow,q=k&&k.textOverflow==="ellipsis",y=g.length,S=l&&!a.added&&this.box,C=function(a){return n?B(n):c.fontMetrics(/(px|em)$/.test(a&& a.style.fontSize)?a.style.fontSize:k&&k.fontSize||c.style.fontSize||12,a).h},v=function(a){return a.replace(/</g,"<").replace(/>/g,">")};y--;)b.removeChild(g[y]);!f&&!o&&!q&&e.indexOf(" ")===-1?b.appendChild(A.createTextNode(v(e))):(h=/<.*style="([^"]+)".*>/,i=/<.*href="(http[^"]+)".*>/,S&&S.appendChild(b),e=f?e.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g): [e],e[e.length-1]===""&&e.pop(),m(e,function(e,f){var g,n=0,e=e.replace(//g,"|||");g=e.split("|||");m(g,function(e){if(e!==""||g.length===1){var o={},y=A.createElementNS(Ca,"tspan"),p;h.test(e)&&(p=e.match(h)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),L(y,"style",p));i.test(e)&&!d&&(L(y,"onclick",'location.href="'+e.match(i)[1]+'"'),F(y,{cursor:"pointer"}));e=v(e.replace(/<(.|\n)*?>/g,"")||" ");if(e!==" "){y.appendChild(A.createTextNode(e));if(n)o.dx=0; else if(f&&j!==null)o.x=j;L(y,o);b.appendChild(y);!n&&f&&(!ba&&d&&F(y,{display:"block"}),L(y,"dy",C(y)));if(l){for(var o=e.replace(/([^\^])-/g,"$1- ").split(" "),m=g.length>1||f||o.length>1&&k.whiteSpace!=="nowrap",S,s,ua,u=[],t=C(y),x=1,r=a.rotation,z=e,w=z.length;(m||q)&&(o.length||u.length);)a.rotation=0,S=a.getBBox(!0),ua=S.width,!ba&&c.forExport&&(ua=c.measureSpanWidth(y.firstChild.data,a.styles)),S=ua>l,s===void 0&&(s=S),q&&s?(w/=2,z===""||!S&&w<0.5?o=[]:(S&&(s=!0),z=e.substring(0,z.length+ (S?-1:1)*sa(w)),o=[z+"…"],y.removeChild(y.firstChild))):!S||o.length===1?(o=u,u=[],o.length&&(x++,y=A.createElementNS(Ca,"tspan"),L(y,{dy:t,x:j}),p&&L(y,"style",p),b.appendChild(y)),ua>l&&(l=ua)):(y.removeChild(y.firstChild),u.unshift(o.pop())),o.length&&y.appendChild(A.createTextNode(o.join(" ").replace(/- /g,"-")));s&&a.attr("title",a.textStr);a.rotation=r}n++}}})}),S&&S.removeChild(b),o&&a.applyTextShadow&&a.applyTextShadow(o))},getContrast:function(a){a=na(a).rgba;return a[0]+a[1]+a[2]>384?"#000": "#FFF"},button:function(a,b,c,d,e,f,g,h,i){var j=this.label(a,b,c,i,null,null,null,null,"button"),k=0,l,n,o,q,y,p,a={x1:0,y1:0,x2:0,y2:1},e=z({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},e);o=e.style;delete e.style;f=z(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},f);q=f.style;delete f.style;g=z(e,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},g);y=g.style;delete g.style; h=z(e,{style:{color:"#CCC"}},h);p=h.style;delete h.style;N(j.element,ya?"mouseover":"mouseenter",function(){k!==3&&j.attr(f).css(q)});N(j.element,ya?"mouseout":"mouseleave",function(){k!==3&&(l=[e,f,g][k],n=[o,q,y][k],j.attr(l).css(n))});j.setState=function(a){(j.state=k=a)?a===2?j.attr(g).css(y):a===3&&j.attr(h).css(p):j.attr(e).css(o)};return j.on("click",function(){k!==3&&d.call(j)}).attr(e).css(r({cursor:"default"},o))},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=x(a[1])-b%2/2);a[2]===a[5]&& (a[2]=a[5]=x(a[2])+b%2/2);return a},path:function(a){var b={fill:R};Ha(a)?b.d=a:ca(a)&&r(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=ca(a)?a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=function(a){this.element.setAttribute("cx",a)};b.ySetter=function(a){this.element.setAttribute("cy",a)};return b.attr(a)},arc:function(a,b,c,d,e,f){if(ca(a))b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x;a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0}); a.r=c;return a},rect:function(a,b,c,d,e,f){var e=ca(a)?a.r:e,g=this.createElement("rect"),a=ca(a)?a:a===u?{}:{x:a,y:b,width:t(c,0),height:t(d,0)};if(f!==u)a.strokeWidth=f,a=g.crisp(a);if(e)a.r=e;g.rSetter=function(a){L(this.element,{rx:a,ry:a})};return g.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;this.width=a;this.height=b;for(this.boxWrapper[p(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return s(a)?b.attr({"class":"highcharts-"+ a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:R};arguments.length>1&&r(f,{x:b,y:c,width:d,height:e});f=this.createElement("image").attr(f);f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a);return f},symbol:function(a,b,c,d,e,f){var g,h=this.symbols[a],h=h&&h(x(b),x(c),d,e,f),i=/^url\((.*?)\)$/,j,k;if(h)g=this.path(h),r(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&r(g,f);else if(i.test(a))k=function(a,b){a.element&& (a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(x((d-b[0])/2),x((e-b[1])/2)))},j=a.match(i)[1],a=Kb[j]||f&&f.width&&f.height&&[f.width,f.height],g=this.image(j).attr({x:b,y:c}),g.isImg=!0,a?k(g,a):(g.attr({width:0,height:0}),Z("img",{onload:function(){k(g,Kb[j]=[this.width,this.height])},src:j}));return g},symbols:{circle:function(a,b,c,d){var e=0.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L", a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-0.001,d=e.innerR,h=e.open,i=W(f),j=$(f),k=W(g),g=$(g),e=e.end-fc&&i>b+g&&ib+g&&id&&h>a+g&&ha+g&&hn&&/[ \-]/.test(b.textContent||b.innerText))F(b,{width:n+"px",display:"block",whiteSpace:j&&j.whiteSpace||"normal"}),i=n;this.getSpanCorrection(i,l,h,k,g)}F(b,{left:e+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});if(xb)l=b.offsetHeight;this.cTT=o}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=ya?"-ms-transform":xb?"-webkit-transform":La?"MozTransform":Ib?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)"; d[e+(La?"Origin":"-origin")]=d.transformOrigin=b*100+"% "+c+"px";F(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});r(ta.prototype,{html:function(a,b,c){var d=this.createElement("span"),e=d.element,f=d.renderer;d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;e.innerHTML=this.textStr=a};d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,b){b==="align"&&(b="textAlign");d[b]=a;d.htmlUpdateTransform()};d.attr({text:a,x:x(b),y:x(c)}).css({position:"absolute", fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";d.css=d.htmlCss;if(f.isSVG)d.add=function(a){var b,c=f.box.parentNode,j=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)j.push(a),a=a.parentGroup;m(j.reverse(),function(a){var d;b=a.div=a.div||Z(Ka,{className:L(a.element,"class")},{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px"},b||c);d=b.style;r(a,{translateXSetter:function(b,c){d.left=b+"px";a[c]=b;a.doTransform=!0},translateYSetter:function(b, c){d.top=b+"px";a[c]=b;a.doTransform=!0},visibilitySetter:function(a,b){d[b]=a}})})}}else b=c;b.appendChild(e);d.added=!0;d.alignOnAdd&&d.htmlUpdateTransform();return d};return d}});if(!ba&&!ea){D={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e=b===Ka;(b==="shape"||e)&&d.push("left:0;top:0;width:1px;height:1px;");d.push("visibility: ",e?"hidden":"visible");c.push(' style="',d.join(""),'"/>');if(b)c=e||b==="span"||b==="img"?c.join(""):a.prepVML(c),this.element= Z(c);this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;a&&a.inverted&&b.invertChild(c,d);d.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();return this},updateTransform:K.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=this.rotation,b=W(a*ga),c=$(a*ga);F(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""): R})},getSpanCorrection:function(a,b,c,d,e){var f=d?W(d*ga):1,g=d?$(d*ga):0,h=p(this.elemHeight,this.element.offsetHeight),i;this.xCorr=f<0&&-a;this.yCorr=g<0&&-h;i=f*g<0;this.xCorr+=g*b*(i?1-c:c);this.yCorr-=f*b*(d?i?c:1-c:1);e&&e!=="left"&&(this.xCorr-=a*c*(f<0?-1:1),d&&(this.yCorr-=h*c*(g<0?-1:1)),F(this.element,{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)if(qa(a[b]))c[b]=x(a[b]*10)-5;else if(a[b]==="Z")c[b]="x";else if(c[b]=a[b],a.isArc&&(a[b]==="wa"||a[b]==="at"))c[b+5]=== c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1);return c.join(" ")||"x"},clip:function(a){var b=this,c;a?(c=a.members,ia(c,b),c.push(b),b.destroyClip=function(){ia(c,b)},a=a.getCSS(b)):(b.destroyClip&&b.destroyClip(),a={clip:hb?"inherit":"rect(auto)"});return b.css(a)},css:K.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&Ra(a)},destroy:function(){this.destroyClip&&this.destroyClip();return K.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+ a]=function(){var a=H.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){var c,a=a.split(/[ ,]/);c=a.length;if(c===9||c===11)a[c-4]=a[c-2]=B(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var d=[],e,f=this.element,g=this.renderer,h,i=f.style,j,k=f.path,l,n,o,q;k&&typeof k.value!=="string"&&(k="x");n=k;if(a){o=p(a.width,3);q=(a.opacity||0.15)/o;for(e=1;e<=3;e++){l=o*2+1-2*e;c&&(n=this.cutOffPath(k.value,l+0.5));j=[''];h=Z(g.prepVML(j),null,{left:B(i.left)+p(a.offsetX,1),top:B(i.top)+p(a.offsetY,1)});if(c)h.cutOff=l+1;j=[''];Z(g.prepVML(j),null,null,h);b?b.element.appendChild(h):f.parentNode.insertBefore(h,f);d.push(h)}this.shadows=d}return this},updateShadows:ma,setAttr:function(a,b){hb?this.element[a]=b:this.element.setAttribute(a,b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a, b,c){(c.getElementsByTagName("stroke")[0]||Z(this.renderer.prepVML([""]),null,null,c))[b]=a||"solid";this[b]=a},dSetter:function(a,b,c){var d=this.shadows,a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;if(d==="SPAN")c.style.color=a;else if(d!=="IMG")c.filled=a!==R,this.setAttr("fillcolor",this.renderer.color(a,c,b,this))},opacitySetter:ma, rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-x($(a*ga)+1)+"px";c.top=x(W(a*ga))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;this[b]=a;qa(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){a==="inherit"&&(a="visible");this.shadows&&m(this.shadows,function(c){c.style[b]=a});c.nodeName==="DIV"&&(a=a==="hidden"?"-999em": 0,hb||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},xSetter:function(a,b,c){this[b]=a;b==="x"?b="left":b==="y"&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}};w.VMLElement=D=ja(K,D);D.prototype.ySetter=D.prototype.widthSetter=D.prototype.heightSetter=D.prototype.xSetter;var Na={Element:D,isIE8:Ba.indexOf("MSIE 8.0")>-1,init:function(a,b,c,d){var e;this.alignedObjects=[];d=this.createElement(Ka).css(r(this.getStyle(d), {position:"relative"}));e=d.element;a.appendChild(d.element);this.isVML=!0;this.box=e;this.boxWrapper=d;this.cache={};this.setSize(b,c,!1);if(!A.namespaces.hcv){A.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{A.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){A.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}}, isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=ca(a);return r(e,{members:[],count:0,left:(f?a.x:a)+1,top:(f?a.y:b)+1,width:(f?a.width:c)-1,height:(f?a.height:d)-1,getCSS:function(a){var b=a.element,c=b.nodeName,a=a.inverted,d=this.top-(c==="shape"?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+x(a?e:d)+"px,"+x(a?f:b)+"px,"+x(a?b:f)+"px,"+x(a?d:e)+"px)"};!a&&hb&&c==="DIV"&&r(d,{width:b+"px",height:f+"px"});return d}, updateClipping:function(){m(e.members,function(a){a.element&&a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e=this,f,g=/^rgba/,h,i,j=R;a&&a.linearGradient?i="gradient":a&&a.radialGradient&&(i="pattern");if(i){var k,l,n=a.linearGradient||a.radialGradient,o,q,y,p,C,v="",a=a.stops,s,fa=[],t=function(){h=[''];Z(e.prepVML(h),null,null,b)};o=a[0];s=a[a.length-1];o[0]>0&&a.unshift([0,o[1]]); s[0]<1&&a.push([1,s[1]]);m(a,function(a,b){g.test(a[1])?(f=na(a[1]),k=f.get("rgb"),l=f.get("a")):(k=a[1],l=1);fa.push(a[0]*100+"% "+k);b?(y=l,p=k):(q=l,C=k)});if(c==="fill")if(i==="gradient")c=n.x1||n[0]||0,a=n.y1||n[1]||0,o=n.x2||n[2]||0,n=n.y2||n[3]||0,v='angle="'+(90-V.atan((n-a)/(o-c))*180/la)+'"',t();else{var j=n.r,u=j*2,x=j*2,r=n.cx,E=n.cy,z=b.radialReference,w,j=function(){z&&(w=d.getBBox(),r+=(z[0]-w.x)/w.width-0.5,E+=(z[1]-w.y)/w.height-0.5,u*=z[2]/w.width,x*=z[2]/w.height);v='src="'+P.global.VMLRadialGradientURL+ '" size="'+u+","+x+'" origin="0.5,0.5" position="'+r+","+E+'" color2="'+C+'" ';t()};d.added?j():d.onAdd=j;j=p}else j=k}else if(g.test(a)&&b.tagName!=="IMG")f=na(a),h=["<",c,' opacity="',f.get("a"),'"/>'],Z(this.prepVML(h),null,null,b),j=f.get("rgb");else{j=b.getElementsByTagName(c);if(j.length)j[0].opacity=1,j[0].type="solid";j=a}return j},prepVML:function(a){var b=this.isIE8,a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'): a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","1&&f.attr({x:b,y:c,width:d,height:e});return f},createElement:function(a){return a==="rect"?this.symbol(a):ta.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this,d=b.style,e=a.tagName==="IMG"&&a.style;F(a,{flip:"x",left:B(d.width)-(e?B(e.top):1),top:B(d.height)-(e?B(e.left):1),rotation:-90});m(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c|| d,c=e.innerR,d=W(f),i=$(f),j=W(g),k=$(g);if(g-f===0)return["x"];f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*i,a+h*j,b+h*k];e.open&&!c&&f.push("e","M",a,b);f.push("at",a-c,b-c,a+c,b+c,a+c*j,b+c*k,a+c*d,b+c*i,"x","e");f.isArc=!0;return f},circle:function(a,b,c,d,e){e&&(c=d=2*e.r);e&&e.isCircle&&(a-=c/2,b-=d/2);return["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){return ta.prototype.symbols[!s(e)||!e.r?"square":"callout"].call(0,a,b,c,d,e)}}};w.VMLRenderer=D=function(){this.init.apply(this, arguments)};D.prototype=z(ta.prototype,Na);$a=D}ta.prototype.measureSpanWidth=function(a,b){var c=A.createElement("span"),d;d=A.createTextNode(a);c.appendChild(d);F(c,b);this.box.appendChild(c);d=c.offsetWidth;Ra(c);return d};var Lb;if(ea)w.CanVGRenderer=D=function(){Ca="http://www.w3.org/1999/xhtml"},D.prototype.symbols={},Lb=function(){function a(){var a=b.length,d;for(d=0;d0&&c+i*j>e&&(l=x((d-c)/W(h*ga)));else{d=c-i*j;c+=i*j;if(de)k-=c-e,a.x=e,g.attr({align:"right"});if(j>k||b.autoRotation&&g.styles.width)l=k}l&&g.css({width:l,textOverflow:"ellipsis"})},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var i=this.axis, j=i.transA,k=i.reversed,l=i.staggerLines,n=i.tickRotCorr||{x:0,y:0},c=p(e.y,n.y+(i.side===2?8:-(c.getBBox().height/2))),a=a+e.x+n.x-(f&&d?f*j*(k?-1:1):0),b=b+c-(f&&!d?f*j*(k?1:-1):0);l&&(b+=g/(h||1)%l*(i.labelOffset/l));return{x:a,y:x(b)}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,i=this.label,j=this.pos,k=e.labels,l=this.gridLine,n=h?h+"Grid":"grid",o=h?h+ "Tick":"tick",q=e[n+"LineWidth"],y=e[n+"LineColor"],m=e[n+"LineDashStyle"],C=e[o+"Length"],n=e[o+"Width"]||0,v=e[o+"Color"],s=e[o+"Position"],o=this.mark,fa=k.step,t=!0,x=d.tickmarkOffset,r=this.getPosition(g,j,x,b),w=r.x,r=r.y,z=g&&w===d.pos+d.len||!g&&r===d.pos?-1:1,c=p(c,1);this.isActive=!0;if(q){j=d.getPlotLinePath(j+x,q*z,b,!0);if(l===u){l={stroke:y,"stroke-width":q};if(m)l.dashstyle=m;if(!h)l.zIndex=1;if(b)l.opacity=0;this.gridLine=l=q?f.path(j).attr(l).add(d.gridGroup):null}if(!b&&l&&j)l[this.isNew? "attr":"animate"]({d:j,opacity:c})}if(n&&C)s==="inside"&&(C=-C),d.opposite&&(C=-C),h=this.getMarkPath(w,r,C,n*z,g,f),o?o.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:v,"stroke-width":n,opacity:c}).add(d.axisGroup);if(i&&!isNaN(w))i.xy=r=this.getLabelPosition(w,r,i,g,k,x,a,fa),this.isFirst&&!this.isLast&&!p(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!p(e.showLastLabel,1)?t=!1:g&&!d.isRadial&&!k.step&&!k.rotation&&!b&&c!==0&&this.handleOverflow(r),fa&&a%fa&&(t=!1),t&&!isNaN(r.y)? (r.opacity=c,i[this.isNew?"attr":"animate"](r),this.isNew=!1):i.attr("y",-9999)},destroy:function(){Qa(this,this.axis)}};w.PlotLineOrBand=function(a,b){this.axis=a;if(b)this.options=b,this.id=b.id};w.PlotLineOrBand.prototype={render:function(){var a=this,b=a.axis,c=b.horiz,d=a.options,e=d.label,f=a.label,g=d.width,h=d.to,i=d.from,j=s(i)&&s(h),k=d.value,l=d.dashStyle,n=a.svgElem,o=[],q,y=d.color,p=d.zIndex,m=d.events,v={},t=b.chart.renderer;b.isLog&&(i=Ea(i),h=Ea(h),k=Ea(k));if(g){if(o=b.getPlotLinePath(k, g),v={stroke:y,"stroke-width":g},l)v.dashstyle=l}else if(j){o=b.getPlotBandPath(i,h,d);if(y)v.fill=y;if(d.borderWidth)v.stroke=d.borderColor,v["stroke-width"]=d.borderWidth}else return;if(s(p))v.zIndex=p;if(n)if(o)n.animate({d:o},null,n.onGetPath);else{if(n.hide(),n.onGetPath=function(){n.show()},f)a.label=f=f.destroy()}else if(o&&o.length&&(a.svgElem=n=t.path(o).attr(v).add(),m))for(q in d=function(b){n.on(b,function(c){m[b].apply(a,[c])})},m)d(q);if(e&&s(e.text)&&o&&o.length&&b.width>0&&b.height> 0){e=z({align:c&&j&&"center",x:c?!j&&4:10,verticalAlign:!c&&j&&"middle",y:c?j?16:10:j?6:-4,rotation:c&&!j&&90},e);if(!f){v={align:e.textAlign||e.align,rotation:e.rotation};if(s(p))v.zIndex=p;a.label=f=t.text(e.text,0,0,e.useHTML).attr(v).css(e.style).add()}b=[o[1],o[4],j?o[6]:o[1]];j=[o[2],o[5],j?o[7]:o[2]];o=Pa(b);c=Pa(j);f.align(e,!1,{x:o,y:c,width:Fa(b)-o,height:Fa(j)-c});f.show()}else f&&f.hide();return a},destroy:function(){ia(this.axis.plotLinesAndBands,this);delete this.axis;Qa(this)}};var va= w.Axis=function(){this.init.apply(this,arguments)};va.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0,y:15},lineColor:"#C0D0E0",lineWidth:1,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2, minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return w.numberFormat(this.total, -1)},style:z(aa.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0,y:-15},title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c;this.coll=(this.isXAxis=c)?"xAxis":"yAxis";this.opposite=b.opposite;this.side=b.side|| (this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter;this.userOptions=b;this.minPixelPadding=0;this.chart=a;this.reversed=d.reversed;this.zoomEnabled=d.zoomEnabled!==!1;this.categories=d.categories||e==="category";this.names=this.names||[];this.isLog=e==="logarithmic";this.isDatetimeAxis=e==="datetime";this.isLinked=s(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands= [];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.stacks={};this.oldStacks={};this.min=this.max=null;this.crosshair=p(d.crosshair,ra(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;Ma(this,a.axes)===-1&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];if(a.inverted&&c&&this.reversed===u)this.reversed=!0;this.removePlotLine= this.removePlotBand=this.removePlotBandOrLine;for(f in d)N(this,f,d[f]);if(this.isLog)this.val2lin=Ea,this.lin2val=ha},setOptions:function(a){this.options=z(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(P[this.coll],a))},defaultLabelFormatter:function(){var a=this.axis,b=this.value,c=a.categories,d=this.dateTimeLabelFormat,e=P.lang.numericSymbols,f=e&&e.length, g,h=a.options.labels.format,a=a.isLog?b:a.tickInterval;if(h)g=Ja(h,this);else if(c)g=b;else if(d)g=Oa(d,b);else if(f&&a>=1E3)for(;f--&&g===u;)c=Math.pow(1E3,f+1),a>=c&&e[f]!==null&&(g=w.numberFormat(b/c,-1)+e[f]);g===u&&(g=O(b)>=1E4?w.numberFormat(b,0):w.numberFormat(b,-1,u,""));return g},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();m(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d; d=c.options.threshold;var e;a.hasVisibleSeries=!0;a.isLog&&d<=0&&(d=null);if(a.isXAxis){if(d=c.xData,d.length)a.dataMin=I(p(a.dataMin,d[0]),Pa(d)),a.dataMax=t(p(a.dataMax,d[0]),Fa(d))}else{c.getExtremes();e=c.dataMax;c=c.dataMin;if(s(c)&&s(e))a.dataMin=I(p(a.dataMin,c),c),a.dataMax=t(p(a.dataMax,e),e);if(s(d))if(a.dataMin>=d)a.dataMin=d,a.ignoreMinPadding=!0;else if(a.dataMaxc)d?a=I(t(b,a),c):n=!0;return a},e=p(e,this.translate(a,null,null,c)),a=c=x(e+i);i=j=x(k-e-i);isNaN(e)?n=!0:this.horiz?(i=h,j=k-this.bottom,a=c=o(a,g,g+this.width)):(a=g,c=l-this.right,i=j=o(i,h,h+this.height));return n&&!d?null:f.renderer.crispLine(["M",a,i,"L",c,j],b||1)},getLinearTickPositions:function(a, b,c){var d,e=da(U(b/a)*a),f=da(sa(c/a)*a),g=[];if(b===c&&qa(b))return[b];for(b=e;b<=f;){g.push(b);b=da(b+a);if(b===d)break;d=b}return g},getMinorTickPositions:function(){var a=this.options,b=this.tickPositions,c=this.minorTickInterval,d=[],e,f=this.min;e=this.max;var g=e-f;if(g&&g/c=this.minRange,f,g,h,i,j;if(this.isXAxis&&this.minRange===u&&!this.isLog)s(a.min)||s(a.max)?this.minRange=null:(m(this.series,function(a){i=a.xData;for(g=j=a.xIncrement?1:i.length-1;g>0;g--)if(h=i[g]-i[g-1],f===u||hc&&(h=0);d=t(d,h);b.single||(f=t(f,Da(j)?0:h/2),g=t(g,j==="on"?0:h));!a.noSharedTooltip&&s(q)&&(e=s(e)?I(e,q):q)}),h=b.ordinalSlope&&e?b.ordinalSlope/e:1,b.minPointOffset=f*=h,b.pointRangePadding=g*=h,b.pointRange=I(d,c),k)b.closestPointRange=e;if(a)b.oldTransA=j;b.translationSlope=b.transA=j=b.len/(c+g||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=j*f},setTickInterval:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,f=b.isDatetimeAxis,g=b.isXAxis,h=b.isLinked,i=d.maxPadding,j=d.minPadding, k=d.tickInterval,l=d.tickPixelInterval,n=b.categories;!f&&!n&&!h&&this.getTickAmount();h?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=p(c.min,c.dataMin),b.max=p(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&ka(11,1)):(b.min=p(b.userMin,d.min,b.dataMin),b.max=p(b.userMax,d.max,b.dataMax));if(e)!a&&I(b.min,p(b.dataMin,b.min))<=0&&ka(10,1),b.min=da(Ea(b.min)),b.max=da(Ea(b.max));if(b.range&&s(b.max))b.userMin=b.min=t(b.min,b.max-b.range),b.userMax=b.max,b.range= null;b.beforePadding&&b.beforePadding();b.adjustForMinRange();if(!n&&!b.axisPointRange&&!b.usePercentage&&!h&&s(b.min)&&s(b.max)&&(c=b.max-b.min)){if(!s(d.min)&&!s(b.userMin)&&j&&(b.dataMin<0||!b.ignoreMinPadding))b.min-=c*j;if(!s(d.max)&&!s(b.userMax)&&i&&(b.dataMax>0||!b.ignoreMaxPadding))b.max+=c*i}if(qa(d.floor))b.min=t(b.min,d.floor);if(qa(d.ceiling))b.max=I(b.max,d.ceiling);b.tickInterval=b.min===b.max||b.min===void 0||b.max===void 0?1:h&&!k&&l===b.linkedParent.options.tickPixelInterval?b.linkedParent.tickInterval: p(k,this.tickAmount?(b.max-b.min)/t(this.tickAmount-1,1):void 0,n?1:(b.max-b.min)*l/t(b.len,l));g&&!a&&m(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();if(b.postProcessTickInterval)b.tickInterval=b.postProcessTickInterval(b.tickInterval);if(b.pointRange)b.tickInterval=t(b.pointRange,b.tickInterval);a=p(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);if(!k&&b.tickInterval0.5&&b.tickInterval<5&&b.max>1E3&&b.max<9999)),!!this.tickAmount);if(!this.tickAmount&&this.len)b.tickInterval=b.unsquish();this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions,d=a.tickPositioner,e=a.startOnTick,f=a.endOnTick,g;this.tickmarkOffset=this.categories&&a.tickmarkPlacement==="between"&&this.tickInterval===1?0.5:0;this.minorTickInterval=a.minorTickInterval=== "auto"&&this.tickInterval?this.tickInterval/5:a.minorTickInterval;this.tickPositions=b=a.tickPositions&&a.tickPositions.slice();if(!b&&(this.tickPositions=b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d&&(d=d.apply(this,[this.min, this.max]))))this.tickPositions=b=d;if(!this.isLinked)this.trimTicks(b,e,f),this.min===this.max&&s(this.min)&&!this.tickAmount&&(g=!0,this.min-=0.5,this.max+=0.5),this.single=g,!c&&!d&&this.adjustTickAmount()},trimTicks:function(a,b,c){var d=a[0],e=a[a.length-1],f=this.minPointOffset||0;b?this.min=d:this.min-f>d&&a.shift();c?this.max=e:this.max+fc&&(this.tickInterval*=2,this.setTickPositions());if(s(d)){for(a=c=b.length;a--;)(d===3&&a%2===1||d<=2&&a>0&&a=t(d,p(e.max,d))&&(b=u));this.displayBtn=a!==u||b!==u;this.setExtremes(a,b,!1,u,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft|| 0,d=this.horiz,e=p(b.width,a.plotWidth-c+(b.offsetRight||0)),f=p(b.height,a.plotHeight),g=p(b.top,a.plotTop),b=p(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=parseFloat(f)/100*a.plotHeight);c.test(g)&&(g=parseFloat(g)/100*a.plotHeight+a.plotTop);this.left=b;this.top=g;this.width=e;this.height=f;this.bottom=a.chartHeight-f-g;this.right=a.chartWidth-e-b;this.len=t(d?e:f,0);this.pos=d?b:g},getExtremes:function(){var a=this.isLog;return{min:a?da(ha(this.min)):this.min,max:a?da(ha(this.max)):this.max,dataMin:this.dataMin, dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?ha(this.min):this.min,b=b?ha(this.max):this.max;c>a||a===null?a=c:b15&&a<165?"right":a>195&&a<345?"left":"center"},unsquish:function(){var a=this.ticks,b=this.options.labels,c=this.horiz,d=this.tickInterval,e=d,f=this.len/(((this.categories?1:0)+this.max-this.min)/d),g,h=b.rotation, i=this.chart.renderer.fontMetrics(b.style.fontSize,a[0]&&a[0].label),j,k=Number.MAX_VALUE,l,n=function(a){a/=f||1;a=a>1?sa(a):1;return a*d};c?(l=s(h)?[h]:f=-90&&a<=90)j=n(O(i.h/$(ga*a))),b=j+O(a/360),bl)l=a.labelLength}),l>i&&l>g.h?j.rotation=this.labelRotation:this.labelRotation=0;else if(h){k={width:i+"px",textOverflow:"clip"};for(h=c.length;!f&& h--;)if(i=c[h],i=d[i].label)if(i.styles.textOverflow==="ellipsis"&&i.css({textOverflow:"clip"}),i.getBBox().height>this.len/c.length-(g.h-g.f))i.specCss={textOverflow:"ellipsis"}}j.rotation&&(k={width:(l>a.chartHeight*0.5?a.chartHeight*0.33:a.chartHeight)+"px",textOverflow:"ellipsis"});this.labelAlign=j.align=e.align||this.autoLabelAlign(this.labelRotation);m(c,function(a){var b=(a=d[a])&&a.label;if(b)k&&b.css(z(k,b.specCss)),delete b.specCss,b.attr(j),a.rotation=j.rotation});this.tickRotCorr=b.rotCorr(g.b, this.labelRotation||0,this.side===2)},getOffset:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.tickPositions,f=a.ticks,g=a.horiz,h=a.side,i=b.inverted?[1,0,3,2][h]:h,j,k,l=0,n,o=0,q=d.title,y=d.labels,S=0,C=b.axisOffset,b=b.clipOffset,v=[-1,1,1,-1][h],r;a.hasData=j=a.hasVisibleSeries||s(a.min)&&s(a.max)&&!!e;a.showAxis=k=j||p(d.showEmpty,!0);a.staggerLines=a.horiz&&y.staggerLines;if(!a.axisGroup)a.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(),a.axisGroup=c.g("axis").attr({zIndex:d.zIndex|| 2}).add(),a.labelGroup=c.g("axis-labels").attr({zIndex:y.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels").add();if(j||a.isLinked){if(m(e,function(b){f[b]?f[b].addLabel():f[b]=new Ta(a,b)}),a.renderUnsquish(),m(e,function(b){if(h===0||h===2||{1:"left",3:"right"}[h]===a.labelAlign)S=t(f[b].getLabelSize(),S)}),a.staggerLines)S*=a.staggerLines,a.labelOffset=S}else for(r in f)f[r].destroy(),delete f[r];if(q&&q.text&&q.enabled!==!1){if(!a.axisTitle)a.axisTitle=c.text(q.text,0,0,q.useHTML).attr({zIndex:7, rotation:q.rotation||0,align:q.textAlign||{low:"left",middle:"center",high:"right"}[q.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(q.style).add(a.axisGroup),a.axisTitle.isNew=!0;if(k)l=a.axisTitle.getBBox()[g?"height":"width"],n=q.offset,o=s(n)?0:p(q.margin,g?5:10);a.axisTitle[k?"show":"hide"]()}a.offset=v*p(d.offset,C[h]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=h===2?a.tickRotCorr.y:0;g=S+o+(S&&v*(g?p(y.y,a.tickRotCorr.y+8):y.x)-c);a.axisTitleMargin=p(n,g);C[h]=t(C[h],a.axisTitleMargin+ l+v*a.offset,g);b[i]=t(b[i],U(d.lineWidth/2)*2)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;c&&(a*=-1);return b.renderer.crispLine(["M",e?this.left:f,e?d:this.top,"L",e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,e=this.options.title,f=a?b:c,g=this.opposite,h=this.offset,i=B(e.style.fontSize|| 12),d={low:f+(a?0:d),middle:f+d/2,high:f+(a?d:0)}[e.align],b=(a?c+this.height:b)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+(this.side===2?i:0);return{x:a?d:b+(g?this.width:0)+h+(e.x||0),y:a?b-(g?this.height:0)+h:d+(e.y||0)}},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.options,e=a.isLog,f=a.isLinked,g=a.tickPositions,h=a.axisTitle,i=a.ticks,j=a.minorTicks,k=a.alternateBands,l=d.stackLabels,n=d.alternateGridColor,o=a.tickmarkOffset,q=d.lineWidth,y,p=b.hasRendered&&s(a.oldMin)&&!isNaN(a.oldMin); y=a.hasData;var C=a.showAxis,v,r;a.labelEdge.length=0;a.overlap=!1;m([i,j,k],function(a){for(var b in a)a[b].isActive=!1});if(y||f){a.minorTickInterval&&!a.categories&&m(a.getMinorTickPositions(),function(b){j[b]||(j[b]=new Ta(a,b,"minor"));p&&j[b].isNew&&j[b].render(null,!0);j[b].render(null,!1,1)});if(g.length&&(m(g,function(b,c){if(!f||b>=a.min&&b<=a.max)i[b]||(i[b]=new Ta(a,b)),p&&i[b].isNew&&i[b].render(c,!0,0.1),i[b].render(c)}),o&&(a.min===0||a.single)))i[-1]||(i[-1]=new Ta(a,-1,null,!0)), i[-1].render(-1);n&&m(g,function(b,c){if(c%2===0&&b=G.second?0:k*U(i.getMilliseconds()/k));if(j>=G.second)i[Eb](j>=G.minute?0:k*U(i.getSeconds()/k));if(j>=G.minute)i[Fb](j>=G.hour?0:k*U(i[rb]()/k));if(j>=G.hour)i[Gb](j>=G.day?0:k*U(i[sb]()/k));if(j>=G.day)i[ub](j>=G.month?1:k*U(i[Xa]()/k));j>=G.month&&(i[vb](j>=G.year?0:k*U(i[Ya]()/k)),h=i[Za]());j>=G.year&&(h-=h%k,i[wb](h));if(j===G.week)i[ub](i[Xa]()-i[tb]()+p(d,1));b=1;if(nb||eb)i=i.getTime(),i=new Aa(i+ Wa(i));h=i[Za]();for(var d=i.getTime(),l=i[Ya](),n=i[Xa](),o=(G.day+(g?Wa(i):i.getTimezoneOffset()*6E4))%G.day;d=0.5)a=x(a),g=this.getLinearTickPositions(a,b,c);else if(a>=0.08)for(var f=U(b),h,i,j,k,l,e=a>0.3?[1,2,4]:a>0.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];fb&&(!d||k<=c)&&k!==u&&g.push(k),k>c&&(l=!0),k=j}else if(b=ha(b),c=ha(c),a=e[d?"minorTickInterval":"tickInterval"],a=p(a==="auto"?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=pb(a,null,ob(a)),g=Ua(this.getLinearTickPositions(a, b,c),Ea),!d)this._minorAutoInterval=a/5;if(!d)this.tickInterval=a;return g};var Mb=w.Tooltip=function(){this.init.apply(this,arguments)};Mb.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,e=B(d.padding);this.chart=a;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.label=a.renderer.label("",0,0,b.shape||"callout",null,null,b.useHTML,null,"tooltip").attr({padding:e,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,zIndex:8}).css(d).css({padding:0}).add().attr({y:-9999}); ea||this.label.shadow(b.shadow);this.shared=b.shared},destroy:function(){if(this.label)this.label=this.label.destroy();clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=e.options.animation!==!1&&!e.isHidden&&(O(a-f.x)>1||O(b-f.y)>1),h=e.followPointer||e.len>1;r(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?u:g?(2*f.anchorX+c)/3:c,anchorY:h?u:g?(f.anchorY+d)/2:d});e.label.attr(f);if(g)clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&& e.move(a,b,c,d)},32)},hide:function(a){var b=this,c;clearTimeout(this.hideTimer);if(!this.isHidden)c=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){b.label.fadeOut();b.isHidden=!0},p(a,this.options.hideDelay,500)),c&&m(c,function(a){a.setState()}),this.chart.hoverPoints=null,this.chart.hoverSeries=null},getAnchor:function(a,b){var c,d=this.chart,e=d.inverted,f=d.plotTop,g=d.plotLeft,h=0,i=0,j,k,a=ra(a);c=a[0].tooltipPos;this.followPointer&&b&&(b.chartX===u&&(b=d.pointer.normalize(b)), c=[b.chartX-d.plotLeft,b.chartY-f]);c||(m(a,function(a){j=a.series.yAxis;k=a.series.xAxis;h+=a.plotX+(!e&&k?k.left-g:0);i+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!e&&j?j.top-f:0)}),h/=a.length,i/=a.length,c=[e?d.plotWidth-i:h,this.shared&&!e&&a.length>1&&b?b.chartY-f:e?d.plotHeight-h:i]);return Ua(c,x)},getPosition:function(a,b,c){var d=this.chart,e=this.distance,f={},g=c.h,h,i=["y",d.chartHeight,b,c.plotY+d.plotTop],j=["x",d.chartWidth,a,c.plotX+d.plotLeft],k=p(c.ttBelow,d.inverted&&!c.negative|| !d.inverted&&c.negative),l=function(a,b,c,d){var h=cb?d:d+g;else return!1},n=function(a,b,c,d){if(db-e)return!1;else f[a]=db-c/2?b-c-2:d-c/2},o=function(a){var b=i;i=j;j=b;h=a},q=function(){l.apply(0,i)!==!1?n.apply(0,j)===!1&&!h&&(o(!0),q()):h?f.x=f.y=0:(o(!0),q())};(d.inverted||this.len>1)&&o();q();return f},defaultFormatter:function(a){var b=this.points||ra(this),c;c=[a.tooltipFooterHeaderFormatter(b[0])]; c=c.concat(a.bodyFormatter(b));c.push(a.tooltipFooterHeaderFormatter(b[0],!0));return c.join("")},refresh:function(a,b){var c=this.chart,d=this.label,e=this.options,f,g,h={},i,j=[];i=e.formatter||this.defaultFormatter;var h=c.hoverPoints,k,l=this.shared;clearTimeout(this.hideTimer);this.followPointer=ra(a)[0].series.tooltipOptions.followPointer;g=this.getAnchor(a,b);f=g[0];g=g[1];l&&(!a.series||!a.series.noSharedTooltip)?(c.hoverPoints=a,h&&m(h,function(a){a.setState()}),m(a,function(a){a.setState("hover"); j.push(a.getLabelConfig())}),h={x:a[0].category,y:a[0].y},h.points=j,this.len=j.length,a=a[0]):h=a.getLabelConfig();i=i.call(h,this);h=a.series;this.distance=p(h.tooltipOptions.distance,16);i===!1?this.hide():(this.isHidden&&(db(d),d.attr("opacity",1).show()),d.attr({text:i}),k=e.borderColor||a.color||h.color||"#606060",d.attr({stroke:k}),this.updatePosition({plotX:f,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:a.shapeArgs&&a.shapeArgs.height||0}),this.isHidden=!1);M(c,"tooltipRefresh",{text:i, x:f+c.plotLeft,y:g+c.plotTop,borderColor:k})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(x(c.x),x(c.y),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d,b=b.dateTimeLabelFormats,e=c&&c.closestPointRange,f,g={millisecond:15,second:12,minute:9,hour:6,day:3},h,i;if(e){h=Oa("%m-%d %H:%M:%S.%L",a.x);for(f in G){if(e===G.week&&+Oa("%w",a.x)===c.options.startOfWeek&&h.substr(6)=== "00:00:00.000"){f="week";break}else if(G[f]>e){f=i;break}else if(g[f]&&h.substr(g[f])!=="01-01 00:00:00.000".substr(g[f]))break;f!=="week"&&(i=f)}f&&(d=b[f])}else d=b.day;return d||b.year},tooltipFooterHeaderFormatter:function(a,b){var c=b?"footer":"header",d=a.series,e=d.tooltipOptions,f=e.xDateFormat,g=d.xAxis,h=g&&g.options.type==="datetime"&&qa(a.key),c=e[c+"Format"];h&&!f&&(f=this.getXDateFormat(a,e,g));h&&f&&(c=c.replace("{point.key}","{point.key:"+f+"}"));return Ja(c,{point:a,series:d})},bodyFormatter:function(a){return Ua(a, function(a){var c=a.series.tooltipOptions;return(c.pointFormatter||a.point.tooltipFormatter).call(a.point,c.pointFormat)})}};var oa;ab=A.documentElement.ontouchstart!==u;var Va=w.Pointer=function(a,b){this.init(a,b)};Va.prototype={init:function(a,b){var c=b.chart,d=c.events,e=ea?"":c.zoomType,c=a.inverted,f;this.options=b;this.chart=a;this.zoomX=f=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=f&&!c||e&&c;this.zoomVert=e&&!c||f&&c;this.hasZoom=f||e;this.runChartClick=d&&!!d.click;this.pinchDown= [];this.lastValidTouch={};if(w.Tooltip&&b.tooltip.enabled)a.tooltip=new Mb(a,b.tooltip),this.followTouchMove=p(b.tooltip.followTouchMove,!0);this.setDOMEvents()},normalize:function(a,b){var c,d,a=a||window.event,a=Sb(a);if(!a.target)a.target=a.srcElement;d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;if(!b)this.chartPosition=b=Rb(this.chart.container);d.pageX===u?(c=t(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-b.top);return r(a,{chartX:x(c),chartY:x(d)})},getCoordinates:function(a){var b= {xAxis:[],yAxis:[]};m(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},runPointActions:function(a){var b=this.chart,c=b.series,d=b.tooltip,e=d?d.shared:!1,f=b.hoverPoint,g=b.hoverSeries,h,i=b.chartWidth,j=b.chartWidth,k,l=[],n,o;if(!e&&!g)for(h=0;h1)&&a.dist.distRh+j&&(d=h+j);ei+k&&(e=i+k);this.hasDragged=Math.sqrt(Math.pow(n-d,2)+Math.pow(o-e,2));if(this.hasDragged>10){l=b.isInsidePlot(n-h,o-i);if(b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&l&&!q&&!this.selectionMarker)this.selectionMarker=b.renderer.rect(h,i,f?1:j,g?1:k,0).attr({fill:c.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add();this.selectionMarker&&f&&(d-=n,this.selectionMarker.attr({width:O(d),x:(d>0?0:d)+n}));this.selectionMarker&& g&&(d=e-o,this.selectionMarker.attr({height:O(d),y:(d>0?0:d)+o}));l&&!this.selectionMarker&&c.panning&&b.pan(a,c.panning)}},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e={xAxis:[],yAxis:[],originalEvent:a.originalEvent||a},f=this.selectionMarker,g=f.attr?f.attr("x"):f.x,h=f.attr?f.attr("y"):f.y,i=f.attr?f.attr("width"):f.width,j=f.attr?f.attr("height"):f.height,k;if(this.hasDragged||d)m(c.axes,function(c){if(c.zoomEnabled&&s(c.min)&&(d||b[{xAxis:"zoomX", yAxis:"zoomY"}[c.coll]])){var f=c.horiz,o=a.type==="touchend"?c.minPixelPadding:0,q=c.toValue((f?g:h)+o),f=c.toValue((f?g+i:h+j)-o);e[c.coll].push({axis:c,min:I(q,f),max:t(q,f)});k=!0}}),k&&M(c,"selection",e,function(a){c.zoom(r(a,d?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();d&&this.scaleGroups()}if(c)F(c.container,{cursor:c._cursor}),c.cancelClick=this.hasDragged>10,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[]},onContainerMouseDown:function(a){a= this.normalize(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(a){X[oa]&&X[oa].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,a=this.normalize(a,c);c&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(){var a=X[oa];if(a)a.pointer.reset(),a.pointer.chartPosition=null},onContainerMouseMove:function(a){var b=this.chart;oa=b.index; a=this.normalize(a);a.returnValue=!1;b.mouseIsDown==="mousedown"&&this.drag(a);(this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop))&&!b.openMenu&&this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=L(a,"class"))if(c.indexOf(b)!==-1)return!0;else if(c.indexOf("highcharts-container")!==-1)return!1;a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries,c=(a=a.relatedTarget||a.toElement)&&a.point&&a.point.series;if(b&& !b.options.stickyTracking&&!this.inClass(a,"highcharts-tooltip")&&c!==b)b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop,a=this.normalize(a);a.originalEvent=a;a.cancelBubble=!0;b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(M(c.series,"click",r(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(r(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&M(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container; b.onmousedown=function(b){a.onContainerMouseDown(b)};b.onmousemove=function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};N(b,"mouseleave",a.onContainerMouseLeave);bb===1&&N(A,"mouseup",a.onDocumentMouseUp);if(ab)b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},bb===1&&N(A,"touchend",a.onDocumentTouchEnd)},destroy:function(){var a;Y(this.chart.container,"mouseleave",this.onContainerMouseLeave);bb||(Y(A,"mouseup", this.onDocumentMouseUp),Y(A,"touchend",this.onDocumentTouchEnd));clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}};r(w.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f);(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var i=this.chart,j=a?"x":"y",k=a?"X":"Y",l="chart"+k,n=a?"width":"height",o=i["plot"+(a?"Left":"Top")],q,p, m=h||1,C=i.inverted,v=i.bounds[a?"h":"v"],s=b.length===1,r=b[0][l],t=c[0][l],u=!s&&b[1][l],x=!s&&c[1][l],w,c=function(){!s&&O(r-u)>20&&(m=h||O(t-x)/O(r-u));p=(o-t)/m+r;q=i["plot"+(a?"Width":"Height")]/m};c();b=p;bv.max&&(b=v.max-q,w=!0);w?(t-=0.8*(t-g[j][0]),s||(x-=0.8*(x-g[j][1])),c()):g[j]=[t,x];C||(f[j]=p-o,f[n]=q);f=C?1/m:m;e[n]=q;e[j]=b;d[C?a?"scaleY":"scaleX":"scale"+k]=m;d["translate"+k]=f*o+(t-f*r)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches, f=e.length,g=b.lastValidTouch,h=b.hasZoom,i=b.selectionMarker,j={},k=f===1&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),l={};h&&!k&&a.preventDefault();Ua(e,function(a){return b.normalize(a)});if(a.type==="touchstart")m(e,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],m(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(p(a.options.min, a.dataMin)),f=a.toPixels(p(a.options.max,a.dataMax)),g=I(e,f),e=t(e,f);b.min=I(a.pos,g-d);b.max=t(a.pos+a.len,e+d)}}),b.res=!0;else if(d.length){if(!i)b.selectionMarker=i=r({destroy:ma},c.plotBox);b.pinchTranslate(d,e,j,i,l,g);b.hasPinched=h;b.scaleGroups(j,l);if(!h&&b.followTouchMove&&f===1)this.runPointActions(b.normalize(a));else if(b.res)b.res=!1,this.reset(!1,0)}},onContainerTouchStart:function(a){var b=this.chart;oa=b.index;a.touches.length===1?(a=this.normalize(a),b.isInsidePlot(a.chartX-b.plotLeft, a.chartY-b.plotTop)&&!b.openMenu?(this.runPointActions(a),this.pinch(a)):this.reset()):a.touches.length===2&&this.pinch(a)},onContainerTouchMove:function(a){(a.touches.length===1||a.touches.length===2)&&this.pinch(a)},onDocumentTouchEnd:function(a){X[oa]&&X[oa].pointer.drop(a)}});if(H.PointerEvent||H.MSPointerEvent){var wa={},Ab=!!H.PointerEvent,Wb=function(){var a,b=[];b.item=function(a){return this[a]};for(a in wa)wa.hasOwnProperty(a)&&b.push({pageX:wa[a].pageX,pageY:wa[a].pageY,target:wa[a].target}); return b},Bb=function(a,b,c,d){a=a.originalEvent||a;if((a.pointerType==="touch"||a.pointerType===a.MSPOINTER_TYPE_TOUCH)&&X[oa])d(a),d=X[oa].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:ma,touches:Wb()})};r(Va.prototype,{onContainerPointerDown:function(a){Bb(a,"onContainerTouchStart","touchstart",function(a){wa[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){Bb(a,"onContainerTouchMove","touchmove",function(a){wa[a.pointerId]={pageX:a.pageX, pageY:a.pageY};if(!wa[a.pointerId].target)wa[a.pointerId].target=a.currentTarget})},onDocumentPointerUp:function(a){Bb(a,"onDocumentTouchEnd","touchend",function(a){delete wa[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,Ab?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,Ab?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(A,Ab?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});cb(Va.prototype,"init",function(a,b,c){a.call(this,b, c);this.hasZoom&&F(b.container,{"-ms-touch-action":R,"touch-action":R})});cb(Va.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(N)});cb(Va.prototype,"destroy",function(a){this.batchMSEvents(Y);a.call(this)})}var mb=w.Legend=function(a,b){this.init(a,b)};mb.prototype={init:function(a,b){var c=this,d=b.itemStyle,e=b.itemMarginTop||0;this.options=b;if(b.enabled)c.itemStyle=d,c.itemHiddenStyle=z(d,b.itemHiddenStyle),c.itemMarginTop=e,c.padding= d=p(b.padding,8),c.initialItemX=d,c.initialItemY=d-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.symbolWidth=p(b.symbolWidth,16),c.pages=[],c.render(),N(c.chart,"endResize",function(){c.positionCheckboxes()})},colorizeItem:function(a,b){var c=this.options,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color,c=b?c.itemStyle.color:g,h=b?a.legendColor||a.color||"#CCC":g,g=a.options&&a.options.marker,i={fill:h},j;d&&d.css({fill:c,color:c});e&&e.attr({stroke:h});if(f){if(g&&f.isMarker)for(j in i.stroke= h,g=a.convertAttribs(g),g)d=g[j],d!==u&&(i[j]=d);f.attr(i)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d);if(f)f.x=e,f.y=d},destroyItem:function(a){var b=a.checkbox;m(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&Ra(a.checkbox)},clearItems:function(){var a=this;m(a.getAllItems(),function(b){a.destroyItem(b)})}, destroy:function(){var a=this.group,b=this.box;if(b)this.box=b.destroy();if(a)this.group=a.destroy()},positionCheckboxes:function(a){var b=this.group.alignAttr,c,d=this.clipHeight||this.legendHeight;if(b)c=b.translateY,m(this.allItems,function(e){var f=e.checkbox,g;f&&(g=c+f.y+(a||0)+3,F(f,{left:b.translateX+e.checkboxOffset+f.x-20+"px",top:g+"px",display:g>c-6&&g(n||b.chartWidth-2*j-y-d.x))this.itemX=y,this.itemY+=q+this.lastLineHeight+o,this.lastLineHeight=0;this.maxItemWidth=t(this.maxItemWidth,f);this.lastItemY=q+this.itemY+o;this.lastLineHeight= t(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=f:(this.itemY+=q+g+o,this.lastLineHeight=g);this.offsetWidth=n||t((e?this.itemX-y-k:f)+j,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=b.options;if(p(c.showInLegend,!s(c.linkedTo)?u:!1,!0))a=a.concat(b.legendItems||(c.legendType==="point"?b.data:b))});return a},adjustMargins:function(a,b){var c=this.chart,d=this.options,e=d.align[0]+d.verticalAlign[0]+d.layout[0];this.display&& !d.floating&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!s(a[g])&&(c[ib[g]]=t(c[ib[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+p(d.margin,12)+b[g]))})},render:function(){var a=this,b=a.chart,c=b.renderer,d=a.group,e,f,g,h,i=a.box,j=a.options,k=a.padding,l=j.borderWidth,n=j.backgroundColor;a.itemX=a.initialItemX;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;if(!d)a.group=d=c.g("legend").attr({zIndex:7}).add(), a.contentGroup=c.g().attr({zIndex:1}).add(d),a.scrollGroup=c.g().add(a.contentGroup);a.renderTitle();e=a.getAllItems();qb(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});j.reversed&&e.reverse();a.allItems=e;a.display=f=!!e.length;a.lastLineHeight=0;m(e,function(b){a.renderItem(b)});g=(j.width||a.offsetWidth)+k;h=a.lastItemY+a.lastLineHeight+a.titleHeight;h=a.handleOverflow(h);h+=k;if(l||n){if(i){if(g>0&&h>0)i[i.isNew?"attr":"animate"](i.crisp({width:g, height:h})),i.isNew=!1}else a.box=i=c.rect(0,0,g,h,j.borderRadius,l||0).attr({stroke:j.borderColor,"stroke-width":l||0,fill:n||R}).add(d).shadow(j.shadow),i.isNew=!0;i[f?"show":"hide"]()}a.legendWidth=g;a.legendHeight=h;m(e,function(b){a.positionItem(b)});f&&d.align(r({width:g,height:h},j),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,e=this.options,f=e.y,f=c.spacingBox.height+(e.verticalAlign==="top"?-f:f)-this.padding,g= e.maxHeight,h,i=this.clipRect,j=e.navigation,k=p(j.animation,!0),l=j.arrowSize||12,n=this.nav,o=this.pages,q,y=this.allItems;e.layout==="horizontal"&&(f/=2);g&&(f=I(f,g));o.length=0;if(a>f&&!e.useHTML){this.clipHeight=h=t(f-20-this.titleHeight-this.padding,0);this.currentPage=p(this.currentPage,1);this.fullHeight=a;m(y,function(a,b){var c=a._legendItemPos[1],d=x(a.legendItem.getBBox().height),e=o.length;if(!e||c-o[e-1]>h&&(q||c)!==o[e-1])o.push(q||c),e++;b===y.length-1&&c+d-o[e-1]>h&&o.push(c);c!== q&&(q=c)});if(!i)i=b.clipRect=d.clipRect(0,this.padding,9999,0),b.contentGroup.clip(i);i.attr({height:h});if(!n)this.nav=n=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,l,l).on("click",function(){b.scroll(-1,k)}).add(n),this.pager=d.text("",15,10).css(j.style).add(n),this.down=d.symbol("triangle-down",0,0,l,l).on("click",function(){b.scroll(1,k)}).add(n);b.scroll(0);a=f}else if(n)i.attr({height:c.chartHeight}),n.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight= 0;return a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,i=this.pager,j=this.padding;e>d&&(e=d);if(e>0)b!==u&&Sa(b,this.chart),this.nav.attr({translateX:j,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:e===1?g:h}).css({cursor:e===1?"default":"pointer"}),i.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e=== d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c)}};Na=w.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-c+1,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options,c=b.marker,d;d=a.symbolWidth;var e=this.chart.renderer,f=this.legendGroup,a=a.baseline- x(a.fontMetrics.b*0.3),g;if(b.lineWidth){g={"stroke-width":b.lineWidth};if(b.dashStyle)g.dashstyle=b.dashStyle;this.legendLine=e.path(["M",0,a,"L",d,a]).attr(g).add(f)}if(c&&c.enabled!==!1)b=c.radius,this.legendSymbol=d=e.symbol(this.symbol,d/2-b,a-b,2*b,2*b).add(f),d.isMarker=!0}};(/Trident\/7\.0/.test(Ba)||La)&&cb(mb.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)});D=w.Chart=function(){this.init.apply(this,arguments)};D.prototype= {callbacks:[],init:function(a,b){var c,d=a.series;a.series=null;c=z(P,a);c.series=a.series=d;this.userOptions=a;d=c.chart;this.margin=this.splashArray("margin",d);this.spacing=this.splashArray("spacing",d);var e=d.events;this.bounds={h:{},v:{}};this.callback=b;this.isResizing=0;this.options=c;this.axes=[];this.series=[];this.hasCartesianSeries=d.showAxes;var f=this,g;f.index=X.length;X.push(f);bb++;d.reflow!==!1&&N(f,"load",function(){f.initReflow()});if(e)for(g in e)N(f,g,e[g]);f.xAxis=[];f.yAxis= [];f.animation=ea?!1:p(d.animation,!0);f.pointCount=f.colorCounter=f.symbolCounter=0;f.firstRender()},initSeries:function(a){var b=this.options.chart;(b=J[a.type||b.type||b.defaultSeriesType])||ka(17,!0);b=new b;b.init(this,a);return b},isInsidePlot:function(a,b,c){var d=c?b:a,a=c?a:b;return d>=0&&d<=this.plotWidth&&a>=0&&a<=this.plotHeight},redraw:function(a){var b=this.axes,c=this.series,d=this.pointer,e=this.legend,f=this.isDirtyLegend,g,h,i=this.hasCartesianSeries,j=this.isDirtyBox,k=c.length, l=k,n=this.renderer,o=n.isHidden(),q=[];Sa(a,this);o&&this.cloneRenderTo();for(this.layOutTitles();l--;)if(a=c[l],a.options.stacking&&(g=!0,a.isDirty)){h=!0;break}if(h)for(l=k;l--;)if(a=c[l],a.options.stacking)a.isDirty=!0;m(c,function(a){a.isDirty&&a.options.legendType==="point"&&(f=!0)});if(f&&e.options.enabled)e.render(),this.isDirtyLegend=!1;g&&this.getStacks();if(i&&!this.isResizing)this.maxTicks=null,m(b,function(a){a.setScale()});this.getMargins();i&&(m(b,function(a){a.isDirty&&(j=!0)}),m(b, function(a){if(a.isDirtyExtremes)a.isDirtyExtremes=!1,q.push(function(){M(a,"afterSetExtremes",r(a.eventArgs,a.getExtremes()));delete a.eventArgs});(j||g)&&a.redraw()}));j&&this.drawChartBox();m(c,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()});d&&d.reset(!0);n.draw();M(this,"redraw");o&&this.cloneRenderTo(!0);m(q,function(a){a.call()})},get:function(a){var b=this.axes,c=this.series,d,e;for(d=0;d19?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),Ra(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),F(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),A.body.appendChild(b),c&&b.appendChild(c))}, getContainer:function(){var a,b=this.options.chart,c,d,e;this.renderTo=a=b.renderTo;e="highcharts-"+yb++;if(Da(a))this.renderTo=a=A.getElementById(a);a||ka(13,!0);c=B(L(a,"data-highcharts-chart"));!isNaN(c)&&X[c]&&X[c].hasRendered&&X[c].destroy();L(a,"data-highcharts-chart",this.index);a.innerHTML="";!b.skipClone&&!a.offsetWidth&&this.cloneRenderTo();this.getChartSize();c=this.chartWidth;d=this.chartHeight;this.container=a=Z(Ka,{className:"highcharts-container"+(b.className?" "+b.className:""),id:e}, r({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},b.style),this.renderToClone||a);this._cursor=a.style.cursor;this.renderer=b.forExport?new ta(a,c,d,b.style,!0):new $a(a,c,d,b.style);ea&&this.renderer.create(this,a,c,d);this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();if(d&&!s(c[0]))this.plotTop=t(this.plotTop, d+this.options.title.margin+b[0]);this.legend.adjustMargins(c,b);this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&m(a.axes,function(a){a.getOffset()});m(ib,function(d,e){s(c[e])||(a[d]+=b[e])});a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=b.renderTo,e=c.width||jb(d,"width"),f=c.height|| jb(d,"height"),c=a?a.target:H,d=function(){if(b.container)b.setSize(e,f,!1),b.hasUserSize=null};if(!b.hasUserSize&&!b.isPrinting&&e&&f&&(c===H||c===A)){if(e!==b.containerWidth||f!==b.containerHeight)clearTimeout(b.reflowTimeout),a?b.reflowTimeout=setTimeout(d,100):d();b.containerWidth=e;b.containerHeight=f}},initReflow:function(){var a=this,b=function(b){a.reflow(b)};N(H,"resize",b);N(a,"destroy",function(){Y(H,"resize",b)})},setSize:function(a,b,c){var d=this,e,f,g;d.isResizing+=1;g=function(){d&& M(d,"endResize",null,function(){d.isResizing-=1})};Sa(c,d);d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;if(s(a))d.chartWidth=e=t(0,x(a)),d.hasUserSize=!!e;if(s(b))d.chartHeight=f=t(0,x(b));(za?lb:F)(d.container,{width:e+"px",height:f+"px"},za);d.setChartSize(!0);d.renderer.setSize(e,f,c);d.maxTicks=null;m(d.axes,function(a){a.isDirty=!0;a.setScale()});m(d.series,function(a){a.isDirty=!0});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();d.getMargins();d.redraw(c);d.oldChartHeight= null;M(d,"resize");za===!1?g():setTimeout(g,za&&za.duration||500)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,i,j,k,l;this.plotLeft=i=x(this.plotLeft);this.plotTop=j=x(this.plotTop);this.plotWidth=k=t(0,x(d-i-this.marginRight));this.plotHeight=l=t(0,x(e-j-this.marginBottom));this.plotSizeX=b?l:k;this.plotSizeY=b?k:l;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3], y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=c.plotBox={x:i,y:j,width:k,height:l};d=2*U(this.plotBorderWidth/2);b=sa(t(d,h[3])/2);c=sa(t(d,h[0])/2);this.clipBox={x:b,y:c,width:U(this.plotSizeX-t(d,h[1])/2-b),height:t(0,U(this.plotSizeY-t(d,h[2])/2-c))};a||m(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()})},resetMargins:function(){var a=this;m(ib,function(b,c){a[b]=p(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a= this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground,g=this.plotBorder,h=this.plotBGImage,i=a.borderWidth||0,j=a.backgroundColor,k=a.plotBackgroundColor,l=a.plotBackgroundImage,n=a.plotBorderWidth||0,o,q=this.plotLeft,p=this.plotTop,m=this.plotWidth,s=this.plotHeight,v=this.plotBox,r=this.clipRect,t=this.clipBox;o=i+(a.shadow?8:0);if(i||j)if(e)e.animate(e.crisp({width:c-o,height:d-o}));else{e={fill:j||R};if(i)e.stroke=a.borderColor,e["stroke-width"]= i;this.chartBackground=b.rect(o/2,o/2,c-o,d-o,a.borderRadius,i).attr(e).addClass("highcharts-background").add().shadow(a.shadow)}if(k)f?f.animate(v):this.plotBackground=b.rect(q,p,m,s,0).attr({fill:k}).add().shadow(a.plotShadow);if(l)h?h.animate(v):this.plotBGImage=b.image(l,q,p,m,s).add();r?r.animate({width:t.width,height:t.height}):this.clipRect=b.clipRect(t);if(n)g?g.animate(g.crisp({x:q,y:p,width:m,height:s,strokeWidth:-n})):this.plotBorder=b.rect(q,p,m,s,0,-n).attr({stroke:a.plotBorderColor, "stroke-width":n,fill:R,zIndex:1}).add();this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,e,f;m(["inverted","angular","polar"],function(g){c=J[b.type||b.defaultSeriesType];f=a[g]||b[g]||c&&c.prototype[g];for(e=d&&d.length;!f&&e--;)(c=J[d[e].type])&&c.prototype[g]&&(f=!0);a[g]=f})},linkSeries:function(){var a=this,b=a.series;m(b,function(a){a.linkedSeries.length=0});m(b,function(b){var d=b.options.linkedTo;if(Da(d)&&(d=d===":previous"?a.series[b.index- 1]:a.get(d)))d.linkedSeries.push(b),b.linkedParent=d})},renderSeries:function(){m(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&m(b.items,function(c){var d=r(b.style,c.style),e=B(d.left)+a.plotLeft,f=B(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,e,f).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,d,e,f,g;this.setTitle();this.legend=new mb(this,c.legend); this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;e=this.plotHeight-=13;m(a,function(a){a.setScale()});this.getAxisMargins();f=d/this.plotWidth>1.1;g=e/this.plotHeight>1.1;if(f||g)this.maxTicks=null,m(a,function(a){(a.horiz&&f||!a.horiz&&g)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&m(a,function(a){a.render()});if(!this.seriesGroup)this.seriesGroup=b.g("series-group").attr({zIndex:3}).add();this.renderSeries();this.renderLabels(); this.showCredits(c.credits);this.hasRendered=!0},showCredits:function(a){if(a.enabled&&!this.credits)this.credits=this.renderer.text(a.text,0,0).on("click",function(){if(a.href)location.href=a.href}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position)},destroy:function(){var a=this,b=a.axes,c=a.series,d=a.container,e,f=d&&d.parentNode;M(a,"destroy");X[a.index]=u;bb--;a.renderTo.removeAttribute("data-highcharts-chart");Y(a);for(e=b.length;e--;)b[e]=b[e].destroy();for(e=c.length;e--;)c[e]= c[e].destroy();m("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(b){var c=a[b];c&&c.destroy&&(a[b]=c.destroy())});if(d)d.innerHTML="",Y(d),f&&Ra(d);for(e in a)delete a[e]},isReadyToRender:function(){var a=this;return!ba&&H==H.top&&A.readyState!=="complete"||ea&&!H.canvg?(ea?Lb.push(function(){a.firstRender()},a.options.global.canvasToolsURL):A.attachEvent("onreadystatechange", function(){A.detachEvent("onreadystatechange",a.firstRender);A.readyState==="complete"&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;if(a.isReadyToRender()){a.getContainer();M(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();m(b.series||[],function(b){a.initSeries(b)});a.linkSeries();M(a,"beforeRender");if(w.Pointer)a.pointer=new Va(a,b);a.render();a.renderer.draw();c&&c.apply(a,[a]);m(a.callbacks,function(b){a.index!==u&&b.apply(a, [a])});M(a,"load");a.cloneRenderTo(!0)}},splashArray:function(a,b){var c=b[a],c=ca(c)?c:[c,c,c,c];return[p(b[a+"Top"],c[0]),p(b[a+"Right"],c[1]),p(b[a+"Bottom"],c[2]),p(b[a+"Left"],c[3])]}};var Xb=w.CenteredSeriesMixin={getCenter:function(){var a=this.options,b=this.chart,c=2*(a.slicedOffset||0),d=b.plotWidth-2*c,b=b.plotHeight-2*c,e=a.center,e=[p(e[0],"50%"),p(e[1],"50%"),a.size||"100%",a.innerSize||0],f=I(d,b),g,h,i;for(h=0;h<4;++h)i=e[h],g=/%$/.test(i),a=h<2||h===2&&g,e[h]=(g?[d,b,f,e[2]][h]*B(i)/ 100:B(i))+(a?c:0);return e}},Ga=function(){};Ga.prototype={init:function(a,b,c){this.series=a;this.color=a.color;this.applyOptions(b,c);this.pointAttr={};if(a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length))a.colorCounter=0;a.chart.pointCount++;return this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey,a=Ga.prototype.optionsToObject.call(this,a);r(this,a);this.options=this.options? r(this.options,a):a;if(d)this.y=this[d];if(this.x===u&&c)this.x=b===u?c.autoIncrement():b;return this},optionsToObject:function(a){var b={},c=this.series,d=c.options.keys,e=d||c.pointArrayMap||["y"],f=e.length,g=0,h=0;if(typeof a==="number"||a===null)b[e[0]]=a;else if(Ha(a)){if(!d&&a.length>f){c=typeof a[0];if(c==="string")b.name=a[0];else if(c==="number")b.x=a[0];g++}for(;ha+1&&b.push(d.slice(a+1,g)),a=g):g===e-1&&b.push(d.slice(a+1,g+1))});this.segments=b},setOptions:function(a){var b=this.chart,c=b.options.plotOptions,b=b.userOptions||{},d=b.plotOptions||{},e=c[this.type];this.userOptions=a;c=z(e,c.series,a);this.tooltipOptions=z(P.tooltip,P.plotOptions[this.type].tooltip,b.tooltip,d.series&&d.series.tooltip,d[this.type]&&d[this.type].tooltip,a.tooltip);e.marker===null&&delete c.marker; this.zoneAxis=c.zoneAxis;a=this.zones=(c.zones||[]).slice();if((c.negativeColor||c.negativeFillColor)&&!c.zones)a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,color:c.negativeColor,fillColor:c.negativeFillColor});a.length&&s(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});return c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(s(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]);this[a]=b},getColor:function(){this.options.colorByPoint|| this.getCyclic("color",this.options.color||aa[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols);if(/^url/.test(this.symbol))a.radius=0},drawLegendSymbol:Na.drawLineMarker,setData:function(a,b,c,d){var e=this,f=e.points,g=f&&f.length||0,h,i=e.options,j=e.chart,k=null,l=e.xAxis,n=l&&!!l.categories,o=i.turboThreshold,q=this.xData,y=this.yData,s=(h=e.pointArrayMap)&&h.length,a=a||[];h=a.length;b=p(b, !0);if(d!==!1&&h&&g===h&&!e.cropped&&!e.hasGroupedData&&e.visible)m(a,function(a,b){f[b].update(a,!1,null,!1)});else{e.xIncrement=null;e.pointRange=n?1:i.pointRange;e.colorCounter=0;m(this.parallelArrays,function(a){e[a+"Data"].length=0});if(o&&h>o){for(c=0;k===null&&ci||this.forceCrop))if(b[d-1]n)b=[],c=[];else if(b[0]n)e=this.cropData(this.xData,this.yData,l,n),b=e.xData,c=e.yData,e=e.start,f=!0;for(i=b.length-1;i>=0;i--)d=b[i]-b[i-1],d>0&&(g===u||d=c){f=t(0,i-h);break}for(;id){g=i+h;break}return{xData:a.slice(f,g),yData:b.slice(f,g),start:f,end:g}},generatePoints:function(){var a=this.options.data,b=this.data,c,d=this.processedXData,e=this.processedYData,f=this.pointClass,g=d.length,h=this.cropStart||0,i,j=this.hasGroupedData,k,l=[],n;if(!b&&!j)b=[],b.length=a.length,b=this.data=b;for(n=0;n0),j=this.getExtremesFromAll||this.cropped||(c[l+1]||j)>=g&&(c[l-1]||j)<=h,i&&j)if(i=k.length)for(;i--;)k[i]!==null&&(e[f++]=k[i]);else e[f++]=k;this.dataMin=Pa(e);this.dataMax=Fa(e)},translate:function(){this.processedXData||this.processData();this.generatePoints();for(var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,e=this.yAxis,f=this.points,g=f.length,h=!!this.modifyValue,i=a.pointPlacement,j=i==="between"||qa(i),k=a.threshold,l,n,o,q=Number.MAX_VALUE,a=0;a=0&&n<=e.len&&l>=0&&l<=c.len;m.clientX=j?c.translate(r,0,0,0,1):l;m.negative=m.y<(k||0);m.category=d&&d[m.x]!==u?d[m.x]:m.x;a&&(q=I(q,O(l-o)));o=l}this.closestPointRangePx=q;this.getSegments()},setClip:function(a){var b=this.chart,c=b.renderer,d=b.inverted,e=this.clipBox,f=e||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,f.height].join(","),h=b[g],i=b[g+"m"];if(!h){if(a)f.width= 0,b[g+"m"]=i=c.clipRect(-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight);b[g]=h=c.clipRect(f)}a&&(h.count+=1);if(this.options.clip!==!1)this.group.clip(a||e?h:b.clipRect),this.markerGroup.clip(i),this.sharedClipKey=g;a||(h.count-=1,h.count<=0&&g&&b[g]&&(e||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=this.options.animation,d;if(c&&!ca(c))c=aa[this.type].animation;a?this.setClip(c):(d=this.sharedClipKey,(a=b[d])&&a.animate({width:b.plotSizeX}, c),b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99},c),this.animate=null)},afterAnimate:function(){this.setClip();M(this,"afterAnimate")},drawPoints:function(){var a,b=this.points,c=this.chart,d,e,f,g,h,i,j,k,l=this.options.marker,n=this.pointAttr[""],o,q,m,s=this.markerGroup,t=p(l.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*l.radius);if(l.enabled!==!1||this._hasPointMarkers)for(f=b.length;f--;)if(g=b[f],d=U(g.plotX),e=g.plotY,k=g.graphic,o=g.marker||{},q=!!g.marker,a=t&&o.enabled===u|| o.enabled,m=g.isInside,a&&e!==u&&!isNaN(e)&&g.y!==null)if(a=g.pointAttr[g.selected?"select":""]||n,h=a.r,i=p(o.symbol,this.symbol),j=i.indexOf("url")===0,k)k[m?"show":"hide"](!0).animate(r({x:d-h,y:e-h},k.symbolName?{width:2*h,height:2*h}:{}));else{if(m&&(h>0||j))g.graphic=c.renderer.symbol(i,d-h,e-h,2*h,2*h,q?o:l).attr(a).add(s)}else if(k)g.graphic=k.destroy()},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=p(a[g],b[f], c[f],d[f]);return h},getAttribs:function(){var a=this,b=a.options,c=aa[a.type].marker?b.marker:b,d=c.states,e=d.hover,f,g=a.color,h=a.options.negativeColor;f={stroke:g,fill:g};var i=a.points||[],j,k=[],l,n=a.pointAttrToOptions;l=a.hasPointSpecificOptions;var o=c.lineColor,q=c.fillColor;j=b.turboThreshold;var p=a.zones,t=a.zoneAxis||"y",C;b.marker?(e.radius=e.radius||c.radius+e.radiusPlus,e.lineWidth=e.lineWidth||c.lineWidth+e.lineWidthPlus):(e.color=e.color||na(e.color||g).brighten(e.brightness).get(), e.negativeColor=e.negativeColor||na(e.negativeColor||h).brighten(e.brightness).get());k[""]=a.convertAttribs(c,f);m(["hover","select"],function(b){k[b]=a.convertAttribs(d[b],k[""])});a.pointAttr=k;g=i.length;if(!j||g=f.value;)f=p[++l];j.color=j.fillColor=f.color}l=b.colorByPoint||j.color;if(j.options)for(C in n)s(c[n[C]])&&(l=!0);if(l){c=c||{};l=[];d=c.states||{};f=d.hover= d.hover||{};if(!b.marker)f.color=f.color||!j.options.color&&e[j.negative&&h?"negativeColor":"color"]||na(j.color).brighten(f.brightness||e.brightness).get();f={color:j.color};if(!q)f.fillColor=j.color;if(!o)f.lineColor=j.color;c.hasOwnProperty("color")&&!c.color&&delete c.color;l[""]=a.convertAttribs(r(f,c),k[""]);l.hover=a.convertAttribs(d.hover,k.hover,l[""]);l.select=a.convertAttribs(d.select,k.select,l[""])}else l=k;j.pointAttr=l}},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(Ba), d,e=a.data||[],f,g,h;M(a,"destroy");Y(a);m(a.axisTypes||[],function(b){if(h=a[b])ia(h.series,a),h.isDirty=h.forceRedraw=!0});a.legendItem&&a.chart.legend.destroyItem(a);for(d=e.length;d--;)(f=e[d])&&f.destroy&&f.destroy();a.points=null;clearTimeout(a.animationTimeout);for(g in a)a[g]instanceof K&&!a[g].survive&&(d=c&&g==="group"?"hide":"destroy",a[g][d]());if(b.hoverSeries===a)b.hoverSeries=null;ia(b.series,a);for(g in a)delete a[g]},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;m(a, function(e,f){var g=e.plotX,h=e.plotY,i;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(i=a[f-1],d==="right"?c.push(i.plotX,h):d==="center"?c.push((i.plotX+g)/2,i.plotY,(i.plotX+g)/2,h):c.push(g,i.plotY)),c.push(e.plotX,e.plotY))});return c},getGraphPath:function(){var a=this,b=[],c,d=[];m(a.segments,function(e){c=a.getSegmentPath(e);e.length>1?b=b.concat(c):d.push(e[0])});a.singlePoints=d;return a.graphPath=b},drawGraph:function(){var a=this,b=this.options,c=[["graph", b.lineColor||this.color,b.dashStyle]],d=b.lineWidth,e=b.linecap!=="square",f=this.getGraphPath(),g=this.fillGraph&&this.color||R;m(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||a.color,d.dashStyle||b.dashStyle])});m(c,function(c,i){var j=c[0],k=a[j];if(k)db(k),k.animate({d:f});else if((d||g)&&f.length)k={stroke:c[1],"stroke-width":d,fill:g,zIndex:1},c[2]?k.dashstyle=c[2]:e&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),a[j]=a.chart.renderer.path(f).attr(k).add(a.group).shadow(i<2&& b.shadow)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,f,g=this.clips||[],h,i=this.graph,j=this.area,k=t(b.chartWidth,b.chartHeight),l=this[(this.zoneAxis||"y")+"Axis"],n=l.reversed,o=l.horiz,q=!1;if(d.length&&(i||j))i&&i.hide(),j&&j.hide(),m(d,function(d,m){e=p(f,n?o?b.plotWidth:0:o?0:l.toPixels(l.min));f=x(l.toPixels(p(d.value,l.max),!0));e=l.isXAxis?e>f?f:e:el.max}),this.clips=g},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};m(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})} var b=this,c=b.chart;if(b.xAxis)N(c,"resize",a),N(b,"destroy",function(){Y(c,"resize",a)}),a(),b.invertGroups=a},plotGroup:function(a,b,c,d,e){var f=this[a],g=!f;g&&(this[a]=f=this.chart.renderer.g(b).attr({visibility:c,zIndex:d||0.1}).add(e));f[g?"attr":"animate"](this.getPlotBox());return f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;if(a.inverted)b=c,c=this.xAxis;return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a= this,b=a.chart,c,d=a.options,e=(c=d.animation)&&!!a.animate&&b.renderer.isSVG&&p(c.duration,500)||0,f=a.visible?"visible":"hidden",g=d.zIndex,h=a.hasRendered,i=b.seriesGroup;c=a.plotGroup("group","series",f,g,i);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,i);e&&a.animate(!0);a.getAttribs();c.inverted=a.isCartesian?b.inverted:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());m(a.points,function(a){a.redraw&&a.redraw()});a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&& a.options.enableMouseTracking!==!1&&a.drawTracker();b.inverted&&a.invertGroups();d.clip!==!1&&!a.sharedClipKey&&!h&&c.clip(b.clipRect);e&&a.animate();if(!h)e?a.animationTimeout=setTimeout(function(){a.afterAnimate()},e):a.afterAnimate();a.isDirty=a.isDirtyData=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.isDirty,d=this.group,e=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:p(e&&e.left,a.plotLeft),translateY:p(f&& f.top,a.plotTop)}));this.translate();this.render();b&&M(this,"updatedData");(c||b)&&delete this.kdTree},kdDimensions:1,kdTree:null,kdAxisArray:["clientX","plotY"],kdComparer:"distX",searchPoint:function(a){var b=this.xAxis,c=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?b.len-a.chartY+b.pos:a.chartX-b.pos,plotY:d?c.len-a.chartX+c.pos:a.chartY-c.pos})},buildKDTree:function(){function a(b,d,g){var h,i;if(i=b&&b.length)return h=c.kdAxisArray[d%g],b.sort(function(a,b){return a[h]- b[h]}),i=Math.floor(i/2),{point:b[i],left:a(b.slice(0,i),d+1,g),right:a(b.slice(i+1),d+1,g)}}function b(){var b=kb(c.points,function(a){return a.y!==null});c.kdTree=a(b,d,d)}var c=this,d=c.kdDimensions;delete c.kdTree;c.options.kdSync?b():setTimeout(b)},searchKDTree:function(a){function b(a,h,i,j){var k=h.point,l=c.kdAxisArray[i%j],n,o=k;n=s(a[e])&&s(k[e])?Math.pow(a[e]-k[e],2):null;var m=s(a[f])&&s(k[f])?Math.pow(a[f]-k[f],2):null,p=(n||0)+(m||0);n={distX:s(n)?Math.sqrt(n):Number.MAX_VALUE,distY:s(m)? Math.sqrt(m):Number.MAX_VALUE,distR:s(p)?Math.sqrt(p):Number.MAX_VALUE};k.dist=n;l=a[l]-k[l];n=l<0?"left":"right";h[n]&&(n=b(a,h[n],i+1,j),o=n.dist[d]n;)d--;e.updateParallelArrays(i,"splice",d,0,0);e.updateParallelArrays(i,d);if(k&&i.name)k[n]=i.name;h.splice(d,0,a);o&&(e.data.splice(d,0,null),e.processData());f.legendType==="point"&&e.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),e.updateParallelArrays(i,"shift"),h.shift()));e.isDirty=!0;e.isDirtyData=!0;b&&(e.getAttribs(),j.redraw())},removePoint:function(a, b,c){var d=this,e=d.data,f=e[a],g=d.points,h=d.chart,i=function(){e.length===g.length&&g.splice(a,1);e.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(f||{series:d},"splice",a,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&h.redraw()};Sa(c,h);b=p(b,!0);f?f.firePointEvent("remove",null,i):i()},remove:function(a,b){var c=this,d=c.chart,a=p(a,!0);if(!c.isRemoving)c.isRemoving=!0,M(c,"remove",null,function(){c.destroy();d.isDirtyLegend=d.isDirtyBox=!0;d.linkSeries();a&&d.redraw(b)}); c.isRemoving=!1},update:function(a,b){var c=this,d=this.chart,e=this.userOptions,f=this.type,g=J[f].prototype,h=["group","markerGroup","dataLabelsGroup"],i;if(a.type&&a.type!==f||a.zIndex!==void 0)h.length=0;m(h,function(a){h[a]=c[a];delete c[a]});a=z(e,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},a);this.remove(!1);for(i in g)this[i]=u;r(this,J[a.type||f].prototype);m(h,function(a){c[a]=h[a]});this.init(d,a);d.linkSeries();p(b,!0)&&d.redraw(!1)}});r(va.prototype, {update:function(a,b){var c=this.chart,a=c.options[this.coll][this.options.index]=z(this.userOptions,a);this.destroy(!0);this._addedPlotLB=u;this.init(c,r(a,{events:u}));c.isDirtyBox=!0;p(b,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);ia(b.axes,this);ia(b[c],this);b.options[c].splice(this.options.index,1);m(b[c],function(a,b){a.options.index=b});this.destroy();b.isDirtyBox=!0;p(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a}, b)},setCategories:function(a,b){this.update({categories:a},b)}});var xa=ja(Q);J.line=xa;aa.area=z(T,{threshold:0});var pa=ja(Q,{type:"area",getSegments:function(){var a=this,b=[],c=[],d=[],e=this.xAxis,f=this.yAxis,g=f.stacks[this.stackKey],h={},i,j,k=this.points,l=this.options.connectNulls,n,o;if(this.options.stacking&&!this.cropped){for(n=0;n=0;d--)g=p(a[d].yBottom,f),da&&i>e? (i=t(a,e),k=2*e-i):ig&&k>e?(k=t(g,e),i=2*e-k):kg?d-g:f-(w?g:0)));c.barX=m;c.pointWidth=i;c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-h,a.xAxis.len-m-s/2]:[m+s/2, h+e.pos-b.plotTop];s=x(m+s)+l;m=x(m)+l;s-=m;d=O(r)<0.5;u=I(x(r+u)+n,9E4);r=x(r)+n;u-=r;d&&(r-=1,u+=1);c.shapeType="rect";c.shapeArgs={x:m,y:r,width:s,height:u}})},getSymbol:ma,drawLegendSymbol:Na.drawRectangle,drawGraph:ma,drawPoints:function(){var a=this,b=this.chart,c=a.options,d=b.renderer,e=c.animationLimit||250,f,g;m(a.points,function(h){var i=h.plotY,j=h.graphic;if(i!==u&&!isNaN(i)&&h.y!==null)f=h.shapeArgs,i=s(a.borderWidth)?{"stroke-width":a.borderWidth}:{},g=h.pointAttr[h.selected?"select": ""]||a.pointAttr[""],j?(db(j),j.attr(i)[b.pointCount\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}); pa=ja(Q,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,kdComparer:"distR",drawGraph:function(){this.options.lineWidth&&Q.prototype.drawGraph.call(this)}});J.scatter=pa;aa.pie=z(T,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null, size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:0.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}});T={type:"pie",isCartesian:!1,pointClass:ja(Ga,{init:function(){Ga.prototype.init.apply(this,arguments);var a=this,b;r(a,{visible:a.visible!==!1,name:p(a.name,"Slice")});b=function(b){a.slice(b.type==="select")};N(a,"select",b);N(a,"unselect",b);return a},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=!d.isDirty&&d.options.ignoreHiddenPoint;if(a!==c.visible|| b)if(c.visible=c.options.visible=a=a===u?!c.visible:a,d.options.data[Ma(c,d.data)]=c.options,m(["graphic","dataLabel","connector","shadowGroup"],function(b){if(c[b])c[b][a?"show":"hide"](!0)}),c.legendItem&&(e.hasRendered&&(d.updateTotals(),e.legend.clearItems(),f||e.legend.render()),e.legend.colorizeItem(c,a)),f)d.isDirty=!0,e.redraw()},slice:function(a,b,c){var d=this.series;Sa(c,d.chart);p(b,!0);this.sliced=this.options.sliced=a=s(a)?a:!this.sliced;d.options.data[Ma(this,d.data)]=this.options; a=a?this.slicedTranslation:{translateX:0,translateY:0};this.graphic.animate(a);this.shadowGroup&&this.shadowGroup.animate(a)},haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,start:b.start,end:b.end})}}),requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth", fill:"color"},getColor:ma,animate:function(a){var b=this,c=b.points,d=b.startAngleRad;if(!a)m(c,function(a){var c=a.graphic,g=a.shapeArgs;c&&(c.attr({r:a.startR||b.center[3]/2,start:d,end:d}),c.animate({r:g.r,start:g.start,end:g.end},b.options.animation))}),b.animate=null},setData:function(a,b,c,d){Q.prototype.setData.call(this,a,!1,c,d);this.processData();this.generatePoints();p(b,!0)&&this.chart.redraw(c)},updateTotals:function(){var a,b=0,c,d,e,f=this.options.ignoreHiddenPoint;c=this.points;d= c.length;for(a=0;a0&&(e.visible||!f)?e.y/b*100:0,e.total=b},generatePoints:function(){Q.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();var b=0,c=this.options,d=c.slicedOffset,e=d+c.borderWidth,f,g,h,i=c.startAngle||0,j=this.startAngleRad=la/180*(i-90),i=(this.endAngleRad=la/180*(p(c.endAngle,i+360)-90))-j,k=this.points,l=c.dataLabels.distance, c=c.ignoreHiddenPoint,n,m=k.length,q;if(!a)this.center=a=this.getCenter();this.getX=function(b,c){h=V.asin(I((b-a[1])/(a[2]/2+l),1));return a[0]+(c?-1:1)*W(h)*(a[2]/2+l)};for(n=0;n1.5*la?h-=2*la:h<-la/2&&(h+=2*la);q.slicedTranslation={translateX:x(W(h)*d),translateY:x($(h)*d)};f=W(h)*a[2]/2;g=$(h)*a[2]/2;q.tooltipPos= [a[0]+f*0.7,a[1]+g*0.7];q.half=h<-la/2||h>la/2?1:0;q.angle=h;e=I(e,l/2);q.labelPos=[a[0]+f+W(h)*l,a[1]+g+$(h)*l,a[0]+f+W(h)*e,a[1]+g+$(h)*e,a[0]+f,a[1]+g,l<0?"center":q.half?"right":"left",h]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,c,d,e=a.options.shadow,f,g;if(e&&!a.shadowGroup)a.shadowGroup=b.g("shadow").add(a.group);m(a.points,function(h){var i=h.options.visible;d=h.graphic;g=h.shapeArgs;f=h.shadowGroup;if(e&&!f)f=h.shadowGroup=b.g("shadow").add(a.shadowGroup);c=h.sliced? h.slicedTranslation:{translateX:0,translateY:0};f&&f.attr(c);d?d.animate(r(g,c)):h.graphic=d=b[h.shapeType](g).setRadialReference(a.center).attr(h.pointAttr[h.selected?"select":""]).attr({"stroke-linejoin":"round"}).attr(c).add(a.group).shadow(e,f);i!==void 0&&h.setVisible(i,!0)})},searchPoint:ma,sortByAngle:function(a,b){a.sort(function(a,d){return a.angle!==void 0&&(d.angle-a.angle)*b})},drawLegendSymbol:Na.drawRectangle,getCenter:Xb.getCenter,getSymbol:ma};T=ja(Q,T);J.pie=T;Q.prototype.drawDataLabels= function(){var a=this,b=a.options,c=b.cursor,d=b.dataLabels,e=a.points,f,g,h=a.hasRendered||0,i,j,k=a.chart.renderer;if(d.enabled||a._hasPointLabels)a.dlProcessOptions&&a.dlProcessOptions(d),j=a.plotGroup("dataLabelsGroup","data-labels",d.defer?"hidden":"visible",d.zIndex||6),p(d.defer,!0)&&(j.attr({opacity:+h}),h||N(a,"afterAnimate",function(){a.visible&&j.show();j[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),g=d,m(e,function(e){var h,m=e.dataLabel,q,t,x=e.connector,w=!0,v,A={};f= e.dlOptions||e.options&&e.options.dataLabels;h=p(f&&f.enabled,g.enabled);if(m&&!h)e.dataLabel=m.destroy();else if(h){d=z(g,f);v=d.style;h=d.rotation;q=e.getLabelConfig();i=d.format?Ja(d.format,q):d.formatter.call(q,d);v.color=p(d.color,v.color,a.color,"black");if(m)if(s(i))m.attr({text:i}),w=!1;else{if(e.dataLabel=m=m.destroy(),x)e.connector=x.destroy()}else if(s(i)){m={fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth,r:d.borderRadius||0,rotation:h,padding:d.padding,zIndex:1}; if(v.color==="contrast")A.color=d.inside||d.distance<0||b.stacking?k.getContrast(e.color||a.color):"#000000";if(c)A.cursor=c;for(t in m)m[t]===u&&delete m[t];m=e.dataLabel=k[h?"text":"label"](i,0,-999,d.shape,null,null,d.useHTML).attr(m).css(r(v,A)).add(j).shadow(d.shadow)}m&&a.alignDataLabel(e,m,d,null,w)}})};Q.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=p(a.plotX,-999),i=p(a.plotY,-999),j=b.getBBox(),k=f.renderer.fontMetrics(c.style.fontSize).b,l=this.visible&&(a.series.forceDL|| f.isInsidePlot(h,x(i),g)||d&&f.isInsidePlot(h,g?d.x+1:d.y+d.height-1,g));if(l)d=r({x:g?f.plotWidth-i:h,y:x(g?f.plotHeight-h:i),width:0,height:0},d),r(c,{width:j.width,height:j.height}),c.rotation?(a=f.renderer.rotCorr(k,c.rotation),b[e?"attr":"animate"]({x:d.x+c.x+d.width/2+a.x,y:d.y+c.y+d.height/2}).attr({align:c.align})):(b.align(c,null,d),g=b.alignAttr,p(c.overflow,"justify")==="justify"?this.justifyDataLabel(b,c,g,j,d,e):p(c.crop,!0)&&(l=f.isInsidePlot(g.x,g.y)&&f.isInsidePlot(g.x+j.width,g.y+ j.height)),c.shape&&b.attr({anchorX:a.plotX,anchorY:a.plotY}));if(!l)b.attr({y:-999}),b.placed=!1};Q.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g=this.chart,h=b.align,i=b.verticalAlign,j,k,l=a.box?0:a.padding||0;j=c.x+l;if(j<0)h==="right"?b.align="left":b.x=-j,k=!0;j=c.x+d.width-l;if(j>g.plotWidth)h==="left"?b.align="right":b.x=g.plotWidth-j,k=!0;j=c.y+l;if(j<0)i==="bottom"?b.verticalAlign="top":b.y=-j,k=!0;j=c.y+d.height-l;if(j>g.plotHeight)i==="top"?b.verticalAlign="bottom":b.y=g.plotHeight- j,k=!0;if(k)a.placed=!f,a.align(b,null,e)};if(J.pie)J.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,d=a.chart,e=a.options.dataLabels,f=p(e.connectorPadding,10),g=p(e.connectorWidth,1),h=d.plotWidth,i=d.plotHeight,j,k,l=p(e.softConnector,!0),n=e.distance,o=a.center,q=o[2]/2,r=o[1],s=n>0,u,v,w,z=[[],[]],A,B,D,G,E,F=[0,0,0,0],M=function(a,b){return b.y-a.y};if(a.visible&&(e.enabled||a._hasPointLabels)){Q.prototype.drawDataLabels.apply(a);m(b,function(a){a.dataLabel&&a.visible&&z[a.half].push(a)}); for(G=2;G--;){var J=[],N=[],H=z[G],L=H.length,K;if(L){a.sortByAngle(H,G-0.5);for(E=b=0;!b&&H[E];)b=H[E]&&H[E].dataLabel&&(H[E].dataLabel.getBBox().height||21),E++;if(n>0){v=I(r+q+n,d.plotHeight);for(E=t(0,r-q-n);E<=v;E+=b)J.push(E);v=J.length;if(L>v){c=[].concat(H);c.sort(M);for(E=L;E--;)c[E].rank=E;for(E=L;E--;)H[E].rank>=v&&H.splice(E,1);L=H.length}for(E=0;E0){if(v=N.pop(),K=v.i,B=v.y,c>B&&J[K+1]!==null||ch-f&&(F[1]=t(x(A+v-h+f),F[1])),B-b/2<0?F[0]=t(x(-B+b/2),F[0]):B+b/2>i&&(F[2]=t(x(B+b/2-i),F[2]))}}}if(Fa(F)===0||this.verifyDataLabelOverflow(F))this.placeDataLabels(),s&&g&&m(this.points,function(b){j=b.connector;w=b.labelPos;if((u=b.dataLabel)&&u._pos)D=u._attr.visibility,A=u.connX,B=u.connY,k=l?["M",A+(w[6]==="left"?5:-5),B,"C",A,B,2*w[2]-w[4],2*w[3]-w[5],w[2],w[3],"L",w[4],w[5]]:["M",A+(w[6]==="left"?5:-5),B,"L",w[2],w[3],"L",w[4],w[5]],j?(j.animate({d:k}),j.attr("visibility",D)): b.connector=j=a.chart.renderer.path(k).attr({"stroke-width":g,stroke:e.connectorColor||b.color||"#606060",visibility:D}).add(a.dataLabelsGroup);else if(j)b.connector=j.destroy()})}},J.pie.prototype.placeDataLabels=function(){m(this.points,function(a){var a=a.dataLabel,b;if(a)(b=a._pos)?(a.attr(a._attr),a[a.moved?"animate":"attr"](b),a.moved=!0):a&&a.attr({y:-999})})},J.pie.prototype.alignDataLabel=ma,J.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,e= c=c.minSize||80,f;d[0]!==null?e=t(b[2]-t(a[1],a[3]),c):(e=t(b[2]-a[1]-a[3],c),b[0]+=(a[3]-a[1])/2);d[1]!==null?e=t(I(e,b[2]-t(a[0],a[2])),c):(e=t(I(e,b[2]-a[0]-a[2]),c),b[1]+=(a[0]-a[2])/2);ep(this.translatedThreshold, g.yAxis.len),j=p(c.inside,!!this.options.stacking);if(h&&(d=z(h),f&&(d={x:g.yAxis.len-d.y-d.height,y:g.xAxis.len-d.x-d.width,width:d.height,height:d.width}),!j))f?(d.x+=i?0:d.width,d.width=0):(d.y+=i?d.height:0,d.height=0);c.align=p(c.align,!f||j?"center":i?"right":"left");c.verticalAlign=p(c.verticalAlign,f||j?"middle":i?"top":"bottom");Q.prototype.alignDataLabel.call(this,a,b,c,d,e)};(function(a){var b=a.Chart,c=a.each,d=HighchartsAdapter.addEvent;b.prototype.callbacks.push(function(a){function b(){var d= [];c(a.series,function(a){var b=a.options.dataLabels;(b.enabled||a._hasPointLabels)&&!b.allowOverlap&&a.visible&&c(a.points,function(a){if(a.dataLabel)a.dataLabel.labelrank=a.labelrank,d.push(a.dataLabel)})});a.hideOverlappingLabels(d)}b();d(a,"redraw",b)});b.prototype.hideOverlappingLabels=function(a){var b=a.length,c,d,i,j;for(d=0;di.alignAttr.x+i.width||j.alignAttr.x+j.widthi.alignAttr.y+i.height||j.alignAttr.y+j.heightd;if(h.series.length&&(i||l>I(k.dataMin,k.min))&&(!i||j1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((ab)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i= width ? str : new Array(width - str.length + 1).join('0') + str; } ================================================ FILE: public_html/media/js/tooltips.js ================================================ $(function() { /* timeouts to prevent flickering */ function stopTooltipRemoval(target) { var timeout = $(target).data('tooltip-hide-timeout'); window.clearTimeout(timeout); $(target).data('tooltip-hide-timeout', null); } function startTooltipRemoval(target) { } $('[data-tooltip]').each(function() { $(this).mouseenter(function() { var target = $(this); var title = $(target).attr('data-tooltip'); var pos = target.prev().attr('class') === 'delete-trigger' ? 'left' : 'center' var posMy = pos + ' top'; var posAt = pos + ' bottom'; var div = $('
').append($('').html(title.replace(/\|/g, '
').replace(/'/g, '’'))); $(target).data('tooltip', div); $('body').append(div); $(div).position( { of: $(target), my: posMy, at: posAt, collision: 'fit fit' }).mouseenter(function() { stopTooltipRemoval(target); }).mouseleave(function() { startTooltipRemoval(target); }).show(); }).mouseleave(function() { var target = $(this); var div = $(target).data('tooltip'); if (!div) { return; } div.remove(); }); }); }); ================================================ FILE: public_html/media/js/user/achievements.js ================================================ $(function() { $('.entries-trigger').click(function(e) { var target = $(this).parents('.achi-entry').find('.entries-wrapper'); toggleEntries(target, [], false); e.preventDefault(); }); $('.previous-msg a').click(function(e) { var targets = $(this).parents('.section').find('.achi-entry.hidden'); targets.each(function() { var target = $(this); if (target.is(':hidden')) { target.find('.entries-wrapper').hide(); target.show(); target.css('height', $(this).height()); target.hide(); target.slideDown(function() { target.css('height', ''); }); } else { target.slideUp(); } }); $(this).fadeOut('fast', function() { $(this).text($(this).text() == 'Show them' ? 'Hide them' : 'Show them').fadeIn('fast'); }); e.preventDefault(); }); }); ================================================ FILE: public_html/media/js/user/entries.js ================================================ var resetHeight = function() { $('body').css('min-height', ''); } var slideUp = function(target, cb) { if (typeof(cb) === 'undefined') { cb = resetHeight; } target.stop(true, true).slideUp('fast', cb); } var slideDown = function(target) { target.show(); target.css('height', 'auto'); var height = target.height(); target.stop(true, true); //this can make target hidden target.css('height', '0').show(); target.animate({'height': height}, 'medium', resetHeight); } function toggleEntries(target, data, ajax, cb) { if (typeof(cb) === 'undefined') { cb = function() { } } if (typeof(ajax) === 'undefined') { ajax = true; } var url = '/' + $('#user-name').val() + '/entries,' + $('#media').val(); var uniqueId = JSON.stringify(data); if (target.data('unique-id') == uniqueId) { if (target.is(':visible')) { slideUp(target); } else { cb(); slideDown(target); } return; } $('body').css('min-height', $('body').height() + 'px'); target.data('unique-id', uniqueId); slideUp(target, function() { if (ajax) { $.get(url, data, function(response) { target.html(response); cb(); slideDown(target); }); } else { cb(); slideDown(target); } }); } $(function() { $('.entries-wrapper').on('click', '.close', function(event) { var target = $(this).parents('.entries-wrapper'); if ($(target).hasClass('singular')) { target = $(this).parents('.entries-wrapper'); } slideUp(target); event.preventDefault(); }); }); ================================================ FILE: public_html/media/js/user/favorites.js ================================================ $(function() { $('.genres, .creators').each(function() { var section = $(this); section.find('.entries-trigger').click(function(e) { e.preventDefault(); var target = $(this); toggleEntries(section.find('.entries-wrapper'), {'sender': target.attr('data-sender'), 'filter-param': target.attr('data-id')}, true, function() { section.find('.entries-wrapper-row').insertAfter(target.parents('tr')); } ); }); }); $.tablesorter.addWidget( { id: 'ord', format: function(table) { for (var i = 0; i < table.tBodies[0].rows.length; i ++) { $('tbody tr:not(.entries-wrapper-row):eq(' + i + ') td.ord', table).text(i + 1); } } }); var opt = { headers: { 0: { sorter: false }, 5: { sorter: 'percent' } }, widgets: [ 'ord' ], sortList: [ [4,1] ] }; $('table').tablesorter(opt); $('.toggle-decades').click(function(e) { //decadesChart.series[1].setVisible(!decadesChart.series[1].visible); if (decadesChart.series[0].visible && decadesChart.series[1].visible) { decadesChart.xAxis[0].axisTitle.attr({text: 'Years'}); decadesChart.series[0].show(); decadesChart.series[1].hide(); } else if (decadesChart.series[0].visible) { decadesChart.xAxis[0].axisTitle.attr({text: 'Decades'}); decadesChart.series[0].hide(); decadesChart.series[1].show(); } else { decadesChart.xAxis[0].axisTitle.attr({text: 'Years and decades'}); decadesChart.series[0].show(); decadesChart.series[1].show(); } e.preventDefault(); }); let zoomed = false; $('.toggle-zoom').click(function(e) { e.preventDefault(); if (zoomed) { decadesChart.yAxis[0].setExtremes(decadesChart.yAxis[0].getExtremes().dataMin, decadesChart.yAxis[0].getExtremes().dataMax); } else { decadesChart.yAxis[0].setExtremes(0, 10); } zoomed = !zoomed; }); }); ================================================ FILE: public_html/media/js/user/history.js ================================================ $(function() { $('.history-monthly .entries-trigger').click(function(e) { var key = $(this).attr('data-key'); toggleEntries($('.history-monthly .entries-wrapper'), {'sender': 'monthly-history', 'filter-param': key}, false, function() { $('.history-monthly .entries-wrapper .entries-sub-wrapper').hide(); $('.history-monthly .entries-wrapper #' + key).show(); }); e.preventDefault(); }); }); ================================================ FILE: public_html/media/js/user/list.js ================================================ $(function() { if ($('th.unique').length > 0) { sortList = [ [1,0], [2,0] ]; } else { sortList = [ [2,1], [1,0] ]; } $('table').tablesorter( { textExtraction: function(node) { return $(node).attr('data-sorter'); }, sortList : sortList }); $(window).trigger('resize'); $('#filter-status').change(function() { $('#filter-form').submit(); }); $('#filter-title').keyup(function() { $('#filter-form').submit(); }); $('#filter-clear').click(function(e) { e.preventDefault(); $('#filter-title').val(''); $('#filter-status').val(''); $('#filter-form').submit(); }); $('#filter-form').submit(function(e) { e.preventDefault(); var filterTitle = $('#filter-title').val().toLowerCase(); var filterStatus = $('#filter-status').val(); var visible = 0; var total = 0; $('.section table tbody tr').each(function(i, e) { var show = true; show &= (filterTitle == '' || $(this).find('.title').text().toLowerCase().indexOf(filterTitle) >= 0); show &= (filterStatus == '' || $(this).find('.status-' + filterStatus).length > 0); $(this).css('display', show ? 'table-row' : 'none'); visible += show; total += 1; }); $('.section .filter-hint-shown').text(visible); $('.section .filter-hint-total').text(total); $('.section table').toggle(visible > 0); $('.section .filter-hint').toggle(visible < total); }); $('#filter-title').focus(); }); ================================================ FILE: public_html/media/js/user/profile.js ================================================ function getProfileAge() { var now = new Date(); var then = new Date($('#profile-details').attr('data-date')); var diff = now - then; diff /= 1000.0; return diff; } function updatePosition() { var target = $('.queue-pos'); var positionUrl = $('#profile-details').attr('data-queue-pos-url'); var enqueueUrl = $('#profile-details').attr('data-queue-add-url'); var queueMinWait = parseInt($('#profile-details').attr('data-queue-min-wait')); var oldTooltip = target.attr('data-tooltip'); var updatingBanned = $('#profile-details').attr('data-ban-state') == '1'; $.get(positionUrl, function(data) { text = 'Pos. in queue: ' + data.pos; if (data.pos) target.text(text).wrapInner(''); else { target.removeAttr('data-tooltip'); var profileAge = getProfileAge(); if (profileAge < queueMinWait) { target.text('Using fresh data').wrapInner(''); } else if (updatingBanned) { target.text('Cannot update').wrapInner(''); } else { var updateLink = $('
Click to update'); updateLink.click(function(e) { e.preventDefault(); $.get(enqueueUrl, function(data) { target.attr('data-tooltip', oldTooltip); updatePosition(); }); }); target.html(updateLink); } } }); } function updateTime() { var profileAge = getProfileAge(); var target = $('.updated'); var text = ''; if (profileAge < 60) { text = 'just now'; } else if (profileAge < 60 * 60) { text = (profileAge / 60).toFixed(0) + ' minutes ago'; } else if (profileAge < 24 * 60 * 60) { text = (profileAge / 3600).toFixed(1) + ' hours ago'; } else { text = (profileAge / 86400).toFixed(1) + ' days ago'; } target.text(text).wrapInner(''); } $(function() { updatePosition(); updateTime(); }); ================================================ FILE: public_html/media/js/user/ratings.js ================================================ var _params = {}; $(function() { $('.export-trigger').click(function(e) { e.preventDefault(); var target = $('.export.popup'); $('.popup-wrapper').fadeIn('fast'); updatePreview(target); }); function updatePreview(target) { var img = $(target).find('img'); var matches = $(target).find('textarea').val().match(/\[img\](.*)\[\/img]/); var newSrc = matches[1]; if (img.attr('src') != newSrc) { img.attr('src', newSrc); } } /* prepate type selector */ var types = [ { 'type': 1, 'name': 'Anime' }, { 'type': 2, 'name': 'Manga' }, { 'type': 3, 'name': 'Anime & manga' }, ]; $('select[name=\'type\']').each(function() { for (var i in types) { $(this).append($('