Showing
45 changed files
with
5161 additions
and
0 deletions
project/.vscode/launch.json
0 → 100644
1 | +{ | ||
2 | + // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. | ||
3 | + // 기존 특성에 대한 설명을 보려면 가리킵니다. | ||
4 | + // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. | ||
5 | + "version": "0.2.0", | ||
6 | + "configurations": [ | ||
7 | + { | ||
8 | + "name": "(Windows) 시작", | ||
9 | + "type": "cppvsdbg", | ||
10 | + "request": "launch", | ||
11 | + "program": "프로그램 이름 입력(예: ${workspaceFolder}/a.exe)", | ||
12 | + "args": [], | ||
13 | + "stopAtEntry": false, | ||
14 | + "cwd": "${workspaceFolder}", | ||
15 | + "environment": [], | ||
16 | + "externalConsole": false | ||
17 | + } | ||
18 | + ] | ||
19 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
project/css/bootstrap.min.css
0 → 100644
This diff could not be displayed because it is too large.
project/css/templatemo-style.css
0 → 100644
1 | +/* | ||
2 | + | ||
3 | +The Town | ||
4 | + | ||
5 | +https://templatemo.com/tm-525-the-town | ||
6 | + | ||
7 | +*/ | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | +html { | ||
12 | + font-size: 18px; | ||
13 | +} | ||
14 | + | ||
15 | +body { | ||
16 | + color: #8f8f8f; | ||
17 | + margin: 0; | ||
18 | + padding: 0; | ||
19 | + overflow-x: hidden; | ||
20 | + font-family:'NanumBarunGothic' | ||
21 | +} | ||
22 | +a { | ||
23 | + transition: all 0.3s ease; | ||
24 | +} | ||
25 | + | ||
26 | +a:hover, | ||
27 | +a:focus { | ||
28 | + text-decoration: none; | ||
29 | +} | ||
30 | + | ||
31 | +a:focus { | ||
32 | + outline: none; | ||
33 | +} | ||
34 | + | ||
35 | +.btn { | ||
36 | + padding: 8px 32px; | ||
37 | +} | ||
38 | + | ||
39 | +.btn:hover { | ||
40 | + background-color: #ced4da; | ||
41 | +} | ||
42 | + | ||
43 | +.tm-section-pad-top { | ||
44 | + padding-top: 135px; | ||
45 | +} | ||
46 | + | ||
47 | +.tm-text-primary { | ||
48 | + color: #3496d8; | ||
49 | +} | ||
50 | + | ||
51 | +.tm-font-big { | ||
52 | + font-size: 1rem; | ||
53 | +} | ||
54 | + | ||
55 | +.tm-btn-primary { | ||
56 | + color: white; | ||
57 | + background-color: #3496d8; | ||
58 | + padding: 14px 35px; | ||
59 | + border-radius: 30px; | ||
60 | +} | ||
61 | + | ||
62 | +.tm-btn-primary:hover, | ||
63 | +.tm-btn-primary:focus { | ||
64 | + color: white; | ||
65 | + background-color: #73c1f6; | ||
66 | +} | ||
67 | + | ||
68 | +/* Navbar */ | ||
69 | + | ||
70 | +.tm-navbar { | ||
71 | + position: fixed; | ||
72 | + width: 100%; | ||
73 | + z-index: 1000; | ||
74 | + background-color: transparent; | ||
75 | + transition: all 0.3s ease; | ||
76 | +} | ||
77 | + | ||
78 | +.tm-navbar.scroll { | ||
79 | + background-color: white; | ||
80 | + border-bottom: 1px solid #e9ecef; | ||
81 | +} | ||
82 | + | ||
83 | +.navbar-brand { | ||
84 | + color: white; | ||
85 | + font-size: 1.4rem; | ||
86 | + font-weight: bold; | ||
87 | +} | ||
88 | + | ||
89 | +.navbar-brand:hover, | ||
90 | +.tm-navbar.scroll .navbar-brand:hover { | ||
91 | + color: grey; | ||
92 | +} | ||
93 | + | ||
94 | +.tm-navbar.scroll .navbar-brand { | ||
95 | + color: #8f8f8f; | ||
96 | +} | ||
97 | + | ||
98 | +.nav-item { | ||
99 | + list-style: none; | ||
100 | +} | ||
101 | + | ||
102 | +.tm-nav-link { | ||
103 | + color: white; | ||
104 | +} | ||
105 | + | ||
106 | +.tm-navbar.scroll .tm-nav-link { | ||
107 | + color: #8f8f8f; | ||
108 | +} | ||
109 | + | ||
110 | +.tm-navbar.scroll .tm-nav-link:hover, | ||
111 | +.tm-navbar.scroll .tm-nav-link.current, | ||
112 | +.tm-nav-link:hover { | ||
113 | + color: #3496d8; | ||
114 | +} | ||
115 | + | ||
116 | +.navbar-toggler { | ||
117 | + border: 1px solid white; | ||
118 | + padding-left: 10px; | ||
119 | + padding-right: 10px; | ||
120 | +} | ||
121 | + | ||
122 | +.navbar-toggler-icon { | ||
123 | + color: white; | ||
124 | + padding-top: 6px; | ||
125 | +} | ||
126 | + | ||
127 | +.tm-navbar.scroll .navbar-toggler { | ||
128 | + border: 1px solid #8f8f8f; | ||
129 | +} | ||
130 | + | ||
131 | +.tm-navbar.scroll .navbar-toggler-icon { | ||
132 | + color: #8f8f8f; | ||
133 | +} | ||
134 | + | ||
135 | +/* Hero */ | ||
136 | + | ||
137 | +#hero { | ||
138 | + background-repeat: no-repeat; | ||
139 | + height: 100vh; | ||
140 | + min-height: 375px; | ||
141 | + position: relative; | ||
142 | +} | ||
143 | + | ||
144 | +#hero-video{ | ||
145 | + position: fixed; | ||
146 | + right: 0; | ||
147 | + bottom: 0; | ||
148 | + min-width: 100%; | ||
149 | + min-height: 100%; | ||
150 | + max-height: 100%; | ||
151 | + z-index:-1; | ||
152 | + object-fit: cover; | ||
153 | +} | ||
154 | + | ||
155 | +@media (min-height: 830px) { | ||
156 | + #hero { | ||
157 | + background-position: center -210px; | ||
158 | + } | ||
159 | +} | ||
160 | + | ||
161 | +@media (min-height: 680px) and (max-height: 829px) { | ||
162 | + #hero { | ||
163 | + background-position: center -300px; | ||
164 | + } | ||
165 | +} | ||
166 | + | ||
167 | +@media (min-height: 500px) and (max-height: 679px) { | ||
168 | + #hero { | ||
169 | + background-position: center -400px; | ||
170 | + } | ||
171 | +} | ||
172 | + | ||
173 | +@media (max-height: 499px) { | ||
174 | + #hero { | ||
175 | + background-position: center -450px; | ||
176 | + } | ||
177 | +} | ||
178 | + | ||
179 | +.tm-hero-text-container { | ||
180 | + width: 100%; | ||
181 | + height: 100%; | ||
182 | + display: flex; | ||
183 | + flex-flow: column; | ||
184 | + justify-content: center; | ||
185 | +} | ||
186 | + | ||
187 | +.tm-hero-text-container-inner { | ||
188 | + margin-top: -90px; | ||
189 | +} | ||
190 | + | ||
191 | +.tm-hero-title { | ||
192 | + font-size: 2rem; | ||
193 | + text-shadow: 2px 2px 2px #333; | ||
194 | +} | ||
195 | + | ||
196 | +.tm-intro-next { | ||
197 | + position: absolute; | ||
198 | + bottom: 80px; | ||
199 | + left: 0; | ||
200 | + right: 0; | ||
201 | +} | ||
202 | + | ||
203 | +@media (max-height: 480px) { | ||
204 | + .tm-hero-text-container-inner { | ||
205 | + margin-top: -40px; | ||
206 | + } | ||
207 | + | ||
208 | + .tm-intro-next { | ||
209 | + bottom: 20px; | ||
210 | + } | ||
211 | +} | ||
212 | + | ||
213 | +.tm-down-arrow-link { | ||
214 | + display: block; | ||
215 | + margin-top: 18%; | ||
216 | +} | ||
217 | + | ||
218 | +.tm-down-arrow { | ||
219 | + font-size:15px; | ||
220 | + color: white; | ||
221 | + border: 2px none white; | ||
222 | + border-radius: 3%; | ||
223 | + padding: 10px 22px 8px; | ||
224 | + transition: all 0.3s ease; | ||
225 | +} | ||
226 | + | ||
227 | +.tm-down-arrow:hover, | ||
228 | +.tm-down-arrow:focus { | ||
229 | + color: grey; | ||
230 | + background: white; | ||
231 | +} | ||
232 | + | ||
233 | +/* Introduction */ | ||
234 | + | ||
235 | +.tm-section-title { | ||
236 | + font-size: 2.6rem; | ||
237 | + font-weight: normal; | ||
238 | +} | ||
239 | + | ||
240 | +.tm-intro-text { | ||
241 | + font-size: 1.2rem; | ||
242 | + line-height: 1.4; | ||
243 | +} | ||
244 | + | ||
245 | +.tm-icon { | ||
246 | + display: block; | ||
247 | + margin-bottom: 55px; | ||
248 | + color: #3496d8; | ||
249 | +} | ||
250 | + | ||
251 | + | ||
252 | +/* Contact */ | ||
253 | + | ||
254 | +#contact { | ||
255 | + background-color: grey; | ||
256 | + color: white; | ||
257 | + background-image: url(../img/the-town-bg-02.jpg); | ||
258 | + background-position: center; | ||
259 | + background-repeat: no-repeat; | ||
260 | + min-height: 1500px; | ||
261 | + position: relative; | ||
262 | + padding-bottom: 50px; | ||
263 | + padding-top: 160px; | ||
264 | +} | ||
265 | + | ||
266 | +.question-field{ | ||
267 | + display: flex; | ||
268 | + justify-content: center; | ||
269 | + width:100%; | ||
270 | + height:50px; | ||
271 | +} | ||
272 | +.question-text{ | ||
273 | + width:25%; | ||
274 | + box-sizing: border-box; | ||
275 | + float:left; | ||
276 | + text-align:left; | ||
277 | + padding-right:10px; | ||
278 | + font-size:20px; | ||
279 | +} | ||
280 | +.question-input{ | ||
281 | + width:25%; | ||
282 | + box-sizing:border-box; | ||
283 | + float:right; | ||
284 | +} | ||
285 | +#semester{ | ||
286 | + width: 200px; | ||
287 | + padding: .2em .5em; | ||
288 | + margin-left:0.5rem; | ||
289 | + font-family: inherit; | ||
290 | + color:white; | ||
291 | + background: url('../img/arrow.png') no-repeat 95% 50%; | ||
292 | + background-size: 10% 70%; | ||
293 | + border: 2px solid #999; border-radius: 0px; | ||
294 | + -webkit-appearance: none; | ||
295 | + -moz-appearance: none; | ||
296 | + appearance: none; | ||
297 | +} | ||
298 | +select::-ms-expand { | ||
299 | + display: none; | ||
300 | +} | ||
301 | +출처: https://doolyit.tistory.com/126 [동해둘리의 IT Study] | ||
302 | +input{ | ||
303 | + border-radius:5px; | ||
304 | +} | ||
305 | +.button_calculate{ | ||
306 | + width:15%; | ||
307 | + position:relative; | ||
308 | + left:44%; | ||
309 | + margin-top:40px; | ||
310 | + border:none; | ||
311 | + border-radius:5px; | ||
312 | +} | ||
313 | + | ||
314 | +#map-answer{ | ||
315 | + display:flex; | ||
316 | + justify-content: center; | ||
317 | + border-top:2px solid white; | ||
318 | + padding-top:50px; | ||
319 | +} | ||
320 | +.answer-field{ | ||
321 | + width:30%; | ||
322 | + font-size :30px; | ||
323 | + line-height:80px; | ||
324 | +} | ||
325 | +#answer-how-many-hours{ | ||
326 | + width:100%; | ||
327 | + margin-bottom:100px; | ||
328 | +} | ||
329 | +.row{ | ||
330 | + display:flex; | ||
331 | + justify-content: center; | ||
332 | +} | ||
333 | +#answer-detail{ | ||
334 | + display:flex; | ||
335 | + justify-content: center; | ||
336 | +} | ||
337 | +.answer-detail-question, | ||
338 | +.answer-detail-answer{ | ||
339 | + width:49%; | ||
340 | +} | ||
341 | +.answer-detail-question{ | ||
342 | + text-align: right; | ||
343 | + margin-right:10px; | ||
344 | +} | ||
345 | +.answer-highlight{ | ||
346 | + font-size:35px; | ||
347 | + color:darkseagreen; | ||
348 | +} | ||
349 | +.tm-underline { | ||
350 | + border-top: 2px solid white; | ||
351 | + height: 8px; | ||
352 | + width: 100%; | ||
353 | +} | ||
354 | + | ||
355 | +.tm-underline-inner { | ||
356 | + width: 25%; | ||
357 | + height: 8px; | ||
358 | + background: white; | ||
359 | +} | ||
360 | + | ||
361 | +.tm-contact-item { | ||
362 | + margin-bottom: 75px; | ||
363 | +} | ||
364 | + | ||
365 | +.tm-contact-item-link { | ||
366 | + display: flex; | ||
367 | + align-items: center; | ||
368 | +} | ||
369 | + | ||
370 | +.tm-contact-item-link i, | ||
371 | +.tm-contact-item-link span { | ||
372 | + color: white; | ||
373 | + transition: all 0.3s ease; | ||
374 | +} | ||
375 | + | ||
376 | +.tm-contact-item-link:hover i, | ||
377 | +.tm-contact-item-link:hover span { | ||
378 | + color: #3496d8; | ||
379 | +} | ||
380 | + | ||
381 | +.tm-input { | ||
382 | + padding: 8px 25px; | ||
383 | + border-radius: 3px; | ||
384 | + border: 1px solid white; | ||
385 | + background: transparent; | ||
386 | + color: white; | ||
387 | +} | ||
388 | + | ||
389 | +::placeholder { | ||
390 | + /* Chrome, Firefox, Opera, Safari 10.1+ */ | ||
391 | + color: white; | ||
392 | + opacity: 1; /* Firefox */ | ||
393 | +} | ||
394 | + | ||
395 | +:-ms-input-placeholder { | ||
396 | + /* Internet Explorer 10-11 */ | ||
397 | + color: white; | ||
398 | +} | ||
399 | + | ||
400 | +::-ms-input-placeholder { | ||
401 | + /* Microsoft Edge */ | ||
402 | + color: white; | ||
403 | +} | ||
404 | + | ||
405 | +.tm-btn-submit { | ||
406 | + margin-left: 20px; | ||
407 | +} | ||
408 | +iframe{ | ||
409 | + position: relative; | ||
410 | + right:10%; | ||
411 | +} | ||
412 | + | ||
413 | + | ||
414 | +.tm-footer { | ||
415 | + position: absolute; | ||
416 | + bottom: 35px; | ||
417 | + left: 0; | ||
418 | + right: 0; | ||
419 | + padding: 0 15px; | ||
420 | +} | ||
421 | + | ||
422 | +.tm-footer-link { | ||
423 | + color: white; | ||
424 | +} | ||
425 | + | ||
426 | +.tm-footer-link:hover, | ||
427 | +.tm-footer-link:focus { | ||
428 | + color: #3496d8; | ||
429 | + text-decoration: none; | ||
430 | +} | ||
431 | + | ||
432 | +p { | ||
433 | + line-height: 1.9; | ||
434 | +} | ||
435 | + | ||
436 | +@media (min-width: 768px) { | ||
437 | + .tm-intro-text-container { | ||
438 | + padding-left: 65px; | ||
439 | + } | ||
440 | + | ||
441 | + .navbar-expand-md .navbar-nav .nav-link { | ||
442 | + padding-right: 30px; | ||
443 | + padding-left: 30px; | ||
444 | + } | ||
445 | +} | ||
446 | + | ||
447 | +@media (min-width: 1200px) { | ||
448 | + .container { | ||
449 | + max-width: 1275px; | ||
450 | + } | ||
451 | + | ||
452 | + .tm-container-gallery { | ||
453 | + max-width: 1290px; | ||
454 | + } | ||
455 | + | ||
456 | + .tm-container-contact { | ||
457 | + max-width: 1063px; | ||
458 | + } | ||
459 | +} | ||
460 | + | ||
461 | +@media (max-width: 991px) { | ||
462 | + .tm-intro-text-container { | ||
463 | + padding-left: 15px; | ||
464 | + padding-top: 30px; | ||
465 | + max-width: 600px; | ||
466 | + margin-left: auto; | ||
467 | + margin-right: auto; | ||
468 | + } | ||
469 | + | ||
470 | + .tm-intro-img { | ||
471 | + display: block; | ||
472 | + margin-left: auto; | ||
473 | + margin-right: auto; | ||
474 | + } | ||
475 | + | ||
476 | + .tm-btn-submit { | ||
477 | + margin-left: 0; | ||
478 | + margin-top: 20px; | ||
479 | + } | ||
480 | +} | ||
481 | + | ||
482 | +@media (max-width: 767px) { | ||
483 | + .tm-btn-submit { | ||
484 | + margin-left: 20px; | ||
485 | + margin-top: 0; | ||
486 | + } | ||
487 | + | ||
488 | + .navbar-nav { | ||
489 | + max-width: 200px; | ||
490 | + text-align: right; | ||
491 | + } | ||
492 | + | ||
493 | + .navbar-collapse { | ||
494 | + background-color: rgb(255, 255, 255); | ||
495 | + padding: 10px; | ||
496 | + border-radius: 3px; | ||
497 | + } | ||
498 | + | ||
499 | + .navbar-collapse .nav-link { | ||
500 | + color: #8f8f8f; | ||
501 | + } | ||
502 | +} | ||
503 | + | ||
504 | +@media (max-width: 480px) { | ||
505 | + .tm-gallery-container { | ||
506 | + max-width: 220px; | ||
507 | + margin-left: auto; | ||
508 | + margin-right: auto; | ||
509 | + } | ||
510 | + | ||
511 | + .slick-dots li { | ||
512 | + margin: 0 8px; | ||
513 | + } | ||
514 | + | ||
515 | + .tm-gallery-item { | ||
516 | + margin: 0; | ||
517 | + } | ||
518 | +} | ||
519 | + | ||
520 | +@media (max-width: 420px) { | ||
521 | + .tm-btn-submit { | ||
522 | + display: block; | ||
523 | + margin-left: 0; | ||
524 | + margin-top: 20px; | ||
525 | + } | ||
526 | +} |
project/fontawesome-5.5/LICENSE.txt
0 → 100644
1 | +Font Awesome Free License | ||
2 | +------------------------- | ||
3 | + | ||
4 | +Font Awesome Free is free, open source, and GPL friendly. You can use it for | ||
5 | +commercial projects, open source projects, or really almost whatever you want. | ||
6 | +Full Font Awesome Free license: https://fontawesome.com/license/free. | ||
7 | + | ||
8 | +# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) | ||
9 | +In the Font Awesome Free download, the CC BY 4.0 license applies to all icons | ||
10 | +packaged as SVG and JS file types. | ||
11 | + | ||
12 | +# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) | ||
13 | +In the Font Awesome Free download, the SIL OLF license applies to all icons | ||
14 | +packaged as web and desktop font files. | ||
15 | + | ||
16 | +# Code: MIT License (https://opensource.org/licenses/MIT) | ||
17 | +In the Font Awesome Free download, the MIT license applies to all non-font and | ||
18 | +non-icon files. | ||
19 | + | ||
20 | +# Attribution | ||
21 | +Attribution is required by MIT, SIL OLF, and CC BY licenses. Downloaded Font | ||
22 | +Awesome Free files already contain embedded comments with sufficient | ||
23 | +attribution, so you shouldn't need to do anything additional when using these | ||
24 | +files normally. | ||
25 | + | ||
26 | +We've kept attribution comments terse, so we ask that you do not actively work | ||
27 | +to remove them from files, especially code. They're a great way for folks to | ||
28 | +learn about Font Awesome. | ||
29 | + | ||
30 | +# Brand Icons | ||
31 | +All brand icons are trademarks of their respective owners. The use of these | ||
32 | +trademarks does not indicate endorsement of the trademark holder by Font | ||
33 | +Awesome, nor vice versa. **Please do not use brand logos for any purpose except | ||
34 | +to represent the company, product, or service to which they refer.** |
project/fontawesome-5.5/css/all.min.css
0 → 100644
1 | +/*! | ||
2 | + * Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com | ||
3 | + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
4 | + */ | ||
5 | +.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-concierge-bell:before{content:"\f562"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-diagnoses:before{content:"\f470"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-internet-explorer:before{content:"\f26b"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowflake:before{content:"\f2dc"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
project/img/arrow.jpg
0 → 100644
847 Bytes
project/img/arrow.png
0 → 100644
16.7 KB
project/img/main-video1.mp4
0 → 100644
No preview for this file type
project/img/main-video2.mp4
0 → 100644
No preview for this file type
project/img/main-video3.mp4
0 → 100644
No preview for this file type
project/index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | + <head> | ||
4 | + <meta charset="UTF-8" /> | ||
5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
6 | + <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
7 | + <title>The Town HTML CSS Template</title> | ||
8 | + <link rel="stylesheet" href="fontawesome-5.5/css/all.min.css" /> | ||
9 | + <link rel="stylesheet" href="slick/slick.css"> | ||
10 | + <link rel="stylesheet" href="slick/slick-theme.css"> | ||
11 | + <link rel="stylesheet" href="magnific-popup/magnific-popup.css"> | ||
12 | + <link rel="stylesheet" href="css/bootstrap.min.css" /> | ||
13 | + <link rel="stylesheet" href="css/templatemo-style.css" /> | ||
14 | + <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/moonspam/NanumBarunGothic@1.0/nanumbarungothicsubset.css"> | ||
15 | + | ||
16 | + <!-- | ||
17 | + The Town | ||
18 | + https://templatemo.com/tm-525-the-town | ||
19 | + --> | ||
20 | + </head> | ||
21 | + <body> | ||
22 | + <!-- Hero section --> | ||
23 | + <section id="hero" class="text-white tm-font-big tm-parallax"> | ||
24 | + <video autoplay muted loop id ="hero-video"> | ||
25 | + <source src="../templatemo_525_the_town/img/main-video1.mp4" type="video/mp4"> | ||
26 | + </video> | ||
27 | + <!-- Navigation --> | ||
28 | + <nav class="navbar navbar-expand-md tm-navbar" id="tmNav"> | ||
29 | + <div class="container"> | ||
30 | + <div class="tm-next"> | ||
31 | + <a href="#hero" class="navbar-brand">통길몇</a> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | + </nav> | ||
35 | + | ||
36 | + <div class="text-center tm-hero-text-container"> | ||
37 | + <div class="tm-hero-text-container-inner"> | ||
38 | + <h2 class="tm-hero-title">통학생은 길에서 몇시간을 보냈을까?</h2> | ||
39 | + <p class="tm-hero-subtitle"> | ||
40 | + 매일 학교에 통학하시나요?<br> | ||
41 | + 뚜벅이님이 지금까지 몇시간을 길에서 보냈는지 보여드립니다. | ||
42 | + <br>-통길몇- | ||
43 | + </p> | ||
44 | + </div> | ||
45 | + </div> | ||
46 | + | ||
47 | + <div class="tm-next tm-intro-next"> | ||
48 | + <a href="#introduction" class="text-center tm-down-arrow-link"> | ||
49 | + <i class="fas fa-3x fa-caret-down tm-down-arrow">계산해보기</i> | ||
50 | + </a> | ||
51 | + </div> | ||
52 | + </section> | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + <!-- Contact --> | ||
57 | + <section id="contact" class="tm-section-pad-top tm-parallax-2"> | ||
58 | + <div class="container tm-container-contact"> | ||
59 | + <div class="row"> | ||
60 | + <div class="container question-field"> | ||
61 | + <div class="question-text">어디에 사나요?</div> | ||
62 | + <div class="question-input"> | ||
63 | + <label for="question-input-field"></label> | ||
64 | + <input type ="text" id="question-input-field"> | ||
65 | + </div> | ||
66 | + </div> | ||
67 | + <div class="container question-field"> | ||
68 | + <div class="question-text">무슨학교에 다니나요?</div> | ||
69 | + <div class="question-input"> | ||
70 | + <label for="question-input-field"></label> | ||
71 | + <input type ="text" id="question-input-field"> | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + <div class="container question-field"> | ||
75 | + <div class="question-text">몇학년인가요?</div> | ||
76 | + <div class="question-input"> | ||
77 | + <select name="semester" id="semester"> | ||
78 | + <option value="sem-1-1">1학년 1학기</option> | ||
79 | + <option value="sem-1-2">1학년 2학기</option> | ||
80 | + <option value="sem-2-1">2학년 1학기</option> | ||
81 | + <option value="sem-2-2">2학년 2학기</option> | ||
82 | + <option value="sem-3-1">3학년 1학기</option> | ||
83 | + <option value="sem-3-2">3학년 2학기</option> | ||
84 | + <option value="sem-4-1">4학년 1학기</option> | ||
85 | + <option value="sem-4-2">4학년 2학기</option> | ||
86 | + </select> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | + <div class="container button-field"> | ||
90 | + <button class="button_calculate" type="button"> | ||
91 | + 계산해보기 | ||
92 | + </button> | ||
93 | + </div> | ||
94 | + </div> | ||
95 | + <div class=row id ="map-answer" style="margin-top:100px"> | ||
96 | + <div style="width:30%"> | ||
97 | + <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d203276.83209506533!2d126.94001771640623!3d37.24295009999998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x357b44de2c7f3ddb%3A0x4c35e852f90f5520!2z6rK97Z2s64yA7ZWZ6rWQIOq1reygnOy6oO2NvOyKpA!5e0!3m2!1sko!2skr!4v1606155147622!5m2!1sko!2skr" width=100% height="250" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0" right="20%"></iframe> | ||
98 | + </div> | ||
99 | + <div class="answer-field"> | ||
100 | + 한번 갈 때마다 ...<br> | ||
101 | + <span class="answer-highlight">n</span> 시간 <span class="answer-highlight">n</span> 분 <br> | ||
102 | + <span class="answer-highlight">n</span> 원 <br> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | + <div class="row"> | ||
106 | + <div id="list-answer"> | ||
107 | + <div class="answer-field" id="answer-how-many-hours"> | ||
108 | + 지금까지 <span class="answer-highlight">n</span>시간을 길에서 보내셨군요<br> | ||
109 | + 졸업까지 앞으로 <span class="answer-highlight">n</span>시간은 더 길에서 보내시면 됩니다.<br> | ||
110 | + </div> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + <div class="row"> | ||
114 | + <div class = "answer-detail-question"> | ||
115 | + 이 시간에 알바를 했다면? <br> | ||
116 | + 교통비로 국밥 <br> | ||
117 | + </div> | ||
118 | + <div class="answer-detail-answer"> | ||
119 | + n원<br> | ||
120 | + m그릇<br> | ||
121 | + </div> | ||
122 | + </div> | ||
123 | + </div> | ||
124 | + <footer class="text-center small tm-footer"> | ||
125 | + <p class="mb-0"> | ||
126 | + Copyright © 2020 TongGilMut | ||
127 | + | ||
128 | + - Design: <a rel="nofollow" href="https://github.com/wjdwl001" class="tm-footer-link">Joung Jiwon</a> | ||
129 | + </p> | ||
130 | + </footer> | ||
131 | + </section> | ||
132 | + <script src="js/jquery-1.9.1.min.js"></script> | ||
133 | + <script src="slick/slick.min.js"></script> | ||
134 | + <script src="magnific-popup/jquery.magnific-popup.min.js"></script> | ||
135 | + <script src="js/jquery.singlePageNav.min.js"></script> | ||
136 | + <script src="js/bootstrap.min.js"></script> | ||
137 | + <script> | ||
138 | + $('button-calculate').click(function(){ | ||
139 | + | ||
140 | + }) | ||
141 | + | ||
142 | + function getOffSet(){ | ||
143 | + var _offset = 450; | ||
144 | + var windowHeight = window.innerHeight; | ||
145 | + | ||
146 | + if(windowHeight > 500) { | ||
147 | + _offset = 400; | ||
148 | + } | ||
149 | + if(windowHeight > 680) { | ||
150 | + _offset = 300 | ||
151 | + } | ||
152 | + if(windowHeight > 830) { | ||
153 | + _offset = 210; | ||
154 | + } | ||
155 | + | ||
156 | + return _offset; | ||
157 | + } | ||
158 | + | ||
159 | + function setParallaxPosition($doc, multiplier, $object){ | ||
160 | + var offset = getOffSet(); | ||
161 | + var from_top = $doc.scrollTop(), | ||
162 | + bg_css = 'center ' +(multiplier * from_top - offset) + 'px'; | ||
163 | + $object.css({"background-position" : bg_css }); | ||
164 | + } | ||
165 | + | ||
166 | + // Parallax function | ||
167 | + // Adapted based on https://codepen.io/roborich/pen/wpAsm | ||
168 | + var background_image_parallax = function($object, multiplier, forceSet){ | ||
169 | + multiplier = typeof multiplier !== 'undefined' ? multiplier : 0.5; | ||
170 | + multiplier = 1 - multiplier; | ||
171 | + var $doc = $(document); | ||
172 | + // $object.css({"background-attatchment" : "fixed"}); | ||
173 | + | ||
174 | + if(forceSet) { | ||
175 | + setParallaxPosition($doc, multiplier, $object); | ||
176 | + } else { | ||
177 | + $(window).scroll(function(){ | ||
178 | + setParallaxPosition($doc, multiplier, $object); | ||
179 | + }); | ||
180 | + } | ||
181 | + }; | ||
182 | + | ||
183 | + var background_image_parallax_2 = function($object, multiplier){ | ||
184 | + multiplier = typeof multiplier !== 'undefined' ? multiplier : 0.5; | ||
185 | + multiplier = 1 - multiplier; | ||
186 | + var $doc = $(document); | ||
187 | + $object.css({"background-attachment" : "fixed"}); | ||
188 | + $(window).scroll(function(){ | ||
189 | + var firstTop = $object.offset().top, | ||
190 | + pos = $(window).scrollTop(), | ||
191 | + yPos = Math.round((multiplier * (firstTop - pos)) - 186); | ||
192 | + | ||
193 | + var bg_css = 'center ' + yPos + 'px'; | ||
194 | + | ||
195 | + $object.css({"background-position" : bg_css }); | ||
196 | + }); | ||
197 | + }; | ||
198 | + | ||
199 | + $(function(){ | ||
200 | + // Hero Section - Background Parallax | ||
201 | + background_image_parallax($(".tm-parallax"), 0.30, false); | ||
202 | + background_image_parallax_2($("#contact"), 0.80); | ||
203 | + | ||
204 | + // Handle window resize | ||
205 | + window.addEventListener('resize', function(){ | ||
206 | + background_image_parallax($(".tm-parallax"), 0.30, true); | ||
207 | + }, true); | ||
208 | + | ||
209 | + // Detect window scroll and update navbar | ||
210 | + $(window).scroll(function(e){ | ||
211 | + if($(document).scrollTop() > 120) { | ||
212 | + $('.tm-navbar').addClass("scroll"); | ||
213 | + } else { | ||
214 | + $('.tm-navbar').removeClass("scroll"); | ||
215 | + } | ||
216 | + }); | ||
217 | + | ||
218 | + // Close mobile menu after click | ||
219 | + $('#tmNav a').on('click', function(){ | ||
220 | + $('.navbar-collapse').removeClass('show'); | ||
221 | + }) | ||
222 | + | ||
223 | + // Scroll to corresponding section with animation | ||
224 | + $('#tmNav').singlePageNav(); | ||
225 | + | ||
226 | + // Add smooth scrolling to all links | ||
227 | + // https://www.w3schools.com/howto/howto_css_smooth_scroll.asp | ||
228 | + $("a").on('click', function(event) { | ||
229 | + $('html, body').animate({ | ||
230 | + scrollTop: $("#contact").offset().top | ||
231 | + }, 400); | ||
232 | + }); | ||
233 | + | ||
234 | + // Pop up | ||
235 | + $('.tm-gallery').magnificPopup({ | ||
236 | + delegate: 'a', | ||
237 | + type: 'image', | ||
238 | + gallery: { enabled: true } | ||
239 | + }); | ||
240 | + | ||
241 | + // Gallery | ||
242 | + $('.tm-gallery').slick({ | ||
243 | + dots: true, | ||
244 | + infinite: false, | ||
245 | + slidesToShow: 5, | ||
246 | + slidesToScroll: 2, | ||
247 | + responsive: [ | ||
248 | + { | ||
249 | + breakpoint: 1199, | ||
250 | + settings: { | ||
251 | + slidesToShow: 4, | ||
252 | + slidesToScroll: 2 | ||
253 | + } | ||
254 | + }, | ||
255 | + { | ||
256 | + breakpoint: 991, | ||
257 | + settings: { | ||
258 | + slidesToShow: 3, | ||
259 | + slidesToScroll: 2 | ||
260 | + } | ||
261 | + }, | ||
262 | + { | ||
263 | + breakpoint: 767, | ||
264 | + settings: { | ||
265 | + slidesToShow: 2, | ||
266 | + slidesToScroll: 1 | ||
267 | + } | ||
268 | + }, | ||
269 | + { | ||
270 | + breakpoint: 480, | ||
271 | + settings: { | ||
272 | + slidesToShow: 1, | ||
273 | + slidesToScroll: 1 | ||
274 | + } | ||
275 | + } | ||
276 | + ] | ||
277 | + }); | ||
278 | + }); | ||
279 | + </script> | ||
280 | + </body> | ||
281 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
project/js/bootstrap.min.js
0 → 100644
1 | +/*! | ||
2 | + * Bootstrap v4.1.3 (https://getbootstrap.com/) | ||
3 | + * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) | ||
4 | + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
5 | + */ | ||
6 | +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,h){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n,i;e=r,i=o[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return r}e=e&&e.hasOwnProperty("default")?e.default:e,h=h&&h.hasOwnProperty("default")?h.default:h;var r,n,o,a,c,u,f,d,g,_,m,p,v,y,E,C,T,b,S,I,A,D,w,N,O,k,P,j,H,L,R,x,W,U,q,F,K,M,Q,B,V,Y,z,J,Z,G,$,X,tt,et,nt,it,rt,ot,st,at,lt,ct,ht,ut,ft,dt,gt,_t,mt,pt,vt,yt,Et,Ct,Tt,bt,St,It,At,Dt,wt,Nt,Ot,kt,Pt,jt,Ht,Lt,Rt,xt,Wt,Ut,qt,Ft,Kt,Mt,Qt,Bt,Vt,Yt,zt,Jt,Zt,Gt,$t,Xt,te,ee,ne,ie,re,oe,se,ae,le,ce,he,ue,fe,de,ge,_e,me,pe,ve,ye,Ee,Ce,Te,be,Se,Ie,Ae,De,we,Ne,Oe,ke,Pe,je,He,Le,Re,xe,We,Ue,qe,Fe,Ke,Me,Qe,Be,Ve,Ye,ze,Je,Ze,Ge,$e,Xe,tn,en,nn,rn,on,sn,an,ln,cn,hn,un,fn,dn,gn,_n,mn,pn,vn,yn,En,Cn,Tn,bn,Sn,In,An,Dn,wn,Nn,On,kn,Pn,jn,Hn,Ln,Rn,xn,Wn,Un,qn,Fn=function(i){var e="transitionend";function t(t){var e=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(e)},t),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i(t).css("transition-duration");return parseFloat(e)?(e=e.split(",")[0],1e3*parseFloat(e)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=e[i],s=o&&l.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var a}};return i.fn.emulateTransitionEnd=t,i.event.special[l.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},l}(e),Kn=(n="alert",a="."+(o="bs.alert"),c=(r=e).fn[n],u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",g="show",_=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){r.removeData(this._element,o),this._element=null},t._getRootElement=function(t){var e=Fn.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=r.Event(u.CLOSE);return r(t).trigger(e),e},t._removeElement=function(e){var n=this;if(r(e).removeClass(g),r(e).hasClass(d)){var t=Fn.getTransitionDurationFromElement(e);r(e).one(Fn.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){r(t).detach().trigger(u.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=r(this),e=t.data(o);e||(e=new i(this),t.data(o,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),r(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',_._handleDismiss(new _)),r.fn[n]=_._jQueryInterface,r.fn[n].Constructor=_,r.fn[n].noConflict=function(){return r.fn[n]=c,_._jQueryInterface},_),Mn=(p="button",y="."+(v="bs.button"),E=".data-api",C=(m=e).fn[p],T="active",b="btn",I='[data-toggle^="button"]',A='[data-toggle="buttons"]',D="input",w=".active",N=".btn",O={CLICK_DATA_API:"click"+y+E,FOCUS_BLUR_DATA_API:(S="focus")+y+E+" blur"+y+E},k=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=m(this._element).closest(A)[0];if(n){var i=this._element.querySelector(D);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(T))t=!1;else{var r=n.querySelector(w);r&&m(r).removeClass(T)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(T),m(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(T)),t&&m(this._element).toggleClass(T)},t.dispose=function(){m.removeData(this._element,v),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=m(this).data(v);t||(t=new n(this),m(this).data(v,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),n}(),m(document).on(O.CLICK_DATA_API,I,function(t){t.preventDefault();var e=t.target;m(e).hasClass(b)||(e=m(e).closest(N)),k._jQueryInterface.call(m(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,I,function(t){var e=m(t.target).closest(N)[0];m(e).toggleClass(S,/^focus(in)?$/.test(t.type))}),m.fn[p]=k._jQueryInterface,m.fn[p].Constructor=k,m.fn[p].noConflict=function(){return m.fn[p]=C,k._jQueryInterface},k),Qn=(j="carousel",L="."+(H="bs.carousel"),R=".data-api",x=(P=e).fn[j],W={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},q="next",F="prev",K="left",M="right",Q={SLIDE:"slide"+L,SLID:"slid"+L,KEYDOWN:"keydown"+L,MOUSEENTER:"mouseenter"+L,MOUSELEAVE:"mouseleave"+L,TOUCHEND:"touchend"+L,LOAD_DATA_API:"load"+L+R,CLICK_DATA_API:"click"+L+R},B="carousel",V="active",Y="slide",z="carousel-item-right",J="carousel-item-left",Z="carousel-item-next",G="carousel-item-prev",$=".active",X=".active.carousel-item",tt=".carousel-item",et=".carousel-item-next, .carousel-item-prev",nt=".carousel-indicators",it="[data-slide], [data-slide-to]",rt='[data-ride="carousel"]',ot=function(){function o(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=P(t)[0],this._indicatorsElement=this._element.querySelector(nt),this._addEventListeners()}var t=o.prototype;return t.next=function(){this._isSliding||this._slide(q)},t.nextWhenVisible=function(){!document.hidden&&P(this._element).is(":visible")&&"hidden"!==P(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(F)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(et)&&(Fn.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(X);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)P(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?q:F;this._slide(i,this._items[t])}},t.dispose=function(){P(this._element).off(L),P.removeData(this._element,H),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},W,t),Fn.typeCheckConfig(j,t,U),t},t._addEventListeners=function(){var e=this;this._config.keyboard&&P(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(P(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&P(this._element).on(Q.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(tt)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===q,i=t===F,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===F?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(X)),r=P.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return P(this._element).trigger(r),r},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll($));P(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&P(n).addClass(V)}},t._slide=function(t,e){var n,i,r,o=this,s=this._element.querySelector(X),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(t===q?(n=J,i=Z,r=K):(n=z,i=G,r=M),l&&P(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=P.Event(Q.SLID,{relatedTarget:l,direction:r,from:a,to:c});if(P(this._element).hasClass(Y)){P(l).addClass(i),Fn.reflow(l),P(s).addClass(n),P(l).addClass(n);var f=Fn.getTransitionDurationFromElement(s);P(s).one(Fn.TRANSITION_END,function(){P(l).removeClass(n+" "+i).addClass(V),P(s).removeClass(V+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return P(o._element).trigger(u)},0)}).emulateTransitionEnd(f)}else P(s).removeClass(V),P(l).addClass(V),this._isSliding=!1,P(this._element).trigger(u);h&&this.cycle()}},o._jQueryInterface=function(i){return this.each(function(){var t=P(this).data(H),e=l({},W,P(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new o(this,e),P(this).data(H,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}else e.interval&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function(t){var e=Fn.getSelectorFromElement(this);if(e){var n=P(e)[0];if(n&&P(n).hasClass(B)){var i=l({},P(n).data(),P(this).data()),r=this.getAttribute("data-slide-to");r&&(i.interval=!1),o._jQueryInterface.call(P(n),i),r&&P(n).data(H).to(r),t.preventDefault()}}},s(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return W}}]),o}(),P(document).on(Q.CLICK_DATA_API,it,ot._dataApiClickHandler),P(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(rt)),e=0,n=t.length;e<n;e++){var i=P(t[e]);ot._jQueryInterface.call(i,i.data())}}),P.fn[j]=ot._jQueryInterface,P.fn[j].Constructor=ot,P.fn[j].noConflict=function(){return P.fn[j]=x,ot._jQueryInterface},ot),Bn=(at="collapse",ct="."+(lt="bs.collapse"),ht=(st=e).fn[at],ut={toggle:!0,parent:""},ft={toggle:"boolean",parent:"(string|element)"},dt={SHOW:"show"+ct,SHOWN:"shown"+ct,HIDE:"hide"+ct,HIDDEN:"hidden"+ct,CLICK_DATA_API:"click"+ct+".data-api"},gt="show",_t="collapse",mt="collapsing",pt="collapsed",vt="width",yt="height",Et=".show, .collapsing",Ct='[data-toggle="collapse"]',Tt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=st.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Ct)),i=0,r=n.length;i<r;i++){var o=n[i],s=Fn.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){st(this._element).hasClass(gt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!st(this._element).hasClass(gt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Et)).filter(function(t){return t.getAttribute("data-parent")===n._config.parent})).length&&(t=null),!(t&&(e=st(t).not(this._selector).data(lt))&&e._isTransitioning))){var i=st.Event(dt.SHOW);if(st(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(st(t).not(this._selector),"hide"),e||st(t).data(lt,null));var r=this._getDimension();st(this._element).removeClass(_t).addClass(mt),this._element.style[r]=0,this._triggerArray.length&&st(this._triggerArray).removeClass(pt).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(r[0].toUpperCase()+r.slice(1)),s=Fn.getTransitionDurationFromElement(this._element);st(this._element).one(Fn.TRANSITION_END,function(){st(n._element).removeClass(mt).addClass(_t).addClass(gt),n._element.style[r]="",n.setTransitioning(!1),st(n._element).trigger(dt.SHOWN)}).emulateTransitionEnd(s),this._element.style[r]=this._element[o]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&st(this._element).hasClass(gt)){var e=st.Event(dt.HIDE);if(st(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",Fn.reflow(this._element),st(this._element).addClass(mt).removeClass(_t).removeClass(gt);var i=this._triggerArray.length;if(0<i)for(var r=0;r<i;r++){var o=this._triggerArray[r],s=Fn.getSelectorFromElement(o);if(null!==s)st([].slice.call(document.querySelectorAll(s))).hasClass(gt)||st(o).addClass(pt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=Fn.getTransitionDurationFromElement(this._element);st(this._element).one(Fn.TRANSITION_END,function(){t.setTransitioning(!1),st(t._element).removeClass(mt).addClass(_t).trigger(dt.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){st.removeData(this._element,lt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},ut,t)).toggle=Boolean(t.toggle),Fn.typeCheckConfig(at,t,ft),t},t._getDimension=function(){return st(this._element).hasClass(vt)?vt:yt},t._getParent=function(){var n=this,t=null;Fn.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return st(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){if(t){var n=st(t).hasClass(gt);e.length&&st(e).toggleClass(pt,!n).attr("aria-expanded",n)}},a._getTargetFromElement=function(t){var e=Fn.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=st(this),e=t.data(lt),n=l({},ut,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(lt,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ut}}]),a}(),st(document).on(dt.CLICK_DATA_API,Ct,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=st(this),e=Fn.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));st(i).each(function(){var t=st(this),e=t.data(lt)?"toggle":n.data();Tt._jQueryInterface.call(t,e)})}),st.fn[at]=Tt._jQueryInterface,st.fn[at].Constructor=Tt,st.fn[at].noConflict=function(){return st.fn[at]=ht,Tt._jQueryInterface},Tt),Vn=(St="dropdown",At="."+(It="bs.dropdown"),Dt=".data-api",wt=(bt=e).fn[St],Nt=new RegExp("38|40|27"),Ot={HIDE:"hide"+At,HIDDEN:"hidden"+At,SHOW:"show"+At,SHOWN:"shown"+At,CLICK:"click"+At,CLICK_DATA_API:"click"+At+Dt,KEYDOWN_DATA_API:"keydown"+At+Dt,KEYUP_DATA_API:"keyup"+At+Dt},kt="disabled",Pt="show",jt="dropup",Ht="dropright",Lt="dropleft",Rt="dropdown-menu-right",xt="position-static",Wt='[data-toggle="dropdown"]',Ut=".dropdown form",qt=".dropdown-menu",Ft=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Mt="top-start",Qt="top-end",Bt="bottom-start",Vt="bottom-end",Yt="right-start",zt="left-start",Jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Zt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Gt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!bt(this._element).hasClass(kt)){var t=c._getParentFromElement(this._element),e=bt(this._menu).hasClass(Pt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=bt.Event(Ot.SHOW,n);if(bt(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof h)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=t:Fn.isElement(this._config.reference)&&(r=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&bt(t).addClass(xt),this._popper=new h(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===bt(t).closest(Ft).length&&bt(document.body).children().on("mouseover",null,bt.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),bt(this._menu).toggleClass(Pt),bt(t).toggleClass(Pt).trigger(bt.Event(Ot.SHOWN,n))}}}},t.dispose=function(){bt.removeData(this._element,It),bt(this._element).off(At),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;bt(this._element).on(Ot.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,bt(this._element).data(),t),Fn.typeCheckConfig(St,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=bt(this._element.parentNode),e=Bt;return t.hasClass(jt)?(e=Mt,bt(this._menu).hasClass(Rt)&&(e=Qt)):t.hasClass(Ht)?e=Yt:t.hasClass(Lt)?e=zt:bt(this._menu).hasClass(Rt)&&(e=Vt),e},t._detectNavbar=function(){return 0<bt(this._element).closest(".navbar").length},t._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function(e){return this.each(function(){var t=bt(this).data(It);if(t||(t=new c(this,"object"==typeof e?e:null),bt(this).data(It,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Wt)),n=0,i=e.length;n<i;n++){var r=c._getParentFromElement(e[n]),o=bt(e[n]).data(It),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),o){var a=o._menu;if(bt(r).hasClass(Pt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&bt.contains(r,t.target))){var l=bt.Event(Ot.HIDE,s);bt(r).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&bt(document.body).children().off("mouseover",null,bt.noop),e[n].setAttribute("aria-expanded","false"),bt(a).removeClass(Pt),bt(r).removeClass(Pt).trigger(bt.Event(Ot.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=Fn.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||bt(t.target).closest(qt).length)):Nt.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!bt(this).hasClass(kt))){var e=c._getParentFromElement(this),n=bt(e).hasClass(Pt);if((n||27===t.which&&32===t.which)&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var r=i.indexOf(t.target);38===t.which&&0<r&&r--,40===t.which&&r<i.length-1&&r++,r<0&&(r=0),i[r].focus()}}else{if(27===t.which){var o=e.querySelector(Wt);bt(o).trigger("focus")}bt(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Jt}},{key:"DefaultType",get:function(){return Zt}}]),c}(),bt(document).on(Ot.KEYDOWN_DATA_API,Wt,Gt._dataApiKeydownHandler).on(Ot.KEYDOWN_DATA_API,qt,Gt._dataApiKeydownHandler).on(Ot.CLICK_DATA_API+" "+Ot.KEYUP_DATA_API,Gt._clearMenus).on(Ot.CLICK_DATA_API,Wt,function(t){t.preventDefault(),t.stopPropagation(),Gt._jQueryInterface.call(bt(this),"toggle")}).on(Ot.CLICK_DATA_API,Ut,function(t){t.stopPropagation()}),bt.fn[St]=Gt._jQueryInterface,bt.fn[St].Constructor=Gt,bt.fn[St].noConflict=function(){return bt.fn[St]=wt,Gt._jQueryInterface},Gt),Yn=(Xt="modal",ee="."+(te="bs.modal"),ne=($t=e).fn[Xt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},re={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},oe={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-scrollbar-measure",ae="modal-backdrop",le="modal-open",ce="fade",he="show",ue=".modal-dialog",fe='[data-toggle="modal"]',de='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_e=".sticky-top",me=function(){function r(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ue),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t=r.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){$t(this._element).hasClass(ce)&&(this._isTransitioning=!0);var n=$t.Event(oe.SHOW,{relatedTarget:t});$t(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),$t(document.body).addClass(le),this._setEscapeEvent(),this._setResizeEvent(),$t(this._element).on(oe.CLICK_DISMISS,de,function(t){return e.hide(t)}),$t(this._dialog).on(oe.MOUSEDOWN_DISMISS,function(){$t(e._element).one(oe.MOUSEUP_DISMISS,function(t){$t(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var n=$t.Event(oe.HIDE);if($t(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=$t(this._element).hasClass(ce);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),$t(document).off(oe.FOCUSIN),$t(this._element).removeClass(he),$t(this._element).off(oe.CLICK_DISMISS),$t(this._dialog).off(oe.MOUSEDOWN_DISMISS),i){var r=Fn.getTransitionDurationFromElement(this._element);$t(this._element).one(Fn.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(r)}else this._hideModal()}}},t.dispose=function(){$t.removeData(this._element,te),$t(window,document,this._element,this._backdrop).off(ee),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),Fn.typeCheckConfig(Xt,t,re),t},t._showElement=function(t){var e=this,n=$t(this._element).hasClass(ce);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&Fn.reflow(this._element),$t(this._element).addClass(he),this._config.focus&&this._enforceFocus();var i=$t.Event(oe.SHOWN,{relatedTarget:t}),r=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,$t(e._element).trigger(i)};if(n){var o=Fn.getTransitionDurationFromElement(this._element);$t(this._dialog).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r()},t._enforceFocus=function(){var e=this;$t(document).off(oe.FOCUSIN).on(oe.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===$t(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?$t(this._element).on(oe.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||$t(this._element).off(oe.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?$t(window).on(oe.RESIZE,function(t){return e.handleUpdate(t)}):$t(window).off(oe.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){$t(document.body).removeClass(le),t._resetAdjustments(),t._resetScrollbar(),$t(t._element).trigger(oe.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&($t(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=$t(this._element).hasClass(ce)?ce:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ae,n&&this._backdrop.classList.add(n),$t(this._backdrop).appendTo(document.body),$t(this._element).on(oe.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&Fn.reflow(this._backdrop),$t(this._backdrop).addClass(he),!t)return;if(!n)return void t();var i=Fn.getTransitionDurationFromElement(this._backdrop);$t(this._backdrop).one(Fn.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){$t(this._backdrop).removeClass(he);var r=function(){e._removeBackdrop(),t&&t()};if($t(this._element).hasClass(ce)){var o=Fn.getTransitionDurationFromElement(this._backdrop);$t(this._backdrop).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var r=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(ge)),e=[].slice.call(document.querySelectorAll(_e));$t(t).each(function(t,e){var n=e.style.paddingRight,i=$t(e).css("padding-right");$t(e).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")}),$t(e).each(function(t,e){var n=e.style.marginRight,i=$t(e).css("margin-right");$t(e).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=$t(document.body).css("padding-right");$t(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(ge));$t(t).each(function(t,e){var n=$t(e).data("padding-right");$t(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+_e));$t(e).each(function(t,e){var n=$t(e).data("margin-right");"undefined"!=typeof n&&$t(e).css("margin-right",n).removeData("margin-right")});var n=$t(document.body).data("padding-right");$t(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=se,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},r._jQueryInterface=function(n,i){return this.each(function(){var t=$t(this).data(te),e=l({},ie,$t(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new r(this,e),$t(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ie}}]),r}(),$t(document).on(oe.CLICK_DATA_API,fe,function(t){var e,n=this,i=Fn.getSelectorFromElement(this);i&&(e=document.querySelector(i));var r=$t(e).data(te)?"toggle":l({},$t(e).data(),$t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=$t(e).one(oe.SHOW,function(t){t.isDefaultPrevented()||o.one(oe.HIDDEN,function(){$t(n).is(":visible")&&n.focus()})});me._jQueryInterface.call($t(e),r,this)}),$t.fn[Xt]=me._jQueryInterface,$t.fn[Xt].Constructor=me,$t.fn[Xt].noConflict=function(){return $t.fn[Xt]=ne,me._jQueryInterface},me),zn=(ve="tooltip",Ee="."+(ye="bs.tooltip"),Ce=(pe=e).fn[ve],Te="bs-tooltip",be=new RegExp("(^|\\s)"+Te+"\\S+","g"),Ae={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(Ie={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Se={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},we="out",Ne={HIDE:"hide"+Ee,HIDDEN:"hidden"+Ee,SHOW:(De="show")+Ee,SHOWN:"shown"+Ee,INSERTED:"inserted"+Ee,CLICK:"click"+Ee,FOCUSIN:"focusin"+Ee,FOCUSOUT:"focusout"+Ee,MOUSEENTER:"mouseenter"+Ee,MOUSELEAVE:"mouseleave"+Ee},Oe="fade",ke="show",Pe=".tooltip-inner",je=".arrow",He="hover",Le="focus",Re="click",xe="manual",We=function(){function i(t,e){if("undefined"==typeof h)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=pe(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(pe(this.getTipElement()).hasClass(ke))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),pe.removeData(this.element,this.constructor.DATA_KEY),pe(this.element).off(this.constructor.EVENT_KEY),pe(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&pe(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===pe(this.element).css("display"))throw new Error("Please use show on visible elements");var t=pe.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){pe(this.element).trigger(t);var n=pe.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=Fn.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&pe(i).addClass(Oe);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:pe(document).find(this.config.container);pe(i).data(this.constructor.DATA_KEY,this),pe.contains(this.element.ownerDocument.documentElement,this.tip)||pe(i).appendTo(a),pe(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:je},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),pe(i).addClass(ke),"ontouchstart"in document.documentElement&&pe(document.body).children().on("mouseover",null,pe.noop);var l=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,pe(e.element).trigger(e.constructor.Event.SHOWN),t===we&&e._leave(null,e)};if(pe(this.tip).hasClass(Oe)){var c=Fn.getTransitionDurationFromElement(this.tip);pe(this.tip).one(Fn.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=pe.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==De&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),pe(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(pe(this.element).trigger(i),!i.isDefaultPrevented()){if(pe(n).removeClass(ke),"ontouchstart"in document.documentElement&&pe(document.body).children().off("mouseover",null,pe.noop),this._activeTrigger[Re]=!1,this._activeTrigger[Le]=!1,this._activeTrigger[He]=!1,pe(this.tip).hasClass(Oe)){var o=Fn.getTransitionDurationFromElement(n);pe(n).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){pe(this.getTipElement()).addClass(Te+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||pe(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(pe(t.querySelectorAll(Pe)),this.getTitle()),pe(t).removeClass(Oe+" "+ke)},t.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?pe(e).parent().is(t)||t.empty().append(e):t.text(pe(e).text()):t[n?"html":"text"](e)},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getAttachment=function(t){return Ie[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)pe(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==xe){var e=t===He?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===He?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;pe(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}pe(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||pe(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Le:He]=!0),pe(e.getTipElement()).hasClass(ke)||e._hoverState===De?e._hoverState=De:(clearTimeout(e._timeout),e._hoverState=De,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===De&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||pe(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Le:He]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=we,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===we&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){return"number"==typeof(t=l({},this.constructor.Default,pe(this.element).data(),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Fn.typeCheckConfig(ve,t,this.constructor.DefaultType),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=pe(this.getTipElement()),e=t.attr("class").match(be);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(pe(t).removeClass(Oe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=pe(this).data(ye),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),pe(this).data(ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ae}},{key:"NAME",get:function(){return ve}},{key:"DATA_KEY",get:function(){return ye}},{key:"Event",get:function(){return Ne}},{key:"EVENT_KEY",get:function(){return Ee}},{key:"DefaultType",get:function(){return Se}}]),i}(),pe.fn[ve]=We._jQueryInterface,pe.fn[ve].Constructor=We,pe.fn[ve].noConflict=function(){return pe.fn[ve]=Ce,We._jQueryInterface},We),Jn=(qe="popover",Ke="."+(Fe="bs.popover"),Me=(Ue=e).fn[qe],Qe="bs-popover",Be=new RegExp("(^|\\s)"+Qe+"\\S+","g"),Ve=l({},zn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ye=l({},zn.DefaultType,{content:"(string|element|function)"}),ze="fade",Ze=".popover-header",Ge=".popover-body",$e={HIDE:"hide"+Ke,HIDDEN:"hidden"+Ke,SHOW:(Je="show")+Ke,SHOWN:"shown"+Ke,INSERTED:"inserted"+Ke,CLICK:"click"+Ke,FOCUSIN:"focusin"+Ke,FOCUSOUT:"focusout"+Ke,MOUSEENTER:"mouseenter"+Ke,MOUSELEAVE:"mouseleave"+Ke},Xe=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){Ue(this.getTipElement()).addClass(Qe+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||Ue(this.config.template)[0],this.tip},r.setContent=function(){var t=Ue(this.getTipElement());this.setElementContent(t.find(Ze),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Ge),e),t.removeClass(ze+" "+Je)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=Ue(this.getTipElement()),e=t.attr("class").match(Be);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=Ue(this).data(Fe),e="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new i(this,e),Ue(this).data(Fe,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ve}},{key:"NAME",get:function(){return qe}},{key:"DATA_KEY",get:function(){return Fe}},{key:"Event",get:function(){return $e}},{key:"EVENT_KEY",get:function(){return Ke}},{key:"DefaultType",get:function(){return Ye}}]),i}(zn),Ue.fn[qe]=Xe._jQueryInterface,Ue.fn[qe].Constructor=Xe,Ue.fn[qe].noConflict=function(){return Ue.fn[qe]=Me,Xe._jQueryInterface},Xe),Zn=(en="scrollspy",rn="."+(nn="bs.scrollspy"),on=(tn=e).fn[en],sn={offset:10,method:"auto",target:""},an={offset:"number",method:"string",target:"(string|element)"},ln={ACTIVATE:"activate"+rn,SCROLL:"scroll"+rn,LOAD_DATA_API:"load"+rn+".data-api"},cn="dropdown-item",hn="active",un='[data-spy="scroll"]',fn=".active",dn=".nav, .list-group",gn=".nav-link",_n=".nav-item",mn=".list-group-item",pn=".dropdown",vn=".dropdown-item",yn=".dropdown-toggle",En="offset",Cn="position",Tn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+gn+","+this._config.target+" "+mn+","+this._config.target+" "+vn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,tn(this._scrollElement).on(ln.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?En:Cn,r="auto"===this._config.method?t:this._config.method,o=r===Cn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=Fn.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[tn(e)[r]().top+o,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){tn.removeData(this._element,nn),tn(this._scrollElement).off(rn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},sn,"object"==typeof t&&t?t:{})).target){var e=tn(t.target).attr("id");e||(e=Fn.getUID(en),tn(t.target).attr("id",e)),t.target="#"+e}return Fn.typeCheckConfig(en,t,an),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var n=tn([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(cn)?(n.closest(pn).find(yn).addClass(hn),n.addClass(hn)):(n.addClass(hn),n.parents(dn).prev(gn+", "+mn).addClass(hn),n.parents(dn).prev(_n).children(gn).addClass(hn)),tn(this._scrollElement).trigger(ln.ACTIVATE,{relatedTarget:e})},t._clear=function(){var t=[].slice.call(document.querySelectorAll(this._selector));tn(t).filter(fn).removeClass(hn)},n._jQueryInterface=function(e){return this.each(function(){var t=tn(this).data(nn);if(t||(t=new n(this,"object"==typeof e&&e),tn(this).data(nn,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return sn}}]),n}(),tn(window).on(ln.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(un)),e=t.length;e--;){var n=tn(t[e]);Tn._jQueryInterface.call(n,n.data())}}),tn.fn[en]=Tn._jQueryInterface,tn.fn[en].Constructor=Tn,tn.fn[en].noConflict=function(){return tn.fn[en]=on,Tn._jQueryInterface},Tn),Gn=(In="."+(Sn="bs.tab"),An=(bn=e).fn.tab,Dn={HIDE:"hide"+In,HIDDEN:"hidden"+In,SHOW:"show"+In,SHOWN:"shown"+In,CLICK_DATA_API:"click"+In+".data-api"},wn="dropdown-menu",Nn="active",On="disabled",kn="fade",Pn="show",jn=".dropdown",Hn=".nav, .list-group",Ln=".active",Rn="> li > .active",xn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Wn=".dropdown-toggle",Un="> .dropdown-menu .active",qn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&bn(this._element).hasClass(Nn)||bn(this._element).hasClass(On))){var t,i,e=bn(this._element).closest(Hn)[0],r=Fn.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName?Rn:Ln;i=(i=bn.makeArray(bn(e).find(o)))[i.length-1]}var s=bn.Event(Dn.HIDE,{relatedTarget:this._element}),a=bn.Event(Dn.SHOW,{relatedTarget:i});if(i&&bn(i).trigger(s),bn(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(t=document.querySelector(r)),this._activate(this._element,e);var l=function(){var t=bn.Event(Dn.HIDDEN,{relatedTarget:n._element}),e=bn.Event(Dn.SHOWN,{relatedTarget:i});bn(i).trigger(t),bn(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){bn.removeData(this._element,Sn),this._element=null},t._activate=function(t,e,n){var i=this,r=("UL"===e.nodeName?bn(e).find(Rn):bn(e).children(Ln))[0],o=n&&r&&bn(r).hasClass(kn),s=function(){return i._transitionComplete(t,r,n)};if(r&&o){var a=Fn.getTransitionDurationFromElement(r);bn(r).one(Fn.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){bn(e).removeClass(Pn+" "+Nn);var i=bn(e.parentNode).find(Un)[0];i&&bn(i).removeClass(Nn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(bn(t).addClass(Nn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Fn.reflow(t),bn(t).addClass(Pn),t.parentNode&&bn(t.parentNode).hasClass(wn)){var r=bn(t).closest(jn)[0];if(r){var o=[].slice.call(r.querySelectorAll(Wn));bn(o).addClass(Nn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=bn(this),e=t.data(Sn);if(e||(e=new i(this),t.data(Sn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),bn(document).on(Dn.CLICK_DATA_API,xn,function(t){t.preventDefault(),qn._jQueryInterface.call(bn(this),"show")}),bn.fn.tab=qn._jQueryInterface,bn.fn.tab.Constructor=qn,bn.fn.tab.noConflict=function(){return bn.fn.tab=An,qn._jQueryInterface},qn);!function(t){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=Fn,t.Alert=Kn,t.Button=Mn,t.Carousel=Qn,t.Collapse=Bn,t.Dropdown=Vn,t.Modal=Yn,t.Popover=Jn,t.Scrollspy=Zn,t.Tab=Gn,t.Tooltip=zn,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
7 | +//# sourceMappingURL=bootstrap.min.js.map | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
project/js/jquery-1.9.1.min.js
0 → 100644
1 | +/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license | ||
2 | +//@ sourceMappingURL=jquery.min.map | ||
3 | +*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj; | ||
4 | +return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="<a name='"+x+"'></a><div name='"+x+"'></div>",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&>(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inArray(e,t)>=0===n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Nt=/^(?:checkbox|radio)$/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:b.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l) | ||
5 | +}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(b.css(e,"display"))?b.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}}),b.support.opacity||(b.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=b.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===b.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,n){b.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!b.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(b.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Nt.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(b.isArray(t))b.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==b.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=a.href}catch(Ln){yn=o.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(b.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(u){var l;return o[u]=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o["*"]&&s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&b.extend(!0,e,r),e}b.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&b.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
project/js/jquery.singlePageNav.min.js
0 → 100644
1 | +/** | ||
2 | + * Single Page Nav Plugin | ||
3 | + * Copyright (c) 2014 Chris Wojcik <cpw1485@gmail.com> | ||
4 | + * Dual licensed under MIT and GPL. | ||
5 | + * @author Chris Wojcik | ||
6 | + * @version 1.2.1 | ||
7 | + */ | ||
8 | +"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){"use strict";var e={init:function(c,d){this.options=a.extend({},a.fn.singlePageNav.defaults,c),this.container=d,this.$container=a(d),this.$links=this.$container.find("a"),""!==this.options.filter&&(this.$links=this.$links.filter(this.options.filter)),this.$window=a(b),this.$htmlbody=a("html, body"),this.$links.on("click.singlePageNav",a.proxy(this.handleClick,this)),this.didScroll=!1,this.checkPosition(),this.setTimer()},handleClick:function(b){var c=this,d=b.currentTarget,e=a(d.hash);b.preventDefault(),e.length&&(c.clearTimer(),"function"==typeof c.options.beforeStart&&c.options.beforeStart(),c.setActiveLink(d.hash),c.scrollTo(e,function(){c.options.updateHash&&history.pushState&&history.pushState(null,null,d.hash),c.setTimer(),"function"==typeof c.options.onComplete&&c.options.onComplete()}))},scrollTo:function(a,b){var c=this,d=c.getCoords(a).top,e=!1;c.$htmlbody.stop().animate({scrollTop:d},{duration:c.options.speed,easing:c.options.easing,complete:function(){"function"!=typeof b||e||b(),e=!0}})},setTimer:function(){var a=this;a.$window.on("scroll.singlePageNav",function(){a.didScroll=!0}),a.timer=setInterval(function(){a.didScroll&&(a.didScroll=!1,a.checkPosition())},250)},clearTimer:function(){clearInterval(this.timer),this.$window.off("scroll.singlePageNav"),this.didScroll=!1},checkPosition:function(){var a=this.$window.scrollTop(),b=this.getCurrentSection(a);null!==b&&this.setActiveLink(b)},getCoords:function(a){return{top:Math.round(a.offset().top)-this.options.offset}},setActiveLink:function(a){var b=this.$container.find("a[href$='"+a+"']");b.hasClass(this.options.currentClass)||(this.$links.removeClass(this.options.currentClass),b.addClass(this.options.currentClass))},getCurrentSection:function(d){var e,f,g,h;for(e=0;e<this.$links.length;e++)f=this.$links[e].hash,a(f).length&&(g=this.getCoords(a(f)),d>=g.top-this.options.threshold&&(h=f));var i=a(c).height()-a(b).height();if(d==i){var j=this.$links.length;j>0&&(h=this.$links[j-1].hash)}return h||(0===this.$links.length?null:this.$links[0].hash)}};a.fn.singlePageNav=function(a){return this.each(function(){var b=Object.create(e);b.init(a,this)})},a.fn.singlePageNav.defaults={offset:0,threshold:120,speed:400,currentClass:"current",easing:"swing",updateHash:!1,filter:"",onComplete:!1,beforeStart:!1}}(jQuery,window,document); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +/*! Magnific Popup - v1.1.0 - 2016-02-20 | ||
2 | +* http://dimsemenov.com/plugins/magnific-popup/ | ||
3 | +* Copyright (c) 2016 Dmitry Semenov; */ | ||
4 | +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
project/magnific-popup/magnific-popup.css
0 → 100644
1 | +/* Magnific Popup CSS */ | ||
2 | +.mfp-bg { | ||
3 | + top: 0; | ||
4 | + left: 0; | ||
5 | + width: 100%; | ||
6 | + height: 100%; | ||
7 | + z-index: 1042; | ||
8 | + overflow: hidden; | ||
9 | + position: fixed; | ||
10 | + background: #0b0b0b; | ||
11 | + opacity: 0.8; } | ||
12 | + | ||
13 | +.mfp-wrap { | ||
14 | + top: 0; | ||
15 | + left: 0; | ||
16 | + width: 100%; | ||
17 | + height: 100%; | ||
18 | + z-index: 1043; | ||
19 | + position: fixed; | ||
20 | + outline: none !important; | ||
21 | + -webkit-backface-visibility: hidden; } | ||
22 | + | ||
23 | +.mfp-container { | ||
24 | + text-align: center; | ||
25 | + position: absolute; | ||
26 | + width: 100%; | ||
27 | + height: 100%; | ||
28 | + left: 0; | ||
29 | + top: 0; | ||
30 | + padding: 0 8px; | ||
31 | + box-sizing: border-box; } | ||
32 | + | ||
33 | +.mfp-container:before { | ||
34 | + content: ''; | ||
35 | + display: inline-block; | ||
36 | + height: 100%; | ||
37 | + vertical-align: middle; } | ||
38 | + | ||
39 | +.mfp-align-top .mfp-container:before { | ||
40 | + display: none; } | ||
41 | + | ||
42 | +.mfp-content { | ||
43 | + position: relative; | ||
44 | + display: inline-block; | ||
45 | + vertical-align: middle; | ||
46 | + margin: 0 auto; | ||
47 | + text-align: left; | ||
48 | + z-index: 1045; } | ||
49 | + | ||
50 | +.mfp-inline-holder .mfp-content, | ||
51 | +.mfp-ajax-holder .mfp-content { | ||
52 | + width: 100%; | ||
53 | + cursor: auto; } | ||
54 | + | ||
55 | +.mfp-ajax-cur { | ||
56 | + cursor: progress; } | ||
57 | + | ||
58 | +.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close { | ||
59 | + cursor: -moz-zoom-out; | ||
60 | + cursor: -webkit-zoom-out; | ||
61 | + cursor: zoom-out; } | ||
62 | + | ||
63 | +.mfp-zoom { | ||
64 | + cursor: pointer; | ||
65 | + cursor: -webkit-zoom-in; | ||
66 | + cursor: -moz-zoom-in; | ||
67 | + cursor: zoom-in; } | ||
68 | + | ||
69 | +.mfp-auto-cursor .mfp-content { | ||
70 | + cursor: auto; } | ||
71 | + | ||
72 | +.mfp-close, | ||
73 | +.mfp-arrow, | ||
74 | +.mfp-preloader, | ||
75 | +.mfp-counter { | ||
76 | + -webkit-user-select: none; | ||
77 | + -moz-user-select: none; | ||
78 | + user-select: none; } | ||
79 | + | ||
80 | +.mfp-loading.mfp-figure { | ||
81 | + display: none; } | ||
82 | + | ||
83 | +.mfp-hide { | ||
84 | + display: none !important; } | ||
85 | + | ||
86 | +.mfp-preloader { | ||
87 | + color: #CCC; | ||
88 | + position: absolute; | ||
89 | + top: 50%; | ||
90 | + width: auto; | ||
91 | + text-align: center; | ||
92 | + margin-top: -0.8em; | ||
93 | + left: 8px; | ||
94 | + right: 8px; | ||
95 | + z-index: 1044; } | ||
96 | + .mfp-preloader a { | ||
97 | + color: #CCC; } | ||
98 | + .mfp-preloader a:hover { | ||
99 | + color: #FFF; } | ||
100 | + | ||
101 | +.mfp-s-ready .mfp-preloader { | ||
102 | + display: none; } | ||
103 | + | ||
104 | +.mfp-s-error .mfp-content { | ||
105 | + display: none; } | ||
106 | + | ||
107 | +button.mfp-close, | ||
108 | +button.mfp-arrow { | ||
109 | + overflow: visible; | ||
110 | + cursor: pointer; | ||
111 | + background: transparent; | ||
112 | + border: 0; | ||
113 | + -webkit-appearance: none; | ||
114 | + display: block; | ||
115 | + outline: none; | ||
116 | + padding: 0; | ||
117 | + z-index: 1046; | ||
118 | + box-shadow: none; | ||
119 | + touch-action: manipulation; } | ||
120 | + | ||
121 | +button::-moz-focus-inner { | ||
122 | + padding: 0; | ||
123 | + border: 0; } | ||
124 | + | ||
125 | +.mfp-close { | ||
126 | + width: 44px; | ||
127 | + height: 44px; | ||
128 | + line-height: 44px; | ||
129 | + position: absolute; | ||
130 | + right: 0; | ||
131 | + top: 0; | ||
132 | + text-decoration: none; | ||
133 | + text-align: center; | ||
134 | + opacity: 0.65; | ||
135 | + padding: 0 0 18px 10px; | ||
136 | + color: #FFF; | ||
137 | + font-style: normal; | ||
138 | + font-size: 28px; | ||
139 | + font-family: Arial, Baskerville, monospace; } | ||
140 | + .mfp-close:hover, | ||
141 | + .mfp-close:focus { | ||
142 | + opacity: 1; } | ||
143 | + .mfp-close:active { | ||
144 | + top: 1px; } | ||
145 | + | ||
146 | +.mfp-close-btn-in .mfp-close { | ||
147 | + color: #333; } | ||
148 | + | ||
149 | +.mfp-image-holder .mfp-close, | ||
150 | +.mfp-iframe-holder .mfp-close { | ||
151 | + color: #FFF; | ||
152 | + right: -6px; | ||
153 | + text-align: right; | ||
154 | + padding-right: 6px; | ||
155 | + width: 100%; } | ||
156 | + | ||
157 | +.mfp-counter { | ||
158 | + position: absolute; | ||
159 | + top: 0; | ||
160 | + right: 0; | ||
161 | + color: #CCC; | ||
162 | + font-size: 12px; | ||
163 | + line-height: 18px; | ||
164 | + white-space: nowrap; } | ||
165 | + | ||
166 | +.mfp-arrow { | ||
167 | + position: absolute; | ||
168 | + opacity: 0.65; | ||
169 | + margin: 0; | ||
170 | + top: 50%; | ||
171 | + margin-top: -55px; | ||
172 | + padding: 0; | ||
173 | + width: 90px; | ||
174 | + height: 110px; | ||
175 | + -webkit-tap-highlight-color: transparent; } | ||
176 | + .mfp-arrow:active { | ||
177 | + margin-top: -54px; } | ||
178 | + .mfp-arrow:hover, | ||
179 | + .mfp-arrow:focus { | ||
180 | + opacity: 1; } | ||
181 | + .mfp-arrow:before, | ||
182 | + .mfp-arrow:after { | ||
183 | + content: ''; | ||
184 | + display: block; | ||
185 | + width: 0; | ||
186 | + height: 0; | ||
187 | + position: absolute; | ||
188 | + left: 0; | ||
189 | + top: 0; | ||
190 | + margin-top: 35px; | ||
191 | + margin-left: 35px; | ||
192 | + border: medium inset transparent; } | ||
193 | + .mfp-arrow:after { | ||
194 | + border-top-width: 13px; | ||
195 | + border-bottom-width: 13px; | ||
196 | + top: 8px; } | ||
197 | + .mfp-arrow:before { | ||
198 | + border-top-width: 21px; | ||
199 | + border-bottom-width: 21px; | ||
200 | + opacity: 0.7; } | ||
201 | + | ||
202 | +.mfp-arrow-left { | ||
203 | + left: 0; } | ||
204 | + .mfp-arrow-left:after { | ||
205 | + border-right: 17px solid #FFF; | ||
206 | + margin-left: 31px; } | ||
207 | + .mfp-arrow-left:before { | ||
208 | + margin-left: 25px; | ||
209 | + border-right: 27px solid #3F3F3F; } | ||
210 | + | ||
211 | +.mfp-arrow-right { | ||
212 | + right: 0; } | ||
213 | + .mfp-arrow-right:after { | ||
214 | + border-left: 17px solid #FFF; | ||
215 | + margin-left: 39px; } | ||
216 | + .mfp-arrow-right:before { | ||
217 | + border-left: 27px solid #3F3F3F; } | ||
218 | + | ||
219 | +.mfp-iframe-holder { | ||
220 | + padding-top: 40px; | ||
221 | + padding-bottom: 40px; } | ||
222 | + .mfp-iframe-holder .mfp-content { | ||
223 | + line-height: 0; | ||
224 | + width: 100%; | ||
225 | + max-width: 900px; } | ||
226 | + .mfp-iframe-holder .mfp-close { | ||
227 | + top: -40px; } | ||
228 | + | ||
229 | +.mfp-iframe-scaler { | ||
230 | + width: 100%; | ||
231 | + height: 0; | ||
232 | + overflow: hidden; | ||
233 | + padding-top: 56.25%; } | ||
234 | + .mfp-iframe-scaler iframe { | ||
235 | + position: absolute; | ||
236 | + display: block; | ||
237 | + top: 0; | ||
238 | + left: 0; | ||
239 | + width: 100%; | ||
240 | + height: 100%; | ||
241 | + box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); | ||
242 | + background: #000; } | ||
243 | + | ||
244 | +/* Main image in popup */ | ||
245 | +img.mfp-img { | ||
246 | + width: auto; | ||
247 | + max-width: 100%; | ||
248 | + height: auto; | ||
249 | + display: block; | ||
250 | + line-height: 0; | ||
251 | + box-sizing: border-box; | ||
252 | + padding: 40px 0 40px; | ||
253 | + margin: 0 auto; } | ||
254 | + | ||
255 | +/* The shadow behind the image */ | ||
256 | +.mfp-figure { | ||
257 | + line-height: 0; } | ||
258 | + .mfp-figure:after { | ||
259 | + content: ''; | ||
260 | + position: absolute; | ||
261 | + left: 0; | ||
262 | + top: 40px; | ||
263 | + bottom: 40px; | ||
264 | + display: block; | ||
265 | + right: 0; | ||
266 | + width: auto; | ||
267 | + height: auto; | ||
268 | + z-index: -1; | ||
269 | + box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); | ||
270 | + background: #444; } | ||
271 | + .mfp-figure small { | ||
272 | + color: #BDBDBD; | ||
273 | + display: block; | ||
274 | + font-size: 12px; | ||
275 | + line-height: 14px; } | ||
276 | + .mfp-figure figure { | ||
277 | + margin: 0; } | ||
278 | + | ||
279 | +.mfp-bottom-bar { | ||
280 | + margin-top: -36px; | ||
281 | + position: absolute; | ||
282 | + top: 100%; | ||
283 | + left: 0; | ||
284 | + width: 100%; | ||
285 | + cursor: auto; } | ||
286 | + | ||
287 | +.mfp-title { | ||
288 | + text-align: left; | ||
289 | + line-height: 18px; | ||
290 | + color: #F3F3F3; | ||
291 | + word-wrap: break-word; | ||
292 | + padding-right: 36px; } | ||
293 | + | ||
294 | +.mfp-image-holder .mfp-content { | ||
295 | + max-width: 100%; } | ||
296 | + | ||
297 | +.mfp-gallery .mfp-image-holder .mfp-figure { | ||
298 | + cursor: pointer; } | ||
299 | + | ||
300 | +@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) { | ||
301 | + /** | ||
302 | + * Remove all paddings around the image on small screen | ||
303 | + */ | ||
304 | + .mfp-img-mobile .mfp-image-holder { | ||
305 | + padding-left: 0; | ||
306 | + padding-right: 0; } | ||
307 | + .mfp-img-mobile img.mfp-img { | ||
308 | + padding: 0; } | ||
309 | + .mfp-img-mobile .mfp-figure:after { | ||
310 | + top: 0; | ||
311 | + bottom: 0; } | ||
312 | + .mfp-img-mobile .mfp-figure small { | ||
313 | + display: inline; | ||
314 | + margin-left: 5px; } | ||
315 | + .mfp-img-mobile .mfp-bottom-bar { | ||
316 | + background: rgba(0, 0, 0, 0.6); | ||
317 | + bottom: 0; | ||
318 | + margin: 0; | ||
319 | + top: auto; | ||
320 | + padding: 3px 5px; | ||
321 | + position: fixed; | ||
322 | + box-sizing: border-box; } | ||
323 | + .mfp-img-mobile .mfp-bottom-bar:empty { | ||
324 | + padding: 0; } | ||
325 | + .mfp-img-mobile .mfp-counter { | ||
326 | + right: 5px; | ||
327 | + top: 3px; } | ||
328 | + .mfp-img-mobile .mfp-close { | ||
329 | + top: 0; | ||
330 | + right: 0; | ||
331 | + width: 35px; | ||
332 | + height: 35px; | ||
333 | + line-height: 35px; | ||
334 | + background: rgba(0, 0, 0, 0.6); | ||
335 | + position: fixed; | ||
336 | + text-align: center; | ||
337 | + padding: 0; } } | ||
338 | + | ||
339 | +@media all and (max-width: 900px) { | ||
340 | + .mfp-arrow { | ||
341 | + -webkit-transform: scale(0.75); | ||
342 | + transform: scale(0.75); } | ||
343 | + .mfp-arrow-left { | ||
344 | + -webkit-transform-origin: 0; | ||
345 | + transform-origin: 0; } | ||
346 | + .mfp-arrow-right { | ||
347 | + -webkit-transform-origin: 100%; | ||
348 | + transform-origin: 100%; } | ||
349 | + .mfp-container { | ||
350 | + padding-left: 6px; | ||
351 | + padding-right: 6px; } } |
project/slick/ajax-loader.gif
0 → 100644
4.08 KB
project/slick/config.rb
0 → 100644
project/slick/fonts/slick.eot
0 → 100644
No preview for this file type
project/slick/fonts/slick.svg
0 → 100644
1 | +<?xml version="1.0" standalone="no"?> | ||
2 | +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||
3 | +<svg xmlns="http://www.w3.org/2000/svg"> | ||
4 | +<metadata>Generated by Fontastic.me</metadata> | ||
5 | +<defs> | ||
6 | +<font id="slick" horiz-adv-x="512"> | ||
7 | +<font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/> | ||
8 | +<missing-glyph horiz-adv-x="512" /> | ||
9 | + | ||
10 | +<glyph unicode="→" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/> | ||
11 | +<glyph unicode="←" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/> | ||
12 | +<glyph unicode="•" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/> | ||
13 | +<glyph unicode="a" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/> | ||
14 | +</font></defs></svg> |
project/slick/fonts/slick.ttf
0 → 100644
No preview for this file type
project/slick/fonts/slick.woff
0 → 100644
No preview for this file type
project/slick/slick-theme.css
0 → 100644
1 | +@charset 'UTF-8'; | ||
2 | +/* Slider */ | ||
3 | +.slick-loading .slick-list | ||
4 | +{ | ||
5 | + background: #fff url('./ajax-loader.gif') center center no-repeat; | ||
6 | +} | ||
7 | + | ||
8 | +/* Icons */ | ||
9 | +@font-face | ||
10 | +{ | ||
11 | + font-family: 'slick'; | ||
12 | + font-weight: normal; | ||
13 | + font-style: normal; | ||
14 | + | ||
15 | + src: url('./fonts/slick.eot'); | ||
16 | + src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg'); | ||
17 | +} | ||
18 | +/* Arrows */ | ||
19 | +.slick-prev, | ||
20 | +.slick-next | ||
21 | +{ | ||
22 | + font-size: 0; | ||
23 | + line-height: 0; | ||
24 | + | ||
25 | + position: absolute; | ||
26 | + top: 50%; | ||
27 | + | ||
28 | + display: block; | ||
29 | + | ||
30 | + width: 20px; | ||
31 | + height: 20px; | ||
32 | + padding: 0; | ||
33 | + -webkit-transform: translate(0, -50%); | ||
34 | + -ms-transform: translate(0, -50%); | ||
35 | + transform: translate(0, -50%); | ||
36 | + | ||
37 | + cursor: pointer; | ||
38 | + | ||
39 | + color: transparent; | ||
40 | + border: none; | ||
41 | + outline: none; | ||
42 | + background: transparent; | ||
43 | +} | ||
44 | +.slick-prev:hover, | ||
45 | +.slick-prev:focus, | ||
46 | +.slick-next:hover, | ||
47 | +.slick-next:focus | ||
48 | +{ | ||
49 | + color: transparent; | ||
50 | + outline: none; | ||
51 | + background: transparent; | ||
52 | +} | ||
53 | +.slick-prev:hover:before, | ||
54 | +.slick-prev:focus:before, | ||
55 | +.slick-next:hover:before, | ||
56 | +.slick-next:focus:before | ||
57 | +{ | ||
58 | + opacity: 1; | ||
59 | +} | ||
60 | +.slick-prev.slick-disabled:before, | ||
61 | +.slick-next.slick-disabled:before | ||
62 | +{ | ||
63 | + opacity: .25; | ||
64 | +} | ||
65 | + | ||
66 | +.slick-prev:before, | ||
67 | +.slick-next:before | ||
68 | +{ | ||
69 | + font-family: 'slick'; | ||
70 | + font-size: 20px; | ||
71 | + line-height: 1; | ||
72 | + | ||
73 | + opacity: .75; | ||
74 | + color: white; | ||
75 | + | ||
76 | + -webkit-font-smoothing: antialiased; | ||
77 | + -moz-osx-font-smoothing: grayscale; | ||
78 | +} | ||
79 | + | ||
80 | +.slick-prev | ||
81 | +{ | ||
82 | + left: -25px; | ||
83 | +} | ||
84 | +[dir='rtl'] .slick-prev | ||
85 | +{ | ||
86 | + right: -25px; | ||
87 | + left: auto; | ||
88 | +} | ||
89 | +.slick-prev:before | ||
90 | +{ | ||
91 | + content: '←'; | ||
92 | +} | ||
93 | +[dir='rtl'] .slick-prev:before | ||
94 | +{ | ||
95 | + content: '→'; | ||
96 | +} | ||
97 | + | ||
98 | +.slick-next | ||
99 | +{ | ||
100 | + right: -25px; | ||
101 | +} | ||
102 | +[dir='rtl'] .slick-next | ||
103 | +{ | ||
104 | + right: auto; | ||
105 | + left: -25px; | ||
106 | +} | ||
107 | +.slick-next:before | ||
108 | +{ | ||
109 | + content: '→'; | ||
110 | +} | ||
111 | +[dir='rtl'] .slick-next:before | ||
112 | +{ | ||
113 | + content: '←'; | ||
114 | +} | ||
115 | + | ||
116 | +/* Dots */ | ||
117 | +.slick-dotted.slick-slider | ||
118 | +{ | ||
119 | + margin-bottom: 30px; | ||
120 | +} | ||
121 | + | ||
122 | +.slick-dots | ||
123 | +{ | ||
124 | + position: absolute; | ||
125 | + bottom: -25px; | ||
126 | + | ||
127 | + display: block; | ||
128 | + | ||
129 | + width: 100%; | ||
130 | + padding: 0; | ||
131 | + margin: 0; | ||
132 | + | ||
133 | + list-style: none; | ||
134 | + | ||
135 | + text-align: center; | ||
136 | +} | ||
137 | +.slick-dots li | ||
138 | +{ | ||
139 | + position: relative; | ||
140 | + | ||
141 | + display: inline-block; | ||
142 | + | ||
143 | + width: 20px; | ||
144 | + height: 20px; | ||
145 | + margin: 0 5px; | ||
146 | + padding: 0; | ||
147 | + | ||
148 | + cursor: pointer; | ||
149 | +} | ||
150 | +.slick-dots li button | ||
151 | +{ | ||
152 | + font-size: 0; | ||
153 | + line-height: 0; | ||
154 | + | ||
155 | + display: block; | ||
156 | + | ||
157 | + width: 20px; | ||
158 | + height: 20px; | ||
159 | + padding: 5px; | ||
160 | + | ||
161 | + cursor: pointer; | ||
162 | + | ||
163 | + color: transparent; | ||
164 | + border: 0; | ||
165 | + outline: none; | ||
166 | + background: transparent; | ||
167 | +} | ||
168 | +.slick-dots li button:hover, | ||
169 | +.slick-dots li button:focus | ||
170 | +{ | ||
171 | + outline: none; | ||
172 | +} | ||
173 | +.slick-dots li button:hover:before, | ||
174 | +.slick-dots li button:focus:before | ||
175 | +{ | ||
176 | + opacity: 1; | ||
177 | +} | ||
178 | +.slick-dots li button:before | ||
179 | +{ | ||
180 | + font-family: 'slick'; | ||
181 | + font-size: 6px; | ||
182 | + line-height: 20px; | ||
183 | + | ||
184 | + position: absolute; | ||
185 | + top: 0; | ||
186 | + left: 0; | ||
187 | + | ||
188 | + width: 20px; | ||
189 | + height: 20px; | ||
190 | + | ||
191 | + content: '•'; | ||
192 | + text-align: center; | ||
193 | + | ||
194 | + opacity: .25; | ||
195 | + color: black; | ||
196 | + | ||
197 | + -webkit-font-smoothing: antialiased; | ||
198 | + -moz-osx-font-smoothing: grayscale; | ||
199 | +} | ||
200 | +.slick-dots li.slick-active button:before | ||
201 | +{ | ||
202 | + opacity: .75; | ||
203 | + color: black; | ||
204 | +} |
project/slick/slick-theme.less
0 → 100644
1 | +@charset "UTF-8"; | ||
2 | + | ||
3 | +// Default Variables | ||
4 | + | ||
5 | +@slick-font-path: "./fonts/"; | ||
6 | +@slick-font-family: "slick"; | ||
7 | +@slick-loader-path: "./"; | ||
8 | +@slick-arrow-color: white; | ||
9 | +@slick-dot-color: black; | ||
10 | +@slick-dot-color-active: @slick-dot-color; | ||
11 | +@slick-prev-character: "←"; | ||
12 | +@slick-next-character: "→"; | ||
13 | +@slick-dot-character: "•"; | ||
14 | +@slick-dot-size: 6px; | ||
15 | +@slick-opacity-default: 0.75; | ||
16 | +@slick-opacity-on-hover: 1; | ||
17 | +@slick-opacity-not-active: 0.25; | ||
18 | + | ||
19 | +/* Slider */ | ||
20 | +.slick-loading .slick-list{ | ||
21 | + background: #fff url('@{slick-loader-path}ajax-loader.gif') center center no-repeat; | ||
22 | +} | ||
23 | + | ||
24 | +/* Arrows */ | ||
25 | +.slick-prev, | ||
26 | +.slick-next { | ||
27 | + position: absolute; | ||
28 | + display: block; | ||
29 | + height: 20px; | ||
30 | + width: 20px; | ||
31 | + line-height: 0px; | ||
32 | + font-size: 0px; | ||
33 | + cursor: pointer; | ||
34 | + background: transparent; | ||
35 | + color: transparent; | ||
36 | + top: 50%; | ||
37 | + -webkit-transform: translate(0, -50%); | ||
38 | + -ms-transform: translate(0, -50%); | ||
39 | + transform: translate(0, -50%); | ||
40 | + padding: 0; | ||
41 | + border: none; | ||
42 | + outline: none; | ||
43 | + &:hover, &:focus { | ||
44 | + outline: none; | ||
45 | + background: transparent; | ||
46 | + color: transparent; | ||
47 | + &:before { | ||
48 | + opacity: @slick-opacity-on-hover; | ||
49 | + } | ||
50 | + } | ||
51 | + &.slick-disabled:before { | ||
52 | + opacity: @slick-opacity-not-active; | ||
53 | + } | ||
54 | +} | ||
55 | + | ||
56 | +.slick-prev:before, .slick-next:before { | ||
57 | + font-family: @slick-font-family; | ||
58 | + font-size: 20px; | ||
59 | + line-height: 1; | ||
60 | + color: @slick-arrow-color; | ||
61 | + opacity: @slick-opacity-default; | ||
62 | + -webkit-font-smoothing: antialiased; | ||
63 | + -moz-osx-font-smoothing: grayscale; | ||
64 | + | ||
65 | + & when ( @slick-font-family = 'slick' ) { | ||
66 | + /* Icons */ | ||
67 | + @font-face { | ||
68 | + font-family: 'slick'; | ||
69 | + font-weight: normal; | ||
70 | + font-style: normal; | ||
71 | + src: url('@{slick-font-path}slick.eot'); | ||
72 | + src: url('@{slick-font-path}slick.eot?#iefix') format('embedded-opentype'), url('@{slick-font-path}slick.woff') format('woff'), url('@{slick-font-path}slick.ttf') format('truetype'), url('@{slick-font-path}slick.svg#slick') format('svg'); | ||
73 | + } | ||
74 | + } | ||
75 | +} | ||
76 | + | ||
77 | +.slick-prev { | ||
78 | + left: -25px; | ||
79 | + [dir="rtl"] & { | ||
80 | + left: auto; | ||
81 | + right: -25px; | ||
82 | + } | ||
83 | + &:before { | ||
84 | + content: @slick-prev-character; | ||
85 | + [dir="rtl"] & { | ||
86 | + content: @slick-next-character; | ||
87 | + } | ||
88 | + } | ||
89 | +} | ||
90 | + | ||
91 | +.slick-next { | ||
92 | + right: -25px; | ||
93 | + [dir="rtl"] & { | ||
94 | + left: -25px; | ||
95 | + right: auto; | ||
96 | + } | ||
97 | + &:before { | ||
98 | + content: @slick-next-character; | ||
99 | + [dir="rtl"] & { | ||
100 | + content: @slick-prev-character; | ||
101 | + } | ||
102 | + } | ||
103 | +} | ||
104 | + | ||
105 | +/* Dots */ | ||
106 | + | ||
107 | +.slick-dotted .slick-slider { | ||
108 | + margin-bottom: 30px; | ||
109 | +} | ||
110 | + | ||
111 | +.slick-dots { | ||
112 | + position: absolute; | ||
113 | + bottom: -25px; | ||
114 | + list-style: none; | ||
115 | + display: block; | ||
116 | + text-align: center; | ||
117 | + padding: 0; | ||
118 | + margin: 0; | ||
119 | + width: 100%; | ||
120 | + li { | ||
121 | + position: relative; | ||
122 | + display: inline-block; | ||
123 | + height: 20px; | ||
124 | + width: 20px; | ||
125 | + margin: 0 5px; | ||
126 | + padding: 0; | ||
127 | + cursor: pointer; | ||
128 | + button { | ||
129 | + border: 0; | ||
130 | + background: transparent; | ||
131 | + display: block; | ||
132 | + height: 20px; | ||
133 | + width: 20px; | ||
134 | + outline: none; | ||
135 | + line-height: 0px; | ||
136 | + font-size: 0px; | ||
137 | + color: transparent; | ||
138 | + padding: 5px; | ||
139 | + cursor: pointer; | ||
140 | + &:hover, &:focus { | ||
141 | + outline: none; | ||
142 | + &:before { | ||
143 | + opacity: @slick-opacity-on-hover; | ||
144 | + } | ||
145 | + } | ||
146 | + &:before { | ||
147 | + position: absolute; | ||
148 | + top: 0; | ||
149 | + left: 0; | ||
150 | + content: @slick-dot-character; | ||
151 | + width: 20px; | ||
152 | + height: 20px; | ||
153 | + font-family: @slick-font-family; | ||
154 | + font-size: @slick-dot-size; | ||
155 | + line-height: 20px; | ||
156 | + text-align: center; | ||
157 | + color: @slick-dot-color; | ||
158 | + opacity: @slick-opacity-not-active; | ||
159 | + -webkit-font-smoothing: antialiased; | ||
160 | + -moz-osx-font-smoothing: grayscale; | ||
161 | + } | ||
162 | + } | ||
163 | + &.slick-active button:before { | ||
164 | + color: @slick-dot-color-active; | ||
165 | + opacity: @slick-opacity-default; | ||
166 | + } | ||
167 | + } | ||
168 | +} |
project/slick/slick-theme.scss
0 → 100644
1 | +@charset "UTF-8"; | ||
2 | + | ||
3 | +// Default Variables | ||
4 | + | ||
5 | +// Slick icon entity codes outputs the following | ||
6 | +// "\2190" outputs ascii character "←" | ||
7 | +// "\2192" outputs ascii character "→" | ||
8 | +// "\2022" outputs ascii character "•" | ||
9 | + | ||
10 | +$slick-font-path: "./fonts/" !default; | ||
11 | +$slick-font-family: "slick" !default; | ||
12 | +$slick-loader-path: "./" !default; | ||
13 | +$slick-arrow-color: white !default; | ||
14 | +$slick-dot-color: black !default; | ||
15 | +$slick-dot-color-active: $slick-dot-color !default; | ||
16 | +$slick-prev-character: "\2190" !default; | ||
17 | +$slick-next-character: "\2192" !default; | ||
18 | +$slick-dot-character: "\2022" !default; | ||
19 | +$slick-dot-size: 6px !default; | ||
20 | +$slick-opacity-default: 0.75 !default; | ||
21 | +$slick-opacity-on-hover: 1 !default; | ||
22 | +$slick-opacity-not-active: 0.25 !default; | ||
23 | + | ||
24 | +@function slick-image-url($url) { | ||
25 | + @if function-exists(image-url) { | ||
26 | + @return image-url($url); | ||
27 | + } | ||
28 | + @else { | ||
29 | + @return url($slick-loader-path + $url); | ||
30 | + } | ||
31 | +} | ||
32 | + | ||
33 | +@function slick-font-url($url) { | ||
34 | + @if function-exists(font-url) { | ||
35 | + @return font-url($url); | ||
36 | + } | ||
37 | + @else { | ||
38 | + @return url($slick-font-path + $url); | ||
39 | + } | ||
40 | +} | ||
41 | + | ||
42 | +/* Slider */ | ||
43 | + | ||
44 | +.slick-list { | ||
45 | + .slick-loading & { | ||
46 | + background: #fff slick-image-url("ajax-loader.gif") center center no-repeat; | ||
47 | + } | ||
48 | +} | ||
49 | + | ||
50 | +/* Icons */ | ||
51 | +@if $slick-font-family == "slick" { | ||
52 | + @font-face { | ||
53 | + font-family: "slick"; | ||
54 | + src: slick-font-url("slick.eot"); | ||
55 | + src: slick-font-url("slick.eot?#iefix") format("embedded-opentype"), slick-font-url("slick.woff") format("woff"), slick-font-url("slick.ttf") format("truetype"), slick-font-url("slick.svg#slick") format("svg"); | ||
56 | + font-weight: normal; | ||
57 | + font-style: normal; | ||
58 | + } | ||
59 | +} | ||
60 | + | ||
61 | +/* Arrows */ | ||
62 | + | ||
63 | +.slick-prev, | ||
64 | +.slick-next { | ||
65 | + position: absolute; | ||
66 | + display: block; | ||
67 | + height: 20px; | ||
68 | + width: 20px; | ||
69 | + line-height: 0px; | ||
70 | + font-size: 0px; | ||
71 | + cursor: pointer; | ||
72 | + background: transparent; | ||
73 | + color: transparent; | ||
74 | + top: 50%; | ||
75 | + -webkit-transform: translate(0, -50%); | ||
76 | + -ms-transform: translate(0, -50%); | ||
77 | + transform: translate(0, -50%); | ||
78 | + padding: 0; | ||
79 | + border: none; | ||
80 | + outline: none; | ||
81 | + &:hover, &:focus { | ||
82 | + outline: none; | ||
83 | + background: transparent; | ||
84 | + color: transparent; | ||
85 | + &:before { | ||
86 | + opacity: $slick-opacity-on-hover; | ||
87 | + } | ||
88 | + } | ||
89 | + &.slick-disabled:before { | ||
90 | + opacity: $slick-opacity-not-active; | ||
91 | + } | ||
92 | + &:before { | ||
93 | + font-family: $slick-font-family; | ||
94 | + font-size: 20px; | ||
95 | + line-height: 1; | ||
96 | + color: $slick-arrow-color; | ||
97 | + opacity: $slick-opacity-default; | ||
98 | + -webkit-font-smoothing: antialiased; | ||
99 | + -moz-osx-font-smoothing: grayscale; | ||
100 | + } | ||
101 | +} | ||
102 | + | ||
103 | +.slick-prev { | ||
104 | + left: -25px; | ||
105 | + [dir="rtl"] & { | ||
106 | + left: auto; | ||
107 | + right: -25px; | ||
108 | + } | ||
109 | + &:before { | ||
110 | + content: $slick-prev-character; | ||
111 | + [dir="rtl"] & { | ||
112 | + content: $slick-next-character; | ||
113 | + } | ||
114 | + } | ||
115 | +} | ||
116 | + | ||
117 | +.slick-next { | ||
118 | + right: -25px; | ||
119 | + [dir="rtl"] & { | ||
120 | + left: -25px; | ||
121 | + right: auto; | ||
122 | + } | ||
123 | + &:before { | ||
124 | + content: $slick-next-character; | ||
125 | + [dir="rtl"] & { | ||
126 | + content: $slick-prev-character; | ||
127 | + } | ||
128 | + } | ||
129 | +} | ||
130 | + | ||
131 | +/* Dots */ | ||
132 | + | ||
133 | +.slick-dotted.slick-slider { | ||
134 | + margin-bottom: 30px; | ||
135 | +} | ||
136 | + | ||
137 | +.slick-dots { | ||
138 | + position: absolute; | ||
139 | + bottom: -25px; | ||
140 | + list-style: none; | ||
141 | + display: block; | ||
142 | + text-align: center; | ||
143 | + padding: 0; | ||
144 | + margin: 0; | ||
145 | + width: 100%; | ||
146 | + li { | ||
147 | + position: relative; | ||
148 | + display: inline-block; | ||
149 | + height: 20px; | ||
150 | + width: 20px; | ||
151 | + margin: 0 5px; | ||
152 | + padding: 0; | ||
153 | + cursor: pointer; | ||
154 | + button { | ||
155 | + border: 0; | ||
156 | + background: transparent; | ||
157 | + display: block; | ||
158 | + height: 20px; | ||
159 | + width: 20px; | ||
160 | + outline: none; | ||
161 | + line-height: 0px; | ||
162 | + font-size: 0px; | ||
163 | + color: transparent; | ||
164 | + padding: 5px; | ||
165 | + cursor: pointer; | ||
166 | + &:hover, &:focus { | ||
167 | + outline: none; | ||
168 | + &:before { | ||
169 | + opacity: $slick-opacity-on-hover; | ||
170 | + } | ||
171 | + } | ||
172 | + &:before { | ||
173 | + position: absolute; | ||
174 | + top: 0; | ||
175 | + left: 0; | ||
176 | + content: $slick-dot-character; | ||
177 | + width: 20px; | ||
178 | + height: 20px; | ||
179 | + font-family: $slick-font-family; | ||
180 | + font-size: $slick-dot-size; | ||
181 | + line-height: 20px; | ||
182 | + text-align: center; | ||
183 | + color: $slick-dot-color; | ||
184 | + opacity: $slick-opacity-not-active; | ||
185 | + -webkit-font-smoothing: antialiased; | ||
186 | + -moz-osx-font-smoothing: grayscale; | ||
187 | + } | ||
188 | + } | ||
189 | + &.slick-active button:before { | ||
190 | + color: $slick-dot-color-active; | ||
191 | + opacity: $slick-opacity-default; | ||
192 | + } | ||
193 | + } | ||
194 | +} |
project/slick/slick.css
0 → 100644
1 | +/* Slider */ | ||
2 | +.slick-slider | ||
3 | +{ | ||
4 | + position: relative; | ||
5 | + | ||
6 | + display: block; | ||
7 | + box-sizing: border-box; | ||
8 | + | ||
9 | + -webkit-user-select: none; | ||
10 | + -moz-user-select: none; | ||
11 | + -ms-user-select: none; | ||
12 | + user-select: none; | ||
13 | + | ||
14 | + -webkit-touch-callout: none; | ||
15 | + -khtml-user-select: none; | ||
16 | + -ms-touch-action: pan-y; | ||
17 | + touch-action: pan-y; | ||
18 | + -webkit-tap-highlight-color: transparent; | ||
19 | +} | ||
20 | + | ||
21 | +.slick-list | ||
22 | +{ | ||
23 | + position: relative; | ||
24 | + | ||
25 | + display: block; | ||
26 | + overflow: hidden; | ||
27 | + | ||
28 | + margin: 0; | ||
29 | + padding: 0; | ||
30 | +} | ||
31 | +.slick-list:focus | ||
32 | +{ | ||
33 | + outline: none; | ||
34 | +} | ||
35 | +.slick-list.dragging | ||
36 | +{ | ||
37 | + cursor: pointer; | ||
38 | + cursor: hand; | ||
39 | +} | ||
40 | + | ||
41 | +.slick-slider .slick-track, | ||
42 | +.slick-slider .slick-list | ||
43 | +{ | ||
44 | + -webkit-transform: translate3d(0, 0, 0); | ||
45 | + -moz-transform: translate3d(0, 0, 0); | ||
46 | + -ms-transform: translate3d(0, 0, 0); | ||
47 | + -o-transform: translate3d(0, 0, 0); | ||
48 | + transform: translate3d(0, 0, 0); | ||
49 | +} | ||
50 | + | ||
51 | +.slick-track | ||
52 | +{ | ||
53 | + position: relative; | ||
54 | + top: 0; | ||
55 | + left: 0; | ||
56 | + | ||
57 | + display: block; | ||
58 | + margin-left: auto; | ||
59 | + margin-right: auto; | ||
60 | +} | ||
61 | +.slick-track:before, | ||
62 | +.slick-track:after | ||
63 | +{ | ||
64 | + display: table; | ||
65 | + | ||
66 | + content: ''; | ||
67 | +} | ||
68 | +.slick-track:after | ||
69 | +{ | ||
70 | + clear: both; | ||
71 | +} | ||
72 | +.slick-loading .slick-track | ||
73 | +{ | ||
74 | + visibility: hidden; | ||
75 | +} | ||
76 | + | ||
77 | +.slick-slide | ||
78 | +{ | ||
79 | + display: none; | ||
80 | + float: left; | ||
81 | + | ||
82 | + height: 100%; | ||
83 | + min-height: 1px; | ||
84 | +} | ||
85 | +[dir='rtl'] .slick-slide | ||
86 | +{ | ||
87 | + float: right; | ||
88 | +} | ||
89 | +.slick-slide img | ||
90 | +{ | ||
91 | + display: block; | ||
92 | +} | ||
93 | +.slick-slide.slick-loading img | ||
94 | +{ | ||
95 | + display: none; | ||
96 | +} | ||
97 | +.slick-slide.dragging img | ||
98 | +{ | ||
99 | + pointer-events: none; | ||
100 | +} | ||
101 | +.slick-initialized .slick-slide | ||
102 | +{ | ||
103 | + display: block; | ||
104 | +} | ||
105 | +.slick-loading .slick-slide | ||
106 | +{ | ||
107 | + visibility: hidden; | ||
108 | +} | ||
109 | +.slick-vertical .slick-slide | ||
110 | +{ | ||
111 | + display: block; | ||
112 | + | ||
113 | + height: auto; | ||
114 | + | ||
115 | + border: 1px solid transparent; | ||
116 | +} | ||
117 | +.slick-arrow.slick-hidden { | ||
118 | + display: none; | ||
119 | +} |
project/slick/slick.js
0 → 100644
1 | +/* | ||
2 | + _ _ _ _ | ||
3 | + ___| (_) ___| | __ (_)___ | ||
4 | +/ __| | |/ __| |/ / | / __| | ||
5 | +\__ \ | | (__| < _ | \__ \ | ||
6 | +|___/_|_|\___|_|\_(_)/ |___/ | ||
7 | + |__/ | ||
8 | + | ||
9 | + Version: 1.8.0 | ||
10 | + Author: Ken Wheeler | ||
11 | + Website: http://kenwheeler.github.io | ||
12 | + Docs: http://kenwheeler.github.io/slick | ||
13 | + Repo: http://github.com/kenwheeler/slick | ||
14 | + Issues: http://github.com/kenwheeler/slick/issues | ||
15 | + | ||
16 | + */ | ||
17 | +/* global window, document, define, jQuery, setInterval, clearInterval */ | ||
18 | +;(function(factory) { | ||
19 | + 'use strict'; | ||
20 | + if (typeof define === 'function' && define.amd) { | ||
21 | + define(['jquery'], factory); | ||
22 | + } else if (typeof exports !== 'undefined') { | ||
23 | + module.exports = factory(require('jquery')); | ||
24 | + } else { | ||
25 | + factory(jQuery); | ||
26 | + } | ||
27 | + | ||
28 | +}(function($) { | ||
29 | + 'use strict'; | ||
30 | + var Slick = window.Slick || {}; | ||
31 | + | ||
32 | + Slick = (function() { | ||
33 | + | ||
34 | + var instanceUid = 0; | ||
35 | + | ||
36 | + function Slick(element, settings) { | ||
37 | + | ||
38 | + var _ = this, dataSettings; | ||
39 | + | ||
40 | + _.defaults = { | ||
41 | + accessibility: true, | ||
42 | + adaptiveHeight: false, | ||
43 | + appendArrows: $(element), | ||
44 | + appendDots: $(element), | ||
45 | + arrows: true, | ||
46 | + asNavFor: null, | ||
47 | + prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>', | ||
48 | + nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>', | ||
49 | + autoplay: false, | ||
50 | + autoplaySpeed: 3000, | ||
51 | + centerMode: false, | ||
52 | + centerPadding: '50px', | ||
53 | + cssEase: 'ease', | ||
54 | + customPaging: function(slider, i) { | ||
55 | + return $('<button type="button" />').text(i + 1); | ||
56 | + }, | ||
57 | + dots: false, | ||
58 | + dotsClass: 'slick-dots', | ||
59 | + draggable: true, | ||
60 | + easing: 'linear', | ||
61 | + edgeFriction: 0.35, | ||
62 | + fade: false, | ||
63 | + focusOnSelect: false, | ||
64 | + focusOnChange: false, | ||
65 | + infinite: true, | ||
66 | + initialSlide: 0, | ||
67 | + lazyLoad: 'ondemand', | ||
68 | + mobileFirst: false, | ||
69 | + pauseOnHover: true, | ||
70 | + pauseOnFocus: true, | ||
71 | + pauseOnDotsHover: false, | ||
72 | + respondTo: 'window', | ||
73 | + responsive: null, | ||
74 | + rows: 1, | ||
75 | + rtl: false, | ||
76 | + slide: '', | ||
77 | + slidesPerRow: 1, | ||
78 | + slidesToShow: 1, | ||
79 | + slidesToScroll: 1, | ||
80 | + speed: 500, | ||
81 | + swipe: true, | ||
82 | + swipeToSlide: false, | ||
83 | + touchMove: true, | ||
84 | + touchThreshold: 5, | ||
85 | + useCSS: true, | ||
86 | + useTransform: true, | ||
87 | + variableWidth: false, | ||
88 | + vertical: false, | ||
89 | + verticalSwiping: false, | ||
90 | + waitForAnimate: true, | ||
91 | + zIndex: 1000 | ||
92 | + }; | ||
93 | + | ||
94 | + _.initials = { | ||
95 | + animating: false, | ||
96 | + dragging: false, | ||
97 | + autoPlayTimer: null, | ||
98 | + currentDirection: 0, | ||
99 | + currentLeft: null, | ||
100 | + currentSlide: 0, | ||
101 | + direction: 1, | ||
102 | + $dots: null, | ||
103 | + listWidth: null, | ||
104 | + listHeight: null, | ||
105 | + loadIndex: 0, | ||
106 | + $nextArrow: null, | ||
107 | + $prevArrow: null, | ||
108 | + scrolling: false, | ||
109 | + slideCount: null, | ||
110 | + slideWidth: null, | ||
111 | + $slideTrack: null, | ||
112 | + $slides: null, | ||
113 | + sliding: false, | ||
114 | + slideOffset: 0, | ||
115 | + swipeLeft: null, | ||
116 | + swiping: false, | ||
117 | + $list: null, | ||
118 | + touchObject: {}, | ||
119 | + transformsEnabled: false, | ||
120 | + unslicked: false | ||
121 | + }; | ||
122 | + | ||
123 | + $.extend(_, _.initials); | ||
124 | + | ||
125 | + _.activeBreakpoint = null; | ||
126 | + _.animType = null; | ||
127 | + _.animProp = null; | ||
128 | + _.breakpoints = []; | ||
129 | + _.breakpointSettings = []; | ||
130 | + _.cssTransitions = false; | ||
131 | + _.focussed = false; | ||
132 | + _.interrupted = false; | ||
133 | + _.hidden = 'hidden'; | ||
134 | + _.paused = true; | ||
135 | + _.positionProp = null; | ||
136 | + _.respondTo = null; | ||
137 | + _.rowCount = 1; | ||
138 | + _.shouldClick = true; | ||
139 | + _.$slider = $(element); | ||
140 | + _.$slidesCache = null; | ||
141 | + _.transformType = null; | ||
142 | + _.transitionType = null; | ||
143 | + _.visibilityChange = 'visibilitychange'; | ||
144 | + _.windowWidth = 0; | ||
145 | + _.windowTimer = null; | ||
146 | + | ||
147 | + dataSettings = $(element).data('slick') || {}; | ||
148 | + | ||
149 | + _.options = $.extend({}, _.defaults, settings, dataSettings); | ||
150 | + | ||
151 | + _.currentSlide = _.options.initialSlide; | ||
152 | + | ||
153 | + _.originalSettings = _.options; | ||
154 | + | ||
155 | + if (typeof document.mozHidden !== 'undefined') { | ||
156 | + _.hidden = 'mozHidden'; | ||
157 | + _.visibilityChange = 'mozvisibilitychange'; | ||
158 | + } else if (typeof document.webkitHidden !== 'undefined') { | ||
159 | + _.hidden = 'webkitHidden'; | ||
160 | + _.visibilityChange = 'webkitvisibilitychange'; | ||
161 | + } | ||
162 | + | ||
163 | + _.autoPlay = $.proxy(_.autoPlay, _); | ||
164 | + _.autoPlayClear = $.proxy(_.autoPlayClear, _); | ||
165 | + _.autoPlayIterator = $.proxy(_.autoPlayIterator, _); | ||
166 | + _.changeSlide = $.proxy(_.changeSlide, _); | ||
167 | + _.clickHandler = $.proxy(_.clickHandler, _); | ||
168 | + _.selectHandler = $.proxy(_.selectHandler, _); | ||
169 | + _.setPosition = $.proxy(_.setPosition, _); | ||
170 | + _.swipeHandler = $.proxy(_.swipeHandler, _); | ||
171 | + _.dragHandler = $.proxy(_.dragHandler, _); | ||
172 | + _.keyHandler = $.proxy(_.keyHandler, _); | ||
173 | + | ||
174 | + _.instanceUid = instanceUid++; | ||
175 | + | ||
176 | + // A simple way to check for HTML strings | ||
177 | + // Strict HTML recognition (must start with <) | ||
178 | + // Extracted from jQuery v1.11 source | ||
179 | + _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/; | ||
180 | + | ||
181 | + | ||
182 | + _.registerBreakpoints(); | ||
183 | + _.init(true); | ||
184 | + | ||
185 | + } | ||
186 | + | ||
187 | + return Slick; | ||
188 | + | ||
189 | + }()); | ||
190 | + | ||
191 | + Slick.prototype.activateADA = function() { | ||
192 | + var _ = this; | ||
193 | + | ||
194 | + _.$slideTrack.find('.slick-active').attr({ | ||
195 | + 'aria-hidden': 'false' | ||
196 | + }).find('a, input, button, select').attr({ | ||
197 | + 'tabindex': '0' | ||
198 | + }); | ||
199 | + | ||
200 | + }; | ||
201 | + | ||
202 | + Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) { | ||
203 | + | ||
204 | + var _ = this; | ||
205 | + | ||
206 | + if (typeof(index) === 'boolean') { | ||
207 | + addBefore = index; | ||
208 | + index = null; | ||
209 | + } else if (index < 0 || (index >= _.slideCount)) { | ||
210 | + return false; | ||
211 | + } | ||
212 | + | ||
213 | + _.unload(); | ||
214 | + | ||
215 | + if (typeof(index) === 'number') { | ||
216 | + if (index === 0 && _.$slides.length === 0) { | ||
217 | + $(markup).appendTo(_.$slideTrack); | ||
218 | + } else if (addBefore) { | ||
219 | + $(markup).insertBefore(_.$slides.eq(index)); | ||
220 | + } else { | ||
221 | + $(markup).insertAfter(_.$slides.eq(index)); | ||
222 | + } | ||
223 | + } else { | ||
224 | + if (addBefore === true) { | ||
225 | + $(markup).prependTo(_.$slideTrack); | ||
226 | + } else { | ||
227 | + $(markup).appendTo(_.$slideTrack); | ||
228 | + } | ||
229 | + } | ||
230 | + | ||
231 | + _.$slides = _.$slideTrack.children(this.options.slide); | ||
232 | + | ||
233 | + _.$slideTrack.children(this.options.slide).detach(); | ||
234 | + | ||
235 | + _.$slideTrack.append(_.$slides); | ||
236 | + | ||
237 | + _.$slides.each(function(index, element) { | ||
238 | + $(element).attr('data-slick-index', index); | ||
239 | + }); | ||
240 | + | ||
241 | + _.$slidesCache = _.$slides; | ||
242 | + | ||
243 | + _.reinit(); | ||
244 | + | ||
245 | + }; | ||
246 | + | ||
247 | + Slick.prototype.animateHeight = function() { | ||
248 | + var _ = this; | ||
249 | + if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) { | ||
250 | + var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true); | ||
251 | + _.$list.animate({ | ||
252 | + height: targetHeight | ||
253 | + }, _.options.speed); | ||
254 | + } | ||
255 | + }; | ||
256 | + | ||
257 | + Slick.prototype.animateSlide = function(targetLeft, callback) { | ||
258 | + | ||
259 | + var animProps = {}, | ||
260 | + _ = this; | ||
261 | + | ||
262 | + _.animateHeight(); | ||
263 | + | ||
264 | + if (_.options.rtl === true && _.options.vertical === false) { | ||
265 | + targetLeft = -targetLeft; | ||
266 | + } | ||
267 | + if (_.transformsEnabled === false) { | ||
268 | + if (_.options.vertical === false) { | ||
269 | + _.$slideTrack.animate({ | ||
270 | + left: targetLeft | ||
271 | + }, _.options.speed, _.options.easing, callback); | ||
272 | + } else { | ||
273 | + _.$slideTrack.animate({ | ||
274 | + top: targetLeft | ||
275 | + }, _.options.speed, _.options.easing, callback); | ||
276 | + } | ||
277 | + | ||
278 | + } else { | ||
279 | + | ||
280 | + if (_.cssTransitions === false) { | ||
281 | + if (_.options.rtl === true) { | ||
282 | + _.currentLeft = -(_.currentLeft); | ||
283 | + } | ||
284 | + $({ | ||
285 | + animStart: _.currentLeft | ||
286 | + }).animate({ | ||
287 | + animStart: targetLeft | ||
288 | + }, { | ||
289 | + duration: _.options.speed, | ||
290 | + easing: _.options.easing, | ||
291 | + step: function(now) { | ||
292 | + now = Math.ceil(now); | ||
293 | + if (_.options.vertical === false) { | ||
294 | + animProps[_.animType] = 'translate(' + | ||
295 | + now + 'px, 0px)'; | ||
296 | + _.$slideTrack.css(animProps); | ||
297 | + } else { | ||
298 | + animProps[_.animType] = 'translate(0px,' + | ||
299 | + now + 'px)'; | ||
300 | + _.$slideTrack.css(animProps); | ||
301 | + } | ||
302 | + }, | ||
303 | + complete: function() { | ||
304 | + if (callback) { | ||
305 | + callback.call(); | ||
306 | + } | ||
307 | + } | ||
308 | + }); | ||
309 | + | ||
310 | + } else { | ||
311 | + | ||
312 | + _.applyTransition(); | ||
313 | + targetLeft = Math.ceil(targetLeft); | ||
314 | + | ||
315 | + if (_.options.vertical === false) { | ||
316 | + animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)'; | ||
317 | + } else { | ||
318 | + animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)'; | ||
319 | + } | ||
320 | + _.$slideTrack.css(animProps); | ||
321 | + | ||
322 | + if (callback) { | ||
323 | + setTimeout(function() { | ||
324 | + | ||
325 | + _.disableTransition(); | ||
326 | + | ||
327 | + callback.call(); | ||
328 | + }, _.options.speed); | ||
329 | + } | ||
330 | + | ||
331 | + } | ||
332 | + | ||
333 | + } | ||
334 | + | ||
335 | + }; | ||
336 | + | ||
337 | + Slick.prototype.getNavTarget = function() { | ||
338 | + | ||
339 | + var _ = this, | ||
340 | + asNavFor = _.options.asNavFor; | ||
341 | + | ||
342 | + if ( asNavFor && asNavFor !== null ) { | ||
343 | + asNavFor = $(asNavFor).not(_.$slider); | ||
344 | + } | ||
345 | + | ||
346 | + return asNavFor; | ||
347 | + | ||
348 | + }; | ||
349 | + | ||
350 | + Slick.prototype.asNavFor = function(index) { | ||
351 | + | ||
352 | + var _ = this, | ||
353 | + asNavFor = _.getNavTarget(); | ||
354 | + | ||
355 | + if ( asNavFor !== null && typeof asNavFor === 'object' ) { | ||
356 | + asNavFor.each(function() { | ||
357 | + var target = $(this).slick('getSlick'); | ||
358 | + if(!target.unslicked) { | ||
359 | + target.slideHandler(index, true); | ||
360 | + } | ||
361 | + }); | ||
362 | + } | ||
363 | + | ||
364 | + }; | ||
365 | + | ||
366 | + Slick.prototype.applyTransition = function(slide) { | ||
367 | + | ||
368 | + var _ = this, | ||
369 | + transition = {}; | ||
370 | + | ||
371 | + if (_.options.fade === false) { | ||
372 | + transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase; | ||
373 | + } else { | ||
374 | + transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase; | ||
375 | + } | ||
376 | + | ||
377 | + if (_.options.fade === false) { | ||
378 | + _.$slideTrack.css(transition); | ||
379 | + } else { | ||
380 | + _.$slides.eq(slide).css(transition); | ||
381 | + } | ||
382 | + | ||
383 | + }; | ||
384 | + | ||
385 | + Slick.prototype.autoPlay = function() { | ||
386 | + | ||
387 | + var _ = this; | ||
388 | + | ||
389 | + _.autoPlayClear(); | ||
390 | + | ||
391 | + if ( _.slideCount > _.options.slidesToShow ) { | ||
392 | + _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed ); | ||
393 | + } | ||
394 | + | ||
395 | + }; | ||
396 | + | ||
397 | + Slick.prototype.autoPlayClear = function() { | ||
398 | + | ||
399 | + var _ = this; | ||
400 | + | ||
401 | + if (_.autoPlayTimer) { | ||
402 | + clearInterval(_.autoPlayTimer); | ||
403 | + } | ||
404 | + | ||
405 | + }; | ||
406 | + | ||
407 | + Slick.prototype.autoPlayIterator = function() { | ||
408 | + | ||
409 | + var _ = this, | ||
410 | + slideTo = _.currentSlide + _.options.slidesToScroll; | ||
411 | + | ||
412 | + if ( !_.paused && !_.interrupted && !_.focussed ) { | ||
413 | + | ||
414 | + if ( _.options.infinite === false ) { | ||
415 | + | ||
416 | + if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) { | ||
417 | + _.direction = 0; | ||
418 | + } | ||
419 | + | ||
420 | + else if ( _.direction === 0 ) { | ||
421 | + | ||
422 | + slideTo = _.currentSlide - _.options.slidesToScroll; | ||
423 | + | ||
424 | + if ( _.currentSlide - 1 === 0 ) { | ||
425 | + _.direction = 1; | ||
426 | + } | ||
427 | + | ||
428 | + } | ||
429 | + | ||
430 | + } | ||
431 | + | ||
432 | + _.slideHandler( slideTo ); | ||
433 | + | ||
434 | + } | ||
435 | + | ||
436 | + }; | ||
437 | + | ||
438 | + Slick.prototype.buildArrows = function() { | ||
439 | + | ||
440 | + var _ = this; | ||
441 | + | ||
442 | + if (_.options.arrows === true ) { | ||
443 | + | ||
444 | + _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow'); | ||
445 | + _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow'); | ||
446 | + | ||
447 | + if( _.slideCount > _.options.slidesToShow ) { | ||
448 | + | ||
449 | + _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex'); | ||
450 | + _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex'); | ||
451 | + | ||
452 | + if (_.htmlExpr.test(_.options.prevArrow)) { | ||
453 | + _.$prevArrow.prependTo(_.options.appendArrows); | ||
454 | + } | ||
455 | + | ||
456 | + if (_.htmlExpr.test(_.options.nextArrow)) { | ||
457 | + _.$nextArrow.appendTo(_.options.appendArrows); | ||
458 | + } | ||
459 | + | ||
460 | + if (_.options.infinite !== true) { | ||
461 | + _.$prevArrow | ||
462 | + .addClass('slick-disabled') | ||
463 | + .attr('aria-disabled', 'true'); | ||
464 | + } | ||
465 | + | ||
466 | + } else { | ||
467 | + | ||
468 | + _.$prevArrow.add( _.$nextArrow ) | ||
469 | + | ||
470 | + .addClass('slick-hidden') | ||
471 | + .attr({ | ||
472 | + 'aria-disabled': 'true', | ||
473 | + 'tabindex': '-1' | ||
474 | + }); | ||
475 | + | ||
476 | + } | ||
477 | + | ||
478 | + } | ||
479 | + | ||
480 | + }; | ||
481 | + | ||
482 | + Slick.prototype.buildDots = function() { | ||
483 | + | ||
484 | + var _ = this, | ||
485 | + i, dot; | ||
486 | + | ||
487 | + if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { | ||
488 | + | ||
489 | + _.$slider.addClass('slick-dotted'); | ||
490 | + | ||
491 | + dot = $('<ul />').addClass(_.options.dotsClass); | ||
492 | + | ||
493 | + for (i = 0; i <= _.getDotCount(); i += 1) { | ||
494 | + dot.append($('<li />').append(_.options.customPaging.call(this, _, i))); | ||
495 | + } | ||
496 | + | ||
497 | + _.$dots = dot.appendTo(_.options.appendDots); | ||
498 | + | ||
499 | + _.$dots.find('li').first().addClass('slick-active'); | ||
500 | + | ||
501 | + } | ||
502 | + | ||
503 | + }; | ||
504 | + | ||
505 | + Slick.prototype.buildOut = function() { | ||
506 | + | ||
507 | + var _ = this; | ||
508 | + | ||
509 | + _.$slides = | ||
510 | + _.$slider | ||
511 | + .children( _.options.slide + ':not(.slick-cloned)') | ||
512 | + .addClass('slick-slide'); | ||
513 | + | ||
514 | + _.slideCount = _.$slides.length; | ||
515 | + | ||
516 | + _.$slides.each(function(index, element) { | ||
517 | + $(element) | ||
518 | + .attr('data-slick-index', index) | ||
519 | + .data('originalStyling', $(element).attr('style') || ''); | ||
520 | + }); | ||
521 | + | ||
522 | + _.$slider.addClass('slick-slider'); | ||
523 | + | ||
524 | + _.$slideTrack = (_.slideCount === 0) ? | ||
525 | + $('<div class="slick-track"/>').appendTo(_.$slider) : | ||
526 | + _.$slides.wrapAll('<div class="slick-track"/>').parent(); | ||
527 | + | ||
528 | + _.$list = _.$slideTrack.wrap( | ||
529 | + '<div class="slick-list"/>').parent(); | ||
530 | + _.$slideTrack.css('opacity', 0); | ||
531 | + | ||
532 | + if (_.options.centerMode === true || _.options.swipeToSlide === true) { | ||
533 | + _.options.slidesToScroll = 1; | ||
534 | + } | ||
535 | + | ||
536 | + $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading'); | ||
537 | + | ||
538 | + _.setupInfinite(); | ||
539 | + | ||
540 | + _.buildArrows(); | ||
541 | + | ||
542 | + _.buildDots(); | ||
543 | + | ||
544 | + _.updateDots(); | ||
545 | + | ||
546 | + | ||
547 | + _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0); | ||
548 | + | ||
549 | + if (_.options.draggable === true) { | ||
550 | + _.$list.addClass('draggable'); | ||
551 | + } | ||
552 | + | ||
553 | + }; | ||
554 | + | ||
555 | + Slick.prototype.buildRows = function() { | ||
556 | + | ||
557 | + var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection; | ||
558 | + | ||
559 | + newSlides = document.createDocumentFragment(); | ||
560 | + originalSlides = _.$slider.children(); | ||
561 | + | ||
562 | + if(_.options.rows > 0) { | ||
563 | + | ||
564 | + slidesPerSection = _.options.slidesPerRow * _.options.rows; | ||
565 | + numOfSlides = Math.ceil( | ||
566 | + originalSlides.length / slidesPerSection | ||
567 | + ); | ||
568 | + | ||
569 | + for(a = 0; a < numOfSlides; a++){ | ||
570 | + var slide = document.createElement('div'); | ||
571 | + for(b = 0; b < _.options.rows; b++) { | ||
572 | + var row = document.createElement('div'); | ||
573 | + for(c = 0; c < _.options.slidesPerRow; c++) { | ||
574 | + var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c)); | ||
575 | + if (originalSlides.get(target)) { | ||
576 | + row.appendChild(originalSlides.get(target)); | ||
577 | + } | ||
578 | + } | ||
579 | + slide.appendChild(row); | ||
580 | + } | ||
581 | + newSlides.appendChild(slide); | ||
582 | + } | ||
583 | + | ||
584 | + _.$slider.empty().append(newSlides); | ||
585 | + _.$slider.children().children().children() | ||
586 | + .css({ | ||
587 | + 'width':(100 / _.options.slidesPerRow) + '%', | ||
588 | + 'display': 'inline-block' | ||
589 | + }); | ||
590 | + | ||
591 | + } | ||
592 | + | ||
593 | + }; | ||
594 | + | ||
595 | + Slick.prototype.checkResponsive = function(initial, forceUpdate) { | ||
596 | + | ||
597 | + var _ = this, | ||
598 | + breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false; | ||
599 | + var sliderWidth = _.$slider.width(); | ||
600 | + var windowWidth = window.innerWidth || $(window).width(); | ||
601 | + | ||
602 | + if (_.respondTo === 'window') { | ||
603 | + respondToWidth = windowWidth; | ||
604 | + } else if (_.respondTo === 'slider') { | ||
605 | + respondToWidth = sliderWidth; | ||
606 | + } else if (_.respondTo === 'min') { | ||
607 | + respondToWidth = Math.min(windowWidth, sliderWidth); | ||
608 | + } | ||
609 | + | ||
610 | + if ( _.options.responsive && | ||
611 | + _.options.responsive.length && | ||
612 | + _.options.responsive !== null) { | ||
613 | + | ||
614 | + targetBreakpoint = null; | ||
615 | + | ||
616 | + for (breakpoint in _.breakpoints) { | ||
617 | + if (_.breakpoints.hasOwnProperty(breakpoint)) { | ||
618 | + if (_.originalSettings.mobileFirst === false) { | ||
619 | + if (respondToWidth < _.breakpoints[breakpoint]) { | ||
620 | + targetBreakpoint = _.breakpoints[breakpoint]; | ||
621 | + } | ||
622 | + } else { | ||
623 | + if (respondToWidth > _.breakpoints[breakpoint]) { | ||
624 | + targetBreakpoint = _.breakpoints[breakpoint]; | ||
625 | + } | ||
626 | + } | ||
627 | + } | ||
628 | + } | ||
629 | + | ||
630 | + if (targetBreakpoint !== null) { | ||
631 | + if (_.activeBreakpoint !== null) { | ||
632 | + if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) { | ||
633 | + _.activeBreakpoint = | ||
634 | + targetBreakpoint; | ||
635 | + if (_.breakpointSettings[targetBreakpoint] === 'unslick') { | ||
636 | + _.unslick(targetBreakpoint); | ||
637 | + } else { | ||
638 | + _.options = $.extend({}, _.originalSettings, | ||
639 | + _.breakpointSettings[ | ||
640 | + targetBreakpoint]); | ||
641 | + if (initial === true) { | ||
642 | + _.currentSlide = _.options.initialSlide; | ||
643 | + } | ||
644 | + _.refresh(initial); | ||
645 | + } | ||
646 | + triggerBreakpoint = targetBreakpoint; | ||
647 | + } | ||
648 | + } else { | ||
649 | + _.activeBreakpoint = targetBreakpoint; | ||
650 | + if (_.breakpointSettings[targetBreakpoint] === 'unslick') { | ||
651 | + _.unslick(targetBreakpoint); | ||
652 | + } else { | ||
653 | + _.options = $.extend({}, _.originalSettings, | ||
654 | + _.breakpointSettings[ | ||
655 | + targetBreakpoint]); | ||
656 | + if (initial === true) { | ||
657 | + _.currentSlide = _.options.initialSlide; | ||
658 | + } | ||
659 | + _.refresh(initial); | ||
660 | + } | ||
661 | + triggerBreakpoint = targetBreakpoint; | ||
662 | + } | ||
663 | + } else { | ||
664 | + if (_.activeBreakpoint !== null) { | ||
665 | + _.activeBreakpoint = null; | ||
666 | + _.options = _.originalSettings; | ||
667 | + if (initial === true) { | ||
668 | + _.currentSlide = _.options.initialSlide; | ||
669 | + } | ||
670 | + _.refresh(initial); | ||
671 | + triggerBreakpoint = targetBreakpoint; | ||
672 | + } | ||
673 | + } | ||
674 | + | ||
675 | + // only trigger breakpoints during an actual break. not on initialize. | ||
676 | + if( !initial && triggerBreakpoint !== false ) { | ||
677 | + _.$slider.trigger('breakpoint', [_, triggerBreakpoint]); | ||
678 | + } | ||
679 | + } | ||
680 | + | ||
681 | + }; | ||
682 | + | ||
683 | + Slick.prototype.changeSlide = function(event, dontAnimate) { | ||
684 | + | ||
685 | + var _ = this, | ||
686 | + $target = $(event.currentTarget), | ||
687 | + indexOffset, slideOffset, unevenOffset; | ||
688 | + | ||
689 | + // If target is a link, prevent default action. | ||
690 | + if($target.is('a')) { | ||
691 | + event.preventDefault(); | ||
692 | + } | ||
693 | + | ||
694 | + // If target is not the <li> element (ie: a child), find the <li>. | ||
695 | + if(!$target.is('li')) { | ||
696 | + $target = $target.closest('li'); | ||
697 | + } | ||
698 | + | ||
699 | + unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0); | ||
700 | + indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll; | ||
701 | + | ||
702 | + switch (event.data.message) { | ||
703 | + | ||
704 | + case 'previous': | ||
705 | + slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset; | ||
706 | + if (_.slideCount > _.options.slidesToShow) { | ||
707 | + _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate); | ||
708 | + } | ||
709 | + break; | ||
710 | + | ||
711 | + case 'next': | ||
712 | + slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset; | ||
713 | + if (_.slideCount > _.options.slidesToShow) { | ||
714 | + _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate); | ||
715 | + } | ||
716 | + break; | ||
717 | + | ||
718 | + case 'index': | ||
719 | + var index = event.data.index === 0 ? 0 : | ||
720 | + event.data.index || $target.index() * _.options.slidesToScroll; | ||
721 | + | ||
722 | + _.slideHandler(_.checkNavigable(index), false, dontAnimate); | ||
723 | + $target.children().trigger('focus'); | ||
724 | + break; | ||
725 | + | ||
726 | + default: | ||
727 | + return; | ||
728 | + } | ||
729 | + | ||
730 | + }; | ||
731 | + | ||
732 | + Slick.prototype.checkNavigable = function(index) { | ||
733 | + | ||
734 | + var _ = this, | ||
735 | + navigables, prevNavigable; | ||
736 | + | ||
737 | + navigables = _.getNavigableIndexes(); | ||
738 | + prevNavigable = 0; | ||
739 | + if (index > navigables[navigables.length - 1]) { | ||
740 | + index = navigables[navigables.length - 1]; | ||
741 | + } else { | ||
742 | + for (var n in navigables) { | ||
743 | + if (index < navigables[n]) { | ||
744 | + index = prevNavigable; | ||
745 | + break; | ||
746 | + } | ||
747 | + prevNavigable = navigables[n]; | ||
748 | + } | ||
749 | + } | ||
750 | + | ||
751 | + return index; | ||
752 | + }; | ||
753 | + | ||
754 | + Slick.prototype.cleanUpEvents = function() { | ||
755 | + | ||
756 | + var _ = this; | ||
757 | + | ||
758 | + if (_.options.dots && _.$dots !== null) { | ||
759 | + | ||
760 | + $('li', _.$dots) | ||
761 | + .off('click.slick', _.changeSlide) | ||
762 | + .off('mouseenter.slick', $.proxy(_.interrupt, _, true)) | ||
763 | + .off('mouseleave.slick', $.proxy(_.interrupt, _, false)); | ||
764 | + | ||
765 | + if (_.options.accessibility === true) { | ||
766 | + _.$dots.off('keydown.slick', _.keyHandler); | ||
767 | + } | ||
768 | + } | ||
769 | + | ||
770 | + _.$slider.off('focus.slick blur.slick'); | ||
771 | + | ||
772 | + if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { | ||
773 | + _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide); | ||
774 | + _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide); | ||
775 | + | ||
776 | + if (_.options.accessibility === true) { | ||
777 | + _.$prevArrow && _.$prevArrow.off('keydown.slick', _.keyHandler); | ||
778 | + _.$nextArrow && _.$nextArrow.off('keydown.slick', _.keyHandler); | ||
779 | + } | ||
780 | + } | ||
781 | + | ||
782 | + _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler); | ||
783 | + _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler); | ||
784 | + _.$list.off('touchend.slick mouseup.slick', _.swipeHandler); | ||
785 | + _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler); | ||
786 | + | ||
787 | + _.$list.off('click.slick', _.clickHandler); | ||
788 | + | ||
789 | + $(document).off(_.visibilityChange, _.visibility); | ||
790 | + | ||
791 | + _.cleanUpSlideEvents(); | ||
792 | + | ||
793 | + if (_.options.accessibility === true) { | ||
794 | + _.$list.off('keydown.slick', _.keyHandler); | ||
795 | + } | ||
796 | + | ||
797 | + if (_.options.focusOnSelect === true) { | ||
798 | + $(_.$slideTrack).children().off('click.slick', _.selectHandler); | ||
799 | + } | ||
800 | + | ||
801 | + $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange); | ||
802 | + | ||
803 | + $(window).off('resize.slick.slick-' + _.instanceUid, _.resize); | ||
804 | + | ||
805 | + $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault); | ||
806 | + | ||
807 | + $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition); | ||
808 | + | ||
809 | + }; | ||
810 | + | ||
811 | + Slick.prototype.cleanUpSlideEvents = function() { | ||
812 | + | ||
813 | + var _ = this; | ||
814 | + | ||
815 | + _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true)); | ||
816 | + _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false)); | ||
817 | + | ||
818 | + }; | ||
819 | + | ||
820 | + Slick.prototype.cleanUpRows = function() { | ||
821 | + | ||
822 | + var _ = this, originalSlides; | ||
823 | + | ||
824 | + if(_.options.rows > 0) { | ||
825 | + originalSlides = _.$slides.children().children(); | ||
826 | + originalSlides.removeAttr('style'); | ||
827 | + _.$slider.empty().append(originalSlides); | ||
828 | + } | ||
829 | + | ||
830 | + }; | ||
831 | + | ||
832 | + Slick.prototype.clickHandler = function(event) { | ||
833 | + | ||
834 | + var _ = this; | ||
835 | + | ||
836 | + if (_.shouldClick === false) { | ||
837 | + event.stopImmediatePropagation(); | ||
838 | + event.stopPropagation(); | ||
839 | + event.preventDefault(); | ||
840 | + } | ||
841 | + | ||
842 | + }; | ||
843 | + | ||
844 | + Slick.prototype.destroy = function(refresh) { | ||
845 | + | ||
846 | + var _ = this; | ||
847 | + | ||
848 | + _.autoPlayClear(); | ||
849 | + | ||
850 | + _.touchObject = {}; | ||
851 | + | ||
852 | + _.cleanUpEvents(); | ||
853 | + | ||
854 | + $('.slick-cloned', _.$slider).detach(); | ||
855 | + | ||
856 | + if (_.$dots) { | ||
857 | + _.$dots.remove(); | ||
858 | + } | ||
859 | + | ||
860 | + if ( _.$prevArrow && _.$prevArrow.length ) { | ||
861 | + | ||
862 | + _.$prevArrow | ||
863 | + .removeClass('slick-disabled slick-arrow slick-hidden') | ||
864 | + .removeAttr('aria-hidden aria-disabled tabindex') | ||
865 | + .css('display',''); | ||
866 | + | ||
867 | + if ( _.htmlExpr.test( _.options.prevArrow )) { | ||
868 | + _.$prevArrow.remove(); | ||
869 | + } | ||
870 | + } | ||
871 | + | ||
872 | + if ( _.$nextArrow && _.$nextArrow.length ) { | ||
873 | + | ||
874 | + _.$nextArrow | ||
875 | + .removeClass('slick-disabled slick-arrow slick-hidden') | ||
876 | + .removeAttr('aria-hidden aria-disabled tabindex') | ||
877 | + .css('display',''); | ||
878 | + | ||
879 | + if ( _.htmlExpr.test( _.options.nextArrow )) { | ||
880 | + _.$nextArrow.remove(); | ||
881 | + } | ||
882 | + } | ||
883 | + | ||
884 | + | ||
885 | + if (_.$slides) { | ||
886 | + | ||
887 | + _.$slides | ||
888 | + .removeClass('slick-slide slick-active slick-center slick-visible slick-current') | ||
889 | + .removeAttr('aria-hidden') | ||
890 | + .removeAttr('data-slick-index') | ||
891 | + .each(function(){ | ||
892 | + $(this).attr('style', $(this).data('originalStyling')); | ||
893 | + }); | ||
894 | + | ||
895 | + _.$slideTrack.children(this.options.slide).detach(); | ||
896 | + | ||
897 | + _.$slideTrack.detach(); | ||
898 | + | ||
899 | + _.$list.detach(); | ||
900 | + | ||
901 | + _.$slider.append(_.$slides); | ||
902 | + } | ||
903 | + | ||
904 | + _.cleanUpRows(); | ||
905 | + | ||
906 | + _.$slider.removeClass('slick-slider'); | ||
907 | + _.$slider.removeClass('slick-initialized'); | ||
908 | + _.$slider.removeClass('slick-dotted'); | ||
909 | + | ||
910 | + _.unslicked = true; | ||
911 | + | ||
912 | + if(!refresh) { | ||
913 | + _.$slider.trigger('destroy', [_]); | ||
914 | + } | ||
915 | + | ||
916 | + }; | ||
917 | + | ||
918 | + Slick.prototype.disableTransition = function(slide) { | ||
919 | + | ||
920 | + var _ = this, | ||
921 | + transition = {}; | ||
922 | + | ||
923 | + transition[_.transitionType] = ''; | ||
924 | + | ||
925 | + if (_.options.fade === false) { | ||
926 | + _.$slideTrack.css(transition); | ||
927 | + } else { | ||
928 | + _.$slides.eq(slide).css(transition); | ||
929 | + } | ||
930 | + | ||
931 | + }; | ||
932 | + | ||
933 | + Slick.prototype.fadeSlide = function(slideIndex, callback) { | ||
934 | + | ||
935 | + var _ = this; | ||
936 | + | ||
937 | + if (_.cssTransitions === false) { | ||
938 | + | ||
939 | + _.$slides.eq(slideIndex).css({ | ||
940 | + zIndex: _.options.zIndex | ||
941 | + }); | ||
942 | + | ||
943 | + _.$slides.eq(slideIndex).animate({ | ||
944 | + opacity: 1 | ||
945 | + }, _.options.speed, _.options.easing, callback); | ||
946 | + | ||
947 | + } else { | ||
948 | + | ||
949 | + _.applyTransition(slideIndex); | ||
950 | + | ||
951 | + _.$slides.eq(slideIndex).css({ | ||
952 | + opacity: 1, | ||
953 | + zIndex: _.options.zIndex | ||
954 | + }); | ||
955 | + | ||
956 | + if (callback) { | ||
957 | + setTimeout(function() { | ||
958 | + | ||
959 | + _.disableTransition(slideIndex); | ||
960 | + | ||
961 | + callback.call(); | ||
962 | + }, _.options.speed); | ||
963 | + } | ||
964 | + | ||
965 | + } | ||
966 | + | ||
967 | + }; | ||
968 | + | ||
969 | + Slick.prototype.fadeSlideOut = function(slideIndex) { | ||
970 | + | ||
971 | + var _ = this; | ||
972 | + | ||
973 | + if (_.cssTransitions === false) { | ||
974 | + | ||
975 | + _.$slides.eq(slideIndex).animate({ | ||
976 | + opacity: 0, | ||
977 | + zIndex: _.options.zIndex - 2 | ||
978 | + }, _.options.speed, _.options.easing); | ||
979 | + | ||
980 | + } else { | ||
981 | + | ||
982 | + _.applyTransition(slideIndex); | ||
983 | + | ||
984 | + _.$slides.eq(slideIndex).css({ | ||
985 | + opacity: 0, | ||
986 | + zIndex: _.options.zIndex - 2 | ||
987 | + }); | ||
988 | + | ||
989 | + } | ||
990 | + | ||
991 | + }; | ||
992 | + | ||
993 | + Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) { | ||
994 | + | ||
995 | + var _ = this; | ||
996 | + | ||
997 | + if (filter !== null) { | ||
998 | + | ||
999 | + _.$slidesCache = _.$slides; | ||
1000 | + | ||
1001 | + _.unload(); | ||
1002 | + | ||
1003 | + _.$slideTrack.children(this.options.slide).detach(); | ||
1004 | + | ||
1005 | + _.$slidesCache.filter(filter).appendTo(_.$slideTrack); | ||
1006 | + | ||
1007 | + _.reinit(); | ||
1008 | + | ||
1009 | + } | ||
1010 | + | ||
1011 | + }; | ||
1012 | + | ||
1013 | + Slick.prototype.focusHandler = function() { | ||
1014 | + | ||
1015 | + var _ = this; | ||
1016 | + | ||
1017 | + _.$slider | ||
1018 | + .off('focus.slick blur.slick') | ||
1019 | + .on('focus.slick blur.slick', '*', function(event) { | ||
1020 | + | ||
1021 | + event.stopImmediatePropagation(); | ||
1022 | + var $sf = $(this); | ||
1023 | + | ||
1024 | + setTimeout(function() { | ||
1025 | + | ||
1026 | + if( _.options.pauseOnFocus ) { | ||
1027 | + _.focussed = $sf.is(':focus'); | ||
1028 | + _.autoPlay(); | ||
1029 | + } | ||
1030 | + | ||
1031 | + }, 0); | ||
1032 | + | ||
1033 | + }); | ||
1034 | + }; | ||
1035 | + | ||
1036 | + Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() { | ||
1037 | + | ||
1038 | + var _ = this; | ||
1039 | + return _.currentSlide; | ||
1040 | + | ||
1041 | + }; | ||
1042 | + | ||
1043 | + Slick.prototype.getDotCount = function() { | ||
1044 | + | ||
1045 | + var _ = this; | ||
1046 | + | ||
1047 | + var breakPoint = 0; | ||
1048 | + var counter = 0; | ||
1049 | + var pagerQty = 0; | ||
1050 | + | ||
1051 | + if (_.options.infinite === true) { | ||
1052 | + if (_.slideCount <= _.options.slidesToShow) { | ||
1053 | + ++pagerQty; | ||
1054 | + } else { | ||
1055 | + while (breakPoint < _.slideCount) { | ||
1056 | + ++pagerQty; | ||
1057 | + breakPoint = counter + _.options.slidesToScroll; | ||
1058 | + counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; | ||
1059 | + } | ||
1060 | + } | ||
1061 | + } else if (_.options.centerMode === true) { | ||
1062 | + pagerQty = _.slideCount; | ||
1063 | + } else if(!_.options.asNavFor) { | ||
1064 | + pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll); | ||
1065 | + }else { | ||
1066 | + while (breakPoint < _.slideCount) { | ||
1067 | + ++pagerQty; | ||
1068 | + breakPoint = counter + _.options.slidesToScroll; | ||
1069 | + counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; | ||
1070 | + } | ||
1071 | + } | ||
1072 | + | ||
1073 | + return pagerQty - 1; | ||
1074 | + | ||
1075 | + }; | ||
1076 | + | ||
1077 | + Slick.prototype.getLeft = function(slideIndex) { | ||
1078 | + | ||
1079 | + var _ = this, | ||
1080 | + targetLeft, | ||
1081 | + verticalHeight, | ||
1082 | + verticalOffset = 0, | ||
1083 | + targetSlide, | ||
1084 | + coef; | ||
1085 | + | ||
1086 | + _.slideOffset = 0; | ||
1087 | + verticalHeight = _.$slides.first().outerHeight(true); | ||
1088 | + | ||
1089 | + if (_.options.infinite === true) { | ||
1090 | + if (_.slideCount > _.options.slidesToShow) { | ||
1091 | + _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1; | ||
1092 | + coef = -1 | ||
1093 | + | ||
1094 | + if (_.options.vertical === true && _.options.centerMode === true) { | ||
1095 | + if (_.options.slidesToShow === 2) { | ||
1096 | + coef = -1.5; | ||
1097 | + } else if (_.options.slidesToShow === 1) { | ||
1098 | + coef = -2 | ||
1099 | + } | ||
1100 | + } | ||
1101 | + verticalOffset = (verticalHeight * _.options.slidesToShow) * coef; | ||
1102 | + } | ||
1103 | + if (_.slideCount % _.options.slidesToScroll !== 0) { | ||
1104 | + if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) { | ||
1105 | + if (slideIndex > _.slideCount) { | ||
1106 | + _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1; | ||
1107 | + verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1; | ||
1108 | + } else { | ||
1109 | + _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1; | ||
1110 | + verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1; | ||
1111 | + } | ||
1112 | + } | ||
1113 | + } | ||
1114 | + } else { | ||
1115 | + if (slideIndex + _.options.slidesToShow > _.slideCount) { | ||
1116 | + _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth; | ||
1117 | + verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight; | ||
1118 | + } | ||
1119 | + } | ||
1120 | + | ||
1121 | + if (_.slideCount <= _.options.slidesToShow) { | ||
1122 | + _.slideOffset = 0; | ||
1123 | + verticalOffset = 0; | ||
1124 | + } | ||
1125 | + | ||
1126 | + if (_.options.centerMode === true && _.slideCount <= _.options.slidesToShow) { | ||
1127 | + _.slideOffset = ((_.slideWidth * Math.floor(_.options.slidesToShow)) / 2) - ((_.slideWidth * _.slideCount) / 2); | ||
1128 | + } else if (_.options.centerMode === true && _.options.infinite === true) { | ||
1129 | + _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth; | ||
1130 | + } else if (_.options.centerMode === true) { | ||
1131 | + _.slideOffset = 0; | ||
1132 | + _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2); | ||
1133 | + } | ||
1134 | + | ||
1135 | + if (_.options.vertical === false) { | ||
1136 | + targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset; | ||
1137 | + } else { | ||
1138 | + targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset; | ||
1139 | + } | ||
1140 | + | ||
1141 | + if (_.options.variableWidth === true) { | ||
1142 | + | ||
1143 | + if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) { | ||
1144 | + targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex); | ||
1145 | + } else { | ||
1146 | + targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow); | ||
1147 | + } | ||
1148 | + | ||
1149 | + if (_.options.rtl === true) { | ||
1150 | + if (targetSlide[0]) { | ||
1151 | + targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1; | ||
1152 | + } else { | ||
1153 | + targetLeft = 0; | ||
1154 | + } | ||
1155 | + } else { | ||
1156 | + targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0; | ||
1157 | + } | ||
1158 | + | ||
1159 | + if (_.options.centerMode === true) { | ||
1160 | + if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) { | ||
1161 | + targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex); | ||
1162 | + } else { | ||
1163 | + targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1); | ||
1164 | + } | ||
1165 | + | ||
1166 | + if (_.options.rtl === true) { | ||
1167 | + if (targetSlide[0]) { | ||
1168 | + targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1; | ||
1169 | + } else { | ||
1170 | + targetLeft = 0; | ||
1171 | + } | ||
1172 | + } else { | ||
1173 | + targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0; | ||
1174 | + } | ||
1175 | + | ||
1176 | + targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2; | ||
1177 | + } | ||
1178 | + } | ||
1179 | + | ||
1180 | + return targetLeft; | ||
1181 | + | ||
1182 | + }; | ||
1183 | + | ||
1184 | + Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) { | ||
1185 | + | ||
1186 | + var _ = this; | ||
1187 | + | ||
1188 | + return _.options[option]; | ||
1189 | + | ||
1190 | + }; | ||
1191 | + | ||
1192 | + Slick.prototype.getNavigableIndexes = function() { | ||
1193 | + | ||
1194 | + var _ = this, | ||
1195 | + breakPoint = 0, | ||
1196 | + counter = 0, | ||
1197 | + indexes = [], | ||
1198 | + max; | ||
1199 | + | ||
1200 | + if (_.options.infinite === false) { | ||
1201 | + max = _.slideCount; | ||
1202 | + } else { | ||
1203 | + breakPoint = _.options.slidesToScroll * -1; | ||
1204 | + counter = _.options.slidesToScroll * -1; | ||
1205 | + max = _.slideCount * 2; | ||
1206 | + } | ||
1207 | + | ||
1208 | + while (breakPoint < max) { | ||
1209 | + indexes.push(breakPoint); | ||
1210 | + breakPoint = counter + _.options.slidesToScroll; | ||
1211 | + counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; | ||
1212 | + } | ||
1213 | + | ||
1214 | + return indexes; | ||
1215 | + | ||
1216 | + }; | ||
1217 | + | ||
1218 | + Slick.prototype.getSlick = function() { | ||
1219 | + | ||
1220 | + return this; | ||
1221 | + | ||
1222 | + }; | ||
1223 | + | ||
1224 | + Slick.prototype.getSlideCount = function() { | ||
1225 | + | ||
1226 | + var _ = this, | ||
1227 | + slidesTraversed, swipedSlide, centerOffset; | ||
1228 | + | ||
1229 | + centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0; | ||
1230 | + | ||
1231 | + if (_.options.swipeToSlide === true) { | ||
1232 | + _.$slideTrack.find('.slick-slide').each(function(index, slide) { | ||
1233 | + if (slide.offsetLeft - centerOffset + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) { | ||
1234 | + swipedSlide = slide; | ||
1235 | + return false; | ||
1236 | + } | ||
1237 | + }); | ||
1238 | + | ||
1239 | + slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1; | ||
1240 | + | ||
1241 | + return slidesTraversed; | ||
1242 | + | ||
1243 | + } else { | ||
1244 | + return _.options.slidesToScroll; | ||
1245 | + } | ||
1246 | + | ||
1247 | + }; | ||
1248 | + | ||
1249 | + Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) { | ||
1250 | + | ||
1251 | + var _ = this; | ||
1252 | + | ||
1253 | + _.changeSlide({ | ||
1254 | + data: { | ||
1255 | + message: 'index', | ||
1256 | + index: parseInt(slide) | ||
1257 | + } | ||
1258 | + }, dontAnimate); | ||
1259 | + | ||
1260 | + }; | ||
1261 | + | ||
1262 | + Slick.prototype.init = function(creation) { | ||
1263 | + | ||
1264 | + var _ = this; | ||
1265 | + | ||
1266 | + if (!$(_.$slider).hasClass('slick-initialized')) { | ||
1267 | + | ||
1268 | + $(_.$slider).addClass('slick-initialized'); | ||
1269 | + | ||
1270 | + _.buildRows(); | ||
1271 | + _.buildOut(); | ||
1272 | + _.setProps(); | ||
1273 | + _.startLoad(); | ||
1274 | + _.loadSlider(); | ||
1275 | + _.initializeEvents(); | ||
1276 | + _.updateArrows(); | ||
1277 | + _.updateDots(); | ||
1278 | + _.checkResponsive(true); | ||
1279 | + _.focusHandler(); | ||
1280 | + | ||
1281 | + } | ||
1282 | + | ||
1283 | + if (creation) { | ||
1284 | + _.$slider.trigger('init', [_]); | ||
1285 | + } | ||
1286 | + | ||
1287 | + if (_.options.accessibility === true) { | ||
1288 | + _.initADA(); | ||
1289 | + } | ||
1290 | + | ||
1291 | + if ( _.options.autoplay ) { | ||
1292 | + | ||
1293 | + _.paused = false; | ||
1294 | + _.autoPlay(); | ||
1295 | + | ||
1296 | + } | ||
1297 | + | ||
1298 | + }; | ||
1299 | + | ||
1300 | + Slick.prototype.initADA = function() { | ||
1301 | + var _ = this, | ||
1302 | + numDotGroups = Math.ceil(_.slideCount / _.options.slidesToShow), | ||
1303 | + tabControlIndexes = _.getNavigableIndexes().filter(function(val) { | ||
1304 | + return (val >= 0) && (val < _.slideCount); | ||
1305 | + }); | ||
1306 | + | ||
1307 | + _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({ | ||
1308 | + 'aria-hidden': 'true', | ||
1309 | + 'tabindex': '-1' | ||
1310 | + }).find('a, input, button, select').attr({ | ||
1311 | + 'tabindex': '-1' | ||
1312 | + }); | ||
1313 | + | ||
1314 | + if (_.$dots !== null) { | ||
1315 | + _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) { | ||
1316 | + var slideControlIndex = tabControlIndexes.indexOf(i); | ||
1317 | + | ||
1318 | + $(this).attr({ | ||
1319 | + 'role': 'tabpanel', | ||
1320 | + 'id': 'slick-slide' + _.instanceUid + i, | ||
1321 | + 'tabindex': -1 | ||
1322 | + }); | ||
1323 | + | ||
1324 | + if (slideControlIndex !== -1) { | ||
1325 | + var ariaButtonControl = 'slick-slide-control' + _.instanceUid + slideControlIndex | ||
1326 | + if ($('#' + ariaButtonControl).length) { | ||
1327 | + $(this).attr({ | ||
1328 | + 'aria-describedby': ariaButtonControl | ||
1329 | + }); | ||
1330 | + } | ||
1331 | + } | ||
1332 | + }); | ||
1333 | + | ||
1334 | + _.$dots.attr('role', 'tablist').find('li').each(function(i) { | ||
1335 | + var mappedSlideIndex = tabControlIndexes[i]; | ||
1336 | + | ||
1337 | + $(this).attr({ | ||
1338 | + 'role': 'presentation' | ||
1339 | + }); | ||
1340 | + | ||
1341 | + $(this).find('button').first().attr({ | ||
1342 | + 'role': 'tab', | ||
1343 | + 'id': 'slick-slide-control' + _.instanceUid + i, | ||
1344 | + 'aria-controls': 'slick-slide' + _.instanceUid + mappedSlideIndex, | ||
1345 | + 'aria-label': (i + 1) + ' of ' + numDotGroups, | ||
1346 | + 'aria-selected': null, | ||
1347 | + 'tabindex': '-1' | ||
1348 | + }); | ||
1349 | + | ||
1350 | + }).eq(_.currentSlide).find('button').attr({ | ||
1351 | + 'aria-selected': 'true', | ||
1352 | + 'tabindex': '0' | ||
1353 | + }).end(); | ||
1354 | + } | ||
1355 | + | ||
1356 | + for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) { | ||
1357 | + if (_.options.focusOnChange) { | ||
1358 | + _.$slides.eq(i).attr({'tabindex': '0'}); | ||
1359 | + } else { | ||
1360 | + _.$slides.eq(i).removeAttr('tabindex'); | ||
1361 | + } | ||
1362 | + } | ||
1363 | + | ||
1364 | + _.activateADA(); | ||
1365 | + | ||
1366 | + }; | ||
1367 | + | ||
1368 | + Slick.prototype.initArrowEvents = function() { | ||
1369 | + | ||
1370 | + var _ = this; | ||
1371 | + | ||
1372 | + if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { | ||
1373 | + _.$prevArrow | ||
1374 | + .off('click.slick') | ||
1375 | + .on('click.slick', { | ||
1376 | + message: 'previous' | ||
1377 | + }, _.changeSlide); | ||
1378 | + _.$nextArrow | ||
1379 | + .off('click.slick') | ||
1380 | + .on('click.slick', { | ||
1381 | + message: 'next' | ||
1382 | + }, _.changeSlide); | ||
1383 | + | ||
1384 | + if (_.options.accessibility === true) { | ||
1385 | + _.$prevArrow.on('keydown.slick', _.keyHandler); | ||
1386 | + _.$nextArrow.on('keydown.slick', _.keyHandler); | ||
1387 | + } | ||
1388 | + } | ||
1389 | + | ||
1390 | + }; | ||
1391 | + | ||
1392 | + Slick.prototype.initDotEvents = function() { | ||
1393 | + | ||
1394 | + var _ = this; | ||
1395 | + | ||
1396 | + if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { | ||
1397 | + $('li', _.$dots).on('click.slick', { | ||
1398 | + message: 'index' | ||
1399 | + }, _.changeSlide); | ||
1400 | + | ||
1401 | + if (_.options.accessibility === true) { | ||
1402 | + _.$dots.on('keydown.slick', _.keyHandler); | ||
1403 | + } | ||
1404 | + } | ||
1405 | + | ||
1406 | + if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.slideCount > _.options.slidesToShow) { | ||
1407 | + | ||
1408 | + $('li', _.$dots) | ||
1409 | + .on('mouseenter.slick', $.proxy(_.interrupt, _, true)) | ||
1410 | + .on('mouseleave.slick', $.proxy(_.interrupt, _, false)); | ||
1411 | + | ||
1412 | + } | ||
1413 | + | ||
1414 | + }; | ||
1415 | + | ||
1416 | + Slick.prototype.initSlideEvents = function() { | ||
1417 | + | ||
1418 | + var _ = this; | ||
1419 | + | ||
1420 | + if ( _.options.pauseOnHover ) { | ||
1421 | + | ||
1422 | + _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true)); | ||
1423 | + _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false)); | ||
1424 | + | ||
1425 | + } | ||
1426 | + | ||
1427 | + }; | ||
1428 | + | ||
1429 | + Slick.prototype.initializeEvents = function() { | ||
1430 | + | ||
1431 | + var _ = this; | ||
1432 | + | ||
1433 | + _.initArrowEvents(); | ||
1434 | + | ||
1435 | + _.initDotEvents(); | ||
1436 | + _.initSlideEvents(); | ||
1437 | + | ||
1438 | + _.$list.on('touchstart.slick mousedown.slick', { | ||
1439 | + action: 'start' | ||
1440 | + }, _.swipeHandler); | ||
1441 | + _.$list.on('touchmove.slick mousemove.slick', { | ||
1442 | + action: 'move' | ||
1443 | + }, _.swipeHandler); | ||
1444 | + _.$list.on('touchend.slick mouseup.slick', { | ||
1445 | + action: 'end' | ||
1446 | + }, _.swipeHandler); | ||
1447 | + _.$list.on('touchcancel.slick mouseleave.slick', { | ||
1448 | + action: 'end' | ||
1449 | + }, _.swipeHandler); | ||
1450 | + | ||
1451 | + _.$list.on('click.slick', _.clickHandler); | ||
1452 | + | ||
1453 | + $(document).on(_.visibilityChange, $.proxy(_.visibility, _)); | ||
1454 | + | ||
1455 | + if (_.options.accessibility === true) { | ||
1456 | + _.$list.on('keydown.slick', _.keyHandler); | ||
1457 | + } | ||
1458 | + | ||
1459 | + if (_.options.focusOnSelect === true) { | ||
1460 | + $(_.$slideTrack).children().on('click.slick', _.selectHandler); | ||
1461 | + } | ||
1462 | + | ||
1463 | + $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _)); | ||
1464 | + | ||
1465 | + $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _)); | ||
1466 | + | ||
1467 | + $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault); | ||
1468 | + | ||
1469 | + $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition); | ||
1470 | + $(_.setPosition); | ||
1471 | + | ||
1472 | + }; | ||
1473 | + | ||
1474 | + Slick.prototype.initUI = function() { | ||
1475 | + | ||
1476 | + var _ = this; | ||
1477 | + | ||
1478 | + if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { | ||
1479 | + | ||
1480 | + _.$prevArrow.show(); | ||
1481 | + _.$nextArrow.show(); | ||
1482 | + | ||
1483 | + } | ||
1484 | + | ||
1485 | + if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { | ||
1486 | + | ||
1487 | + _.$dots.show(); | ||
1488 | + | ||
1489 | + } | ||
1490 | + | ||
1491 | + }; | ||
1492 | + | ||
1493 | + Slick.prototype.keyHandler = function(event) { | ||
1494 | + | ||
1495 | + var _ = this; | ||
1496 | + //Dont slide if the cursor is inside the form fields and arrow keys are pressed | ||
1497 | + if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) { | ||
1498 | + if (event.keyCode === 37 && _.options.accessibility === true) { | ||
1499 | + _.changeSlide({ | ||
1500 | + data: { | ||
1501 | + message: _.options.rtl === true ? 'next' : 'previous' | ||
1502 | + } | ||
1503 | + }); | ||
1504 | + } else if (event.keyCode === 39 && _.options.accessibility === true) { | ||
1505 | + _.changeSlide({ | ||
1506 | + data: { | ||
1507 | + message: _.options.rtl === true ? 'previous' : 'next' | ||
1508 | + } | ||
1509 | + }); | ||
1510 | + } | ||
1511 | + } | ||
1512 | + | ||
1513 | + }; | ||
1514 | + | ||
1515 | + Slick.prototype.lazyLoad = function() { | ||
1516 | + | ||
1517 | + var _ = this, | ||
1518 | + loadRange, cloneRange, rangeStart, rangeEnd; | ||
1519 | + | ||
1520 | + function loadImages(imagesScope) { | ||
1521 | + | ||
1522 | + $('img[data-lazy]', imagesScope).each(function() { | ||
1523 | + | ||
1524 | + var image = $(this), | ||
1525 | + imageSource = $(this).attr('data-lazy'), | ||
1526 | + imageSrcSet = $(this).attr('data-srcset'), | ||
1527 | + imageSizes = $(this).attr('data-sizes') || _.$slider.attr('data-sizes'), | ||
1528 | + imageToLoad = document.createElement('img'); | ||
1529 | + | ||
1530 | + imageToLoad.onload = function() { | ||
1531 | + | ||
1532 | + image | ||
1533 | + .animate({ opacity: 0 }, 100, function() { | ||
1534 | + | ||
1535 | + if (imageSrcSet) { | ||
1536 | + image | ||
1537 | + .attr('srcset', imageSrcSet ); | ||
1538 | + | ||
1539 | + if (imageSizes) { | ||
1540 | + image | ||
1541 | + .attr('sizes', imageSizes ); | ||
1542 | + } | ||
1543 | + } | ||
1544 | + | ||
1545 | + image | ||
1546 | + .attr('src', imageSource) | ||
1547 | + .animate({ opacity: 1 }, 200, function() { | ||
1548 | + image | ||
1549 | + .removeAttr('data-lazy data-srcset data-sizes') | ||
1550 | + .removeClass('slick-loading'); | ||
1551 | + }); | ||
1552 | + _.$slider.trigger('lazyLoaded', [_, image, imageSource]); | ||
1553 | + }); | ||
1554 | + | ||
1555 | + }; | ||
1556 | + | ||
1557 | + imageToLoad.onerror = function() { | ||
1558 | + | ||
1559 | + image | ||
1560 | + .removeAttr( 'data-lazy' ) | ||
1561 | + .removeClass( 'slick-loading' ) | ||
1562 | + .addClass( 'slick-lazyload-error' ); | ||
1563 | + | ||
1564 | + _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]); | ||
1565 | + | ||
1566 | + }; | ||
1567 | + | ||
1568 | + imageToLoad.src = imageSource; | ||
1569 | + | ||
1570 | + }); | ||
1571 | + | ||
1572 | + } | ||
1573 | + | ||
1574 | + if (_.options.centerMode === true) { | ||
1575 | + if (_.options.infinite === true) { | ||
1576 | + rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1); | ||
1577 | + rangeEnd = rangeStart + _.options.slidesToShow + 2; | ||
1578 | + } else { | ||
1579 | + rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1)); | ||
1580 | + rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide; | ||
1581 | + } | ||
1582 | + } else { | ||
1583 | + rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide; | ||
1584 | + rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow); | ||
1585 | + if (_.options.fade === true) { | ||
1586 | + if (rangeStart > 0) rangeStart--; | ||
1587 | + if (rangeEnd <= _.slideCount) rangeEnd++; | ||
1588 | + } | ||
1589 | + } | ||
1590 | + | ||
1591 | + loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd); | ||
1592 | + | ||
1593 | + if (_.options.lazyLoad === 'anticipated') { | ||
1594 | + var prevSlide = rangeStart - 1, | ||
1595 | + nextSlide = rangeEnd, | ||
1596 | + $slides = _.$slider.find('.slick-slide'); | ||
1597 | + | ||
1598 | + for (var i = 0; i < _.options.slidesToScroll; i++) { | ||
1599 | + if (prevSlide < 0) prevSlide = _.slideCount - 1; | ||
1600 | + loadRange = loadRange.add($slides.eq(prevSlide)); | ||
1601 | + loadRange = loadRange.add($slides.eq(nextSlide)); | ||
1602 | + prevSlide--; | ||
1603 | + nextSlide++; | ||
1604 | + } | ||
1605 | + } | ||
1606 | + | ||
1607 | + loadImages(loadRange); | ||
1608 | + | ||
1609 | + if (_.slideCount <= _.options.slidesToShow) { | ||
1610 | + cloneRange = _.$slider.find('.slick-slide'); | ||
1611 | + loadImages(cloneRange); | ||
1612 | + } else | ||
1613 | + if (_.currentSlide >= _.slideCount - _.options.slidesToShow) { | ||
1614 | + cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow); | ||
1615 | + loadImages(cloneRange); | ||
1616 | + } else if (_.currentSlide === 0) { | ||
1617 | + cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1); | ||
1618 | + loadImages(cloneRange); | ||
1619 | + } | ||
1620 | + | ||
1621 | + }; | ||
1622 | + | ||
1623 | + Slick.prototype.loadSlider = function() { | ||
1624 | + | ||
1625 | + var _ = this; | ||
1626 | + | ||
1627 | + _.setPosition(); | ||
1628 | + | ||
1629 | + _.$slideTrack.css({ | ||
1630 | + opacity: 1 | ||
1631 | + }); | ||
1632 | + | ||
1633 | + _.$slider.removeClass('slick-loading'); | ||
1634 | + | ||
1635 | + _.initUI(); | ||
1636 | + | ||
1637 | + if (_.options.lazyLoad === 'progressive') { | ||
1638 | + _.progressiveLazyLoad(); | ||
1639 | + } | ||
1640 | + | ||
1641 | + }; | ||
1642 | + | ||
1643 | + Slick.prototype.next = Slick.prototype.slickNext = function() { | ||
1644 | + | ||
1645 | + var _ = this; | ||
1646 | + | ||
1647 | + _.changeSlide({ | ||
1648 | + data: { | ||
1649 | + message: 'next' | ||
1650 | + } | ||
1651 | + }); | ||
1652 | + | ||
1653 | + }; | ||
1654 | + | ||
1655 | + Slick.prototype.orientationChange = function() { | ||
1656 | + | ||
1657 | + var _ = this; | ||
1658 | + | ||
1659 | + _.checkResponsive(); | ||
1660 | + _.setPosition(); | ||
1661 | + | ||
1662 | + }; | ||
1663 | + | ||
1664 | + Slick.prototype.pause = Slick.prototype.slickPause = function() { | ||
1665 | + | ||
1666 | + var _ = this; | ||
1667 | + | ||
1668 | + _.autoPlayClear(); | ||
1669 | + _.paused = true; | ||
1670 | + | ||
1671 | + }; | ||
1672 | + | ||
1673 | + Slick.prototype.play = Slick.prototype.slickPlay = function() { | ||
1674 | + | ||
1675 | + var _ = this; | ||
1676 | + | ||
1677 | + _.autoPlay(); | ||
1678 | + _.options.autoplay = true; | ||
1679 | + _.paused = false; | ||
1680 | + _.focussed = false; | ||
1681 | + _.interrupted = false; | ||
1682 | + | ||
1683 | + }; | ||
1684 | + | ||
1685 | + Slick.prototype.postSlide = function(index) { | ||
1686 | + | ||
1687 | + var _ = this; | ||
1688 | + | ||
1689 | + if( !_.unslicked ) { | ||
1690 | + | ||
1691 | + _.$slider.trigger('afterChange', [_, index]); | ||
1692 | + | ||
1693 | + _.animating = false; | ||
1694 | + | ||
1695 | + if (_.slideCount > _.options.slidesToShow) { | ||
1696 | + _.setPosition(); | ||
1697 | + } | ||
1698 | + | ||
1699 | + _.swipeLeft = null; | ||
1700 | + | ||
1701 | + if ( _.options.autoplay ) { | ||
1702 | + _.autoPlay(); | ||
1703 | + } | ||
1704 | + | ||
1705 | + if (_.options.accessibility === true) { | ||
1706 | + _.initADA(); | ||
1707 | + | ||
1708 | + if (_.options.focusOnChange) { | ||
1709 | + var $currentSlide = $(_.$slides.get(_.currentSlide)); | ||
1710 | + $currentSlide.attr('tabindex', 0).focus(); | ||
1711 | + } | ||
1712 | + } | ||
1713 | + | ||
1714 | + } | ||
1715 | + | ||
1716 | + }; | ||
1717 | + | ||
1718 | + Slick.prototype.prev = Slick.prototype.slickPrev = function() { | ||
1719 | + | ||
1720 | + var _ = this; | ||
1721 | + | ||
1722 | + _.changeSlide({ | ||
1723 | + data: { | ||
1724 | + message: 'previous' | ||
1725 | + } | ||
1726 | + }); | ||
1727 | + | ||
1728 | + }; | ||
1729 | + | ||
1730 | + Slick.prototype.preventDefault = function(event) { | ||
1731 | + | ||
1732 | + event.preventDefault(); | ||
1733 | + | ||
1734 | + }; | ||
1735 | + | ||
1736 | + Slick.prototype.progressiveLazyLoad = function( tryCount ) { | ||
1737 | + | ||
1738 | + tryCount = tryCount || 1; | ||
1739 | + | ||
1740 | + var _ = this, | ||
1741 | + $imgsToLoad = $( 'img[data-lazy]', _.$slider ), | ||
1742 | + image, | ||
1743 | + imageSource, | ||
1744 | + imageSrcSet, | ||
1745 | + imageSizes, | ||
1746 | + imageToLoad; | ||
1747 | + | ||
1748 | + if ( $imgsToLoad.length ) { | ||
1749 | + | ||
1750 | + image = $imgsToLoad.first(); | ||
1751 | + imageSource = image.attr('data-lazy'); | ||
1752 | + imageSrcSet = image.attr('data-srcset'); | ||
1753 | + imageSizes = image.attr('data-sizes') || _.$slider.attr('data-sizes'); | ||
1754 | + imageToLoad = document.createElement('img'); | ||
1755 | + | ||
1756 | + imageToLoad.onload = function() { | ||
1757 | + | ||
1758 | + if (imageSrcSet) { | ||
1759 | + image | ||
1760 | + .attr('srcset', imageSrcSet ); | ||
1761 | + | ||
1762 | + if (imageSizes) { | ||
1763 | + image | ||
1764 | + .attr('sizes', imageSizes ); | ||
1765 | + } | ||
1766 | + } | ||
1767 | + | ||
1768 | + image | ||
1769 | + .attr( 'src', imageSource ) | ||
1770 | + .removeAttr('data-lazy data-srcset data-sizes') | ||
1771 | + .removeClass('slick-loading'); | ||
1772 | + | ||
1773 | + if ( _.options.adaptiveHeight === true ) { | ||
1774 | + _.setPosition(); | ||
1775 | + } | ||
1776 | + | ||
1777 | + _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]); | ||
1778 | + _.progressiveLazyLoad(); | ||
1779 | + | ||
1780 | + }; | ||
1781 | + | ||
1782 | + imageToLoad.onerror = function() { | ||
1783 | + | ||
1784 | + if ( tryCount < 3 ) { | ||
1785 | + | ||
1786 | + /** | ||
1787 | + * try to load the image 3 times, | ||
1788 | + * leave a slight delay so we don't get | ||
1789 | + * servers blocking the request. | ||
1790 | + */ | ||
1791 | + setTimeout( function() { | ||
1792 | + _.progressiveLazyLoad( tryCount + 1 ); | ||
1793 | + }, 500 ); | ||
1794 | + | ||
1795 | + } else { | ||
1796 | + | ||
1797 | + image | ||
1798 | + .removeAttr( 'data-lazy' ) | ||
1799 | + .removeClass( 'slick-loading' ) | ||
1800 | + .addClass( 'slick-lazyload-error' ); | ||
1801 | + | ||
1802 | + _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]); | ||
1803 | + | ||
1804 | + _.progressiveLazyLoad(); | ||
1805 | + | ||
1806 | + } | ||
1807 | + | ||
1808 | + }; | ||
1809 | + | ||
1810 | + imageToLoad.src = imageSource; | ||
1811 | + | ||
1812 | + } else { | ||
1813 | + | ||
1814 | + _.$slider.trigger('allImagesLoaded', [ _ ]); | ||
1815 | + | ||
1816 | + } | ||
1817 | + | ||
1818 | + }; | ||
1819 | + | ||
1820 | + Slick.prototype.refresh = function( initializing ) { | ||
1821 | + | ||
1822 | + var _ = this, currentSlide, lastVisibleIndex; | ||
1823 | + | ||
1824 | + lastVisibleIndex = _.slideCount - _.options.slidesToShow; | ||
1825 | + | ||
1826 | + // in non-infinite sliders, we don't want to go past the | ||
1827 | + // last visible index. | ||
1828 | + if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) { | ||
1829 | + _.currentSlide = lastVisibleIndex; | ||
1830 | + } | ||
1831 | + | ||
1832 | + // if less slides than to show, go to start. | ||
1833 | + if ( _.slideCount <= _.options.slidesToShow ) { | ||
1834 | + _.currentSlide = 0; | ||
1835 | + | ||
1836 | + } | ||
1837 | + | ||
1838 | + currentSlide = _.currentSlide; | ||
1839 | + | ||
1840 | + _.destroy(true); | ||
1841 | + | ||
1842 | + $.extend(_, _.initials, { currentSlide: currentSlide }); | ||
1843 | + | ||
1844 | + _.init(); | ||
1845 | + | ||
1846 | + if( !initializing ) { | ||
1847 | + | ||
1848 | + _.changeSlide({ | ||
1849 | + data: { | ||
1850 | + message: 'index', | ||
1851 | + index: currentSlide | ||
1852 | + } | ||
1853 | + }, false); | ||
1854 | + | ||
1855 | + } | ||
1856 | + | ||
1857 | + }; | ||
1858 | + | ||
1859 | + Slick.prototype.registerBreakpoints = function() { | ||
1860 | + | ||
1861 | + var _ = this, breakpoint, currentBreakpoint, l, | ||
1862 | + responsiveSettings = _.options.responsive || null; | ||
1863 | + | ||
1864 | + if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) { | ||
1865 | + | ||
1866 | + _.respondTo = _.options.respondTo || 'window'; | ||
1867 | + | ||
1868 | + for ( breakpoint in responsiveSettings ) { | ||
1869 | + | ||
1870 | + l = _.breakpoints.length-1; | ||
1871 | + | ||
1872 | + if (responsiveSettings.hasOwnProperty(breakpoint)) { | ||
1873 | + currentBreakpoint = responsiveSettings[breakpoint].breakpoint; | ||
1874 | + | ||
1875 | + // loop through the breakpoints and cut out any existing | ||
1876 | + // ones with the same breakpoint number, we don't want dupes. | ||
1877 | + while( l >= 0 ) { | ||
1878 | + if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) { | ||
1879 | + _.breakpoints.splice(l,1); | ||
1880 | + } | ||
1881 | + l--; | ||
1882 | + } | ||
1883 | + | ||
1884 | + _.breakpoints.push(currentBreakpoint); | ||
1885 | + _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings; | ||
1886 | + | ||
1887 | + } | ||
1888 | + | ||
1889 | + } | ||
1890 | + | ||
1891 | + _.breakpoints.sort(function(a, b) { | ||
1892 | + return ( _.options.mobileFirst ) ? a-b : b-a; | ||
1893 | + }); | ||
1894 | + | ||
1895 | + } | ||
1896 | + | ||
1897 | + }; | ||
1898 | + | ||
1899 | + Slick.prototype.reinit = function() { | ||
1900 | + | ||
1901 | + var _ = this; | ||
1902 | + | ||
1903 | + _.$slides = | ||
1904 | + _.$slideTrack | ||
1905 | + .children(_.options.slide) | ||
1906 | + .addClass('slick-slide'); | ||
1907 | + | ||
1908 | + _.slideCount = _.$slides.length; | ||
1909 | + | ||
1910 | + if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) { | ||
1911 | + _.currentSlide = _.currentSlide - _.options.slidesToScroll; | ||
1912 | + } | ||
1913 | + | ||
1914 | + if (_.slideCount <= _.options.slidesToShow) { | ||
1915 | + _.currentSlide = 0; | ||
1916 | + } | ||
1917 | + | ||
1918 | + _.registerBreakpoints(); | ||
1919 | + | ||
1920 | + _.setProps(); | ||
1921 | + _.setupInfinite(); | ||
1922 | + _.buildArrows(); | ||
1923 | + _.updateArrows(); | ||
1924 | + _.initArrowEvents(); | ||
1925 | + _.buildDots(); | ||
1926 | + _.updateDots(); | ||
1927 | + _.initDotEvents(); | ||
1928 | + _.cleanUpSlideEvents(); | ||
1929 | + _.initSlideEvents(); | ||
1930 | + | ||
1931 | + _.checkResponsive(false, true); | ||
1932 | + | ||
1933 | + if (_.options.focusOnSelect === true) { | ||
1934 | + $(_.$slideTrack).children().on('click.slick', _.selectHandler); | ||
1935 | + } | ||
1936 | + | ||
1937 | + _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0); | ||
1938 | + | ||
1939 | + _.setPosition(); | ||
1940 | + _.focusHandler(); | ||
1941 | + | ||
1942 | + _.paused = !_.options.autoplay; | ||
1943 | + _.autoPlay(); | ||
1944 | + | ||
1945 | + _.$slider.trigger('reInit', [_]); | ||
1946 | + | ||
1947 | + }; | ||
1948 | + | ||
1949 | + Slick.prototype.resize = function() { | ||
1950 | + | ||
1951 | + var _ = this; | ||
1952 | + | ||
1953 | + if ($(window).width() !== _.windowWidth) { | ||
1954 | + clearTimeout(_.windowDelay); | ||
1955 | + _.windowDelay = window.setTimeout(function() { | ||
1956 | + _.windowWidth = $(window).width(); | ||
1957 | + _.checkResponsive(); | ||
1958 | + if( !_.unslicked ) { _.setPosition(); } | ||
1959 | + }, 50); | ||
1960 | + } | ||
1961 | + }; | ||
1962 | + | ||
1963 | + Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) { | ||
1964 | + | ||
1965 | + var _ = this; | ||
1966 | + | ||
1967 | + if (typeof(index) === 'boolean') { | ||
1968 | + removeBefore = index; | ||
1969 | + index = removeBefore === true ? 0 : _.slideCount - 1; | ||
1970 | + } else { | ||
1971 | + index = removeBefore === true ? --index : index; | ||
1972 | + } | ||
1973 | + | ||
1974 | + if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) { | ||
1975 | + return false; | ||
1976 | + } | ||
1977 | + | ||
1978 | + _.unload(); | ||
1979 | + | ||
1980 | + if (removeAll === true) { | ||
1981 | + _.$slideTrack.children().remove(); | ||
1982 | + } else { | ||
1983 | + _.$slideTrack.children(this.options.slide).eq(index).remove(); | ||
1984 | + } | ||
1985 | + | ||
1986 | + _.$slides = _.$slideTrack.children(this.options.slide); | ||
1987 | + | ||
1988 | + _.$slideTrack.children(this.options.slide).detach(); | ||
1989 | + | ||
1990 | + _.$slideTrack.append(_.$slides); | ||
1991 | + | ||
1992 | + _.$slidesCache = _.$slides; | ||
1993 | + | ||
1994 | + _.reinit(); | ||
1995 | + | ||
1996 | + }; | ||
1997 | + | ||
1998 | + Slick.prototype.setCSS = function(position) { | ||
1999 | + | ||
2000 | + var _ = this, | ||
2001 | + positionProps = {}, | ||
2002 | + x, y; | ||
2003 | + | ||
2004 | + if (_.options.rtl === true) { | ||
2005 | + position = -position; | ||
2006 | + } | ||
2007 | + x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px'; | ||
2008 | + y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px'; | ||
2009 | + | ||
2010 | + positionProps[_.positionProp] = position; | ||
2011 | + | ||
2012 | + if (_.transformsEnabled === false) { | ||
2013 | + _.$slideTrack.css(positionProps); | ||
2014 | + } else { | ||
2015 | + positionProps = {}; | ||
2016 | + if (_.cssTransitions === false) { | ||
2017 | + positionProps[_.animType] = 'translate(' + x + ', ' + y + ')'; | ||
2018 | + _.$slideTrack.css(positionProps); | ||
2019 | + } else { | ||
2020 | + positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)'; | ||
2021 | + _.$slideTrack.css(positionProps); | ||
2022 | + } | ||
2023 | + } | ||
2024 | + | ||
2025 | + }; | ||
2026 | + | ||
2027 | + Slick.prototype.setDimensions = function() { | ||
2028 | + | ||
2029 | + var _ = this; | ||
2030 | + | ||
2031 | + if (_.options.vertical === false) { | ||
2032 | + if (_.options.centerMode === true) { | ||
2033 | + _.$list.css({ | ||
2034 | + padding: ('0px ' + _.options.centerPadding) | ||
2035 | + }); | ||
2036 | + } | ||
2037 | + } else { | ||
2038 | + _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow); | ||
2039 | + if (_.options.centerMode === true) { | ||
2040 | + _.$list.css({ | ||
2041 | + padding: (_.options.centerPadding + ' 0px') | ||
2042 | + }); | ||
2043 | + } | ||
2044 | + } | ||
2045 | + | ||
2046 | + _.listWidth = _.$list.width(); | ||
2047 | + _.listHeight = _.$list.height(); | ||
2048 | + | ||
2049 | + | ||
2050 | + if (_.options.vertical === false && _.options.variableWidth === false) { | ||
2051 | + _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow); | ||
2052 | + _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length))); | ||
2053 | + | ||
2054 | + } else if (_.options.variableWidth === true) { | ||
2055 | + _.$slideTrack.width(5000 * _.slideCount); | ||
2056 | + } else { | ||
2057 | + _.slideWidth = Math.ceil(_.listWidth); | ||
2058 | + _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length))); | ||
2059 | + } | ||
2060 | + | ||
2061 | + var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width(); | ||
2062 | + if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset); | ||
2063 | + | ||
2064 | + }; | ||
2065 | + | ||
2066 | + Slick.prototype.setFade = function() { | ||
2067 | + | ||
2068 | + var _ = this, | ||
2069 | + targetLeft; | ||
2070 | + | ||
2071 | + _.$slides.each(function(index, element) { | ||
2072 | + targetLeft = (_.slideWidth * index) * -1; | ||
2073 | + if (_.options.rtl === true) { | ||
2074 | + $(element).css({ | ||
2075 | + position: 'relative', | ||
2076 | + right: targetLeft, | ||
2077 | + top: 0, | ||
2078 | + zIndex: _.options.zIndex - 2, | ||
2079 | + opacity: 0 | ||
2080 | + }); | ||
2081 | + } else { | ||
2082 | + $(element).css({ | ||
2083 | + position: 'relative', | ||
2084 | + left: targetLeft, | ||
2085 | + top: 0, | ||
2086 | + zIndex: _.options.zIndex - 2, | ||
2087 | + opacity: 0 | ||
2088 | + }); | ||
2089 | + } | ||
2090 | + }); | ||
2091 | + | ||
2092 | + _.$slides.eq(_.currentSlide).css({ | ||
2093 | + zIndex: _.options.zIndex - 1, | ||
2094 | + opacity: 1 | ||
2095 | + }); | ||
2096 | + | ||
2097 | + }; | ||
2098 | + | ||
2099 | + Slick.prototype.setHeight = function() { | ||
2100 | + | ||
2101 | + var _ = this; | ||
2102 | + | ||
2103 | + if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) { | ||
2104 | + var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true); | ||
2105 | + _.$list.css('height', targetHeight); | ||
2106 | + } | ||
2107 | + | ||
2108 | + }; | ||
2109 | + | ||
2110 | + Slick.prototype.setOption = | ||
2111 | + Slick.prototype.slickSetOption = function() { | ||
2112 | + | ||
2113 | + /** | ||
2114 | + * accepts arguments in format of: | ||
2115 | + * | ||
2116 | + * - for changing a single option's value: | ||
2117 | + * .slick("setOption", option, value, refresh ) | ||
2118 | + * | ||
2119 | + * - for changing a set of responsive options: | ||
2120 | + * .slick("setOption", 'responsive', [{}, ...], refresh ) | ||
2121 | + * | ||
2122 | + * - for updating multiple values at once (not responsive) | ||
2123 | + * .slick("setOption", { 'option': value, ... }, refresh ) | ||
2124 | + */ | ||
2125 | + | ||
2126 | + var _ = this, l, item, option, value, refresh = false, type; | ||
2127 | + | ||
2128 | + if( $.type( arguments[0] ) === 'object' ) { | ||
2129 | + | ||
2130 | + option = arguments[0]; | ||
2131 | + refresh = arguments[1]; | ||
2132 | + type = 'multiple'; | ||
2133 | + | ||
2134 | + } else if ( $.type( arguments[0] ) === 'string' ) { | ||
2135 | + | ||
2136 | + option = arguments[0]; | ||
2137 | + value = arguments[1]; | ||
2138 | + refresh = arguments[2]; | ||
2139 | + | ||
2140 | + if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) { | ||
2141 | + | ||
2142 | + type = 'responsive'; | ||
2143 | + | ||
2144 | + } else if ( typeof arguments[1] !== 'undefined' ) { | ||
2145 | + | ||
2146 | + type = 'single'; | ||
2147 | + | ||
2148 | + } | ||
2149 | + | ||
2150 | + } | ||
2151 | + | ||
2152 | + if ( type === 'single' ) { | ||
2153 | + | ||
2154 | + _.options[option] = value; | ||
2155 | + | ||
2156 | + | ||
2157 | + } else if ( type === 'multiple' ) { | ||
2158 | + | ||
2159 | + $.each( option , function( opt, val ) { | ||
2160 | + | ||
2161 | + _.options[opt] = val; | ||
2162 | + | ||
2163 | + }); | ||
2164 | + | ||
2165 | + | ||
2166 | + } else if ( type === 'responsive' ) { | ||
2167 | + | ||
2168 | + for ( item in value ) { | ||
2169 | + | ||
2170 | + if( $.type( _.options.responsive ) !== 'array' ) { | ||
2171 | + | ||
2172 | + _.options.responsive = [ value[item] ]; | ||
2173 | + | ||
2174 | + } else { | ||
2175 | + | ||
2176 | + l = _.options.responsive.length-1; | ||
2177 | + | ||
2178 | + // loop through the responsive object and splice out duplicates. | ||
2179 | + while( l >= 0 ) { | ||
2180 | + | ||
2181 | + if( _.options.responsive[l].breakpoint === value[item].breakpoint ) { | ||
2182 | + | ||
2183 | + _.options.responsive.splice(l,1); | ||
2184 | + | ||
2185 | + } | ||
2186 | + | ||
2187 | + l--; | ||
2188 | + | ||
2189 | + } | ||
2190 | + | ||
2191 | + _.options.responsive.push( value[item] ); | ||
2192 | + | ||
2193 | + } | ||
2194 | + | ||
2195 | + } | ||
2196 | + | ||
2197 | + } | ||
2198 | + | ||
2199 | + if ( refresh ) { | ||
2200 | + | ||
2201 | + _.unload(); | ||
2202 | + _.reinit(); | ||
2203 | + | ||
2204 | + } | ||
2205 | + | ||
2206 | + }; | ||
2207 | + | ||
2208 | + Slick.prototype.setPosition = function() { | ||
2209 | + | ||
2210 | + var _ = this; | ||
2211 | + | ||
2212 | + _.setDimensions(); | ||
2213 | + | ||
2214 | + _.setHeight(); | ||
2215 | + | ||
2216 | + if (_.options.fade === false) { | ||
2217 | + _.setCSS(_.getLeft(_.currentSlide)); | ||
2218 | + } else { | ||
2219 | + _.setFade(); | ||
2220 | + } | ||
2221 | + | ||
2222 | + _.$slider.trigger('setPosition', [_]); | ||
2223 | + | ||
2224 | + }; | ||
2225 | + | ||
2226 | + Slick.prototype.setProps = function() { | ||
2227 | + | ||
2228 | + var _ = this, | ||
2229 | + bodyStyle = document.body.style; | ||
2230 | + | ||
2231 | + _.positionProp = _.options.vertical === true ? 'top' : 'left'; | ||
2232 | + | ||
2233 | + if (_.positionProp === 'top') { | ||
2234 | + _.$slider.addClass('slick-vertical'); | ||
2235 | + } else { | ||
2236 | + _.$slider.removeClass('slick-vertical'); | ||
2237 | + } | ||
2238 | + | ||
2239 | + if (bodyStyle.WebkitTransition !== undefined || | ||
2240 | + bodyStyle.MozTransition !== undefined || | ||
2241 | + bodyStyle.msTransition !== undefined) { | ||
2242 | + if (_.options.useCSS === true) { | ||
2243 | + _.cssTransitions = true; | ||
2244 | + } | ||
2245 | + } | ||
2246 | + | ||
2247 | + if ( _.options.fade ) { | ||
2248 | + if ( typeof _.options.zIndex === 'number' ) { | ||
2249 | + if( _.options.zIndex < 3 ) { | ||
2250 | + _.options.zIndex = 3; | ||
2251 | + } | ||
2252 | + } else { | ||
2253 | + _.options.zIndex = _.defaults.zIndex; | ||
2254 | + } | ||
2255 | + } | ||
2256 | + | ||
2257 | + if (bodyStyle.OTransform !== undefined) { | ||
2258 | + _.animType = 'OTransform'; | ||
2259 | + _.transformType = '-o-transform'; | ||
2260 | + _.transitionType = 'OTransition'; | ||
2261 | + if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false; | ||
2262 | + } | ||
2263 | + if (bodyStyle.MozTransform !== undefined) { | ||
2264 | + _.animType = 'MozTransform'; | ||
2265 | + _.transformType = '-moz-transform'; | ||
2266 | + _.transitionType = 'MozTransition'; | ||
2267 | + if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false; | ||
2268 | + } | ||
2269 | + if (bodyStyle.webkitTransform !== undefined) { | ||
2270 | + _.animType = 'webkitTransform'; | ||
2271 | + _.transformType = '-webkit-transform'; | ||
2272 | + _.transitionType = 'webkitTransition'; | ||
2273 | + if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false; | ||
2274 | + } | ||
2275 | + if (bodyStyle.msTransform !== undefined) { | ||
2276 | + _.animType = 'msTransform'; | ||
2277 | + _.transformType = '-ms-transform'; | ||
2278 | + _.transitionType = 'msTransition'; | ||
2279 | + if (bodyStyle.msTransform === undefined) _.animType = false; | ||
2280 | + } | ||
2281 | + if (bodyStyle.transform !== undefined && _.animType !== false) { | ||
2282 | + _.animType = 'transform'; | ||
2283 | + _.transformType = 'transform'; | ||
2284 | + _.transitionType = 'transition'; | ||
2285 | + } | ||
2286 | + _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false); | ||
2287 | + }; | ||
2288 | + | ||
2289 | + | ||
2290 | + Slick.prototype.setSlideClasses = function(index) { | ||
2291 | + | ||
2292 | + var _ = this, | ||
2293 | + centerOffset, allSlides, indexOffset, remainder; | ||
2294 | + | ||
2295 | + allSlides = _.$slider | ||
2296 | + .find('.slick-slide') | ||
2297 | + .removeClass('slick-active slick-center slick-current') | ||
2298 | + .attr('aria-hidden', 'true'); | ||
2299 | + | ||
2300 | + _.$slides | ||
2301 | + .eq(index) | ||
2302 | + .addClass('slick-current'); | ||
2303 | + | ||
2304 | + if (_.options.centerMode === true) { | ||
2305 | + | ||
2306 | + var evenCoef = _.options.slidesToShow % 2 === 0 ? 1 : 0; | ||
2307 | + | ||
2308 | + centerOffset = Math.floor(_.options.slidesToShow / 2); | ||
2309 | + | ||
2310 | + if (_.options.infinite === true) { | ||
2311 | + | ||
2312 | + if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) { | ||
2313 | + _.$slides | ||
2314 | + .slice(index - centerOffset + evenCoef, index + centerOffset + 1) | ||
2315 | + .addClass('slick-active') | ||
2316 | + .attr('aria-hidden', 'false'); | ||
2317 | + | ||
2318 | + } else { | ||
2319 | + | ||
2320 | + indexOffset = _.options.slidesToShow + index; | ||
2321 | + allSlides | ||
2322 | + .slice(indexOffset - centerOffset + 1 + evenCoef, indexOffset + centerOffset + 2) | ||
2323 | + .addClass('slick-active') | ||
2324 | + .attr('aria-hidden', 'false'); | ||
2325 | + | ||
2326 | + } | ||
2327 | + | ||
2328 | + if (index === 0) { | ||
2329 | + | ||
2330 | + allSlides | ||
2331 | + .eq(allSlides.length - 1 - _.options.slidesToShow) | ||
2332 | + .addClass('slick-center'); | ||
2333 | + | ||
2334 | + } else if (index === _.slideCount - 1) { | ||
2335 | + | ||
2336 | + allSlides | ||
2337 | + .eq(_.options.slidesToShow) | ||
2338 | + .addClass('slick-center'); | ||
2339 | + | ||
2340 | + } | ||
2341 | + | ||
2342 | + } | ||
2343 | + | ||
2344 | + _.$slides | ||
2345 | + .eq(index) | ||
2346 | + .addClass('slick-center'); | ||
2347 | + | ||
2348 | + } else { | ||
2349 | + | ||
2350 | + if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) { | ||
2351 | + | ||
2352 | + _.$slides | ||
2353 | + .slice(index, index + _.options.slidesToShow) | ||
2354 | + .addClass('slick-active') | ||
2355 | + .attr('aria-hidden', 'false'); | ||
2356 | + | ||
2357 | + } else if (allSlides.length <= _.options.slidesToShow) { | ||
2358 | + | ||
2359 | + allSlides | ||
2360 | + .addClass('slick-active') | ||
2361 | + .attr('aria-hidden', 'false'); | ||
2362 | + | ||
2363 | + } else { | ||
2364 | + | ||
2365 | + remainder = _.slideCount % _.options.slidesToShow; | ||
2366 | + indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index; | ||
2367 | + | ||
2368 | + if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) { | ||
2369 | + | ||
2370 | + allSlides | ||
2371 | + .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder) | ||
2372 | + .addClass('slick-active') | ||
2373 | + .attr('aria-hidden', 'false'); | ||
2374 | + | ||
2375 | + } else { | ||
2376 | + | ||
2377 | + allSlides | ||
2378 | + .slice(indexOffset, indexOffset + _.options.slidesToShow) | ||
2379 | + .addClass('slick-active') | ||
2380 | + .attr('aria-hidden', 'false'); | ||
2381 | + | ||
2382 | + } | ||
2383 | + | ||
2384 | + } | ||
2385 | + | ||
2386 | + } | ||
2387 | + | ||
2388 | + if (_.options.lazyLoad === 'ondemand' || _.options.lazyLoad === 'anticipated') { | ||
2389 | + _.lazyLoad(); | ||
2390 | + } | ||
2391 | + }; | ||
2392 | + | ||
2393 | + Slick.prototype.setupInfinite = function() { | ||
2394 | + | ||
2395 | + var _ = this, | ||
2396 | + i, slideIndex, infiniteCount; | ||
2397 | + | ||
2398 | + if (_.options.fade === true) { | ||
2399 | + _.options.centerMode = false; | ||
2400 | + } | ||
2401 | + | ||
2402 | + if (_.options.infinite === true && _.options.fade === false) { | ||
2403 | + | ||
2404 | + slideIndex = null; | ||
2405 | + | ||
2406 | + if (_.slideCount > _.options.slidesToShow) { | ||
2407 | + | ||
2408 | + if (_.options.centerMode === true) { | ||
2409 | + infiniteCount = _.options.slidesToShow + 1; | ||
2410 | + } else { | ||
2411 | + infiniteCount = _.options.slidesToShow; | ||
2412 | + } | ||
2413 | + | ||
2414 | + for (i = _.slideCount; i > (_.slideCount - | ||
2415 | + infiniteCount); i -= 1) { | ||
2416 | + slideIndex = i - 1; | ||
2417 | + $(_.$slides[slideIndex]).clone(true).attr('id', '') | ||
2418 | + .attr('data-slick-index', slideIndex - _.slideCount) | ||
2419 | + .prependTo(_.$slideTrack).addClass('slick-cloned'); | ||
2420 | + } | ||
2421 | + for (i = 0; i < infiniteCount + _.slideCount; i += 1) { | ||
2422 | + slideIndex = i; | ||
2423 | + $(_.$slides[slideIndex]).clone(true).attr('id', '') | ||
2424 | + .attr('data-slick-index', slideIndex + _.slideCount) | ||
2425 | + .appendTo(_.$slideTrack).addClass('slick-cloned'); | ||
2426 | + } | ||
2427 | + _.$slideTrack.find('.slick-cloned').find('[id]').each(function() { | ||
2428 | + $(this).attr('id', ''); | ||
2429 | + }); | ||
2430 | + | ||
2431 | + } | ||
2432 | + | ||
2433 | + } | ||
2434 | + | ||
2435 | + }; | ||
2436 | + | ||
2437 | + Slick.prototype.interrupt = function( toggle ) { | ||
2438 | + | ||
2439 | + var _ = this; | ||
2440 | + | ||
2441 | + if( !toggle ) { | ||
2442 | + _.autoPlay(); | ||
2443 | + } | ||
2444 | + _.interrupted = toggle; | ||
2445 | + | ||
2446 | + }; | ||
2447 | + | ||
2448 | + Slick.prototype.selectHandler = function(event) { | ||
2449 | + | ||
2450 | + var _ = this; | ||
2451 | + | ||
2452 | + var targetElement = | ||
2453 | + $(event.target).is('.slick-slide') ? | ||
2454 | + $(event.target) : | ||
2455 | + $(event.target).parents('.slick-slide'); | ||
2456 | + | ||
2457 | + var index = parseInt(targetElement.attr('data-slick-index')); | ||
2458 | + | ||
2459 | + if (!index) index = 0; | ||
2460 | + | ||
2461 | + if (_.slideCount <= _.options.slidesToShow) { | ||
2462 | + | ||
2463 | + _.slideHandler(index, false, true); | ||
2464 | + return; | ||
2465 | + | ||
2466 | + } | ||
2467 | + | ||
2468 | + _.slideHandler(index); | ||
2469 | + | ||
2470 | + }; | ||
2471 | + | ||
2472 | + Slick.prototype.slideHandler = function(index, sync, dontAnimate) { | ||
2473 | + | ||
2474 | + var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null, | ||
2475 | + _ = this, navTarget; | ||
2476 | + | ||
2477 | + sync = sync || false; | ||
2478 | + | ||
2479 | + if (_.animating === true && _.options.waitForAnimate === true) { | ||
2480 | + return; | ||
2481 | + } | ||
2482 | + | ||
2483 | + if (_.options.fade === true && _.currentSlide === index) { | ||
2484 | + return; | ||
2485 | + } | ||
2486 | + | ||
2487 | + if (sync === false) { | ||
2488 | + _.asNavFor(index); | ||
2489 | + } | ||
2490 | + | ||
2491 | + targetSlide = index; | ||
2492 | + targetLeft = _.getLeft(targetSlide); | ||
2493 | + slideLeft = _.getLeft(_.currentSlide); | ||
2494 | + | ||
2495 | + _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft; | ||
2496 | + | ||
2497 | + if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) { | ||
2498 | + if (_.options.fade === false) { | ||
2499 | + targetSlide = _.currentSlide; | ||
2500 | + if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) { | ||
2501 | + _.animateSlide(slideLeft, function() { | ||
2502 | + _.postSlide(targetSlide); | ||
2503 | + }); | ||
2504 | + } else { | ||
2505 | + _.postSlide(targetSlide); | ||
2506 | + } | ||
2507 | + } | ||
2508 | + return; | ||
2509 | + } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) { | ||
2510 | + if (_.options.fade === false) { | ||
2511 | + targetSlide = _.currentSlide; | ||
2512 | + if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) { | ||
2513 | + _.animateSlide(slideLeft, function() { | ||
2514 | + _.postSlide(targetSlide); | ||
2515 | + }); | ||
2516 | + } else { | ||
2517 | + _.postSlide(targetSlide); | ||
2518 | + } | ||
2519 | + } | ||
2520 | + return; | ||
2521 | + } | ||
2522 | + | ||
2523 | + if ( _.options.autoplay ) { | ||
2524 | + clearInterval(_.autoPlayTimer); | ||
2525 | + } | ||
2526 | + | ||
2527 | + if (targetSlide < 0) { | ||
2528 | + if (_.slideCount % _.options.slidesToScroll !== 0) { | ||
2529 | + animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll); | ||
2530 | + } else { | ||
2531 | + animSlide = _.slideCount + targetSlide; | ||
2532 | + } | ||
2533 | + } else if (targetSlide >= _.slideCount) { | ||
2534 | + if (_.slideCount % _.options.slidesToScroll !== 0) { | ||
2535 | + animSlide = 0; | ||
2536 | + } else { | ||
2537 | + animSlide = targetSlide - _.slideCount; | ||
2538 | + } | ||
2539 | + } else { | ||
2540 | + animSlide = targetSlide; | ||
2541 | + } | ||
2542 | + | ||
2543 | + _.animating = true; | ||
2544 | + | ||
2545 | + _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]); | ||
2546 | + | ||
2547 | + oldSlide = _.currentSlide; | ||
2548 | + _.currentSlide = animSlide; | ||
2549 | + | ||
2550 | + _.setSlideClasses(_.currentSlide); | ||
2551 | + | ||
2552 | + if ( _.options.asNavFor ) { | ||
2553 | + | ||
2554 | + navTarget = _.getNavTarget(); | ||
2555 | + navTarget = navTarget.slick('getSlick'); | ||
2556 | + | ||
2557 | + if ( navTarget.slideCount <= navTarget.options.slidesToShow ) { | ||
2558 | + navTarget.setSlideClasses(_.currentSlide); | ||
2559 | + } | ||
2560 | + | ||
2561 | + } | ||
2562 | + | ||
2563 | + _.updateDots(); | ||
2564 | + _.updateArrows(); | ||
2565 | + | ||
2566 | + if (_.options.fade === true) { | ||
2567 | + if (dontAnimate !== true) { | ||
2568 | + | ||
2569 | + _.fadeSlideOut(oldSlide); | ||
2570 | + | ||
2571 | + _.fadeSlide(animSlide, function() { | ||
2572 | + _.postSlide(animSlide); | ||
2573 | + }); | ||
2574 | + | ||
2575 | + } else { | ||
2576 | + _.postSlide(animSlide); | ||
2577 | + } | ||
2578 | + _.animateHeight(); | ||
2579 | + return; | ||
2580 | + } | ||
2581 | + | ||
2582 | + if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) { | ||
2583 | + _.animateSlide(targetLeft, function() { | ||
2584 | + _.postSlide(animSlide); | ||
2585 | + }); | ||
2586 | + } else { | ||
2587 | + _.postSlide(animSlide); | ||
2588 | + } | ||
2589 | + | ||
2590 | + }; | ||
2591 | + | ||
2592 | + Slick.prototype.startLoad = function() { | ||
2593 | + | ||
2594 | + var _ = this; | ||
2595 | + | ||
2596 | + if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { | ||
2597 | + | ||
2598 | + _.$prevArrow.hide(); | ||
2599 | + _.$nextArrow.hide(); | ||
2600 | + | ||
2601 | + } | ||
2602 | + | ||
2603 | + if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { | ||
2604 | + | ||
2605 | + _.$dots.hide(); | ||
2606 | + | ||
2607 | + } | ||
2608 | + | ||
2609 | + _.$slider.addClass('slick-loading'); | ||
2610 | + | ||
2611 | + }; | ||
2612 | + | ||
2613 | + Slick.prototype.swipeDirection = function() { | ||
2614 | + | ||
2615 | + var xDist, yDist, r, swipeAngle, _ = this; | ||
2616 | + | ||
2617 | + xDist = _.touchObject.startX - _.touchObject.curX; | ||
2618 | + yDist = _.touchObject.startY - _.touchObject.curY; | ||
2619 | + r = Math.atan2(yDist, xDist); | ||
2620 | + | ||
2621 | + swipeAngle = Math.round(r * 180 / Math.PI); | ||
2622 | + if (swipeAngle < 0) { | ||
2623 | + swipeAngle = 360 - Math.abs(swipeAngle); | ||
2624 | + } | ||
2625 | + | ||
2626 | + if ((swipeAngle <= 45) && (swipeAngle >= 0)) { | ||
2627 | + return (_.options.rtl === false ? 'left' : 'right'); | ||
2628 | + } | ||
2629 | + if ((swipeAngle <= 360) && (swipeAngle >= 315)) { | ||
2630 | + return (_.options.rtl === false ? 'left' : 'right'); | ||
2631 | + } | ||
2632 | + if ((swipeAngle >= 135) && (swipeAngle <= 225)) { | ||
2633 | + return (_.options.rtl === false ? 'right' : 'left'); | ||
2634 | + } | ||
2635 | + if (_.options.verticalSwiping === true) { | ||
2636 | + if ((swipeAngle >= 35) && (swipeAngle <= 135)) { | ||
2637 | + return 'down'; | ||
2638 | + } else { | ||
2639 | + return 'up'; | ||
2640 | + } | ||
2641 | + } | ||
2642 | + | ||
2643 | + return 'vertical'; | ||
2644 | + | ||
2645 | + }; | ||
2646 | + | ||
2647 | + Slick.prototype.swipeEnd = function(event) { | ||
2648 | + | ||
2649 | + var _ = this, | ||
2650 | + slideCount, | ||
2651 | + direction; | ||
2652 | + | ||
2653 | + _.dragging = false; | ||
2654 | + _.swiping = false; | ||
2655 | + | ||
2656 | + if (_.scrolling) { | ||
2657 | + _.scrolling = false; | ||
2658 | + return false; | ||
2659 | + } | ||
2660 | + | ||
2661 | + _.interrupted = false; | ||
2662 | + _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true; | ||
2663 | + | ||
2664 | + if ( _.touchObject.curX === undefined ) { | ||
2665 | + return false; | ||
2666 | + } | ||
2667 | + | ||
2668 | + if ( _.touchObject.edgeHit === true ) { | ||
2669 | + _.$slider.trigger('edge', [_, _.swipeDirection() ]); | ||
2670 | + } | ||
2671 | + | ||
2672 | + if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) { | ||
2673 | + | ||
2674 | + direction = _.swipeDirection(); | ||
2675 | + | ||
2676 | + switch ( direction ) { | ||
2677 | + | ||
2678 | + case 'left': | ||
2679 | + case 'down': | ||
2680 | + | ||
2681 | + slideCount = | ||
2682 | + _.options.swipeToSlide ? | ||
2683 | + _.checkNavigable( _.currentSlide + _.getSlideCount() ) : | ||
2684 | + _.currentSlide + _.getSlideCount(); | ||
2685 | + | ||
2686 | + _.currentDirection = 0; | ||
2687 | + | ||
2688 | + break; | ||
2689 | + | ||
2690 | + case 'right': | ||
2691 | + case 'up': | ||
2692 | + | ||
2693 | + slideCount = | ||
2694 | + _.options.swipeToSlide ? | ||
2695 | + _.checkNavigable( _.currentSlide - _.getSlideCount() ) : | ||
2696 | + _.currentSlide - _.getSlideCount(); | ||
2697 | + | ||
2698 | + _.currentDirection = 1; | ||
2699 | + | ||
2700 | + break; | ||
2701 | + | ||
2702 | + default: | ||
2703 | + | ||
2704 | + | ||
2705 | + } | ||
2706 | + | ||
2707 | + if( direction != 'vertical' ) { | ||
2708 | + | ||
2709 | + _.slideHandler( slideCount ); | ||
2710 | + _.touchObject = {}; | ||
2711 | + _.$slider.trigger('swipe', [_, direction ]); | ||
2712 | + | ||
2713 | + } | ||
2714 | + | ||
2715 | + } else { | ||
2716 | + | ||
2717 | + if ( _.touchObject.startX !== _.touchObject.curX ) { | ||
2718 | + | ||
2719 | + _.slideHandler( _.currentSlide ); | ||
2720 | + _.touchObject = {}; | ||
2721 | + | ||
2722 | + } | ||
2723 | + | ||
2724 | + } | ||
2725 | + | ||
2726 | + }; | ||
2727 | + | ||
2728 | + Slick.prototype.swipeHandler = function(event) { | ||
2729 | + | ||
2730 | + var _ = this; | ||
2731 | + | ||
2732 | + if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) { | ||
2733 | + return; | ||
2734 | + } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) { | ||
2735 | + return; | ||
2736 | + } | ||
2737 | + | ||
2738 | + _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ? | ||
2739 | + event.originalEvent.touches.length : 1; | ||
2740 | + | ||
2741 | + _.touchObject.minSwipe = _.listWidth / _.options | ||
2742 | + .touchThreshold; | ||
2743 | + | ||
2744 | + if (_.options.verticalSwiping === true) { | ||
2745 | + _.touchObject.minSwipe = _.listHeight / _.options | ||
2746 | + .touchThreshold; | ||
2747 | + } | ||
2748 | + | ||
2749 | + switch (event.data.action) { | ||
2750 | + | ||
2751 | + case 'start': | ||
2752 | + _.swipeStart(event); | ||
2753 | + break; | ||
2754 | + | ||
2755 | + case 'move': | ||
2756 | + _.swipeMove(event); | ||
2757 | + break; | ||
2758 | + | ||
2759 | + case 'end': | ||
2760 | + _.swipeEnd(event); | ||
2761 | + break; | ||
2762 | + | ||
2763 | + } | ||
2764 | + | ||
2765 | + }; | ||
2766 | + | ||
2767 | + Slick.prototype.swipeMove = function(event) { | ||
2768 | + | ||
2769 | + var _ = this, | ||
2770 | + edgeWasHit = false, | ||
2771 | + curLeft, swipeDirection, swipeLength, positionOffset, touches, verticalSwipeLength; | ||
2772 | + | ||
2773 | + touches = event.originalEvent !== undefined ? event.originalEvent.touches : null; | ||
2774 | + | ||
2775 | + if (!_.dragging || _.scrolling || touches && touches.length !== 1) { | ||
2776 | + return false; | ||
2777 | + } | ||
2778 | + | ||
2779 | + curLeft = _.getLeft(_.currentSlide); | ||
2780 | + | ||
2781 | + _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX; | ||
2782 | + _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY; | ||
2783 | + | ||
2784 | + _.touchObject.swipeLength = Math.round(Math.sqrt( | ||
2785 | + Math.pow(_.touchObject.curX - _.touchObject.startX, 2))); | ||
2786 | + | ||
2787 | + verticalSwipeLength = Math.round(Math.sqrt( | ||
2788 | + Math.pow(_.touchObject.curY - _.touchObject.startY, 2))); | ||
2789 | + | ||
2790 | + if (!_.options.verticalSwiping && !_.swiping && verticalSwipeLength > 4) { | ||
2791 | + _.scrolling = true; | ||
2792 | + return false; | ||
2793 | + } | ||
2794 | + | ||
2795 | + if (_.options.verticalSwiping === true) { | ||
2796 | + _.touchObject.swipeLength = verticalSwipeLength; | ||
2797 | + } | ||
2798 | + | ||
2799 | + swipeDirection = _.swipeDirection(); | ||
2800 | + | ||
2801 | + if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) { | ||
2802 | + _.swiping = true; | ||
2803 | + event.preventDefault(); | ||
2804 | + } | ||
2805 | + | ||
2806 | + positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1); | ||
2807 | + if (_.options.verticalSwiping === true) { | ||
2808 | + positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1; | ||
2809 | + } | ||
2810 | + | ||
2811 | + | ||
2812 | + swipeLength = _.touchObject.swipeLength; | ||
2813 | + | ||
2814 | + _.touchObject.edgeHit = false; | ||
2815 | + | ||
2816 | + if (_.options.infinite === false) { | ||
2817 | + if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) { | ||
2818 | + swipeLength = _.touchObject.swipeLength * _.options.edgeFriction; | ||
2819 | + _.touchObject.edgeHit = true; | ||
2820 | + } | ||
2821 | + } | ||
2822 | + | ||
2823 | + if (_.options.vertical === false) { | ||
2824 | + _.swipeLeft = curLeft + swipeLength * positionOffset; | ||
2825 | + } else { | ||
2826 | + _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset; | ||
2827 | + } | ||
2828 | + if (_.options.verticalSwiping === true) { | ||
2829 | + _.swipeLeft = curLeft + swipeLength * positionOffset; | ||
2830 | + } | ||
2831 | + | ||
2832 | + if (_.options.fade === true || _.options.touchMove === false) { | ||
2833 | + return false; | ||
2834 | + } | ||
2835 | + | ||
2836 | + if (_.animating === true) { | ||
2837 | + _.swipeLeft = null; | ||
2838 | + return false; | ||
2839 | + } | ||
2840 | + | ||
2841 | + _.setCSS(_.swipeLeft); | ||
2842 | + | ||
2843 | + }; | ||
2844 | + | ||
2845 | + Slick.prototype.swipeStart = function(event) { | ||
2846 | + | ||
2847 | + var _ = this, | ||
2848 | + touches; | ||
2849 | + | ||
2850 | + _.interrupted = true; | ||
2851 | + | ||
2852 | + if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) { | ||
2853 | + _.touchObject = {}; | ||
2854 | + return false; | ||
2855 | + } | ||
2856 | + | ||
2857 | + if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) { | ||
2858 | + touches = event.originalEvent.touches[0]; | ||
2859 | + } | ||
2860 | + | ||
2861 | + _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX; | ||
2862 | + _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY; | ||
2863 | + | ||
2864 | + _.dragging = true; | ||
2865 | + | ||
2866 | + }; | ||
2867 | + | ||
2868 | + Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() { | ||
2869 | + | ||
2870 | + var _ = this; | ||
2871 | + | ||
2872 | + if (_.$slidesCache !== null) { | ||
2873 | + | ||
2874 | + _.unload(); | ||
2875 | + | ||
2876 | + _.$slideTrack.children(this.options.slide).detach(); | ||
2877 | + | ||
2878 | + _.$slidesCache.appendTo(_.$slideTrack); | ||
2879 | + | ||
2880 | + _.reinit(); | ||
2881 | + | ||
2882 | + } | ||
2883 | + | ||
2884 | + }; | ||
2885 | + | ||
2886 | + Slick.prototype.unload = function() { | ||
2887 | + | ||
2888 | + var _ = this; | ||
2889 | + | ||
2890 | + $('.slick-cloned', _.$slider).remove(); | ||
2891 | + | ||
2892 | + if (_.$dots) { | ||
2893 | + _.$dots.remove(); | ||
2894 | + } | ||
2895 | + | ||
2896 | + if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) { | ||
2897 | + _.$prevArrow.remove(); | ||
2898 | + } | ||
2899 | + | ||
2900 | + if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) { | ||
2901 | + _.$nextArrow.remove(); | ||
2902 | + } | ||
2903 | + | ||
2904 | + _.$slides | ||
2905 | + .removeClass('slick-slide slick-active slick-visible slick-current') | ||
2906 | + .attr('aria-hidden', 'true') | ||
2907 | + .css('width', ''); | ||
2908 | + | ||
2909 | + }; | ||
2910 | + | ||
2911 | + Slick.prototype.unslick = function(fromBreakpoint) { | ||
2912 | + | ||
2913 | + var _ = this; | ||
2914 | + _.$slider.trigger('unslick', [_, fromBreakpoint]); | ||
2915 | + _.destroy(); | ||
2916 | + | ||
2917 | + }; | ||
2918 | + | ||
2919 | + Slick.prototype.updateArrows = function() { | ||
2920 | + | ||
2921 | + var _ = this, | ||
2922 | + centerOffset; | ||
2923 | + | ||
2924 | + centerOffset = Math.floor(_.options.slidesToShow / 2); | ||
2925 | + | ||
2926 | + if ( _.options.arrows === true && | ||
2927 | + _.slideCount > _.options.slidesToShow && | ||
2928 | + !_.options.infinite ) { | ||
2929 | + | ||
2930 | + _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); | ||
2931 | + _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); | ||
2932 | + | ||
2933 | + if (_.currentSlide === 0) { | ||
2934 | + | ||
2935 | + _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); | ||
2936 | + _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); | ||
2937 | + | ||
2938 | + } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) { | ||
2939 | + | ||
2940 | + _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); | ||
2941 | + _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); | ||
2942 | + | ||
2943 | + } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) { | ||
2944 | + | ||
2945 | + _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); | ||
2946 | + _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); | ||
2947 | + | ||
2948 | + } | ||
2949 | + | ||
2950 | + } | ||
2951 | + | ||
2952 | + }; | ||
2953 | + | ||
2954 | + Slick.prototype.updateDots = function() { | ||
2955 | + | ||
2956 | + var _ = this; | ||
2957 | + | ||
2958 | + if (_.$dots !== null) { | ||
2959 | + | ||
2960 | + _.$dots | ||
2961 | + .find('li') | ||
2962 | + .removeClass('slick-active') | ||
2963 | + .end(); | ||
2964 | + | ||
2965 | + _.$dots | ||
2966 | + .find('li') | ||
2967 | + .eq(Math.floor(_.currentSlide / _.options.slidesToScroll)) | ||
2968 | + .addClass('slick-active'); | ||
2969 | + | ||
2970 | + } | ||
2971 | + | ||
2972 | + }; | ||
2973 | + | ||
2974 | + Slick.prototype.visibility = function() { | ||
2975 | + | ||
2976 | + var _ = this; | ||
2977 | + | ||
2978 | + if ( _.options.autoplay ) { | ||
2979 | + | ||
2980 | + if ( document[_.hidden] ) { | ||
2981 | + | ||
2982 | + _.interrupted = true; | ||
2983 | + | ||
2984 | + } else { | ||
2985 | + | ||
2986 | + _.interrupted = false; | ||
2987 | + | ||
2988 | + } | ||
2989 | + | ||
2990 | + } | ||
2991 | + | ||
2992 | + }; | ||
2993 | + | ||
2994 | + $.fn.slick = function() { | ||
2995 | + var _ = this, | ||
2996 | + opt = arguments[0], | ||
2997 | + args = Array.prototype.slice.call(arguments, 1), | ||
2998 | + l = _.length, | ||
2999 | + i, | ||
3000 | + ret; | ||
3001 | + for (i = 0; i < l; i++) { | ||
3002 | + if (typeof opt == 'object' || typeof opt == 'undefined') | ||
3003 | + _[i].slick = new Slick(_[i], opt); | ||
3004 | + else | ||
3005 | + ret = _[i].slick[opt].apply(_[i].slick, args); | ||
3006 | + if (typeof ret != 'undefined') return ret; | ||
3007 | + } | ||
3008 | + return _; | ||
3009 | + }; | ||
3010 | + | ||
3011 | +})); |
project/slick/slick.less
0 → 100644
1 | +/* Slider */ | ||
2 | + | ||
3 | +.slick-slider { | ||
4 | + position: relative; | ||
5 | + display: block; | ||
6 | + box-sizing: border-box; | ||
7 | + -webkit-touch-callout: none; | ||
8 | + -webkit-user-select: none; | ||
9 | + -khtml-user-select: none; | ||
10 | + -moz-user-select: none; | ||
11 | + -ms-user-select: none; | ||
12 | + user-select: none; | ||
13 | + -ms-touch-action: pan-y; | ||
14 | + touch-action: pan-y; | ||
15 | + -webkit-tap-highlight-color: transparent; | ||
16 | +} | ||
17 | +.slick-list { | ||
18 | + position: relative; | ||
19 | + overflow: hidden; | ||
20 | + display: block; | ||
21 | + margin: 0; | ||
22 | + padding: 0; | ||
23 | + | ||
24 | + &:focus { | ||
25 | + outline: none; | ||
26 | + } | ||
27 | + | ||
28 | + &.dragging { | ||
29 | + cursor: pointer; | ||
30 | + cursor: hand; | ||
31 | + } | ||
32 | +} | ||
33 | +.slick-slider .slick-track, | ||
34 | +.slick-slider .slick-list { | ||
35 | + -webkit-transform: translate3d(0, 0, 0); | ||
36 | + -moz-transform: translate3d(0, 0, 0); | ||
37 | + -ms-transform: translate3d(0, 0, 0); | ||
38 | + -o-transform: translate3d(0, 0, 0); | ||
39 | + transform: translate3d(0, 0, 0); | ||
40 | +} | ||
41 | + | ||
42 | +.slick-track { | ||
43 | + position: relative; | ||
44 | + left: 0; | ||
45 | + top: 0; | ||
46 | + display: block; | ||
47 | + margin-left: auto; | ||
48 | + margin-right: auto; | ||
49 | + | ||
50 | + &:before, | ||
51 | + &:after { | ||
52 | + content: ""; | ||
53 | + display: table; | ||
54 | + } | ||
55 | + | ||
56 | + &:after { | ||
57 | + clear: both; | ||
58 | + } | ||
59 | + | ||
60 | + .slick-loading & { | ||
61 | + visibility: hidden; | ||
62 | + } | ||
63 | +} | ||
64 | +.slick-slide { | ||
65 | + float: left; | ||
66 | + height: 100%; | ||
67 | + min-height: 1px; | ||
68 | + [dir="rtl"] & { | ||
69 | + float: right; | ||
70 | + } | ||
71 | + img { | ||
72 | + display: block; | ||
73 | + } | ||
74 | + &.slick-loading img { | ||
75 | + display: none; | ||
76 | + } | ||
77 | + | ||
78 | + display: none; | ||
79 | + | ||
80 | + &.dragging img { | ||
81 | + pointer-events: none; | ||
82 | + } | ||
83 | + | ||
84 | + .slick-initialized & { | ||
85 | + display: block; | ||
86 | + } | ||
87 | + | ||
88 | + .slick-loading & { | ||
89 | + visibility: hidden; | ||
90 | + } | ||
91 | + | ||
92 | + .slick-vertical & { | ||
93 | + display: block; | ||
94 | + height: auto; | ||
95 | + border: 1px solid transparent; | ||
96 | + } | ||
97 | +} | ||
98 | +.slick-arrow.slick-hidden { | ||
99 | + display: none; | ||
100 | +} |
project/slick/slick.min.js
0 → 100644
1 | +!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}}); |
project/slick/slick.scss
0 → 100644
1 | +/* Slider */ | ||
2 | + | ||
3 | +.slick-slider { | ||
4 | + position: relative; | ||
5 | + display: block; | ||
6 | + box-sizing: border-box; | ||
7 | + -webkit-touch-callout: none; | ||
8 | + -webkit-user-select: none; | ||
9 | + -khtml-user-select: none; | ||
10 | + -moz-user-select: none; | ||
11 | + -ms-user-select: none; | ||
12 | + user-select: none; | ||
13 | + -ms-touch-action: pan-y; | ||
14 | + touch-action: pan-y; | ||
15 | + -webkit-tap-highlight-color: transparent; | ||
16 | +} | ||
17 | +.slick-list { | ||
18 | + position: relative; | ||
19 | + overflow: hidden; | ||
20 | + display: block; | ||
21 | + margin: 0; | ||
22 | + padding: 0; | ||
23 | + | ||
24 | + &:focus { | ||
25 | + outline: none; | ||
26 | + } | ||
27 | + | ||
28 | + &.dragging { | ||
29 | + cursor: pointer; | ||
30 | + cursor: hand; | ||
31 | + } | ||
32 | +} | ||
33 | +.slick-slider .slick-track, | ||
34 | +.slick-slider .slick-list { | ||
35 | + -webkit-transform: translate3d(0, 0, 0); | ||
36 | + -moz-transform: translate3d(0, 0, 0); | ||
37 | + -ms-transform: translate3d(0, 0, 0); | ||
38 | + -o-transform: translate3d(0, 0, 0); | ||
39 | + transform: translate3d(0, 0, 0); | ||
40 | +} | ||
41 | + | ||
42 | +.slick-track { | ||
43 | + position: relative; | ||
44 | + left: 0; | ||
45 | + top: 0; | ||
46 | + display: block; | ||
47 | + margin-left: auto; | ||
48 | + margin-right: auto; | ||
49 | + | ||
50 | + &:before, | ||
51 | + &:after { | ||
52 | + content: ""; | ||
53 | + display: table; | ||
54 | + } | ||
55 | + | ||
56 | + &:after { | ||
57 | + clear: both; | ||
58 | + } | ||
59 | + | ||
60 | + .slick-loading & { | ||
61 | + visibility: hidden; | ||
62 | + } | ||
63 | +} | ||
64 | +.slick-slide { | ||
65 | + float: left; | ||
66 | + height: 100%; | ||
67 | + min-height: 1px; | ||
68 | + [dir="rtl"] & { | ||
69 | + float: right; | ||
70 | + } | ||
71 | + img { | ||
72 | + display: block; | ||
73 | + } | ||
74 | + &.slick-loading img { | ||
75 | + display: none; | ||
76 | + } | ||
77 | + | ||
78 | + display: none; | ||
79 | + | ||
80 | + &.dragging img { | ||
81 | + pointer-events: none; | ||
82 | + } | ||
83 | + | ||
84 | + .slick-initialized & { | ||
85 | + display: block; | ||
86 | + } | ||
87 | + | ||
88 | + .slick-loading & { | ||
89 | + visibility: hidden; | ||
90 | + } | ||
91 | + | ||
92 | + .slick-vertical & { | ||
93 | + display: block; | ||
94 | + height: auto; | ||
95 | + border: 1px solid transparent; | ||
96 | + } | ||
97 | +} | ||
98 | +.slick-arrow.slick-hidden { | ||
99 | + display: none; | ||
100 | +} |
-
Please register or login to post a comment