1c0d58d14SSteve Yen
2c0d58d14SSteve Yen                                 Apache License
3c0d58d14SSteve Yen                           Version 2.0, January 2004
4c0d58d14SSteve Yen                        http://www.apache.org/licenses/
5c0d58d14SSteve Yen
6c0d58d14SSteve Yen   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7c0d58d14SSteve Yen
8c0d58d14SSteve Yen   1. Definitions.
9c0d58d14SSteve Yen
10c0d58d14SSteve Yen      "License" shall mean the terms and conditions for use, reproduction,
11c0d58d14SSteve Yen      and distribution as defined by Sections 1 through 9 of this document.
12c0d58d14SSteve Yen
13c0d58d14SSteve Yen      "Licensor" shall mean the copyright owner or entity authorized by
14c0d58d14SSteve Yen      the copyright owner that is granting the License.
15c0d58d14SSteve Yen
16c0d58d14SSteve Yen      "Legal Entity" shall mean the union of the acting entity and all
17c0d58d14SSteve Yen      other entities that control, are controlled by, or are under common
18c0d58d14SSteve Yen      control with that entity. For the purposes of this definition,
19c0d58d14SSteve Yen      "control" means (i) the power, direct or indirect, to cause the
20c0d58d14SSteve Yen      direction or management of such entity, whether by contract or
21c0d58d14SSteve Yen      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22c0d58d14SSteve Yen      outstanding shares, or (iii) beneficial ownership of such entity.
23c0d58d14SSteve Yen
24c0d58d14SSteve Yen      "You" (or "Your") shall mean an individual or Legal Entity
25c0d58d14SSteve Yen      exercising permissions granted by this License.
26c0d58d14SSteve Yen
27c0d58d14SSteve Yen      "Source" form shall mean the preferred form for making modifications,
28c0d58d14SSteve Yen      including but not limited to software source code, documentation
29c0d58d14SSteve Yen      source, and configuration files.
30c0d58d14SSteve Yen
31c0d58d14SSteve Yen      "Object" form shall mean any form resulting from mechanical
32c0d58d14SSteve Yen      transformation or translation of a Source form, including but
33c0d58d14SSteve Yen      not limited to compiled object code, generated documentation,
34c0d58d14SSteve Yen      and conversions to other media types.
35c0d58d14SSteve Yen
36c0d58d14SSteve Yen      "Work" shall mean the work of authorship, whether in Source or
37c0d58d14SSteve Yen      Object form, made available under the License, as indicated by a
38c0d58d14SSteve Yen      copyright notice that is included in or attached to the work
39c0d58d14SSteve Yen      (an example is provided in the Appendix below).
40c0d58d14SSteve Yen
41c0d58d14SSteve Yen      "Derivative Works" shall mean any work, whether in Source or Object
42c0d58d14SSteve Yen      form, that is based on (or derived from) the Work and for which the
43c0d58d14SSteve Yen      editorial revisions, annotations, elaborations, or other modifications
44c0d58d14SSteve Yen      represent, as a whole, an original work of authorship. For the purposes
45c0d58d14SSteve Yen      of this License, Derivative Works shall not include works that remain
46c0d58d14SSteve Yen      separable from, or merely link (or bind by name) to the interfaces of,
47c0d58d14SSteve Yen      the Work and Derivative Works thereof.
48c0d58d14SSteve Yen
49c0d58d14SSteve Yen      "Contribution" shall mean any work of authorship, including
50c0d58d14SSteve Yen      the original version of the Work and any modifications or additions
51c0d58d14SSteve Yen      to that Work or Derivative Works thereof, that is intentionally
52c0d58d14SSteve Yen      submitted to Licensor for inclusion in the Work by the copyright owner
53c0d58d14SSteve Yen      or by an individual or Legal Entity authorized to submit on behalf of
54c0d58d14SSteve Yen      the copyright owner. For the purposes of this definition, "submitted"
55c0d58d14SSteve Yen      means any form of electronic, verbal, or written communication sent
56c0d58d14SSteve Yen      to the Licensor or its representatives, including but not limited to
57c0d58d14SSteve Yen      communication on electronic mailing lists, source code control systems,
58c0d58d14SSteve Yen      and issue tracking systems that are managed by, or on behalf of, the
59c0d58d14SSteve Yen      Licensor for the purpose of discussing and improving the Work, but
60c0d58d14SSteve Yen      excluding communication that is conspicuously marked or otherwise
61c0d58d14SSteve Yen      designated in writing by the copyright owner as "Not a Contribution."
62c0d58d14SSteve Yen
63c0d58d14SSteve Yen      "Contributor" shall mean Licensor and any individual or Legal Entity
64c0d58d14SSteve Yen      on behalf of whom a Contribution has been received by Licensor and
65c0d58d14SSteve Yen      subsequently incorporated within the Work.
66c0d58d14SSteve Yen
67c0d58d14SSteve Yen   2. Grant of Copyright License. Subject to the terms and conditions of
68c0d58d14SSteve Yen      this License, each Contributor hereby grants to You a perpetual,
69c0d58d14SSteve Yen      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70c0d58d14SSteve Yen      copyright license to reproduce, prepare Derivative Works of,
71c0d58d14SSteve Yen      publicly display, publicly perform, sublicense, and distribute the
72c0d58d14SSteve Yen      Work and such Derivative Works in Source or Object form.
73c0d58d14SSteve Yen
74c0d58d14SSteve Yen   3. Grant of Patent License. Subject to the terms and conditions of
75c0d58d14SSteve Yen      this License, each Contributor hereby grants to You a perpetual,
76c0d58d14SSteve Yen      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77c0d58d14SSteve Yen      (except as stated in this section) patent license to make, have made,
78c0d58d14SSteve Yen      use, offer to sell, sell, import, and otherwise transfer the Work,
79c0d58d14SSteve Yen      where such license applies only to those patent claims licensable
80c0d58d14SSteve Yen      by such Contributor that are necessarily infringed by their
81c0d58d14SSteve Yen      Contribution(s) alone or by combination of their Contribution(s)
82c0d58d14SSteve Yen      with the Work to which such Contribution(s) was submitted. If You
83c0d58d14SSteve Yen      institute patent litigation against any entity (including a
84c0d58d14SSteve Yen      cross-claim or counterclaim in a lawsuit) alleging that the Work
85c0d58d14SSteve Yen      or a Contribution incorporated within the Work constitutes direct
86c0d58d14SSteve Yen      or contributory patent infringement, then any patent licenses
87c0d58d14SSteve Yen      granted to You under this License for that Work shall terminate
88c0d58d14SSteve Yen      as of the date such litigation is filed.
89c0d58d14SSteve Yen
90c0d58d14SSteve Yen   4. Redistribution. You may reproduce and distribute copies of the
91c0d58d14SSteve Yen      Work or Derivative Works thereof in any medium, with or without
92c0d58d14SSteve Yen      modifications, and in Source or Object form, provided that You
93c0d58d14SSteve Yen      meet the following conditions:
94c0d58d14SSteve Yen
95c0d58d14SSteve Yen      (a) You must give any other recipients of the Work or
96c0d58d14SSteve Yen          Derivative Works a copy of this License; and
97c0d58d14SSteve Yen
98c0d58d14SSteve Yen      (b) You must cause any modified files to carry prominent notices
99c0d58d14SSteve Yen          stating that You changed the files; and
100c0d58d14SSteve Yen
101c0d58d14SSteve Yen      (c) You must retain, in the Source form of any Derivative Works
102c0d58d14SSteve Yen          that You distribute, all copyright, patent, trademark, and
103c0d58d14SSteve Yen          attribution notices from the Source form of the Work,
104c0d58d14SSteve Yen          excluding those notices that do not pertain to any part of
105c0d58d14SSteve Yen          the Derivative Works; and
106c0d58d14SSteve Yen
107c0d58d14SSteve Yen      (d) If the Work includes a "NOTICE" text file as part of its
108c0d58d14SSteve Yen          distribution, then any Derivative Works that You distribute must
109c0d58d14SSteve Yen          include a readable copy of the attribution notices contained
110c0d58d14SSteve Yen          within such NOTICE file, excluding those notices that do not
111c0d58d14SSteve Yen          pertain to any part of the Derivative Works, in at least one
112c0d58d14SSteve Yen          of the following places: within a NOTICE text file distributed
113c0d58d14SSteve Yen          as part of the Derivative Works; within the Source form or
114c0d58d14SSteve Yen          documentation, if provided along with the Derivative Works; or,
115c0d58d14SSteve Yen          within a display generated by the Derivative Works, if and
116c0d58d14SSteve Yen          wherever such third-party notices normally appear. The contents
117c0d58d14SSteve Yen          of the NOTICE file are for informational purposes only and
118c0d58d14SSteve Yen          do not modify the License. You may add Your own attribution
119c0d58d14SSteve Yen          notices within Derivative Works that You distribute, alongside
120c0d58d14SSteve Yen          or as an addendum to the NOTICE text from the Work, provided
121c0d58d14SSteve Yen          that such additional attribution notices cannot be construed
122c0d58d14SSteve Yen          as modifying the License.
123c0d58d14SSteve Yen
124c0d58d14SSteve Yen      You may add Your own copyright statement to Your modifications and
125c0d58d14SSteve Yen      may provide additional or different license terms and conditions
126c0d58d14SSteve Yen      for use, reproduction, or distribution of Your modifications, or
127c0d58d14SSteve Yen      for any such Derivative Works as a whole, provided Your use,
128c0d58d14SSteve Yen      reproduction, and distribution of the Work otherwise complies with
129c0d58d14SSteve Yen      the conditions stated in this License.
130c0d58d14SSteve Yen
131c0d58d14SSteve Yen   5. Submission of Contributions. Unless You explicitly state otherwise,
132c0d58d14SSteve Yen      any Contribution intentionally submitted for inclusion in the Work
133c0d58d14SSteve Yen      by You to the Licensor shall be under the terms and conditions of
134c0d58d14SSteve Yen      this License, without any additional terms or conditions.
135c0d58d14SSteve Yen      Notwithstanding the above, nothing herein shall supersede or modify
136c0d58d14SSteve Yen      the terms of any separate license agreement you may have executed
137c0d58d14SSteve Yen      with Licensor regarding such Contributions.
138c0d58d14SSteve Yen
139c0d58d14SSteve Yen   6. Trademarks. This License does not grant permission to use the trade
140c0d58d14SSteve Yen      names, trademarks, service marks, or product names of the Licensor,
141c0d58d14SSteve Yen      except as required for reasonable and customary use in describing the
142c0d58d14SSteve Yen      origin of the Work and reproducing the content of the NOTICE file.
143c0d58d14SSteve Yen
144c0d58d14SSteve Yen   7. Disclaimer of Warranty. Unless required by applicable law or
145c0d58d14SSteve Yen      agreed to in writing, Licensor provides the Work (and each
146c0d58d14SSteve Yen      Contributor provides its Contributions) on an "AS IS" BASIS,
147c0d58d14SSteve Yen      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148c0d58d14SSteve Yen      implied, including, without limitation, any warranties or conditions
149c0d58d14SSteve Yen      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150c0d58d14SSteve Yen      PARTICULAR PURPOSE. You are solely responsible for determining the
151c0d58d14SSteve Yen      appropriateness of using or redistributing the Work and assume any
152c0d58d14SSteve Yen      risks associated with Your exercise of permissions under this License.
153c0d58d14SSteve Yen
154c0d58d14SSteve Yen   8. Limitation of Liability. In no event and under no legal theory,
155c0d58d14SSteve Yen      whether in tort (including negligence), contract, or otherwise,
156c0d58d14SSteve Yen      unless required by applicable law (such as deliberate and grossly
157c0d58d14SSteve Yen      negligent acts) or agreed to in writing, shall any Contributor be
158c0d58d14SSteve Yen      liable to You for damages, including any direct, indirect, special,
159c0d58d14SSteve Yen      incidental, or consequential damages of any character arising as a
160c0d58d14SSteve Yen      result of this License or out of the use or inability to use the
161c0d58d14SSteve Yen      Work (including but not limited to damages for loss of goodwill,
162c0d58d14SSteve Yen      work stoppage, computer failure or malfunction, or any and all
163c0d58d14SSteve Yen      other commercial damages or losses), even if such Contributor
164c0d58d14SSteve Yen      has been advised of the possibility of such damages.
165c0d58d14SSteve Yen
166c0d58d14SSteve Yen   9. Accepting Warranty or Additional Liability. While redistributing
167c0d58d14SSteve Yen      the Work or Derivative Works thereof, You may choose to offer,
168c0d58d14SSteve Yen      and charge a fee for, acceptance of support, warranty, indemnity,
169c0d58d14SSteve Yen      or other liability obligations and/or rights consistent with this
170c0d58d14SSteve Yen      License. However, in accepting such obligations, You may act only
171c0d58d14SSteve Yen      on Your own behalf and on Your sole responsibility, not on behalf
172c0d58d14SSteve Yen      of any other Contributor, and only if You agree to indemnify,
173c0d58d14SSteve Yen      defend, and hold each Contributor harmless for any liability
174c0d58d14SSteve Yen      incurred by, or claims asserted against, such Contributor by reason
175c0d58d14SSteve Yen      of your accepting any such warranty or additional liability.
176c0d58d14SSteve Yen
177c0d58d14SSteve Yen   END OF TERMS AND CONDITIONS
178c0d58d14SSteve Yen
179c0d58d14SSteve Yen   APPENDIX: How to apply the Apache License to your work.
180c0d58d14SSteve Yen
181c0d58d14SSteve Yen      To apply the Apache License to your work, attach the following
182c0d58d14SSteve Yen      boilerplate notice, with the fields enclosed by brackets "[]"
183c0d58d14SSteve Yen      replaced with your own identifying information. (Don't include
184c0d58d14SSteve Yen      the brackets!)  The text should be enclosed in the appropriate
185c0d58d14SSteve Yen      comment syntax for the file format. We also recommend that a
186c0d58d14SSteve Yen      file or class name and description of purpose be included on the
187c0d58d14SSteve Yen      same "printed page" as the copyright notice for easier
188c0d58d14SSteve Yen      identification within third-party archives.
189c0d58d14SSteve Yen
190c0d58d14SSteve Yen   Copyright [yyyy] [name of copyright owner]
191c0d58d14SSteve Yen
192c0d58d14SSteve Yen   Licensed under the Apache License, Version 2.0 (the "License");
193c0d58d14SSteve Yen   you may not use this file except in compliance with the License.
194c0d58d14SSteve Yen   You may obtain a copy of the License at
195c0d58d14SSteve Yen
196c0d58d14SSteve Yen       http://www.apache.org/licenses/LICENSE-2.0
197c0d58d14SSteve Yen
198c0d58d14SSteve Yen   Unless required by applicable law or agreed to in writing, software
199c0d58d14SSteve Yen   distributed under the License is distributed on an "AS IS" BASIS,
200c0d58d14SSteve Yen   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201c0d58d14SSteve Yen   See the License for the specific language governing permissions and
202c0d58d14SSteve Yen   limitations under the License.
203