commit
6f12e04281
7 changed files with 1433 additions and 0 deletions
@ -0,0 +1,674 @@
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE |
||||
Version 3, 29 June 2007 |
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
||||
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. |
||||
|
||||
<one line to give the program's name and a brief idea of what it does.> |
||||
Copyright (C) <year> <name of author> |
||||
|
||||
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 <http://www.gnu.org/licenses/>. |
||||
|
||||
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: |
||||
|
||||
<program> Copyright (C) <year> <name of author> |
||||
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 |
||||
<http://www.gnu.org/licenses/>. |
||||
|
||||
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 |
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
# Go Fuck Yourself |
||||
|
||||
Offended? Go away. We don't need people who are offended because of a stranger on the internet. |
||||
Not offended? You're welcome to contribute. |
||||
|
||||
© Copyright 2015 [WTFCoC Consortium Committee](https://github.com/mniip/wtfcoc). |
||||
|
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
# Калькулятор стоимости бассейнов |
||||
|
||||
Небольшой сценарий расчёта стоимости бассейнов по их объёму с построением |
||||
чертежей. |
||||
|
||||
Страница не содержит ни валидации пользовательских данных, ни какого-либо |
||||
оформления и не предоставляет функций масштабирования чертежей под размер |
||||
экрана, т.к. это скорее набросок и пример возможного подхода к решению |
||||
поставленной задачи. |
||||
|
||||
 |
||||
|
||||
## Лицензия |
||||
Copyright (C) 2019, Maxim Lihachev, <envrm@yandex.ru> |
||||
|
||||
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 <https://www.gnu.org/licenses/>. |
||||
|
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<title>Расчёт стоимости бассейна</title> |
||||
<meta charset="utf-8" /> |
||||
</head> |
||||
<body> |
||||
<div> |
||||
<h2>Расчёт стоимости бассейна</h2> |
||||
<form> |
||||
<input type="number" name="quantity" min="100" max="1000" id="x" style="width: 100px;" placeholder="Длина"/><br /> |
||||
<input type="number" name="quantity" min="100" max="1000" id="y" style="width: 100px;" placeholder="Ширина"/><br /> |
||||
<input type="number" name="quantity" min="100" max="1000" id="z" style="width: 100px;" placeholder="Глубина"/><br /> |
||||
<input type="number" name="quantity" min="1" max="100" id="s" style="width: 100px;" placeholder="Стоимость кв.м."/><br /> |
||||
|
||||
<br/> |
||||
<input id="est" type="button" value="Вычислить" onclick="calc()"/> |
||||
<input id="reset" type="reset" value="Сброс"/> |
||||
</form> |
||||
<p id="result"> = </p> |
||||
</div> |
||||
|
||||
<div id="stage-container" style="height: 800px;"></div> |
||||
|
||||
<script src="js/graphics.min.js"></script> |
||||
<script src="js/pool.js"></script> |
||||
</body> |
||||
</html> |
||||
|
@ -0,0 +1,388 @@
@@ -0,0 +1,388 @@
|
||||
(function(){var g,aa=aa||{},n=this;function r(a){return void 0!==a}function ba(a){a=a.split(".");for(var b=n,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function u(){}function ca(a){a.oa=function(){return a.Wf?a.Wf:a.Wf=new a}} |
||||
function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; |
||||
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function w(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)} |
||||
function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(null,arguments)} |
||||
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}function x(a,b){var c=a.split("."),d=n;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&r(b)?d[e]=b:d[e]?d=d[e]:d=d[e]={}} |
||||
function z(a,b){function c(){}c.prototype=b.prototype;a.m=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.nj=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var qa,sa=null;var ta;function va(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var wa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function xa(a){return a.replace(/^[\s\xa0]+/,"")}function ya(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")} |
||||
function za(a){if(!Aa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ba,"&"));-1!=a.indexOf("<")&&(a=a.replace(Ca,"<"));-1!=a.indexOf(">")&&(a=a.replace(Da,">"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"""));-1!=a.indexOf("'")&&(a=a.replace(Fa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"�"));return a}var Ba=/&/g,Ca=/</g,Da=/>/g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,Aa=/[\x00&<>"']/;function Ha(a,b){return a<b?-1:a>b?1:0} |
||||
function Ia(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ja(a){var b=w(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}function Ka(a,b){for(var c=a.split(" "),d=[];0<b&&c.length;)d.push(c.shift()),b--;c.length&&d.push(c.join(" "));return d};function La(a){return a[a.length-1]} |
||||
var Ma=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Na=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Oa=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a, |
||||
b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=w(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Pa=Array.prototype.reduce?function(a,b,c,d){d&&(b=na(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;Na(a,function(c,h){e=b.call(d,e,c,h,a)});return e};function Qa(a,b){var c;a:{c=a.length;for(var d=w(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:w(a)?a.charAt(c):a[c]} |
||||
function Ra(a,b){var c=Ma(a,b),d;(d=0<=c)&&Sa(a,c);return d}function Sa(a,b){Array.prototype.splice.call(a,b,1)}function Ta(a){return Array.prototype.concat.apply(Array.prototype,arguments)}function Ua(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Va(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}} |
||||
function Wa(a,b,c,d){return Array.prototype.splice.apply(a,Xa(arguments,1))}function Xa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}function Ya(a,b){a.sort(b||Za)}function $a(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||Za;Ya(c,function(a,b){return e(a.value,b.value)||a.index-b.index});for(d=0;d<a.length;d++)a[d]=c[d].value}function Za(a,b){return a>b?1:a<b?-1:0};function A(a,b,c){return Math.min(Math.max(a,b),c)}function bb(a){a%=360;return 0>360*a?a+360:a}function cb(a){return a*Math.PI/180}function db(a,b){return b*Math.cos(cb(a))}function eb(a,b){return b*Math.sin(cb(a))};function fb(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0}fb.prototype.clone=function(){return new fb(this.x,this.y)};function gb(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}fb.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};fb.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};fb.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function hb(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}g=hb.prototype;g.clone=function(){return new hb(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof hb?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; |
||||
g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function ib(a,b){this.width=a;this.height=b}g=ib.prototype;g.clone=function(){return new ib(this.width,this.height)};g.Ah=function(){return this.width*this.height};g.Ib=function(){return!this.Ah()};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function B(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}g=B.prototype;g.clone=function(){return new B(this.left,this.top,this.width,this.height)};function jb(a,b){var c=Math.max(a.left+a.width,b.left+b.width),d=Math.max(a.top+a.height,b.top+b.height);a.left=Math.min(a.left,b.left);a.top=Math.min(a.top,b.top);a.width=c-a.left;a.height=d-a.top} |
||||
g.contains=function(a){return a instanceof fb?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; |
||||
g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function kb(a,b,c,d,e,f,h){var k=cb(f);f=Math.ceil(Math.abs(k)/Math.PI*2);var k=k/f,l=cb(e);e=h?[a+db(e,c),b+eb(e,d)]:[];for(h=0;h<f;h++){var m=Math.cos(l),p=Math.sin(l),t=4/3*Math.sin(k/2)/(1+Math.cos(k/2)),q=a+(m-t*p)*c,v=b+(p+t*m)*d,l=l+k,m=Math.cos(l),p=Math.sin(l);e.push(q,v,a+(m+t*p)*c,b+(p-t*m)*d,a+m*c,b+p*d)}return e} |
||||
function lb(a){function b(a,b,c,d,e){var f=1-e;return f*f*f*a+3*f*f*e*b+3*f*e*e*c+e*e*e*d}for(var c=[[arguments[0]],[arguments[1]]],d=2,e=arguments.length;d<e;d+=6){var f=[arguments[d-2],arguments[d-1]],h=[arguments[d],arguments[d+1]],k=[arguments[d+2],arguments[d+3]],l=[arguments[d+4],arguments[d+5]];c[0].push(l[0]);c[1].push(l[1]);for(var m,p=0;2>p;p++){var t=-3*f[p]+9*h[p]-9*k[p]+3*l[p],q=6*f[p]-12*h[p]+6*k[p];m=3*h[p]-3*f[p];if(t){var v=q*q-4*m*t;0<v?(m=(-q+Math.sqrt(v))/(2*t),0<m&&1>m&&c[p].push(b(f[p], |
||||
h[p],k[p],l[p],m)),m=(-q-Math.sqrt(v))/(2*t),0<m&&1>m&&c[p].push(b(f[p],h[p],k[p],l[p],m))):v||(m=-q/(2*t),0<m&&1>m&&c[p].push(b(f[p],h[p],k[p],l[p],m)))}else q&&(m=-m/q,0<m&&1>m&&c[p].push(b(f[p],h[p],k[p],l[p],m)))}}d=new B(Math.min.apply(null,c[0]),Math.min.apply(null,c[1]),0,0);d.width=Math.max.apply(null,c[0])-d.left;d.height=Math.max.apply(null,c[1])-d.top;return d} |
||||
function mb(a){if(!arguments.length)return null;for(var b=null,c=!1,d=0,e=arguments.length;d<e;d++)arguments[d]&&(b?(c||(c=!!(b=b.clone())),nb(b,arguments[d])):b=arguments[d]);return b}function ob(a,b){if(!b||pb(b))return a;var c=a.left,d=a.top,e=c+a.width,f=d+a.height,f=[c,d,c,f,e,d,e,f];b.transform(f,0,f,0,4);c=Math.min(f[0],f[2],f[4],f[6]);d=Math.min(f[1],f[3],f[5],f[7]);e=Math.max(f[0],f[2],f[4],f[6]);f=Math.max(f[1],f[3],f[5],f[7]);return new B(c,d,e-c,f-d)} |
||||
function qb(a){var b=Math.pow(10,6);return Math.round(a*b)/b}function rb(a,b,c,d){var e=(a*c+b*d)/(Math.sqrt(a*a+b*b)*Math.sqrt(c*c+d*d)),e=A(e,-1,1),e=180*Math.acos(e)/Math.PI;return 0<a*d-b*c?e:-e}function sb(a){return a?180*Math.atan2(a.c,a.g)/Math.PI:0}fb.prototype.b=function(){return this.x};fb.prototype.c=function(){return this.y};g=B.prototype;g.Th=function(){return this.left};g.$h=function(){return this.top};g.Uf=function(){return this.width};g.Tf=function(){return this.height}; |
||||
g.Wh=function(){return this.left+this.width};g.Nh=function(){return this.top+this.height};x("acgraph.math.Coordinate",fb);x("acgraph.math.Rect",B);x("acgraph.math.Size",ib);var C=fb.prototype;C.getX=C.b;C.getY=C.c;C=B.prototype;C.getWidth=C.Uf;C.getHeight=C.Tf;C.getLeft=C.Th;C.getTop=C.$h;C.getWidth=C.Uf;C.getHeight=C.Tf;C.getRight=C.Wh;C.getBottom=C.Nh;function tb(a,b,c,d,e,f){if(6==arguments.length)this.setTransform(a,b,c,d,e,f);else{if(arguments.length)throw Error("Insufficient matrix parameters");this.b=this.g=1;this.c=this.f=this.h=this.i=0}}function pb(a){return 1==a.b&&!a.c&&!a.f&&1==a.g&&!a.h&&!a.i}tb.prototype.clone=function(){return new tb(this.b,this.c,this.f,this.g,this.h,this.i)}; |
||||
tb.prototype.setTransform=function(a,b,c,d,e,f){if(!(ga(a)&&ga(b)&&ga(c)&&ga(d)&&ga(e)&&ga(f)))throw Error("Invalid transform parameters");this.b=a;this.c=b;this.f=c;this.g=d;this.h=e;this.i=f;return this};function ub(a,b,c){a.h+=b*a.b+c*a.f;a.i+=b*a.c+c*a.g}function vb(a,b,c){var d=a.b,e=a.c;a.b+=c*a.f;a.c+=c*a.g;a.f+=b*d;a.g+=b*e}tb.prototype.toString=function(){return"matrix("+[this.b,this.c,this.f,this.g,this.h,this.i].join()+")"}; |
||||
function nb(a,b){var c=a.b,d=a.f;a.b=b.b*c+b.c*d;a.f=b.f*c+b.g*d;a.h+=b.h*c+b.i*d;c=a.c;d=a.g;a.c=b.b*c+b.c*d;a.g=b.f*c+b.g*d;a.i+=b.h*c+b.i*d}tb.prototype.transform=function(a,b,c,d,e){var f=b;for(b+=2*e;f<b;){e=a[f++];var h=a[f++];c[d++]=e*this.b+h*this.f+this.h;c[d++]=e*this.c+h*this.g+this.i}};function wb(a){var b=a.b*a.g-a.f*a.c;return new tb(a.g/b,-a.c/b,-a.f/b,a.b/b,(a.f*a.i-a.g*a.h)/b,(a.c*a.h-a.b*a.i)/b)} |
||||
function xb(a,b,c){var d=new tb,e=Math.cos(a);a=Math.sin(a);return d.setTransform(e,a,-a,e,b-b*e+c*a,c-b*a-c*e)};function yb(a,b){var c=a.left,d=a.top;b=b.toLowerCase();switch(b){case "left-center":d+=a.height/2;break;case "left-bottom":d+=a.height;break;case "center-top":c+=a.width/2;break;case "center":c+=a.width/2;d+=a.height/2;break;case "center-bottom":c+=a.width/2;d+=a.height;break;case "right-top":c+=a.width;break;case "right-center":c+=a.width;d+=a.height/2;break;case "right-bottom":c+=a.width,d+=a.height}return[c,d]} |
||||
function zb(a){var b,c,d,e=a.trim().replace(/\(\s+/gi,"(").replace(/\s+\)/gi,")").replace(/(\s+,\s+)|(\s+)/gi,",").replace(/(\)),*(\w)/gi,"$1 $2").split(" "),f=new tb;a=0;for(d=e.length;a<d;a++){var h=/^(matrix|translate|rotate|scale|skewX|skewY)\(([e\d.,-]+)\)/i.exec(e[a]),k=h[1],h=h[2].split(",");b=0;for(c=h.length;b<c;b++)h[b]=parseFloat(h[b]);switch(k){case "matrix":h=new tb(h[0],h[1],h[2],h[3],h[4],h[5]);nb(f,h);break;case "translate":ub(f,h[0],h[1]||0);break;case "rotate":nb(f,xb(cb(h[0]),h[1]|| |
||||
0,h[2]||0));break;case "scale":k=f;b=h[0];h=h[1]||0;k.b*=b;k.c*=b;k.f*=h;k.g*=h;break;case "skewX":vb(f,Math.tan(cb(h[0])),0);break;case "skewY":vb(f,0,Math.tan(cb(h[0])))}}return f} |
||||
function Ab(a,b,c,d,e,f,h){var k,l,m,p,t,q;if(w(a))k=Bb(a,!1),w(k)&&r(b)&&(d=parseFloat(b),k={color:a,opacity:isNaN(d)?1:A(d,0,1)});else if(ea(a)){l=Xa(a,0);for(p=l.length;p--;)m=l[p],w(m)&&(m=Db(m)),isNaN(m.offset)&&(m.offset=p/(l.length-1||1)),l[p]=m;m=Xa(l,0);m.sort(function(a,b){return a.offset-b.offset});0!=m[0].offset&&(q={offset:0,color:l[0].color},r(l[0].opacity)&&!isNaN(l[0].opacity)&&(q.opacity=A(l[0].opacity,0,1)),l.unshift(q));1!=m[m.length-1].offset&&(q={offset:1,color:l[l.length-1].color}, |
||||
r(l[l.length-1].opacity)&&!isNaN(l[l.length-1].opacity)&&(q.opacity=A(l[l.length-1].opacity,0,1)),l.push(q));ga(b)&&!isNaN(b)&&ga(c)&&!isNaN(c)?(b=b||0,c=c||0,k={keys:l,cx:b,cy:c,mode:Eb(d),fx:isNaN(f)?b:+f,fy:isNaN(h)?c:+h,opacity:A(r(e)?e:1,0,1)}):k={keys:l,angle:+b||0,mode:Eb(c)||!!c,opacity:A(isNaN(+d)?1:+d,0,1)}}else if(ha(a))if(a instanceof Fb)k=a;else if("pattern"==a.type)delete a.id,k=a.bounds,k=new B(k.left,k.top,k.width,k.height),k=Gb(k),k.H(a);else if("keys"in a){l=Xa(a.keys,0);for(p=l.length;p--;)m= |
||||
l[p],w(m)?q=Db(m):(w(m.color)?t=m.color:t=ea(m.color)?Hb(m.color):"black",q={offset:m.offset,color:t},isNaN(m.opacity)||(q.opacity=A(m.opacity,0,1))),isNaN(q.offset)&&(q.offset=p/(l.length-1||1)),l[p]=q;m=Xa(l,0);m.sort(function(a,b){return a.offset-b.offset});0!=m[0].offset&&(q={offset:0,color:l[0].color},r(l[0].opacity)&&!isNaN(l[0].opacity)&&(q.opacity=A(l[0].opacity,0,1)),l.unshift(q));1!=m[m.length-1].offset&&(q={offset:1,color:l[l.length-1].color},r(l[l.length-1].opacity)&&!isNaN(l[l.length- |
||||
1].opacity)&&(q.opacity=A(l[l.length-1].opacity,0,1)),l.push(q));d=A(r(a.opacity)?a.opacity:1,0,1);e=Eb(a.mode);b=a.cx;c=a.cy;ga(b)&&!isNaN(b)&&ga(c)&&!isNaN(c)?k={keys:l,cx:+b,cy:+c,mode:e,fx:isNaN(a.fx)?+a.cx:+a.fx,fy:isNaN(a.fy)?+a.cy:+a.fy,opacity:d}:k={keys:l,angle:+a.angle||0,mode:e||!!a.mode,opacity:d};a=a.transform;null!=a&&(a instanceof tb?k.transform=a:ha(a)?(k.transform=new tb,k.transform.setTransform(a.m00,a.m10,a.m01,a.m11,a.m02,a.m12)):w(a)&&(k.transform=zb(a)))}else"src"in a?k={src:a.src, |
||||
mode:r(a.mode)?a.mode:"stretch",opacity:A(r(a.opacity)?a.opacity:1,0,1)}:(t=w(a.color)?a.color:"black",isNaN(a.opacity)?k=t:k={color:t,opacity:A(a.opacity,0,1)});else k="none";return k} |
||||
function Ib(a,b,c,d,e){var f;if(null===a)f="none";else{if(w(a)){f=Ka(a,1);var h=parseFloat(f[0]);isNaN(h)||(a=f[1],b=h)}f=ha(a);b=parseFloat(f&&"thickness"in a?a.thickness:b);if(!isNaN(b)&&!b)return"none";var h=f&&"dash"in a,k=f&&"lineJoin"in a,l=f&&"lineCap"in a;f=Ab(a);if("none"==f)return f;f=f instanceof Fb?"black":f;if(!isNaN(b)||h||k||l||r(c)||r(d)||r(e))w(f)&&(f={color:f}),isNaN(b)||(f.thickness=b),h?f.dash=a.dash||"none":null!=c&&(f.dash=c||"none"),k?f.lineJoin=a.lineJoin||"none":null!=d&& |
||||
(f.lineJoin=d||"none"),l?f.lineCap=a.lineCap||"none":null!=e&&(f.lineCap=e||"none")}return f}function Jb(a,b,c){r(c)||(c="a4");c=Kb[c];r(a)&&r(b)?w(a)&&"boolean"==typeof b?(a=a.toLowerCase(),(a=Kb[a])&&(b?c={width:a.height,height:a.width}:c=a)):(c.width=String(a),c.height=String(b)):r(a)&&(a=Kb[String(a)])&&(c=a);va(c.width,"px")||va(c.width,"mm")||(c.width+="px");va(c.height,"px")||va(c.height,"mm")||(c.height+="px");return c} |
||||
function Eb(a){if(null!=a){if(a instanceof B)return a;if(ha(a)&&!isNaN(a.left)&&!isNaN(a.top)&&!isNaN(a.width)&&!isNaN(a.height))return new B(a.left,a.top,a.width,a.height)}return null}function Bb(a,b){var c=a.split(" "),d=1<c.length?A(+c[c.length-1],0,1):NaN;if(isNaN(d)){if(b)return{color:a};d=1}else c.pop(),a=c.join(" ");return b||1!=d?{color:a,opacity:d}:a}function Db(a){var b=Ka(a,1),c=NaN;1<b.length&&(c=parseFloat(b[0]),a=isNaN(c)?a:b[1]);a=Bb(a,!0);isNaN(c)||(a.offset=A(c,0,1));return a} |
||||
x("acgraph.vector.normalizeFill",Ab);x("acgraph.vector.normalizeStroke",Ib);x("acgraph.vector.normalizeHatchFill",function(a,b,c,d){if(w(a)&&"none"==a.toLowerCase())return null;w(a)||ga(a)?b=Lb(a,b,r(c)?parseFloat(c):void 0,r(d)?parseFloat(d):void 0):a instanceof Fb?b=a:ha(a)?"pattern"==a.type?(delete a.id,b=a.bounds,b=new B(b.left,b.top,b.width,b.height),b=Gb(b),b.H(a)):b=Lb(a.type,a.color,a.thickness,a.size):b=null;return b});function Mb(){}ca(Mb);Mb.prototype.c=0;Mb.prototype.b="ac_uid_"+(1E9*Math.random()>>>0);function Nb(a,b,c){return b[a.b]||(b[a.b]=Ob(a,b,c))}function Ob(a,b,c){return["ac",r(c)?c:b.fa?b.fa():"",(a.c++).toString(36)].join("_")};var Pb;a:{var Qb=n.navigator;if(Qb){var Rb=Qb.userAgent;if(Rb){Pb=Rb;break a}}Pb=""};function Sb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ub(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Vb(a,b){return!!a&&b in a}function Wb(a){for(var b in a)return!1;return!0}function Xb(a){for(var b in a)delete a[b]}function Yb(a,b){b in a&&delete a[b]}function Zb(a){var b={},c;for(c in a)b[c]=a[c];return b}var $b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); |
||||
function ac(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<$b.length;f++)c=$b[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function bc(a){bc[" "](a);return a}bc[" "]=u;function cc(a,b){try{return bc(a[b]),!0}catch(c){}return!1}function dc(a,b){var c=ec;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var fc=-1!=Pb.indexOf("Opera"),E=-1!=Pb.indexOf("Trident")||-1!=Pb.indexOf("MSIE"),gc=-1!=Pb.indexOf("Edge"),hc=-1!=Pb.indexOf("Gecko")&&!(-1!=Pb.toLowerCase().indexOf("webkit")&&-1==Pb.indexOf("Edge"))&&!(-1!=Pb.indexOf("Trident")||-1!=Pb.indexOf("MSIE"))&&-1==Pb.indexOf("Edge"),ic=-1!=Pb.toLowerCase().indexOf("webkit")&&-1==Pb.indexOf("Edge"),jc=-1!=Pb.indexOf("Macintosh");function kc(){var a=n.document;return a?a.documentMode:void 0}var lc; |
||||
a:{var mc="",nc=function(){var a=Pb;if(hc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(gc)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ic)return/WebKit\/(\S+)/.exec(a);if(fc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();nc&&(mc=nc?nc[1]:"");if(E){var oc=kc();if(null!=oc&&oc>parseFloat(mc)){lc=String(oc);break a}}lc=mc}var ec={}; |
||||
function pc(a){return dc(a,function(){for(var b=0,c=wa(String(lc)).split("."),d=wa(String(a)).split("."),e=Math.max(c.length,d.length),f=0;!b&&f<e;f++){var h=c[f]||"",k=d[f]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==h[0].length&&0==k[0].length)break;b=Ha(0==h[1].length?0:parseInt(h[1],10),0==k[1].length?0:parseInt(k[1],10))||Ha(0==h[2].length,0==k[2].length)||Ha(h[2],k[2]);h=h[3];k=k[3]}while(!b)}return 0<=b})}var qc;var rc=n.document; |
||||
qc=rc&&E?kc()||("CSS1Compat"==rc.compatMode?parseInt(lc,10):5):void 0;function sc(a){var b;b=da(a);if("array"==b){b=[];for(var c=0;c<a.length;c++)c in a&&(b[c]=sc(a[c]))}else if("object"==b)for(c in b={},a)a.hasOwnProperty(c)&&(b[c]=sc(a[c]));else return a;return b}function tc(a,b,c){if(hc||E)a.apply(c,b);else for(var d=0,e=5E4,f=Math.ceil(b.length/5E4),h=0;h<f;h++)a.apply(c,b.slice(d,e)),d+=5E4,e+=5E4};var uc={0:"Can't find an error message that corresponds to the specified error code",1:"Requested stage type is not supported",2:"Container should be defined to render stage",3:"Stage should have a DOM element",4:"Unable to set the parent component",5:"Trying to perform an operation with the disposed element",6:"Synchronous rendering didn't clean up all dirty states",7:"Can't add an element constructed by another Stage",8:"Wrong arguments passed to swapChildren",9:"Path must start with moveTo command", |
||||
10:"Method must be implemented",11:"Missing required parameter",12:"Parameter type mismatch",13:"Required parameter is null or undefined",14:"Invalid number of parameters",15:"Sorry, this feature in not supported in VML oriented browsers"};function vc(a){return uc[a]||"Unknown error happened"};var wc=!E||9<=Number(qc),xc=!E||9<=Number(qc),yc=E&&!pc("9");function zc(){0!=Ac&&(Bc[ia(this)]=this);this.M=this.M;this.ob=this.ob}var Ac=0,Bc={};zc.prototype.M=!1;zc.prototype.za=function(){if(!this.M&&(this.M=!0,this.A(),0!=Ac)){var a=ia(this);delete Bc[a]}};zc.prototype.A=function(){if(this.ob)for(;this.ob.length;)this.ob.shift()()};function Dc(a){a&&"function"==typeof a.za&&a.za()}function Ec(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Ec.apply(null,d):Dc(d)}};function Fc(a,b){this.type=a;this.c=this.target=b;this.pa=this.h=!1;this.ig=!0}Fc.prototype.g=function(){this.h=!0};Fc.prototype.b=function(){this.pa=!0;this.ig=!1};function Gc(a,b){Fc.call(this,a?a.type:"");this.v=this.c=this.target=null;this.I=this.L=this.w=this.M=this.clientY=this.clientX=this.aa=this.W=0;this.Ba=this.P=this.ja=this.C=this.i=!1;this.f=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.c=b;var e=a.relatedTarget;e?hc&&(cc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.v=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY= |
||||
void 0!==d.clientY?d.clientY:d.pageY,this.M=d.screenX||0,this.w=d.screenY||0):(this.W=ic||void 0!==a.offsetX?a.offsetX:a.layerX,this.aa=ic||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.M=a.screenX||0,this.w=a.screenY||0);this.L=a.keyCode||0;this.I=a.charCode||("keypress"==c?a.keyCode:0);this.i=a.ctrlKey;this.C=a.altKey;this.ja=a.shiftKey;this.P=a.metaKey;this.Ba=jc?a.metaKey:a.ctrlKey;this.f=a;a.defaultPrevented&& |
||||
this.b()}}z(Gc,Fc);var Hc=[1,4,2];function Ic(a,b){return wc?a.f.button==b:"click"==a.type?0==b:!!(a.f.button&Hc[b])}Gc.prototype.g=function(){Gc.m.g.call(this);this.f.stopPropagation?this.f.stopPropagation():this.f.cancelBubble=!0};Gc.prototype.b=function(){Gc.m.b.call(this);var a=this.f;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,yc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Jc="closure_listenable_"+(1E6*Math.random()|0);function Kc(a){return!(!a||!a[Jc])}var Lc=0;function Mc(a,b,c,d,e){this.listener=a;this.b=null;this.src=b;this.type=c;this.bd=!!d;this.od=e;this.Sf=++Lc;this.bc=this.ad=!1}function Nc(a){a.bc=!0;a.listener=null;a.b=null;a.src=null;a.od=null};function Oc(a){this.src=a;this.b={};this.c=0}Oc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.c++);var h=Pc(a,b,d,e);-1<h?(b=a[h],c||(b.ad=!1)):(b=new Mc(b,this.src,f,!!d,e),b.ad=c,a.push(b));return b};function Qc(a,b){var c=b.type;if(!(c in a.b))return!1;var d=Ra(a.b[c],b);d&&(Nc(b),a.b[c].length||(delete a.b[c],a.c--));return d}function Rc(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=Pc(a,c,d,e));return-1<b?a[b]:null} |
||||
function Pc(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.bc&&f.listener==b&&f.bd==!!c&&f.od==d)return e}return-1};var Sc="closure_lm_"+(1E6*Math.random()|0),Tc={},Uc=0;function Vc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)Vc(a,b[f],c,d,e);return null}c=Wc(c);return Kc(a)?a.R(b,c,d,e):Xc(a,b,c,!1,d,e)} |
||||
function Xc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=!!e,k=Yc(a);k||(a[Sc]=k=new Oc(a));c=k.add(b,c,d,e,f);if(c.b)return c;d=Zc();c.b=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,h);else if(a.attachEvent)a.attachEvent($c(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Uc++;return c} |
||||
function Zc(){var a=ad,b=xc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function bd(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)bd(a,b[f],c,d,e);return null}c=Wc(c);return Kc(a)?a.kb(b,c,d,e):Xc(a,b,c,!0,d,e)}function cd(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)cd(a,b[f],c,d,e);return null}c=Wc(c);if(Kc(a))return a.ua(b,c,d,e);if(!a)return!1;if(a=Yc(a))if(b=Rc(a,b,c,!!d,e))return dd(b);return!1} |
||||
function dd(a){if(ga(a)||!a||a.bc)return!1;var b=a.src;if(Kc(b))return b.Ed(a);var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.bd):b.detachEvent&&b.detachEvent($c(c),d);Uc--;(c=Yc(b))?(Qc(c,a),c.c||(c.src=null,b[Sc]=null)):Nc(a);return!0}function ed(a,b){if(!a)return 0;if(Kc(a))return a.nb(b);var c=Yc(a);if(!c)return 0;var d=0,e=b&&b.toString(),f;for(f in c.b)if(!e||f==e)for(var h=c.b[f].concat(),k=0;k<h.length;++k)dd(h[k])&&++d;return d} |
||||
function $c(a){return a in Tc?Tc[a]:Tc[a]="on"+a}function fd(a,b,c,d){var e=!0;if(a=Yc(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.bd==c&&!f.bc&&(f=gd(f,d),e=e&&!1!==f)}return e}function gd(a,b){var c=a.listener,d=a.od||a.src;a.ad&&dd(a);return c.call(d,b)} |
||||
function ad(a,b){if(a.bc)return!0;if(!xc){var c=b||ba("window.event"),d=new Gc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(!c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.c;f;f=f.parentNode)c.push(f);for(var f=a.type,h=c.length-1;!d.h&&0<=h;h--){d.c=c[h];var k=fd(c[h],f,!0,d),e=e&&k}for(h=0;!d.h&&h<c.length;h++)d.c=c[h],k=fd(c[h],f,!1,d),e=e&&k}return e}return gd(a,new Gc(b,this))} |
||||
function Yc(a){a=a[Sc];return a instanceof Oc?a:null}var hd="__closure_events_fn_"+(1E9*Math.random()>>>0);function Wc(a){if("function"==da(a))return a;a[hd]||(a[hd]=function(b){return a.handleEvent(b)});return a[hd]};x("acgraph.events.listen",Vc);x("acgraph.events.listenOnce",bd);x("acgraph.events.unlisten",cd);x("acgraph.events.unlistenByKey",dd);x("acgraph.events.removeAll",ed);var id=!E||9<=Number(qc),jd=E||fc||ic;var kd={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function ld(){this.b="";this.c=md}ld.prototype.Hb=!0;ld.prototype.jb=function(){return this.b};ld.prototype.toString=function(){return"Const{"+this.b+"}"};function nd(a){return a instanceof ld&&a.constructor===ld&&a.c===md?a.b:"type_error:Const"}var md={};function od(a){var b=new ld;b.b=a;return b}od("");function pd(){this.b="";this.c=qd}pd.prototype.Hb=!0;var qd={};pd.prototype.jb=function(){return this.b};function rd(a){var b=new pd;b.b=a;return b}var sd=rd(""),td=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;function ud(){this.b="";this.c=vd}ud.prototype.Hb=!0;ud.prototype.jb=function(){return this.b};ud.prototype.ee=!0;ud.prototype.Zb=function(){return 1};function wd(a){if(a instanceof ud&&a.constructor===ud&&a.c===vd)return a.b;da(a);return"type_error:SafeUrl"}var xd=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i;function yd(a){if(a instanceof ud)return a;a=a.Hb?a.jb():String(a);xd.test(a)||(a="about:invalid#zClosurez");return zd(a)}var vd={};function zd(a){var b=new ud;b.b=a;return b}zd("about:blank");function Ad(){this.b=Bd}Ad.prototype.Hb=!0;Ad.prototype.jb=function(){return""};Ad.prototype.ee=!0;Ad.prototype.Zb=function(){return 1};var Bd={};function Cd(){this.b="";this.f=Dd;this.c=null}Cd.prototype.ee=!0;Cd.prototype.Zb=function(){return this.c};Cd.prototype.Hb=!0;Cd.prototype.jb=function(){return this.b};function Ed(a){if(a instanceof Cd&&a.constructor===Cd&&a.f===Dd)return a.b;da(a);return"type_error:SafeHtml"}function Fd(a){if(a instanceof Cd)return a;var b=null;a.ee&&(b=a.Zb());a=za(a.Hb?a.jb():String(a));return Gd(a,b)} |
||||
function Hd(a){if(a instanceof Cd)return a;a=Fd(a);var b;b=Ed(a);b=ya(b.replace(/ /g,"  "),void 0);return Gd(b,a.Zb())}var Id=/^[a-zA-Z0-9-]+$/,Jd={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Kd={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};function Ld(a){function b(a){ea(a)?Na(a,b):(a=Fd(a),d+=Ed(a),a=a.Zb(),0==c?c=a:0!=a&&c!=a&&(c=null))}var c=0,d="";Na(arguments,b);return Gd(d,c)}var Dd={}; |
||||
function Gd(a,b){var c=new Cd;c.b=a;c.c=b;return c}Gd("<!DOCTYPE html>",0);Gd("",0);Gd("<br>",0);function Od(a){return a?new Pd(Qd(a)):ta||(ta=new Pd)}function Rd(a){var b=document;return w(a)?b.getElementById(a):a}function Sd(a,b){return(b||document).getElementsByTagName(String(a))}function Td(a,b){var c=document,c=b||c,d=a&&"*"!=a?String(a).toUpperCase():"";return c.querySelectorAll&&c.querySelector&&d?c.querySelectorAll(d+""):c.getElementsByTagName(d||"*")} |
||||
function Ud(a,b){Sb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Vd.hasOwnProperty(d)?a.setAttribute(Vd[d],b):d.lastIndexOf("aria-",0)&&d.lastIndexOf("data-",0)?a[d]=b:a.setAttribute(d,b)})}var Vd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; |
||||
function Wd(a){var b=a.scrollingElement?a.scrollingElement:ic||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement;a=a.parentWindow||a.defaultView;return E&&pc("10")&&a.pageYOffset!=b.scrollTop?new fb(b.scrollLeft,b.scrollTop):new fb(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Xd(a,b,c){return Yd(document,arguments)} |
||||
function Yd(a,b){var c=String(b[0]),d=b[1];if(!id&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',za(d.name),'"');if(d.type){c.push(' type="',za(d.type),'"');var e={};ac(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:ea(d)?c.className=d.join(" "):Ud(c,d));2<b.length&&Zd(a,c,b);return c} |
||||
function Zd(a,b,c){function d(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!fa(f)||ha(f)&&0<f.nodeType?d(f):Na($d(f)?Ua(f):f,d)}}function ae(a){for(var b;b=a.firstChild;)a.removeChild(b)}function F(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function be(a){var b;if(jd&&!(E&&pc("9")&&!pc("10")&&n.SVGElement&&a instanceof n.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ha(b)&&1==b.nodeType?b:null} |
||||
function Qd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ce(a){return a.contentDocument||a.contentWindow.document}var de={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ee={IMG:" ",BR:"\n"};function fe(a,b,c){if(!(a.nodeName in de))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ee)b.push(ee[a.nodeName]);else for(a=a.firstChild;a;)fe(a,b,c),a=a.nextSibling} |
||||
function $d(a){if(a&&"number"==typeof a.length){if(ha(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==da(a))return"function"==typeof a.item}return!1}function Pd(a){this.b=a||n.document||document}Pd.prototype.c=function(a,b,c){return Yd(this.b,arguments)};Pd.prototype.createElement=function(a){return this.b.createElement(String(a))};Pd.prototype.appendChild=function(a,b){a.appendChild(b)}; |
||||
Pd.prototype.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function ge(a){zc.call(this);this.c=a;this.b={}}z(ge,zc);var he=[];ge.prototype.R=function(a,b,c,d){ea(b)||(b&&(he[0]=b.toString()),b=he);for(var e=0;e<b.length;e++){var f=Vc(a,b[e],c||this.handleEvent,d||!1,this.c||this);if(!f)break;this.b[f.Sf]=f}return this}; |
||||
ge.prototype.ua=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)this.ua(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.c||this,c=Wc(c),d=!!d,b=Kc(a)?Rc(a.eb,String(b),c,d,e):a?(a=Yc(a))?Rc(a,b,c,d,e):null:null,b&&(dd(b),delete this.b[b.Sf]);return this};function ie(a){Sb(a.b,function(a,c){this.b.hasOwnProperty(c)&&dd(a)},a);a.b={}}ge.prototype.A=function(){ge.m.A.call(this);ie(this)};ge.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function je(){zc.call(this);this.eb=new Oc(this);this.Kh=this;this.Rc=null}z(je,zc);je.prototype[Jc]=!0;g=je.prototype;g.removeEventListener=function(a,b,c,d){cd(this,a,b,c,d)}; |
||||
g.G=function(a){var b,c=this.Rc;if(c)for(b=[];c;c=c.Rc)b.push(c);var c=this.Kh,d=a.type||a;if(w(a))a=new Fc(a,c);else if(a instanceof Fc)a.target=a.target||c;else{var e=a;a=new Fc(d,c);ac(a,e)}var e=!0,f;if(b)for(var h=b.length-1;!a.h&&0<=h;h--)f=a.c=b[h],e=ke(f,d,!0,a)&&e;a.h||(f=a.c=c,e=ke(f,d,!0,a)&&e,a.h||(e=ke(f,d,!1,a)&&e));if(b)for(h=0;!a.h&&h<b.length;h++)f=a.c=b[h],e=ke(f,d,!1,a)&&e;return e};g.A=function(){je.m.A.call(this);this.nb();this.Rc=null}; |
||||
g.R=function(a,b,c,d){return this.eb.add(String(a),b,!1,c,d)};g.kb=function(a,b,c,d){return this.eb.add(String(a),b,!0,c,d)};g.ua=function(a,b,c,d){var e;e=this.eb;a=String(a).toString();if(a in e.b){var f=e.b[a];b=Pc(f,b,c,d);-1<b?(Nc(f[b]),Sa(f,b),f.length||(delete e.b[a],e.c--),e=!0):e=!1}else e=!1;return e};g.Ed=function(a){return Qc(this.eb,a)}; |
||||
g.nb=function(a){var b;if(this.eb){b=this.eb;a=a&&a.toString();var c=0,d;for(d in b.b)if(!a||d==a){for(var e=b.b[d],f=0;f<e.length;f++)++c,Nc(e[f]);delete b.b[d];b.c--}b=c}else b=0;return b};function ke(a,b,c,d){b=a.eb.b[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.bc&&h.bd==c){var k=h.listener,l=h.od||h.src;h.ad&&a.Ed(h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.ig};function H(a,b,c){if(w(b))(b=le(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=le(c,d);f&&(c.style[f]=e)}}var me={};function le(a,b){var c=me[b];if(!c){var d=Ia(b),c=d;void 0===a.style[d]&&(d=(ic?"Webkit":hc?"Moz":E?"ms":fc?"O":null)+Ja(d),void 0!==a.style[d]&&(c=d));me[b]=c}return c}function ne(a,b){var c=a.style[Ia(b)];return"undefined"!==typeof c?c:a.style[le(a,b)]||""} |
||||
function oe(a,b){var c=Qd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function pe(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}E&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}function qe(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a} |
||||
function re(a){var b=a.offsetWidth,c=a.offsetHeight,d=ic&&!b&&!c;return r(b)&&!d||!a.getBoundingClientRect?new ib(b,c):(a=pe(a),new ib(a.right-a.left,a.bottom-a.top))} |
||||
function se(a){var b=Qd(a),c=new fb(0,0),d;d=b?Qd(b):document;d=!E||9<=Number(qc)||"CSS1Compat"==Od(d).b.compatMode?d.documentElement:d.body;a!=d&&(d=pe(a),b=Wd(Od(b).b),c.x=d.left+b.x,c.y=d.top+b.y);if("none"!=(oe(a,"display")||(a.currentStyle?a.currentStyle.display:null)||a.style&&a.style.display))a=re(a);else{b=a.style;d=b.display;var e=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=re(a);b.display=d;b.position=f;b.visibility=e}return new B(c.x,c.y,a.width, |
||||
a.height)}var te=hc?"MozUserSelect":ic||gc?"WebkitUserSelect":null; |
||||
function ue(a){var b=Qd(a),c=E&&a.currentStyle;if(c&&"CSS1Compat"==Od(b).b.compatMode&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=ve(a,c.width,"width","pixelWidth"),a=ve(a,c.height,"height","pixelHeight"),new ib(b,a);c=new ib(a.offsetWidth,a.offsetHeight);if(E)var b=we(a,"paddingLeft"),d=we(a,"paddingRight"),e=we(a,"paddingTop"),f=we(a,"paddingBottom"),b=new hb(e,d,f,b);else b=oe(a,"paddingLeft"),d=oe(a,"paddingRight"),e=oe(a,"paddingTop"),f=oe(a,"paddingBottom"),b=new hb(parseFloat(e), |
||||
parseFloat(d),parseFloat(f),parseFloat(b));!E||9<=Number(qc)?(d=oe(a,"borderLeftWidth"),e=oe(a,"borderRightWidth"),f=oe(a,"borderTopWidth"),a=oe(a,"borderBottomWidth"),a=new hb(parseFloat(f),parseFloat(e),parseFloat(a),parseFloat(d))):(d=xe(a,"borderLeft"),e=xe(a,"borderRight"),f=xe(a,"borderTop"),a=xe(a,"borderBottom"),a=new hb(f,e,a,d));return new ib(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} |
||||
function ve(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function we(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ve(a,c,"left","pixelLeft"):0}var ye={thin:2,medium:4,thick:6}; |
||||
function xe(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in ye?ye[c]:ve(a,c,"left","pixelLeft")};function ze(a,b,c){je.call(this);this.target=a;this.C=b||a;this.v=c||new B(NaN,NaN,NaN,NaN);this.w=Qd(a);this.h=new ge(this);a=oa(Dc,this.h);this.M?r(void 0)?a.call(void 0):a():(this.ob||(this.ob=[]),this.ob.push(r(void 0)?na(a,void 0):a));this.g=this.f=this.P=this.L=this.clientY=this.clientX=0;this.jd=!0;this.i=!1;Vc(this.C,["touchstart","mousedown"],this.Dg,!1,this)}z(ze,je);var Ae=n.document&&n.document.documentElement&&!!n.document.documentElement.setCapture&&!!n.document.releaseCapture;g=ze.prototype; |
||||
g.wg=function(a){this.v=a||new B(NaN,NaN,NaN,NaN)};g.A=function(){ze.m.A.call(this);cd(this.C,["touchstart","mousedown"],this.Dg,!1,this);ie(this.h);Ae&&this.w.releaseCapture();this.C=this.target=null}; |
||||
g.Dg=function(a){var b="mousedown"==a.type;if(!this.jd||this.i||b&&(!Ic(a,0)||ic&&jc&&a.i))this.G("earlycancel");else if(this.G(new Be("start",this,a.clientX,a.clientY,a))){this.i=!0;b&&a.b();var b=this.w,c=b.documentElement,d=!Ae;this.h.R(b,["touchmove","mousemove"],this.bi,d);this.h.R(b,["touchend","mouseup"],this.kd,d);Ae?(c.setCapture(!1),this.h.R(c,"losecapture",this.kd)):this.h.R(b?b.parentWindow||b.defaultView:window,"blur",this.kd);this.W&&this.h.R(this.W,"scroll",this.hi,d);this.clientX= |
||||
this.L=a.clientX;this.clientY=this.P=a.clientY;this.xf();this.I=Wd(Od(this.w).b)}};g.kd=function(a,b){ie(this.h);Ae&&this.w.releaseCapture();if(this.i){this.i=!1;var c=this.fe(this.f);this.G(new Be("end",this,a.clientX,a.clientY,a,c,this.he(this.g),b||"touchcancel"==a.type))}else this.G("earlycancel")}; |
||||
g.bi=function(a){if(this.jd){var b=1*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;if(!this.i){var d=this.L-this.clientX,e=this.P-this.clientY;if(0<d*d+e*e)if(this.G(new Be("start",this,a.clientX,a.clientY,a)))this.i=!0;else{this.M||this.kd(a);return}}c=Ce(this,b,c);b=c.x;c=c.y;this.i&&this.G(new Be("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(De(this,a,b,c),a.b())}}; |
||||
function Ce(a,b,c){var d=Wd(Od(a.w).b);b+=d.x-a.I.x;c+=d.y-a.I.y;a.I=d;a.f+=b;a.g+=c;b=a.fe(a.f);return new fb(b,a.he(a.g))}g.hi=function(a){var b=Ce(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;De(this,a,b.x,b.y)};function De(a,b,c,d){a.Jf(c,d);a.G(new Be("drag",a,b.clientX,b.clientY,b,c,d))}g.fe=function(a){var b=this.v,c=isNaN(b.left)?null:b.left,b=isNaN(b.width)?0:b.width;return Math.min(null!=c?c+b:Infinity,Math.max(null!=c?c:-Infinity,a))}; |
||||
g.he=function(a){var b=this.v,c=isNaN(b.top)?null:b.top,b=isNaN(b.height)?0:b.height;return Math.min(null!=c?c+b:Infinity,Math.max(null!=c?c:-Infinity,a))};g.xf=function(){this.f=this.target.offsetLeft;this.g=this.target.offsetTop};g.Jf=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function Be(a,b,c,d,e,f,h,k){Fc.call(this,a);this.clientX=c;this.clientY=d;this.f=e;this.left=r(f)?f:b.f;this.top=r(h)?h:b.g;this.i=!!k}z(Be,Fc);function Ee(a){ze.call(this,a.j());this.c=a;this.b=[NaN,NaN];this.R("earlycancel",this.ji,!1,this);this.R("start",this.vd,!1,this);this.R("beforedrag",this.vd,!1,this);this.R("drag",this.vd,!1,this);this.R("end",this.vd,!1,this)}z(Ee,ze);g=Ee.prototype;g.ji=function(){return this.c.G("earlycancel")};g.vd=function(a){return this.c.G(new Be(a.type,this,a.clientX,a.clientY,a.f,a.left,a.top,a.i))};g.wg=function(a){this.v=a||new B(NaN,NaN,NaN,NaN)};g.xf=function(){this.f=this.c.Pf();this.g=this.c.Qf()}; |
||||
g.fe=function(){this.b[0]=this.f;this.b[1]=this.g;if(!isNaN(this.v.left)||!isNaN(this.v.top)){var a=this.c.parent().ca();a&&Fe(this.c.parent()).transform(this.b,0,this.b,0,1);var b=this.v,c=isNaN(b.left)?null:b.left,d=isNaN(b.width)?0:b.width,e=isNaN(b.top)?null:b.top,b=isNaN(b.height)?0:b.height,d=d-this.c.De(),b=b-this.c.Ce(),b=null!=e?e+b:Infinity,e=null!=e?e:-Infinity;this.b[0]=Math.min(null!=c?c+d:Infinity,Math.max(null!=c?c:-Infinity,this.b[0]));this.b[1]=Math.min(b,Math.max(e,this.b[1]));a&& |
||||
a.transform(this.b,0,this.b,0,1)}return this.b[0]};g.he=function(){return this.b[1]};g.Jf=function(a,b){var c=Fe(this.c.parent());if(c){var d=[a,b];c.transform(d,0,d,0,1);a=d[0];b=d[1]}this.c.nc(a,b)};function I(){je.call(this);this.Ob={};this.l(Ge)}z(I,je);var Ge=4294967295;g=I.prototype;g.Cc=!1;g.gd=!1;g.ab=null;g.Vc=null;g.Wa=null;g.Tc=null;g.Hd=!1;g.ae=null;g.ac=null;g.Uc=null;g.Y=null;g.Lb=null;g.Ae=!0;g.la=null;g.Lf=!1;g.F=null;g.Ec=null;g.Be=0;g.ba=506631;g.Ha=0;g.id=function(a){if(r(a))return a=a||"",this.dc!=a&&(this.dc=a,this.l(2048)),this;r(this.dc)||this.id(Ob(Mb.oa(),this));return this.dc};g.u=function(){var a=this.parent();return a?a.u():null};g.j=function(){return this.Uc}; |
||||
g.parent=function(a){if(r(a)){if(a){if(a!=this.Y){var b=this.u(),b=b&&b!=a.u();a.ib(this);b&&this.ud()}}else this.Pa();return this}return this.Y};g.ud=function(){var a=this.Ea();a&&a.id(null);this.l(536)};g.pd=function(){return!!this.Y};g.Pa=function(){this.Y&&this.Y.removeChild(this);return this};g.Ig=function(a){return r(a)?(this.Vc!=a&&(this.Vc=a,this.l(65536)),this):this.Vc};g.Hg=function(a){return r(a)?(this.Tc!=a&&(this.Tc=a,this.l(131072)),this):this.Tc}; |
||||
g.vf=function(a,b){if(r(b))return this.Ob[a]!==b&&(this.Ob[a]=b,this.l(262144)),this;var c;a in this.Ob?c=this.Ob[a]:(J(),c=(c=this.Uc)?c.getAttribute(a):void 0);return c};g.lc=function(a){return r(a)?(this.ae=a,this.Bc(),this):this.ae};g.Bc=function(){this.l(4096)};g.D=function(a){return!!(this.Ha&a)};g.l=function(a){if(a&=this.ba)this.Ha|=a,this.Y&&this.Y.l(64),a=this.u(),!a||a.ea()||a.Ub||this.Hd||this.S()};function K(a,b){a.Ha&=~b} |
||||
function He(a,b){a.Y&&a.Y==b||(a.Lb?a.Lb==b&&(a.Lb=null):a.Lb=a.Y,a.Y=b,a.Rc=b);return a}function Ie(a,b){a.Lb&&(b&&a.Lb.Ic(a),a.Lb=null);a.M&&a.Dc()}g.Sa=u;g.Da=function(){this.Wd=this.Ec=null;this.O();this.l(4);Je(this)};g.mb=function(){this.Ec=null;this.O();J().Hc()&&this.l(256);Je(this)};function Je(a){J().ie()&&(a.la?(a.Y&&a.Y.yc(),a.l(512)):a.Y&&a.Y.yc())}g.ca=function(){if(!this.Ec){var a=this.Y?this.Y.ca():null;this.Ec=mb(a,this.F)}return this.Ec}; |
||||
function Fe(a){if(!a.Wd){var b=a.ca();a.Wd=b?wb(b):null}return a.Wd}g.rb=function(a,b,c){this.Sa();a=xb(cb(a),b||0,c||0);if(this.F){b=this.F;c=b.b;var d=b.c;b.b=a.b*c+a.f*d;b.c=a.c*c+a.g*d;c=b.f;d=b.g;b.f=a.b*c+a.f*d;b.g=a.c*c+a.g*d;c=b.h;d=b.i;b.h=a.b*c+a.f*d+a.h;b.i=a.c*c+a.g*d+a.i}else this.F=a;this.Da();return this};g.Jc=function(a,b){var c=yb(this.qa(),b||"center");return this.rb(a,c[0],c[1])};g.zd=function(a,b,c){return this.rb(a-this.$b(),b,c)}; |
||||
g.Ad=function(a,b){return this.Jc(a-this.$b(),b)};g.Tb=function(a,b){this.Sa();this.F?ub(this.F,a,b):this.F=(new tb).setTransform(1,0,0,1,a,b);this.Da();return this};g.nc=function(a,b){var c=[a,b,this.Fd(),this.Gd()];this.F&&wb(this.F).transform(c,0,c,0,2);return this.Tb(c[0]-c[2],c[1]-c[3])};g.ri=function(a,b){this.Sa();if(this.F){var c=this.F.h,d=this.F.i;if(a==c&&b==d)return this;var e=this.F;e.h+=a-c;e.i+=b-d}else this.F=(new tb).setTransform(1,0,0,1,a,b);this.Da();return this}; |
||||
g.mc=function(a,b,c,d){this.Sa();this.F||(this.F=new tb);var e=this.F;e.b*=a;e.f*=a;e.h*=a;e.c*=b;e.g*=b;e.i*=b;e=this.F;e.h+=(c||0)*(1-a);e.i+=(d||0)*(1-b);this.Da();return this};g.yd=function(a,b,c){c=yb(this.qa(),c||"center");return this.mc(a,b,c[0],c[1])};g.$c=function(a,b,c,d,e,f){this.Sa();this.F?nb(this.F,new tb(a,b,c,d,e,f)):this.F=new tb(a,b,c,d,e,f);this.Da();return this};g.Lc=function(a,b,c,d,e,f){this.Sa();this.F?this.F.setTransform(a,b,c,d,e,f):this.F=new tb(a,b,c,d,e,f);this.Da();return this}; |
||||
g.$b=function(){return sb(this.F)};g.nd=function(){return this.F?[this.F.b,this.F.c,this.F.f,this.F.g,this.F.h,this.F.i]:[1,0,0,1,0,0]};function Ke(a,b){var c=a.u(),d;if(d=c)d=Le,d=d==Le||2==d||3==d?0<c.wc(1):!0;if(d||b)a.Uc=a.La(),Me(a),K(a,1)}g.La=function(){return null};g.S=function(){this.Hd=!0;if(this.M||!this.u())return this;if(this.D(1)){Ke(this);if(this.D(1))return this;this.Cc&&this.hd(this.Cc)}this.wf();this.V();this.Hd=!1;return this};g.wf=function(){}; |
||||
g.V=function(){if(this.D(262144)){var a=J(),b=this.Ob,c=this.j();if(c&&ha(b))for(var d in b){var e=b[d];null===e?c.removeAttribute(d):a.o(c,d,e)}this.Ob={};K(this,262144)}this.D(2)&&(J().Cg(this),K(this,2));this.D(4096)&&this.hg();this.D(8192)&&(J().zg(this),K(this,8192));(this.D(4)||this.D(256))&&this.$a();this.D(512)&&(J().me(this),K(this,512));this.D(32768)&&(J().pg(this,this.gd),K(this,32768));this.D(65536)&&(J().ue(this,this.Vc),K(this,65536));this.D(131072)&&(J().pe(this,this.Tc),K(this,131072)); |
||||
this.D(2048)&&(a=J(),Ne(a,this.j(),this.id()),K(this,2048))};g.$a=function(){J().Mb(this);K(this,4);K(this,256)};g.hg=function(){J().og(this,this.ae||this.ac);K(this,4096)};g.Kf=function(a){if(!r(a))return this.Lf;this.Lf=!!a;this.l(8192);return this};g.G=function(a){w(a)?a=a.toLowerCase():"type"in a&&(a.type=String(a.type).toLowerCase());return I.m.G.call(this,a)};g.R=function(a,b,c,d){return I.m.R.call(this,String(a).toLowerCase(),b,c,d)}; |
||||
g.kb=function(a,b,c,d){return I.m.kb.call(this,String(a).toLowerCase(),b,c,d)};g.ua=function(a,b,c,d){return I.m.ua.call(this,String(a).toLowerCase(),b,c,d)};g.nb=function(a){r(a)&&(a=String(a).toLowerCase());return I.m.nb.call(this,a)};g.oc=function(a){return r(a)?(a=+a||0,this.Be!=a&&(this.Be=a,this.Y&&this.Y.l(128)),this):this.Be||0};g.sb=function(a){return r(a)?(a=!!a,this.Ae!=a&&(this.Ae=a,this.l(2)),this):this.Ae}; |
||||
g.Hh=function(a){return r(a)?(a=!!a,this.gd!=a&&(this.gd=null!=a?a:!0,this.l(32768)),this):this.gd}; |
||||
g.Ea=function(a){if(!arguments.length)return this.la;var b="none"==a?null:a;if(!this.la&&!b||this.la&&this.la===b)return this;!b||b instanceof Oe?this.la=b||null:b instanceof Pe&&b.pd()&&b.parent()instanceof Oe?(this.la&&!this.la.M&&Ra(this.la.f,this),this.la=b.parent(),b=this.la.f,0<=Ma(b,this)||b.push(this)):this.la?this.la.fb(b):(this.la=Qe(b),b=this.la.f,0<=Ma(b,this)||b.push(this));this.Y&&this.Y.yc();this.l(512);return this};g.xc=null;g.Fd=function(){return this.qa().left};g.Gd=function(){return this.qa().top}; |
||||
g.De=function(){return this.qa().width};g.Ce=function(){return this.qa().height};g.qa=function(){return this.xc||this.Xa(this.F)};g.jc=null;g.Pf=function(){return this.Fc().left};g.Qf=function(){return this.Fc().top};g.Mh=function(){return this.Fc().width};g.Lh=function(){return this.Fc().height};g.Fc=function(){return this.jc||this.Xa(this.ca())}; |
||||
g.Xa=function(a){var b=a==this.F;if(this.xc&&b)a=this.xc.clone();else{var c=a==this.ca();this.jc&&c?a=this.jc.clone():(a=this.Wb(a),b&&(this.xc=a.clone()),c&&(this.jc=a.clone()))}return a};g.Wb=function(a){return ob(this.na(),a)};g.na=function(){return this.Xa(null)};g.O=function(){this.jc=this.xc=null};g.hd=function(a){return null!=a?((this.Cc=a)&&!this.D(1)?(a=a instanceof B?this.Cc:null,this.fc||(this.fc=new Ee(this)),this.fc.jd=!0,this.fc.wg(a)):this.fc&&(this.fc.jd=!1),this):this.Cc}; |
||||
g.H=function(a){"id"in a&&this.id(a.id);if("clip"in a){var b=Qe();b.H(a.clip);this.Ea(b)}"drag"in a&&(b=a.drag,this.hd("boolean"==typeof b?b:new B(b.left,b.top,b.width,b.height)));"cursor"in a&&this.lc(a.cursor);"transformation"in a&&this.Lc.apply(this,a.transformation)};g.N=function(){var a={};this.dc&&(a.id=this.dc);var b=this.Ea();b&&(a.clip=b.N());(b=this.lc())&&(a.cursor=b);(b=this.hd())&&(a.drag=b);(b=this.F)&&(a.transformation=[b.b,b.c,b.f,b.b,b.h,b.i]);return a}; |
||||
g.A=function(){this.pd()?this.Pa():this.Dc();I.m.A.call(this)};g.Dc=function(){Dc(this.Ih);this.Ih=null;He(this,null);Re(this);this.F=this.la=this.pb=this.Uc=null};var L=I.prototype;L.id=L.id;L.visible=L.sb;L.disableStrokeScaling=L.Hh;L.domElement=L.j;L.parent=L.parent;L.hasParent=L.pd;L.remove=L.Pa;L.attr=L.vf;L.title=L.Ig;L.desc=L.Hg;L.getStage=L.u;L.cursor=L.lc;L.disablePointerEvents=L.Kf;L.rotate=L.rb;L.rotateByAnchor=L.Jc;L.setRotation=L.zd;L.setRotationByAnchor=L.Ad;L.translate=L.Tb; |
||||
L.setTranslation=L.ri;L.setPosition=L.nc;L.scale=L.mc;L.scaleByAnchor=L.yd;L.appendTransformationMatrix=L.$c;L.setTransformationMatrix=L.Lc;L.getRotationAngle=L.$b;L.getTransformationMatrix=L.nd;L.clip=L.Ea;L.zIndex=L.oc;L.getX=L.Fd;L.getY=L.Gd;L.getWidth=L.De;L.getHeight=L.Ce;L.getBounds=L.qa;L.getAbsoluteX=L.Pf;L.getAbsoluteY=L.Qf;L.getAbsoluteWidth=L.Mh;L.getAbsoluteHeight=L.Lh;L.getAbsoluteBounds=L.Fc;L.listen=L.R;L.listenOnce=L.kb;L.unlisten=L.ua;L.unlistenByKey=L.Ed;L.removeAllListeners=L.nb; |
||||
L.drag=L.hd;L.dispose=L.za;function Pe(){this.g="none";this.h="black";this.C=0;I.call(this)}z(Pe,I);g=Pe.prototype;g.ba=I.prototype.ba|24;g.Qa=function(a,b,c,d,e,f,h){if(!r(a))return this.g;var k=Ab.apply(this,arguments);this.g!=k&&(this.g=k,this.C=this.C&2|!(!k.mode&&!k.src),this.l(8));return this};g.vb=function(a,b,c,d,e){if(!r(a))return this.h;var f=Ib.apply(this,arguments);this.h!=f&&(this.h=f,this.C=this.C&1|f.mode<<1,this.l(16));return this}; |
||||
g.wi=function(a){if(r(a))return w(this.h)?this.h={color:this.h,thickness:isNaN(a)?1:+a}:this.h.thickness=isNaN(a)?1:+a,this.l(16),this;if(w(this.h))a=1;else{a=this.h;var b;a=a&&"none"!=a?isNaN(b=a.thickness)||null===b?1:b:0}return a};g.wf=function(){this.C&&this.D(32)&&(this.C&1&&this.l(8),this.C&2&&this.l(16))};g.V=function(){Pe.m.V.call(this);if(this.D(8)||this.D(16))J().tf(this),K(this,8),K(this,16)}; |
||||
g.H=function(a){var b;if("fill"in a){var c=a.fill;b=c.type;"pattern"==b?(b=c.bounds,b=Gb(new B(b.left,b.top,b.width,b.height)),b.H(c)):"hatchFill"==b?b=Lb(c.hatchType,c.color,c.thickness,c.size):(ha(c)&&"type"in c&&delete c.type,b=c);this.Qa(b)}"stroke"in a&&this.vb(a.stroke);Pe.m.H.call(this,a)}; |
||||
g.N=function(){var a=Pe.m.N.call(this);if(this.g){var b;this.g instanceof Se?b={type:"hatchFill",hatchType:this.g.type,color:this.g.color,thickness:this.g.J,size:this.g.size}:this.g instanceof Fb?b=this.g.N():ha(this.g)&&"keys"in this.g?"cx"in this.g&&"cy"in this.g?(b=sc(this.g),b.type="RadialGradientFill"):(b=sc(this.g),b.type="LinearGradientFill"):b=this.g;b&&(a.fill=b)}this.h?a.stroke=this.h:ha(this.h)&&"keys"in this.h&&("cx"in this.h&&"cy"in this.h?(b=sc(this.h),b.type="RadialGradientFill"):(b= |
||||
sc(this.h),b.type="LinearGradientFill"),a.stroke=b);return a};g.A=function(){delete this.g;delete this.h;Pe.m.A.call(this)};var Te=Pe.prototype;Te.stroke=Te.vb;Te.strokeThickness=Te.wi;Te.fill=Te.Qa;Te.attr=Te.vf;function Ue(a,b,c,d){this.b=new fb(a||0,b||0);this.c=c||0;this.f=d||0;Pe.call(this)}z(Ue,Pe);g=Ue.prototype;g.ba=Pe.prototype.ba|32;g.fa=function(){return"ellipse"};g.yb=function(a){return r(a)?(this.b.x!=a&&(this.b.x=a,this.O(),this.l(32)),this):this.b.x};g.zb=function(a){return r(a)?(this.b.y!=a&&(this.b.y=a,this.O(),this.l(32)),this):this.b.y};g.Ch=function(a){if(r(a)){var b=this.b;b==a||b&&a&&b.x==a.x&&b.y==a.y||(this.b.x=a.x,this.b.y=a.y,this.O(),this.l(32));return this}return this.b.clone()}; |
||||
g.Fa=function(a){return r(a)?(this.c!=a&&(this.c=a,this.O(),this.l(32)),this):this.c};g.gb=function(a){return r(a)?(this.f!=a&&(this.f=a,this.O(),this.l(32)),this):this.f};g.oi=function(a,b){this.Fa(a);this.gb(b);return this};g.na=function(){return new B(this.b.x-this.c,this.b.y-this.f,this.c+this.c,this.f+this.f)};g.Wb=function(a){if(a){var b=kb(this.b.x,this.b.y,this.c,this.f,0,360,!0);a.transform(b,0,b,0,b.length/2);a=lb.apply(null,b)}else a=this.na();return a};g.La=function(){return J().Cf()}; |
||||
g.V=function(){this.D(32)&&(this.Ee(),this.Qa()&&this.Qa().src&&this.l(8));Ue.m.V.call(this)};g.$a=function(){J().qg(this);K(this,4);K(this,256)};g.Ee=function(){J().qe(this);K(this,32)};g.H=function(a){this.yb(a.cx).zb(a.cy);"rx"in a&&this.Fa(a.rx);"ry"in a&&this.gb(a.ry);Ue.m.H.call(this,a)};g.N=function(){var a=Ue.m.N.call(this);a.type="ellipse";a.cx=this.yb();a.cy=this.zb();a.rx=this.Fa();a.ry=this.gb();return a};g.A=function(){this.O();this.b=null;Ue.m.A.call(this)}; |
||||
x("acgraph.vector.Ellipse",Ue);var Ve=Ue.prototype;Ve.center=Ve.Ch;Ve.centerX=Ve.yb;Ve.centerY=Ve.zb;Ve.radiusX=Ve.Fa;Ve.radiusY=Ve.gb;Ve.setRadius=Ve.oi;function We(a,b,c){Ue.call(this,a,b,c,c)}z(We,Ue);g=We.prototype;g.fa=function(){return"circle"};g.eg=function(a){return null!=a?(this.Fa(a),this.gb(a),this):this.Fa()};g.La=function(){return J().Af()};g.Ee=function(){J().ng(this);K(this,32)};g.H=function(a){this.Fa(a.radius);We.m.H.call(this,a)};g.N=function(){var a=We.m.N.call(this);a.type="circle";delete a.rx;delete a.ry;a.radius=this.Fa();return a};x("acgraph.vector.Circle",We);var Xe=We.prototype;Xe.radius=Xe.eg;function Oe(a,b,c,d,e){zc.call(this);this.c=a;this.g=!1;this.f=[];this.b=this.h=null;this.fb.apply(this,Xa(arguments,1))}z(Oe,zc);function Ye(a,b){if(r(b)){a.c=b;if(a.g){var c=a.c;c.ea()?c.i.push(a):a.S()}return a}return a.c}var bf={rect:Ze,circle:We,ellipse:Ue,path:$e};g=Oe.prototype; |
||||
g.fb=function(a,b,c,d){if(arguments.length){if(a instanceof Pe)if(this.b){var e=!1,f;for(f in bf){var h=bf[f];if(this.b instanceof h&&a instanceof h){e=!0;break}}e?this.b.H(a.N()):(this.b.parent(null),this.b=a,this.b.parent(this))}else this.b=a,this.b.parent(this);else{var k;a instanceof B?(e=a.left,f=a.top,h=a.width,k=a.height):ea(a)?(e=null!=a[0]?a[0]:0,f=null!=a[1]?a[1]:0,h=null!=a[2]?a[2]:0,k=null!=a[3]?a[3]:0):ha(a)?(e=null!=a.left?a.left:0,f=null!=a.top?a.top:0,h=null!=a.width?a.width:0,k=null!= |
||||
a.height?a.height:0):(e=null!=a?a:0,f=null!=b?b:0,h=null!=c?c:0,k=null!=d?d:0);this.b?this.b instanceof Ze?this.b.we(e).xe(f).ve(h).re(k):(this.b.parent(null),this.b=cf(e,f,h,k),this.b.parent(this)):(this.b=cf(e,f,h,k),this.b.parent(this))}return this}return this.b};function df(a){if(!a.g&&(a.g=!0,a.c)){var b=a.c;b.ea()?b.i.push(a):a.S()}}g.id=function(a){return r(a)?(this.h=a,this):this.h}; |
||||
g.S=function(){this.g=!1;if(this.h){J();var a=this.fb();if(a.j())this.fb().S();else{var b=ef(this.u().c,this);a.S();b.appendChild(a.j())}}};g.N=function(){return this.b.N()};g.H=function(a){var b=bf[a.type];b&&(b=new b,b.H(a),this.fb(b))};g.ib=function(a){a.Pa();He(a,this);df(this);return this};g.removeChild=function(a){He(a,null);var b=a.j();b&&F(b);df(this);return a};g.ca=function(){return null};g.Ic=function(){};g.u=function(){return Ye(this)};g.l=function(){df(this)}; |
||||
g.A=function(){this.c&&Ra(this.c.i,this);J().Mf(this);this.b.za();delete this.c;delete this.h;delete this.f;delete this.g;delete this.b;Oe.m.A.call(this)};var ff=Oe.prototype;ff.shape=ff.fb;ff.dispose=ff.za;function M(){this.f=[];this.c=[];this.i=[];Pe.call(this)}z(M,Pe);var gf=[,2,2,6,6,2];function hf(a,b,c,d,e,f){var h=0;e=e||null;for(var k=0,l=b.length;k<l;k++){var m=b[k],p=gf[m]*c[k];f&&1!=m?a.call(e,m,d.slice(h-2,h+p)):a.call(e,m,d.slice(h,h+p));h+=p}}g=M.prototype;g.ce=function(a,b,c){hf(a,this.f,this.c,this.i,b,c)};g.Jh=function(a,b,c){var d;if(this.Ka)d=this.Ka;else{var e=this.ca();e&&!pb(e)?(d=[],jf(this),e.transform(this.i,0,d,0,this.i.length/2)):d=this.i}hf(a,this.f,this.c,d,b,c)}; |
||||
g.ba=Pe.prototype.ba|32;g.Ua=null;g.K=null;g.ye=!0;g.Ka=null;g.fa=function(){return"path"};g.Ib=function(){return!this.f.length};function jf(a){if(!a.ye){var b=a.i,c=a.f,d=a.c;a.i=[];a.f=[];a.c=[];kf(a);hf(na(function(a,b){lf[a].apply(this,b)},a),c,d,b);a.l(32)}}function mf(a){a.Ib()||(kf(a),a.l(32));return a}g.sd=function(a,b){1==La(this.f)?this.i.length-=2:(this.f.push(1),this.c.push(1));this.i.push(a,b);this.K=this.Ua=[a,b];this.Ka=null;this.l(32);return this}; |
||||
g.Ja=function(a,b,c){var d=La(this.f);if(null==d)throw vc(9);2!=d&&(this.f.push(2),this.c.push(0));for(d=0;d<arguments.length;d+=2)a=arguments[d],b=arguments[d+1],this.i.push(a,b);this.c[this.c.length-1]+=d/2;this.K=[a,b];this.O();this.Ka=null;this.l(32);return this}; |
||||
g.fd=function(a,b,c,d,e,f,h){var k=La(this.f);if(null==k)throw vc(9);3!=k&&(this.f.push(3),this.c.push(0));for(k=0;k<arguments.length;k+=6){var l=arguments[k+4],m=arguments[k+5];this.i.push(arguments[k],arguments[k+1],arguments[k+2],arguments[k+3],l,m)}this.c[this.c.length-1]+=k/6;this.K=[l,m];this.O();this.Ka=null;this.l(32);return this}; |
||||
g.ii=function(a,b,c,d,e){if(!this.f.length)throw vc(9);for(var f=this.K[0],h=this.K[1],k=0;k<arguments.length;k+=4){a=arguments[k];b=arguments[k+1];var l=arguments[k+2],m=arguments[k+3];this.fd(f+2*(a-f)/3,h+2*(b-h)/3,a+(l-a)/3,b+(m-b)/3,l,m);f=l;h=m}return this}; |
||||
function nf(a,b,c,d,e,f,h){if(!d||!e)return a.Ja(b,c);if(!a.f.length)throw vc(9);var k=a.K[0],l=a.K[1];if(k==b&&l==c)return a;d=Math.abs(d);e=Math.abs(e);b=(k-b)/2;c=(l-c)/2;var l=b*b,k=c*c,m=d*d,p=e*e,t=l/m+k/p;1<t&&(t=Math.sqrt(t),d*=t,e*=t,m=d*d,p=e*e);l=(m*p-m*k-p*l)/(m*k+p*l);0>l&&(l=0);l=Math.sqrt(l);f==h&&(l=-l);f=l*d*c/e;k=-l*e*b/d;l=rb(1,0,(b-f)/d,(c-k)/e);b=rb((b-f)/d,(c-k)/e,(-b-f)/d,(-c-k)/e)%360;!h&&0<b?b-=360:h&&0>b&&(b+=360);return of(a,d,e,l,b)} |
||||
function of(a,b,c,d,e){if(!a.f.length)throw vc(9);if(!e)return a;var f=a.K[0]-db(d,b),h=a.K[1]-eb(d,c),k,l,m;m=Math.ceil(Math.abs(e)/359.999-2E-15);for(var p=e/m,t=0;t<m;t++)e=d+p,k=f+db(e,b),l=h+eb(e,c),a.i.push(b,c,d,p,k,l),a.f.push(4),a.c.push(1),d=e;a.ye=!1;a.K=[k,l];a.O();a.Ka=null;a.l(32);return a}g.uf=function(a,b,c,d){a=kb(this.K[0]-db(c,a),this.K[1]-eb(c,b),a,b,c,d);this.fd.apply(this,a);this.O();this.Ka=null;this.l(32);return this}; |
||||
g.Xd=function(){var a=La(this.f);if(null==a)throw vc(9);5!=a&&(this.i.push(this.Ua[0],this.Ua[1]),this.f.push(5),this.c.push(1),this.K=this.Ua,this.l(32));return this};g.Wb=function(a){var b;this.K?(a&&!pb(a)?(b=[this.K[0],this.K[1]],a.transform(b,0,b,0,1),b=new B(b[0],b[1],0,0),jf(this)):b=new B(this.K[0],this.K[1],0,0),this.ce(function(a,b){tc(pf[a],b,this)},{rect:b,transform:a},!0)):b=new B(NaN,NaN,NaN,NaN);return b};g.Da=function(){M.m.Da.call(this);this.Ka=null}; |
||||
g.mb=function(){M.m.mb.call(this);this.Ka=null};g.$a=function(){J().xg(this);K(this,4);K(this,256)};g.La=function(){return J().Gf()};g.V=function(){M.m.V.call(this);this.D(32)&&(J().se(this),K(this,32))};var lf,qf=[];qf[1]=M.prototype.sd;qf[2]=M.prototype.Ja;qf[5]=M.prototype.Xd;qf[3]=M.prototype.fd;qf[4]=M.prototype.uf;lf=qf;var pf,rf=[];rf[1]=u; |
||||
rf[2]=function(a){var b=new B(0,0,0,0);if(this.transform){var c=arguments;this.transform.transform(c,0,c,0,Math.floor(arguments.length/2))}for(var c=0,d=arguments.length;c<d;c+=2)b.left=arguments[c],b.top=arguments[c+1],jb(this.rect,b)};rf[5]=u;rf[3]=function(a){if(this.transform){var b=arguments;this.transform.transform(b,0,b,0,Math.floor(arguments.length/2))}jb(this.rect,lb.apply(null,arguments))}; |
||||
rf[4]=function(a,b,c,d,e,f,h,k){var l=new B(0,0,0,0);h=[a,h];k=[b,k];a-=db(e,c);b-=eb(e,d);var m=0<f?90:-90,p=90*(0<f?Math.ceil(e/90):Math.floor(e/90));for(e+=f;p<e^0>f;p+=m)switch((Math.floor(p/90)+4)%4){case 0:h.push(a+c);break;case 1:k.push(b+d);break;case 2:h.push(a-c);break;case 3:k.push(b-d)}l.left=Math.min.apply(null,h);l.width=Math.max.apply(null,h)-l.left;l.top=Math.min.apply(null,k);l.height=Math.max.apply(null,k)-l.top;jb(this.rect,l)};pf=rf; |
||||
M.prototype.Qc=function(){var a=0;if(this.Ib())return a;var b=[];this.ce(function(c,d){if(1!=c){var e,f=Xa(b,b.length-2);4==c?(e=6,d=kb(f[0]-db(d[2],d[0]),f[1]-eb(d[2],d[1]),d[0],d[1],d[2],d[3])):2==c?e=2:3==c&&(e=6);for(var h=0,k=d.length-(e-1);h<k;h+=e){Array.prototype.push.apply(f,Xa(d,h,h+e));var l=a,m=f,p=m.length,t=p/2-1,q=[],v;for(v=0;v<p;v+=2)q.push({x:m[v],y:m[v+1]});m=[];for(p=0;100>=p;p++){v=p/100;var D={x:0,y:0};if(v)if(1===v)m.push(q[t]);else{var y=q,G=1-v;if(1===t)v={x:G*y[0].x+v*y[1].x, |
||||
y:G*y[0].y+v*y[1].y},m.push(v);else if(4>t){var R=G*G,N=v*v,X,ua,O,pa=0;2===t?(y=[y[0],y[1],y[2],D],X=R,ua=G*v*2,O=N):3===t&&(X=R*G,ua=R*v*3,O=G*N*3,pa=v*N);v={x:X*y[0].x+ua*y[1].x+O*y[2].x+pa*y[3].x,y:X*y[0].y+ua*y[1].y+O*y[2].y+pa*y[3].y};m.push(v)}else{for(y=JSON.parse(JSON.stringify(q));1<y.length;){for(D=0;D<y.length-1;D++)y[D]={x:y[D].x+(y[D+1].x-y[D].x)*v,y:y[D].y+(y[D+1].y-y[D].y)*v};y.splice(y.length-1,1)}m.push(y[0])}}else m.push(q[0])}for(D=t=0;D<m.length-1;D++)p=m[D],v=m[D+1],q=v.x-p.x, |
||||
p=v.y-p.y,t+=Math.sqrt(q*q+p*p);a=l+(100*t|0)/100;f=Xa(f,f.length-2)}}tc(Array.prototype.push,d,b)});return a};function sf(a,b){var c=b||{};c.closePoint=a.Ua?a.Ua.slice():[];c.currentPoint=a.K?a.K.slice():[];c.segments=a.f.slice();c.count=a.c.slice();c.arguments=a.i.slice();return c}M.prototype.H=function(a){this.Ua=a.closePoint;this.K=a.currentPoint;this.f=a.segments;this.c=a.count;this.i=a.arguments;this.l(32);M.m.H.call(this,a)}; |
||||
M.prototype.N=function(){var a=M.m.N.call(this);a.type="path";return a=sf(this,a)};M.prototype.A=function(){this.K=this.Ua=null;this.O();this.Ka=null;delete this.f;delete this.c;delete this.i;M.m.A.call(this)};function kf(a){a.f.length=0;a.c.length=0;a.i.length=0;a.O();a.Ka=null;delete a.Ua;delete a.K;delete a.ye};function $e(){M.call(this)}z($e,M);g=$e.prototype;g.clear=function(){return mf(this)};g.va=function(a,b){return this.sd(a,b)};g.lineTo=function(a,b,c){return M.prototype.Ja.apply(this,arguments)};g.Fh=function(a,b,c,d,e,f,h){return M.prototype.fd.apply(this,arguments)};g.Pd=function(a,b,c,d,e){return M.prototype.ii.apply(this,arguments)};g.zc=function(a,b,c,d,e,f,h){a+=db(e,c);b+=eb(e,d);this.K&&this.K[0]==a&&this.K[1]==b||(h?this.Ja(a,b):this.sd(a,b));return of(this,c,d,e,f)}; |
||||
g.Ra=function(a,b,c,d,e,f){return nf(this,a,b,c,d,e,f)};g.Kg=function(a,b,c,d){return of(this,a,b,c,d)};g.zh=function(a,b,c,d){return this.uf(a,b,c,d)};g.close=function(){return this.Xd()};g.Qh=function(){return this.K?new fb(this.K[0],this.K[1]):null};var P=$e.prototype;x("acgraph.vector.Path",$e);P.moveTo=P.va;P.lineTo=P.lineTo;P.curveTo=P.Fh;P.quadraticCurveTo=P.Pd;P.arcTo=P.Kg;P.arcToByEndPoint=P.Ra;P.arcToAsCurves=P.zh;P.circularArc=P.zc;P.close=P.close;P.clear=P.clear;P.getCurrentPoint=P.Qh; |
||||
P.getLength=P.Qc;function Q(){this.b=[];this.f=[];I.call(this)}z(Q,I);g=Q.prototype;g.fa=function(){return"layer"};g.ba=I.prototype.ba|224;g.ud=function(){for(var a=0;a<this.b.length;a++)this.b[a].ud();Q.m.ud.call(this)};g.l=function(a){Q.m.l.call(this,a);a&192&&this.O()};g.ib=function(a){return this.Id(a,this.b.length)};g.Id=function(a,b){a.Pa();b=A(b,0,this.b.length);Wa(this.b,b,0,a);He(a,this);a.Ha&&this.l(64);this.l(128);a.mb();var c=this.lc()||this.ac;a.ac!=c&&(a.ac=c,a.Bc());return this}; |
||||
g.Je=function(a){return this.b[a]||null};g.pc=function(a){return Ma(this.b,a)};g.removeChild=function(a){return this.Nd(this.pc(a))};g.Nd=function(a){var b=null;0<=a&&a<this.b.length&&(b=this.M?this.b[a]:Wa(this.b,a,1)[0],He(b,null),this.l(128));return b};g.Oe=function(){for(var a=0;a<this.b.length;a++)He(this.b[a],null);a=this.b;this.M||(this.b=[]);this.l(128);return a};g.Ye=function(a,b){return this.Od(this.pc(a),this.pc(b))}; |
||||
g.Od=function(a,b){if(0>a||a>=this.b.length||0>b||b>=this.b.length)throw vc(8);if(a!=b){var c=this.b[a];this.b[a]=this.b[b];this.b[b]=c;this.l(128)}return this};g.Le=function(a){return!!a&&0<=Ma(this.b,a)};g.Jg=function(){return this.b.length};g.Ld=function(a,b){r(b)||(b=this);Na(this.b,a,b);return this};g.Md=function(){var a=tf();a.parent(this);return a};g.df=function(){var a;a=new uf(void 0);a.parent(this);return a};g.text=function(a,b,c,d){a=vf(a,b);d&&a.style(d);c&&a.text(c);a.parent(this);return a}; |
||||
g.Me=function(a,b,c,d){a=vf(a,b);d&&a.style(d);c&&a.Rd(c);a.parent(this);return a};g.rect=function(a,b,c,d){a=cf(a,b,c,d);a.parent(this);return a};g.tb=function(a,b,c,d,e){a=wf(a,b,c,d,e);a.parent(this);return a};g.Re=function(a,b){var c=this.B();Wa(arguments,0,0,c);return xf.apply(this,arguments).parent(this)};g.Qe=function(a,b){var c=this.B();Wa(arguments,0,0,c);return yf.apply(this,arguments).parent(this)};g.cf=function(a,b){var c=this.B();Wa(arguments,0,0,c);return zf.apply(this,arguments).parent(this)}; |
||||
g.Jd=function(a,b,c){a=Af(a,b,c);a.parent(this);return a};g.Kd=function(a,b,c,d){a=Bf(a,b,c,d);a.parent(this);return a};g.B=function(){return Cf().parent(this)};g.Se=function(a,b,c,d,e,f,h){return Df(this.B(),a,b,c,d,e,f,h).parent(this)};g.Ue=function(a,b,c){return Ef(this.B(),a,b,c).parent(this)};g.Ve=function(a,b,c){return Ff(this.B(),a,b,c).parent(this)};g.We=function(a,b,c){return Gf(this.B(),a,b,c).parent(this)};g.Xe=function(a,b,c){return Hf(this.B(),a,b,c).parent(this)}; |
||||
g.Te=function(a,b,c){return If(this.B(),a,b,c).parent(this)};g.bf=function(a,b,c){return Jf(this.B(),a,b,c).parent(this)};g.Ze=function(a,b,c){return Kf(this.B(),a,b,c).parent(this)};g.af=function(a,b,c){return Lf(this.B(),a,b,c).parent(this)};g.$e=function(a,b,c){return Mf(this.B(),a,b,c).parent(this)};g.He=function(a,b,c){return Nf(this.B(),a,b,c).parent(this)};g.Fe=function(a,b,c){return Of(this.B(),a,b,c).parent(this)};g.Ge=function(a,b,c){return Pf(this.B(),a,b,c).parent(this)}; |
||||
g.Ke=function(a,b,c){return Qf(this.B(),a,b,c).parent(this)};g.ef=function(a,b,c){return Rf(this.B(),a,b,c).parent(this)};g.Ne=function(a,b,c,d,e){return Sf(this.B(),a,b,c,d,e).parent(this)};g.Ie=function(a,b,c,d,e,f){return Tf(this.B(),a,b,c,d,e,f).parent(this)};g.La=function(){return J().Ac()}; |
||||
g.V=function(){this.D(32)&&this.Pe();var a;a=this.u();a=a.wc(Math.floor(Math.max(500-a.Ga,0)/3));this.D(64)&&Uf(this);var b=this.u();b.Ga-=a-0;if(this.D(128)&&(a=this.u().wc(this.b.length+this.f.length+1),b=Vf(this,a),b<a)){var c=this.u();c.Ga-=a-b}this.D(64)&&Uf(this);Q.m.V.call(this)};g.Bc=function(){Q.m.Bc.call(this);for(var a=this.b.length;a--;)this.b[a].ac=this.lc()||this.ac,this.b[a].Bc()};g.hg=function(){K(this,4096)}; |
||||
function Uf(a){Pa(a.b,function(a,c){c.Ha&&c.S();return a||!!c.Ha},!1)||K(a,64)} |
||||
function Vf(a,b){function c(a){var b=a.j();b&&(F(b),t++);Ie(a,!1);y.push(m)}function d(a){var b=a.j();b?(e.appendChild(b),t++,D.push(k),Ie(a,!0)):v=!1;return!!e}var e=a.j(),f,h,k,l,m,p,t=0;if(!a.g)for(a.g={},k=0,l=a.b.length;k<l;k++)a.g[ia(a.b[k])]=!0;var q=!1,v=!0,D=[],y=[];f=!0;k=0;for(l=a.b.length-1;k<l;k++)if(a.b[k+1].oc()<a.b[k].oc()){f=!1;break}var G;f?G=a.b:(G=Ua(a.b),$a(G,function(a,b){return a.oc()-b.oc()}));k=0;l=G.length;m=0;for(p=a.f.length;k<l&&m<p&&t<b;m++)if(f=G[k],h=a.f[m],ia(h)in |
||||
a.g){if(h!=f||q){if(!d(f))break;q=!0}k++}else c(h);t>=b&&(v=!1);if(v){for(;k<l&&t<b&&d(G[k]);k++);for(;m<p&&t<b;m++)c(a.f[m]);if(k<l||m<p)v=!1}if(v)a.f=Xa(G,0),a.g=null,K(a,128);else{for(k=y.length;k--;)Wa(a.f,y[k],1);for(k=0;k<D.length;k++)a.f.push(G[D[k]])}return t}g.Ic=function(a){this.M||(a=Ma(this.f,a),0<=a&&Wa(this.f,a,1))};g.Pe=function(){J().ug(this);K(this,32)};g.$a=function(){this.D(4)&&J().vg(this);K(this,4);K(this,256)}; |
||||
g.Wb=function(a){for(var b=null,c=0,d=this.b.length;c<d;c++){var e=this.b[c],e=e.Xa(mb(a,e.F));isNaN(e.left)||isNaN(e.top)||isNaN(e.width)||isNaN(e.height)||(b?jb(b,e):b=e)}b||(b=ob(new B(0,0,0,0),a));return b};g.Sa=function(){for(var a=this.b.length;a--;)this.b[a].Sa()};g.Da=function(){Q.m.Da.call(this);Wf(this)};g.mb=function(){Q.m.mb.call(this);Wf(this)};function Wf(a){for(var b=a.b.length;b--;)a.b[b].mb()}g.yc=function(){J().ie()&&(this.l(512),this.pd()&&this.parent().yc())}; |
||||
g.H=function(a){Na(a.children,function(a){var b;switch(a.type){case "rect":b=this.rect();break;case "circle":b=this.Jd();break;case "ellipse":b=this.Kd();break;case "image":b=this.tb();break;case "text":b=this.text();break;case "path":b=this.B();break;case "layer":b=this.Md();break;default:b=null}b&&b.H(a)},this);Q.m.H.call(this,a)};g.N=function(){var a=Q.m.N.call(this),b=[];this.Ld(function(a){b.push(a.N())});a.type="layer";a.children=b;return a}; |
||||
g.A=function(){this.b&&Ec.apply(null,this.b);this.f&&delete this.f;this.O();Q.m.A.call(this)};g.Dc=function(){this.b&&Na(this.b,function(a){a.Dc()});delete this.f;delete this.b;Q.m.Dc.call(this)};var S=Q.prototype;x("acgraph.vector.Layer",Q);S.addChild=S.ib;S.addChildAt=S.Id;S.removeChild=S.removeChild;S.removeChildAt=S.Nd;S.removeChildren=S.Oe;S.swapChildren=S.Ye;S.swapChildrenAt=S.Od;S.getChildAt=S.Je;S.hasChild=S.Le;S.forEachChild=S.Ld;S.indexOfChild=S.pc;S.numChildren=S.Jg;S.circle=S.Jd; |
||||
S.layer=S.Md;S.unmanagedLayer=S.df;S.ellipse=S.Kd;S.rect=S.rect;S.truncatedRect=S.cf;S.roundedRect=S.Re;S.roundedInnerRect=S.Qe;S.path=S.B;S.star=S.Se;Q.prototype.star4=Q.prototype.Ue;Q.prototype.star5=Q.prototype.Ve;Q.prototype.star6=Q.prototype.We;Q.prototype.star7=Q.prototype.Xe;Q.prototype.star10=Q.prototype.Te;S.diamond=S.He;S.triangleUp=S.bf;S.triangleDown=S.Ze;S.triangleRight=S.af;S.triangleLeft=S.$e;S.cross=S.Fe;S.diagonalCross=S.Ge;S.hLine=S.Ke;S.vLine=S.ef;S.pie=S.Ne;S.donut=S.Ie; |
||||
S.text=S.text;S.html=S.Me;S.image=S.tb;function Fb(a){this.h=a;this.i=!1;Q.call(this)}z(Fb,Q);g=Fb.prototype;g.ba=2277;g.fa=function(){return"fill-pattern"};g.parent=function(a){return r(a)?(a?He(this,a):this.Pa(),this):Fb.m.parent.call(this)};g.na=function(){return this.h.clone()};g.La=function(){return J().Df()};g.Pe=function(){J().rg(this);K(this,32)};g.V=function(){this.i||this.u().c.j().appendChild(this.j());this.i=!0;Fb.m.V.call(this)};g.$a=function(){this.D(4)&&J().yg(this);K(this,4)}; |
||||
g.N=function(){var a=Fb.m.N.call(this),b=this.na();a.type="pattern";a.bounds=b;return a};g.A=function(){F(this.j());this.c=null;Fb.m.A.call(this)};var Xf=Fb.prototype;x("acgraph.vector.PatternFill",Fb);Xf.addChild=Xf.ib;Xf.dispose=Xf.za;function Se(a,b,c,d){var e;a:{a=(a||"").toLowerCase();for(e in Yf)if(Yf[e].toLowerCase()==a||Yf[e].toLowerCase().replace(/-/g,"")==a){e=Yf[e];break a}e="backward-diagonal"}this.type=e;this.color=""+(null!=b?b:"black 0.5");this.J=null!=c?c:1;this.size=null!=d?d:10;Fb.call(this,new B(0,0,this.size,this.size));(b=Zf[this.type])&&b.call(this)}z(Se,Fb); |
||||
var Yf={yi:"backward-diagonal",Li:"forward-diagonal",Ni:"horizontal",jj:"vertical",Di:"dashed-backward-diagonal",Mi:"grid",Ei:"dashed-forward-diagonal",Fi:"dashed-horizontal",Gi:"dashed-vertical",Ii:"diagonal-cross",Hi:"diagonal-brick",Ji:"divot",Oi:"horizontal-brick",kj:"vertical-brick",Bi:"checker-board",Ci:"confetti",ej:"plaid",gj:"solid-diamond",mj:"zig-zag",lj:"weave",Si:"percent-05",Ti:"percent-10",Ui:"percent-20",Vi:"percent-25",Wi:"percent-30",Yi:"percent-40",Zi:"percent-50",$i:"percent-60", |
||||
aj:"percent-70",bj:"percent-75",cj:"percent-80",dj:"percent-90"};function $f(a,b,c){this.h=new B(0,0,a,b);ag(this,c)}function bg(a,b,c){this.h=new B(0,0,a,b);cg(this,a,b);ag(this,c,"white")} |
||||
var Zf=function(){var a={"backward-diagonal":function(){dg(this,[-1,0,this.size+1,0,this.J],-45)},"forward-diagonal":function(){dg(this,[-1,0,this.size+1,0,this.J],45)},horizontal:function(){dg(this,[-1,this.size/2,this.size+1,this.size/2,this.J])},vertical:function(){dg(this,[this.size/2,-1,this.size/2,this.size+1,this.J])},"diagonal-cross":function(){dg(this,[0,this.size/2,this.size,this.size/2,this.J,this.size/2,0,this.size/2,this.size,this.J],45)},grid:function(){dg(this,[-1,this.size/2,this.size+ |
||||
1,this.size/2,this.J,this.size/2,-1,this.size/2,this.size+1,this.J])},"horizontal-brick":function(){dg(this,[0,0,0,this.size/2-1,this.J,0,this.size/2-1,this.size,this.size/2-1,this.J,this.size/2,this.size/2-1,this.size/2,this.size-1,this.J,0,this.size-1,this.size,this.size-1,this.J])},"vertical-brick":function(){dg(this,[0,0,0,this.size/2-1,this.J,0,this.size/2-1,this.size,this.size/2-1,this.J,this.size/2,this.size/2-1,this.size/2,this.size-1,this.J,0,this.size-1,this.size,this.size-1,this.J],90)}, |
||||
"diagonal-brick":function(){dg(this,[0,0,0,this.size/2-1,this.J,0,this.size/2-1,this.size,this.size/2-1,this.J,this.size/2,this.size/2-1,this.size/2,this.size-1,this.J,0,this.size-1,this.size,this.size-1,this.J],45)},"checker-board":function(){eg(this,[0,0,this.size/2,this.size/2,this.size/2,this.size])},confetti:function(){var a=this.size/8,c=this.size/4;eg(this,[0,2*a,c,a,5*a,c,2*a,0,c,4*a,4*a,c,5*a,a,c,6*a,6*a,c])},plaid:function(){cg(this,this.size/2,this.size/2);for(var a=this.size/8,c,d=0;2> |
||||
d;d++){c=!1;for(var e=0;4>e;e++){c=!c;for(var f=0;4>f;f++)c&&cg(this,a,a,e*a+d*this.size/2,f*a+this.size/2),c=!c}}},"solid-diamond":function(){fg(this,[[this.size/2,0,0,this.size/2,this.size/2,this.size,this.size,this.size/2,this.size/2,0]],!0)},"dashed-forward-diagonal":function(){dg(this,[0,0,this.size/2,this.size/2,this.J])},"dashed-backward-diagonal":function(){dg(this,[this.size/2,0,0,this.size/2,this.J])},"dashed-horizontal":function(){dg(this,[0,0,this.size/2,0,this.J,this.size/2,this.size/ |
||||
2,this.size,this.size/2,this.J])},"dashed-vertical":function(){dg(this,[0,0,0,this.size/2,this.J,this.size/2,this.size/2,this.size/2,this.size,this.J])},divot:function(){var a=.1*this.size,c=this.size*(.8-.2)/2;fg(this,[[a+c,a,a,a+c/2,a+c,a+c],[this.size-a-c,this.size-a-c,this.size-a,this.size-a-c/2,this.size-a-c,this.size-a]])},"zig-zag":function(){fg(this,[[0,0,this.size/2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2]])},weave:function(){fg(this,[[0,0,this.size/ |
||||
2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2],[this.size/2,this.size/2,3*this.size/4,3*this.size/4],[this.size,this.size/2,3*this.size/4,this.size/4]])}};a["percent-05"]=oa($f,8,8,[0,0,4,4]);a["percent-10"]=oa($f,8,4,[0,0,4,2]);a["percent-20"]=oa($f,4,4,[0,0,2,2]);a["percent-25"]=oa($f,4,2,[0,0,2,1]);a["percent-30"]=oa($f,4,4,[0,0,2,0,3,1,0,2,2,2,1,3]);a["percent-40"]=oa($f,4,8,[0,0,2,0,3,1,0,2,2,2,1,3,3,3,0,4,2,4,1,5,3,5,0,6,2,6,1,7,3,7]);a["percent-50"]= |
||||
oa($f,2,2,[0,0,1,1]);a["percent-60"]=oa($f,4,4,[0,0,2,0,0,1,1,1,3,1,0,2,2,2,1,3,2,3,3,3]);a["percent-70"]=oa($f,4,4,[0,0,2,0,3,0,0,1,1,1,2,1,0,2,2,2,3,2,0,3,1,3,2,3]);a["percent-75"]=oa(bg,4,4,[0,0,2,2]);a["percent-80"]=oa(bg,8,4,[0,0,4,2]);a["percent-90"]=oa(bg,8,8,[7,7,4,3]);return a}();function fg(a,b,c){a=gg(a);for(var d=0;d<b.length;d++){var e=b[d];a.va(e[0],e[1]);for(var f=2;f<e.length;f+=2)a.lineTo(e[f],e[f+1])}c&&a.close()} |
||||
function dg(a,b,c){for(var d=gg(a),e=0;e<b.length;e+=5){var f=b[e],h=b[e+1],k=b[e+2],l=b[e+3],m=b[e+4];f===k&&(f=k=Math.round(f)+m%2/2);h===l&&(h=l=Math.round(h)+m%2/2);d.va(f,h).lineTo(k,l)}c&&a.rb(c)}function eg(a,b){for(var c=0;c<b.length;c+=3){var d=b[c+2];cg(a,d,d,b[c],b[c+1])}}function cg(a,b,c,d,e){a.rect(d||0,e||0,b,c).Qa(a.color).vb("none")}function gg(a){return a.B().Qa("none").vb(a.color,a.J)} |
||||
function ag(a,b,c){a=a.B().Qa(c||a.color).vb("none");for(c=0;c<b.length;c+=2){var d=b[c],e=b[c+1];a.va(d,e).lineTo(d,e+1,d+1,e+1,d+1,e).close()}}Se.prototype.fa=function(){return"hatch-fill"};Se.prototype.A=function(){Se.m.A.call(this);if(this.u()){var a=this.u().c,b=[this.type,this.color,this.J,this.size].join();Vb(a.h,b)&&Yb(a.h,b);a=Rd(this.id());F(a)}};var hg=Se.prototype;hg.dispose=hg.za;function ig(a,b,c,d,e,f,h){this.h=a||null;this.b=f||jg;this.f=h||kg;this.c=new B(b||0,c||0,d||0,e||0);this.g=1;I.call(this)}z(ig,I);var kg="meet",jg="none";g=ig.prototype;g.ba=I.prototype.ba|32;g.fa=function(){return"image"};g.Yb=function(a){return null!=a?(a!=this.f&&(this.f=a,this.l(32)),this):this.f};g.align=function(a){return null!=a?(a!=this.b&&(this.b=a,this.l(32)),this):this.b};g.x=function(a){return null!=a?(a!=this.c.left&&(this.c.left=a,this.l(32),this.O()),this):this.c.left}; |
||||
g.y=function(a){return null!=a?(a!=this.c.top&&(this.c.top=a,this.l(32),this.O()),this):this.c.top};g.width=function(a){return null!=a?(a!=this.c.width&&(this.c.width=a,this.l(32),this.O()),this):this.c.width};g.height=function(a){return null!=a?(a!=this.c.height&&(this.c.height=a,this.l(32),this.O()),this):this.c.height};g.src=function(a){return r(a)?(a!=this.h&&(this.h=a,this.l(32)),this):this.h};g.opacity=function(a){return r(a)?(a!=this.g&&(this.g=a,this.l(32)),this):this.g};g.na=function(){return this.c.clone()}; |
||||
g.La=function(){return J().Ef()};g.V=function(){this.D(32)&&(J().Hc()&&this.l(4),J().sg(this),K(this,32));ig.m.V.call(this)};g.$a=function(){J().tg(this);K(this,4);K(this,256)};g.H=function(a){var b=a.bounds;this.x(b.left).y(b.top).width(b.width).height(b.height).src(a.src).align(a.align).Yb(a.fittingMode);ig.m.H.call(this,a)};g.N=function(){var a=ig.m.N.call(this);a.type="image";a.bounds=this.na();a.src=this.src();a.align=this.align();a.fittingMode=this.Yb();return a}; |
||||
g.A=function(){this.c=null;this.O();ig.m.A.call(this)};x("acgraph.vector.Image",ig);var lg=ig.prototype;lg.fittingMode=lg.Yb;lg.align=lg.align;lg.x=lg.x;lg.y=lg.y;lg.width=lg.width;lg.height=lg.height;lg.src=lg.src;function Ze(a,b,c,d){this.b=new B(a||0,b||0,c||0,d||0);this.v=[];this.w=[0,0,0,0];M.call(this);mg(this)}z(Ze,M);g=Ze.prototype;g.ba=Pe.prototype.ba|32;g.fa=function(){return"rect"};g.we=function(a){a!=this.b.left&&(this.b.left=a,mg(this));return this};g.xe=function(a){a!=this.b.top&&(this.b.top=a,mg(this));return this};g.ve=function(a){this.b.width!=a&&(this.b.width=a,mg(this));return this};g.re=function(a){this.b.height!=a&&(this.b.height=a,mg(this));return this}; |
||||
g.mi=function(a){var b=this.b;b==a||b&&a&&b.left==a.left&&b.width==a.width&&b.top==a.top&&b.height==a.height||(this.b.left=a.left,this.b.top=a.top,this.b.width=a.width,this.b.height=a.height,mg(this));return this}; |
||||
g.oe=function(a,b){var c,d,e,f;c=Xa(arguments,1);d=c[0];w(d)?f=Ka(d,4):f=c;4>f.length?f=e=d=c=parseFloat(f[0]):(c=parseFloat(f[0]),d=parseFloat(f[1]),e=parseFloat(f[2]),f=parseFloat(f[3]));this.w[0]=c?c:0;this.v[0]=c?a:void 0;this.w[1]=d?d:0;this.v[1]=d?a:void 0;this.w[2]=e?e:0;this.v[2]=e?a:void 0;this.w[3]=f?f:0;this.v[3]=f?a:void 0}; |
||||
function mg(a){var b=!a.u()||a.u().ea();b||a.u().wa();mf(a);var c=a.w[0];a.sd(a.b.left+c,a.b.top);c=a.w[1];a.Ja(a.b.left+a.b.width-a.w[1],a.b.top);if(a.v[1])switch(a.v[1]){case "round":nf(a,a.b.left+a.b.width,a.b.top+c,c,c,!1,!0);break;case "round-inner":nf(a,a.b.left+a.b.width,a.b.top+c,c,c,!1,!1);break;case "cut":a.Ja(a.b.left+a.b.width,a.b.top+c)}c=a.w[2];a.Ja(a.b.left+a.b.width,a.b.top+a.b.height-c);if(a.v[2])switch(a.v[2]){case "round":nf(a,a.b.left+a.b.width-c,a.b.top+a.b.height,c,c,!1,!0); |
||||
break;case "round-inner":nf(a,a.b.left+a.b.width-c,a.b.top+a.b.height,c,c,!1,!1);break;case "cut":a.Ja(a.b.left+a.b.width-c,a.b.top+a.b.height)}c=a.w[3];a.Ja(a.b.left+c,a.b.top+a.b.height);if(a.v[3])switch(a.v[3]){case "round":nf(a,a.b.left,a.b.top+a.b.height-c,c,c,!1,!0);break;case "round-inner":nf(a,a.b.left,a.b.top+a.b.height-c,c,c,!1,!1);break;case "cut":a.Ja(a.b.left,a.b.top+a.b.height-c)}c=a.w[0];a.Ja(a.b.left,a.b.top+c);if(a.v[0])switch(a.v[0]){case "round":nf(a,a.b.left+c,a.b.top,c,c,!1,!0); |
||||
break;case "round-inner":nf(a,a.b.left+c,a.b.top,c,c,!1,!1)}a.Xd();b||a.u().ra()}g.round=function(a,b,c,d){Wa(arguments,0,0,"round");this.oe.apply(this,arguments);mg(this);return this};g.ki=function(a,b,c,d){Wa(arguments,0,0,"round-inner");this.oe.apply(this,arguments);mg(this);return this};g.Gh=function(a,b,c,d){Wa(arguments,0,0,"cut");this.oe.apply(this,arguments);mg(this);return this}; |
||||
g.H=function(a){Ze.m.H.call(this,a);this.we(a.x).xe(a.y).ve(a.width).re(a.height);a.cornerTypes&&(this.v=Ka(a.cornerTypes,4),a=Ka(a.cornerSizes,4),Na(a,function(a,c,d){d[c]=parseFloat(a)}),this.w=a,mg(this))};g.N=function(){var a=Ze.m.N.call(this);a.type="rect";a.x=this.b.left;a.y=this.b.top;a.width=this.b.width;a.height=this.b.height;a.cornerTypes=this.v.join(" ");a.cornerSizes=this.w.join(" ");return a};g.A=function(){this.b=this.v=this.w=null;this.O();Ze.m.A.call(this)};var ng=Ze.prototype; |
||||
x("acgraph.vector.Rect",Ze);ng.setX=ng.we;ng.setY=ng.xe;ng.setWidth=ng.ve;ng.setHeight=ng.re;ng.setBounds=ng.mi;ng.cut=ng.Gh;ng.round=ng.round;ng.roundInner=ng.ki;function og(a){je.call(this);this.c={};this.b={};this.f=new ge(this);this.g=a}z(og,je);var pg=[E&&!pc("11")?"readystatechange":"load","abort","error"];function qg(a,b,c){(c=w(c)?c:c.src)&&(a.c[b]={src:c,zf:r(void 0)?void 0:null})}og.prototype.start=function(){var a=this.c;Na(Ub(a),function(b){var c=a[b];if(c&&(delete a[b],!this.M)){var d;this.g?d=Od(this.g).c("IMG"):d=new Image;c.zf&&(d.crossOrigin=c.zf);this.f.R(d,pg,this.h);this.b[b]=d;d.id=b;d.src=c.src}},this)}; |
||||
og.prototype.h=function(a){var b=a.c;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.G({type:a.type,target:b});!this.M&&(a=b.id,delete this.c[a],b=this.b[a])&&(delete this.b[a],this.f.ua(b,pg,this.h),Wb(this.b)&&Wb(this.c)&&this.G("complete"))}};og.prototype.A=function(){delete this.c;delete this.b;Dc(this.f);og.m.A.call(this)};function rg(){this.h={};this.g="fontStyle fontVariant fontFamily fontSize fontWeight letterSpacing decoration".split(" ")}ca(rg);function sg(a,b){var c;if(tg(a," ",b))c=ug(a," ",b);else{c=a.measure("a a",b);var d=a.measure("aa",b);c=new B(0,c.top,c.width-d.width,c.height);ug(a," ",b,c)}return c}function vg(a,b){var c;tg(a,"",b)?c=ug(a,"",b):(c=a.measure("a",b),c=new B(0,c.top,0,c.height),ug(a,"",b,c));return c} |
||||
function wg(a,b){for(var c="",d=0,e=a.g.length;d<e;d++){var f=b[a.g[d]];r(f)&&(c+=f+"|")}return c}function ug(a,b,c,d){var e=a.h,f=wg(a,c),h=e[f];h||(h=e[f]={});return(e=h[b])?e:h[b]=d?d:a.measure(b,c)}g=rg.prototype;g.Rf=function(a,b,c){return ug(this,b,c)};function tg(a,b,c){a=a.h[wg(a,c)];return!(!a||!a[b])} |
||||
function xg(a,b){var c,d;a=bb(a);if(b.height==b.width)return a;b.height<b.width?(c=b.width,d=b.height,d/=c):(c=b.height,d=b.width,d=c/d);c/=2;c=180*Math.atan(Math.tan(cb(a))*c/c*d)/Math.PI;90<a&&270>=a?c=180+c:270<a&&360>=a&&(c=360+c);return c%360}g.pg=u;g.ue=u;g.pe=u;function T(a,b,c){for(var d in c)a.o(b,d,c[d])}g.o=function(a,b,c){a.setAttribute(b,c)};function Ne(a,b,c){b&&(c?a.o(b,"id",c):b.removeAttribute("id"))} |
||||
function yg(a,b,c){if(b.Ib())return null;var d=[],e=a.dg,f=a.cg;(c?b.Jh:b.ce).call(b,function(a,b){var c=f[a];c&&(d.push(c),4==a?e(d,b):5!=a&&tc(Array.prototype.push,b,d))});return d.join(" ")}g.If=function(){return null};g.ag=function(){return!1};g.Xf=function(){return!1};function zg(a){a.Gb||(a.Gb=new og(n.document.body));return a.Gb}g.Hc=function(){return!1};g.ie=function(){return!1};function Ag(){this.b=new B(0,0,0,0);I.call(this)}z(Ag,I);g=Ag.prototype;g.Qd=null;g.ba=I.prototype.ba|32;g.fa=function(){return"simple-text"};g.na=function(){return this.b.clone()};g.text=function(a){return r(a)?(a!=this.Qd&&(this.Qd=String(a),(a=!this.u()||this.u().ea())||this.u().wa(),this.l(32),a||this.u().ra()),this):this.Qd};g.La=function(){return J().cd()};g.V=function(){this.D(32)&&(J(),this.j().textContent=this.text(),K(this,32));Ag.m.V.call(this)};g.$a=function(){K(this,4);K(this,256)}; |
||||
var Bg=Ag.prototype;Bg.text=Bg.text;x("acgraph.vector.SimpleText",Ag);function Cg(){}ca(Cg); |
||||
var Dg={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206, |
||||
Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255, |
||||
OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966, |
||||
chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659, |
||||
hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829, |
||||
diams:9830};Cg.prototype.P=null;function Eg(a){a.style||(a.style=a.v.length?Zb(a.v[a.v.length-1]):{})}function Fg(a,b){switch(b){case "b":case "strong":Eg(a);a.style.fontWeight="bold";break;case "i":case "em":Eg(a),a.style.fontStyle="italic"}} |
||||
function Gg(a,b,c){switch(b){case "font-style":Eg(a);a.style.fontStyle=c||"normal";break;case "font-variant":Eg(a);a.style.fontVariant=c||"normal";break;case "font-family":Eg(a);a.style.fontFamily=c||n.acgraph.fontFamily;break;case "font-size":Eg(a);a.style.fontSize=c||n.acgraph.fontSize;break;case "font-weight":Eg(a);a.style.fontWeight=c||"normal";break;case "color":Eg(a);a.style.color=c||n.acgraph.color;break;case "letter-spacing":Eg(a);a.style.letterSpacing=c||"normal";break;case "text-decoration":Eg(a); |
||||
a.style.Cb=c||"none";break;case "opacity":Eg(a),a.style.opacity=null!=c?parseFloat(c):1}}function Hg(a){""!=a.f&&(Ig(a.P,a.f,a.v.length?a.v[a.v.length-1]:null),a.f="",a.W=!1)}function Jg(a){a.w==(a.C.length?a.C[a.C.length-1]:null)&&(Hg(a),a.v.pop(),a.C.pop(),a.c="");a.w="";a.b=1}function Kg(a,b){Fg(a,a.c);a.C.push(a.c);a.v.push(a.style);b&&(a.g="");a.c="";a.style=null;a.b=1}function Lg(a,b,c){Gg(a,a.i,a.M||"");a.i="";a.M="";c&&(a.g="");a.b=b} |
||||
function Mg(a){Fg(a,a.c);Gg(a,a.i,a.M||"");a.C.push(a.c);a.v.push(a.style);a.c="";a.style=null;a.g="";a.i="";a.M="";a.b=1}function Ng(a,b,c){var d;if(a.I){var e=Dg[a.h];r(e)?d=e:a.f+="&"+a.h+c}else a.h?d=parseInt(a.h,10):a.f+="&#"+c;d&&(a.f+=String.fromCharCode(d)+(";"==c?"":c));a.b=b;a.h="";a.I=!0};function Og(a,b){zc.call(this);this.b=b||{};this.text=a;this.i=!1;this.y=this.x=this.c=this.g=this.height=this.width=this.f=0}z(Og,zc);g=Og.prototype;g.Vb=null;g.nf=null;g.parent=function(a){return r(a)?(this.nf=a,this):this.nf};g.j=function(){return this.Vb};g.fa=function(){return"t-segment"};g.A=function(){F(this.Vb);this.Vb=null;Og.m.A.call(this)};function Pg(a,b){this.w=!1;this.Rb=a||0;this.Sb=b||0;this.P=new B(this.Rb,this.Sb,0,0);this.Ba=this.v=this.hc=this.g=0;this.gc=!1;this.c=[];this.b=[];this.I=this.Pc=this.i=0;this.Pb=!0;this.Vd=this.C=this.pa=this.ec=0;this.Oa=[];this.L=1;this.cb=Qg;this.f=0;this.qb=this.h=!1;this.s=this.ai={fontSize:n.acgraph.fontSize,color:n.acgraph.fontColor,fontFamily:n.acgraph.fontFamily,direction:n.acgraph.textDirection,textOverflow:Qg,wordBreak:Rg,wordWrap:Sg,selectable:!0,hAlign:U};this.aa=null;I.call(this)} |
||||
z(Pg,I);var Rg="normal",Sg="normal",Qg="",U="start",Tg={Qi:"left",hj:U,Ai:"center",Ki:"end",fj:"right"},Ug={ij:"top",Ri:"middle",zi:"bottom"};g=Pg.prototype;g.ba=I.prototype.ba|17504;g.s=null;g.xa=null;g.x=function(a){return null!=a?(this.Rb!=a&&(this.Rb=a,this.w&&Vg(this),this.P.left=a,this.l(16384),this.O()),this):this.Rb};g.y=function(a){return null!=a?(this.Sb!=a&&(this.Sb=a,this.w&&Wg(this),this.P.top=a,this.l(16384),this.O()),this):this.Sb}; |
||||
function Xg(a,b,c){if(r(c)){if(c!==a.s[b]){var d=!a.u()||a.u().ea();d||a.u().wa();a.s[b]=c;a.w=!1;a.l(1024);a.l(32);a.l(16384);a.bb();d||a.u().ra()}return a}return a.s[b]}g.bb=function(){if(J().Hc()){var a=this.ca();a&&!pb(a)&&this.l(4)}};g.width=function(a){r(a)&&Xg(this,"width")!=a&&(null===a||(a=Math.max(parseFloat(a),0)||0),this.ia=a);return Xg(this,"width",a)};g.height=function(a){r(a)&&(Xg(this,"height")==a||null!==a&&(a=Math.max(parseFloat(a),0)||0),this.Aa=a);return Xg(this,"height",a)}; |
||||
g.opacity=function(a){return null!=a?(this.s.opacity=a,this.l(1024),this):this.s.opacity};g.color=function(a){return null!=a?(this.s.color=a,this.l(1024),this):this.s.color};g.fontSize=function(a){return Xg(this,"fontSize",a)};g.fontFamily=function(a){return Xg(this,"fontFamily",a)};g.uc=function(a){return Xg(this,"direction",a)};g.fontStyle=function(a){return Xg(this,"fontStyle",a)};g.fontVariant=function(a){return Xg(this,"fontVariant",a)};g.fontWeight=function(a){return Xg(this,"fontWeight",a)}; |
||||
g.letterSpacing=function(a){return Xg(this,"letterSpacing",a)};g.Cb=function(a){return Xg(this,"decoration",a)};g.Sd=function(a){null!=a&&(this.L=Yg(a));return Xg(this,"lineHeight",a)};function Yg(a){var b=parseFloat(a);return isNaN(b)||0>b?1:w(a)&&va(a,"%")?1+parseFloat(a)/100:a}g.Td=function(a){null!=a&&(this.f=a);return Xg(this,"textIndent",a)};g.xb=function(a){if(r(a))if("center"==a)a="middle";else{var b=!1;Sb(Ug,function(c){a==c&&(b=!0)});b||(a="top")}return Xg(this,"vAlign",a)}; |
||||
g.Ma=function(a){if(r(a))if("middle"==a)a="center";else{var b=!1;Sb(Tg,function(c){a==c&&(b=!0)});b||(a=U)}return Xg(this,"hAlign",a)};g.Gg=function(a){return Xg(this,"wordBreak",a)};g.pf=function(a){return Xg(this,"wordWrap",a)};g.hb=function(a){null!=a&&(this.cb=a);return Xg(this,"textOverflow",a)};g.Kc=function(a){return Xg(this,"selectable",a)}; |
||||
function Zg(a){if(r(void 0)){a.Na=void 0;a.u()&&a.Na.parent(a.u().c);var b=!a.u()||a.u().ea();b||a.u().wa();a.w=!1;a.l(17504);a.bb();b||a.u().ra();return a}return a.Na} |
||||
g.style=function(a){if(a){Sb(a,function(a,b){var c=b;switch(b){case "fontDecoration":case "textDecoration":c="decoration";break;case "fontColor":c="color";break;case "fontOpacity":c="opacity"}this.s[c]=a},this);this.ia=parseFloat(this.s.width)||0;this.Aa=parseFloat(this.s.height)||0;this.s.lineHeight&&(this.L=Yg(this.s.lineHeight));var b,c=this.s.vAlign;null!=c&&("center"==c?this.s.vAlign="middle":(b=!1,Sb(Ug,function(a){c==a&&(b=!0)}),b||(this.s.vAlign="top")));var d=this.s.hAlign;null!=d&&("middle"== |
||||
d?this.s.hAlign="center":(b=!1,Sb(Tg,function(a){d==a&&(b=!0)}),b||(this.s.hAlign=U)));null!=this.s.direction&&(this.h="rtl"==this.s.direction);null!=this.s.textOverflow&&(this.cb=this.s.textOverflow);null!=this.s.textIndent&&(this.f=this.s.textIndent);this.h&&(this.f=0);(a=!this.u()||this.u().ea())||this.u().wa();this.w=!1;this.l(1024);this.l(32);this.l(16384);this.l(4);this.bb();a||this.u().ra();return this}return this.s}; |
||||
g.text=function(a){return r(a)?(a!=this.xa&&(this.xa=String(a),this.gc=!1,(a=!this.u()||this.u().ea())||this.u().wa(),this.w=!1,this.l(1024),this.l(32),this.l(16384),this.bb(),a||this.u().ra()),this):this.xa};g.Rd=function(a){return r(a)?(a!=this.xa&&(this.xa=String(a),this.gc=!0,(a=!this.u()||this.u().ea())||this.u().wa(),this.w=!1,this.l(1024),this.l(32),this.l(16384),this.bb(),a||this.u().ra()),this):this.xa};g.fa=function(){return"text"};g.na=function(){return this.P.clone()}; |
||||
g.Xa=function(a){this.w||this.Nb();return a?Pg.m.Xa.call(this,a):this.Wb(null)}; |
||||
g.Wb=function(a){var b;if(Zg(this))if(this.be)b=this.be;else{b=J();b.ya||b.Va();this.w||this.Nb();var c,d=Zg(this);d.j()||Ke(d,!0);b.se(d);c=d.j().parentNode;b.f.appendChild(d.j());c||(c=Nb(Mb.oa(),d.j(),"path"),Ne(b,d.j(),c));this.j()||Ke(this,!0);this.ke();this.vc();$g(this);this.xd();this.$a();c=Nb(Mb.oa(),d.j(),"path");d=ah();this.aa.setAttributeNS("http://www.w3.org/1999/xlink","href",d+"#"+c);d=this.j();c=d.parentNode;b.ya.appendChild(d);b=this.j().getBBox();c&&c.appendChild(d);b=new B(b.x, |
||||
b.y,b.width,b.height)}else b=this.P.clone();return ob(b,a)};g.O=function(){Pg.m.O.call(this);this.be=null};g.$f=function(a){for(var b=J().g,c=arguments,d={},e=0,f=b.length;e<f;e++)for(var h=c.length;h--;){var k=c[h];if(k&&(k=k[b[e]],r(k))){d[b[e]]=k;break}}return d};g.ga=function(a,b){var c=this.$f(this.s,b);return ug(J(),a,c)};g.Zh=function(){this.w||this.Nb();return this.hc};g.Yh=function(){this.w||this.Nb();return this.g}; |
||||
function bh(a,b,c,d,e,f,h){var k,l,m=Math.floor((e-d)/(f.width/b.length));k=b.substring(0,m);for(l=a.ga(k,c);d+l.width<e&&1<m;)m++,k=b.substring(0,m),l=a.ga(k,c);for(;d+l.width>e&&1<m;)m--,k=b.substring(0,m),l=a.ga(k,c);d=a.$f(a.s,c);c=b.substring(m,b.length);l=f.width-l.width;f=f.clone();f.width=l;ug(J(),c,d,f);f=a.s.wordWrap!=Sg;l="keep-all"==a.s.wordBreak;"break-all"==a.s.wordBreak||h||(a=/\s+/g,h=/\S+/g,e=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uffef\u4e00-\u9faf\uAC00-\uD7A3\u1100–\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]+/g, |
||||
d=k[k.length-1],c=c[0],l=!l&&(e.test(d)||e.test(c)),a.test(d)||a.test(c)||l||(a.test(k)?(m=k.match(h),m=k.lastIndexOf(m[m.length-1])):(k=h.exec(b)[0],f||(m=k.length))));return m} |
||||
function ch(a,b,c,d,e){c=new Og(b,c);c.f=-d.top;c.height=d.height;c.width=d.width;a.f&&!a.c.length&&(e=e||0,a.f=a.ia&&a.f+d.width+e>a.ia?a.ia-d.width-e:a.f,0>a.f&&(a.f=0));a.I=Math.max(a.I,d.height);a.i+=d.width;a.c.length||(a.i+=a.f);a.C=Math.max(a.C,c.f);a.Pb=a.b.length?a.Pb&&!b.length:!b.length;a.b.push(c);a.c.push(c);c.parent(a);return c} |
||||
function dh(a,b){var c,d,e,f,h=b||La(a.Oa),k=La(h),l=a.ga(a.cb,k.b),m=a.cb;l.width>a.ja&&(e=bh(a,a.cb,k.b,0,a.ja,l,!0),m=a.cb.substring(0,e));e=a.Pc;var p=a.ja;if(""==m)d=Ma(a.c,k)+1,Wa(a.c,d,a.c.length-d);else if(p-e>=l.width)a.b=h,d=Ma(a.c,k)+1,Wa(a.c,d,a.c.length-d),f=ch(a,m,k.b,l),2==a.b.length&&""==a.b[0].text&&(f.c=a.pa-a.b[0].height,f.i=!0);else{for(var t=h.length-1;!c&&0<=t;)k=h[t],l=a.ga(m,k.b),d=a.ga(k.text,k.b),e-d.width+l.width<=a.ja&&(c=k),e-=d.width,t--;c||1!=a.Oa.length||(c=h[0],e-= |
||||
d.width);c&&(a.b=h,t=a.b[0].c,p-=l.width,d=Ma(h,c),Wa(h,d,h.length-d),d=Ma(a.c,c),Wa(a.c,d,a.c.length-d),a.I=0,a.i=0,a.C=0,d=a.ga(c.text,c.b),e=bh(a,c.text,c.b,e,p,d,!0),1>e&&(e=1),p=c.text.substring(0,e),h=a.ga(p,c.b),p=ch(a,p,c.b,h,l.width),p.x=c.x,p.y=c.y,h.width+l.width>a.ja&&(e=bh(a,a.cb,k.b,h.width,a.ja,l,!0),m=a.cb.substring(0,e)),0<e&&(f=ch(a,m,c.b,l),f.x=p.x+h.width,f.y=p.y),a.b[0].i=!0,a.b[0].c=t)}a.h&&f&&(c=a.b[0],f.i=c.i,f.x=c.x,f.c=c.c,c.c=0,c.x=0,c.i=!1,Ra(a.c,f),d=Ma(a.c,c),Wa(a.c, |
||||
d,0,f))}function eh(a){fh(a);a.ec++;Ig(a,"",null,!0);var b=a.b[0]?a.b[0].height:0;a.pa+=w(a.L)?parseInt(a.L,0)+b:a.L*b}function Ig(a,b,c,d){if(!a.qb){c=c||{};var e=a.ga(b,c),f=a.c.length?0:a.f;if(a.Of)for(;a.i+e.width+f>a.ja&&!a.qb;){var h=bh(a,b,c,f+a.i,a.ja,e);1>h&&!a.b.length&&(h=1);h&&(f=xa(b.substring(0,h)),e=a.ga(f,c),ch(a,f,c,e));fh(a);1==b.length&&(a.qb=!0);f=0;b=xa(b.substring(h,b.length));e=a.ga(b,c)}a.qb||!b.length&&!d||ch(a,b,c,e)}} |
||||
function fh(a){if(!a.qb&&a.b.length){var b=!a.Oa.length;if(a.Aa&&a.g+a.I>a.Aa&&a.Oa.length)dh(a),a.qb=!0;else{a.I=w(a.L)?parseInt(a.L,0)+a.I:a.L*a.I;if(J().ag()){var c,d,e,f;f=a.h&&a.s.hAlign==U||!a.h&&"end"==a.s.hAlign||"right"==a.s.hAlign;c="center"==a.s.hAlign;if(a.h&&"end"==a.s.hAlign||!a.h&&a.s.hAlign==U||"left"==a.s.hAlign)for(c=a.h?0:a.f&&b?a.f:0,d=0,e=a.b.length;d<e;d++)f=a.b[d],f.x=c,f.y=a.g+a.C+f.height-1.5*f.f,c+=f.width;else if(c)for(c=-a.i/2,!a.h&&a.f&&b?c+=a.f:a.h&&a.f&&b&&(c-=0),d= |
||||
0,e=a.b.length;d<e;d++)f=a.b[d],f.x=c+f.width/2,f.y=a.g+a.C+f.height-1.5*f.f,c+=f.width;else if(f)for(c=a.h?a.f&&b?-a.f:0:0,d=a.b.length-1;0<=d;d--)f=a.b[d],f.x=c,f.y=a.g+a.C+f.height-1.5*f.f,c-=f.width}var h;if(b)h=a.b[0],h.f=a.C,h.i=!0,a.f&&"center"==a.s.hAlign&&(h.g=a.h?-a.f/2:a.f/2);else{for(d=0;d<a.b.length;d++)if(""!=a.b[d].text){h=a.b[d];break}h&&(h.i=!0,a.Pb||(h.c=a.pa&&1<a.ec?a.pa:a.Vd+a.C))}a.Of&&a.s.wordWrap==Sg&&a.i>a.ja&&(1<a.b.length&&!a.b[0].text.length&&(f=Ma(a.c,a.b[0]),Sa(a.b,0), |
||||
Sa(a.c,f)),f=La(a.b),b=a.ga(f.text,f.b),b=bh(a,f.text,f.b,0,a.ja,b,!0),h=f.text.substring(0,b),b=a.ga(h,f.b),f.text=h,f.width=b.width,a.i=b.width,a.Pc=a.i,dh(a,a.b));Zg(a)&&(a.b[0].g="start"==a.align?0:"middle"==a.align?Zg(a).Qc()/2-a.i/2:Zg(a).Qc()-a.i);a.g+=a.I;a.hc=Math.max(a.hc,a.i);a.Vd=a.I-a.C;a.Pc=a.i;a.Pb||(a.pa=0,a.ec=0);a.Pb=!0;a.I=0;a.i=0;a.C=0;a.Oa.push(a.b);a.b=[]}}} |
||||
function Vg(a){a.v=a.Rb;a.s.hAlign==U?a.v+=a.h?a.ia:0:"center"==a.s.hAlign?a.v+=a.ia/2:"end"==a.s.hAlign?a.v+=a.h?0:a.ia:"right"==a.s.hAlign&&(a.v+=a.ia)}function Wg(a){if(Zg(a)){if(a.s.vAlign){var b=a.c[0];"middle"==a.s.vAlign?b.c+=b.f-a.g/2:"bottom"==a.s.vAlign?b.c+=b.f-a.g:"top"==a.s.vAlign&&(b.c+=b.f)}}else a.Ba=a.Sb+(a.c.length?a.c[0].f:0),a.s.vAlign&&a.g<a.s.height&&("middle"==a.s.vAlign?a.Ba+=a.Aa/2-a.g/2:"bottom"==a.s.vAlign&&(a.Ba+=a.Aa-a.g))} |
||||
g.Nb=function(){this.c.length&&(this.Oa=[],this.c=[]);null!=this.s.direction&&(this.h="rtl"==this.s.direction);null!=this.s.textIndent&&(this.f=this.s.textIndent);this.h&&(this.f=0);this.ia=parseFloat(this.s.width)||0;this.Aa=parseFloat(this.s.height)||0;this.qb=!1;this.C=this.i=this.I=this.ec=this.pa=this.g=this.hc=this.Vd=this.Pc=0;this.b=[];this.Ba=this.v=0;this.be=null;this.align="start";this.s.hAlign&&(this.align="rtl"==this.s.direction?hc||E?"end"==this.s.hAlign||"left"==this.s.hAlign?U:this.s.hAlign== |
||||
U||"right"==this.s.hAlign?"end":"middle":"end"==this.s.hAlign||"left"==this.s.hAlign?"end":this.s.hAlign==U||"right"==this.s.hAlign?U:"middle":"end"==this.s.hAlign||"right"==this.s.hAlign?"end":this.s.hAlign==U||"left"==this.s.hAlign?U:"middle");var a=null!=this.s.width;this.Of=Zg(this)||a;a=a?parseFloat(this.s.width):Number.POSITIVE_INFINITY;this.ja=Math.max(Zg(this)?Math.min(Zg(this).Qc(),a):this.ia,0);var b;if(null!=this.xa){if(this.gc){a=Cg.oa();a.v=[];a.C=[];a.c="";a.w="";a.g="";a.L="'";a.i= |
||||
"";a.M="";a.f="";a.style=null;a.b=1;a.W=!1;a.h="";a.I=!0;a.aa=!1;a.P=this;b=this.text();for(var c=b.length,d=-1,e,f,h,k=!1;++d<c;)switch(e=b.charAt(d),f=/\xa0|\s/.test(e),h=/[^a-zA-Z]/.test(e),a.b){case 1:if("<"==e){a.b=2;break}if(a.W&&f)break;if("&"==e){a.b=14;break}if(a.aa&&(a.aa=!1,";"==e))break;a.f+=e;a.W=f;break;case 14:if(a.I&&!a.h&&"#"==e){a.I=!1;break}if("&"==e){Ng(a,14,"");break}if(/(_|\W)/.test(e)){Ng(a,"<"==e?2:1,e);break}f=/\d/.test(e);if(!a.I&&!f){Ng(a,1,e);break}a.h+=e;Dg[a.h]&&(a.aa= |
||||
!0,Ng(a,1,""));break;case 2:if(k){if(">"!=e)break;"br"==a.c&&eh(a.P);a.c="";k=!1;a.b=1;break}if(!a.c&&"<"==e){a.f+="<";break}if(!a.c&&h&&"/"!=e){a.f+="<"+e;a.b=1;break}if(!a.c&&"/"==e){a.b=3;break}if("br"==a.c&&">"==e){eh(a.P);a.c="";a.b=1;break}if("br"==a.c&&("/"==e||f)){k=!0;break}a.c&&Hg(a);if(a.c&&f){a.b=4;break}if(">"==e){Kg(a);break}a.c+=e.toLowerCase();break;case 3:if(k){if(">"!=e)break;Jg(a);k=!1;break}if(!a.w&&h){a.f+="</"+e;a.b=1;break}if(a.w&&f){k=!0;break}if(">"==e){Jg(a);k=!1;break}a.w+= |
||||
e.toLowerCase();break;case 4:if(k){if(">"!=e)break;Kg(a,!0);k=!1;break}if(">"==e){Kg(a,!0);break}if(f){a.b=5;break}if("="==e){a.g&&(a.b="style"==a.g?6:8);break}a.g+=e.toLowerCase();break;case 5:if(">"==e){Kg(a,!0);break}if(f)break;if(a.g&&!h){a.g=e;a.b=4;break}if("="==e){a.g&&(a.b="style"==a.g?6:8);break}a.g+=e;a.b=4;break;case 6:if(f)break;if(">"==e){Kg(a,!0);break}if("'"==e||'"'==e){a.L=e;a.b=9;break}a.i=e;a.b=10;break;case 8:if(f)break;if(">"==e){a.g="";a.c="";a.b=1;break}if("'"==e||'"'==e){a.L= |
||||
e;a.b=7;break}a.b=11;break;case 9:if(f)break;if(e==a.L){k=!0;Lg(a,4,!0);break}if(":"==e){a.b=12;break}a.i+=e.toLowerCase();break;case 12:if(f)break;if(e==a.L){k=!0;Lg(a,4,!0);break}if(";"==e){Lg(a,9);break}a.M+=e.toLowerCase();break;case 7:e==a.L&&(a.g="",a.b=4);break;case 10:if(f){k=!0;Lg(a,4,!0);break}if(">"==e){Mg(a);break}if(":"==e){a.b=13;break}a.i+=e;break;case 11:if(f){Lg(a,4,!0);break}">"==e&&Kg(a);break;case 13:if(f){k=!0;Lg(a,4,!0);break}if(">"==e){Mg(a);break}if(";"==e){Lg(a,10);break}a.M+= |
||||
e.toLowerCase();break;default:throw"Error while parsing HTML: Symbol '"+e+"', position: "+(d-1);}Hg(a);fh(a.P)}else if(this.xa=this.xa.replace(/\xa0|[ \t]+/g," ").replace(/(\r\n|\r|\n)/g,"\n"),c=this.xa.split(/\n/g),1!=c.length||r(this.s.width)||Zg(this))for(b=0;b<c.length;b++)a=xa(c[b]),null!=a&&(""!=a&&Ig(this,a),eh(this));else this.j()||Ke(this,!0),this.D(1024)&&$g(this),a=new Og(this.xa,{}),this.b.push(a),this.c.push(a),a.parent(this),this.D(32)&&this.vc(),b=J().Rf(this.j(),this.xa,this.s),a.f= |
||||
-b.top,a.height=b.height,a.width=b.width,this.I=b.height,this.i=b.width+this.f,this.C=a.f,this.Pb=!this.xa.length,fh(this),this.ec++,a=this.b[0]?this.b[0].height:0,this.pa+=w(this.L)?parseInt(this.L,0)+a:this.L*a;this.f&&0<this.Oa.length&&(a=this.Oa[0][0],this.h?this.s.hAlign&&this.s.hAlign!=U&&"right"!=this.s.hAlign||(a.g-=this.f):this.s.hAlign&&this.s.hAlign!=U&&"left"!=this.s.hAlign||(a.g+=this.f));this.s.width||(this.ia=this.hc);this.s.height||(this.Aa=this.g);Vg(this);Wg(this);this.P=new B(this.Rb, |
||||
this.Sb,this.ia,this.Aa);this.w=!0}};g.La=function(){return J().cd()};g.V=function(){this.w||this.Nb();this.D(64)&&this.ke();this.D(1024)&&$g(this);this.D(32)&&this.vc();this.D(16384)&&this.xd();Pg.m.V.call(this)};g.ke=function(){this.Na&&!this.aa?this.aa=J().If():this.Na||(F(this.aa),this.aa=null);K(this,64)};g.xd=function(){for(var a=0,b=this.c.length;a<b;a++){var c=this.c[a];c.Vb&&J().ff(c)}J().te(this);K(this,16384)};function $g(a){J().Ag(a);K(a,1024)} |
||||
g.vc=function(){this.j()&&ae(this.j());this.aa&&(ae(this.aa),this.j().appendChild(this.aa));for(var a=0,b=this.c.length;a<b;a++){var c=this.c[a];""!=c.text&&(c.Vb=J().$d(),c.Vb&&J().gf(c))}K(this,32)};g.$a=function(){J().Bg(this);K(this,4);K(this,256)};g.H=function(a){this.x(a.x).y(a.y).style(a.style);a.html?this.Rd(a.text):this.text(a.text);Pg.m.H.call(this,a)};g.N=function(){var a=Pg.m.N.call(this);a.type="text";a.x=this.x();a.y=this.y();a.html=this.gc;a.text=this.text();a.style=this.style();return a}; |
||||
g.A=function(){Ec(this.c);delete this.c;delete this.Oa;delete this.P;delete this.P;Pg.m.A.call(this)};var V=Pg.prototype;x("acgraph.vector.Text",Pg);V.text=V.text;V.style=V.style;V.htmlText=V.Rd;V.x=V.x;V.y=V.y;V.fontSize=V.fontSize;V.color=V.color;V.fontFamily=V.fontFamily;V.direction=V.uc;V.fontStyle=V.fontStyle;V.fontVariant=V.fontVariant;V.fontWeight=V.fontWeight;V.letterSpacing=V.letterSpacing;V.decoration=V.Cb;V.opacity=V.opacity;V.lineHeight=V.Sd;V.textIndent=V.Td;V.vAlign=V.xb;V.hAlign=V.Ma; |
||||
V.width=V.width;V.height=V.height;V.getTextHeight=V.Yh;V.getTextWidth=V.Zh;V.wordWrap=V.pf;V.wordBreak=V.Gg;V.textOverflow=V.hb;V.selectable=V.Kc;function uf(a){I.call(this);this.b=r(a)?a:""}z(uf,I);g=uf.prototype;g.fa=function(){return"unmanageable-layer"};g.ba=I.prototype.ba|32;g.qf=function(a){return r(a)?(a!=this.b&&(this.b=a,this.l(32)),this):this.b};g.La=function(){return J().Ac()};g.V=function(){uf.m.V.call(this);if(this.D(32)){var a=this.j();ae(a);w(this.b)?a.innerHTML=this.b:a.appendChild(this.b);K(this,32)}};g.na=function(){return J().Zf(this.b)};g.H=function(a){"content"in a&&this.qf(a.content);uf.m.H.call(this,a)}; |
||||
g.N=function(){var a=uf.m.N.call(this);a.content=w(this.b)?this.b:this.b.outerHTML;return a};var gh=uf.prototype;gh.content=gh.qf;function Df(a,b,c,d,e,f,h,k){a=a.B?a.B():a;if(2>f)return a;h=h||0;var l=db(h,d),m=eb(h,d),p=360/(2*f),t;a.va(l+b,m+c);if(k)for(t=0;t<f;t++){var q=h;h+=p;var v=l,D=m,y=db(q,e),G=eb(q,e),R=db(h,d),N=eb(h,d),l=db(h,e),m=eb(h,e),X=(R-y)*(D-G)-(N-G)*(v-y),X=X/((N-G)*(l-v)-(R-y)*(m-D)),v=hh(e,d,q,h,k,1-X),q=ih(e,d,q,h,k,1-X);a.Pd(b+v,c+q,b+l,c+m);q=h;h+=p;v=l;D=m;y=db(h,e);G=eb(h,e);R=db(q,d);N=eb(q,d);l=db(h,d);m=eb(h,d);X=(R-y)*(D-G)-(N-G)*(v-y);X/=(N-G)*(l-v)-(R-y)*(m-D);v=hh(e,d,h,q,k,X);q=ih(e,d,h, |
||||
q,k,X);a.Pd(b+v,c+q,b+l,c+m)}else for(t=0;t<f;t++)h+=p,l=db(h,e),m=eb(h,e),a.lineTo(b+l,c+m),h+=p,l=db(h,d),m=eb(h,d),a.lineTo(b+l,c+m);a.close();return a}function Ef(a,b,c,d){return Df(a,b,c,d,d/2,4)}function Ff(a,b,c,d){return Df(a,b,c,d,d/2,5,-90)}function Gf(a,b,c,d){return Df(a,b,c,d,.5773502691896258*d,6,-90)}function Hf(a,b,c,d){return Df(a,b,c,d,d/2,7,-90)}function If(a,b,c,d){return Df(a,b,c,d,.8506508083520399*d,10)}function Jf(a,b,c,d){return Df(a,b,c,d,.5*d,3,-90)} |
||||
function Kf(a,b,c,d){return Df(a,b,c,d,.5*d,3,90)}function Lf(a,b,c,d){return Df(a,b,c,d,.5*d,3,0)}function Mf(a,b,c,d){return Df(a,b,c,d,.5*d,3,180)}function Nf(a,b,c,d){return Df(a,b,c,d,d*Math.SQRT1_2,4)}function Of(a,b,c,d){a=a.B?a.B():a;var e=d/4,f=b-d,h=b+d,k=c-d;d=c+d;a.va(b-e,k).lineTo(b-e,c-e).lineTo(f,c-e).lineTo(f,c+e).lineTo(b-e,c+e).lineTo(b-e,d).lineTo(b+e,d).lineTo(b+e,c+e).lineTo(h,c+e).lineTo(h,c-e).lineTo(b+e,c-e).lineTo(b+e,k).close();return a} |
||||
function Pf(a,b,c,d){a=a.B?a.B():a;var e=d*Math.SQRT1_2/2,f=b-d,h=b+d,k=c-d;d=c+d;a.va(f+e,k).lineTo(b,c-e).lineTo(h-e,k).lineTo(h,k+e).lineTo(b+e,c).lineTo(h,d-e).lineTo(h-e,d).lineTo(b,c+e).lineTo(f+e,d).lineTo(f,d-e).lineTo(b-e,c).lineTo(f,k+e).close();return a}function Qf(a,b,c,d){a=a.B?a.B():a;var e=d/4,f=b-d;b+=d;a.va(b,c-e).lineTo(b,c+e).lineTo(f,c+e).lineTo(f,c-e).close();return a} |
||||
function Rf(a,b,c,d){a=a.B?a.B():a;var e=d/4,f=c-d;c+=d;a.va(b-e,f).lineTo(b+e,f).lineTo(b+e,c).lineTo(b-e,c).close();return a}function Sf(a,b,c,d,e,f){a=a.B?a.B():a;f=A(f,-360,360);360==Math.abs(f)?a.zc(b,c,d,d,e,f,!1):a.va(b,c).zc(b,c,d,d,e,f,!0).close();return a}function Tf(a,b,c,d,e,f,h){0>d&&(d=0);0>e&&(e=0);if(d<e){var k=d;d=e;e=k}if(0>=e)return Sf(a,b,c,d,f,h);a=a.B?a.B():a;h=A(h,-360,360);k=360>Math.abs(h);a.zc(b,c,d,d,f,h).zc(b,c,e,e,f+h,-h,k);k&&a.close();return a} |
||||
function hh(a,b,c,d,e,f){a=db(c,a);b=db(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}function ih(a,b,c,d,e,f){a=eb(c,a);b=eb(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}function jh(a){var b,c,d;switch(a.length){case 1:b=c=d=a[0];a.push(b,c,d);break;case 2:c=a[0];d=a[1];a.push(c,d);break;case 3:d=a[1];a.push(d);break;case 4:break;default:a.push(5,5,5,5)}} |
||||
function zf(a,b,c){var d=a.B?a.B():a,e,f,h,k;6==arguments.length?(e=arguments[2],f=arguments[3],h=arguments[4],k=arguments[5],d.va(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).lineTo(b.left+b.width,b.top+f).lineTo(b.left+b.width,b.top+b.height-h).lineTo(b.left+b.width-h,b.top+b.height).lineTo(b.left+k,b.top+b.height).lineTo(b.left,b.top+b.height-k).lineTo(b.left,b.top+e).close()):(k=Xa(arguments,2,6),jh(k),e=k[0],f=k[1],h=k[2],k=k[3],zf(d,b,e,f,h,k));return d} |
||||
function xf(a,b,c){var d=a.B?a.B():a,e,f,h,k;6==arguments.length?(e=arguments[2],f=arguments[3],h=arguments[4],k=arguments[5],d.va(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ra(b.left+b.width,b.top+f,f,f,!1,!0).lineTo(b.left+b.width,b.top+b.height-h).Ra(b.left+b.width-h,b.top+b.height,h,h,!1,!0).lineTo(b.left+k,b.top+b.height).Ra(b.left,b.top+b.height-k,k,k,!1,!0),0!=e&&(d.lineTo(b.left,b.top+e),d.Ra(b.left+e,b.top,e,e,!1,!0)),d.close()):(k=Xa(arguments,2,6),jh(k),e=k[0],f=k[1],h=k[2],k=k[3], |
||||
xf(d,b,e,f,h,k));return d} |
||||
function yf(a,b,c){var d=a.B?a.B():a,e,f,h,k;6==arguments.length?(e=arguments[2],f=arguments[3],h=arguments[4],k=arguments[5],d.va(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ra(b.left+b.width,b.top+f,f,f,!1,!1).lineTo(b.left+b.width,b.top+b.height-h).Ra(b.left+b.width-h,b.top+b.height,h,h,!1,!1).lineTo(b.left+k,b.top+b.height).Ra(b.left,b.top+b.height-k,k,k,!1,!1),0!=e&&d.lineTo(b.left,b.top+e).Ra(b.left+e,b.top,e,e,!1,!1),d.close()):(k=Xa(arguments,2,6),jh(k),e=k[0],f=k[1],h=k[2],k=k[3],yf(d, |
||||
b,e,f,h,k));return d}x("acgraph.vector.primitives.star",Df);x("acgraph.vector.primitives.star4",Ef);x("acgraph.vector.primitives.star5",Ff);x("acgraph.vector.primitives.star6",Gf);x("acgraph.vector.primitives.star7",Hf);x("acgraph.vector.primitives.star10",If);x("acgraph.vector.primitives.diamond",Nf);x("acgraph.vector.primitives.triangleUp",Jf);x("acgraph.vector.primitives.triangleDown",Kf);x("acgraph.vector.primitives.triangleRight",Lf);x("acgraph.vector.primitives.triangleLeft",Mf); |
||||
x("acgraph.vector.primitives.cross",Of);x("acgraph.vector.primitives.diagonalCross",Pf);x("acgraph.vector.primitives.hLine",Qf);x("acgraph.vector.primitives.vLine",Rf);x("acgraph.vector.primitives.pie",Sf);x("acgraph.vector.primitives.donut",Tf);x("acgraph.vector.primitives.truncatedRect",zf);x("acgraph.vector.primitives.roundedRect",xf);x("acgraph.vector.primitives.roundedInnerRect",yf);function kh(a,b,c,d){this.b=a;this.f=b;this.c=c;this.g=d}kh.prototype.clone=function(){return new kh(this.b,this.f,this.c,this.g)};function lh(){rg.call(this)}z(lh,rg);ca(lh);g=lh.prototype;g.ya=null;g.Z=null;g.Jb=null;g.ta=null;g.Gb=null;function mh(a){return n.document.createElementNS("http://www.w3.org/2000/svg",a)} |
||||
g.Va=function(){this.ya=mh("svg");this.Z=this.cd();this.Jb=this.sc("");this.f=this.Yd();this.Z.appendChild(this.Jb);this.ya.appendChild(this.Z);this.ya.appendChild(this.f);n.document.body.appendChild(this.ya);this.c=this.Ac();this.ya.appendChild(this.c);T(this,this.ya,{display:"block",width:0,height:0});this.ta=this.Ac();this.ya.appendChild(this.ta)}; |
||||
g.measure=function(a,b){this.ya||this.Va();var c=null,d=0;if(!a.length)return vg(this,b);if(" "==a)return sg(this,b);a.lastIndexOf(" ",0)||(d+=c=sg(this,b).width);va(a," ")&&(d+=c||sg(this,b).width);b.fontStyle?this.o(this.Z,"font-style",b.fontStyle):this.Z.removeAttribute("font-style");b.fontVariant?this.o(this.Z,"font-variant",b.fontVariant):this.Z.removeAttribute("font-variant");b.fontFamily?this.o(this.Z,"font-family",b.fontFamily):this.Z.removeAttribute("font-family");b.fontSize?this.o(this.Z, |
||||
"font-size",b.fontSize):this.Z.removeAttribute("font-size");b.fontWeight?this.o(this.Z,"font-weight",b.fontWeight):this.Z.removeAttribute("font-weight");b.letterSpacing?this.o(this.Z,"letter-spacing",b.letterSpacing):this.Z.removeAttribute("letter-spacing");b.decoration?this.o(this.Z,"text-decoration",b.decoration):this.Z.removeAttribute("text-decoration");this.Jb.nodeValue=a;c=this.Z.getBBox();this.Jb.nodeValue="";b.fontVariant&&fc&&(this.Jb.nodeValue=a.charAt(0).toUpperCase(),c.height=this.Z.getBBox().height); |
||||
return new B(c.x,c.y,c.width+d,c.height)};g.Rf=function(a,b,c){var d=this.h,e=wg(this,c),f=d[e];f||(f=d[e]={});if(d=f[b])return d;e=null;d=0;if(!b.length)return vg(this,c);if(" "==b)return sg(this,c);b.lastIndexOf(" ",0)||(d+=e=sg(this,c).width);va(b," ")&&(d+=e||sg(this,c).width);e=a.parentNode;this.c.appendChild(a);c=a.getBBox();e&&e.appendChild(a);e=a.getAttribute("x")||0;a=a.getAttribute("y")||0;return f[b]=new B(c.x-e,c.y-a,c.width+d,c.height)}; |
||||
g.Zf=function(a){this.ya||this.Va();w(a)?this.ta.innerHTML=a:(a=a.cloneNode(!0),this.ta.appendChild(a));a=this.ta.getBBox();ae(this.ta);return new B(a.x,a.y,a.width,a.height)};g.rd=function(a,b){this.b||(zg(this),this.b={},Vc(this.Gb,"complete",function(){this.i=!1},!1,this),Vc(this.Gb,"load",this.fi,!1,this));this.b[ia(b)]=[a,b];this.i=!0;qg(this.Gb,a,a);this.Gb.start()}; |
||||
g.fi=function(a){var b=a.target;Sb(this.b,function(a,d){a[0]==b.id&&(a[1].call(this,b.naturalWidth,b.naturalHeight),delete this.b[d])},this)};g.Xf=function(){return this.i};g.cg={1:"M",2:"L",3:"C",4:"A",5:"Z"};g.dg=function(a,b){var c=b[3];a.push(b[0],b[1],0,180<Math.abs(c)?1:0,0<c?1:0,b[4],b[5])};function nh(a){var b=cb(a),c=Math.tan(b);a=1/(2*c);c/=2;.5>=Math.abs(c)?(a=-.5,b=0>Math.cos(b)):(c=-.5,b=0<Math.sin(b));b&&(a=-a,c=-c);return new kh(.5+a,.5+c,.5-a,.5-c)} |
||||
function oh(a,b){var c=a%90,d=cb(a),e=1,f=b.left+b.width/2,h=b.top+b.height/2,k=0>Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=cb(c);d=Math.sin(c)*(b.height/2-Math.tan(c)*b.width/2)+b.width/2/Math.cos(c);e*=Math.cos(c)*d;c=1*Math.sin(c)*d;k&&(e=-e,c=-c);return new kh(Math.round(f-e),Math.round(h+c),Math.round(f+e),Math.round(h-c))} |
||||
g.Hf=function(){var a=mh("svg");E||this.o(a,"xmlns","http://www.w3.org/2000/svg");this.o(a,"border","0");return a};g.Ff=function(){return mh("linearGradient")};g.Df=function(){return mh("pattern")};g.Ef=function(){return mh("image")};g.Ac=function(){return mh("g")};g.Af=function(){return mh("circle")};g.Gf=function(){return mh("path")};g.Cf=function(){return mh("ellipse")};g.Yd=function(){return mh("defs")};g.cd=function(){return mh("text")};g.If=function(){return mh("textPath")};g.$d=function(){return mh("tspan")}; |
||||
g.sc=function(a){return document.createTextNode(String(a))};g.rg=function(a){var b=a.na();T(this,a.j(),{x:b.left,y:b.top,width:b.width,height:b.height,patternUnits:"userSpaceOnUse"})}; |
||||
g.sg=function(a){var b=a.na();this.rd(a.src(),u);var c=a.src()||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",d=a.j();T(this,d,{x:b.left,y:b.top,width:b.width,height:b.height,"image-rendering":"optimizeQuality",preserveAspectRatio:a.align()+" "+a.Yb(),opacity:a.opacity()});d.setAttributeNS("http://www.w3.org/1999/xlink","href",c)};g.og=function(a,b){var c=a.j();c&&(c.style.cursor=b||"")};g.te=function(a){var b=a.j();this.o(b,"x",a.v);this.o(b,"y",a.Ba)}; |
||||
g.Ag=function(a){var b=a.style(),c=Zg(a),d=a.j();if(c&&a.u()){var e=a.u().c;c.parent(e);c.S();K(c,Ge);var f=c.j();e.j().appendChild(f);e=Nb(Mb.oa(),f,"path");Ne(this,f,e);f=ah();a.aa.setAttributeNS("http://www.w3.org/1999/xlink","href",f+"#"+e)}if(a.Kc()){if(d.style["-webkit-touch-callout"]="",d.style["-webkit-user-select"]="",d.style["-khtml-user-select"]="",d.style["-moz-user-select"]="",d.style["-ms-user-select"]="",d.style["-o-user-select"]="",d.style["user-select"]="",E&&9==qc||fc)d.removeAttribute("unselectable"), |
||||
d.removeAttribute("onselectstart")}else if(d.style["-webkit-touch-callout"]="none",d.style["-webkit-user-select"]="none",d.style["-khtml-user-select"]="none",d.style["-moz-user-select"]="moz-none",d.style["-ms-user-select"]="none",d.style["-o-user-select"]="none",d.style["user-select"]="none",E&&9==qc||fc)this.o(d,"unselectable","on"),this.o(d,"onselectstart","return false;");b.fontStyle?this.o(d,"font-style",b.fontStyle):d.removeAttribute("font-style");b.fontVariant?hc?d.style["font-variant"]=b.fontVariant: |
||||
this.o(d,"font-variant",b.fontVariant):hc?d.style["font-variant"]="":d.removeAttribute("font-variant");b.fontFamily?this.o(d,"font-family",b.fontFamily):d.removeAttribute("font-family");b.fontSize?this.o(d,"font-size",b.fontSize):d.removeAttribute("font-size");b.fontWeight?this.o(d,"font-weight",b.fontWeight):d.removeAttribute("font-weight");b.color?this.o(d,"fill",b.color):d.removeAttribute("fill");b.letterSpacing?this.o(d,"letter-spacing",b.letterSpacing):d.removeAttribute("letter-spacing");b.decoration? |
||||
this.o(d,"text-decoration",b.decoration):d.removeAttribute("text-decoration");b.direction?this.o(d,"direction",b.direction):d.removeAttribute("direction");b.hAlign&&!c?this.o(d,"text-anchor","rtl"==b.direction?hc||E?"end"==b.hAlign||"left"==b.hAlign?U:b.hAlign==U||"right"==b.hAlign?"end":"middle":"end"==b.hAlign||"left"==b.hAlign?"end":b.hAlign==U||"right"==b.hAlign?U:"middle":"end"==b.hAlign||"right"==b.hAlign?"end":b.hAlign==U||"left"==b.hAlign?U:"middle"):d.removeAttribute("text-anchor");d.style.opacity= |
||||
b.opacity?b.opacity:"1"};g.ff=function(a){var b=a.j(),c=a.parent();(a.i||a.g)&&this.o(b,"x",Zg(c)?a.g:c.v+a.g);this.o(b,"dy",a.c)}; |
||||
g.gf=function(a){var b=a.b,c=a.j(),d=a.parent(),e=this.sc(a.text);c.appendChild(e);if(E&&9==qc||fc)d.Kc()?(c.removeAttribute("onselectstart"),c.removeAttribute("unselectable")):(this.o(c,"onselectstart","return false;"),this.o(c,"unselectable","on"));b.fontStyle&&this.o(c,"font-style",b.fontStyle);b.fontVariant&&this.o(c,"font-variant",b.fontVariant);b.fontFamily&&this.o(c,"font-family",b.fontFamily);b.fontSize&&this.o(c,"font-size",b.fontSize);b.fontWeight&&this.o(c,"font-weight",b.fontWeight);b.color&& |
||||
this.o(c,"fill",b.color);b.letterSpacing&&this.o(c,"letter-spacing",b.letterSpacing);b.Cb&&this.o(c,"text-decoration",b.Cb);(Zg(a.parent())?a.parent().aa:a.parent().j()).appendChild(c)}; |
||||
function ph(a,b,c){var d=qh(c,b.keys,b.cx,b.cy,b.fx,b.fy,b.opacity,b.mode,b.transform);if(!d.Xc){var e=mh("radialGradient");Ne(a,e,d.id());c.j().appendChild(e);d.rc=c;d.Xc=!0;Na(d.keys,function(a){var b=mh("stop");T(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+(isNaN(a.opacity)?d.opacity:a.opacity)});e.appendChild(b)},a);d.ka?T(a,e,{cx:d.Ab*d.ka.width+d.ka.left,cy:d.Bb*d.ka.height+d.ka.top,fx:d.b*d.ka.width+d.ka.left,fy:d.c*d.ka.height+d.ka.top,r:Math.min(d.ka.width,d.ka.height)/ |
||||
2,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"}):T(a,e,{cx:d.Ab,cy:d.Bb,fx:d.b,fy:d.c,gradientUnits:"objectBoundingBox"});d.transform&&a.o(e,"gradientTransform",d.transform.toString())}return d.id()} |
||||
function rh(a,b,c,d){var e=sh(c,b.keys,b.opacity,!0===b.mode?xg(b.angle,d):b.angle,b.mode,b.transform);if(!e.Wc){var f=a.Ff();Ne(a,f,e.id());c.j().appendChild(f);e.qc=c;e.Wc=!0;Na(e.keys,function(a){var b=mh("stop");T(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+(isNaN(a.opacity)?e.opacity:a.opacity)});f.appendChild(b)},a);e.b?(b=oh(e.ub,e.b),T(a,f,{x1:b.b,y1:b.f,x2:b.c,y2:b.g,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"})):(b=nh(e.ub),T(a,f,{x1:b.b,y1:b.f,x2:b.c,y2:b.g, |
||||
gradientUnits:"objectBoundingBox"}));e.transform&&a.o(f,"gradientTransform",e.transform.toString())}return e.id()} |
||||
function th(a,b){var c=b.Qa(),d=b.u().c,e="url("+ah()+"#";if(w(c))a.o(b.j(),"fill",c),b.j().removeAttribute("fill-opacity");else if(ea(c.keys)&&c.cx&&c.cy)a.o(b.j(),"fill",e+ph(a,c,d)+")"),b.j().removeAttribute("fill-opacity");else if(ea(c.keys))b.qa()&&(a.o(b.j(),"fill",e+rh(a,c,d,b.qa())+")"),b.j().removeAttribute("fill-opacity"));else if(c.src){var f=b.na();f?(f.width=f.width||0,f.height=f.height||0,f.left=f.left||0,f.top=f.top||0):f=new B(0,0,0,0);"tile"==c.mode?uh(d,c.src,f,c.mode,c.opacity, |
||||
function(a){a.id();a.parent(b.u()).S();J().o(b.j(),"fill",e+a.id()+")")}):(d=uh(d,c.src,f,c.mode,c.opacity),d.id(),d.parent(b.u()).S(),a.o(b.j(),"fill",e+d.id()+")"),a.o(b.j(),"fill-opacity",r(c.opacity)?c.opacity:1))}else c instanceof Se?(c=vh(d,c.type,c.color,c.J,c.size),c.id(),c.parent(b.u()).S(),a.o(b.j(),"fill",e+c.id()+")")):c instanceof Fb?(c.id(),c.parent(b.u()).S(),a.o(b.j(),"fill",e+c.id()+")")):(1E-4>=c.opacity&&E&&pc("9")&&(c.opacity=1E-4),T(a,b.j(),{fill:c.color,"fill-opacity":c.opacity}))} |
||||
function wh(a,b){var c=b.vb(),d=b.u().c,e=b.j(),f="url("+ah()+"#";if(w(c))a.o(e,"stroke",c);else if(ea(c.keys)&&c.cx&&c.cy)a.o(e,"stroke",f+ph(a,c,d)+")");else if(ea(c.keys)){if(!b.qa())return;a.o(e,"stroke",f+rh(a,c,d,b.qa())+")")}else a.o(e,"stroke",c.color);c.lineJoin?a.o(e,"stroke-linejoin",c.lineJoin):e.removeAttribute("stroke-linejoin");c.lineCap?a.o(e,"stroke-linecap",c.lineCap):e.removeAttribute("stroke-linecap");c.opacity?a.o(e,"stroke-opacity",c.opacity):e.removeAttribute("stroke-opacity"); |
||||
c.thickness?a.o(e,"stroke-width",c.thickness):e.removeAttribute("stroke-width");c.dash?a.o(e,"stroke-dasharray",c.dash):e.removeAttribute("stroke-dasharray")}g.tf=function(a){th(this,a);wh(this,a)};g.Cg=function(a){a.sb()?a.j().removeAttribute("visibility"):this.o(a.j(),"visibility","hidden")};g.Mb=function(a){var b=a.F;b&&!pb(b)?this.o(a.j(),"transform",b.toString()):a.j().removeAttribute("transform")};g.yg=function(a){var b=a.F;b&&!pb(b)?this.o(a.j(),"patternTransform",b.toString()):a.j().removeAttribute("patternTransform")}; |
||||
g.xg=lh.prototype.Mb;g.tg=lh.prototype.Mb;g.vg=lh.prototype.Mb;g.Bg=lh.prototype.Mb;g.qg=lh.prototype.Mb;g.Bd=function(a,b,c){T(this,a,{width:b,height:c})};g.ue=function(a,b){var c=a.j();c&&(null!=b?(a.ab||(a.ab=mh("title"),this.o(a.ab,"aria-label","")),be(a.ab)||c.insertBefore(a.ab,c.childNodes[0]||null),a.ab.innerHTML=b):a.ab&&c.removeChild(a.ab))}; |
||||
g.pe=function(a,b){var c=a.j();c&&(null!=b?(a.Wa||(a.Wa=mh("desc"),this.o(a.Wa,"aria-label","")),be(a.Wa)||c.insertBefore(a.Wa,c.childNodes[0]||null),a.Wa.innerHTML=b):a.Wa&&c.removeChild(a.Wa))};g.pg=function(a,b){var c=a.j();c&&(b?this.o(c,"vector-effect","non-scaling-stroke"):c.removeAttribute("vector-effect"))};g.ug=u;g.ng=function(a){T(this,a.j(),{cx:a.yb(),cy:a.zb(),r:a.eg()})};g.qe=function(a){T(this,a.j(),{cx:a.yb(),cy:a.zb(),rx:a.Fa(),ry:a.gb()})}; |
||||
g.se=function(a){var b=yg(this,a,!1);b?this.o(a.j(),"d",b):this.o(a.j(),"d","M 0,0")};g.Mf=function(a){for(var b=a.f,c=0;c<b.length;c++)b[c].j()&&xh(b[c]),b[c].Ea(null);a=a.id();if(a=Rd(a)){if(r(a.firstElementChild))b=a.firstElementChild;else for(b=a.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;F(b);F(a)}};function xh(a){a.j().removeAttribute("clip-path");a.j().removeAttribute("clipPathUnits")} |
||||
g.me=function(a){var b=a.Ea();if(b){var c;b instanceof Oe&&(c=b.id());if(!c){c=a.u().c;var d=ef(c,b),e=Nb(Mb.oa(),d,"clip");be(d)!=c.j()&&(this.o(d,"clip-rule","nonzero"),Ne(this,d,e));Ye(b,a.u());b.id(e);b=b.fb();b.S();if(b=b.j())d.appendChild(b),c.j().appendChild(d);c=e}d=ah();T(this,a.j(),{"clip-path":"url("+d+"#"+c+")",clipPathUnits:"userSpaceOnUse"})}else xh(a)};g.zg=function(a){a.Kf()?this.o(a.j(),"pointer-events","none"):a.j().removeAttribute("pointer-events")};function yh(a,b){Fc.call(this,a.type);this.target=zh(a.target,b)||a.target;this.relatedTarget=zh(a.v||null,b)||a.v;this.offsetX=a.W;this.offsetY=a.aa;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.M;this.screenY=a.w;this.button=Ic(a,0)?Ah:Ic(a,1)?Bh:Ic(a,2)?Ch:Dh;this.actionButton=Ic(a,0)&&!(ic&&jc&&a.i);this.keyCode=a.L;this.charCode=a.I;this.ctrlKey=a.i;this.altKey=a.C;this.shiftKey=a.ja;this.metaKey=a.P;this.platformModifierKey=a.Ba;this.f=a}z(yh,Fc); |
||||
var Ah="left",Bh="middle",Ch="right",Dh="none";yh.prototype.b=function(){yh.m.b.call(this);this.f.b()};yh.prototype.g=function(){yh.m.g.call(this);this.f.g()};yh.prototype.i=function(){Fc.prototype.g.call(this)};var Eh=yh.prototype;Eh.stopPropagation=Eh.g;Eh.stopWrapperPropagation=Eh.i;Eh.preventDefault=Eh.b;function Fh(a,b,c){if("function"==da(a))c&&(a=na(a,c));else if(a&&"function"==typeof a.handleEvent)a=na(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:n.setTimeout(a,b||0)};var Kb={usletter:{width:"215.9mm",height:"279.4mm"},a0:{width:"841mm",height:"1189mm"},a1:{width:"594mm",height:"841mm"},a2:{width:"420mm",height:"594mm"},a3:{width:"297mm",height:"420mm"},a4:{width:"210mm",height:"279mm"},a5:{width:"148mm",height:"210mm"},a6:{width:"105mm",height:"148mm"}},Gh={a0:{width:2384,height:3370},a1:{width:1684,height:2384},a2:{width:1191,height:1684},a3:{width:842,height:1191},a4:{width:595,height:842},a5:{width:420,height:595},a6:{width:297,height:420},a7:{width:210,height:297}, |
||||
a8:{width:48,height:210},a9:{width:105,height:148},b0:{width:2834,height:4008},b1:{width:2004,height:2834},b2:{width:1417,height:2004},b3:{width:1E3,height:1417},b4:{width:708,height:1E3},b5:{width:498,height:708},b6:{width:354,height:498},b7:{width:249,height:354},b8:{width:175,height:249},b9:{width:124,height:175},"arch-a":{width:648,height:864},"arch-b":{width:864,height:1296},"arch-c":{width:1296,height:1728},"arch-d":{width:1728,height:2592},"arch-e":{width:2592,height:3456},"crown-octavo":{width:348, |
||||
height:527},"crown-quarto":{width:535,height:697},"demy-octavo":{width:391,height:612},"demy-quarto":{width:620,height:782},"royal-octavo":{width:442,height:663},"royal-quarto":{width:671,height:884},executive:{width:522,height:756},halfletter:{width:396,height:612},ledger:{width:1224,height:792},legal:{width:612,height:1008},letter:{width:612,height:792},tabloid:{width:792,height:1224}},Hh=null,Ih=null; |
||||
function Jh(){if(!Hh){var a=document.createElement("iframe");Hh=a;H(a,{visibility:"hidden",position:"fixed",right:0,bottom:0});document.body.appendChild(a);for(var b=Kh(),c,d=0,e=b.length;d<e;d++)if(c=b[d],c.type==Lh){var f="";c.cssText?f=c.cssText:c.style&&c.style.cssText&&c.selectorText&&(f=c.style.cssText.replace(/\s*-closure-parent-stylesheet:\s*\[object\];?\s*/gi,"").replace(/\s*-closure-rule-index:\s*[\d]+;?\s*/gi,""),f=c.selectorText+" { "+f+" }");Mh(f,a.contentWindow.document)}Mh("body{padding:0;margin:0;height:100%;}@page {size: auto; margin: 0; padding:0}", |
||||
a.contentWindow.document)}return Hh}function Nh(){if(Hh){var a=Hh,b=a.contentWindow;gc?(Ih=n.open(),Ih.document.write(b.document.documentElement.innerHTML),Oh(),Ih.onafterprint=function(){setTimeout(function(){Ih.close()},0)},setTimeout(function(){Ih.focus();Ih.print()},0)):E?setTimeout(function(){H(a,"visibility","");b.onafterprint=Oh;b.focus();b.print()},0):(Fh(Oh,6),b.focus(),b.print())}}function Oh(){Hh&&(document.body.removeChild(Hh),Hh=null)};function Ph(a,b,c,d,e){zc.call(this);this.keys=a;this.opacity=null!=b?A(b,0,1):1;this.ub=null!=c?bb(c):0;this.mode=null!=d?d:!1;this.b=d&&d instanceof B?d:null;this.transform=e?e:null}z(Ph,zc);function Qh(a,b,c,d,e){c=null!=c?bb(c):0;b=null!=b?A(b,0,1):1;var f=!!d;d=null!=d?d instanceof B?d:null:null;var h=[];Na(a,function(a){h.push(""+a.offset+a.color+(a.opacity?a.opacity:null))});return h.join("")+b+c+f+(d?""+d.left+d.top+d.width+d.height:"")+(e?e.toString():"")}g=Ph.prototype;g.Wc=!1;g.qc=null; |
||||
g.id=function(){return this.c||(this.c=Ob(Mb.oa(),this))};g.fa=function(){return"linear-gradient"};g.A=function(){this.qc&&(this.qc.fg(this),this.qc=null);this.transform=this.b=null;delete this.keys;this.mode=!1;Ph.m.A.call(this)};var Rh=Ph.prototype;Rh.dispose=Rh.za;function Sh(a,b,c,d,e,f,h,k){zc.call(this);this.Ab=b;this.Bb=c;this.b=d;this.c=e;this.keys=a;this.opacity=null!=f?A(f,0,1):1;this.ka=h?h:null;this.transform=k?k:null}z(Sh,zc);function Th(a,b,c,d,e,f,h,k){f=null!=f?A(f,0,1):1;var l=[];Na(a,function(a){l.push(""+a.offset+a.color+(a.opacity?a.opacity:1))});return l.join("")+f+b+c+d+e+(h?""+h.left+h.top+h.width+h.height:"")+(k?k.toString():"")}g=Sh.prototype;g.Xc=!1;g.rc=null;g.id=function(){return this.f||(this.f=Ob(Mb.oa(),this))};g.fa=function(){return"radial-gradient"}; |
||||
g.A=function(){this.rc&&(this.rc.gg(this),this.rc=null);this.transform=this.ka=null;delete this.keys;Sh.m.A.call(this)};var Uh=Sh.prototype;Uh.dispose=Uh.za;function Vh(a){zc.call(this);this.f={};this.g={};this.h={};this.b={};this.v=a}z(Vh,zc);g=Vh.prototype;g.kc=null;g.j=function(){return this.kc};g.clear=function(){Xb(this.f);Xb(this.g);Xb(this.h);Xb(this.b);ae(this.kc)}; |
||||
function uh(a,b,c,d,e,f){e=r(e)?e:1;d=null!=d?d:"stretch";var h=[b,c.left,c.top,c.width,c.height,d,e].join(),k=null,l=u;if("tile"==d)l=function(d,k){var l;Vb(a.b,h)?l=a.b[h]:(l=new Fb(new B(c.left,c.top,d,k)),l.tb().src(b).opacity(e).width(d).height(k),a.b[h]=l);f&&f.call(this,l)};else{if(Vb(a.b,h))return a.b[h];k=new Fb(c);switch(d){case "stretch":k.tb().src(b).opacity(e).width(c.width).height(c.height);break;case "fit-max":k.tb().src(b).opacity(e).width(c.width).height(c.height).align("x-mid-y-mid").Yb("slice"); |
||||
break;case "fit":k.tb().src(b).opacity(e).width(c.width).height(c.height).align("x-mid-y-mid")}a.b[h]=k}J().rd(b,l);l=null;return a.b[h]}function vh(a,b,c,d,e){b=null!=b?b:"backward-diagonal";c=null!=c?c:"black";d=null!=d?d:1;e=null!=e?e:10;var f=[b,c,d,e].join();return Vb(a.h,f)?a.h[f]:a.h[f]=new Se(b,c,d,e)}function sh(a,b,c,d,e,f){var h=Qh(b,c,d,e,f);return Vb(a.f,h)?a.f[h]:a.f[h]=new Ph(b,c,d,e,f)} |
||||
g.fg=function(a){var b=Qh(a.keys,a.opacity,a.ub,a.mode,a.transform);Vb(this.f,b)&&Yb(this.f,b);a=Rd(a.id());F(a)};function qh(a,b,c,d,e,f,h,k,l){var m=Th(b,c,d,e,f,h,k,l);return Vb(a.g,m)?a.g[m]:a.g[m]=new Sh(b,c,d,e,f,h,k,l)}g.gg=function(a){var b=Th(a.keys,a.Ab,a.Bb,a.b,a.c,a.opacity,a.ka,a.transform);Vb(this.g,b)&&Yb(this.g,b);a=Rd(a.id());F(a)};g.S=function(){this.kc=J().Yd();this.v.j().appendChild(this.j())};g.ib=function(a){a.Pa();He(a,this);return this}; |
||||
g.removeChild=function(a){He(a,null);F(a.j());return a};g.ca=function(){return null};g.Ic=u;g.u=function(){return this.v};g.l=u;g.A=function(){F(this.kc);this.kc=null;Ec(this.f);Ec(this.g);Ec(this.b);delete this.v};function Wh(a,b,c){je.call(this);this.wd=na(this.wd,this);this.Ta=na(this.Ta,this);var d=n.document;n.acgraph.ze||(n.acgraph.ze={});var e=Nb(Mb.oa(),this,"stage");n.acgraph.ze[e]=this;this.I={};this.f=new ge(this);this.g=d.createElement("DIV");H(this.g,{position:"relative",left:0,top:0,overflow:"hidden"});this.h=J().Hf();Me(this);J().Bd(this.h,"100%","100%");H(this.h,"display","block");var f=this.h;if(f.classList)f.classList.add("anychart-ui-support");else{var h;f.classList?h=!f.classList.contains("anychart-ui-support"): |
||||
(f.classList?h=f.classList:(h=f.className,h=w(h)&&h.match(/\S+/g)||[]),h=!(0<=Ma(h,"anychart-ui-support")));h&&(f.className+=0<f.className.length?" anychart-ui-support":"anychart-ui-support")}this.g.appendChild(this.h);this.h.setAttribute("ac-id",e);this.i=[];this.c=this.v();this.c.S();this.b=new Q;He(this.b,this).S();this.h.appendChild(this.b.j());J().Va();this.f.R(this.j(),"mousedown mouseover mouseout click dblclick touchstart touchend touchcancel MSPointerDown MSPointerUp pointerdown pointerup contextmenu".split(" "), |
||||
this.Za,!1);Xh(this,b||"100%");Yh(this,c||"100%");(this.sa=w(a)?d.getElementById(a):a)&&Zh(this);this.Ta(!0,!0);this.ra()}z(Wh,je);var Le=1;g=Wh.prototype;g.ia=NaN;g.Aa=NaN;g.md=NaN;g.ld=NaN;g.ed=NaN;g.dd=NaN;g.qd=100;g.Xb=NaN;g.Ga=0;Wh.prototype.pathToRadialGradientImage="RadialGradient.png";g=Wh.prototype;g.wb=void 0;g.Nc=1;g.sa=null;g.ab=null;g.Zc=void 0;g.Wa=null;g.Yc=void 0;g.Ud=!1;g.Ub=!1; |
||||
g.id=function(a){if(r(a))return a=a||"",this.wb!=a&&(this.wb=a,Ne(J(),this.h,this.wb)),this;r(this.wb)||this.id(Ob(Mb.oa(),this));return this.wb};g.u=function(){return this};g.parent=function(){return this};g.j=function(){return this.h};g.width=function(a){return r(a)?(Xh(this,a)&&this.Ta(!0),this):this.ia||0};g.height=function(a){return r(a)?(Yh(this,a)&&this.Ta(!0),this):this.Aa||0};g.tc=function(a,b){var c=Xh(this,a),d=Yh(this,b);(c||d)&&this.Ta(!0)}; |
||||
g.di=function(a){return r(a)?(a=parseFloat(a),0<=a&&(this.qd>a&&!isNaN(this.Xb)&&clearTimeout(this.Xb),this.qd=a,this.Ta(!0)),this):this.qd};g.yf=function(a){return r(a)?(a=Rd(a||null),this.sa!=a&&(this.sa=a,Zh(this),this.Ta(!0),this.S()),this):this.sa?this.g:null};g.Ph=function(){return this.sa};g.Rh=function(){return this.g};g.wa=function(){this.Nc++;return this};g.ra=function(a){this.Nc=a?0:Math.max(this.Nc-1,0);this.S();return this};g.Bh=function(a){return r(a)?(this.Ud=!!a,this):this.Ud}; |
||||
g.ea=function(){return!!this.Nc};g.Zg=function(){return this.Ub};g.qh=function(a){return r(a)?(this.Zc!=a&&(this.Zc=a,J().ue(this,this.Zc)),this):this.Zc};g.Ng=function(a){return r(a)?(this.Yc!=a&&(this.Yc=a,J().pe(this,this.Yc)),this):this.Yc};g.sb=function(a){if(!arguments.length)return this.b.sb();this.b.sb(a);return this}; |
||||
g.data=function(a){if(arguments.length){var b,c=a.type;if(c)switch(c){case "rect":b=this.rect();break;case "circle":b=this.hf();break;case "ellipse":b=this.jf();break;case "image":b=this.lf();break;case "text":b=this.text();break;case "path":b=this.B();break;case "layer":b=this.mf();break;default:b=null}else this.H(a);b&&b.H(a);return this}b=this.b.N();this.wb&&(b.id=this.wb);b.width=this.ed;b.height=this.dd;delete b.type;return b};g.Pa=function(){return this.yf(null)};g.Tg=function(){return 0}; |
||||
g.Ug=function(){return 0};g.kf=function(){return new B(0,0,this.width(),this.height())};g.Ea=function(a){return this.b.Ea(a)};g.Oh=function(){return this.I};g.fa=function(){return"stage"};g.Ic=function(a){this.b.Ic(a)};g.yc=u; |
||||
g.Ta=function(a,b){a&&!isNaN(this.Xb)&&clearTimeout(this.Xb);this.Xb=NaN;var c,d;c=isNaN(this.md);d=isNaN(this.ld);var e=c||d,f;if(e){var h=this.sa?ue(this.sa):new ib(NaN,NaN);h.width=Math.max(h.width||0,0);h.height=Math.max(h.height||0,0);f=!h.width&&!h.height;c=c?h.width:this.md;d=d?h.height:this.ld}else c=this.md,d=this.ld,f=!1;c==this.ia&&d==this.Aa||f||(this.ia=c,this.Aa=d,b||this.G("stageresize"));this.sa&&e&&!n.isNodeJS&&(this.Xb=setTimeout(this.Ta,this.qd))}; |
||||
function Xh(a,b){if(a.ed!=b){var c=parseFloat(b);if(!isNaN(c))return a.ed=ga(b)?b:String(b),a.md=w(b)&&va(b,"%")?NaN:c,a.g.style.width=qe(a.ed,!0),!0}return!1}function Yh(a,b){if(a.dd!=b){var c=parseFloat(b);if(!isNaN(c))return a.dd=ga(b)?b:String(b),a.ld=w(b)&&va(b,"%")?NaN:c,a.g.style.height=qe(a.dd,!0),!0}return!1}g.Eh=function(){this.c.clear()};g.H=function(a){this.width(a.width);this.height(a.height);a.type="layer";this.b.H(a);this.b.id("");"id"in a&&this.id(a.id)}; |
||||
g.sf=function(a){this.Ga+=a;return a};g.yh=function(a){a=Math.min(500-this.Ga,a);this.Ga+=a;return a};g.wc=Wh.prototype.sf;g.S=function(){if(!this.Nc&&this.sa&&!this.Ub)if(this.Ub=!0,this.G("renderstart"),this.Ga=0,this.Ud)this.wc=this.yh,setTimeout(this.wd,0);else{this.wc=this.sf;this.V();if(this.b.Ha)throw vc(6);$h(this)}};function Zh(a){a.sa?a.g.parentNode!=a.sa&&a.sa.appendChild(a.g):F(a.g)}g.wd=function(){this.V();this.b.Ha?setTimeout(this.wd,0):$h(this)}; |
||||
g.V=function(){if(this.i&&this.i.length){for(var a=0;a<this.i.length;a++){var b=this.i[a];b.g&&b.S()}this.i.length=0}this.b.Ha&&this.b.S();this.L&&this.L().S()};function $h(a){a.Ub=!1;a.G("renderfinish");var b=zg(J()),c=J().Xf();b&&c?a.C||(a.C=bd(b,"complete",function(){this.C=null;this.Ub||this.G("stagerendered")},!1,a)):a.G("stagerendered")}g.l=function(){};g.D=function(a){return this.b.D(a)};g.mf=Q.prototype.Md;g.wh=Q.prototype.df;g.text=Q.prototype.text;g.Xg=Q.prototype.Me;g.rect=Q.prototype.rect; |
||||
g.lf=Q.prototype.tb;g.hh=Q.prototype.Re;g.gh=Q.prototype.Qe;g.vh=Q.prototype.cf;g.hf=Q.prototype.Jd;g.jf=Q.prototype.Kd;g.B=Q.prototype.B;g.ih=Q.prototype.Se;g.kh=Q.prototype.Ue;g.lh=Q.prototype.Ve;g.mh=Q.prototype.We;g.nh=Q.prototype.Xe;g.jh=Q.prototype.Te;g.uh=Q.prototype.bf;g.rh=Q.prototype.Ze;g.th=Q.prototype.af;g.sh=Q.prototype.$e;g.Pg=Q.prototype.He;g.Mg=Q.prototype.Fe;g.Og=Q.prototype.Ge;g.Vg=Q.prototype.Ke;g.xh=Q.prototype.ef;g.bh=Q.prototype.Ne;g.Qg=Q.prototype.Ie; |
||||
g.Bf=function(a,b,c,d){return new Oe(this,a,b,c,d)};g.ah=function(a){return new Fb(a)};g.ci=function(a,b,c,d){return Lb(a,b,c,d)};g.$g=function(){return this.b.b.length};g.ib=function(a){this.b.ib(a);return this};g.Lg=function(a,b){this.b.Id(a,b);return this};g.Sg=function(a){return this.b.Je(a)};g.removeChild=function(a){return this.b.removeChild(a)};g.eh=function(a){return this.b.Nd(a)};g.fh=function(){return this.b.Oe()};g.Wg=function(a){return this.b.Le(a)};g.Yg=function(a){return this.b.pc(a)}; |
||||
g.oh=function(a,b){this.b.Ye(a,b);return this};g.ph=function(a,b){this.b.Od(a,b);return this};g.Rg=function(a,b){this.b.Ld(a,b);return this};g.rb=function(a,b,c){this.b.rb(a,b,c);return this};g.Jc=function(a,b){this.b.Jc(a,b);return this};g.zd=function(a,b,c){this.b.zd(a,b,c);return this};g.Ad=function(a,b){this.b.Ad(a,b);return this};g.Tb=function(a,b){this.b.Tb(a,b);return this};g.nc=function(a,b){this.b.nc(a,b);return this};g.mc=function(a,b,c,d){this.b.mc(a,b,c,d);return this}; |
||||
g.yd=function(a,b,c){this.b.yd(a,b,c);return this};g.$c=function(a,b,c,d,e,f){this.b.$c(a,b,c,d,e,f);return this};g.Lc=function(a,b,c,d,e,f){this.b.Lc(a,b,c,d,e,f);return this};g.$b=function(){return this.b.$b()};g.nd=function(){return this.b.nd()};g.ca=function(){return null};g.G=function(a){w(a)?a=a.toLowerCase():"type"in a&&(a.type=String(a.type).toLowerCase());return Wh.m.G.call(this,a)};g.R=function(a,b,c,d){return Wh.m.R.call(this,String(a).toLowerCase(),b,c,d)}; |
||||
g.kb=function(a,b,c,d){return Wh.m.kb.call(this,String(a).toLowerCase(),b,c,d)};g.ua=function(a,b,c,d){return Wh.m.ua.call(this,String(a).toLowerCase(),b,c,d)};g.nb=function(a){r(a)&&(a=String(a).toLowerCase());return Wh.m.nb.call(this,a)}; |
||||
g.Za=function(a){var b=new yh(a,this);if(b.target instanceof I){b.target.G(b);var c=b.type;b.pa&&a.b();b.relatedTarget instanceof I&&b.relatedTarget.u()==this||("mouseover"==c?this.f.R(document,"mousemove",this.Za,!1):"mouseout"==c&&this.f.ua(document,"mousemove",this.Za,!1));switch(c){case "mousedown":this.f.R(document,"mouseup",this.Za,!1);break;case "mouseup":this.f.ua(document,"mouseup",this.Za,!1);break;case "touchstart":this.f.R(document,"touchmove",this.Za,!1);break;case "touchend":this.f.ua(document, |
||||
"touchmove",this.Za,!1);break;case "pointerdown":this.f.R(document,"pointermove",this.Za,!1);break;case "pointerup":this.f.ua(document,"pointermove",this.Za,!1)}}};g.A=function(){Wh.m.A.call(this);Dc(this.f);this.f=null;Dc(this.b);this.V();delete this.b;Dc(this.c);delete this.c;Re(this);F(this.g);this.sa=null;delete this.g;this.h=null;var a=J();F(a.Z);F(a.Jb);F(a.f);F(a.c);F(a.ta);F(a.ya);a.Z=null;a.Jb=null;a.f=null;a.c=null;a.ta=null;a.ya=null;this.w&&(this.w.za(),this.w=null)};var W=Wh.prototype; |
||||
x("acgraph.vector.Stage",Wh);W.id=W.id;W.container=W.yf;W.getContainerElement=W.Ph;W.getDomWrapper=W.Rh;W.maxResizeDelay=W.di;W.dispose=W.za;W.getBounds=W.kf;W.layer=W.mf;W.unmanagedLayer=W.wh;W.circle=W.hf;W.ellipse=W.jf;W.rect=W.rect;W.truncatedRect=W.vh;W.roundedRect=W.hh;W.roundedInnerRect=W.gh;W.path=W.B;W.star=W.ih;W.star4=W.kh;W.star5=W.lh;W.star6=W.mh;W.star7=W.nh;W.star10=W.jh;W.diamond=W.Pg;W.triangleUp=W.uh;W.triangleDown=W.rh;W.triangleRight=W.th;W.triangleLeft=W.sh;W.cross=W.Mg; |
||||
W.diagonalCross=W.Og;W.hLine=W.Vg;W.vLine=W.xh;W.pie=W.bh;W.donut=W.Qg;W.text=W.text;W.html=W.Xg;W.image=W.lf;W.data=W.data;W.pattern=W.ah;W.hatchFill=W.ci;W.clearDefs=W.Eh;W.numChildren=W.$g;W.addChild=W.ib;W.addChildAt=W.Lg;W.removeChild=W.removeChild;W.removeChildAt=W.eh;W.removeChildren=W.fh;W.swapChildren=W.oh;W.swapChildrenAt=W.ph;W.getChildAt=W.Sg;W.hasChild=W.Wg;W.forEachChild=W.Rg;W.indexOfChild=W.Yg;W.getX=W.Tg;W.getY=W.Ug;W.width=W.width;W.height=W.height;W.getBounds=W.kf;W.resize=W.tc; |
||||
W.asyncMode=W.Bh;W.resume=W.ra;W.suspend=W.wa;W.isRendering=W.Zg;W.isSuspended=W.ea;W.remove=W.Pa;W.domElement=W.j;W.visible=W.sb;W.rotate=W.rb;W.rotateByAnchor=W.Jc;W.setRotation=W.zd;W.setRotationByAnchor=W.Ad;W.translate=W.Tb;W.setPosition=W.nc;W.scale=W.mc;W.scaleByAnchor=W.yd;W.appendTransformationMatrix=W.$c;W.setTransformationMatrix=W.Lc;W.getRotationAngle=W.$b;W.getTransformationMatrix=W.nd;W.clip=W.Ea;W.createClip=W.Bf;W.parent=W.parent;W.getStage=W.u;W.listen=W.R;W.listenOnce=W.kb; |
||||
W.unlisten=W.ua;W.unlistenByKey=W.Ed;W.removeAllListeners=W.nb;W.title=W.qh;W.desc=W.Ng;W.getCharts=W.Oh;function ai(a){Vh.call(this,a);this.c={}}z(ai,Vh);ai.prototype.clear=function(){Xb(this.c);ai.m.clear.call(this)};function ef(a,b){var c=Nb(Mb.oa(),b),d=a.c[c];if(!d){var d=a.c,e;J();e=mh("clipPath");d[c]=d=e}return d}ai.prototype.A=function(){ai.m.A.call(this);for(var a in this.c)delete this.c[a];delete this.c};function bi(a,b,c){Wh.call(this,a,b,c)}z(bi,Wh);bi.prototype.v=function(){return new ai(this)};var Lh=5;function Kh(){for(var a=document.styleSheets,b=[],c=ci(a),d=0;a=c[d];d++){var e=di(a);if(e&&e.length)for(var f=0,h=0,k=e.length,l;h<k;h++)l=e[h],l.href||(l.style&&(l.parentStyleSheet||(l.style["-closure-parent-stylesheet"]=a),l.style["-closure-rule-index"]=f),b.push(l)),f++}return b}function di(a){var b=null;try{b=a.cssRules||a.rules}catch(c){if(15==c.code)throw c.styleSheet=a,c;}return b} |
||||
function ci(a){var b=[];a=a||document.styleSheets;var c=r(void 0)?void 0:!1;if(a.imports&&a.imports.length)for(var d=0,e=a.imports.length;d<e;d++)Va(b,ci(a.imports[d]));else if(a.length)for(d=0,e=a.length;d<e;d++)Va(b,ci(a[d]));else{var f=di(a);if(f&&f.length)for(var d=0,e=f.length,h;d<e;d++)h=f[d],h.styleSheet&&Va(b,ci(h.styleSheet))}!(a.type||a.rules||a.cssRules)||a.disabled&&!c||b.push(a);return b};var ei={};function Me(a){var b=a.j();if(b){var c=String(ia(a));ei[c]=a;b.setAttribute("data-ac-wrapper-id",c)}}function Re(a){delete ei[String(ia(a))];(a=a.j())&&a.removeAttribute("data-ac-wrapper-id")}function zh(a,b){for(var c,d=b.j().parentNode;a&&a!=d;){c=a.getAttribute&&a.getAttribute("data-ac-wrapper-id")||null;if(null!=c)break;a=a.parentNode}return(c=ei[c||""]||null)&&c.j()==a?c:null}var fi=null,fi=E&&!pc("9")?"vml":"svg"; |
||||
function J(){if(!qa)if("vml"==fi){var a=n.acgraph.vml;if(a)qa=a.getRenderer();else throw Error("VML module should be included to render AnyChart in IE8-");}else qa=lh.oa();return qa}function gi(a,b,c){if("vml"==fi){var d=n.acgraph.vml;if(d)a=new d.Stage(a,b,c);else throw Error("VML module should be included to render AnyChart in IE8-");}else a=new bi(a,b,c);return a} |
||||
function Mh(a,b){var c;if(a){c=Xd("STYLE");c.type="text/css";c.styleSheet?c.styleSheet.cssText=a:c.appendChild(document.createTextNode(String(a)));var d=Td("head",b)[0];d.insertBefore(c,d.childNodes[0]||null)}}n.acgraph=n.acgraph||{};n.acgraph.fontSize="10px";n.acgraph.fontColor="#000";n.acgraph.textDirection="ltr";n.acgraph.fontFamily="Verdana";function cf(a,b,c,d){return new Ze(a,b,c,d)}function Af(a,b,c){return new We(a,b,c)}function tf(){return new Q} |
||||
function Bf(a,b,c,d){return new Ue(a,b,c,d)}function Cf(){return new $e}function wf(a,b,c,d,e){return new ig(a,b,c,d,e)}function vf(a,b,c,d){if("vml"==fi){var e=n.acgraph.vml;if(e)a=new e.Text(a,b);else throw Error("VML module should be included to render AnyChart in IE8-");}else a=new Pg(a,b);d&&a.style(d);c&&a.text(c);return a}function Lb(a,b,c,d){return new Se(a,b,c,d)}function Gb(a){return new Fb(a)} |
||||
function Qe(a,b,c,d){if("vml"==fi){var e=n.acgraph.vml;if(e)return new e.Clip(null,a,b,c,d);throw Error("VML module should be included to render AnyChart in IE8-");}return new Oe(null,a,b,c,d)}var hi=void 0;function ah(){return r(hi)?hi:E&&pc("9")&&!pc("10")?hi="":hi=sa||null===sa&&Td("base",void 0).length?n.location.origin+n.location.pathname+n.location.search:""}x("acgraph.create",gi);x("acgraph.getStage",function(a){return n.acgraph.ze[a]});x("acgraph.type",function(){return fi}); |
||||
x("acgraph.rect",cf);x("acgraph.circle",Af);x("acgraph.ellipse",Bf);x("acgraph.path",Cf);x("acgraph.text",vf);x("acgraph.layer",tf);x("acgraph.image",wf);x("acgraph.hatchFill",Lb);x("acgraph.patternFill",Gb);x("acgraph.clip",Qe);x("acgraph.useAbsoluteReferences",function(a){if(r(a))sa=a;else return!!ah()}); |
||||
x("acgraph.updateReferences",function(){var a=hi;hi=void 0;if(r(a)&&ah()!=a){var b=J(),c;for(c in ei)if(ei.hasOwnProperty(c)){var a=ei[c],d=a.u();d&&(a instanceof I&&(d.ea()?a.l(512):a.D(512)||b.me(a)),a instanceof Pe&&(d.ea()?a.l(24):(a.D(8)||th(b,a),a.D(16)||wh(b,a))))}}});function ii(a){if(a.Ia&&"function"==typeof a.Ia)return a.Ia();if(w(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Tb(a)}function ji(a){if(a.Ya&&"function"==typeof a.Ya)return a.Ya();if(!a.Ia||"function"!=typeof a.Ia){if(fa(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Ub(a)}} |
||||
function ki(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(fa(a)||w(a))Na(a,b,void 0);else for(var c=ji(a),d=ii(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};function li(a,b){this.c={};this.b=[];this.g=this.f=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof li?(c=a.Ya(),d=a.Ia()):(c=Ub(a),d=Tb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}g=li.prototype;g.Ia=function(){mi(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.c[this.b[b]]);return a};g.Ya=function(){mi(this);return this.b.concat()};g.Ib=function(){return!this.f}; |
||||
g.clear=function(){this.c={};this.g=this.f=this.b.length=0};function mi(a){if(a.f!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];ni(a.c,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.f!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],ni(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}g.get=function(a,b){return ni(this.c,a)?this.c[a]:b};g.set=function(a,b){ni(this.c,a)||(this.f++,this.b.push(a),this.g++);this.c[a]=b}; |
||||
g.forEach=function(a,b){for(var c=this.Ya(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new li(this)};function ni(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var oi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function vi(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,h=null;0<=e?(f=c[d].substring(0,e),h=c[d].substring(e+1)):f=c[d];b(f,h?decodeURIComponent(h.replace(/\+/g," ")):"")}};function wi(a,b){this.f=this.v=this.c="";this.i=null;this.h=this.Na="";this.b=!1;var c;a instanceof wi?(this.b=r(b)?b:a.b,xi(this,a.c),this.v=a.v,this.f=a.f,yi(this,a.i),this.Na=a.Na,zi(this,a.g.clone()),this.h=a.h):a&&(c=String(a).match(oi))?(this.b=!!b,xi(this,c[1]||"",!0),this.v=Ai(c[2]||""),this.f=Ai(c[3]||"",!0),yi(this,c[4]),this.Na=Ai(c[5]||"",!0),zi(this,c[6]||"",!0),this.h=Ai(c[7]||"")):(this.b=!!b,this.g=new Bi(null,0,this.b))} |
||||
wi.prototype.toString=function(){var a=[],b=this.c;b&&a.push(Ci(b,Di,!0),":");var c=this.f;if(c||"file"==b)a.push("//"),(b=this.v)&&a.push(Ci(b,Di,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.i,null!=c&&a.push(":",String(c));if(c=this.Na)this.f&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ci(c,"/"==c.charAt(0)?Ei:Fi,!0));(c=this.g.toString())&&a.push("?",c);(c=this.h)&&a.push("#",Ci(c,Gi));return a.join("")};wi.prototype.clone=function(){return new wi(this)}; |
||||
function xi(a,b,c){a.c=c?Ai(b,!0):b;a.c&&(a.c=a.c.replace(/:$/,""))}function yi(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.i=b}else a.i=null}function zi(a,b,c){b instanceof Bi?(a.g=b,Hi(a.g,a.b)):(c||(b=Ci(b,Ii)),a.g=new Bi(b,0,a.b))}function Ai(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Ci(a,b,c){return w(a)?(a=encodeURI(a).replace(b,Ji),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null} |
||||
function Ji(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Di=/[#\/\?@]/g,Fi=/[\#\?:]/g,Ei=/[\#\?]/g,Ii=/[\#\?@]/g,Gi=/#/g;function Bi(a,b,c){this.c=this.b=null;this.f=a||null;this.g=!!c}function Ki(a){a.b||(a.b=new li,a.c=0,a.f&&vi(a.f,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))} |
||||
function Li(a){var b=ji(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new Bi(null,0,void 0);a=ii(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];ea(f)?Mi(c,e,f):c.add(e,f)}return c}g=Bi.prototype;g.add=function(a,b){Ki(this);this.f=null;a=Ni(this,a);var c=this.b.get(a);c||this.b.set(a,c=[]);c.push(b);this.c+=1;return this}; |
||||
function Oi(a,b){Ki(a);b=Ni(a,b);if(ni(a.b.c,b)){a.f=null;a.c-=a.b.get(b).length;var c=a.b,d=b;ni(c.c,d)&&(delete c.c[d],c.f--,c.g++,c.b.length>2*c.f&&mi(c))}}g.clear=function(){this.b=this.f=null;this.c=0};g.Ib=function(){Ki(this);return 0==this.c};function Pi(a,b){Ki(a);b=Ni(a,b);return ni(a.b.c,b)}g.Ya=function(){Ki(this);for(var a=this.b.Ia(),b=this.b.Ya(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c}; |
||||
g.Ia=function(a){Ki(this);var b=[];if(w(a))Pi(this,a)&&(b=Ta(b,this.b.get(Ni(this,a))));else{a=this.b.Ia();for(var c=0;c<a.length;c++)b=Ta(b,a[c])}return b};g.set=function(a,b){Ki(this);this.f=null;a=Ni(this,a);Pi(this,a)&&(this.c-=this.b.get(a).length);this.b.set(a,[b]);this.c+=1;return this};g.get=function(a,b){var c=a?this.Ia(a):[];return 0<c.length?String(c[0]):b};function Mi(a,b,c){Oi(a,b);0<c.length&&(a.f=null,a.b.set(Ni(a,b),Ua(c)),a.c+=c.length)} |
||||
g.toString=function(){if(this.f)return this.f;if(!this.b)return"";for(var a=[],b=this.b.Ya(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Ia(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.f=a.join("&")};g.clone=function(){var a=new Bi;a.f=this.f;this.b&&(a.b=this.b.clone(),a.c=this.c);return a};function Ni(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c} |
||||
function Hi(a,b){b&&!a.g&&(Ki(a),a.f=null,a.b.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(Oi(this,b),Mi(this,c,a))},a));a.g=b};function Qi(a){var b;b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,a||Qi),b=String(b.stack);else{try{throw b;}catch(c){b=c}b=(b=b.stack)?String(b):null}b||(b=Ri(a||arguments.callee.caller,[]));return b} |
||||
function Ri(a,b){var c=[];if(0<=Ma(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Si(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Si(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(Ri(a.caller, |
||||
b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Si(a){if(Ti[a])return Ti[a];a=String(a);if(!Ti[a]){var b=/function ([^\(]+)/.exec(a);Ti[a]=b?b[1]:"[Anonymous]"}return Ti[a]}var Ti={};function Ui(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function Vi(a){a=String(a);if(Ui(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function Wi(){je.call(this);this.c="closure_frame"+Xi++;this.f=[];Yi[this.c]=this}var Zi;z(Wi,je);var Yi={},Xi=0; |
||||
function $i(a,b){var c=new Wi;Vc(c,"ready",c.za,!1,c);if(c.lb)throw Error("[goog.net.IframeIo] Unable to send, already active.");var d=new wi(a);c.Vf=d;if(!Zi){Zi=Xd("FORM");Zi.acceptCharset="utf-8";var e=Zi.style;e.position="absolute";e.visibility="hidden";e.top=e.left="-10px";e.width=e.height="10px";e.overflow="hidden";document.body.appendChild(Zi)}c.$=Zi;b&&aj(c.$,b);c.$.action=d.toString();c.$.method="POST";c.lb=!0;c.Fb=c.c+"_"+(c.ei++).toString(36);d={name:c.Fb,id:c.Fb};E&&7>Number(lc)&&(d.src= |
||||
'javascript:""');c.da=Od(c.$).c("IFRAME",d);d=c.da.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";ic?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");if(E&&!pc("11")){c.$.target=c.Fb||"";Od(c.$).b.body.appendChild(c.da);Vc(c.da,"readystatechange",c.je,!1,c);try{c.b=!1,c.$.submit()}catch(ra){cd(c.da,"readystatechange",c.je,!1,c),bj(c)}}else{Od(c.$).b.body.appendChild(c.da);var d=c.Fb+"_inner",e=ce(c.da),f;document.baseURI?(f=za(d),od("Short HTML snippet, input escaped, safe URL, for performance"), |
||||
f='<head><base href="'+za(document.baseURI)+'"></head><body><iframe id="'+f+'" name="'+f+'"></iframe>',f=Gd(f,null)):(f=za(d),od("Short HTML snippet, input escaped, for performance"),f=Gd('<body><iframe id="'+f+'" name="'+f+'"></iframe>',null));fc&&!ic?e.documentElement.innerHTML=Ed(f):e.write(Ed(f));Vc(e.getElementById(d),"load",c.td,!1,c);var h=Sd("TEXTAREA",c.$);f=0;for(var k=h.length;f<k;f++){var l=h[f].value,m=[];fe(h[f],m,!1);if(m.join("")!=l){var m=h[f],p=l;if("textContent"in m)m.textContent= |
||||
p;else if(3==m.nodeType)m.data=p;else if(m.firstChild&&3==m.firstChild.nodeType){for(;m.lastChild!=m.firstChild;)m.removeChild(m.lastChild);m.firstChild.data=p}else ae(m),m.appendChild(Qd(m).createTextNode(String(p)));h[f].value=l}}h=e.importNode(c.$,!0);h.target=d;h.action=c.$.action;e.body.appendChild(h);l=Sd("SELECT",c.$);m=Sd("SELECT",h);f=0;for(k=l.length;f<k;f++)for(var p=Sd("OPTION",l[f]),t=Sd("OPTION",m[f]),q=0,v=p.length;q<v;q++)t[q].selected=p[q].selected;l=Sd("INPUT",c.$);m=Sd("INPUT", |
||||
h);f=0;for(k=l.length;f<k;f++)if("file"==l[f].type&&l[f].value!=m[f].value){c.$.target=d;h=c.$;break}try{c.b=!1,h.submit(),e.close(),hc&&Fh(c.Eg,250,c)}catch(ra){var D;try{var y;var G=ba("window.location.href");if(w(ra))y={message:ra,name:"Unknown error",lineNumber:"Not available",fileName:G,stack:"Not available"};else{var R,N;f=!1;try{R=ra.lineNumber||ra.oj||"Not available"}catch(af){R="Not available",f=!0}try{N=ra.fileName||ra.filename||ra.sourceURL||n.$googDebugFname||G}catch(af){N="Not available", |
||||
f=!0}y=!f&&ra.lineNumber&&ra.fileName&&ra.stack&&ra.message&&ra.name?ra:{message:ra.message||"Not available",name:ra.name||"UnknownError",lineNumber:R,fileName:N,stack:ra.stack||"Not available"}}var X;var ua=y.fileName;null!=ua||(ua="");if(/^https?:\/\//i.test(ua)){var O=yd(ua);od("view-source scheme plus HTTP/HTTPS URL");var pa="view-source:"+wd(O);X=zd(pa)}else{var Cb=od("sanitizedviewsrc");X=zd(nd(Cb))}var fk=Hd("Message: "+y.message+"\nUrl: "),pi,G={href:X,target:"_new"},Cc=y.fileName;if(!Id.test("a"))throw Error("Invalid tag name <a>."); |
||||
if("A"in Kd)throw Error("Tag name <a> is not allowed for SafeHtml.");R=null;var Md;N="";if(G)for(var Nd in G){if(!Id.test(Nd))throw Error('Invalid attribute name "'+Nd+'".');var qi=G[Nd];if(null!=qi){X=N;var ri,ua=Nd,O=qi;if(O instanceof ld)O=nd(O);else if("style"==ua.toLowerCase()){pa=O;if(!ha(pa))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof pa+" given: "+pa);if(!(pa instanceof pd)){Cb=pa;f="";k=void 0;for(k in Cb){if(!/^[-_a-zA-Z0-9]+$/.test(k))throw Error("Name allows only [-_a-zA-Z0-9], got: "+ |
||||
k);var ab=Cb[k];if(null!=ab){if(ab instanceof ld)ab=nd(ab);else if(td.test(ab)){l=h=!0;for(m=0;m<ab.length;m++){var si=ab.charAt(m);"'"==si&&l?h=!h:'"'==si&&h&&(l=!l)}h&&l||(ab="zClosurez")}else ab="zClosurez";f+=k+":"+ab+";"}}pa=f?rd(f):sd}Cb=void 0;pa instanceof pd&&pa.constructor===pd&&pa.c===qd?Cb=pa.b:(da(pa),Cb="type_error:SafeStyle");O=Cb}else{if(/^on/i.test(ua))throw Error('Attribute "'+ua+'" requires goog.string.Const value, "'+O+'" given.');if(ua.toLowerCase()in Jd)if(O instanceof Ad)O instanceof |
||||
Ad&&O.constructor===Ad&&O.b===Bd?O="":(da(O),O="type_error:TrustedResourceUrl");else if(O instanceof ud)O=wd(O);else if(w(O))O=yd(O).jb();else throw Error('Attribute "'+ua+'" on tag "a" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+O+'" given.');}O.Hb&&(O=O.jb());ri=ua+'="'+za(String(O))+'"';N=X+(" "+ri)}}Md="<a"+N;null!=Cc?ea(Cc)||(Cc=[Cc]):Cc=[];if(!0===kd.a)Md+=">";else{var ti=Ld(Cc);Md+=">"+Ed(ti)+"</a>";R=ti.Zb()}var ui=G&&G.dir;ui&&(/^(ltr|rtl|auto)$/i.test(ui)?R=0:R=null); |
||||
pi=Gd(Md,R);D=Ld(fk,pi,Hd("\nLine: "+y.lineNumber+"\n\nBrowser stack:\n"+y.stack+"-> [end]\n\nJS stack traversal:\n"+Qi(void 0)+"-> "))}catch(af){D=Hd("Exception trying to expose exception! You win, we lose. "+af)}Ed(D);cd(e.getElementById(d),"load",c.td,!1,c);e.close();bj(c)}}cj(c)}function aj(a,b){var c=Od(a);ki(b,function(b,e){ea(b)||(b=[b]);Na(b,function(b){b=c.c("INPUT",{type:"hidden",name:e,value:b});a.appendChild(b)})})}g=Wi.prototype;g.$=null;g.da=null;g.Fb=null;g.ei=0;g.lb=!1;g.Vf=null; |
||||
g.Yf=null;g.Eb=null;g.abort=function(){this.lb&&(ed(dj(this)),this.lb=!1,this.G("abort"),ej(this))};g.A=function(){this.lb&&this.abort();Wi.m.A.call(this);this.da&&fj(this);cj(this);delete this.g;this.Vf=this.Yf=this.$=null;delete Yi[this.c]};g.je=function(){if("complete"==this.da.readyState){cd(this.da,"readystatechange",this.je,!1,this);var a;try{if(a=ce(this.da),E&&"about:blank"==a.location&&!navigator.onLine){bj(this);return}}catch(b){bj(this);return}gj(this,a)}}; |
||||
g.td=function(){if(!fc||ic||"about:blank"!=(this.da?ce(dj(this)):null).location){cd(dj(this),"load",this.td,!1,this);try{gj(this,this.da?ce(dj(this)):null)}catch(a){bj(this)}}};function gj(a,b){a.lb=!1;var c;try{var d=b.body;a.Yf=d.textContent||d.innerText}catch(e){c=1}c||"function"!=typeof a.g||(d=a.g(b))&&(c=4);c?bj(a):(a.G("complete"),a.G("success"),ej(a))}function bj(a){a.b||(a.lb=!1,a.G("complete"),a.G("error"),ej(a),a.b=!0)}function ej(a){fj(a);cj(a);a.$=null;a.G("ready")} |
||||
function fj(a){var b=a.da;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.f.push(b));a.Eb&&(n.clearTimeout(a.Eb),a.Eb=null);hc||fc&&!ic?a.Eb=Fh(a.Nf,2E3,a):a.Nf();a.da=null;a.Fb=null}g.Nf=function(){this.Eb&&(n.clearTimeout(this.Eb),this.Eb=null);for(;this.f.length;){var a=this.f.pop();F(a)}};function cj(a){a.$&&a.$==Zi&&ae(a.$)}function dj(a){return a.da?E&&!pc("11")?a.da:ce(a.da).getElementById(a.Fb+"_inner"):null} |
||||
g.Eg=function(){if(this.lb){var a=this.da?ce(dj(this)):null;a&&!cc(a,"documentUri")?(cd(dj(this),"load",this.td,!1,this),bj(this)):Fh(this.Eg,250,this)}};function hj(){}hj.prototype.b=null;function ij(a){var b;(b=a.b)||(b={},jj(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var kj;function lj(){}z(lj,hj);function mj(a){return(a=jj(a))?new ActiveXObject(a):new XMLHttpRequest}function jj(a){if(!a.c&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.c=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.c}kj=new lj;function nj(a){je.call(this);this.headers=new li;this.C=a||null;this.c=!1;this.w=this.b=null;this.g=this.pa=this.L="";this.f=this.P=this.h=this.I=!1;this.v=0;this.i=null;this.aa=oj;this.W=this.ja=!1}z(nj,je);var oj="",pj=/^https?$/i,qj=["POST","PUT"],rj=[];function sj(a,b,c){var d=new nj;rj.push(d);b&&d.R("complete",b);d.kb("ready",d.Dh);tj(d,a,c)}g=nj.prototype;g.Dh=function(){this.za();Ra(rj,this)}; |
||||
function tj(a,b,c){if(a.b)throw Error("[goog.net.XhrIo] Object is active with another request="+a.L+"; newUri="+b);a.L=b;a.g="";a.pa="POST";a.I=!1;a.c=!0;a.b=a.C?mj(a.C):mj(kj);a.w=a.C?ij(a.C):ij(kj);a.b.onreadystatechange=na(a.bg,a);try{a.P=!0,a.b.open("POST",String(b),!0),a.P=!1}catch(f){uj(a,f);return}b=c||"";c=a.headers.clone();var d=Qa(c.Ya(),vj),e=n.FormData&&b instanceof n.FormData;!(0<=Ma(qj,"POST"))||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");c.forEach(function(a, |
||||
b){this.b.setRequestHeader(b,a)},a);a.aa&&(a.b.responseType=a.aa);"withCredentials"in a.b&&a.b.withCredentials!==a.ja&&(a.b.withCredentials=a.ja);try{wj(a),0<a.v&&(a.W=xj(a.b),a.W?(a.b.timeout=a.v,a.b.ontimeout=na(a.Fg,a)):a.i=Fh(a.Fg,a.v,a)),a.h=!0,a.b.send(b),a.h=!1}catch(f){uj(a,f)}}function xj(a){return E&&pc(9)&&ga(a.timeout)&&r(a.ontimeout)}function vj(a){return"content-type"==a.toLowerCase()} |
||||
g.Fg=function(){"undefined"!=typeof aa&&this.b&&(this.g="Timed out after "+this.v+"ms, aborting",this.G("timeout"),this.abort(8))};function uj(a,b){a.c=!1;a.b&&(a.f=!0,a.b.abort(),a.f=!1);a.g=b;yj(a);zj(a)}function yj(a){a.I||(a.I=!0,a.G("complete"),a.G("error"))}g.abort=function(){this.b&&this.c&&(this.c=!1,this.f=!0,this.b.abort(),this.f=!1,this.G("complete"),this.G("abort"),zj(this))};g.A=function(){this.b&&(this.c&&(this.c=!1,this.f=!0,this.b.abort(),this.f=!1),zj(this,!0));nj.m.A.call(this)}; |
||||
g.bg=function(){this.M||(this.P||this.h||this.f?Aj(this):this.gi())};g.gi=function(){Aj(this)};function Aj(a){if(a.c&&"undefined"!=typeof aa&&(!a.w[1]||4!=Bj(a)||2!=Cj(a)))if(a.h&&4==Bj(a))Fh(a.bg,0,a);else if(a.G("readystatechange"),4==Bj(a)){a.c=!1;try{if(Dj(a))a.G("complete"),a.G("success");else{var b;try{b=2<Bj(a)?a.b.statusText:""}catch(c){b=""}a.g=b+" ["+Cj(a)+"]";yj(a)}}finally{zj(a)}}} |
||||
function zj(a,b){if(a.b){wj(a);var c=a.b,d=a.w[0]?u:null;a.b=null;a.w=null;b||a.G("ready");try{c.onreadystatechange=d}catch(e){}}}function wj(a){a.b&&a.W&&(a.b.ontimeout=null);ga(a.i)&&(n.clearTimeout(a.i),a.i=null)} |
||||
function Dj(a){var b=Cj(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=!b)a=String(a.L).match(oi)[1]||null,!a&&n.self&&n.self.location&&(a=n.self.location.protocol,a=a.substr(0,a.length-1)),b=!pj.test(a?a.toLowerCase():"");c=b}return c}function Bj(a){return a.b?a.b.readyState:0}function Cj(a){try{return 2<Bj(a)?a.b.status:-1}catch(b){return-1}};var Ej="//export.anychart.com";function Fj(a,b,c){var d=a.width()/a.height();b=r(b)?b:c?Math.round(c*d):a.width();c=r(c)?c:b?Math.round(b/d):a.height();return{width:b,height:c}}function Gj(a,b,c,d,e,f){c&&(b.responseType="base64");d&&(b.save=!0);var h=f||u,k=d?"url":"result";b=Li(new li(b));sj(Ej+"/"+a,function(a){a=a.target;Dj(a)?(a=a.b?Vi(a.b.responseText):void 0,e(a[k])):h(w(a.g)?a.g:String(a.g))},b.toString())} |
||||
function Hj(a,b,c,d,e,f){c=Fj(a,c,d);b.data=a.cc(c.width,c.height);b.dataType="svg";b.responseType="file";b.width=c.width;b.height=c.height;r(e)&&(b.quality=e);r(f)&&(b["file-name"]=f)}g=Wh.prototype;g.ui=function(a,b,c,d,e,f,h){if("svg"==fi){var k={};Hj(this,k,d,e,f,h);Gj("png",k,!!c,!0,a,b)}else alert(vc(15))}; |
||||
function Ij(a,b,c,d,e,f,h){c=Fj(a,c,d);b.data=a.cc(c.width,c.height);b.dataType="svg";b.responseType="file";b.width=c.width;b.height=c.height;r(e)&&(b.quality=e);r(f)&&(b["force-transparent-white"]=f);r(h)&&(b["file-name"]=h)}g.si=function(a,b,c,d,e,f,h,k){if("svg"==fi){var l={};Ij(this,l,d,e,f,h,k);Gj("jpg",l,!!c,!0,a,b)}else alert(vc(15))};function Jj(a,b,c,d,e){b.data=a.cc(c,d);b.dataType="svg";b.responseType="file";r(e)&&(b["file-name"]=e)} |
||||
g.vi=function(a,b,c,d,e,f){if("svg"==fi){var h={};Jj(this,h,d,e,f);Gj("svg",h,!!c,!0,a,b)}else alert(vc(15))}; |
||||
function Kj(a,b,c,d,e,f,h){var k=null;r(c)?ga(c)?(b["pdf-width"]=c,b["pdf-height"]=ga(d)?d:a.height()):w(c)?(b["pdf-size"]=c||"a4",b.landscape=!!d,k=Gh[b["pdf-size"]],b.landscape&&(k={width:k.height,height:k.width})):(b["pdf-width"]=a.width(),b["pdf-height"]=a.height()):(b["pdf-width"]=a.width(),b["pdf-height"]=a.height());r(e)&&(b["pdf-x"]=e);r(f)&&(b["pdf-y"]=f);r(h)&&(b["file-name"]=h);k?(c=k.width,k=k.height,d=a.width(),h=a.height(),k=c<k?[c,c/d*h]:c>k?[k/h*d,k]:[c,k],k[0]-=e||0,k[1]-=f||0,a= |
||||
a.cc(k[0],k[1])):a=a.cc(b["pdf-width"],b["pdf-height"]);b.data=a;b.dataType="svg";b.responseType="file"}g.ti=function(a,b,c,d,e,f,h,k){if("svg"==fi){var l={};Kj(this,l,d,e,f,h,k);Gj("pdf",l,!!c,!0,a,b)}else alert(vc(15))};g.Vh=function(a,b,c,d,e){if("svg"==fi){var f={};Hj(this,f,c,d,e);Gj("png",f,!0,!1,a,b)}else alert(vc(15))};g.Sh=function(a,b,c,d,e,f){if("svg"==fi){var h={};Ij(this,h,c,d,e,f);Gj("jpg",h,!0,!1,a,b)}else alert(vc(15))}; |
||||
g.Xh=function(a,b,c,d){if("svg"==fi){var e={};Jj(this,e,c,d);Gj("svg",e,!0,!1,a,b)}else alert(vc(15))};g.Uh=function(a,b,c,d,e,f){if("svg"==fi){var h={};Kj(this,h,c,d,e,f);Gj("pdf",h,!0,!1,a,b)}else alert(vc(15))};g.lg=function(a,b,c,d){if("svg"==fi){var e={};Hj(this,e,a,b,c,d);$i(Ej+"/png",e)}else alert(vc(15))};g.jg=function(a,b,c,d,e){if("svg"==fi){var f={};Ij(this,f,a,b,c,d,e);$i(Ej+"/jpg",f)}else alert(vc(15))}; |
||||
g.kg=function(a,b,c,d,e){if("svg"==fi){var f={};Kj(this,f,a,b,c,d,e);$i(Ej+"/pdf",f)}else alert(vc(15))};g.mg=function(a,b,c){if("svg"==fi){var d={};Jj(this,d,a,b,c);$i(Ej+"/svg",d)}else alert(vc(15))}; |
||||
g.dh=function(a,b){if(r(a)||r(b)){var c=Jb(a,b,"us-letter"),d=Jh().contentWindow.document,e=Xd("DIV");H(e,{width:c.width,height:c.height});d.body.appendChild(e);var c=this.width(),d=this.height(),f=ue(e);this.tc(f.width,f.height);f=this.j();"svg"==f.tagName&&f.cloneNode?(f=f.cloneNode(!0),e.appendChild(f)):gi(e).data(this.data());this.tc(c,d)}else e=Jh().contentWindow.document,d=this.j(),"svg"==d.tagName?d.cloneNode?c=d.cloneNode(!0):(d=gi(e.body),d.data(this.data()),c=d.j()):(d=gi(e.body),d.data(this.data())), |
||||
d=J(),f=c,d.o(f,"width","100%"),d.o(f,"height","100%"),d.o(f,"viewBox","0 0 "+this.width()+" "+this.height()),H(f,"width","100%"),H(f,"height",""),H(f,"max-height","100%"),e.body.appendChild(c);Nh()}; |
||||
g.cc=function(a,b){if("svg"!=fi)return"";var c;if(r(a)||r(b)){c=Jb(a,b);var d=be(this.j()),e=ne(d,"width"),d=ne(d,"height");this.tc(c.width,c.height);c=Lj(this.j());this.tc(e,d)}else J().Bd(this.j(),this.width(),this.height()),c=Lj(this.j()),J().Bd(this.j(),"100%","100%");return'<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+c};function Lj(a){var b="";a&&(b=(new XMLSerializer).serializeToString(a));return b}x("acgraph.server",function(a){r(a)&&(Ej=a);return Ej});var Y=Wh.prototype; |
||||
Y.saveAsPNG=Y.lg;Y.saveAsJPG=Y.jg;Y.saveAsPDF=Y.kg;Y.saveAsSVG=Y.mg;Y.saveAsPng=Y.lg;Y.saveAsJpg=Y.jg;Y.saveAsPdf=Y.kg;Y.saveAsSvg=Y.mg;Y.shareAsPng=Y.ui;Y.shareAsJpg=Y.si;Y.shareAsPdf=Y.ti;Y.shareAsSvg=Y.vi;Y.getPngBase64String=Y.Vh;Y.getJpgBase64String=Y.Sh;Y.getSvgBase64String=Y.Xh;Y.getPdfBase64String=Y.Uh;Y.print=Y.dh;Y.toSvg=Y.cc;function Mj(a,b,c,d,e){Oe.call(this,a,b,c,d,e)}z(Mj,Oe);Mj.prototype.S=function(){var a=Ye(this),b=a&&!a.ea();b&&a.wa();Na(this.f,function(a){a.l(512)},this);b&&a.ra()};x("acgraph.vml.Clip",Mj);function Nj(a,b,c,d,e,f,h){Sh.call(this,a,b,c,b,b,f,h);this.Cd=d;this.Dd=e}z(Nj,Sh);function Oj(a,b,c,d,e,f,h){f=null!=f?A(f,0,1):1;var k=[];Na(a,function(a){k.push(""+a.offset+a.color+(a.opacity?a.opacity:null))});return k.join("")+f+b+c+d+e+(h?""+h.left+h.top+h.width+h.height:"")};var Pj={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400", |
||||
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc", |
||||
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a", |
||||
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", |
||||
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", |
||||
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Qj(a){var b={};a=String(a);var c="#"==a.charAt(0)?a:"#"+a;if(Rj.test(c))return b.de=Sj(c),b.type="hex",b;a:{var d=a.match(Tj);if(d){var c=Number(d[1]),e=Number(d[2]),d=Number(d[3]);if(0<=c&&255>=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}if(c.length)return b.de=Hb(c),b.type="rgb",b;if(Pj&&(c=Pj[a.toLowerCase()]))return b.de=c,b.type="named",b;throw Error(a+" is not a valid color string");}var Uj=/#(.)(.)(.)/; |
||||
function Sj(a){if(!Rj.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Uj,"#$1$1$2$2$3$3"));return a.toLowerCase()}function Vj(a){a=Sj(a);return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]} |
||||
function Hb(a){var b=a[0],c=a[1];a=a[2];b=Number(b);c=Number(c);a=Number(a);if(b!=(b&255)||c!=(c&255)||a!=(a&255))throw Error('"('+b+","+c+","+a+'") is not a valid RGB color');b=Wj(b.toString(16));c=Wj(c.toString(16));a=Wj(a.toString(16));return"#"+b+c+a}var Rj=/^#(?:[0-9a-f]{3}){1,2}$/i,Tj=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Wj(a){return 1==a.length?"0"+a:a} |
||||
function Xj(a,b,c){c=A(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};function Yj(){rg.call(this);var a=document;Zj()||a.createStyleSheet().addRule("."+ak,"behavior:url(#default#VML)");try{a.namespaces[bk]||a.namespaces.add(bk,ck),this.c=function(a){return Xd(bk+":"+a,{"class":ak})}}catch(b){this.c=function(a){return Xd(bk+":"+a,{"class":ak,xmlns:"urn:schemas-microsoft.com:vml"})}}dk&&(this.o=this.li)}z(Yj,rg);ca(Yj);var ck="urn:schemas-microsoft-com:vml",bk="any_vml",ak="any_vml",dk=n.document&&n.document.documentMode&&8<=n.document.documentMode;g=Yj.prototype; |
||||
g.ma=null;g.X=null;g.Oc=null;g.Kb=null;g.Ca=null;g.Gc=null;g.li=function(a,b,c){a[b]=c};g.Zd=function(){return document.createElement("div")}; |
||||
g.Va=function(){this.Kb=this.$d();ek(this,this.Kb);this.Kb.style.display="none";T(this,this.Kb,{filled:"true",fillcolor:"black",stroked:"false",path:"m0,0 l1,0 e"});document.body.appendChild(this.Kb);this.ma=Xd("DIV");this.X=Xd("SPAN");this.Oc=Xd("SPAN");document.body.appendChild(this.ma);this.ma.appendChild(this.Oc);this.ma.appendChild(this.X);H(this.ma,{position:"absolute",visibility:"hidden",left:0,top:0});H(this.Oc,{"font-size":"0px",border:"0 solid"});this.Oc.innerHTML="a";this.b=Xd("SPAN"); |
||||
this.ma.appendChild(this.b);H(this.b,{"font-size":"0px",border:"0 solid"});this.b.innerHTML="a";this.Gc=Xd("IMG");H(this.Gc,{position:"absolute",left:0,top:0});this.ma.appendChild(this.Gc);this.ta=Xd("DIV");this.ma.appendChild(this.ta)};g.rd=function(a){this.ma||this.Va();this.o(this.Gc,"src",a);return se(this.Gc)}; |
||||
g.measure=function(a,b){if(""==a)return new B(0,0,0,0);this.ma||this.Va();F(this.Ca);this.Ca=this.sc("");this.Kb.appendChild(this.Ca);var c=null,d=0;if(" "==a)return sg(this,b);a.lastIndexOf(" ",0)||(d+=c=sg(this,b).width);va(a," ")&&(d+=c||sg(this,b).width);gk(this.X.style,"font-style");gk(this.X.style,"font-variant");gk(this.X.style,"font-family");gk(this.X.style,"font-size");gk(this.X.style,"font-weight");gk(this.X.style,"letter-spacing");gk(this.X.style,"text-decoration");this.X.style.cssText= |
||||
"";b.fontStyle&&(H(this.X,"font-style",b.fontStyle),H(this.Ca,"font-style",b.fontStyle));b.fontVariant&&(H(this.X,"font-variant",b.fontVariant),H(this.Ca,"font-variant",b.fontVariant));b.fontFamily&&(H(this.X,"font-family",b.fontFamily),H(this.Ca,"font-family",b.fontFamily));b.fontSize&&(H(this.X,"font-size",b.fontSize),H(this.Ca,"font-size",b.fontSize));b.fontWeight?(H(this.X,"font-weight",b.fontWeight),H(this.Ca,"font-weight",b.fontWeight)):(H(this.X,"font-weight","normal"),H(this.Ca,"font-weight", |
||||
"normal"));b.letterSpacing&&(H(this.X,"letter-spacing",b.letterSpacing),this.Ca.style["v-text-spacing"]="normal"==b.letterSpacing?"":b.letterSpacing);b.Cb&&(H(this.X,"text-decoration",b.decoration),H(this.Ca,"text-decoration",b.decoration));H(this.X,"border","0 solid");this.o(this.Ca,"string",a);c=se(this.Kb).width;H(this.ma,{left:0,top:0,width:"auto",height:"auto"});this.X.innerHTML=a;var e=se(this.Oc),f=this.ma,e=-(e.top+e.height);f.style.left=qe(0,!1);f.style.top=qe(e,!1);f=se(this.X);f.width= |
||||
c+d;--f.left;this.X.innerHTML="";return f};g.Zf=function(a){this.ma||this.Va();w(a)?this.ta.innerHTML=a:(a=a.cloneNode(!0),this.ta.appendChild(a));a=se(this.ta);this.ta.innerHTML="";return a};function gk(a,b){a[b]&&(a.cssText=a.cssText.replace(new RegExp("(^|; )("+b+": [^;]*)(;|$)","ig"),";"))}function Z(a){return w(a)&&va(a,"%")?parseFloat(a)+"%":parseFloat(String(a))+"px"}g.T=function(a){return 100*Math.round(a)}; |
||||
function ek(a,b){a.o(b,"coordsize",a.T(1)+" "+a.T(1));T(a,b.style,{position:"absolute",left:Z(0),top:Z(0),width:Z(1),height:Z(1)})}g.cg={1:"m",2:"l",3:"c",4:"ae",5:"x"};g.dg=function(a,b){var c=b[2]+b[3];a.push(this.T(b[4]-db(c,b[0])),this.T(b[5]-eb(c,b[1])),this.T(b[0]),this.T(b[1]),Math.round(-65536*b[2]),Math.round(-65536*b[3]))};function Zj(){return!!Qa(Kh(),function(a){return a.selectorText==="."+ak})} |
||||
function hk(a,b){var c=a%90,d=cb(a),e=1,f=b.left+b.width/2,h=b.top+b.height/2,k=0>Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=cb(c);d=Math.tan(c);d=Math.sin(c)*(b.height/2-d*b.width/2)+Math.sqrt(Math.pow(b.width/2,2)*(1+Math.pow(d,2)));e*=Math.cos(c)*d;c=1*Math.sin(c)*d;k&&(e=-e,c=-c);return{U:new fb(Math.round(f-e),Math.round(h+c)),ha:new fb(Math.round(f+e),Math.round(h-c))}} |
||||
function ik(a,b){var c,d;b.U.x==b.ha.x?(c=b.U.x,d=a.y):b.U.y==b.ha.y?(c=a.x,d=b.U.y):(c=(b.U.x*Math.pow(b.ha.y-b.U.y,2)+a.x*Math.pow(b.ha.x-b.U.x,2)+(b.ha.x-b.U.x)*(b.ha.y-b.U.y)*(a.y-b.U.y))/(Math.pow(b.ha.y-b.U.y,2)+Math.pow(b.ha.x-b.U.x,2)),d=(b.ha.x-b.U.x)*(a.x-c)/(b.ha.y-b.U.y)+a.y);c=new fb(c,d);d=[A(b.U.x-b.ha.x,-1,1),A(b.U.y-b.ha.y,-1,1)];var e=[A(b.U.x-c.x,-1,1),A(b.U.y-c.y,-1,1)],f=[A(b.ha.x-c.x,-1,1),A(b.ha.y-c.y,-1,1)];return 0>(d[0]?(e[0]+f[0])*d[0]:(e[1]+f[1])*d[1])?-gb(b.U,c):gb(b.U, |
||||
c)} |
||||
function jk(a,b,c,d){var e=hk(c,d);d=gb(e.U,e.ha);var f=hk(c,b);b=gb(f.U,f.ha);c=ik(e.U,f);var e=ik(e.ha,f),f={offset:Math.round(c/b*100)/100,color:"",opacity:1},h={offset:Math.round(e/b*100)/100,color:"",opacity:1},k=[];k.toString=function(){for(var a="\n",b=0,c=this.length;b<c;b++)a+="offset: "+this[b].offset+"; color: "+this[b].color+"; opacity: "+this[b].opacity+"\n";return a};var l,m,p,t;k.push(f);for(p=0;p<a.length;p++){var q=a[p];q.color=Qj(q.color).de;q.offset<=f.offset?l={offset:q.offset,color:q.color, |
||||
opacity:q.opacity}:q.offset>f.offset&&q.offset<h.offset?k.push({offset:q.offset,color:q.color,opacity:q.opacity}):q.offset>=h.offset&&!m&&(m={offset:q.offset,color:q.color,opacity:q.opacity})}k.push(h);a=q=1;if(2<k.length){l||(l=k[1]);p=b*l.offset;t=Math.abs(b*k[1].offset-p);var v=Vj(String(l.color)),D=Vj(String(k[1].color)),q=q-(t?Math.abs(c-p)/t:0);f.color=Hb(Xj(v,D,q));m||(m=k[k.length-2]);t=b*m.offset;p=b*k[k.length-2].offset;q=Math.abs(p-t);t=Vj(String(k[k.length-2].color));v=Vj(String(m.color)); |
||||
a-=q?Math.abs(e-p)/q:0;h.color=Hb(Xj(t,v,a))}else l||0!=m.offset||(l=m),m||1!=l.offset||(m=l),p=b*l.offset,t=b*m.offset,v=Vj(String(l.color)),D=Vj(String(m.color)),t=Math.abs(t-p),q-=t?Math.abs(c-p)/t:0,a-=t?Math.abs(e-p)/t:0,f.color=Hb(Xj(v,D,q)),h.color=Hb(Xj(v,D,a));f.opacity=l.opacity;h.opacity=m.opacity;for(p=0;p<k.length;p++)k[p].offset=p?p==k.length-1?1:Math.abs(c-k[p].offset*b)/d:0;return k}g.Hf=function(){return Xd("div",{style:"overflow:hidden;position:relative;"})}; |
||||
g.Bd=function(a,b,c){T(this,a.style,{width:Z(b),height:Z(c)})};g.Yd=Yj.prototype.Zd;g.Ac=Yj.prototype.Zd;g.Ef=function(){return this.c("image")};g.Af=function(){return this.c("shape")};g.Gf=function(){return this.c("shape")};g.Cf=function(){return this.c("shape")};g.Ff=function(){return this.c("fill")};g.Df=Yj.prototype.Zd;g.rg=u;g.yg=u;g.ug=function(a){T(this,a.j().style,{position:"absolute",left:Z(0),top:Z(0),width:Z(1),height:Z(1)})}; |
||||
g.sg=function(a){var b=a.na(),c=a.j(),d=a.src()||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e=a.align(),f,h,k;if(e==jg)e=b.left,f=b.top,h=b.width,k=b.height;else{k=this.rd(d);h=k.width/b.width;f=k.height/b.height;var l=a.Yb()==kg;f=1/((1<h&&1<f||1>h&&1>f?l?h>f:h<f:l?1<h:1>h)?h:f);h=k.width*f;k=k.height*f;switch(e){case jg:e=b.width;f=b.height;break;case "x-min-y-min":e=b.left;f=b.top;break;case "x-mid-y-min":e=b.left+b.width/2-h/2;f=b.top;break;case "x-max-y-min":e= |
||||
b.left+b.width-h;f=b.top;break;case "x-min-y-mid":e=b.left;f=b.top+b.height/2-k/2;break;default:case "x-mid-y-mid":e=b.left+b.width/2-h/2;f=b.top+b.height/2-k/2;break;case "x-max-y-mid":e=b.left+b.width-h;f=b.top+b.height/2-k/2;break;case "x-min-y-max":e=b.left;f=b.top+b.height-k;break;case "x-mid-y-max":e=b.left+b.width/2-h/2;f=b.top+b.height-k;break;case "x-max-y-max":e=b.left+b.width-h,f=b.top+b.height-k}}T(this,c.style,{position:"absolute",left:Z(e),top:Z(f),width:Z(h),height:Z(k)});this.o(c, |
||||
"src",d);a.Ea(b)};g.ng=function(a){this.qe(a)};g.qe=function(a){var b=a.j();ek(this,b);var c=a.yb(),d=a.zb(),e=a.Fa(),f=a.gb(),h=a.ca();h&&!pb(h)?(c=kb(c,d,e,f,0,360,!1),d=c.length,h.transform(c,0,c,0,d/2),h=["m",this.T(c[d-2]),this.T(c[d-1]),"c"],tc(Array.prototype.push,Oa(c,this.T),h)):h=["ae",this.T(c),this.T(d),this.T(e),this.T(f),0,Math.round(-23592960)];h.push("x");K(a,4);K(a,256);this.o(b,"path",h.join(" "))}; |
||||
g.se=function(a){var b=a.j();ek(this,b);var c=yg(this,a,!0);c?this.o(b,"path",c):(this.o(b,"path","M 0,0"),b.removeAttribute("path"));K(a,4);K(a,256)};g.$d=function(){var a=this.c("shape"),b=this.c("path");b.setAttribute("textpathok","t");a.appendChild(b);return a};g.cd=function(){return document.createElement("span")};g.sc=function(a){var b=this.c("textpath");b.setAttribute("on","t");b.setAttribute("string",a);return b};g.og=function(a,b){var c=a.j();c&&(c.style.cursor=b||"")}; |
||||
g.te=function(a){var b=a.j().style,c,d;kk(a)?Zg(a)||(d=a.Ba,a.c.length&&(d-=a.c[0].f),c=a.v,T(this,b,{position:"absolute",overflow:"visible",left:Z(c),top:Z(d)})):(c=a.x(),d=a.y(),a.xb()&&a.height()&&a.height()>a.g&&("middle"==a.xb()&&(d+=a.height()/2-a.g/2),"bottom"==a.xb()&&(d+=a.height()-a.g)),T(this,b,{position:"absolute",overflow:"hidden",left:Z(c),top:Z(d)}))}; |
||||
g.Ag=function(a){var b=a.j(),c=b.style;b.style.cssText="";if(kk(a))Zg(a)||T(this,c,{width:Z(1),height:Z(1)}),b.innerHTML="";else if(null!=a.Qb){a.fontSize()&&H(b,"font-size",a.fontSize());a.color()&&H(b,"color",a.color());a.fontFamily()&&H(b,"font-family",a.fontFamily());a.fontStyle()&&H(b,"font-style",a.fontStyle());a.fontVariant()&&H(b,"font-variant",a.fontVariant());a.fontWeight()&&H(b,"font-weight",a.fontWeight());a.letterSpacing()&&H(b,"letter-spacing",a.letterSpacing());a.Cb()&&H(b,"text-decoration", |
||||
a.Cb());a.opacity()&&(c.filter="alpha(opacity="+100*a.opacity()+")");a.Sd()&&H(b,"line-height",a.Sd());a.Td()&&H(b,"text-indent",a.Td());"..."==a.hb()&&H(b,"text-overflow","ellipsis");""==a.hb()&&H(b,"text-overflow","clip");a.uc()&&H(b,"direction",a.uc());H(b,"word-break",a.Gg());H(b,"word-wrap",a.pf());null!=a.width()?H(this.b,"white-space","normal"):H(this.b,"white-space","nowrap");a.Ma()&&(b.style["text-align"]=a.h?"end"==a.Ma()||"left"==a.Ma()?"left":a.Ma()==U||"right"==a.Ma()?"right":"center": |
||||
"end"==a.Ma()||"right"==a.Ma()?"right":a.Ma()==U||"left"==a.Ma()?"left":"center");var d=!a.Kc(),e=b.getElementsByTagName("*");if(te){if(d=d?"none":"",b.style&&(b.style[te]=d),e)for(var f=0,h;h=e[f];f++)h.style&&(h.style[te]=d)}else if(E||fc)if(d=d?"on":"",b.setAttribute("unselectable",d),e)for(f=0;h=e[f];f++)h.setAttribute("unselectable",d);b.innerHTML=a.Qb;this.o(c,"width",String(a.width()?Z(a.width()):a.qa().width));this.o(c,"height",String(a.height()?Z(a.height()):a.qa().height))}}; |
||||
g.ff=function(a){var b=a.j(),c=Zg(a.parent());if(c){var d=Cf();d.H(sf(c));a.i&&d.Tb(a.g,a.c);a=c?yg(this,d,!0):"m "+this.T(a.x)+","+this.T(a.y)+" l "+(this.T(a.x)+1)+","+this.T(a.y)+" e";b.setAttribute("path",a)}}; |
||||
g.gf=function(a){var b=a.parent(),c=b.style(),d=a.j(),c=Zb(c);ac(c,a.b);a=this.sc(a.text);c.fontStyle&&H(a,"font-style",c.fontStyle);c.fontVariant&&H(a,"font-variant",c.fontVariant);c.fontFamily&&H(a,"font-family",c.fontFamily);c.fontSize&&H(a,"font-size",c.fontSize);c.fontWeight&&H(a,"font-weight",c.fontWeight);c.letterSpacing&&(a.style["v-text-spacing"]="normal"==c.letterSpacing?"":c.letterSpacing);c.decoration&&H(a,"text-decoration",c.decoration);c.hAlign&&(a.style["v-text-align"]=b.h?"end"==c.hAlign|| |
||||
"left"==c.hAlign?"left":c.hAlign==U||"right"==c.hAlign?"right":"center":"end"==c.hAlign||"right"==c.hAlign?"right":c.hAlign==U||"left"==c.hAlign?"left":"center");if(c.opacity){var e=this.c("fill");this.o(e,"opacity",c.opacity);d.appendChild(e)}d.appendChild(a);b.Kc()?d.removeAttribute("unselectable"):this.o(d,"unselectable","on");ek(this,d);d.setAttribute("filled","t");d.setAttribute("fillcolor",c.color);d.setAttribute("stroked","f");b.j().appendChild(d)};g.ag=function(){return!0}; |
||||
g.tf=function(a){var b=a.Qa();b instanceof Fb&&(b="black");var c=a.vb(),d;w(c)?d=c:d="keys"in c?0!=c.keys.length?c.keys[0].color:"#000":c.color;var e=!w(b)&&"keys"in b&&"cx"in b&&"cy"in b,f=!w(b)&&"keys"in b&&!e,h=!e&&!f,k="none"!=b&&"none"!=b.color,l="none"!=d&&0!=c.thickness,m=h&&k&&1!=b.opacity,p=!w(c)&&l&&(1!=c.opacity||"miter"!=c.lineJoin||"butt"!=c.lineCap||"none"!=c.dash),t,q,v;if(e||f||m||p){var p=a.u(),m=p.c,D;D=a instanceof $e&&a.Ib()?new B(0,0,1,1):a.qa();if(f){q=b.mode instanceof B;v= |
||||
Xa(b.keys,0);0!=v[0].offset&&v.unshift({offset:0,color:v[0].color,opacity:v[0].opacity});t=v[v.length-1];1!=t.offset&&v.push({offset:1,color:t.color,opacity:t.opacity});var y=b.mode?xg(b.angle,D):b.angle;D=sh(m,q?jk(v,b.mode,y,D):v,b.opacity,y,b.mode)}else if(e){var G;b.mode?(G=b.mode,t=Math.min(G.width,G.height),y=(b.cx*G.width-(D.left-G.left))/D.width,v=(b.cy*G.height-(D.top-G.top))/D.height,G=t/D.width*1,D=t/D.height*1):(y=b.cx,v=b.cy,G=D=1);D=lk(m,b.keys,y,v,G,D,b.opacity,b.mode)}else D=b;y=mk(m, |
||||
D,c);if(!y.rf){G=this.c("shapetype");Ne(this,G,Nb(Mb.oa(),y));m.j().appendChild(G);y.rf=!0;var R=null;if(f){var N=D;N.Wc&&(N=new Ph(N.keys,N.opacity,N.ub,N.mode),y.b=N);R=this.c("fill");v=N.keys;var X=[];Na(v,function(a){X.push(a.offset+" "+a.color)},this);p=bb(N.ub+270);t=v[v.length-1];h=v[0];T(this,R,{type:"gradient",method:"none",colors:X.join(","),angle:p,color:h.color,opacity:q?N.opacity:isNaN(t.opacity)?N.opacity:t.opacity,color2:t.color,"o:opacity2":q?N.opacity:isNaN(h.opacity)?N.opacity:h.opacity}); |
||||
G.appendChild(R);N.qc=m;N.Wc=!0}else e?(q=D,q.Xc&&(q=new Nj(q.keys,q.Ab,q.Bb,q.Cd,q.Dd,q.opacity,q.ka),y.b=q),R=this.c("fill"),v=q.keys,h=v[v.length-1],t=v[0],T(this,R,{src:p.pathToRadialGradientImage,size:q.Cd+","+q.Dd,origin:".5, .5",position:q.Ab+","+q.Bb,type:"pattern",method:"linear sigma",colors:"0 "+h.color+";1 "+t.color,color:h.color,opacity:isNaN(h.opacity)?q.opacity:h.opacity,color2:t.color,"o:opacity2":isNaN(t.opacity)?q.opacity:t.opacity}),G.appendChild(R),q.rc=m,q.Xc=!0):h&&(R=y.Db?y.Db: |
||||
y.Db=this.c("fill"),w(b)?(T(this,a.j(),{fillcolor:b,filled:"none"!=b}),T(this,R,{type:"solid",on:"none"!=b,color:b,opacity:1})):(T(this,a.j(),{fillcolor:b.color,filled:"none"!=b.color}),T(this,R,{type:"solid",on:"none"!=b.color,color:b.color,opacity:isNaN(b.opacity)?1:b.opacity})));G.appendChild(R);q=y.Mc?y.Mc:y.Mc=this.c("stroke");m=c.thickness?c.thickness:1;p=(h=nk(c.dash,m))?"flat":c.lineCap;T(this,q,{joinstyle:c.lineJoin||"miter",endcap:"butt"==p?"flat":p,dashstyle:h,on:l,color:d,opacity:ha(c)&& |
||||
"opacity"in c?c.opacity:1,weight:m+"px"});G.appendChild(q)}if(e||f)h=D.keys[D.keys.length-1],T(this,a.j(),{fillcolor:h.color,filled:"none"!=h.color});T(this,a.j(),{filled:k,fillcolor:b.color||b,stroked:l,strokecolor:d,strokeweight:c.thickness?c.thickness+"px":"1px"});T(this,a.j(),{type:"#"+Nb(Mb.oa(),y)})}else T(this,a.j(),{type:"",filled:k,fillcolor:b.color||b,stroked:l,strokecolor:d,strokeweight:c.thickness?c.thickness+"px":"1px"})}; |
||||
function nk(a,b){a=String(a);if(!a)return"none";var c=a.split(" ");c.length%2&&c.push.apply(c,c);for(var d=[],e=0;e<c.length;e++)d.push(Math.ceil(parseFloat(c[e])/b));return d.join(" ")}g.Cg=function(a){this.o(a.j().style,"visibility",a.sb()?"":"hidden")}; |
||||
g.Mb=function(a){var b=a.na(),c=a.ca();if(c){var d;a.pb?d=a.pb:d=a.pb=this.c("skew");a.ic||(a.j().appendChild(d),a.ic=!0);T(this,d,{on:"true",origin:[-.5-b.left/b.width,-.5-b.top/b.height].join(),matrix:[qb(c.b),qb(c.f),qb(c.c),qb(c.g),0,0].join()});T(this,a.j().style,{left:Z(b.left+c.h),top:Z(b.top+c.i)})}else a.ic&&(F(a.pb),a.ic=!1)}; |
||||
g.qg=function(a){var b=a.j(),c=a.yb(),d=a.zb(),e=a.Fa(),f=a.gb();(a=a.ca())&&!pb(a)?(c=kb(c,d,e,f,0,360,!1),d=c.length,a.transform(c,0,c,0,d/2),a=["m",this.T(c[d-2]),this.T(c[d-1]),"c"],tc(Array.prototype.push,Oa(c,this.T),a)):a=["ae",this.T(c),this.T(d),this.T(e),this.T(f),0,Math.round(-23592960)];a.push("x");this.o(b,"path",a.join(" "))};g.tg=function(a){var b=a.j().style;(a=a.ca())&&this.o(b,"rotation",String(sb(a)))};g.xg=function(a){var b=a.j();(a=yg(this,a,!0))?this.o(b,"path",a):b.removeAttribute("path")}; |
||||
g.vg=u; |
||||
g.Bg=function(a){var b=a.ca();if(b){var c=a.c,d=a.j().style,e,f;if(kk(a)){if(Zg(a)||(f=a.Ba,a.c.length&&(f-=a.c[0].f),e=a.v,T(this,d,{position:"absolute",overflow:"visible",left:Z(e+b.h),top:Z(f+b.i)})),ok(a))for(a=0,d=c.length;a<d;a++){var h=c[a],k;h.pb?(k=h.pb,T(this,k,{origin:[-.5-e,-.5-f].join(),matrix:[qb(b.b),qb(b.f),qb(b.c),qb(b.g),0,0].join()})):k=h.pb=this.c("skew");!h.ic&&h.j()&&(h.j().appendChild(k),h.ic=!0);var l=[-.5-e,-.5-f].join();h.j()&&(h.j().rotation=0);T(this,k,{on:"true",origin:l, |
||||
matrix:[qb(b.b),qb(b.f),qb(b.c),qb(b.g),0,0].join()})}}else e=a.x(),f=a.y(),a.xb()&&a.height()&&a.height()>a.g&&("middle"==a.xb()&&(f+=a.height()/2-a.g/2),"bottom"==a.xb()&&(f+=a.height()-a.g)),T(this,d,{position:"absolute",overflow:"hidden",left:Z(e+b.h),top:Z(f+b.i)})}};g.Hc=function(){return!0};g.zg=u;g.Mf=u; |
||||
g.me=function(a){var b=a instanceof Q,c=a.Ea();if(c){var c=c.fb(),c=c.Xa(c.F),c=c.clone(),d=a.j().style;r(b)&&b?(a=a.ca(),c=ob(c,a)):a instanceof pk&&!kk(a)||(c.left-=a.Fd()||0,c.top-=a.Gd()||0);a=c.left;b=c.top;this.o(d,"clip",["rect(",b+"px",a+c.width+"px",b+c.height+"px",a+"px",")"].join(" "))}else gk(a.j().style,"clip")};g.ie=function(){return!0};function qk(a,b){zc.call(this);this.b=a;this.c=b}z(qk,zc);function rk(a){delete a.b;F(a.Db);a.Db=null}g=qk.prototype;g.Db=null;g.Mc=null;g.rf=!1;g.fa=function(){return"shape-type"};g.A=function(){delete this.b;delete this.c;F(this.Db);this.Db=null;F(this.Mc);this.Mc=null};function sk(a){Vh.call(this,a);this.c={};this.i={}}z(sk,Vh);sk.prototype.clear=function(){Xb(this.c);Xb(this.i);sk.m.clear.call(this)}; |
||||
function mk(a,b,c){var d="",d=w(b)?d+(b+"1"):b instanceof Sh?Oj(b.keys,b.Ab,b.Bb,b.Cd,b.Dd,b.opacity,b.ka):b instanceof Ph?Qh(b.keys,b.opacity,b.ub,b.mode):d+(b.color+b.opacity),e;if(w(c))e=c;else if("keys"in c){var f=0!=c.keys.length?c.keys[0]:c;e=f.color||"black";e+="opacity"in f?f.opacity:1}else e=c.color,e+="opacity"in c?c.opacity:1;d=""+d+(""+c.thickness+e+c.lineJoin+c.lineCap+c.dash);if(Vb(a.c,d))return a.c[d];b=new qk(b,c);return a.c[d]=b} |
||||
function lk(a,b,c,d,e,f,h,k){k=k?k:null;var l=Oj(b,c,d,e,f,h,k);return Vb(a.i,l)?a.i[l]:a.i[l]=new Nj(b,c,d,e,f,h,k)}sk.prototype.gg=function(a){for(var b=Th(a.keys,a.Ab,a.Bb,a.Cd,a.Dd,a.opacity,a.ka),c=Tb(this.c),d=0,e=c.length;d<e;d++){var f=c[d];f.b==a&&rk(f)}Vb(this.i,b)&&Yb(this.i,b)};sk.prototype.fg=function(a){for(var b=Qh(a.keys,a.opacity,a.ub,a.mode),c=Tb(this.c),d=0,e=c.length;d<e;d++){var f=c[d];f.b==a&&rk(f)}a=this.f;Vb(a,b)&&Yb(a,b)}; |
||||
sk.prototype.A=function(){for(var a in this.c)Dc(this.c[a]);this.c=null;sk.m.A.call(this)};function tk(a,b,c){Wh.call(this,a,b,c)}z(tk,Wh);tk.prototype.v=function(){return new sk(this)};tk.prototype.Bf=function(a,b,c,d){return new Mj(this,a,b,c,d)};x("acgraph.vml.Stage",tk);function pk(a,b){Pg.call(this,a,b);this.Qb=null;this.W=!1;this.Sc=null}z(pk,Pg);g=pk.prototype;g.hb=function(a){a&&(this.W=!0);return pk.m.hb.call(this,a)};g.opacity=function(a){if(null!=a){if(a!==this.style().opacity){var b=!this.u()||this.u().ea();b||this.u().wa();this.style().opacity=a;this.l(1024);this.l(32);this.l(16384);this.l(4);this.bb();b||this.u().ra()}return this}return this.style().opacity}; |
||||
g.color=function(a){if(null!=a){if(a!==this.style().color){var b=!this.u()||this.u().ea();b||this.u().wa();this.style().color=a;this.l(1024);this.l(32);this.l(16384);this.l(4);this.bb();b||this.u().ra()}return this}return this.style().color};g.bb=function(){if(J().Hc()){var a=this.ca();a&&!pb(a)&&(this.l(4),this.Sc=null)}};function kk(a){var b=a.ca();return!(!b||b&&1==b.b&&!b.f&&!b.c&&1==b.g)||!!a.hb()}g.Xa=function(a){this.W=kk(this);return pk.m.Xa.call(this,a)}; |
||||
g.S=function(){pk.m.S.call(this);if(ok(this)||this.hb()){J();var a=this.j();dk&&this.j()&&(a.innerHTML=a.innerHTML)}return this};g.ke=function(){K(this,64)};g.xd=function(){this.W?pk.m.xd.call(this):(J().te(this),K(this,16384))};g.vc=function(){this.W?pk.m.vc.call(this):K(this,32)};g.Nb=function(){if(this.W)pk.m.Nb.call(this);else{null!=this.uc()&&(this.h="rtl"==this.uc());var a=this.text();this.gc||null==this.text()?this.Qb=a:this.Qb=ya(a);this.P=this.ga(this.Qb,{})}}; |
||||
g.ga=function(a,b){if(this.W)return pk.m.ga.call(this,a,b);var c=J(),d=this.style();c.ma||c.Va();c.b.style.cssText="";d.fontStyle&&H(c.b,"font-style",d.fontStyle);d.fontVariant&&H(c.b,"font-variant",d.fontVariant);d.fontFamily&&H(c.b,"font-family",d.fontFamily);d.fontSize&&H(c.b,"font-size",d.fontSize);d.fontWeight&&H(c.b,"font-weight",d.fontWeight);d.letterSpacing&&H(c.b,"letter-spacing",d.letterSpacing);d.decoration&&H(c.b,"text-decoration",d.decoration);d.textIndent&&H(c.b,"text-indent",d.textIndent); |
||||
H(c.b,"word-break",d.wordBreak);H(c.b,"word-wrap",d.wordWrap);null!=d.width||H(c.b,"white-space","nowrap");d.width&&H(c.b,"width",d.width);H(c.ma,{left:0,top:0,width:"1px",height:"1px"});H(c.b,{border:"0 solid",position:"absolute",left:0,top:0});c.b.innerHTML=a;d=se(c.b);c.b.innerHTML="";d.left=this.x();d.top=this.y();this.g=d.height;this.height()&&(d.height=this.height());return d};function ok(a){var b=a.Sc;a=a.ca();return b||a?b&&a?!(a.b==b.b&&a.f==b.f&&a.c==b.c&&a.g==b.g):!0:!1} |
||||
g.Sa=function(){var a=this.ca();!a||this.D(256)||this.D(4)||(this.Sc=a.clone())};function uk(a){var b=a.W;a.W=kk(a);var c=!b&&a.W,b=b&&!a.W,d=!a.u()||a.u().ea();d||a.u().wa();c?(a.l(1024),a.l(32),a.l(16384),a.l(4),a.P=new B(a.x(),a.y(),a.ia,a.Aa)):b&&(a.l(1024),a.l(32),a.l(16384),a.l(4),a.P=a.ga(a.Qb,{}));d||a.u().ra()}g.mb=function(){pk.m.mb.call(this);uk(this)}; |
||||
g.Da=function(){pk.m.Da.call(this);uk(this);if(dk&&ok(this)){var a=!this.u()||this.u().ea();a||this.u().wa();this.w=!1;this.l(1024);this.l(32);this.l(16384);this.l(4);this.bb();a||this.u().ra()}};g.A=function(){delete this.Sc;pk.m.A.call(this)};var vk=pk.prototype;vk.color=vk.color;vk.opacity=vk.opacity;vk.textOverflow=vk.hb;x("acgraph.vml.Text",pk);x("acgraph.vml.getRenderer",function(){return Yj.oa()});})(); |
@ -0,0 +1,307 @@
@@ -0,0 +1,307 @@
|
||||
//
|
||||
// Copyright (C) 2019, Maxim Lihachev, <envrm@yandex.ru>
|
||||
//
|
||||
// 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, version 3.
|
||||
//
|
||||
// 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 <https://www.gnu.org/licenses/>.
|
||||
//
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
// Цвет воды
|
||||
const cWater = 'lightblue 0.4'; |
||||
// Цвет бетона
|
||||
const cConcrete = 'gray 0.2'; |
||||
|
||||
// Толщина стенок
|
||||
var border = 20; |
||||
|
||||
// Отрисовка стрелок
|
||||
function drawArrow(x, y, direction) { |
||||
if (direction === 'up' || direction === 'down') { |
||||
const yy = direction === 'up' ? y + 10 : y - 10; |
||||
|
||||
stage.path().moveTo(x, y).lineTo(x + 4, yy); |
||||
stage.path().moveTo(x, y).lineTo(x - 4, yy); |
||||
} else { |
||||
const xx = direction === 'left' ? x + 10 : x - 10; |
||||
|
||||
stage.path().moveTo(x, y).lineTo(xx, y + 4); |
||||
stage.path().moveTo(x, y).lineTo(xx, y - 4); |
||||
} |
||||
} |
||||
|
||||
// Вывод размеров
|
||||
// [vertical|horizontal] X1, Y1, X2, Y2, размер
|
||||
function drawSize(direction, x1, y1, x2, y2, text, lsize = 0) { |
||||
const label = stage.text(); |
||||
label.text(text).fontSize(12); |
||||
|
||||
if (direction === 'vertical') { |
||||
// Длина линии
|
||||
const xx = y2 - y1; |
||||
|
||||
// Длина выносных линий
|
||||
const line_size = lsize === 0 ? xx : lsize; |
||||
console.log(line_size); |
||||
|
||||
// Позиция линии размера
|
||||
const arx1 = x1 + line_size * 0.7; |
||||
|
||||
stage.path().moveTo(x1, y1).lineTo(x1 + line_size, y1); |
||||
stage.path().moveTo(x2, y2).lineTo(x2 + line_size, y2); |
||||
|
||||
stage.path().moveTo(arx1, y1).lineTo(arx1, y2); |
||||
|
||||
drawArrow(arx1, y1, 'up'); |
||||
drawArrow(arx1, y2, 'down'); |
||||
|
||||
label.x(arx1 + 4); |
||||
label.y(y1); |
||||
|
||||
label.y((y1 + xx / 2) - (label.getHeight() / 2)); |
||||
} else { |
||||
// Длина линии
|
||||
const xx = x2 - x1; |
||||
|
||||
// Длина выносных линий
|
||||
const line_size = lsize === 0 ? xx / 2.5 : lsize; |
||||
console.log(line_size); |
||||
|
||||
// Позиция линии размера
|
||||
const ary1 = y1 + line_size * 0.7; |
||||
|
||||
stage.path().moveTo(x1, y1).lineTo(x1, y1 + line_size); |
||||
stage.path().moveTo(x2, y2).lineTo(x2, y2 + line_size); |
||||
|
||||
stage.path().moveTo(x1, ary1).lineTo(x2, ary1); |
||||
|
||||
drawArrow(x1, ary1, 'left'); |
||||
drawArrow(x2, ary1, 'right'); |
||||
|
||||
label.x(x1); |
||||
label.y(ary1 + 5); |
||||
|
||||
label.x((x1 + xx / 2) - (label.getWidth() / 2)); |
||||
} |
||||
} |
||||
|
||||
// Квадратный бассейн, вид сверху
|
||||
// X, Y, подпись длины, длина, подпись ширины, ширина
|
||||
function drawRectanglePoolFromTop(x, y, lxx, xx, lyy, yy) { |
||||
//
|
||||
// x1 xx x2
|
||||
// y1 o------------------o----o--
|
||||
// | | ^
|
||||
// | | |
|
||||
// y | | |
|
||||
// y | | |
|
||||
// | | |
|
||||
// | | v
|
||||
// y2 o------------------o----o--
|
||||
// | |
|
||||
// | |
|
||||
// o<---------------->o
|
||||
// | |
|
||||
//
|
||||
|
||||
// Внешняя граница бассейна
|
||||
stage.rect(x, y, xx + border * 2, yy + border * 2).fill(cConcrete); |
||||
|
||||
const x1 = x + border; |
||||
const x2 = x1 + xx; |
||||
|
||||
const y1 = y + border; |
||||
const y2 = y1 + yy; |
||||
|
||||
// Бассейн
|
||||
stage.rect(x1, y1, xx, yy).fill(cWater); |
||||
|
||||
drawSize('vertical', x2, y1, x2, y2, lyy); |
||||
drawSize('horizontal', x1, y2, x2, y2, lxx); |
||||
} |
||||
|
||||
// Квадратный бассейн, вид сбоку
|
||||
// X, Y, подпись ширины, ширина, подпись глубины, глубина
|
||||
function drawRectanglePoolFromSide(x, y, lxx, xx, lyy, yy, lsize = 0) { |
||||
//
|
||||
// x1 x2 x3 x4
|
||||
// y1 o--o o--o
|
||||
// | | | |
|
||||
// | |~~~~~~~~~~~~| |----o--
|
||||
// y | | | | ^
|
||||
// y | | xx | | |
|
||||
// | o------------o | |
|
||||
// | x2 x3 | v
|
||||
// y2 o------------------o----o--
|
||||
// | |
|
||||
// | |
|
||||
// o<---------->o
|
||||
// | |
|
||||
//
|
||||
|
||||
// Внешняя граница бассейна
|
||||
const x1 = x; |
||||
const x2 = x1 + border; |
||||
const x3 = x2 + xx; |
||||
const x4 = x3 + border; |
||||
|
||||
const y1 = y; |
||||
const y2 = y1 + yy + border * 2; |
||||
|
||||
const b = border * 0.7; |
||||
stage.path().moveTo(x1 - b, y1) |
||||
.lineTo(x1, y1) |
||||
.lineTo(x2, y1) |
||||
.lineTo(x2, y2 - border) |
||||
.lineTo(x3, y2 - border) |
||||
.lineTo(x3, y1) |
||||
.lineTo(x4, y1) |
||||
.lineTo(x4 + b, y1) |
||||
.lineTo(x4 + b, y1 + b) |
||||
.lineTo(x4, y1 + b) |
||||
.lineTo(x4, y2) |
||||
.lineTo(x1, y2) |
||||
.lineTo(x1, y1 + b) |
||||
.lineTo(x1 - b, y1 + b) |
||||
.lineTo(x1 - b, y1) |
||||
.fill(cConcrete); |
||||
|
||||
// Бассейн
|
||||
stage.rect(x2, y1 + border, xx, yy).fill(cWater); |
||||
|
||||
drawSize('vertical', x3, y1 + border, x3, y2 - border, lyy); |
||||
drawSize('horizontal', x2, y2 - border, x3, y2 - border, lxx, lsize); |
||||
} |
||||
|
||||
// Круглый бассейн, вид сверху
|
||||
// X, Y, радиус
|
||||
function drawCirclePoolFromTop(x, y, dl, d) { |
||||
//
|
||||
// _ _ _
|
||||
// = = arx1
|
||||
// = + + + = ----o--
|
||||
// = + + = ^
|
||||
// = + y + + = |
|
||||
// = + x + = v
|
||||
// = + + + = ----o--
|
||||
// = =
|
||||
// ~ ~ ~
|
||||
//
|
||||
|
||||
// Радиус
|
||||
const xx = d / 2; |
||||
|
||||
// Внешняя граница бассейна
|
||||
stage.circle(x, y, xx + border).fill(cConcrete); |
||||
|
||||
// Бассейн
|
||||
stage.circle(x, y, xx).fill(cWater); |
||||
|
||||
// Размеры
|
||||
drawSize('vertical', x, y - xx, x, y + xx, dl, d); |
||||
} |
||||
|
||||
// Круглый бассейн в двух проекциях
|
||||
// X, Y, диаметр, глубина
|
||||
function drawCirclePool(x, y, d, z) { |
||||
let dd, zz; |
||||
|
||||
if ([d, z].some(e => e > 400)) { |
||||
dd = d / 2; |
||||
zz = z / 2; |
||||
} else { |
||||
dd = d; |
||||
zz = z; |
||||
} |
||||
|
||||
const x1 = x; |
||||
const y1 = y; |
||||
|
||||
const x2 = x + dd * 1.5; |
||||
const y2 = y * 0.75; |
||||
|
||||
// Толщина стенок
|
||||
border = dd * 0.11; |
||||
|
||||
drawCirclePoolFromTop(x1, y1, d, dd); |
||||
drawRectanglePoolFromSide(x2, y2, d, dd, z, zz); |
||||
} |
||||
|
||||
// Прямоугольный бассейн в двух проекциях
|
||||
// X, Y, длина, ширина, глубина
|
||||
function drawRectanglePool(x, y, xx, yy, zz) { |
||||
let xx1, yy1, zz1; |
||||
|
||||
if ([xx, yy, zz].some(e => e > 400)) { |
||||
xx1 = xx / 2; |
||||
yy1 = yy / 2; |
||||
zz1 = zz / 2; |
||||
} else { |
||||
xx1 = xx; |
||||
yy1 = yy; |
||||
zz1 = zz; |
||||
} |
||||
|
||||
console.log('SIZES: ' + xx1 + ' x ' + yy1 + ' x ' + zz1); |
||||
|
||||
// Толщина стенок
|
||||
border = xx1 * 0.1; |
||||
|
||||
const x2 = (xx1 + yy1) * 1.2; |
||||
const x3 = x2 * 2; |
||||
|
||||
drawRectanglePoolFromTop(x, y, xx, xx1, yy, yy1); |
||||
drawRectanglePoolFromSide(x2, y, xx, xx1, zz, zz1); |
||||
drawRectanglePoolFromSide(x3, y, yy, xx1, zz, zz1, yy * 0.8); |
||||
} |
||||
|
||||
// Построение бассейна и вычисление стоимости по пользовательским данным
|
||||
function calc() { |
||||
const x = Number(document.getElementById('x').value); |
||||
const y = Number(document.getElementById('y').value); |
||||
const z = Number(document.getElementById('z').value); |
||||
const s = Number(document.getElementById('s').value); |
||||
|
||||
if ([x, y, z].some(e => e === 0)) { |
||||
return; |
||||
} |
||||
|
||||
// Объём параллелепипеда
|
||||
const result_square = x * y * z * s; |
||||
|
||||
// V=πr^2h
|
||||
const result_circle = Math.PI * Math.pow(x / 2, 2) * z * s; |
||||
|
||||
document.getElementById('result').innerHTML |
||||
= '<ul>' |
||||
+ '<li><strong>Прямоугольный бассейн:</strong> ' |
||||
+ `(${x} * ${y} * ${z}) * ${s} = ` |
||||
+ result_square.toLocaleString('ru') |
||||
+ ' р.</li>' |
||||
+ '<li><strong>Круглый бассейн:</strong> ' |
||||
+ `π * ${x / 2}<sup>2</sup> * ${z} * ${s} = ` |
||||
+ result_circle.toLocaleString('ru') |
||||
+ ' р.</li>' |
||||
+ '</ul>'; |
||||
|
||||
stage.removeChildren(); |
||||
drawRectanglePool(10, 10, x, y, z); |
||||
drawCirclePool(450, 450, x, z); |
||||
} |
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
var stage = acgraph.create('stage-container'); |
||||
|
||||
drawRectanglePool(10, 10, 200, 100, 100); |
||||
drawCirclePool(450, 450, 200, 100); |
||||
|
After Width: | Height: | Size: 175 KiB |
Loading…
Reference in new issue