-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathx-gif.html
681 lines (676 loc) · 65.9 KB
/
x-gif.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
<template id="template">
<style>:host {
display: inline-block; }
#frames,
.x-gif__frames {
display: inline-block;
position: relative; }
#frames[data-frame="0"] .frame:nth-child(n + 2),
.x-gif__frames[data-frame="0"] .frame:nth-child(n + 2) {
opacity: 0; }
#frames[data-frame="0"] .frame.disposal-restore:nth-child(1),
.x-gif__frames[data-frame="0"] .frame.disposal-restore:nth-child(1) {
opacity: 1; }
#frames[data-frame="1"] .frame:nth-child(n + 3),
.x-gif__frames[data-frame="1"] .frame:nth-child(n + 3) {
opacity: 0; }
#frames[data-frame="1"] .frame.disposal-restore:nth-child(2),
.x-gif__frames[data-frame="1"] .frame.disposal-restore:nth-child(2) {
opacity: 1; }
#frames[data-frame="2"] .frame:nth-child(n + 4),
.x-gif__frames[data-frame="2"] .frame:nth-child(n + 4) {
opacity: 0; }
#frames[data-frame="2"] .frame.disposal-restore:nth-child(3),
.x-gif__frames[data-frame="2"] .frame.disposal-restore:nth-child(3) {
opacity: 1; }
#frames[data-frame="3"] .frame:nth-child(n + 5),
.x-gif__frames[data-frame="3"] .frame:nth-child(n + 5) {
opacity: 0; }
#frames[data-frame="3"] .frame.disposal-restore:nth-child(4),
.x-gif__frames[data-frame="3"] .frame.disposal-restore:nth-child(4) {
opacity: 1; }
#frames[data-frame="4"] .frame:nth-child(n + 6),
.x-gif__frames[data-frame="4"] .frame:nth-child(n + 6) {
opacity: 0; }
#frames[data-frame="4"] .frame.disposal-restore:nth-child(5),
.x-gif__frames[data-frame="4"] .frame.disposal-restore:nth-child(5) {
opacity: 1; }
#frames[data-frame="5"] .frame:nth-child(n + 7),
.x-gif__frames[data-frame="5"] .frame:nth-child(n + 7) {
opacity: 0; }
#frames[data-frame="5"] .frame.disposal-restore:nth-child(6),
.x-gif__frames[data-frame="5"] .frame.disposal-restore:nth-child(6) {
opacity: 1; }
#frames[data-frame="6"] .frame:nth-child(n + 8),
.x-gif__frames[data-frame="6"] .frame:nth-child(n + 8) {
opacity: 0; }
#frames[data-frame="6"] .frame.disposal-restore:nth-child(7),
.x-gif__frames[data-frame="6"] .frame.disposal-restore:nth-child(7) {
opacity: 1; }
#frames[data-frame="7"] .frame:nth-child(n + 9),
.x-gif__frames[data-frame="7"] .frame:nth-child(n + 9) {
opacity: 0; }
#frames[data-frame="7"] .frame.disposal-restore:nth-child(8),
.x-gif__frames[data-frame="7"] .frame.disposal-restore:nth-child(8) {
opacity: 1; }
#frames[data-frame="8"] .frame:nth-child(n + 10),
.x-gif__frames[data-frame="8"] .frame:nth-child(n + 10) {
opacity: 0; }
#frames[data-frame="8"] .frame.disposal-restore:nth-child(9),
.x-gif__frames[data-frame="8"] .frame.disposal-restore:nth-child(9) {
opacity: 1; }
#frames[data-frame="9"] .frame:nth-child(n + 11),
.x-gif__frames[data-frame="9"] .frame:nth-child(n + 11) {
opacity: 0; }
#frames[data-frame="9"] .frame.disposal-restore:nth-child(10),
.x-gif__frames[data-frame="9"] .frame.disposal-restore:nth-child(10) {
opacity: 1; }
#frames[data-frame="10"] .frame:nth-child(n + 12),
.x-gif__frames[data-frame="10"] .frame:nth-child(n + 12) {
opacity: 0; }
#frames[data-frame="10"] .frame.disposal-restore:nth-child(11),
.x-gif__frames[data-frame="10"] .frame.disposal-restore:nth-child(11) {
opacity: 1; }
#frames[data-frame="11"] .frame:nth-child(n + 13),
.x-gif__frames[data-frame="11"] .frame:nth-child(n + 13) {
opacity: 0; }
#frames[data-frame="11"] .frame.disposal-restore:nth-child(12),
.x-gif__frames[data-frame="11"] .frame.disposal-restore:nth-child(12) {
opacity: 1; }
#frames[data-frame="12"] .frame:nth-child(n + 14),
.x-gif__frames[data-frame="12"] .frame:nth-child(n + 14) {
opacity: 0; }
#frames[data-frame="12"] .frame.disposal-restore:nth-child(13),
.x-gif__frames[data-frame="12"] .frame.disposal-restore:nth-child(13) {
opacity: 1; }
#frames[data-frame="13"] .frame:nth-child(n + 15),
.x-gif__frames[data-frame="13"] .frame:nth-child(n + 15) {
opacity: 0; }
#frames[data-frame="13"] .frame.disposal-restore:nth-child(14),
.x-gif__frames[data-frame="13"] .frame.disposal-restore:nth-child(14) {
opacity: 1; }
#frames[data-frame="14"] .frame:nth-child(n + 16),
.x-gif__frames[data-frame="14"] .frame:nth-child(n + 16) {
opacity: 0; }
#frames[data-frame="14"] .frame.disposal-restore:nth-child(15),
.x-gif__frames[data-frame="14"] .frame.disposal-restore:nth-child(15) {
opacity: 1; }
#frames[data-frame="15"] .frame:nth-child(n + 17),
.x-gif__frames[data-frame="15"] .frame:nth-child(n + 17) {
opacity: 0; }
#frames[data-frame="15"] .frame.disposal-restore:nth-child(16),
.x-gif__frames[data-frame="15"] .frame.disposal-restore:nth-child(16) {
opacity: 1; }
#frames[data-frame="16"] .frame:nth-child(n + 18),
.x-gif__frames[data-frame="16"] .frame:nth-child(n + 18) {
opacity: 0; }
#frames[data-frame="16"] .frame.disposal-restore:nth-child(17),
.x-gif__frames[data-frame="16"] .frame.disposal-restore:nth-child(17) {
opacity: 1; }
#frames[data-frame="17"] .frame:nth-child(n + 19),
.x-gif__frames[data-frame="17"] .frame:nth-child(n + 19) {
opacity: 0; }
#frames[data-frame="17"] .frame.disposal-restore:nth-child(18),
.x-gif__frames[data-frame="17"] .frame.disposal-restore:nth-child(18) {
opacity: 1; }
#frames[data-frame="18"] .frame:nth-child(n + 20),
.x-gif__frames[data-frame="18"] .frame:nth-child(n + 20) {
opacity: 0; }
#frames[data-frame="18"] .frame.disposal-restore:nth-child(19),
.x-gif__frames[data-frame="18"] .frame.disposal-restore:nth-child(19) {
opacity: 1; }
#frames[data-frame="19"] .frame:nth-child(n + 21),
.x-gif__frames[data-frame="19"] .frame:nth-child(n + 21) {
opacity: 0; }
#frames[data-frame="19"] .frame.disposal-restore:nth-child(20),
.x-gif__frames[data-frame="19"] .frame.disposal-restore:nth-child(20) {
opacity: 1; }
#frames[data-frame="20"] .frame:nth-child(n + 22),
.x-gif__frames[data-frame="20"] .frame:nth-child(n + 22) {
opacity: 0; }
#frames[data-frame="20"] .frame.disposal-restore:nth-child(21),
.x-gif__frames[data-frame="20"] .frame.disposal-restore:nth-child(21) {
opacity: 1; }
#frames[data-frame="21"] .frame:nth-child(n + 23),
.x-gif__frames[data-frame="21"] .frame:nth-child(n + 23) {
opacity: 0; }
#frames[data-frame="21"] .frame.disposal-restore:nth-child(22),
.x-gif__frames[data-frame="21"] .frame.disposal-restore:nth-child(22) {
opacity: 1; }
#frames[data-frame="22"] .frame:nth-child(n + 24),
.x-gif__frames[data-frame="22"] .frame:nth-child(n + 24) {
opacity: 0; }
#frames[data-frame="22"] .frame.disposal-restore:nth-child(23),
.x-gif__frames[data-frame="22"] .frame.disposal-restore:nth-child(23) {
opacity: 1; }
#frames[data-frame="23"] .frame:nth-child(n + 25),
.x-gif__frames[data-frame="23"] .frame:nth-child(n + 25) {
opacity: 0; }
#frames[data-frame="23"] .frame.disposal-restore:nth-child(24),
.x-gif__frames[data-frame="23"] .frame.disposal-restore:nth-child(24) {
opacity: 1; }
#frames[data-frame="24"] .frame:nth-child(n + 26),
.x-gif__frames[data-frame="24"] .frame:nth-child(n + 26) {
opacity: 0; }
#frames[data-frame="24"] .frame.disposal-restore:nth-child(25),
.x-gif__frames[data-frame="24"] .frame.disposal-restore:nth-child(25) {
opacity: 1; }
#frames[data-frame="25"] .frame:nth-child(n + 27),
.x-gif__frames[data-frame="25"] .frame:nth-child(n + 27) {
opacity: 0; }
#frames[data-frame="25"] .frame.disposal-restore:nth-child(26),
.x-gif__frames[data-frame="25"] .frame.disposal-restore:nth-child(26) {
opacity: 1; }
#frames[data-frame="26"] .frame:nth-child(n + 28),
.x-gif__frames[data-frame="26"] .frame:nth-child(n + 28) {
opacity: 0; }
#frames[data-frame="26"] .frame.disposal-restore:nth-child(27),
.x-gif__frames[data-frame="26"] .frame.disposal-restore:nth-child(27) {
opacity: 1; }
#frames[data-frame="27"] .frame:nth-child(n + 29),
.x-gif__frames[data-frame="27"] .frame:nth-child(n + 29) {
opacity: 0; }
#frames[data-frame="27"] .frame.disposal-restore:nth-child(28),
.x-gif__frames[data-frame="27"] .frame.disposal-restore:nth-child(28) {
opacity: 1; }
#frames[data-frame="28"] .frame:nth-child(n + 30),
.x-gif__frames[data-frame="28"] .frame:nth-child(n + 30) {
opacity: 0; }
#frames[data-frame="28"] .frame.disposal-restore:nth-child(29),
.x-gif__frames[data-frame="28"] .frame.disposal-restore:nth-child(29) {
opacity: 1; }
#frames[data-frame="29"] .frame:nth-child(n + 31),
.x-gif__frames[data-frame="29"] .frame:nth-child(n + 31) {
opacity: 0; }
#frames[data-frame="29"] .frame.disposal-restore:nth-child(30),
.x-gif__frames[data-frame="29"] .frame.disposal-restore:nth-child(30) {
opacity: 1; }
#frames[data-frame="30"] .frame:nth-child(n + 32),
.x-gif__frames[data-frame="30"] .frame:nth-child(n + 32) {
opacity: 0; }
#frames[data-frame="30"] .frame.disposal-restore:nth-child(31),
.x-gif__frames[data-frame="30"] .frame.disposal-restore:nth-child(31) {
opacity: 1; }
#frames[data-frame="31"] .frame:nth-child(n + 33),
.x-gif__frames[data-frame="31"] .frame:nth-child(n + 33) {
opacity: 0; }
#frames[data-frame="31"] .frame.disposal-restore:nth-child(32),
.x-gif__frames[data-frame="31"] .frame.disposal-restore:nth-child(32) {
opacity: 1; }
#frames[data-frame="32"] .frame:nth-child(n + 34),
.x-gif__frames[data-frame="32"] .frame:nth-child(n + 34) {
opacity: 0; }
#frames[data-frame="32"] .frame.disposal-restore:nth-child(33),
.x-gif__frames[data-frame="32"] .frame.disposal-restore:nth-child(33) {
opacity: 1; }
#frames[data-frame="33"] .frame:nth-child(n + 35),
.x-gif__frames[data-frame="33"] .frame:nth-child(n + 35) {
opacity: 0; }
#frames[data-frame="33"] .frame.disposal-restore:nth-child(34),
.x-gif__frames[data-frame="33"] .frame.disposal-restore:nth-child(34) {
opacity: 1; }
#frames[data-frame="34"] .frame:nth-child(n + 36),
.x-gif__frames[data-frame="34"] .frame:nth-child(n + 36) {
opacity: 0; }
#frames[data-frame="34"] .frame.disposal-restore:nth-child(35),
.x-gif__frames[data-frame="34"] .frame.disposal-restore:nth-child(35) {
opacity: 1; }
#frames[data-frame="35"] .frame:nth-child(n + 37),
.x-gif__frames[data-frame="35"] .frame:nth-child(n + 37) {
opacity: 0; }
#frames[data-frame="35"] .frame.disposal-restore:nth-child(36),
.x-gif__frames[data-frame="35"] .frame.disposal-restore:nth-child(36) {
opacity: 1; }
#frames[data-frame="36"] .frame:nth-child(n + 38),
.x-gif__frames[data-frame="36"] .frame:nth-child(n + 38) {
opacity: 0; }
#frames[data-frame="36"] .frame.disposal-restore:nth-child(37),
.x-gif__frames[data-frame="36"] .frame.disposal-restore:nth-child(37) {
opacity: 1; }
#frames[data-frame="37"] .frame:nth-child(n + 39),
.x-gif__frames[data-frame="37"] .frame:nth-child(n + 39) {
opacity: 0; }
#frames[data-frame="37"] .frame.disposal-restore:nth-child(38),
.x-gif__frames[data-frame="37"] .frame.disposal-restore:nth-child(38) {
opacity: 1; }
#frames[data-frame="38"] .frame:nth-child(n + 40),
.x-gif__frames[data-frame="38"] .frame:nth-child(n + 40) {
opacity: 0; }
#frames[data-frame="38"] .frame.disposal-restore:nth-child(39),
.x-gif__frames[data-frame="38"] .frame.disposal-restore:nth-child(39) {
opacity: 1; }
#frames[data-frame="39"] .frame:nth-child(n + 41),
.x-gif__frames[data-frame="39"] .frame:nth-child(n + 41) {
opacity: 0; }
#frames[data-frame="39"] .frame.disposal-restore:nth-child(40),
.x-gif__frames[data-frame="39"] .frame.disposal-restore:nth-child(40) {
opacity: 1; }
#frames[data-frame="40"] .frame:nth-child(n + 42),
.x-gif__frames[data-frame="40"] .frame:nth-child(n + 42) {
opacity: 0; }
#frames[data-frame="40"] .frame.disposal-restore:nth-child(41),
.x-gif__frames[data-frame="40"] .frame.disposal-restore:nth-child(41) {
opacity: 1; }
#frames[data-frame="41"] .frame:nth-child(n + 43),
.x-gif__frames[data-frame="41"] .frame:nth-child(n + 43) {
opacity: 0; }
#frames[data-frame="41"] .frame.disposal-restore:nth-child(42),
.x-gif__frames[data-frame="41"] .frame.disposal-restore:nth-child(42) {
opacity: 1; }
#frames[data-frame="42"] .frame:nth-child(n + 44),
.x-gif__frames[data-frame="42"] .frame:nth-child(n + 44) {
opacity: 0; }
#frames[data-frame="42"] .frame.disposal-restore:nth-child(43),
.x-gif__frames[data-frame="42"] .frame.disposal-restore:nth-child(43) {
opacity: 1; }
#frames[data-frame="43"] .frame:nth-child(n + 45),
.x-gif__frames[data-frame="43"] .frame:nth-child(n + 45) {
opacity: 0; }
#frames[data-frame="43"] .frame.disposal-restore:nth-child(44),
.x-gif__frames[data-frame="43"] .frame.disposal-restore:nth-child(44) {
opacity: 1; }
#frames[data-frame="44"] .frame:nth-child(n + 46),
.x-gif__frames[data-frame="44"] .frame:nth-child(n + 46) {
opacity: 0; }
#frames[data-frame="44"] .frame.disposal-restore:nth-child(45),
.x-gif__frames[data-frame="44"] .frame.disposal-restore:nth-child(45) {
opacity: 1; }
#frames[data-frame="45"] .frame:nth-child(n + 47),
.x-gif__frames[data-frame="45"] .frame:nth-child(n + 47) {
opacity: 0; }
#frames[data-frame="45"] .frame.disposal-restore:nth-child(46),
.x-gif__frames[data-frame="45"] .frame.disposal-restore:nth-child(46) {
opacity: 1; }
#frames[data-frame="46"] .frame:nth-child(n + 48),
.x-gif__frames[data-frame="46"] .frame:nth-child(n + 48) {
opacity: 0; }
#frames[data-frame="46"] .frame.disposal-restore:nth-child(47),
.x-gif__frames[data-frame="46"] .frame.disposal-restore:nth-child(47) {
opacity: 1; }
#frames[data-frame="47"] .frame:nth-child(n + 49),
.x-gif__frames[data-frame="47"] .frame:nth-child(n + 49) {
opacity: 0; }
#frames[data-frame="47"] .frame.disposal-restore:nth-child(48),
.x-gif__frames[data-frame="47"] .frame.disposal-restore:nth-child(48) {
opacity: 1; }
#frames[data-frame="48"] .frame:nth-child(n + 50),
.x-gif__frames[data-frame="48"] .frame:nth-child(n + 50) {
opacity: 0; }
#frames[data-frame="48"] .frame.disposal-restore:nth-child(49),
.x-gif__frames[data-frame="48"] .frame.disposal-restore:nth-child(49) {
opacity: 1; }
#frames[data-frame="49"] .frame:nth-child(n + 51),
.x-gif__frames[data-frame="49"] .frame:nth-child(n + 51) {
opacity: 0; }
#frames[data-frame="49"] .frame.disposal-restore:nth-child(50),
.x-gif__frames[data-frame="49"] .frame.disposal-restore:nth-child(50) {
opacity: 1; }
#frames[data-frame="50"] .frame:nth-child(n + 52),
.x-gif__frames[data-frame="50"] .frame:nth-child(n + 52) {
opacity: 0; }
#frames[data-frame="50"] .frame.disposal-restore:nth-child(51),
.x-gif__frames[data-frame="50"] .frame.disposal-restore:nth-child(51) {
opacity: 1; }
#frames[data-frame="51"] .frame:nth-child(n + 53),
.x-gif__frames[data-frame="51"] .frame:nth-child(n + 53) {
opacity: 0; }
#frames[data-frame="51"] .frame.disposal-restore:nth-child(52),
.x-gif__frames[data-frame="51"] .frame.disposal-restore:nth-child(52) {
opacity: 1; }
#frames[data-frame="52"] .frame:nth-child(n + 54),
.x-gif__frames[data-frame="52"] .frame:nth-child(n + 54) {
opacity: 0; }
#frames[data-frame="52"] .frame.disposal-restore:nth-child(53),
.x-gif__frames[data-frame="52"] .frame.disposal-restore:nth-child(53) {
opacity: 1; }
#frames[data-frame="53"] .frame:nth-child(n + 55),
.x-gif__frames[data-frame="53"] .frame:nth-child(n + 55) {
opacity: 0; }
#frames[data-frame="53"] .frame.disposal-restore:nth-child(54),
.x-gif__frames[data-frame="53"] .frame.disposal-restore:nth-child(54) {
opacity: 1; }
#frames[data-frame="54"] .frame:nth-child(n + 56),
.x-gif__frames[data-frame="54"] .frame:nth-child(n + 56) {
opacity: 0; }
#frames[data-frame="54"] .frame.disposal-restore:nth-child(55),
.x-gif__frames[data-frame="54"] .frame.disposal-restore:nth-child(55) {
opacity: 1; }
#frames[data-frame="55"] .frame:nth-child(n + 57),
.x-gif__frames[data-frame="55"] .frame:nth-child(n + 57) {
opacity: 0; }
#frames[data-frame="55"] .frame.disposal-restore:nth-child(56),
.x-gif__frames[data-frame="55"] .frame.disposal-restore:nth-child(56) {
opacity: 1; }
#frames[data-frame="56"] .frame:nth-child(n + 58),
.x-gif__frames[data-frame="56"] .frame:nth-child(n + 58) {
opacity: 0; }
#frames[data-frame="56"] .frame.disposal-restore:nth-child(57),
.x-gif__frames[data-frame="56"] .frame.disposal-restore:nth-child(57) {
opacity: 1; }
#frames[data-frame="57"] .frame:nth-child(n + 59),
.x-gif__frames[data-frame="57"] .frame:nth-child(n + 59) {
opacity: 0; }
#frames[data-frame="57"] .frame.disposal-restore:nth-child(58),
.x-gif__frames[data-frame="57"] .frame.disposal-restore:nth-child(58) {
opacity: 1; }
#frames[data-frame="58"] .frame:nth-child(n + 60),
.x-gif__frames[data-frame="58"] .frame:nth-child(n + 60) {
opacity: 0; }
#frames[data-frame="58"] .frame.disposal-restore:nth-child(59),
.x-gif__frames[data-frame="58"] .frame.disposal-restore:nth-child(59) {
opacity: 1; }
#frames[data-frame="59"] .frame:nth-child(n + 61),
.x-gif__frames[data-frame="59"] .frame:nth-child(n + 61) {
opacity: 0; }
#frames[data-frame="59"] .frame.disposal-restore:nth-child(60),
.x-gif__frames[data-frame="59"] .frame.disposal-restore:nth-child(60) {
opacity: 1; }
#frames[data-frame="60"] .frame:nth-child(n + 62),
.x-gif__frames[data-frame="60"] .frame:nth-child(n + 62) {
opacity: 0; }
#frames[data-frame="60"] .frame.disposal-restore:nth-child(61),
.x-gif__frames[data-frame="60"] .frame.disposal-restore:nth-child(61) {
opacity: 1; }
#frames[data-frame="61"] .frame:nth-child(n + 63),
.x-gif__frames[data-frame="61"] .frame:nth-child(n + 63) {
opacity: 0; }
#frames[data-frame="61"] .frame.disposal-restore:nth-child(62),
.x-gif__frames[data-frame="61"] .frame.disposal-restore:nth-child(62) {
opacity: 1; }
#frames[data-frame="62"] .frame:nth-child(n + 64),
.x-gif__frames[data-frame="62"] .frame:nth-child(n + 64) {
opacity: 0; }
#frames[data-frame="62"] .frame.disposal-restore:nth-child(63),
.x-gif__frames[data-frame="62"] .frame.disposal-restore:nth-child(63) {
opacity: 1; }
#frames[data-frame="63"] .frame:nth-child(n + 65),
.x-gif__frames[data-frame="63"] .frame:nth-child(n + 65) {
opacity: 0; }
#frames[data-frame="63"] .frame.disposal-restore:nth-child(64),
.x-gif__frames[data-frame="63"] .frame.disposal-restore:nth-child(64) {
opacity: 1; }
#frames[data-frame="64"] .frame:nth-child(n + 66),
.x-gif__frames[data-frame="64"] .frame:nth-child(n + 66) {
opacity: 0; }
#frames[data-frame="64"] .frame.disposal-restore:nth-child(65),
.x-gif__frames[data-frame="64"] .frame.disposal-restore:nth-child(65) {
opacity: 1; }
#frames[data-frame="65"] .frame:nth-child(n + 67),
.x-gif__frames[data-frame="65"] .frame:nth-child(n + 67) {
opacity: 0; }
#frames[data-frame="65"] .frame.disposal-restore:nth-child(66),
.x-gif__frames[data-frame="65"] .frame.disposal-restore:nth-child(66) {
opacity: 1; }
#frames[data-frame="66"] .frame:nth-child(n + 68),
.x-gif__frames[data-frame="66"] .frame:nth-child(n + 68) {
opacity: 0; }
#frames[data-frame="66"] .frame.disposal-restore:nth-child(67),
.x-gif__frames[data-frame="66"] .frame.disposal-restore:nth-child(67) {
opacity: 1; }
#frames[data-frame="67"] .frame:nth-child(n + 69),
.x-gif__frames[data-frame="67"] .frame:nth-child(n + 69) {
opacity: 0; }
#frames[data-frame="67"] .frame.disposal-restore:nth-child(68),
.x-gif__frames[data-frame="67"] .frame.disposal-restore:nth-child(68) {
opacity: 1; }
#frames[data-frame="68"] .frame:nth-child(n + 70),
.x-gif__frames[data-frame="68"] .frame:nth-child(n + 70) {
opacity: 0; }
#frames[data-frame="68"] .frame.disposal-restore:nth-child(69),
.x-gif__frames[data-frame="68"] .frame.disposal-restore:nth-child(69) {
opacity: 1; }
#frames[data-frame="69"] .frame:nth-child(n + 71),
.x-gif__frames[data-frame="69"] .frame:nth-child(n + 71) {
opacity: 0; }
#frames[data-frame="69"] .frame.disposal-restore:nth-child(70),
.x-gif__frames[data-frame="69"] .frame.disposal-restore:nth-child(70) {
opacity: 1; }
#frames[data-frame="70"] .frame:nth-child(n + 72),
.x-gif__frames[data-frame="70"] .frame:nth-child(n + 72) {
opacity: 0; }
#frames[data-frame="70"] .frame.disposal-restore:nth-child(71),
.x-gif__frames[data-frame="70"] .frame.disposal-restore:nth-child(71) {
opacity: 1; }
#frames[data-frame="71"] .frame:nth-child(n + 73),
.x-gif__frames[data-frame="71"] .frame:nth-child(n + 73) {
opacity: 0; }
#frames[data-frame="71"] .frame.disposal-restore:nth-child(72),
.x-gif__frames[data-frame="71"] .frame.disposal-restore:nth-child(72) {
opacity: 1; }
#frames[data-frame="72"] .frame:nth-child(n + 74),
.x-gif__frames[data-frame="72"] .frame:nth-child(n + 74) {
opacity: 0; }
#frames[data-frame="72"] .frame.disposal-restore:nth-child(73),
.x-gif__frames[data-frame="72"] .frame.disposal-restore:nth-child(73) {
opacity: 1; }
#frames[data-frame="73"] .frame:nth-child(n + 75),
.x-gif__frames[data-frame="73"] .frame:nth-child(n + 75) {
opacity: 0; }
#frames[data-frame="73"] .frame.disposal-restore:nth-child(74),
.x-gif__frames[data-frame="73"] .frame.disposal-restore:nth-child(74) {
opacity: 1; }
#frames[data-frame="74"] .frame:nth-child(n + 76),
.x-gif__frames[data-frame="74"] .frame:nth-child(n + 76) {
opacity: 0; }
#frames[data-frame="74"] .frame.disposal-restore:nth-child(75),
.x-gif__frames[data-frame="74"] .frame.disposal-restore:nth-child(75) {
opacity: 1; }
#frames[data-frame="75"] .frame:nth-child(n + 77),
.x-gif__frames[data-frame="75"] .frame:nth-child(n + 77) {
opacity: 0; }
#frames[data-frame="75"] .frame.disposal-restore:nth-child(76),
.x-gif__frames[data-frame="75"] .frame.disposal-restore:nth-child(76) {
opacity: 1; }
#frames[data-frame="76"] .frame:nth-child(n + 78),
.x-gif__frames[data-frame="76"] .frame:nth-child(n + 78) {
opacity: 0; }
#frames[data-frame="76"] .frame.disposal-restore:nth-child(77),
.x-gif__frames[data-frame="76"] .frame.disposal-restore:nth-child(77) {
opacity: 1; }
#frames[data-frame="77"] .frame:nth-child(n + 79),
.x-gif__frames[data-frame="77"] .frame:nth-child(n + 79) {
opacity: 0; }
#frames[data-frame="77"] .frame.disposal-restore:nth-child(78),
.x-gif__frames[data-frame="77"] .frame.disposal-restore:nth-child(78) {
opacity: 1; }
#frames[data-frame="78"] .frame:nth-child(n + 80),
.x-gif__frames[data-frame="78"] .frame:nth-child(n + 80) {
opacity: 0; }
#frames[data-frame="78"] .frame.disposal-restore:nth-child(79),
.x-gif__frames[data-frame="78"] .frame.disposal-restore:nth-child(79) {
opacity: 1; }
#frames[data-frame="79"] .frame:nth-child(n + 81),
.x-gif__frames[data-frame="79"] .frame:nth-child(n + 81) {
opacity: 0; }
#frames[data-frame="79"] .frame.disposal-restore:nth-child(80),
.x-gif__frames[data-frame="79"] .frame.disposal-restore:nth-child(80) {
opacity: 1; }
#frames[data-frame="80"] .frame:nth-child(n + 82),
.x-gif__frames[data-frame="80"] .frame:nth-child(n + 82) {
opacity: 0; }
#frames[data-frame="80"] .frame.disposal-restore:nth-child(81),
.x-gif__frames[data-frame="80"] .frame.disposal-restore:nth-child(81) {
opacity: 1; }
#frames[data-frame="81"] .frame:nth-child(n + 83),
.x-gif__frames[data-frame="81"] .frame:nth-child(n + 83) {
opacity: 0; }
#frames[data-frame="81"] .frame.disposal-restore:nth-child(82),
.x-gif__frames[data-frame="81"] .frame.disposal-restore:nth-child(82) {
opacity: 1; }
#frames[data-frame="82"] .frame:nth-child(n + 84),
.x-gif__frames[data-frame="82"] .frame:nth-child(n + 84) {
opacity: 0; }
#frames[data-frame="82"] .frame.disposal-restore:nth-child(83),
.x-gif__frames[data-frame="82"] .frame.disposal-restore:nth-child(83) {
opacity: 1; }
#frames[data-frame="83"] .frame:nth-child(n + 85),
.x-gif__frames[data-frame="83"] .frame:nth-child(n + 85) {
opacity: 0; }
#frames[data-frame="83"] .frame.disposal-restore:nth-child(84),
.x-gif__frames[data-frame="83"] .frame.disposal-restore:nth-child(84) {
opacity: 1; }
#frames[data-frame="84"] .frame:nth-child(n + 86),
.x-gif__frames[data-frame="84"] .frame:nth-child(n + 86) {
opacity: 0; }
#frames[data-frame="84"] .frame.disposal-restore:nth-child(85),
.x-gif__frames[data-frame="84"] .frame.disposal-restore:nth-child(85) {
opacity: 1; }
#frames[data-frame="85"] .frame:nth-child(n + 87),
.x-gif__frames[data-frame="85"] .frame:nth-child(n + 87) {
opacity: 0; }
#frames[data-frame="85"] .frame.disposal-restore:nth-child(86),
.x-gif__frames[data-frame="85"] .frame.disposal-restore:nth-child(86) {
opacity: 1; }
#frames[data-frame="86"] .frame:nth-child(n + 88),
.x-gif__frames[data-frame="86"] .frame:nth-child(n + 88) {
opacity: 0; }
#frames[data-frame="86"] .frame.disposal-restore:nth-child(87),
.x-gif__frames[data-frame="86"] .frame.disposal-restore:nth-child(87) {
opacity: 1; }
#frames[data-frame="87"] .frame:nth-child(n + 89),
.x-gif__frames[data-frame="87"] .frame:nth-child(n + 89) {
opacity: 0; }
#frames[data-frame="87"] .frame.disposal-restore:nth-child(88),
.x-gif__frames[data-frame="87"] .frame.disposal-restore:nth-child(88) {
opacity: 1; }
#frames[data-frame="88"] .frame:nth-child(n + 90),
.x-gif__frames[data-frame="88"] .frame:nth-child(n + 90) {
opacity: 0; }
#frames[data-frame="88"] .frame.disposal-restore:nth-child(89),
.x-gif__frames[data-frame="88"] .frame.disposal-restore:nth-child(89) {
opacity: 1; }
#frames[data-frame="89"] .frame:nth-child(n + 91),
.x-gif__frames[data-frame="89"] .frame:nth-child(n + 91) {
opacity: 0; }
#frames[data-frame="89"] .frame.disposal-restore:nth-child(90),
.x-gif__frames[data-frame="89"] .frame.disposal-restore:nth-child(90) {
opacity: 1; }
#frames[data-frame="90"] .frame:nth-child(n + 92),
.x-gif__frames[data-frame="90"] .frame:nth-child(n + 92) {
opacity: 0; }
#frames[data-frame="90"] .frame.disposal-restore:nth-child(91),
.x-gif__frames[data-frame="90"] .frame.disposal-restore:nth-child(91) {
opacity: 1; }
#frames[data-frame="91"] .frame:nth-child(n + 93),
.x-gif__frames[data-frame="91"] .frame:nth-child(n + 93) {
opacity: 0; }
#frames[data-frame="91"] .frame.disposal-restore:nth-child(92),
.x-gif__frames[data-frame="91"] .frame.disposal-restore:nth-child(92) {
opacity: 1; }
#frames[data-frame="92"] .frame:nth-child(n + 94),
.x-gif__frames[data-frame="92"] .frame:nth-child(n + 94) {
opacity: 0; }
#frames[data-frame="92"] .frame.disposal-restore:nth-child(93),
.x-gif__frames[data-frame="92"] .frame.disposal-restore:nth-child(93) {
opacity: 1; }
#frames[data-frame="93"] .frame:nth-child(n + 95),
.x-gif__frames[data-frame="93"] .frame:nth-child(n + 95) {
opacity: 0; }
#frames[data-frame="93"] .frame.disposal-restore:nth-child(94),
.x-gif__frames[data-frame="93"] .frame.disposal-restore:nth-child(94) {
opacity: 1; }
#frames[data-frame="94"] .frame:nth-child(n + 96),
.x-gif__frames[data-frame="94"] .frame:nth-child(n + 96) {
opacity: 0; }
#frames[data-frame="94"] .frame.disposal-restore:nth-child(95),
.x-gif__frames[data-frame="94"] .frame.disposal-restore:nth-child(95) {
opacity: 1; }
#frames[data-frame="95"] .frame:nth-child(n + 97),
.x-gif__frames[data-frame="95"] .frame:nth-child(n + 97) {
opacity: 0; }
#frames[data-frame="95"] .frame.disposal-restore:nth-child(96),
.x-gif__frames[data-frame="95"] .frame.disposal-restore:nth-child(96) {
opacity: 1; }
#frames[data-frame="96"] .frame:nth-child(n + 98),
.x-gif__frames[data-frame="96"] .frame:nth-child(n + 98) {
opacity: 0; }
#frames[data-frame="96"] .frame.disposal-restore:nth-child(97),
.x-gif__frames[data-frame="96"] .frame.disposal-restore:nth-child(97) {
opacity: 1; }
#frames[data-frame="97"] .frame:nth-child(n + 99),
.x-gif__frames[data-frame="97"] .frame:nth-child(n + 99) {
opacity: 0; }
#frames[data-frame="97"] .frame.disposal-restore:nth-child(98),
.x-gif__frames[data-frame="97"] .frame.disposal-restore:nth-child(98) {
opacity: 1; }
#frames[data-frame="98"] .frame:nth-child(n + 100),
.x-gif__frames[data-frame="98"] .frame:nth-child(n + 100) {
opacity: 0; }
#frames[data-frame="98"] .frame.disposal-restore:nth-child(99),
.x-gif__frames[data-frame="98"] .frame.disposal-restore:nth-child(99) {
opacity: 1; }
#frames[data-frame="99"] .frame:nth-child(n + 101),
.x-gif__frames[data-frame="99"] .frame:nth-child(n + 101) {
opacity: 0; }
#frames[data-frame="99"] .frame.disposal-restore:nth-child(100),
.x-gif__frames[data-frame="99"] .frame.disposal-restore:nth-child(100) {
opacity: 1; }
.frame {
position: absolute;
top: 0;
left: 0;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0); }
.frame:first-child {
position: static; }
.frame.disposal-restore {
opacity: 0; }
:host([exploded]) .frame {
position: static;
opacity: 1; }
:host([fill]) {
width: 100%;
height: 100%; }
:host([fill]) .frames-wrapper {
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
overflow: hidden; }
:host([fill]) #frames,
:host([fill]) .x-gif__frames {
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%; }
x-gif[fill] {
width: 100%;
height: 100%; }
x-gif[fill] .frames-wrapper {
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
overflow: hidden; }
x-gif[fill] #frames,
x-gif[fill] .x-gif__frames {
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%; }
</style>
<div class="frames-wrapper">
<div id="frames"></div>
</div>
</template>
<script>!function t(e,r,n){function i(s,u){if(!r[s]){if(!e[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=r[s]={exports:{}};e[s][0].call(c.exports,function(t){var r=e[s][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t){(function(t,e){!function(t){"use strict";function e(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function r(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++H+"$__"}function n(){var t=r();return z[t]=!0,t}function i(t){return"object"==typeof t&&t instanceof u}function o(t){return i(t)?"symbol":typeof t}function s(t){var e=new u(t);if(!(this instanceof s))return e;throw new TypeError("Symbol cannot be new'ed")}function u(t){var e=r();P(this,q,{value:this}),P(this,D,{value:e}),P(this,U,{value:t}),c(this),W[e]=this}function a(t){var e=t[K];return e&&e.self===t?e:B(t)?(Y.hash.value=V++,Y.self.value=t,X.value=k(null,Y),P(t,K,X),X.value):void 0}function c(t){return a(t),A.apply(this,arguments)}function l(t){return a(t),I.apply(this,arguments)}function f(t){return a(t),L.apply(this,arguments)}function h(t){return i(t)?t[D]:t}function p(t){for(var e=[],r=C(t),n=0;n<r.length;n++){var i=r[n];W[i]||z[i]||e.push(i)}return e}function d(t,e){return M(t,h(e))}function m(t){for(var e=[],r=C(t),n=0;n<r.length;n++){var i=W[r[n]];i&&e.push(i)}return e}function g(t){return $.call(this,h(t))}function v(e){return t.traceur&&t.traceur.options[e]}function b(t,e,r){var n,o;return i(e)&&(n=e,e=e[D]),t[e]=r,n&&(o=M(t,e))&&P(t,e,{enumerable:!1}),r}function y(t,e,r){return i(e)&&(r.enumerable&&(r=k(r,{enumerable:{value:!1}})),e=e[D]),P(t,e,r),t}function j(t){P(t,"defineProperty",{value:y}),P(t,"getOwnPropertyNames",{value:p}),P(t,"getOwnPropertyDescriptor",{value:d}),P(t.prototype,"hasOwnProperty",{value:g}),P(t,"freeze",{value:c}),P(t,"preventExtensions",{value:l}),P(t,"seal",{value:f}),t.getOwnPropertySymbols=m}function w(t){for(var e=1;e<arguments.length;e++)for(var r=C(arguments[e]),n=0;n<r.length;n++){var i=r[n];z[i]||!function(e,r){P(t,r,{get:function(){return e[r]},enumerable:!0})}(arguments[e],r[n])}return t}function O(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function x(t){if(null==t)throw E();return R(t)}function S(t){if(!O(t))throw E(t+" is not an Object");return t}function _(t){t.Symbol=s,j(t.Object)}if(!t.$traceurRuntime){var R=Object,E=TypeError,k=R.create,T=R.defineProperties,P=R.defineProperty,A=R.freeze,M=R.getOwnPropertyDescriptor,C=R.getOwnPropertyNames,N=R.keys,$=R.prototype.hasOwnProperty,I=(R.prototype.toString,Object.preventExtensions),L=Object.seal,B=Object.isExtensible,F={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},G=e,H=0,D=r(),U=r(),q=r(),W=k(null),z=k(null);P(s.prototype,"constructor",e(s)),P(s.prototype,"toString",G(function(){var t=this[q];if(!v("symbols"))return t[D];if(!t)throw TypeError("Conversion from symbol to string");var e=t[U];return void 0===e&&(e=""),"Symbol("+e+")"})),P(s.prototype,"valueOf",G(function(){var t=this[q];if(!t)throw TypeError("Conversion from symbol to string");return v("symbols")?t:t[D]})),P(u.prototype,"constructor",e(s)),P(u.prototype,"toString",{value:s.prototype.toString,enumerable:!1}),P(u.prototype,"valueOf",{value:s.prototype.valueOf,enumerable:!1});var K=n(),X={value:void 0},Y={hash:{value:void 0},self:{value:void 0}},V=0;s.iterator=s(),c(u.prototype),_(t),t.$traceurRuntime={assertObject:S,createPrivateName:n,exportStar:w,getOwnHashObject:a,privateNames:z,setProperty:b,setupGlobals:_,toObject:x,toProperty:h,type:F,"typeof":o,defineProperties:T,defineProperty:P,getOwnPropertyDescriptor:M,getOwnPropertyNames:C,keys:N}}}("undefined"!=typeof e?e:this),function(){"use strict";function t(){for(var t=[],r=0,n=0;n<arguments.length;n++)for(var i=e(arguments[n]),o=0;o<i.length;o++)t[r++]=i[o];return t}var e=$traceurRuntime.toObject;$traceurRuntime.spread=t}(),function(){"use strict";function t(t,e){var r=m(t);do{var n=p(r,e);if(n)return n;r=m(r)}while(r);return void 0}function e(t,e,n,i){return r(t,e,n).apply(t,i)}function r(e,r,n){var i=t(r,n);return i?i.get?i.get.call(e):i.value:void 0}function n(e,r,n,i){var o=t(r,n);if(o&&o.set)return o.set.call(e,i),i;throw c("super has no setter '"+n+"'.")}function i(t){for(var e,r={},n=d(t),i=0;i<n.length;i++){var e=n[i];r[e]=p(t,e)}return r}function o(t,e,r,n){return h(e,"constructor",{value:t,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof n&&(t.__proto__=n),t.prototype=l(s(n),i(e))):t.prototype=e,h(t,"prototype",{configurable:!1,writable:!1}),f(t,i(r))}function s(t){if("function"==typeof t){var e=t.prototype;if(a(e)===e||null===e)return t.prototype}if(null===t)return null;throw new c}function u(t,r,n){null!==m(r)&&e(t,r,"constructor",n)}var a=Object,c=TypeError,l=a.create,f=$traceurRuntime.defineProperties,h=$traceurRuntime.defineProperty,p=$traceurRuntime.getOwnPropertyDescriptor,d=$traceurRuntime.getOwnPropertyNames,m=Object.getPrototypeOf;$traceurRuntime.createClass=o,$traceurRuntime.defaultSuperCall=u,$traceurRuntime.superCall=e,$traceurRuntime.superGet=r,$traceurRuntime.superSet=n}(),function(){"use strict";function t(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function e(t){return new Error("Traceur compiler bug: invalid state in state machine: "+t)}function r(){this.state=0,this.GState=v,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function n(t,e,r,n){switch(t.GState){case b:throw new Error('"'+r+'" on executing generator');case j:if("next"==r)return{value:void 0,done:!0};throw new Error('"'+r+'" on closed generator');case v:if("throw"===r)throw t.GState=j,n;if(void 0!==n)throw g("Sent value to newborn generator");case y:t.GState=b,t.action=r,t.sent=n;var i=e(t),o=i===t;return o&&(i=t.returnValue),t.GState=o?j:y,{value:i,done:o}}}function i(){}function o(){}function s(t,e,n){var i=l(t,n),o=new r,s=m(e.prototype);return s[x]=o,s[S]=i,s}function u(t){return t.prototype=m(o.prototype),t.__proto__=o,t}function a(){r.call(this),this.err=void 0;var t=this;t.result=new Promise(function(e,r){t.resolve=e,t.reject=r})}function c(t,e){var r=l(t,e),n=new a;return n.createCallback=function(t){return function(e){n.state=t,n.value=e,r(n)}},n.errback=function(t){f(n,t),r(n)},r(n),n.result}function l(t,e){return function(r){for(;;)try{return t.call(e,r)}catch(n){f(r,n)}}}function f(t,e){t.storedException=e;var r=t.tryStack_[t.tryStack_.length-1];return r?(t.state=void 0!==r.catch?r.catch:r.finally,void(void 0!==r.finallyFallThrough&&(t.finallyFallThrough=r.finallyFallThrough))):void t.handleException(e)}var h=$traceurRuntime.createPrivateName,p=$traceurRuntime.defineProperties,d=$traceurRuntime.defineProperty,m=Object.create,g=TypeError,v=0,b=1,y=2,j=3,w=-2,O=-3;r.prototype={pushTry:function(t,e){if(null!==e){for(var r=null,n=this.tryStack_.length-1;n>=0;n--)if(void 0!==this.tryStack_[n].catch){r=this.tryStack_[n].catch;break}null===r&&(r=O),this.tryStack_.push({"finally":e,finallyFallThrough:r})}null!==t&&this.tryStack_.push({"catch":t})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(t){this.sent_=t},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case w:return this;case O:throw this.storedException;default:throw e(this.state)}},handleException:function(t){throw this.GState=j,this.state=w,t}};var x=h(),S=h();i.prototype=o,d(o,"constructor",t(i)),o.prototype={constructor:o,next:function(t){return n(this[x],this[S],"next",t)},"throw":function(t){return n(this[x],this[S],"throw",t)}},p(o.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(o.prototype,Symbol.iterator,t(function(){return this})),a.prototype=m(r.prototype),a.prototype.end=function(){switch(this.state){case w:this.resolve(this.returnValue);break;case O:this.reject(this.storedException);break;default:this.reject(e(this.state))}},a.prototype.handleException=function(){this.state=O},$traceurRuntime.asyncWrap=c,$traceurRuntime.initGeneratorFunction=u,$traceurRuntime.createGeneratorInstance=s}(),function(){function t(t,e,r,n,i,o,s){var u=[];return t&&u.push(t,":"),r&&(u.push("//"),e&&u.push(e,"@"),u.push(r),n&&u.push(":",n)),i&&u.push(i),o&&u.push("?",o),s&&u.push("#",s),u.join("")}function e(t){return t.match(u)}function r(t){if("/"===t)return"/";for(var e="/"===t[0]?"/":"",r="/"===t.slice(-1)?"/":"",n=t.split("/"),i=[],o=0,s=0;s<n.length;s++){var u=n[s];switch(u){case"":case".":break;case"..":i.length?i.pop():o++;break;default:i.push(u)}}if(!e){for(;o-->0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+r}function n(e){var n=e[a.PATH]||"";return n=r(n),e[a.PATH]=n,t(e[a.SCHEME],e[a.USER_INFO],e[a.DOMAIN],e[a.PORT],e[a.PATH],e[a.QUERY_DATA],e[a.FRAGMENT])}function i(t){var r=e(t);return n(r)}function o(t,r){var i=e(r),o=e(t);if(i[a.SCHEME])return n(i);i[a.SCHEME]=o[a.SCHEME];for(var s=a.SCHEME;s<=a.PORT;s++)i[s]||(i[s]=o[s]);if("/"==i[a.PATH][0])return n(i);var u=o[a.PATH],c=u.lastIndexOf("/");return u=u.slice(0,c+1)+i[a.PATH],i[a.PATH]=u,n(i)}function s(t){if(!t)return!1;if("/"===t[0])return!0;var r=e(t);return r[a.SCHEME]?!0:!1}var u=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),a={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=i,$traceurRuntime.isAbsolute=s,$traceurRuntime.removeDotSegments=r,$traceurRuntime.resolveUrl=o}(),function(t){"use strict";function e(t){if(t){var e=d.normalize(t);return a[e]}}function r(t){var e=arguments[1],r=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){var i,o;if(e===p){var s=Object.getOwnPropertyDescriptor(t,n);s.get&&(i=s.get)}i||(o=t[n],i=function(){return o}),Object.defineProperty(r,n,{get:i,enumerable:!0})}),Object.preventExtensions(r),r}var n,i=$traceurRuntime.assertObject($traceurRuntime),o=i.canonicalizeUrl,s=i.resolveUrl,u=i.isAbsolute,a=Object.create(null);n=t.location&&t.location.href?s(t.location.href,"./"):"";var c=function(t,e){this.url=t,this.value_=e};$traceurRuntime.createClass(c,{},{});var l=function(t,e){$traceurRuntime.superCall(this,f.prototype,"constructor",[t,null]),this.func=e},f=l;$traceurRuntime.createClass(l,{getUncoatedModule:function(){return this.value_?this.value_:this.value_=this.func.call(t)}},{},c);var h=Object.create(null),p={},d={normalize:function(t,e){if("string"!=typeof t)throw new TypeError("module name must be a string, not "+typeof t);if(u(t))return o(t);if(/[^\.]\/\.\.\//.test(t))throw new Error("module name embeds /../: "+t);return"."===t[0]&&e?s(e,t):o(t)},get:function(t){var n=e(t);if(!n)return void 0;var i=h[n.url];return i?i:(i=r(n.getUncoatedModule(),p),h[n.url]=i)},set:function(t,e){t=String(t),a[t]=new l(t,function(){return e}),h[t]=e},get baseURL(){return n},set baseURL(t){n=String(t)},registerModule:function(t,e){var r=d.normalize(t);if(a[r])throw new Error("duplicate module named "+r);a[r]=new l(r,e)},bundleStore:Object.create(null),register:function(t,e,r){e&&(e.length||r.length)?this.bundleStore[t]={deps:e,execute:function(){var t=arguments,n={};e.forEach(function(e,r){return n[e]=t[r]});var i=r.call(this,n);return i.execute.call(this),i.exports}}:this.registerModule(t,r)},getAnonymousModule:function(e){return new r(e.call(t),p)},getForTesting:function(t){var e=this;return this.testingPrefix_||Object.keys(h).some(function(t){var r=/(traceur@[^\/]*\/)/.exec(t);return r?(e.testingPrefix_=r[1],!0):void 0}),this.get(this.testingPrefix_+t)}};d.set("@traceur/src/runtime/ModuleStore",new r({ModuleStore:d}));var m=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(t){m(t)},$traceurRuntime.ModuleStore=d,t.System={register:d.register.bind(d),get:d.get,set:d.set,normalize:d.normalize},$traceurRuntime.getModuleImpl=function(t){var r=e(t);return r&&r.getUncoatedModule()}}("undefined"!=typeof e?e:this),System.register("[email protected]/src/runtime/polyfills/utils",[],function(){"use strict";function t(t){return 0|t}function e(t){return t&&("object"==typeof t||"function"==typeof t)}function r(t){return"function"==typeof t}function n(t){return t=+t,isNaN(t)?0:isFinite(t)&&0!==t?t>0?Math.floor(t):Math.ceil(t):t}function i(t){var e=n(t);return 0>e?0:Math.min(e,s)}var o=$traceurRuntime.toObject,s=Math.pow(2,53)-1;return{get toObject(){return o},get toUint32(){return t},get isObject(){return e},get isCallable(){return r},get toInteger(){return n},get toLength(){return i}}}),System.register("[email protected]/src/runtime/polyfills/Array",[],function(){"use strict";function t(t){var e=void 0!==arguments[1]?arguments[1]:0,r=arguments[2],n=u(this),i=s(n.length),a=o(e),c=void 0!==r?o(r):i;for(a=0>a?Math.max(i+a,0):Math.min(a,i),c=0>c?Math.max(i+c,0):Math.min(c,i);c>a;)n[a]=t,a++;return n}function e(t){var e=arguments[1];return n(this,t,e)}function r(t){var e=arguments[1];return n(this,t,e,!0)}function n(t,e){var r=arguments[2],n=void 0!==arguments[3]?arguments[3]:!1,i=u(t),o=s(i.length);if(!a(e))throw TypeError();for(var c=0;o>c;c++)if(c in i){var l=i[c];if(e.call(r,l,c,i))return n?c:l}return n?-1:void 0}var i=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/utils")),o=i.toInteger,s=i.toLength,u=i.toObject,a=i.isCallable;return{get fill(){return t},get find(){return e},get findIndex(){return r}}}),System.register("[email protected]/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function t(t,e){var r=u(t),n=new h;return n.iteratorObject_=r,n.arrayIteratorNextIndex_=0,n.arrayIterationKind_=e,n}function e(t,e){return{value:t,done:e}}function r(){return t(this,f)}function n(){return t(this,c)}function i(){return t(this,l)}var o,s=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/utils")),u=s.toObject,a=s.toUint32,c=1,l=2,f=3,h=function(){};return $traceurRuntime.createClass(h,(o={},Object.defineProperty(o,"next",{value:function(){var t=u(this),r=t.iteratorObject_;if(!r)throw new TypeError("Object is not an ArrayIterator");var n=t.arrayIteratorNextIndex_,i=t.arrayIterationKind_,o=a(r.length);return n>=o?(t.arrayIteratorNextIndex_=1/0,e(void 0,!0)):(t.arrayIteratorNextIndex_=n+1,i==l?e(r[n],!1):i==f?e([n,r[n]],!1):e(n,!1))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),o),{}),{get entries(){return r},get keys(){return n},get values(){return i}}}),System.register("[email protected]/src/runtime/polyfills/Map",[],function(){"use strict";function t(t,e){if(r(e)){var i=n(e);return i&&t.objectIndex_[i.hash]}return"string"==typeof e?t.stringIndex_[e]:t.primitiveIndex_[e]}function e(t){t.entries_=[],t.objectIndex_=Object.create(null),t.stringIndex_=Object.create(null),t.primitiveIndex_=Object.create(null),t.deletedCount_=0}var r=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/utils")).isObject,n=$traceurRuntime.getOwnHashObject,i=Object.prototype.hasOwnProperty,o={},s=function(){var t=arguments[0];if(!r(this))throw new TypeError("Constructor Map requires 'new'");if(i.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(e(this),null!==t&&void 0!==t){var n=t[Symbol.iterator];if(void 0!==n)for(var o,s=t[Symbol.iterator]();!(o=s.next()).done;){var u=$traceurRuntime.assertObject(o.value),a=u[0],c=u[1];this.set(a,c)}}};return $traceurRuntime.createClass(s,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(e){var r=t(this,e);return void 0!==r?this.entries_[r+1]:void 0},set:function(e,i){var o=r(e),s="string"==typeof e,u=t(this,e);if(void 0!==u)this.entries_[u+1]=i;else if(u=this.entries_.length,this.entries_[u]=e,this.entries_[u+1]=i,o){var a=n(e),c=a.hash;this.objectIndex_[c]=u}else s?this.stringIndex_[e]=u:this.primitiveIndex_[e]=u;return this},has:function(e){return void 0!==t(this,e)},"delete":function(t){var e,i,s=r(t),u="string"==typeof t;if(s){var a=n(t);a&&(e=this.objectIndex_[i=a.hash],delete this.objectIndex_[i])}else u?(e=this.stringIndex_[t],delete this.stringIndex_[t]):(e=this.primitiveIndex_[t],delete this.primitiveIndex_[t]);void 0!==e&&(this.entries_[e]=o,this.entries_[e+1]=void 0,this.deletedCount_++)},clear:function(){e(this)},forEach:function(t){for(var e=arguments[1],r=0,n=this.entries_.length;n>r;r+=2){var i=this.entries_[r],s=this.entries_[r+1];i!==o&&t.call(e,s,i,this)}}},{}),{get Map(){return s}}}),System.register("[email protected]/src/runtime/polyfills/Object",[],function(){"use strict";function t(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function e(t){for(var e=1;e<arguments.length;e++){var r,n=arguments[e],i=u(n),o=i.length;for(r=0;o>r;r++){var s=i[r];a[s]||(t[s]=n[s])}}return t}function r(t,e){var r,n,u=s(e),c=u.length;for(r=0;c>r;r++){var l=u[r];a[l]||(n=o(e,u[r]),i(t,u[r],n))}return t}var n=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/utils")),n=(n.toInteger,n.toLength,n.toObject,n.isCallable,$traceurRuntime.assertObject($traceurRuntime)),i=n.defineProperty,o=n.getOwnPropertyDescriptor,s=n.getOwnPropertyNames,u=n.keys,a=n.privateNames;return{get is(){return t},get assign(){return e},get mixin(){return r}}}),System.register("[email protected]/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function e(){return function(){t.nextTick(i)}}function r(){var t=0,e=new a(i),r=document.createTextNode("");return e.observe(r,{characterData:!0}),function(){r.data=t=++t%2}}function n(){return function(){setTimeout(i,1)}}function i(){for(var t=0;t<c.length;t++){var e=c[t],r=e[0],n=e[1];r(n)}c=[]}var o,s=function(t,e){var r=c.push([t,e]);1===r&&o()},u="undefined"!=typeof window?window:{},a=u.MutationObserver||u.WebKitMutationObserver,c=[];return o="undefined"!=typeof t&&"[object process]"==={}.toString.call(t)?e():a?r():n(),{get default(){return s}}}),System.register("[email protected]/src/runtime/polyfills/Promise",[],function(){"use strict";function t(t){return t&&"object"==typeof t&&void 0!==t.status_}function e(t){return t}function r(t){throw t}function n(t){var n=void 0!==arguments[1]?arguments[1]:e,o=void 0!==arguments[2]?arguments[2]:r,s=i(t.constructor);switch(t.status_){case void 0:throw TypeError;case 0:t.onResolve_.push(n,s),t.onReject_.push(o,s);break;case 1:l(t.value_,[n,s]);break;case-1:l(t.value_,[o,s])}return s.promise}function i(t){if(this===v){var e=s(new v(m));return{promise:e,resolve:function(t){u(e,t)},reject:function(t){a(e,t)}}}var r={};return r.promise=new t(function(t,e){r.resolve=t,r.reject=e}),r}function o(t,e,r,n,i){return t.status_=e,t.value_=r,t.onResolve_=n,t.onReject_=i,t}function s(t){return o(t,0,void 0,[],[])}function u(t,e){c(t,1,e,t.onResolve_)}function a(t,e){c(t,-1,e,t.onReject_)}function c(t,e,r,n){0===t.status_&&(l(r,n),o(t,e,r))}function l(t,e){d(function(){for(var r=0;r<e.length;r+=2)f(t,e[r],e[r+1])})}function f(e,r,i){try{var o=r(e);if(o===i.promise)throw new TypeError;t(o)?n(o,i.resolve,i.reject):i.resolve(o)}catch(s){try{i.reject(s)}catch(s){}}}function h(t){return t&&("object"==typeof t||"function"==typeof t)}function p(e,r){if(!t(r)&&h(r)){var n;try{n=r.then}catch(o){var s=b.call(e,o);return r[y]=s,s}if("function"==typeof n){var u=r[y];if(u)return u;var a=i(e);r[y]=a.promise;try{n.call(r,a.resolve,a.reject)}catch(o){a.reject(o)}return a.promise}}return r}var d=$traceurRuntime.assertObject(System.get("[email protected]/node_modules/rsvp/lib/rsvp/asap")).default,m={},g=function(t){if(t!==m){if("function"!=typeof t)throw new TypeError;var e=s(this);try{t(function(t){u(e,t)},function(t){a(e,t)})}catch(r){a(e,r)}}};$traceurRuntime.createClass(g,{"catch":function(t){return this.then(void 0,t)},then:function(i,o){"function"!=typeof i&&(i=e),"function"!=typeof o&&(o=r);var s=this,u=this.constructor;return n(this,function(e){return e=p(u,e),e===s?o(new TypeError):t(e)?e.then(i,o):i(e)},o)}},{resolve:function(t){return this===v?o(new v(m),1,t):new this(function(e){e(t)})},reject:function(t){return this===v?o(new v(m),-1,t):new this(function(e,r){r(t)})},cast:function(e){if(e instanceof this)return e;if(t(e)){var r=i(this);return n(e,r.resolve,r.reject),r.promise}return this.resolve(e)},all:function(t){var e=i(this),r=[];try{var n=t.length;if(0===n)e.resolve(r);else for(var o=0;o<t.length;o++)this.resolve(t[o]).then(function(t,i){r[t]=i,0===--n&&e.resolve(r)}.bind(void 0,o),function(t){e.reject(t)})}catch(s){e.reject(s)}return e.promise},race:function(t){var e=i(this);try{for(var r=0;r<t.length;r++)this.resolve(t[r]).then(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(n){e.reject(n)}return e.promise}});var v=g,b=v.reject,y="@@thenable";return{get Promise(){return g}}}),System.register("[email protected]/src/runtime/polyfills/String",[],function(){"use strict";function t(t){var e=String(this);if(null==this||"[object RegExp]"==u.call(t))throw TypeError();var r=e.length,n=String(t),i=(n.length,arguments.length>1?arguments[1]:void 0),o=i?Number(i):0;isNaN(o)&&(o=0);var s=Math.min(Math.max(o,0),r);return a.call(e,n,o)==s}function e(t){var e=String(this);if(null==this||"[object RegExp]"==u.call(t))throw TypeError();var r=e.length,n=String(t),i=n.length,o=r;if(arguments.length>1){var s=arguments[1];void 0!==s&&(o=s?Number(s):0,isNaN(o)&&(o=0))}var a=Math.min(Math.max(o,0),r),l=a-i;return 0>l?!1:c.call(e,n,l)==l}function r(t){if(null==this)throw TypeError();var e=String(this),r=e.length,n=String(t),i=(n.length,arguments.length>1?arguments[1]:void 0),o=i?Number(i):0;isNaN(o)&&(o=0);Math.min(Math.max(o,0),r);return-1!=a.call(e,n,o)}function n(t){if(null==this)throw TypeError();var e=String(this),r=t?Number(t):0;if(isNaN(r)&&(r=0),0>r||1/0==r)throw RangeError();if(0==r)return"";for(var n="";r--;)n+=e;return n}function i(t){if(null==this)throw TypeError();var e=String(this),r=e.length,n=t?Number(t):0;if(isNaN(n)&&(n=0),0>n||n>=r)return void 0;var i,o=e.charCodeAt(n);return o>=55296&&56319>=o&&r>n+1&&(i=e.charCodeAt(n+1),i>=56320&&57343>=i)?1024*(o-55296)+i-56320+65536:o}function o(t){var e=t.raw,r=e.length>>>0;if(0===r)return"";for(var n="",i=0;;){if(n+=e[i],i+1===r)return n;n+=arguments[++i]}}function s(){var t,e,r=[],n=Math.floor,i=-1,o=arguments.length;if(!o)return"";for(;++i<o;){var s=Number(arguments[i]);if(!isFinite(s)||0>s||s>1114111||n(s)!=s)throw RangeError("Invalid code point: "+s);65535>=s?r.push(s):(s-=65536,t=(s>>10)+55296,e=s%1024+56320,r.push(t,e))}return String.fromCharCode.apply(null,r)}var u=Object.prototype.toString,a=String.prototype.indexOf,c=String.prototype.lastIndexOf;return{get startsWith(){return t},get endsWith(){return e},get contains(){return r},get repeat(){return n},get codePointAt(){return i},get raw(){return o},get fromCodePoint(){return s}}}),System.register("[email protected]/src/runtime/polyfills/polyfills",[],function(){"use strict";function t(t,e,r){e in t||Object.defineProperty(t,e,{value:r,configurable:!0,enumerable:!1,writable:!0})}function e(e,r){for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1];t(e,i,o)}}function r(t){t.Promise||(t.Promise=c)}function n(t){t.Map||(t.Map=a)}function i(t){e(t.prototype,["codePointAt",f,"contains",h,"endsWith",p,"startsWith",v,"repeat",m]),e(t,["fromCodePoint",d,"raw",g])}function o(t,r){e(t.prototype,["entries",w,"keys",O,"values",x,"fill",b,"find",y,"findIndex",j]),r&&r.iterator&&Object.defineProperty(t.prototype,r.iterator,{value:x,configurable:!0,enumerable:!1,writable:!0})}function s(t){e(t,["assign",S,"is",_,"mixin",R])}function u(t){r(t),n(t),i(t.String),o(t.Array,t.Symbol),s(t.Object)}var a=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/Map")).Map,c=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/Promise")).Promise,l=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/String")),f=l.codePointAt,h=l.contains,p=l.endsWith,d=l.fromCodePoint,m=l.repeat,g=l.raw,v=l.startsWith,l=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/Array")),b=l.fill,y=l.find,j=l.findIndex,l=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/ArrayIterator")),w=l.entries,O=l.keys,x=l.values,l=$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/Object")),S=l.assign,_=l.is,R=l.mixin;u(this);var E=$traceurRuntime.setupGlobals;return $traceurRuntime.setupGlobals=function(t){E(t),u(t)},{}}),System.register("[email protected]/src/runtime/polyfill-import",[],function(){"use strict";$traceurRuntime.assertObject(System.get("[email protected]/src/runtime/polyfills/polyfills"));return{}}),System.get("[email protected]/src/runtime/polyfill-import")}).call(this,t("/Users/glen/src/projects/x-gif/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"/Users/glen/src/projects/x-gif/node_modules/gulp-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":2}],2:[function(t,e){function r(){}var n=e.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var n=r.shift();n()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=r,n.once=r,n.off=r,n.emit=r,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}],3:[function(t,e,r){"use strict";Object.defineProperties(r,{"default":{get:function(){return a}},__esModule:{value:!0}});var n=$traceurRuntime.assertObject(t("./gif.js")).default,i=$traceurRuntime.assertObject(t("./stream_reader.js")).default,o=$traceurRuntime.assertObject(t("./utils.js")).Promises,s=URL&&URL.createObjectURL?URL:webkitURL,u=new Map,a=function(){var t=function(t){this.file=t};return $traceurRuntime.createClass(t,{load:function(){var t=this,e=u.get(this.file);if(e)return e;var r=o.xhrGet(this.file,"*/*","arraybuffer").then(function(e){return t.explode(e)});return u.set(this.file,r),r},explode:function(t){return console.debug("EXPLODING "+this.file),new Promise(function(e,r){var o=[],u=new i(t);if("GIF89a"!=u.readAscii(6))return void r(Error("Not a GIF!"));if(u.skipBytes(4),u.peekBit(1)){u.log("GLOBAL COLOR TABLE");var a=7&u.readByte();u.log("GLOBAL COLOR TABLE IS "+3*Math.pow(2,a+1)+" BYTES"),u.skipBytes(2),u.skipBytes(3*Math.pow(2,a+1))}else u.log("NO GLOBAL COLOR TABLE");for(var c=t.slice(0,u.index),l=!0,f=!1;l;)if(u.isNext([33,255])){u.log("APPLICATION EXTENSION"),u.skipBytes(2);var h=u.readByte();if(u.log(u.readAscii(h)),u.isNext([3,1]))u.skipBytes(5);else{for(u.log("A weird application extension. Skip until we have 2 NULL bytes");0!==u.readByte()||0!==u.peekByte(););u.log("OK moving on"),u.skipBytes(1)}}else if(u.isNext([33,254])){for(u.log("COMMENT EXTENSION"),u.skipBytes(2);!u.isNext([0]);){var h=u.readByte();u.log(u.readAscii(h))}u.skipBytes(1)}else if(u.isNext([44])){if(u.log("IMAGE DESCRIPTOR!"),f||o.push({index:u.index,delay:0}),f=!1,u.skipBytes(9),u.peekBit(1)){u.log("LOCAL COLOR TABLE");var a=7&u.readByte();u.log("LOCAL COLOR TABLE IS "+3*Math.pow(2,a+1)+" BYTES"),u.skipBytes(3*Math.pow(2,a+1))}else u.log("NO LOCAL TABLE PHEW"),u.skipBytes(1);for(u.log("MIN CODE SIZE "+u.readByte()),u.log("DATA START");!u.isNext([0]);){var h=u.readByte();u.skipBytes(h)}u.log("DATA END"),u.skipBytes(1)}else if(u.isNext([33,249,4])){u.log("GRAPHICS CONTROL EXTENSION!");var p=u.index;u.skipBytes(3);var d=u.readByte()>>2;u.log("DISPOSAL "+d);var m=u.readByte()+256*u.readByte();o.push({index:p,delay:m,disposal:d}),u.log("FRAME DELAY "+m),u.skipBytes(2),f=!0}else{for(var g=u.index;!u.finished()&&!u.isNext([33,249,4]);)u.readByte();u.finished()?(u.index=g,u.log("WE END"),l=!1):u.log("UNKNOWN DATA FROM "+g)}for(var v=u.index,b=t.slice(-1),y=0;y<o.length;y++){var j=o[y],w=y<o.length-1?o[y+1].index:v;j.blob=new Blob([c,t.slice(j.index,w),b],{type:"image/gif"}),j.url=s.createObjectURL(j.blob)}e(new n(o))})}},{})}()},{"./gif.js":5,"./stream_reader.js":8,"./utils.js":9}],4:[function(t){"use strict";var e=$traceurRuntime.assertObject(t("./playback.js")).default,r=($traceurRuntime.assertObject(t("./strategies.js")).default,(document._currentScript||document.currentScript).ownerDocument),n=function(t){this.xgif=t,this.setupComponent(),this.srcChanged(this.xgif.getAttribute("src"))};$traceurRuntime.createClass(n,{setupComponent:function(){this.shadow=this.xgif.createShadowRoot();var t=r.querySelector("#template").content.cloneNode(!0);this.shadow.appendChild(t)},srcChanged:function(t){var r=this;t&&(console.log("Loading "+t),this.playback=new e(this,this.shadow.querySelector("#frames"),t,this.xgif.options),this.playback.ready.then(function(){"speed"==r.xgif.playbackMode?r.playback.startSpeed(r.xgif.speed):"bpm"==r.xgif.playbackMode&&r.playback.startBpm(r.xgif.bpm)}))},speedChanged:function(t){this.playback&&(this.playback.speed=t)},bpmChanged:function(t){this.playback&&this.playback.changeBpm(t)},snapChanged:function(t){this.playback&&(this.playback.snap=t)},nTimesChanged:function(t){this.playback&&(this.playback.nTimes=t)},stoppedChanged:function(t){this.playback&&(t&&!this.playback.stopped?this.playback.stop():!t&&this.playback.stopped&&this.playback.start())},pingPongChanged:function(t){this.playback&&(this.playback.pingPong=t)},clock:function(t,e,r){this.playback&&this.playback.gif&&this.playback.fromClock(t,e,r)},relayout:function(){this.playback&&this.xgif.options.fill&&this.playback.scaleToFill()}},{});var i=function(){$traceurRuntime.defaultSuperCall(this,o.prototype,arguments)},o=i;$traceurRuntime.createClass(i,{createdCallback:function(){this.determinePlaybackMode(),this.determinePlaybackOptions(),this.addStoppedOnNTimesFinishing(),this.controller=new n(this)},determinePlaybackMode:function(){if(this.hasAttribute("exploded")||this.hasAttribute("sync"))return void(this.playbackMode=void 0);var t=parseFloat(this.getAttribute("bpm"));if(!isNaN(t))return this.playbackMode="bpm",void(this.bpm=t);var e=parseFloat(this.getAttribute("speed"));this.speed=isNaN(e)?1:e,this.playbackMode="speed"},determinePlaybackOptions:function(){var t=parseFloat(this.getAttribute("n-times"));this.options={stopped:this.hasAttribute("stopped"),fill:this.hasAttribute("fill"),nTimes:isNaN(t)?null:t,snap:this.hasAttribute("snap"),pingPong:this.hasAttribute("ping-pong")}},attributeChangedCallback:function(t,e,r){"src"==t?this.controller.srcChanged(r):"speed"==t?(this.determinePlaybackMode(),this.controller.speedChanged(this.speed)):"bpm"==t?(this.determinePlaybackMode(),this.controller.bpmChanged(this.bpm)):"stopped"==t?(this.determinePlaybackOptions(),this.controller.stoppedChanged(this.options.stopped)):"ping-pong"==t?(this.determinePlaybackOptions(),this.controller.pingPongChanged(this.options.pingPong)):"snap"==t?(this.determinePlaybackOptions(),this.controller.snapChanged(this.options.snap)):"n-times"==t&&(this.determinePlaybackOptions(),this.controller.nTimesChanged(this.options.nTimes))},clock:function(t,e,r){this.controller.clock(t,e,r)},relayout:function(){this.controller.relayout()
},addStoppedOnNTimesFinishing:function(){var t=this;this.addEventListener("x-gif-finished",function(){t.setAttribute("stopped","")})}},{},HTMLElement),document.registerElement("x-gif",i)},{"./playback.js":6,"./strategies.js":7}],5:[function(t,e,r){"use strict";Object.defineProperties(r,{"default":{get:function(){return i}},__esModule:{value:!0}});var n=10,i=function(){var t=function(t){var e=this;this.frames=t,this.length=0,this.offsets=[],t.forEach(function(t){e.offsets.push(e.length),e.length+=t.delay||n})};return $traceurRuntime.createClass(t,{frameAt:function(t){for(var e=t*this.length,r=1,n=this.offsets.length;n>r&&!(this.offsets[r]>e);r++);return r-1}},{})}()},{}],6:[function(t,e,r){"use strict";function n(t,e){t.classList.add("frame"),2==e.disposal&&t.classList.add("disposal-restore")}Object.defineProperties(r,{"default":{get:function(){return s}},__esModule:{value:!0}});var i=$traceurRuntime.assertObject(t("./exploder.js")).default,o=function(t){var e=new Image;return e.src=t.url,n(e,t),e},s=function(){var t=function(t,e,r,n){var s=this;this.xgif=t,this.element=e,this.onReady=n.onReady,this.pingPong=n.pingPong,this.fill=n.fill,this.stopped=n.stopped,this.snap=n.snap,this.nTimes=n.nTimes,this.ready=new Promise(function(t){var e=new i(r);e.load().then(function(e){console.debug("Received "+e.frames.length+" frames of gif "+r),s.gif=e,s.element.innerHTML="";var n=o;e.frames.map(n).forEach(s.element.appendChild,s.element),s.fill&&requestAnimationFrame(s.scaleToFill.bind(s)),t()})})};return $traceurRuntime.createClass(t,{scaleToFill:function(){if(this.element.offsetWidth&&this.element.offsetHeight){var t=this.element.parentElement.offsetWidth/this.element.offsetWidth,e=this.element.parentElement.offsetHeight/this.element.offsetHeight;this.element.style.webkitTransform="scale("+1.1*Math.max(t,e)+")"}else requestAnimationFrame(this.scaleToFill.bind(this))},setFrame:function(t,e){var r=this.gif.frameAt(this.pingPong&&e%2>=1?1-t:t);this.element.dataset.frame=r},start:function(){this.stopped=!1,this.startTime=performance.now(),this.animationLoop&&this.animationLoop()},stop:function(){this.stopped=!0},startSpeed:function(t){var e=this;this.speed=t,this.animationLoop=function(){var t=10*e.gif.length/e.speed,r=performance.now()-e.startTime,n=r/t,i=n%1;e.nTimes&&n>=e.nTimes?(e.setFrame(e.nTimes%1||1,n),e.element.dispatchEvent(new CustomEvent("x-gif-finished"),!0)):(e.setFrame(i,n),e.stopped||requestAnimationFrame(e.animationLoop))},this.stopped||this.start()},fromClock:function(t,e,r){var n=1.5,i=this.snap?1:Math.max(1,Math.round(1/n*10*this.gif.length/e)),o=t%i,s=t/i,u=r/i+o/i;this.setFrame(u,s)},changeBpm:function(t){this.beatLength=6e4/t},startBpm:function(t){var e=this;this.changeBpm(t),this.animationLoop=function(){var t=performance.now()-e.startTime,r=Math.floor(t/e.beatLength),n=t%e.beatLength/e.beatLength;e.fromClock(r,e.beatLength,n),e.stopped||requestAnimationFrame(e.animationLoop)},this.stopped||this.start()}},{})}()},{"./exploder.js":3}],7:[function(t,e,r){"use strict";Object.defineProperties(r,{"default":{get:function(){return i}},__esModule:{value:!0}});var n={speed:function(){this.playback.startSpeed(this.speed,this.context.getAttribute("n-times"))},hardBpm:function(){this.playback.startHardBpm(parseFloat(this.context.getAttribute("hard-bpm")))},bpm:function(){this.playback.startBpm(parseFloat(this.context.getAttribute("bpm")))},noop:function(){}},i=n},{}],8:[function(t,e,r){"use strict";Object.defineProperties(r,{"default":{get:function(){return n}},__esModule:{value:!0}});var n=function(){var t=function(t){this.data=new Uint8Array(t),this.index=0,this.log("TOTAL LENGTH: "+this.data.length)};return $traceurRuntime.createClass(t,{finished:function(){return this.index>=this.data.length},readByte:function(){return this.data[this.index++]},peekByte:function(){return this.data[this.index]},skipBytes:function(t){this.index+=t},peekBit:function(t){return!!(this.peekByte()&1<<8-t)},readAscii:function(t){for(var e="",r=0;t>r;r++)e+=String.fromCharCode(this.readByte());return e},isNext:function(t){for(var e=0;e<t.length;e++)if(t[e]!==this.data[this.index+e])return!1;return!0},log:function(){},error:function(t){console.error(this.index+": "+t)}},{})}()},{}],9:[function(t,e,r){"use strict";Object.defineProperties(r,{Promises:{get:function(){return n}},__esModule:{value:!0}});var n={xhrGet:function(t,e,r){return new Promise(function(n,i){var o=new XMLHttpRequest;o.open("GET",t,!0),o.setRequestHeader("Accept",e),o.responseType=r,o.onload=function(){200==this.status?n(this.response):i(Error(this.statusText))},o.onerror=function(){i(Error("Network Error"))},o.send()})}}},{}]},{},[1,4]);</script>