@kirigami/php-prepros 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +502 -21
- package/README.md +1988 -1887
- package/index.d.ts +62 -26
- package/index.js +1 -1
- package/package.json +59 -59
- package/src/imagebatch.php +68 -67
- package/src/libraries/aliases.inc.php +879 -879
- package/src/libraries/curl.class.php +7 -7
- package/src/libraries/ld.class.php +803 -807
- package/src/libraries/md-legacy.class.php +1257 -0
- package/src/libraries/md.class.php +51 -1249
- package/src/libraries/meta.class.php +496 -509
- package/src/libraries/{normalizer.class.php → normalizer-legacy.class.php} +11 -1
- package/src/libraries/prepros.class.php +85 -8
- package/src/libraries/schema-legacy.class.php +549 -0
- package/src/libraries/schema.class.php +99 -472
- package/src/libraries/yaml-legacy.class.php +598 -0
- package/src/libraries/yaml.class.php +41 -406
- package/src/prepros.js +151 -48
- package/src/prepros.php +4 -5
- package/src/runenv.php +2 -2
- package/src/utils.inc.php +12 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,502 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
of this
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
Preamble
|
|
9
|
+
|
|
10
|
+
The GNU General Public License is a free, copyleft license for
|
|
11
|
+
software and other kinds of works.
|
|
12
|
+
|
|
13
|
+
The licenses for most software and other practical works are designed
|
|
14
|
+
to take away your freedom to share and change the works. By contrast,
|
|
15
|
+
this GPL is intended to guarantee your freedom to share and change all
|
|
16
|
+
versions of a program--to make sure it remains free software for all its
|
|
17
|
+
users. We, the Free Software Foundation, use the GPL for most of our
|
|
18
|
+
software; it applies also to any other work released this way by its
|
|
19
|
+
authors. You can apply it to your programs, too.
|
|
20
|
+
|
|
21
|
+
When we speak of free software, we are referring to freedom, not
|
|
22
|
+
price. Our GPLs are designed to make sure that you have the freedom to
|
|
23
|
+
distribute copies of free software (and charge for them if you wish),
|
|
24
|
+
that you receive source code or can get it if you want it, that you can
|
|
25
|
+
change the software or use pieces of it in new free programs, and that
|
|
26
|
+
you know you can do these things.
|
|
27
|
+
|
|
28
|
+
To protect your rights, we need to prevent others from denying you
|
|
29
|
+
these rights or asking you to surrender the rights. Therefore, you have
|
|
30
|
+
certain responsibilities if you distribute copies of the software, or if
|
|
31
|
+
you modify it: responsibilities to respect the freedom of others.
|
|
32
|
+
|
|
33
|
+
For example, if you distribute copies of such a program, whether
|
|
34
|
+
gratuitously or for a fee, you must pass on to the recipients the same
|
|
35
|
+
freedoms that you received. You must make sure that they, too, receive
|
|
36
|
+
or can get the source code. And you must show them these terms so they
|
|
37
|
+
know their rights.
|
|
38
|
+
|
|
39
|
+
Developers that use the GPL protect your rights with two steps:
|
|
40
|
+
(1) assert copyright on the software, and (2) offer you this License
|
|
41
|
+
giving you legal permission to copy, distribute and/or modify it.
|
|
42
|
+
|
|
43
|
+
For the developers' and authors' protection, the GPL clearly explains
|
|
44
|
+
that there is no warranty for this free software. For both users' and
|
|
45
|
+
authors' sake, the GPL requires that modified versions be marked as
|
|
46
|
+
changed, so that their problems will not be attributed erroneously to
|
|
47
|
+
authors of previous versions.
|
|
48
|
+
|
|
49
|
+
Some devices are designed to deny users access to install or run
|
|
50
|
+
modified versions of the software inside them, although the manufacturer
|
|
51
|
+
can do so. This is fundamentally incompatible with the aim of
|
|
52
|
+
protecting users' freedom to change the software. The systematic
|
|
53
|
+
pattern of such abuse occurs in the area of products for individuals to
|
|
54
|
+
use, which is precisely where it is most unacceptable. Therefore, we
|
|
55
|
+
have designed this version of the GPL to prohibit the practice for those
|
|
56
|
+
products. If such problems arise substantially in other domains, we
|
|
57
|
+
stand ready to extend this provision to those domains in future versions
|
|
58
|
+
of the GPL, as needed to protect the freedom of users.
|
|
59
|
+
|
|
60
|
+
Finally, every program is threatened constantly by software patents.
|
|
61
|
+
States should not allow patents to restrict development and use of
|
|
62
|
+
software on general-purpose computers, but in those that do, we wish to
|
|
63
|
+
avoid the special danger that patents applied to a free program could
|
|
64
|
+
make it effectively proprietary. To prevent this, the GPL assures that
|
|
65
|
+
patents cannot be used to render the program non-free.
|
|
66
|
+
|
|
67
|
+
The precise terms and conditions for copying, distribution and
|
|
68
|
+
modification follow.
|
|
69
|
+
|
|
70
|
+
TERMS AND CONDITIONS
|
|
71
|
+
|
|
72
|
+
0. Definitions.
|
|
73
|
+
|
|
74
|
+
"This License" refers to version 3 of the GNU General Public License.
|
|
75
|
+
|
|
76
|
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
77
|
+
works, such as semiconductor masks.
|
|
78
|
+
|
|
79
|
+
"The Program" refers to any copyrightable work licensed under this
|
|
80
|
+
License. Each licensee is addressed as "you". "Licensees" and
|
|
81
|
+
"recipients" may be individuals or organizations.
|
|
82
|
+
|
|
83
|
+
To "modify" a work means to copy from or adapt all or part of the work
|
|
84
|
+
in a fashion requiring copyright permission, other than the making of an
|
|
85
|
+
exact copy. The resulting work is called a "modified version" of the
|
|
86
|
+
earlier work or a work "based on" the earlier work.
|
|
87
|
+
|
|
88
|
+
A "covered work" means either the unmodified Program or a work based
|
|
89
|
+
on the Program.
|
|
90
|
+
|
|
91
|
+
To "propagate" a work means to do anything with it that, without
|
|
92
|
+
permission, would make you directly or secondarily liable for
|
|
93
|
+
infringement under applicable copyright law, except executing it on a
|
|
94
|
+
computer or modifying a private copy. Propagation includes copying,
|
|
95
|
+
distribution (with or without modification), making available to the
|
|
96
|
+
public, and in some countries other activities as well.
|
|
97
|
+
|
|
98
|
+
To "convey" a work means any kind of propagation that enables other
|
|
99
|
+
parties to make or receive copies. Mere interaction with a user through
|
|
100
|
+
a computer network, with no transfer of a copy, is not conveying.
|
|
101
|
+
|
|
102
|
+
An interactive user interface displays "Appropriate Legal Notices"
|
|
103
|
+
to the extent that it includes a convenient and prominently visible
|
|
104
|
+
feature that (1) displays an appropriate copyright notice, and (2)
|
|
105
|
+
tells the user that there is no warranty for the work (except to the
|
|
106
|
+
extent that warranties are provided), that licensees may convey the
|
|
107
|
+
work under this License, and how to view a copy of this License. If
|
|
108
|
+
the interface presents a list of user commands or options, such as a
|
|
109
|
+
menu, a prominent item in the list meets this criterion.
|
|
110
|
+
|
|
111
|
+
1. Source Code.
|
|
112
|
+
|
|
113
|
+
The "source code" for a work means the preferred form of the work
|
|
114
|
+
for making modifications to it. "Object code" means any non-source
|
|
115
|
+
form of a work.
|
|
116
|
+
|
|
117
|
+
A "Standard Interface" means an interface that either is an official
|
|
118
|
+
standard defined by a recognized standards body, or, in the case of
|
|
119
|
+
interfaces specified for a particular programming language, one that
|
|
120
|
+
is widely used among developers working in that language.
|
|
121
|
+
|
|
122
|
+
The "System Libraries" of an executable work include anything, other
|
|
123
|
+
than the work as a whole, that (a) is included in the normal form of
|
|
124
|
+
packaging a Major Component, but which is not part of that Major
|
|
125
|
+
Component, and (b) serves only to enable use of the work with that
|
|
126
|
+
Major Component, or to implement a Standard Interface for which an
|
|
127
|
+
implementation is available to the public in source code form. A
|
|
128
|
+
"Major Component", in this context, means a major essential component
|
|
129
|
+
(kernel, window system, and so on) of the specific operating system
|
|
130
|
+
(if any) on which the executable work runs, or a compiler used to
|
|
131
|
+
produce the work, or an object code interpreter used to run it.
|
|
132
|
+
|
|
133
|
+
The "Corresponding Source" for a work in object code form means all
|
|
134
|
+
the source code needed to generate, install, and (for an executable
|
|
135
|
+
work) run the object code and to modify the work, including scripts to
|
|
136
|
+
control those activities. However, it does not include the work's
|
|
137
|
+
System Libraries, or general-purpose tools or generally available free
|
|
138
|
+
programs which are used unmodified in performing those activities but
|
|
139
|
+
which are not part of the work. For example, Corresponding Source
|
|
140
|
+
includes interface definition files associated with source files for the
|
|
141
|
+
work, and the source code for shared libraries and dynamically linked
|
|
142
|
+
subprograms that the work is specifically designed to require, such as
|
|
143
|
+
by intimate data communication or control flow between those
|
|
144
|
+
subprograms and other parts of the work.
|
|
145
|
+
|
|
146
|
+
The source code for a work means the preferred form of the work for
|
|
147
|
+
making modifications to it. "Object code" means any non-source form of
|
|
148
|
+
a work.
|
|
149
|
+
|
|
150
|
+
2. Basic Permissions.
|
|
151
|
+
|
|
152
|
+
All rights granted under this License are granted for the term of
|
|
153
|
+
copyright on the Program, and are irrevocable provided the stated
|
|
154
|
+
conditions are met. This License explicitly affirms your unlimited
|
|
155
|
+
permission to run the unmodified Program. The output from running a
|
|
156
|
+
covered work is covered by this License only if the output, given its
|
|
157
|
+
content, constitutes a covered work. This License acknowledges your
|
|
158
|
+
rights of fair use or other equivalent, as provided by copyright law.
|
|
159
|
+
|
|
160
|
+
You may make, run and propagate covered works that you do not
|
|
161
|
+
convey, without conditions so long as your license otherwise remains
|
|
162
|
+
in force. You may convey covered works to others for the sole purpose
|
|
163
|
+
of having them make modifications exclusively for you, or provide you
|
|
164
|
+
with facilities for running those works, provided that you comply with
|
|
165
|
+
terms of this License in conveying all material for which you do not
|
|
166
|
+
control copyright. Those making or running the covered works for you
|
|
167
|
+
must do so under your direction and control, on terms that prohibit
|
|
168
|
+
them from making any copies of your copyrighted material outside their
|
|
169
|
+
relationship with you.
|
|
170
|
+
|
|
171
|
+
Conveying under any other circumstances is permitted solely under the
|
|
172
|
+
conditions stated below. Sublicensing is not allowed; section 10 makes
|
|
173
|
+
it possible for a later licensee to add exceptions to this License.
|
|
174
|
+
|
|
175
|
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
176
|
+
|
|
177
|
+
No covered work shall be deemed part of an effective technological
|
|
178
|
+
measure under any applicable law fulfilling obligations under article
|
|
179
|
+
11 of the WIPO copyright treaty adopted on 20 October 1996, or similar
|
|
180
|
+
laws prohibiting or restricting circumvention of such measures.
|
|
181
|
+
|
|
182
|
+
When you convey a covered work, you waive any legal power to forbid
|
|
183
|
+
circumvention of technological measures to the extent such circumvention
|
|
184
|
+
is effected by exercising rights under this License with respect to the
|
|
185
|
+
covered work, and you disclaim any intention to limit operation or
|
|
186
|
+
modification of the work as a means of enforcing, against the work's
|
|
187
|
+
users, your or third parties' legal rights to forbid circumvention of
|
|
188
|
+
technological measures.
|
|
189
|
+
|
|
190
|
+
4. Conveying Verbatim Copies.
|
|
191
|
+
|
|
192
|
+
You may convey verbatim copies of the Program's source code as you
|
|
193
|
+
receive it, in any medium, provided that you conspicuously and
|
|
194
|
+
appropriately publish on each copy an appropriate copyright notice;
|
|
195
|
+
keep intact all notices stating that this License and any
|
|
196
|
+
non-permissive terms are in effect; keep intact all notices of the
|
|
197
|
+
absence of any warranty; and give all recipients a copy of this License
|
|
198
|
+
along with the Program.
|
|
199
|
+
|
|
200
|
+
You may charge any price or no price for each copy that you convey,
|
|
201
|
+
and you may offer support or warranty protection for a fee.
|
|
202
|
+
|
|
203
|
+
5. Conveying Modified Source Versions.
|
|
204
|
+
|
|
205
|
+
You may convey a work based on the Program, or the modified version
|
|
206
|
+
using the Program, in source code form under the terms of section 4,
|
|
207
|
+
provided that you also meet all of these conditions:
|
|
208
|
+
|
|
209
|
+
a) The work must carry prominent notices stating that you modified
|
|
210
|
+
it, and giving a relevant date.
|
|
211
|
+
|
|
212
|
+
b) The work must carry prominent notices stating that it is
|
|
213
|
+
released under this License and any additional conditions added under
|
|
214
|
+
section 7. This requirement modifies the requirement in section 4 to
|
|
215
|
+
"keep intact all notices".
|
|
216
|
+
|
|
217
|
+
c) You must license the entire work, as a whole, under this
|
|
218
|
+
License to anyone who comes into possession of a copy. This License
|
|
219
|
+
will therefore apply, along with any applicable section 7 additional
|
|
220
|
+
conditions, to the whole of the work, and all its parts, regardless
|
|
221
|
+
of how they are packaged. This License gives no permission to
|
|
222
|
+
license the work in any other way, but it does not invalidate such
|
|
223
|
+
permission if you have separately received it.
|
|
224
|
+
|
|
225
|
+
d) If the work has interactive user interfaces, each must display
|
|
226
|
+
Appropriate Legal Notices; however, if the Program has interactive
|
|
227
|
+
user interfaces that do not display Appropriate Legal Notices, your
|
|
228
|
+
work need not make them do so.
|
|
229
|
+
|
|
230
|
+
A compilation of a covered work with other separate and independent
|
|
231
|
+
works, which are not by their nature extensions of the covered work,
|
|
232
|
+
and which are not combined with it such as to form a larger program, in
|
|
233
|
+
or on a volume of a storage or distribution medium, is called an
|
|
234
|
+
"aggregate" if the compilation and its resulting copyright are not used
|
|
235
|
+
to limit the access or legal rights of the compilation's users beyond
|
|
236
|
+
what the individual works permit. Inclusion of a covered work in an
|
|
237
|
+
aggregate does not cause this License to apply to the other parts of the
|
|
238
|
+
aggregate.
|
|
239
|
+
|
|
240
|
+
6. Conveying Non-Source Forms.
|
|
241
|
+
|
|
242
|
+
You may convey a covered work in object code form under the terms of
|
|
243
|
+
sections 4 and 5, provided that you also convey the machine-readable
|
|
244
|
+
Corresponding Source under the terms of this License, in one of these
|
|
245
|
+
ways:
|
|
246
|
+
|
|
247
|
+
a) Convey the object code in, or embodied in, a physical product
|
|
248
|
+
(including a physical distribution medium), accompanied by the
|
|
249
|
+
Corresponding Source fixed on a durable physical medium
|
|
250
|
+
customarily used for software interchange.
|
|
251
|
+
|
|
252
|
+
b) Convey the object code in, or embodied in, a physical product
|
|
253
|
+
(including a physical distribution medium), accompanied by a written
|
|
254
|
+
offer, valid for at least three years and valid for as long as you
|
|
255
|
+
offer spare parts or customer support for that product model, to
|
|
256
|
+
give anyone who possesses the object code either (1) a copy of the
|
|
257
|
+
Corresponding Source for all the code in the product that is covered
|
|
258
|
+
by this License, on a durable physical medium customarily used for
|
|
259
|
+
software interchange, for a price no more than your reasonable cost
|
|
260
|
+
of physically performing this conveying of source, or (2) access to
|
|
261
|
+
copy the Corresponding Source from a designated place, and offer
|
|
262
|
+
equivalent access so that the recipient can copy it from the same
|
|
263
|
+
place.
|
|
264
|
+
|
|
265
|
+
c) Convey individual copies of the object code with a copy of the
|
|
266
|
+
written offer to provide the Corresponding Source. This alternative
|
|
267
|
+
is allowed only occasionally and noncommercially, and only if you
|
|
268
|
+
received the object code with such an offer, in accord with
|
|
269
|
+
subsection 6b.
|
|
270
|
+
|
|
271
|
+
d) Convey the object code by offering access from a designated
|
|
272
|
+
place (gratis or for a charge), and offer equivalent access to the
|
|
273
|
+
Corresponding Source in the same way through the same place at no
|
|
274
|
+
further charge. You need not require recipients to copy the
|
|
275
|
+
Corresponding Source along with the object code. If the place to
|
|
276
|
+
copy the object code is a network server, the Corresponding Source
|
|
277
|
+
may be offered on a comparable server.
|
|
278
|
+
|
|
279
|
+
e) Convey the object code using peer-to-peer transmission, provided
|
|
280
|
+
you inform other peers where the object code and Corresponding
|
|
281
|
+
Source of the work are being offered to the general public at no
|
|
282
|
+
charge under subsection 6d.
|
|
283
|
+
|
|
284
|
+
A separable portion of the object code, whose source code is excluded
|
|
285
|
+
from the Corresponding Source as a System Library, need not be
|
|
286
|
+
included in conveying the object code work.
|
|
287
|
+
|
|
288
|
+
7. Additional Terms.
|
|
289
|
+
|
|
290
|
+
"Additional permissions" are terms that supplement this License by
|
|
291
|
+
making exceptions from one or more of its conditions. Additional
|
|
292
|
+
permissions that are applicable to the entire Program shall be treated
|
|
293
|
+
as though they were included in this License, to the extent that they
|
|
294
|
+
are valid under applicable law. If additional permissions apply only
|
|
295
|
+
to part of the Program, that part may be used separately under those
|
|
296
|
+
permissions, but the entire Program remains governed by this License
|
|
297
|
+
without regard to the additional permissions.
|
|
298
|
+
|
|
299
|
+
When you convey a copy of a covered work, you may omit any of the
|
|
300
|
+
notices that would otherwise be required to be kept intact under this
|
|
301
|
+
License. You may also add or remove any additional permissions for the
|
|
302
|
+
covered work; but if you do so, you must speak for yourself and not the
|
|
303
|
+
copyright holder or any other licensor.
|
|
304
|
+
|
|
305
|
+
If the Program includes any condition, which is not a condition of
|
|
306
|
+
this License, but which is accepted as a valid extra condition in
|
|
307
|
+
accordance with the GNU GPL, then your rights under this License are
|
|
308
|
+
not limited by that extra condition, unless you accept it in writing.
|
|
309
|
+
|
|
310
|
+
8. Termination.
|
|
311
|
+
|
|
312
|
+
You may not propagate or modify a covered work except as expressly
|
|
313
|
+
provided under this License. Any attempt otherwise to propagate or
|
|
314
|
+
modify it is void, and will automatically terminate your rights under
|
|
315
|
+
this License (including any patent licenses granted under the third
|
|
316
|
+
paragraph of section 11).
|
|
317
|
+
|
|
318
|
+
However, if you cease all violation of this License, then your
|
|
319
|
+
license from a particular copyright holder is reinstated (a)
|
|
320
|
+
provisionally, unless and until the copyright holder explicitly and
|
|
321
|
+
finally terminates your license, and (b) permanently, if the copyright
|
|
322
|
+
holder fails to notify you of the violation by some reasonable means
|
|
323
|
+
prior to 60 days after the cessation.
|
|
324
|
+
|
|
325
|
+
Moreover, your license from a particular copyright holder is
|
|
326
|
+
reinstated permanently if the copyright holder notifies you of the
|
|
327
|
+
violation by some reasonable means, this is the first time you have
|
|
328
|
+
received notice of violation of this License (for any work) from that
|
|
329
|
+
copyright holder, and you cure the violation prior to 30 days after your
|
|
330
|
+
receipt of the notice.
|
|
331
|
+
|
|
332
|
+
9. Acceptance Not Required for Having Copies.
|
|
333
|
+
|
|
334
|
+
You are not required to accept this License in order to receive or
|
|
335
|
+
run a copy of the Program. Ancillary propagation of a covered work
|
|
336
|
+
occurring solely as a consequence of using peer-to-peer transmission to
|
|
337
|
+
receive a copy likewise does not require acceptance. However,
|
|
338
|
+
nothing else grants you permission to propagate or modify a covered
|
|
339
|
+
work. These actions infringe copyright if you do not accept this
|
|
340
|
+
License. Therefore, by modifying or propagating a covered work, you
|
|
341
|
+
indicate your acceptance of this License to do so.
|
|
342
|
+
|
|
343
|
+
10. Automatic Licensing of Downstream Recipients.
|
|
344
|
+
|
|
345
|
+
Each time you convey a covered work, the recipient automatically
|
|
346
|
+
receives a license from the original licensors, to run, modify and
|
|
347
|
+
propagate that work, subject to this License. You are not responsible
|
|
348
|
+
for enforcing compliance by third parties with this License.
|
|
349
|
+
|
|
350
|
+
11. Patents.
|
|
351
|
+
|
|
352
|
+
A "contributor" is a copyright holder who authorizes use under this
|
|
353
|
+
License of the Program or a work based on it. A "patent license" is an
|
|
354
|
+
express agreement or commitment to make a patent claim available to
|
|
355
|
+
users of a covered work under terms that permit use, modification, and
|
|
356
|
+
conveyance of the covered work, as allowed by this License.
|
|
357
|
+
|
|
358
|
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
359
|
+
patent license under the contributor's intellectual property rights in
|
|
360
|
+
the covered work, to make, use, sell, offer for sale, import, and
|
|
361
|
+
otherwise run, modify, and propagate the covered work.
|
|
362
|
+
|
|
363
|
+
If you convey a covered work, knowingly relying on a patent license,
|
|
364
|
+
and the Corresponding Source of the work is not available for anyone to
|
|
365
|
+
copy, free of charge and under the terms of this License, through a
|
|
366
|
+
publicly available network server or other readily accessible means, then
|
|
367
|
+
you must either (1) arrange for the Corresponding Source to be so
|
|
368
|
+
available, or (2) arrange to deprive yourself of the benefit of the
|
|
369
|
+
patent license for this particular work, or (3) arrange, in a manner
|
|
370
|
+
consistent with the requirements of this License, to extend the patent
|
|
371
|
+
license to downstream recipients. "Knowingly relying" means you have
|
|
372
|
+
actual knowledge that, but for the patent license, your conveying the
|
|
373
|
+
covered work or modifying it would infringe one or more identifiable
|
|
374
|
+
patent claims.
|
|
375
|
+
|
|
376
|
+
12. No Surrender of Others' Freedom.
|
|
377
|
+
|
|
378
|
+
If conditions are imposed on you (whether by court order, agreement or
|
|
379
|
+
otherwise) that contradict the conditions of this License, they do not
|
|
380
|
+
excuse you from the conditions of this License. If you cannot convey a
|
|
381
|
+
covered work so as to satisfy simultaneously your obligations under this
|
|
382
|
+
License and any other pertinent obligations, then as a consequence you
|
|
383
|
+
may not convey it at all. For example, if a patent license would not
|
|
384
|
+
permit royalty-free redistribution of the Program by all those who
|
|
385
|
+
receive copies directly or indirectly through you, then the only way you
|
|
386
|
+
could satisfy both it and this License would be to refrain entirely from
|
|
387
|
+
conveying the Program.
|
|
388
|
+
|
|
389
|
+
13. Use with the GNU Affero General Public License.
|
|
390
|
+
|
|
391
|
+
Notwithstanding any other provision of this License, you have
|
|
392
|
+
permission to link or combine any covered work with a work licensed
|
|
393
|
+
under version 3 of the GNU Affero General Public License into a single
|
|
394
|
+
combined work, and to convey the resulting work. The terms of this
|
|
395
|
+
License will continue to apply to the part which is the covered work,
|
|
396
|
+
but the special requirements of the GNU Affero General Public License,
|
|
397
|
+
section 13, concerning interaction through a network will apply to the
|
|
398
|
+
combination as such.
|
|
399
|
+
|
|
400
|
+
14. Revised Versions of this License.
|
|
401
|
+
|
|
402
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
403
|
+
of the GNU General Public License from time to time. Such new versions
|
|
404
|
+
will be similar in spirit to the present version, but may differ in
|
|
405
|
+
detail to address new problems or concerns.
|
|
406
|
+
|
|
407
|
+
Each version is given a distinguishing version number. If the Program
|
|
408
|
+
specifies that a certain numbered version of the GNU General Public
|
|
409
|
+
License "or any later version" applies to it, you have the option of
|
|
410
|
+
following the terms and conditions either of that numbered version or of
|
|
411
|
+
any later version published by the Free Software Foundation. If the
|
|
412
|
+
Program does not specify a version number, you may choose any version
|
|
413
|
+
ever published by the Free Software Foundation.
|
|
414
|
+
|
|
415
|
+
15. Disclaimer of Warranty.
|
|
416
|
+
|
|
417
|
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
418
|
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
419
|
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
420
|
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
421
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
422
|
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
423
|
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
424
|
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
425
|
+
|
|
426
|
+
16. Limitation of Liability.
|
|
427
|
+
|
|
428
|
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
429
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
430
|
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
431
|
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
432
|
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
433
|
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
434
|
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
435
|
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
436
|
+
SUCH DAMAGES.
|
|
437
|
+
|
|
438
|
+
17. Interpretation of Sections 15 and 16.
|
|
439
|
+
|
|
440
|
+
If the disclaimer of warranty and limitation of liability provided
|
|
441
|
+
above cannot be given local legal effect according to their terms,
|
|
442
|
+
reviewing courts shall apply local law that most closely approximates an
|
|
443
|
+
absolute waiver of all civil liability in connection with the Program,
|
|
444
|
+
unless a warranty or assumption of liability accompanies a copy of the
|
|
445
|
+
Program in return for a fee.
|
|
446
|
+
|
|
447
|
+
END OF TERMS AND CONDITIONS
|
|
448
|
+
|
|
449
|
+
How to Apply These Terms to Your New Programs
|
|
450
|
+
|
|
451
|
+
If you develop a new program, and you want it to be of the greatest
|
|
452
|
+
possible use to the public, the best way to achieve this is to make it
|
|
453
|
+
free software which everyone can redistribute and change under these
|
|
454
|
+
terms.
|
|
455
|
+
|
|
456
|
+
To do so, attach the following notices to the program. It is safest
|
|
457
|
+
to attach them to the start of each source file to most effectively state
|
|
458
|
+
the exclusion of warranty; and each file should have at least the
|
|
459
|
+
"copyright" line and a pointer to where the full notice is found.
|
|
460
|
+
|
|
461
|
+
<one line to give the program's name and a brief idea of what it does.>
|
|
462
|
+
Copyright (C) <year> <name of author>
|
|
463
|
+
|
|
464
|
+
This program is free software: you can redistribute it and/or modify
|
|
465
|
+
it under the terms of the GNU General Public License as published by
|
|
466
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
467
|
+
(at your option) any later version.
|
|
468
|
+
|
|
469
|
+
This program is distributed in the hope that it will be useful,
|
|
470
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
471
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
472
|
+
GNU General Public License for more details.
|
|
473
|
+
|
|
474
|
+
You should have received a copy of the GNU General Public License
|
|
475
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
476
|
+
|
|
477
|
+
Also add information on how to contact you by electronic and paper mail.
|
|
478
|
+
|
|
479
|
+
If the program does terminal interaction, make it output a short notice
|
|
480
|
+
like this when it starts in an interactive mode:
|
|
481
|
+
|
|
482
|
+
<program> Copyright (C) <year> <name of author>
|
|
483
|
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
484
|
+
This is free software, and you are welcome to redistribute it
|
|
485
|
+
under certain conditions; type `show c' for details.
|
|
486
|
+
|
|
487
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
488
|
+
parts of the General Public License. Of course, your program's commands
|
|
489
|
+
might be different; the system will display the commands appropriately if
|
|
490
|
+
it does not.
|
|
491
|
+
|
|
492
|
+
You should also get your employer (if you work as a programmer) or your
|
|
493
|
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
494
|
+
necessary. For more information on the GNU GPL, see
|
|
495
|
+
<https://www.gnu.org/licenses/>.
|
|
496
|
+
|
|
497
|
+
The GNU General Public License does not permit incorporating your program
|
|
498
|
+
into proprietary programs. If your program is a subroutine library, you
|
|
499
|
+
may consider it more useful to permit linking proprietary applications
|
|
500
|
+
with the library. If this is what you want to do, use the GNU Lesser
|
|
501
|
+
General Public License instead of this License. But first, please read
|
|
502
|
+
<https://www.gnu.org/licenses/>.
|