195 |
223 |
224 |
225 |
226 |
235 |
236 |
237 |
--------------------------------------------------------------------------------
/static/Games.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
77 |
254 |
255 |
258 |
All games belong to respective owner! If any issues, email us at birdy@snorlaxscave.site
259 |
260 |
261 |
289 |
290 |
291 |
292 |
301 |
302 |
303 |
--------------------------------------------------------------------------------
/static/assets/js/functions.js:
--------------------------------------------------------------------------------
1 | function paramount () {
2 |
3 | window.navigator.serviceWorker.register('/sw.js', {
4 | scope: __uv$config.prefix
5 | }).then(() => {
6 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.paramountplus.com/');
7 | });
8 |
9 | }
10 |
11 | function shittletv () {
12 |
13 | window.navigator.serviceWorker.register('/sw.js', {
14 | scope: __uv$config.prefix
15 | }).then(() => {
16 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://shuttletv.net/');
17 | });
18 |
19 | }
20 |
21 | function tm () {
22 |
23 | window.navigator.serviceWorker.register('/sw.js', {
24 | scope: __uv$config.prefix
25 | }).then(() => {
26 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://tlochsta.media/');
27 | });
28 |
29 | }
30 |
31 | function pokemoncom () {
32 |
33 | window.navigator.serviceWorker.register('/sw.js', {
34 | scope: __uv$config.prefix
35 | }).then(() => {
36 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.pokemon.com/');
37 | });
38 |
39 | }
40 |
41 | function widget () {
42 |
43 | window.navigator.serviceWorker.register('/sw.js', {
44 | scope: __uv$config.prefix
45 | }).then(() => {
46 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://e.widgetbot.io/channels/1107344487958724681/1118576886038143157');
47 | });
48 |
49 | }
50 |
51 | function ani () {
52 |
53 | window.navigator.serviceWorker.register('/sw.js', {
54 | scope: __uv$config.prefix
55 | }).then(() => {
56 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://aniwatch.to/');
57 | });
58 |
59 | }
60 |
61 | function whatsapp () {
62 |
63 | window.navigator.serviceWorker.register('/sw.js', {
64 | scope: __uv$config.prefix
65 | }).then(() => {
66 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://web.whatsapp.com/');
67 | });
68 |
69 | }
70 |
71 | function vs () {
72 |
73 | window.navigator.serviceWorker.register('/sw.js', {
74 | scope: __uv$config.prefix
75 | }).then(() => {
76 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://vscode.dev/');
77 | });
78 |
79 | }
80 |
81 | function amazon () {
82 |
83 | window.navigator.serviceWorker.register('/sw.js', {
84 | scope: __uv$config.prefix
85 | }).then(() => {
86 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://amazon.com/');
87 | });
88 |
89 | }
90 |
91 | function discord () {
92 |
93 | window.navigator.serviceWorker.register('/sw.js', {
94 | scope: __uv$config.prefix
95 | }).then(() => {
96 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://discord.com');
97 | });
98 |
99 | }
100 |
101 | function google () {
102 |
103 | window.navigator.serviceWorker.register('/sw.js', {
104 | scope: __uv$config.prefix
105 | }).then(() => {
106 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://google.com');
107 | });
108 |
109 | }
110 |
111 | function soundcloud () {
112 |
113 | window.navigator.serviceWorker.register('/sw.js', {
114 | scope: __uv$config.prefix
115 | }).then(() => {
116 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://soundcloud.com/');
117 | });
118 |
119 | }
120 |
121 | function twitch () {
122 |
123 | window.navigator.serviceWorker.register('/sw.js', {
124 | scope: __uv$config.prefix
125 | }).then(() => {
126 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://twitch.tv');
127 | });
128 |
129 | }
130 |
131 | function max () {
132 |
133 | window.navigator.serviceWorker.register('/sw.js', {
134 | scope: __uv$config.prefix
135 | }).then(() => {
136 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://max.com');
137 | });
138 |
139 | }
140 |
141 | function github () {
142 |
143 | window.navigator.serviceWorker.register('/sw.js', {
144 | scope: __uv$config.prefix
145 | }).then(() => {
146 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://github.com/');
147 | });
148 |
149 | }
150 |
151 | function geforce () {
152 |
153 | window.navigator.serviceWorker.register('/sw.js', {
154 | scope: __uv$config.prefix
155 | }).then(() => {
156 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://play.geforcenow.com');
157 | });
158 |
159 | }
160 |
161 | function coolMathGames () {
162 |
163 | window.navigator.serviceWorker.register('/sw.js', {
164 | scope: __uv$config.prefix
165 | }).then(() => {
166 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://coolmathgames.com');
167 | });
168 |
169 | }
170 |
171 | function spotify () {
172 |
173 | window.navigator.serviceWorker.register('/sw.js', {
174 | scope: __uv$config.prefix
175 | }).then(() => {
176 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://spotify.com');
177 | });
178 |
179 | }
180 |
181 | function youtube () {
182 |
183 | window.navigator.serviceWorker.register('/sw.js', {
184 | scope: __uv$config.prefix
185 | }).then(() => {
186 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://youtube.com');
187 | });
188 |
189 | }
190 |
191 | function tiktok () {
192 |
193 | window.navigator.serviceWorker.register('/sw.js', {
194 | scope: __uv$config.prefix
195 | }).then(() => {
196 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://tiktok.com');
197 | });
198 |
199 | }
200 |
201 | function chess () {
202 |
203 | window.navigator.serviceWorker.register('/sw.js', {
204 | scope: __uv$config.prefix
205 | }).then(() => {
206 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://chess.com');
207 | });
208 |
209 | }
210 |
211 | function reddit () {
212 |
213 | window.navigator.serviceWorker.register('/sw.js', {
214 | scope: __uv$config.prefix
215 | }).then(() => {
216 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://reddit.com');
217 | });
218 |
219 | }
220 |
221 | function poki () {
222 |
223 | window.navigator.serviceWorker.register('/sw.js', {
224 | scope: __uv$config.prefix
225 | }).then(() => {
226 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://poki.io');
227 | });
228 |
229 | }
230 |
231 | function cookieclicker () {
232 |
233 | window.navigator.serviceWorker.register('/sw.js', {
234 | scope: __uv$config.prefix
235 | }).then(() => {
236 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://orteil.dashnet.org/cookieclicker/');
237 | });
238 |
239 | }
240 |
241 | function hole () {
242 |
243 | window.navigator.serviceWorker.register('/sw.js', {
244 | scope: __uv$config.prefix
245 | }).then(() => {
246 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://hole-io.com');
247 | });
248 |
249 | }
250 |
251 | function ball () {
252 |
253 | window.navigator.serviceWorker.register('/sw.js', {
254 | scope: __uv$config.prefix
255 | }).then(() => {
256 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://red-ball4.com/red-ball-4');
257 | });
258 |
259 | }
260 |
261 | function paper () {
262 |
263 | window.navigator.serviceWorker.register('/sw.js', {
264 | scope: __uv$config.prefix
265 | }).then(() => {
266 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://paper-io.com/');
267 | });
268 |
269 | }
270 |
271 | function gba () {
272 |
273 | window.navigator.serviceWorker.register('/sw.js', {
274 | scope: __uv$config.prefix
275 | }).then(() => {
276 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/');
277 | });
278 |
279 | }
280 |
281 |
282 | function slope () {
283 |
284 | window.navigator.serviceWorker.register('/sw.js', {
285 | scope: __uv$config.prefix
286 | }).then(() => {
287 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://derpmandev.github.io/unblocked-games/slope');
288 | });
289 |
290 | }
291 |
292 | function twoOneFourEight () {
293 |
294 | window.navigator.serviceWorker.register('/sw.js', {
295 | scope: __uv$config.prefix
296 | }).then(() => {
297 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://derpmandev.github.io/unblocked-games/2048/');
298 | });
299 |
300 | }
301 |
302 | function crossy () {
303 |
304 | window.navigator.serviceWorker.register('/sw.js', {
305 | scope: __uv$config.prefix
306 | }).then(() => {
307 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://crossyroadunblocked.github.io/');
308 | });
309 |
310 | }
311 |
312 | function garden () {
313 |
314 | window.navigator.serviceWorker.register('/sw.js', {
315 | scope: __uv$config.prefix
316 | }).then(() => {
317 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://jrob774.itch.io/grow-your-guarden');
318 | });
319 |
320 | }
321 |
322 | function onevonelol () {
323 |
324 | window.navigator.serviceWorker.register('/sw.js', {
325 | scope: __uv$config.prefix
326 | }).then(() => {
327 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://1v1.lol/');
328 | });
329 |
330 | }
331 |
332 | function pool () {
333 |
334 | window.navigator.serviceWorker.register('/sw.js', {
335 | scope: __uv$config.prefix
336 | }).then(() => {
337 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://8ballpool.com/en/game');
338 | });
339 |
340 | }
341 |
342 | function sfnf () {
343 |
344 | window.navigator.serviceWorker.register('/sw.js', {
345 | scope: __uv$config.prefix
346 | }).then(() => {
347 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://fnf.kdata1.com/snorlax/1/');
348 | });
349 |
350 | }
351 |
352 | function BGS () {
353 |
354 | window.navigator.serviceWorker.register('/sw.js', {
355 | scope: __uv$config.prefix
356 | }).then(() => {
357 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://bigfoot.pages.dev/');
358 | });
359 |
360 | }
361 |
362 | function math () {
363 |
364 | window.navigator.serviceWorker.register('/sw.js', {
365 | scope: __uv$config.prefix
366 | }).then(() => {
367 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://mathheaven.org/');
368 | });
369 |
370 | }
371 |
372 | function moto () {
373 |
374 | window.navigator.serviceWorker.register('/sw.js', {
375 | scope: __uv$config.prefix
376 | }).then(() => {
377 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://moto-x3m.net/');
378 | });
379 |
380 | }
381 |
382 | function neal () {
383 |
384 | window.navigator.serviceWorker.register('/sw.js', {
385 | scope: __uv$config.prefix
386 | }).then(() => {
387 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://neal.fun/');
388 | });
389 |
390 | }
391 |
392 | function ball () {
393 |
394 | window.navigator.serviceWorker.register('/sw.js', {
395 | scope: __uv$config.prefix
396 | }).then(() => {
397 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://red-ball4.com/red-ball-4');
398 | });
399 |
400 | }
401 |
402 | function subway () {
403 |
404 | window.navigator.serviceWorker.register('/sw.js', {
405 | scope: __uv$config.prefix
406 | }).then(() => {
407 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://raw.githack.com/3kh0/3kh0-assets/main/subway-surfers/index.html');
408 | });
409 |
410 | }
411 |
412 | function one () {
413 |
414 | window.navigator.serviceWorker.register('/sw.js', {
415 | scope: __uv$config.prefix
416 | }).then(() => {
417 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://hgentry.github.io/1/');
418 | });
419 |
420 | }
421 |
422 | function bitlife () {
423 |
424 | window.navigator.serviceWorker.register('/sw.js', {
425 | scope: __uv$config.prefix
426 | }).then(() => {
427 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://xlegends.github.io/bitlife/');
428 | });
429 |
430 | }
431 |
432 | function doge1 () {
433 |
434 | window.navigator.serviceWorker.register('/sw.js', {
435 | scope: __uv$config.prefix
436 | }).then(() => {
437 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://dogeminer.netlify.app/');
438 | });
439 |
440 | }
441 |
442 | function drifthunt () {
443 |
444 | window.navigator.serviceWorker.register('/sw.js', {
445 | scope: __uv$config.prefix
446 | }).then(() => {
447 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://webglmath.github.io/drift-hunters/');
448 | });
449 |
450 | }
451 |
452 | function tombofthemask () {
453 |
454 | window.navigator.serviceWorker.register('/sw.js', {
455 | scope: __uv$config.prefix
456 | }).then(() => {
457 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://topvazstore.github.io/g8/tomb-of-the-mask');
458 | });
459 |
460 | }
461 |
462 |
463 | function troll () {
464 |
465 | window.navigator.serviceWorker.register('/sw.js', {
466 | scope: __uv$config.prefix
467 | }).then(() => {
468 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://now.gg/apps/roblox-corporation/5349/roblox.html');
469 | });
470 |
471 | }
472 |
473 | function basketball () {
474 |
475 | window.navigator.serviceWorker.register('/sw.js', {
476 | scope: __uv$config.prefix
477 | }).then(() => {
478 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://topvazstore.github.io/g/basketball-stars');
479 | });
480 |
481 | }
482 |
483 | function ovo () {
484 |
485 | window.navigator.serviceWorker.register('/sw.js', {
486 | scope: __uv$config.prefix
487 | }).then(() => {
488 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://ovounblocked.github.io/');
489 | });
490 |
491 | }
492 |
493 | function geodash () {
494 |
495 | window.navigator.serviceWorker.register('/sw.js', {
496 | scope: __uv$config.prefix
497 | }).then(() => {
498 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://raw.githack.com/3kh0/3kh0-assets/main/geodash/index.html');
499 | });
500 |
501 | }
502 |
503 | function shittle () {
504 |
505 | window.navigator.serviceWorker.register('/sw.js', {
506 | scope: __uv$config.prefix
507 | }).then(() => {
508 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://chat.shuttle.rip/');
509 | });
510 |
511 | }
512 |
513 | function p2048 () {
514 |
515 | window.navigator.serviceWorker.register('/sw.js', {
516 | scope: __uv$config.prefix
517 | }).then(() => {
518 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://filipekiss.github.io/2048/');
519 | });
520 |
521 | }
522 |
523 | function zeldaminishcap () {
524 |
525 | window.navigator.serviceWorker.register('/sw.js', {
526 | scope: __uv$config.prefix
527 | }).then(() => {
528 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/launcher.html#zelda_minish');
529 | });
530 |
531 | }
532 |
533 | function sonicadvance3 () {
534 |
535 | window.navigator.serviceWorker.register('/sw.js', {
536 | scope: __uv$config.prefix
537 | }).then(() => {
538 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/launcher.html#sonic_advance3');
539 | });
540 |
541 | }
542 |
543 | function x () {
544 |
545 | window.navigator.serviceWorker.register('/sw.js', {
546 | scope: __uv$config.prefix
547 | }).then(() => {
548 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://x.com');
549 | });
550 |
551 | }
552 |
553 | function mc15 () {
554 |
555 | window.navigator.serviceWorker.register('/sw.js', {
556 | scope: __uv$config.prefix
557 | }).then(() => {
558 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cerealistic.github.io/eaglercraft1.5.2/');
559 | });
560 |
561 | }
562 |
563 | function mc18 () {
564 |
565 | window.navigator.serviceWorker.register('/sw.js', {
566 | scope: __uv$config.prefix
567 | }).then(() => {
568 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://raw.githack.com/3kh0/3kh0-assets/main/minecraft-18/index.html');
569 | });
570 |
571 | }
572 |
573 | function agario () {
574 |
575 | window.navigator.serviceWorker.register('/sw.js', {
576 | scope: __uv$config.prefix
577 | }).then(() => {
578 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://agar.io');
579 | });
580 |
581 | }
582 |
583 | function emerald () {
584 |
585 | window.navigator.serviceWorker.register('/sw.js', {
586 | scope: __uv$config.prefix
587 | }).then(() => {
588 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/launcher.html#pokemonemerald');
589 | });
590 |
591 | }
592 |
593 | function doge2 () {
594 |
595 | window.navigator.serviceWorker.register('/sw.js', {
596 | scope: __uv$config.prefix
597 | }).then(() => {
598 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://raw.githack.com/3kh0/3kh0-assets/main/Dogeminer2/index.html');
599 | });
600 |
601 | }
602 |
603 | function doge2miner () {
604 |
605 | window.navigator.serviceWorker.register('/sw.js', {
606 | scope: __uv$config.prefix
607 | }).then(() => {
608 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://raw.githack.com/3kh0/3kh0-assets/main/Dogeminer2/index.html');
609 | });
610 |
611 | }
612 |
613 | function cluster () {
614 |
615 | window.navigator.serviceWorker.register('/sw.js', {
616 | scope: __uv$config.prefix
617 | }).then(() => {
618 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://w8.snokido.com/games/unity-webgl/cluster-rush/index.html');
619 | });
620 |
621 | }
622 |
623 | function insta () {
624 |
625 | window.navigator.serviceWorker.register('/sw.js', {
626 | scope: __uv$config.prefix
627 | }).then(() => {
628 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.instagram.com/');
629 | });
630 |
631 | }
632 |
633 | function zombs () {
634 |
635 | window.navigator.serviceWorker.register('/sw.js', {
636 | scope: __uv$config.prefix
637 | }).then(() => {
638 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://zombsroyale.io/');
639 | });
640 |
641 | }
642 |
643 | function stumble () {
644 |
645 | window.navigator.serviceWorker.register('/sw.js', {
646 | scope: __uv$config.prefix
647 | }).then(() => {
648 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.stumbleguys.com/');
649 | });
650 |
651 | }
652 |
653 | function diep () {
654 |
655 | window.navigator.serviceWorker.register('/sw.js', {
656 | scope: __uv$config.prefix
657 | }).then(() => {
658 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://diep.io/');
659 | });
660 |
661 | }
662 |
663 | function fortnite () {
664 |
665 | window.navigator.serviceWorker.register('/sw.js', {
666 | scope: __uv$config.prefix
667 | }).then(() => {
668 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://play.geforcenow.com/games?game-id=46bfab06-d864-465d-9e56-2d9e45cdee0a&lang=en_US&asset-id=01_15494ab6-efdd-4280-acbc-c740673f17b4');
669 | });
670 |
671 | }
672 |
673 | function vex5 () {
674 |
675 | window.navigator.serviceWorker.register('/sw.js', {
676 | scope: __uv$config.prefix
677 | }).then(() => {
678 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://raw.githack.com/3kh0/3kh0-assets/main/vex5/index.html');
679 | });
680 |
681 | }
682 |
683 | function scratch () {
684 |
685 | window.navigator.serviceWorker.register('/sw.js', {
686 | scope: __uv$config.prefix
687 | }).then(() => {
688 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://scratch.mit.edu/');
689 | });
690 |
691 | }
692 |
693 | function vex7 () {
694 |
695 | window.navigator.serviceWorker.register('/sw.js', {
696 | scope: __uv$config.prefix
697 | }).then(() => {
698 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.coolmathgames.com/sites/default/files/public_games/43835/?gd_sdk_referrer_url=https%3A%2F%2Fwww.coolmathgames.com%2F0-vex-7');
699 | });
700 |
701 | }
702 |
703 | function retro () {
704 |
705 | window.navigator.serviceWorker.register('/sw.js', {
706 | scope: __uv$config.prefix
707 | }).then(() => {
708 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://game316009.konggames.com/gamez/0031/6009/live/index.html');
709 | });
710 |
711 | }
712 |
713 | function red () {
714 |
715 | window.navigator.serviceWorker.register('/sw.js', {
716 | scope: __uv$config.prefix
717 | }).then(() => {
718 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/launcher.html#pokemonred');
719 | });
720 |
721 | }
722 |
723 | function leaf () {
724 |
725 | window.navigator.serviceWorker.register('/sw.js', {
726 | scope: __uv$config.prefix
727 | }).then(() => {
728 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/launcher.html#pokemongreen');
729 | });
730 | }
731 |
732 | function platinum () {
733 |
734 | window.navigator.serviceWorker.register('/sw.js', {
735 | scope: __uv$config.prefix
736 | }).then(() => {
737 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cattn.github.io/gba/launcher.html#pokemonlp');
738 | });
739 | }
740 |
741 | function tiny () {
742 |
743 | window.navigator.serviceWorker.register('/sw.js', {
744 | scope: __uv$config.prefix
745 | }).then(() => {
746 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://purepro4561.github.io/Tiny-Fishing/');
747 | });
748 | }
749 |
750 | function cps () {
751 |
752 | window.navigator.serviceWorker.register('/sw.js', {
753 | scope: __uv$config.prefix
754 | }).then(() => {
755 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://cpstester.org/');
756 | });
757 | }
758 |
759 | function smash () {
760 |
761 | window.navigator.serviceWorker.register('/sw.js', {
762 | scope: __uv$config.prefix
763 | }).then(() => {
764 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://smashkarts.io/');
765 | });
766 | }
767 |
768 | function crazygames () {
769 |
770 | window.navigator.serviceWorker.register('/sw.js', {
771 | scope: __uv$config.prefix
772 | }).then(() => {
773 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.crazygames.com/');
774 | });
775 | }
776 |
777 | function conkers () {
778 |
779 | window.navigator.serviceWorker.register('/sw.js', {
780 | scope: __uv$config.prefix
781 | }).then(() => {
782 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://static.arcadespot.com/retroemulator.php?system=n64&game=2017/09/conkers-bad-furr-day.zip ');
783 | });
784 | }
785 |
786 |
787 | function emulatorJS () {
788 | location.href = '/emulatorjs';
789 | }
790 |
791 | function cloak() {
792 | let url = window.location.href;
793 | var w = window.open("about:blank", "_blank");
794 | w.document.write('
');
795 | window.close('','_parent','');
796 | }
797 |
798 | function glatic () {
799 |
800 | window.navigator.serviceWorker.register('/sw.js', {
801 | scope: __uv$config.prefix
802 | }).then(() => {
803 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://glatic.games');
804 | });
805 |
806 | }
807 |
808 |
809 | function replit () {
810 |
811 | window.navigator.serviceWorker.register('/sw.js', {
812 | scope: __uv$config.prefix
813 | }).then(() => {
814 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://replit.com/');
815 | });
816 |
817 | }
818 |
819 | function shell () {
820 |
821 | window.navigator.serviceWorker.register('/sw.js', {
822 | scope: __uv$config.prefix
823 | }).then(() => {
824 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://shellshock.io/');
825 | });
826 |
827 | }
828 |
829 | function boss () {
830 |
831 | window.navigator.serviceWorker.register('/sw.js', {
832 | scope: __uv$config.prefix
833 | }).then(() => {
834 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://bonbang.github.io/store5/drift-boss/');
835 | });
836 |
837 | }
838 |
839 | function baseball () {
840 |
841 | window.navigator.serviceWorker.register('/sw.js', {
842 | scope: __uv$config.prefix
843 | }).then(() => {
844 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://googlebaseball.github.io/file/');
845 | });
846 |
847 | }
848 |
849 | function cricket () {
850 |
851 | window.navigator.serviceWorker.register('/sw.js', {
852 | scope: __uv$config.prefix
853 | }).then(() => {
854 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://doodlecricket.github.io/#/');
855 | });
856 |
857 | }
858 |
859 | function pheonix () {
860 |
861 | window.navigator.serviceWorker.register('/sw.js', {
862 | scope: __uv$config.prefix
863 | }).then(() => {
864 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://static.arcadespot.com/retroemulator.php?system=nds&game=2017/10/phoenix-wright-ace-attorney.zip');
865 | });
866 |
867 | }
868 |
869 | function krunker () {
870 |
871 | window.navigator.serviceWorker.register('/sw.js', {
872 | scope: __uv$config.prefix
873 | }).then(() => {
874 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://krunker.gettingoverschool.repl.co/');
875 | });
876 |
877 | }
878 |
879 | function nitrotype () {
880 |
881 | window.navigator.serviceWorker.register('/sw.js', {
882 | scope: __uv$config.prefix
883 | }).then(() => {
884 | location.href=__uv$config.prefix + __uv$config.encodeUrl('https://www.nitrotype.com/');
885 | });
886 |
887 | }
888 |
889 |
890 | function ourDiscord () {
891 | window.location.href = 'https://discord.gg/snorlaxscave';
892 | }
893 |
894 |
895 | function patreon () {
896 | window.location.href = 'https://patreon.com/SnorlaxCave';
897 | }
898 |
899 | function email () {
900 | window.location.href = 'birdy@snorlaxscave.site';
901 | }
902 |
903 |
904 |
905 | function ourgithub () {
906 | window.location.href = 'https://github.com/SPS-Services/cave-v1';
907 | }
908 |
909 | function pluto () {
910 | window.location.href = 'https://discord.gg/obx';
911 | }
912 |
913 | function bgChange (color) {
914 | localStorage.setItem("color", color)
915 | window.location=window.location
916 | }
917 |
918 | function setImageBackground () {
919 | var url = document.getElementById('imageUrl').value;
920 | localStorage.setItem("backgroundImage", url);
921 | window.location.reload();
922 | }
923 |
--------------------------------------------------------------------------------
/static/uv/uv.sw.js:
--------------------------------------------------------------------------------
1 | importScripts('/uv/uv.bundle.js');
2 | importScripts('/uv/uv.config.js');
3 |
4 | class UVServiceWorker extends EventEmitter {
5 | constructor(config = __uv$config) {
6 | super();
7 | if (!config.bare) config.bare = '/bare/';
8 | this.addresses = typeof config.bare === 'string' ? [ new URL(config.bare, location) ] : config.bare.map(str => new URL(str, location));
9 | this.headers = {
10 | csp: [
11 | 'cross-origin-embedder-policy',
12 | 'cross-origin-opener-policy',
13 | 'cross-origin-resource-policy',
14 | 'content-security-policy',
15 | 'content-security-policy-report-only',
16 | 'expect-ct',
17 | 'feature-policy',
18 | 'origin-isolation',
19 | 'strict-transport-security',
20 | 'upgrade-insecure-requests',
21 | 'x-content-type-options',
22 | 'x-download-options',
23 | 'x-frame-options',
24 | 'x-permitted-cross-domain-policies',
25 | 'x-powered-by',
26 | 'x-xss-protection',
27 | ],
28 | forward: [
29 | 'accept-encoding',
30 | 'connection',
31 | 'content-length',
32 | ],
33 | };
34 | this.method = {
35 | empty: [
36 | 'GET',
37 | 'HEAD'
38 | ]
39 | };
40 | this.statusCode = {
41 | empty: [
42 | 204,
43 | 304,
44 | ],
45 | };
46 | this.config = config;
47 | this.browser = Ultraviolet.Bowser.getParser(self.navigator.userAgent).getBrowserName();
48 |
49 | if (this.browser === 'Firefox') {
50 | this.headers.forward.push('user-agent');
51 | this.headers.forward.push('content-type');
52 | };
53 | };
54 | async fetch({ request }) {
55 | if (!request.url.startsWith(location.origin + (this.config.prefix || '/service/'))) {
56 | return fetch(request);
57 | };
58 | try {
59 |
60 | const ultraviolet = new Ultraviolet(this.config);
61 |
62 | if (typeof this.config.construct === 'function') {
63 | this.config.construct(ultraviolet, 'service');
64 | };
65 |
66 | const db = await ultraviolet.cookie.db();
67 |
68 | ultraviolet.meta.origin = location.origin;
69 | ultraviolet.meta.base = ultraviolet.meta.url = new URL(ultraviolet.sourceUrl(request.url));
70 |
71 | const requestCtx = new RequestContext(
72 | request,
73 | this,
74 | ultraviolet,
75 | !this.method.empty.includes(request.method.toUpperCase()) ? await request.blob() : null
76 | );
77 |
78 | if (ultraviolet.meta.url.protocol === 'blob:') {
79 | requestCtx.blob = true;
80 | requestCtx.base = requestCtx.url = new URL(requestCtx.url.pathname);
81 | };
82 |
83 | if (request.referrer && request.referrer.startsWith(location.origin)) {
84 | const referer = new URL(ultraviolet.sourceUrl(request.referrer));
85 |
86 | if (requestCtx.headers.origin || ultraviolet.meta.url.origin !== referer.origin && request.mode === 'cors') {
87 | requestCtx.headers.origin = referer.origin;
88 | };
89 |
90 | requestCtx.headers.referer = referer.href;
91 | };
92 |
93 | const cookies = await ultraviolet.cookie.getCookies(db) || [];
94 | const cookieStr = ultraviolet.cookie.serialize(cookies, ultraviolet.meta, false);
95 |
96 | if (this.browser === 'Firefox' && !(request.destination === 'iframe' || request.destination === 'document')) {
97 | requestCtx.forward.shift();
98 | };
99 |
100 | if (cookieStr) requestCtx.headers.cookie = cookieStr;
101 | requestCtx.headers.Host = requestCtx.url.host;
102 |
103 |
104 | const reqEvent = new HookEvent(requestCtx, null, null);
105 | this.emit('request', reqEvent);
106 |
107 | if (reqEvent.intercepted) return reqEvent.returnValue;
108 |
109 | const response = await fetch(requestCtx.send);
110 |
111 | if (response.status === 500) {
112 | return Promise.reject('');
113 | };
114 |
115 | const responseCtx = new ResponseContext(requestCtx, response, this);
116 | const resEvent = new HookEvent(responseCtx, null, null);
117 |
118 | this.emit('beforemod', resEvent);
119 | if (resEvent.intercepted) return resEvent.returnValue;
120 |
121 | for (const name of this.headers.csp) {
122 | if (responseCtx.headers[name]) delete responseCtx.headers[name];
123 | };
124 |
125 | if (responseCtx.headers.location) {
126 | responseCtx.headers.location = ultraviolet.rewriteUrl(responseCtx.headers.location);
127 | };
128 |
129 | if (responseCtx.headers['set-cookie']) {
130 | Promise.resolve(ultraviolet.cookie.setCookies(responseCtx.headers['set-cookie'], db, ultraviolet.meta)).then(() => {
131 | self.clients.matchAll().then(function (clients){
132 | clients.forEach(function(client){
133 | client.postMessage({
134 | msg: 'updateCookies',
135 | url: ultraviolet.meta.url.href,
136 | });
137 | });
138 | });
139 | });
140 | delete responseCtx.headers['set-cookie'];
141 | };
142 |
143 | if (responseCtx.body) {
144 | switch(request.destination) {
145 | case 'script':
146 | case 'worker':
147 | responseCtx.body = `if (!self.__uv && self.importScripts) importScripts('${__uv$config.bundle}', '${__uv$config.config}', '${__uv$config.handler}');\n`;
148 | responseCtx.body += ultraviolet.js.rewrite(
149 | await response.text()
150 | );
151 | break;
152 | case 'style':
153 | responseCtx.body = ultraviolet.rewriteCSS(
154 | await response.text()
155 | );
156 | break;
157 | case 'iframe':
158 | case 'document':
159 | if (isHtml(ultraviolet.meta.url, (responseCtx.headers['content-type'] || ''))) {
160 | responseCtx.body = ultraviolet.rewriteHtml(
161 | await response.text(),
162 | {
163 | document: true ,
164 | injectHead: ultraviolet.createHtmlInject(
165 | this.config.handler,
166 | this.config.bundle,
167 | this.config.config,
168 | ultraviolet.cookie.serialize(cookies, ultraviolet.meta, true),
169 | request.referrer
170 | )
171 | }
172 | );
173 | };
174 | };
175 | };
176 |
177 | if (requestCtx.headers.accept === 'text/event-stream') {
178 | responseCtx.headers['content-type'] = 'text/event-stream';
179 | };
180 |
181 | this.emit('response', resEvent);
182 | if (resEvent.intercepted) return resEvent.returnValue;
183 |
184 | return new Response(responseCtx.body, {
185 | headers: responseCtx.headers,
186 | status: responseCtx.status,
187 | statusText: responseCtx.statusText,
188 | });
189 |
190 | } catch(err) {
191 | return new Response(err.toString(), {
192 | status: 500,
193 | });
194 | };
195 | };
196 | getBarerResponse(response) {
197 | const headers = {};
198 | const raw = JSON.parse(response.headers.get('x-bare-headers'));
199 |
200 | for (const key in raw) {
201 | headers[key.toLowerCase()] = raw[key];
202 | };
203 |
204 | return {
205 | headers,
206 | status: +response.headers.get('x-bare-status'),
207 | statusText: response.headers.get('x-bare-status-text'),
208 | body: !this.statusCode.empty.includes(+response.headers.get('x-bare-status')) ? response.body : null,
209 | };
210 | };
211 | get address() {
212 | return this.addresses[Math.floor(Math.random() * this.addresses.length)];
213 | };
214 | static Ultraviolet = Ultraviolet;
215 | };
216 |
217 | self.UVServiceWorker = UVServiceWorker;
218 |
219 |
220 | class ResponseContext {
221 | constructor(request, response, worker) {
222 | const { headers, status, statusText, body } = !request.blob ? worker.getBarerResponse(response) : {
223 | status: response.status,
224 | statusText: response.statusText,
225 | headers: Object.fromEntries([...response.headers.entries()]),
226 | body: response.body,
227 | };
228 | this.request = request;
229 | this.raw = response;
230 | this.ultraviolet = request.ultraviolet;
231 | this.headers = headers;
232 | this.status = status;
233 | this.statusText = statusText;
234 | this.body = body;
235 | };
236 | get url() {
237 | return this.request.url;
238 | }
239 | get base() {
240 | return this.request.base;
241 | };
242 | set base(val) {
243 | this.request.base = val;
244 | };
245 | };
246 |
247 | class RequestContext {
248 | constructor(request, worker, ultraviolet, body = null) {
249 | this.ultraviolet = ultraviolet;
250 | this.request = request;
251 | this.headers = Object.fromEntries([...request.headers.entries()]);
252 | this.method = request.method;
253 | this.forward = [...worker.headers.forward];
254 | this.address = worker.address;
255 | this.body = body || null;
256 | this.redirect = request.redirect;
257 | this.credentials = 'omit';
258 | this.mode = request.mode === 'cors' ? request.mode : 'same-origin';
259 | this.blob = false;
260 | };
261 | get send() {
262 | return new Request((!this.blob ? this.address.href + 'v1/' : 'blob:' + location.origin + this.url.pathname), {
263 | method: this.method,
264 | headers: {
265 | 'x-bare-protocol': this.url.protocol,
266 | 'x-bare-host': this.url.hostname,
267 | 'x-bare-path': this.url.pathname + this.url.search,
268 | 'x-bare-port': this.url.port || (this.url.protocol === 'https:' ? '443' : '80'),
269 | 'x-bare-headers': JSON.stringify(this.headers),
270 | 'x-bare-forward-headers': JSON.stringify(this.forward),
271 | 'userKey': userKey,
272 | },
273 | redirect: this.redirect,
274 | credentials: this.credentials,
275 | mode: location.origin !== this.address.origin ? 'cors' : this.mode,
276 | body: this.body
277 | });
278 | };
279 | get url() {
280 | return this.ultraviolet.meta.url;
281 | };
282 | set url(val) {
283 | this.ultraviolet.meta.url = val;
284 | };
285 | get base() {
286 | return this.ultraviolet.meta.base;
287 | };
288 | set base(val) {
289 | this.ultraviolet.meta.base = val;
290 | };
291 | }
292 |
293 | function isHtml(url, contentType = '') {
294 | return (Ultraviolet.mime.contentType((contentType || url.pathname)) || 'text/html').split(';')[0] === 'text/html';
295 | };
296 |
297 | class HookEvent {
298 | #intercepted;
299 | #returnValue;
300 | constructor(data = {}, target = null, that = null) {
301 | this.#intercepted = false;
302 | this.#returnValue = null;
303 | this.data = data;
304 | this.target = target;
305 | this.that = that;
306 | };
307 | get intercepted() {
308 | return this.#intercepted;
309 | };
310 | get returnValue() {
311 | return this.#returnValue;
312 | };
313 | respondWith(input) {
314 | this.#returnValue = input;
315 | this.#intercepted = true;
316 | };
317 | };
318 |
319 | var R = typeof Reflect === 'object' ? Reflect : null
320 | var ReflectApply = R && typeof R.apply === 'function'
321 | ? R.apply
322 | : function ReflectApply(target, receiver, args) {
323 | return Function.prototype.apply.call(target, receiver, args);
324 | }
325 |
326 | var ReflectOwnKeys
327 | if (R && typeof R.ownKeys === 'function') {
328 | ReflectOwnKeys = R.ownKeys
329 | } else if (Object.getOwnPropertySymbols) {
330 | ReflectOwnKeys = function ReflectOwnKeys(target) {
331 | return Object.getOwnPropertyNames(target)
332 | .concat(Object.getOwnPropertySymbols(target));
333 | };
334 | } else {
335 | ReflectOwnKeys = function ReflectOwnKeys(target) {
336 | return Object.getOwnPropertyNames(target);
337 | };
338 | }
339 |
340 | function ProcessEmitWarning(warning) {
341 | if (console && console.warn) console.warn(warning);
342 | }
343 |
344 | var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
345 | return value !== value;
346 | }
347 |
348 | function EventEmitter() {
349 | EventEmitter.init.call(this);
350 | }
351 |
352 | // Backwards-compat with node 0.10.x
353 | EventEmitter.EventEmitter = EventEmitter;
354 |
355 | EventEmitter.prototype._events = undefined;
356 | EventEmitter.prototype._eventsCount = 0;
357 | EventEmitter.prototype._maxListeners = undefined;
358 |
359 | // By default EventEmitters will print a warning if more than 10 listeners are
360 | // added to it. This is a useful default which helps finding memory leaks.
361 | var defaultMaxListeners = 10;
362 |
363 | function checkListener(listener) {
364 | if (typeof listener !== 'function') {
365 | throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
366 | }
367 | }
368 |
369 | Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
370 | enumerable: true,
371 | get: function() {
372 | return defaultMaxListeners;
373 | },
374 | set: function(arg) {
375 | if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
376 | throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
377 | }
378 | defaultMaxListeners = arg;
379 | }
380 | });
381 |
382 | EventEmitter.init = function() {
383 |
384 | if (this._events === undefined ||
385 | this._events === Object.getPrototypeOf(this)._events) {
386 | this._events = Object.create(null);
387 | this._eventsCount = 0;
388 | }
389 |
390 | this._maxListeners = this._maxListeners || undefined;
391 | };
392 |
393 | // Obviously not all Emitters should be limited to 10. This function allows
394 | // that to be increased. Set to zero for unlimited.
395 | EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
396 | if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
397 | throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
398 | }
399 | this._maxListeners = n;
400 | return this;
401 | };
402 |
403 | function _getMaxListeners(that) {
404 | if (that._maxListeners === undefined)
405 | return EventEmitter.defaultMaxListeners;
406 | return that._maxListeners;
407 | }
408 |
409 | EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
410 | return _getMaxListeners(this);
411 | };
412 |
413 | EventEmitter.prototype.emit = function emit(type) {
414 | var args = [];
415 | for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
416 | var doError = (type === 'error');
417 |
418 | var events = this._events;
419 | if (events !== undefined)
420 | doError = (doError && events.error === undefined);
421 | else if (!doError)
422 | return false;
423 |
424 | // If there is no 'error' event listener then throw.
425 | if (doError) {
426 | var er;
427 | if (args.length > 0)
428 | er = args[0];
429 | if (er instanceof Error) {
430 | // Note: The comments on the `throw` lines are intentional, they show
431 | // up in Node's output if this results in an unhandled exception.
432 | throw er; // Unhandled 'error' event
433 | }
434 | // At least give some kind of context to the user
435 | var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
436 | err.context = er;
437 | throw err; // Unhandled 'error' event
438 | }
439 |
440 | var handler = events[type];
441 |
442 | if (handler === undefined)
443 | return false;
444 |
445 | if (typeof handler === 'function') {
446 | ReflectApply(handler, this, args);
447 | } else {
448 | var len = handler.length;
449 | var listeners = arrayClone(handler, len);
450 | for (var i = 0; i < len; ++i)
451 | ReflectApply(listeners[i], this, args);
452 | }
453 |
454 | return true;
455 | };
456 |
457 | function _addListener(target, type, listener, prepend) {
458 | var m;
459 | var events;
460 | var existing;
461 |
462 | checkListener(listener);
463 |
464 | events = target._events;
465 | if (events === undefined) {
466 | events = target._events = Object.create(null);
467 | target._eventsCount = 0;
468 | } else {
469 | // To avoid recursion in the case that type === "newListener"! Before
470 | // adding it to the listeners, first emit "newListener".
471 | if (events.newListener !== undefined) {
472 | target.emit('newListener', type,
473 | listener.listener ? listener.listener : listener);
474 |
475 | // Re-assign `events` because a newListener handler could have caused the
476 | // this._events to be assigned to a new object
477 | events = target._events;
478 | }
479 | existing = events[type];
480 | }
481 |
482 | if (existing === undefined) {
483 | // Optimize the case of one listener. Don't need the extra array object.
484 | existing = events[type] = listener;
485 | ++target._eventsCount;
486 | } else {
487 | if (typeof existing === 'function') {
488 | // Adding the second element, need to change to array.
489 | existing = events[type] =
490 | prepend ? [listener, existing] : [existing, listener];
491 | // If we've already got an array, just append.
492 | } else if (prepend) {
493 | existing.unshift(listener);
494 | } else {
495 | existing.push(listener);
496 | }
497 |
498 | // Check for listener leak
499 | m = _getMaxListeners(target);
500 | if (m > 0 && existing.length > m && !existing.warned) {
501 | existing.warned = true;
502 | // No error code for this since it is a Warning
503 | // eslint-disable-next-line no-restricted-syntax
504 | var w = new Error('Possible EventEmitter memory leak detected. ' +
505 | existing.length + ' ' + String(type) + ' listeners ' +
506 | 'added. Use emitter.setMaxListeners() to ' +
507 | 'increase limit');
508 | w.name = 'MaxListenersExceededWarning';
509 | w.emitter = target;
510 | w.type = type;
511 | w.count = existing.length;
512 | ProcessEmitWarning(w);
513 | }
514 | }
515 |
516 | return target;
517 | }
518 |
519 | EventEmitter.prototype.addListener = function addListener(type, listener) {
520 | return _addListener(this, type, listener, false);
521 | };
522 |
523 | EventEmitter.prototype.on = EventEmitter.prototype.addListener;
524 |
525 | EventEmitter.prototype.prependListener =
526 | function prependListener(type, listener) {
527 | return _addListener(this, type, listener, true);
528 | };
529 |
530 | function onceWrapper() {
531 | if (!this.fired) {
532 | this.target.removeListener(this.type, this.wrapFn);
533 | this.fired = true;
534 | if (arguments.length === 0)
535 | return this.listener.call(this.target);
536 | return this.listener.apply(this.target, arguments);
537 | }
538 | }
539 |
540 | function _onceWrap(target, type, listener) {
541 | var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
542 | var wrapped = onceWrapper.bind(state);
543 | wrapped.listener = listener;
544 | state.wrapFn = wrapped;
545 | return wrapped;
546 | }
547 |
548 | EventEmitter.prototype.once = function once(type, listener) {
549 | checkListener(listener);
550 | this.on(type, _onceWrap(this, type, listener));
551 | return this;
552 | };
553 |
554 | EventEmitter.prototype.prependOnceListener =
555 | function prependOnceListener(type, listener) {
556 | checkListener(listener);
557 | this.prependListener(type, _onceWrap(this, type, listener));
558 | return this;
559 | };
560 |
561 | // Emits a 'removeListener' event if and only if the listener was removed.
562 | EventEmitter.prototype.removeListener =
563 | function removeListener(type, listener) {
564 | var list, events, position, i, originalListener;
565 |
566 | checkListener(listener);
567 |
568 | events = this._events;
569 | if (events === undefined)
570 | return this;
571 |
572 | list = events[type];
573 | if (list === undefined)
574 | return this;
575 |
576 | if (list === listener || list.listener === listener) {
577 | if (--this._eventsCount === 0)
578 | this._events = Object.create(null);
579 | else {
580 | delete events[type];
581 | if (events.removeListener)
582 | this.emit('removeListener', type, list.listener || listener);
583 | }
584 | } else if (typeof list !== 'function') {
585 | position = -1;
586 |
587 | for (i = list.length - 1; i >= 0; i--) {
588 | if (list[i] === listener || list[i].listener === listener) {
589 | originalListener = list[i].listener;
590 | position = i;
591 | break;
592 | }
593 | }
594 |
595 | if (position < 0)
596 | return this;
597 |
598 | if (position === 0)
599 | list.shift();
600 | else {
601 | spliceOne(list, position);
602 | }
603 |
604 | if (list.length === 1)
605 | events[type] = list[0];
606 |
607 | if (events.removeListener !== undefined)
608 | this.emit('removeListener', type, originalListener || listener);
609 | }
610 |
611 | return this;
612 | };
613 |
614 | EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
615 |
616 | EventEmitter.prototype.removeAllListeners =
617 | function removeAllListeners(type) {
618 | var listeners, events, i;
619 |
620 | events = this._events;
621 | if (events === undefined)
622 | return this;
623 |
624 | // not listening for removeListener, no need to emit
625 | if (events.removeListener === undefined) {
626 | if (arguments.length === 0) {
627 | this._events = Object.create(null);
628 | this._eventsCount = 0;
629 | } else if (events[type] !== undefined) {
630 | if (--this._eventsCount === 0)
631 | this._events = Object.create(null);
632 | else
633 | delete events[type];
634 | }
635 | return this;
636 | }
637 |
638 | // emit removeListener for all listeners on all events
639 | if (arguments.length === 0) {
640 | var keys = Object.keys(events);
641 | var key;
642 | for (i = 0; i < keys.length; ++i) {
643 | key = keys[i];
644 | if (key === 'removeListener') continue;
645 | this.removeAllListeners(key);
646 | }
647 | this.removeAllListeners('removeListener');
648 | this._events = Object.create(null);
649 | this._eventsCount = 0;
650 | return this;
651 | }
652 |
653 | listeners = events[type];
654 |
655 | if (typeof listeners === 'function') {
656 | this.removeListener(type, listeners);
657 | } else if (listeners !== undefined) {
658 | // LIFO order
659 | for (i = listeners.length - 1; i >= 0; i--) {
660 | this.removeListener(type, listeners[i]);
661 | }
662 | }
663 |
664 | return this;
665 | };
666 |
667 | function _listeners(target, type, unwrap) {
668 | var events = target._events;
669 |
670 | if (events === undefined)
671 | return [];
672 |
673 | var evlistener = events[type];
674 | if (evlistener === undefined)
675 | return [];
676 |
677 | if (typeof evlistener === 'function')
678 | return unwrap ? [evlistener.listener || evlistener] : [evlistener];
679 |
680 | return unwrap ?
681 | unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
682 | }
683 |
684 | EventEmitter.prototype.listeners = function listeners(type) {
685 | return _listeners(this, type, true);
686 | };
687 |
688 | EventEmitter.prototype.rawListeners = function rawListeners(type) {
689 | return _listeners(this, type, false);
690 | };
691 |
692 | EventEmitter.listenerCount = function(emitter, type) {
693 | if (typeof emitter.listenerCount === 'function') {
694 | return emitter.listenerCount(type);
695 | } else {
696 | return listenerCount.call(emitter, type);
697 | }
698 | };
699 |
700 | EventEmitter.prototype.listenerCount = listenerCount;
701 | function listenerCount(type) {
702 | var events = this._events;
703 |
704 | if (events !== undefined) {
705 | var evlistener = events[type];
706 |
707 | if (typeof evlistener === 'function') {
708 | return 1;
709 | } else if (evlistener !== undefined) {
710 | return evlistener.length;
711 | }
712 | }
713 |
714 | return 0;
715 | }
716 |
717 | EventEmitter.prototype.eventNames = function eventNames() {
718 | return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
719 | };
720 |
721 | function arrayClone(arr, n) {
722 | var copy = new Array(n);
723 | for (var i = 0; i < n; ++i)
724 | copy[i] = arr[i];
725 | return copy;
726 | }
727 |
728 | function spliceOne(list, index) {
729 | for (; index + 1 < list.length; index++)
730 | list[index] = list[index + 1];
731 | list.pop();
732 | }
733 |
734 | function unwrapListeners(arr) {
735 | var ret = new Array(arr.length);
736 | for (var i = 0; i < ret.length; ++i) {
737 | ret[i] = arr[i].listener || arr[i];
738 | }
739 | return ret;
740 | }
741 |
742 | function once(emitter, name) {
743 | return new Promise(function (resolve, reject) {
744 | function errorListener(err) {
745 | emitter.removeListener(name, resolver);
746 | reject(err);
747 | }
748 |
749 | function resolver() {
750 | if (typeof emitter.removeListener === 'function') {
751 | emitter.removeListener('error', errorListener);
752 | }
753 | resolve([].slice.call(arguments));
754 | };
755 |
756 | eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
757 | if (name !== 'error') {
758 | addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
759 | }
760 | });
761 | }
762 |
763 | function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
764 | if (typeof emitter.on === 'function') {
765 | eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
766 | }
767 | }
768 |
769 | function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
770 | if (typeof emitter.on === 'function') {
771 | if (flags.once) {
772 | emitter.once(name, listener);
773 | } else {
774 | emitter.on(name, listener);
775 | }
776 | } else if (typeof emitter.addEventListener === 'function') {
777 | // EventTarget does not have `error` event semantics like Node
778 | // EventEmitters, we do not listen for `error` events here.
779 | emitter.addEventListener(name, function wrapListener(arg) {
780 | // IE does not have builtin `{ once: true }` support so we
781 | // have to do it manually.
782 | if (flags.once) {
783 | emitter.removeEventListener(name, wrapListener);
784 | }
785 | listener(arg);
786 | });
787 | } else {
788 | throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
789 | }
790 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
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 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------