console.log('postemobile.it 2018-09-17 11:56:33'); function goToByScroll(id) { jQuery("html,body").animate({ scrollTop: jQuery("#" + id).offset().top - 100 }, "slow"); } !function(a, b) { a(function() { "use strict"; function a(a, b) { return null != a && null != b && a.toLowerCase() === b.toLowerCase(); } function c(a, b) { var c, d, e = a.length; if (!e || !b) return !1; for (c = b.toLowerCase(), d = 0; d < e; ++d) if (c === a[d].toLowerCase()) return !0; return !1; } function d(a) { for (var b in a) h.call(a, b) && (a[b] = new RegExp(a[b], "i")); } function e(a, b) { this.ua = a || "", this._cache = {}, this.maxPhoneWidth = b || 600; } var g, f = { mobileDetectRules: { phones: { iPhone: "\\biPhone\\b|\\biPod\\b", BlackBerry: "BlackBerry|\\bBB10\\b|rim[0-9]+", HTC: "HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m", Nexus: "Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6", Dell: "Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b", Motorola: "Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b", Samsung: "\\bSamsung\\b|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C", LG: "\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)", Sony: "SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533", Asus: "Asus.*Galaxy|PadFone.*Mobile", NokiaLumia: "Lumia [0-9]{3,4}", Micromax: "Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b", Palm: "PalmSource|Palm", Vertu: "Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature", Pantech: "PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790", Fly: "IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250", Wiko: "KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM", iMobile: "i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)", SimValley: "\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b", Wolfgang: "AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q", Alcatel: "Alcatel", Nintendo: "Nintendo 3DS", Amoi: "Amoi", INQ: "INQ", GenericPhone: "Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser" }, tablets: { iPad: "iPad|iPad.*Mobile", NexusTablet: "Android.*Nexus[\\s]+(7|9|10)", SamsungTablet: "SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587", Kindle: "Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)", SurfaceTablet: "Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)", HPTablet: "HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10", AsusTablet: "^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z", BlackBerryTablet: "PlayBook|RIM Tablet", HTCtablet: "HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410", MotorolaTablet: "xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617", NookTablet: "Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2", AcerTablet: "Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30", ToshibaTablet: "Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO", LGTablet: "\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b", FujitsuTablet: "Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b", PrestigioTablet: "PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002", LenovoTablet: "Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)", DellTablet: "Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7", YarvikTablet: "Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b", MedionTablet: "Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB", ArnovaTablet: "97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2", IntensoTablet: "INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004", IRUTablet: "M702pro", MegafonTablet: "MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b", EbodaTablet: "E-Boda (Supreme|Impresspeed|Izzycomm|Essential)", AllViewTablet: "Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)", ArchosTablet: "\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b", AinolTablet: "NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark", NokiaLumiaTablet: "Lumia 2520", SonyTablet: "Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31", PhilipsTablet: "\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b", CubeTablet: "Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT", CobyTablet: "MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010", MIDTablet: "M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10", MSITablet: "MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b", SMiTTablet: "Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)", RockChipTablet: "Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A", FlyTablet: "IQ310|Fly Vision", bqTablet: "Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris [E|M]10)|Maxwell.*Lite|Maxwell.*Plus", HuaweiTablet: "MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim", NecTablet: "\\bN-06D|\\bN-08D", PantechTablet: "Pantech.*P4100", BronchoTablet: "Broncho.*(N701|N708|N802|a710)", VersusTablet: "TOUCHPAD.*[78910]|\\bTOUCHTAB\\b", ZyncTablet: "z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900", PositivoTablet: "TB07STA|TB10STA|TB07FTA|TB10FTA", NabiTablet: "Android.*\\bNabi", KoboTablet: "Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build", DanewTablet: "DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b", TexetTablet: "NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE", PlaystationTablet: "Playstation.*(Portable|Vita)", TrekstorTablet: "ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab", PyleAudioTablet: "\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b", AdvanTablet: "Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ", DanyTechTablet: "Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1", GalapadTablet: "Android.*\\bG1\\b", MicromaxTablet: "Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b", KarbonnTablet: "Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b", AllFineTablet: "Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide", PROSCANTablet: "\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b", YONESTablet: "BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026", ChangJiaTablet: "TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503", GUTablet: "TX-A1301|TX-M9002|Q702|kf026", PointOfViewTablet: "TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10", OvermaxTablet: "OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)", HCLTablet: "HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync", DPSTablet: "DPS Dream 9|DPS Dual 7", VistureTablet: "V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10", CrestaTablet: "CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989", MediatekTablet: "\\bMT8125|MT8389|MT8135|MT8377\\b", ConcordeTablet: "Concorde([ ]+)?Tab|ConCorde ReadMan", GoCleverTablet: "GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042", ModecomTablet: "FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003", VoninoTablet: "\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b", ECSTablet: "V07OT2|TM105A|S10OT1|TR10CS1", StorexTablet: "eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab", VodafoneTablet: "SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497", EssentielBTablet: "Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2", RossMoorTablet: "RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711", iMobileTablet: "i-mobile i-note", TolinoTablet: "tolino tab [0-9.]+|tolino shine", AudioSonicTablet: "\\bC-22Q|T7-QC|T-17B|T-17P\\b", AMPETablet: "Android.* A78 ", SkkTablet: "Android.* (SKYPAD|PHOENIX|CYCLOPS)", TecnoTablet: "TECNO P9", JXDTablet: "Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b", iJoyTablet: "Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)", FX2Tablet: "FX2 PAD7|FX2 PAD10", XoroTablet: "KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151", ViewsonicTablet: "ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a", OdysTablet: "LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10", CaptivaTablet: "CAPTIVA PAD", IconbitTablet: "NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S", TeclastTablet: "T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi", OndaTablet: "\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+", JaytechTablet: "TPC-PA762", BlaupunktTablet: "Endeavour 800NG|Endeavour 1010", DigmaTablet: "\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b", EvolioTablet: "ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b", LavaTablet: "QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b", AocTablet: "MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712", MpmanTablet: "MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010", CelkonTablet: "CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b", WolderTablet: "miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b", MiTablet: "\\bMI PAD\\b|\\bHM NOTE 1W\\b", NibiruTablet: "Nibiru M1|Nibiru Jupiter One", NexoTablet: "NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI", LeaderTablet: "TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100", UbislateTablet: "UbiSlate[\\s]?7C", PocketBookTablet: "Pocketbook", KocasoTablet: "\\b(TB-1207)\\b", HisenseTablet: "\\b(F5281|E2371)\\b", Hudl: "Hudl HT7S3|Hudl 2", TelstraTablet: "T-Hub2", GenericTablet: "Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b" }, oss: { AndroidOS: "Android", BlackBerryOS: "blackberry|\\bBB10\\b|rim tablet os", PalmOS: "PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino", SymbianOS: "Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b", WindowsMobileOS: "Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;", WindowsPhoneOS: "Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;", iOS: "\\biPhone.*Mobile|\\biPod|\\biPad", MeeGoOS: "MeeGo", MaemoOS: "Maemo", JavaOS: "J2ME/|\\bMIDP\\b|\\bCLDC\\b", webOS: "webOS|hpwOS", badaOS: "\\bBada\\b", BREWOS: "BREW" }, uas: { Chrome: "\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?", Dolfin: "\\bDolfin\\b", Opera: "Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+", Skyfire: "Skyfire", Edge: "Mobile Safari/[.0-9]* Edge", IE: "IEMobile|MSIEMobile", Firefox: "fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS", Bolt: "bolt", TeaShark: "teashark", Blazer: "Blazer", Safari: "Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari", UCBrowser: "UC.*Browser|UCWEB", baiduboxapp: "baiduboxapp", baidubrowser: "baidubrowser", DiigoBrowser: "DiigoBrowser", Puffin: "Puffin", Mercury: "\\bMercury\\b", ObigoBrowser: "Obigo", NetFront: "NF-Browser", GenericBrowser: "NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger", PaleMoon: "Android.*PaleMoon|Mobile.*PaleMoon" }, props: { Mobile: "Mobile/[VER]", Build: "Build/[VER]", Version: "Version/[VER]", VendorID: "VendorID/[VER]", iPad: "iPad.*CPU[a-z ]+[VER]", iPhone: "iPhone.*CPU[a-z ]+[VER]", iPod: "iPod.*CPU[a-z ]+[VER]", Kindle: "Kindle/[VER]", Chrome: [ "Chrome/[VER]", "CriOS/[VER]", "CrMo/[VER]" ], Coast: [ "Coast/[VER]" ], Dolfin: "Dolfin/[VER]", Firefox: [ "Firefox/[VER]", "FxiOS/[VER]" ], Fennec: "Fennec/[VER]", Edge: "Edge/[VER]", IE: [ "IEMobile/[VER];", "IEMobile [VER]", "MSIE [VER];", "Trident/[0-9.]+;.*rv:[VER]" ], NetFront: "NetFront/[VER]", NokiaBrowser: "NokiaBrowser/[VER]", Opera: [ " OPR/[VER]", "Opera Mini/[VER]", "Version/[VER]" ], "Opera Mini": "Opera Mini/[VER]", "Opera Mobi": "Version/[VER]", "UC Browser": "UC Browser[VER]", MQQBrowser: "MQQBrowser/[VER]", MicroMessenger: "MicroMessenger/[VER]", baiduboxapp: "baiduboxapp/[VER]", baidubrowser: "baidubrowser/[VER]", SamsungBrowser: "SamsungBrowser/[VER]", Iron: "Iron/[VER]", Safari: [ "Version/[VER]", "Safari/[VER]" ], Skyfire: "Skyfire/[VER]", Tizen: "Tizen/[VER]", Webkit: "webkit[ /][VER]", PaleMoon: "PaleMoon/[VER]", Gecko: "Gecko/[VER]", Trident: "Trident/[VER]", Presto: "Presto/[VER]", Goanna: "Goanna/[VER]", iOS: " \\bi?OS\\b [VER][ ;]{1}", Android: "Android [VER]", BlackBerry: [ "BlackBerry[\\w]+/[VER]", "BlackBerry.*Version/[VER]", "Version/[VER]" ], BREW: "BREW [VER]", Java: "Java/[VER]", "Windows Phone OS": [ "Windows Phone OS [VER]", "Windows Phone [VER]" ], "Windows Phone": "Windows Phone [VER]", "Windows CE": "Windows CE/[VER]", "Windows NT": "Windows NT [VER]", Symbian: [ "SymbianOS/[VER]", "Symbian/[VER]" ], webOS: [ "webOS/[VER]", "hpwOS/[VER];" ] }, utils: { Bot: "Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom", MobileBot: "Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2", DesktopMode: "WPDesktop", TV: "SonyDTV|HbbTV", WebKit: "(webkit)[ /]([\\w.]+)", Console: "\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b", Watch: "SM-V700" } }, detectMobileBrowsers: { fullPattern: /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, shortPattern: /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, tabletPattern: /android|ipad|playbook|silk/i } }, h = Object.prototype.hasOwnProperty; return f.FALLBACK_PHONE = "UnknownPhone", f.FALLBACK_TABLET = "UnknownTablet", f.FALLBACK_MOBILE = "UnknownMobile", g = "isArray" in Array ? Array.isArray : function(a) { return "[object Array]" === Object.prototype.toString.call(a); }, function() { var a, b, c, e, i, j, k = f.mobileDetectRules; for (a in k.props) if (h.call(k.props, a)) { for (b = k.props[a], g(b) || (b = [ b ]), i = b.length, e = 0; e < i; ++e) 0 <= (j = (c = b[e]).indexOf("[VER]")) && (c = c.substring(0, j) + "([\\w._\\+]+)" + c.substring(j + 5)), b[e] = new RegExp(c, "i"); k.props[a] = b; } d(k.oss), d(k.phones), d(k.tablets), d(k.uas), d(k.utils), k.oss0 = { WindowsPhoneOS: k.oss.WindowsPhoneOS, WindowsMobileOS: k.oss.WindowsMobileOS }; }(), f.findMatch = function(a, b) { for (var c in a) if (h.call(a, c) && a[c].test(b)) return c; return null; }, f.findMatches = function(a, b) { var c = []; for (var d in a) h.call(a, d) && a[d].test(b) && c.push(d); return c; }, f.getVersionStr = function(a, b) { var c, d, e, g, i = f.mobileDetectRules.props; if (h.call(i, a)) for (e = (c = i[a]).length, d = 0; d < e; ++d) if (null !== (g = c[d].exec(b))) return g[1]; return null; }, f.getVersion = function(a, b) { var c = f.getVersionStr(a, b); return c ? f.prepareVersionNo(c) : NaN; }, f.prepareVersionNo = function(a) { var b; return 1 === (b = a.split(/[a-z._ \/\-]/i)).length && (a = b[0]), 1 < b.length && (a = b[0] + ".", b.shift(), a += b.join("")), Number(a); }, f.isMobileFallback = function(a) { return f.detectMobileBrowsers.fullPattern.test(a) || f.detectMobileBrowsers.shortPattern.test(a.substr(0, 4)); }, f.isTabletFallback = function(a) { return f.detectMobileBrowsers.tabletPattern.test(a); }, f.prepareDetectionCache = function(a, c, d) { var g, h, i; if (a.mobile === b) return (h = f.findMatch(f.mobileDetectRules.tablets, c)) ? (a.mobile = a.tablet = h, void (a.phone = null)) : (g = f.findMatch(f.mobileDetectRules.phones, c)) ? (a.mobile = a.phone = g, void (a.tablet = null)) : void (f.isMobileFallback(c) ? (i = e.isPhoneSized(d)) === b ? (a.mobile = f.FALLBACK_MOBILE, a.tablet = a.phone = null) : i ? (a.mobile = a.phone = f.FALLBACK_PHONE, a.tablet = null) : (a.mobile = a.tablet = f.FALLBACK_TABLET, a.phone = null) : f.isTabletFallback(c) ? (a.mobile = a.tablet = f.FALLBACK_TABLET, a.phone = null) : a.mobile = a.tablet = a.phone = null); }, f.mobileGrade = function(a) { var b = null !== a.mobile(); return a.os("iOS") && 4.3 <= a.version("iPad") || a.os("iOS") && 3.1 <= a.version("iPhone") || a.os("iOS") && 3.1 <= a.version("iPod") || 2.1 < a.version("Android") && a.is("Webkit") || 7 <= a.version("Windows Phone OS") || a.is("BlackBerry") && 6 <= a.version("BlackBerry") || a.match("Playbook.*Tablet") || 1.4 <= a.version("webOS") && a.match("Palm|Pre|Pixi") || a.match("hp.*TouchPad") || a.is("Firefox") && 12 <= a.version("Firefox") || a.is("Chrome") && a.is("AndroidOS") && 4 <= a.version("Android") || a.is("Skyfire") && 4.1 <= a.version("Skyfire") && a.is("AndroidOS") && 2.3 <= a.version("Android") || a.is("Opera") && 11 < a.version("Opera Mobi") && a.is("AndroidOS") || a.is("MeeGoOS") || a.is("Tizen") || a.is("Dolfin") && 2 <= a.version("Bada") || (a.is("UC Browser") || a.is("Dolfin")) && 2.3 <= a.version("Android") || a.match("Kindle Fire") || a.is("Kindle") && 3 <= a.version("Kindle") || a.is("AndroidOS") && a.is("NookTablet") || 11 <= a.version("Chrome") && !b || 5 <= a.version("Safari") && !b || 4 <= a.version("Firefox") && !b || 7 <= a.version("MSIE") && !b || 10 <= a.version("Opera") && !b ? "A" : a.os("iOS") && a.version("iPad") < 4.3 || a.os("iOS") && a.version("iPhone") < 3.1 || a.os("iOS") && a.version("iPod") < 3.1 || a.is("Blackberry") && 5 <= a.version("BlackBerry") && a.version("BlackBerry") < 6 || 5 <= a.version("Opera Mini") && a.version("Opera Mini") <= 6.5 && (2.3 <= a.version("Android") || a.is("iOS")) || a.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3") || 11 <= a.version("Opera Mobi") && a.is("SymbianOS") ? "B" : (a.version("BlackBerry") < 5 || a.match("MSIEMobile|Windows CE.*Mobile") || a.version("Windows Mobile"), "C"); }, f.detectOS = function(a) { return f.findMatch(f.mobileDetectRules.oss0, a) || f.findMatch(f.mobileDetectRules.oss, a); }, f.getDeviceSmallerSide = function() { return window.screen.width < window.screen.height ? window.screen.width : window.screen.height; }, e.prototype = { constructor: e, mobile: function() { return f.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.mobile; }, phone: function() { return f.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.phone; }, tablet: function() { return f.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth), this._cache.tablet; }, userAgent: function() { return this._cache.userAgent === b && (this._cache.userAgent = f.findMatch(f.mobileDetectRules.uas, this.ua)), this._cache.userAgent; }, userAgents: function() { return this._cache.userAgents === b && (this._cache.userAgents = f.findMatches(f.mobileDetectRules.uas, this.ua)), this._cache.userAgents; }, os: function() { return this._cache.os === b && (this._cache.os = f.detectOS(this.ua)), this._cache.os; }, version: function(a) { return f.getVersion(a, this.ua); }, versionStr: function(a) { return f.getVersionStr(a, this.ua); }, is: function(b) { return c(this.userAgents(), b) || a(b, this.os()) || a(b, this.phone()) || a(b, this.tablet()) || c(f.findMatches(f.mobileDetectRules.utils, this.ua), b); }, match: function(a) { return a instanceof RegExp || (a = new RegExp(a, "i")), a.test(this.ua); }, isPhoneSized: function(a) { return e.isPhoneSized(a || this.maxPhoneWidth); }, mobileGrade: function() { return this._cache.grade === b && (this._cache.grade = f.mobileGrade(this)), this._cache.grade; } }, e.isPhoneSized = "undefined" != typeof window && window.screen ? function(a) { return a < 0 ? b : f.getDeviceSmallerSide() <= a; } : function() {}, e._impl = f, e.version = "1.3.6 2017-04-05", e; }); }(function(a) { if ("undefined" != typeof module && module.exports) return function(a) { module.exports = a(); }; if ("function" == typeof define && define.amd) return define; if ("undefined" != typeof window) return function(a) { window.MobileDetect = a(); }; throw new Error("unknown environment"); }()), function(e, t) { "function" == typeof define && define.amd ? define(t) : "object" == typeof exports ? module.exports = t() : e.ScrollMagic = t(); }(this, function() { "use strict"; var e = function() {}; e.version = "2.0.5", window.addEventListener("mousewheel", function() {}); var t = "data-scrollmagic-pin-spacer"; e.Controller = function(r) { var o, s, c = "REVERSE", u = "PAUSED", f = n.defaults, d = this, h = i.extend({}, f, r), g = [], p = !1, v = 0, m = u, w = !0, y = 0, S = !0, E = function() { 0 < h.refreshInterval && (s = window.setTimeout(A, h.refreshInterval)); }, x = function() { return h.vertical ? i.get.scrollTop(h.container) : i.get.scrollLeft(h.container); }, z = function() { return h.vertical ? i.get.height(h.container) : i.get.width(h.container); }, C = this._setScrollPos = function(e) { h.vertical ? w ? window.scrollTo(i.get.scrollLeft(), e) : h.container.scrollTop = e : w ? window.scrollTo(e, i.get.scrollTop()) : h.container.scrollLeft = e; }, F = function() { if (S && p) { var e = i.type.Array(p) ? p : g.slice(0); p = !1; var t = v, n = (v = d.scrollPos()) - t; 0 !== n && (m = 0 < n ? "FORWARD" : c), m === c && e.reverse(), e.forEach(function(e) { e.update(!0); }); } }, L = function() { o = i.rAF(F); }, T = function(e) { "resize" == e.type && (y = z(), m = u), !0 !== p && (p = !0, L()); }, A = function() { if (!w && y != z()) { var e; try { e = new Event("resize", { bubbles: !1, cancelable: !1 }); } catch (t) { (e = document.createEvent("Event")).initEvent("resize", !1, !1); } h.container.dispatchEvent(e); } g.forEach(function(e) { e.refresh(); }), E(); }; this._options = h; var O = function(e) { if (e.length <= 1) return e; var t = e.slice(0); return t.sort(function(e, t) { return e.scrollOffset() > t.scrollOffset() ? 1 : -1; }), t; }; return this.addScene = function(t) { if (i.type.Array(t)) t.forEach(function(e) { d.addScene(e); }); else if (t instanceof e.Scene) if (t.controller() !== d) t.addTo(d); else if (g.indexOf(t) < 0) for (var n in g.push(t), g = O(g), t.on("shift.controller_sort", function() { g = O(g); }), h.globalSceneOptions) t[n] && t[n].call(t, h.globalSceneOptions[n]); return d; }, this.removeScene = function(e) { if (i.type.Array(e)) e.forEach(function(e) { d.removeScene(e); }); else { var t = g.indexOf(e); -1 < t && (e.off("shift.controller_sort"), g.splice(t, 1), e.remove()); } return d; }, this.updateScene = function(t, n) { return i.type.Array(t) ? t.forEach(function(e) { d.updateScene(e, n); }) : n ? t.update(!0) : !0 !== p && t instanceof e.Scene && (-1 == (p = p || []).indexOf(t) && p.push(t), p = O(p), L()), d; }, this.update = function(e) { return T({ type: "resize" }), e && F(), d; }, this.scrollTo = function(n, r) { if (i.type.Number(n)) C.call(h.container, n, r); else if (n instanceof e.Scene) n.controller() === d && d.scrollTo(n.scrollOffset(), r); else if (i.type.Function(n)) C = n; else { var o = i.get.elements(n)[0]; if (o) { for (;o.parentNode.hasAttribute(t); ) o = o.parentNode; var s = h.vertical ? "top" : "left", a = i.get.offset(h.container), l = i.get.offset(o); w || (a[s] -= d.scrollPos()), d.scrollTo(l[s] - a[s], r); } } return d; }, this.scrollPos = function(e) { return arguments.length ? (i.type.Function(e) && (x = e), d) : x.call(d); }, this.info = function(e) { var t = { size: y, vertical: h.vertical, scrollPos: v, scrollDirection: m, container: h.container, isDocument: w }; return arguments.length ? void 0 !== t[e] ? t[e] : void 0 : t; }, this.loglevel = function() { return d; }, this.enabled = function(e) { return arguments.length ? (S != e && (S = !!e, d.updateScene(g, !0)), d) : S; }, this.destroy = function(e) { window.clearTimeout(s); for (var t = g.length; t--; ) g[t].destroy(e); return h.container.removeEventListener("resize", T), h.container.removeEventListener("scroll", T), i.cAF(o), null; }, function() { for (var e in h) f.hasOwnProperty(e) || delete h[e]; if (h.container = i.get.elements(h.container)[0], !h.container) throw "ScrollMagic.Controller init failed."; (w = h.container === window || h.container === document.body || !document.body.contains(h.container)) && (h.container = window), y = z(), h.container.addEventListener("resize", T), h.container.addEventListener("scroll", T), h.refreshInterval = parseInt(h.refreshInterval) || f.refreshInterval, E(); }(), d; }; var n = { defaults: { container: window, vertical: !0, globalSceneOptions: {}, loglevel: 2, refreshInterval: 100 } }; e.Controller.addOption = function(e, t) { n.defaults[e] = t; }, e.Controller.extend = function(t) { var n = this; e.Controller = function() { return n.apply(this, arguments), this.$super = i.extend({}, this), t.apply(this, arguments) || this; }, i.extend(e.Controller, n), e.Controller.prototype = n.prototype, e.Controller.prototype.constructor = e.Controller; }, e.Scene = function(n) { var o, s, a = "BEFORE", l = "DURING", c = "AFTER", u = r.defaults, f = this, d = i.extend({}, u, n), h = a, g = 0, p = { start: 0, end: 0 }, v = 0, m = !0, y = {}; this.on = function(e, t) { return i.type.Function(t) && (e = e.trim().split(" ")).forEach(function(e) { var n = e.split("."), r = n[0], i = n[1]; "*" != r && (y[r] || (y[r] = []), y[r].push({ namespace: i || "", callback: t })); }), f; }, this.off = function(e, t) { return e && (e = e.trim().split(" ")).forEach(function(e) { var n = e.split("."), r = n[0], i = n[1] || ""; ("*" === r ? Object.keys(y) : [ r ]).forEach(function(e) { for (var n = y[e] || [], r = n.length; r--; ) { var o = n[r]; !o || i !== o.namespace && "*" !== i || t && t != o.callback || n.splice(r, 1); } n.length || delete y[e]; }); }), f; }, this.trigger = function(t, n) { if (t) { var r = t.trim().split("."), i = r[0], o = r[1], s = y[i]; s && s.forEach(function(t) { o && o !== t.namespace || t.callback.call(f, new e.Event(i, t.namespace, f, n)); }); } return f; }, f.on("change.internal", function(e) { "loglevel" !== e.what && "tweenChanges" !== e.what && ("triggerElement" === e.what ? E() : "reverse" === e.what && f.update()); }).on("shift.internal", function() { S(), f.update(); }), this.addTo = function(t) { return t instanceof e.Controller && s != t && (s && s.removeScene(f), s = t, C(), b(!0), E(!0), S(), s.info("container").addEventListener("resize", x), t.addScene(f), f.trigger("add", { controller: s }), f.update()), f; }, this.enabled = function(e) { return arguments.length ? (m != e && (m = !!e, f.update(!0)), f) : m; }, this.remove = function() { if (s) { s.info("container").removeEventListener("resize", x); var e = s; s = void 0, e.removeScene(f), f.trigger("remove"); } return f; }, this.destroy = function(e) { return f.trigger("destroy", { reset: e }), f.remove(), f.off("*.*"), null; }, this.update = function(e) { if (s) if (e) if (s.enabled() && m) { var t, n = s.info("scrollPos"); t = 0 < d.duration ? (n - p.start) / (p.end - p.start) : n >= p.start ? 1 : 0, f.trigger("update", { startPos: p.start, endPos: p.end, scrollPos: n }), f.progress(t); } else T && h === l && O(!0); else s.updateScene(f, !1); return f; }, this.refresh = function() { return b(), E(), f; }, this.progress = function(e) { if (arguments.length) { var t = !1, n = h, r = s ? s.info("scrollDirection") : "PAUSED", i = d.reverse || g <= e; if (0 === d.duration ? (t = g != e, h = 0 === (g = e < 1 && i ? 0 : 1) ? a : l) : e < 0 && h !== a && i ? (h = a, t = !(g = 0)) : 0 <= e && e < 1 && i ? (g = e, h = l, t = !0) : 1 <= e && h !== c ? (g = 1, h = c, t = !0) : h !== l || i || O(), t) { var o = { progress: g, state: h, scrollDirection: r }, u = h != n, p = function(e) { f.trigger(e, o); }; u && n !== l && (p("enter"), p(n === a ? "start" : "end")), p("progress"), u && h !== l && (p(h === a ? "start" : "end"), p("leave")); } return f; } return g; }; var T, A, S = function() { p = { start: v + d.offset }, s && d.triggerElement && (p.start -= s.info("size") * d.triggerHook), p.end = p.start + d.duration; }, b = function(e) { if (o) { var t = "duration"; F(t, o.call(f)) && !e && (f.trigger("change", { what: t, newval: d[t] }), f.trigger("shift", { reason: t })); } }, E = function(e) { var n = 0, r = d.triggerElement; if (s && r) { for (var o = s.info(), a = i.get.offset(o.container), l = o.vertical ? "top" : "left"; r.parentNode.hasAttribute(t); ) r = r.parentNode; var c = i.get.offset(r); o.isDocument || (a[l] -= s.scrollPos()), n = c[l] - a[l]; } var u = n != v; v = n, u && !e && f.trigger("shift", { reason: "triggerElementPosition" }); }, x = function() { 0 < d.triggerHook && f.trigger("shift", { reason: "containerResize" }); }, z = i.extend(r.validate, { duration: function(e) { if (i.type.String(e) && e.match(/^(\.|\d)*\d+%$/)) { var t = parseFloat(e) / 100; e = function() { return s ? s.info("size") * t : 0; }; } if (i.type.Function(e)) { o = e; try { e = parseFloat(o()); } catch (n) { e = -1; } } if (e = parseFloat(e), !i.type.Number(e) || e < 0) throw o && (o = void 0), 0; return e; } }), C = function(e) { (e = arguments.length ? [ e ] : Object.keys(z)).forEach(function(e) { var t; if (z[e]) try { t = z[e](d[e]); } catch (n) { t = u[e]; } finally { d[e] = t; } }); }, F = function(e, t) { var n = !1, r = d[e]; return d[e] != t && (d[e] = t, C(e), n = r != d[e]), n; }, L = function(e) { f[e] || (f[e] = function(t) { return arguments.length ? ("duration" === e && (o = void 0), F(e, t) && (f.trigger("change", { what: e, newval: d[e] }), -1 < r.shifts.indexOf(e) && f.trigger("shift", { reason: e })), f) : d[e]; }); }; this.controller = function() { return s; }, this.state = function() { return h; }, this.scrollOffset = function() { return p.start; }, this.triggerPosition = function() { var e = d.offset; return s && (e += d.triggerElement ? v : s.info("size") * f.triggerHook()), e; }, f.on("shift.internal", function(e) { var t = "duration" === e.reason; (h === c && t || h === l && 0 === d.duration) && O(), t && _(); }).on("progress.internal", function() { O(); }).on("add.internal", function() { _(); }).on("destroy.internal", function(e) { f.removePin(e.reset); }); var O = function(e) { if (T && s) { var t = s.info(), n = A.spacer.firstChild; if (e || h !== l) { var r = { position: A.inFlow ? "relative" : "absolute", top: 0, left: 0 }, o = i.css(n, "position") != r.position; A.pushFollowers ? 0 < d.duration && (h === c && 0 === parseFloat(i.css(A.spacer, "padding-top")) ? o = !0 : h === a && 0 === parseFloat(i.css(A.spacer, "padding-bottom")) && (o = !0)) : r[t.vertical ? "top" : "left"] = d.duration * g, i.css(n, r), o && _(); } else { "fixed" != i.css(n, "position") && (i.css(n, { position: "fixed" }), _()); var u = i.get.offset(A.spacer, !0), f = d.reverse || 0 === d.duration ? t.scrollPos - p.start : Math.round(g * d.duration * 10) / 10; u[t.vertical ? "top" : "left"] += f, i.css(A.spacer.firstChild, { top: u.top, left: u.left }); } } }, _ = function() { if (T && s && A.inFlow) { var e = h === l, t = s.info("vertical"), n = A.spacer.firstChild, r = i.isMarginCollapseType(i.css(A.spacer, "display")), o = {}; A.relSize.width || A.relSize.autoFullWidth ? e ? i.css(T, { width: i.get.width(A.spacer) }) : i.css(T, { width: "100%" }) : (o["min-width"] = i.get.width(t ? T : n, !0, !0), o.width = e ? o["min-width"] : "auto"), A.relSize.height ? e ? i.css(T, { height: i.get.height(A.spacer) - (A.pushFollowers ? d.duration : 0) }) : i.css(T, { height: "100%" }) : (o["min-height"] = i.get.height(t ? n : T, !0, !r), o.height = e ? o["min-height"] : "auto"), A.pushFollowers && (o["padding" + (t ? "Top" : "Left")] = d.duration * g, o["padding" + (t ? "Bottom" : "Right")] = d.duration * (1 - g)), i.css(A.spacer, o); } }, N = function() { s && T && h === l && !s.info("isDocument") && O(); }, P = function() { s && T && h === l && ((A.relSize.width || A.relSize.autoFullWidth) && i.get.width(window) != i.get.width(A.spacer.parentNode) || A.relSize.height && i.get.height(window) != i.get.height(A.spacer.parentNode)) && _(); }, D = function(e) { s && T && h === l && !s.info("isDocument") && (e.preventDefault(), s._setScrollPos(s.info("scrollPos") - ((e.wheelDelta || e[s.info("vertical") ? "wheelDeltaY" : "wheelDeltaX"]) / 3 || 30 * -e.detail))); }; this.setPin = function(e, n) { if (n = i.extend({}, { pushFollowers: !0, spacerClass: "scrollmagic-pin-spacer" }, n), !(e = i.get.elements(e)[0])) return f; if ("fixed" === i.css(e, "position")) return f; if (T) { if (T === e) return f; f.removePin(); } var o = (T = e).parentNode.style.display, s = [ "top", "left", "bottom", "right", "margin", "marginLeft", "marginRight", "marginTop", "marginBottom" ]; T.parentNode.style.display = "none"; var a = "absolute" != i.css(T, "position"), l = i.css(T, s.concat([ "display" ])), c = i.css(T, [ "width", "height" ]); T.parentNode.style.display = o, !a && n.pushFollowers && (n.pushFollowers = !1); var u = T.parentNode.insertBefore(document.createElement("div"), T), d = i.extend(l, { position: a ? "relative" : "absolute", boxSizing: "content-box", mozBoxSizing: "content-box", webkitBoxSizing: "content-box" }); if (a || i.extend(d, i.css(T, [ "width", "height" ])), i.css(u, d), u.setAttribute(t, ""), i.addClass(u, n.spacerClass), A = { spacer: u, relSize: { width: "%" === c.width.slice(-1), height: "%" === c.height.slice(-1), autoFullWidth: "auto" === c.width && a && i.isMarginCollapseType(l.display) }, pushFollowers: n.pushFollowers, inFlow: a }, !T.___origStyle) { T.___origStyle = {}; var h = T.style; s.concat([ "width", "height", "position", "boxSizing", "mozBoxSizing", "webkitBoxSizing" ]).forEach(function(e) { T.___origStyle[e] = h[e] || ""; }); } return A.relSize.width && i.css(u, { width: c.width }), A.relSize.height && i.css(u, { height: c.height }), u.appendChild(T), i.css(T, { position: a ? "relative" : "absolute", margin: "auto", top: "auto", left: "auto", bottom: "auto", right: "auto" }), (A.relSize.width || A.relSize.autoFullWidth) && i.css(T, { boxSizing: "border-box", mozBoxSizing: "border-box", webkitBoxSizing: "border-box" }), window.addEventListener("scroll", N), window.addEventListener("resize", N), window.addEventListener("resize", P), T.addEventListener("mousewheel", D), T.addEventListener("DOMMouseScroll", D), O(), f; }, this.removePin = function(e) { if (T) { if (h === l && O(!0), e || !s) { var n = A.spacer.firstChild; if (n.hasAttribute(t)) { var r = A.spacer.style; margins = {}, [ "margin", "marginLeft", "marginRight", "marginTop", "marginBottom" ].forEach(function(e) { margins[e] = r[e] || ""; }), i.css(n, margins); } A.spacer.parentNode.insertBefore(n, A.spacer), A.spacer.parentNode.removeChild(A.spacer), T.parentNode.hasAttribute(t) || (i.css(T, T.___origStyle), delete T.___origStyle); } window.removeEventListener("scroll", N), window.removeEventListener("resize", N), window.removeEventListener("resize", P), T.removeEventListener("mousewheel", D), T.removeEventListener("DOMMouseScroll", D), T = void 0; } return f; }; var R, k = []; return f.on("destroy.internal", function(e) { f.removeClassToggle(e.reset); }), this.setClassToggle = function(e, t) { var n = i.get.elements(e); return 0 !== n.length && i.type.String(t) && (0 < k.length && f.removeClassToggle(), R = t, k = n, f.on("enter.internal_class leave.internal_class", function(e) { var t = "enter" === e.type ? i.addClass : i.removeClass; k.forEach(function(e) { t(e, R); }); })), f; }, this.removeClassToggle = function(e) { return e && k.forEach(function(e) { i.removeClass(e, R); }), f.off("start.internal_class end.internal_class"), R = void 0, k = [], f; }, function() { for (var e in d) u.hasOwnProperty(e) || delete d[e]; for (var t in u) L(t); C(); }(), f; }; var r = { defaults: { duration: 0, offset: 0, triggerElement: void 0, triggerHook: .5, reverse: !0, loglevel: 2 }, validate: { offset: function(e) { if (e = parseFloat(e), !i.type.Number(e)) throw 0; return e; }, triggerElement: function(e) { if (e = e || void 0) { var t = i.get.elements(e)[0]; if (!t) throw 0; e = t; } return e; }, triggerHook: function(e) { var t = { onCenter: .5, onEnter: 1, onLeave: 0 }; if (i.type.Number(e)) e = Math.max(0, Math.min(parseFloat(e), 1)); else { if (!(e in t)) throw 0; e = t[e]; } return e; }, reverse: function(e) { return !!e; } }, shifts: [ "duration", "offset", "triggerHook" ] }; e.Scene.addOption = function(e, t, n, i) { e in r.defaults || (r.defaults[e] = t, r.validate[e] = n, i && r.shifts.push(e)); }, e.Scene.extend = function(t) { var n = this; e.Scene = function() { return n.apply(this, arguments), this.$super = i.extend({}, this), t.apply(this, arguments) || this; }, i.extend(e.Scene, n), e.Scene.prototype = n.prototype, e.Scene.prototype.constructor = e.Scene; }, e.Event = function(e, t, n, r) { for (var i in r = r || {}) this[i] = r[i]; return this.type = e, this.target = this.currentTarget = n, this.namespace = t || "", this.timeStamp = this.timestamp = Date.now(), this; }; var i = e._util = function(e) { var t, n = {}, r = function(e) { return parseFloat(e) || 0; }, i = function(t) { return t.currentStyle ? t.currentStyle : e.getComputedStyle(t); }, o = function(t, n, o, s) { if ((n = n === document ? e : n) === e) s = !1; else if (!f.DomElement(n)) return 0; t = t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); var a = (o ? n["offset" + t] || n["outer" + t] : n["client" + t] || n["inner" + t]) || 0; if (o && s) { var l = i(n); a += "Height" === t ? r(l.marginTop) + r(l.marginBottom) : r(l.marginLeft) + r(l.marginRight); } return a; }, s = function(e) { return e.replace(/^[^a-z]+([a-z])/g, "$1").replace(/-([a-z])/g, function(e) { return e[1].toUpperCase(); }); }; n.extend = function(e) { for (e = e || {}, t = 1; t < arguments.length; t++) if (arguments[t]) for (var n in arguments[t]) arguments[t].hasOwnProperty(n) && (e[n] = arguments[t][n]); return e; }, n.isMarginCollapseType = function(e) { return -1 < [ "block", "flex", "list-item", "table", "-webkit-box" ].indexOf(e); }; var a = 0, l = [ "ms", "moz", "webkit", "o" ], c = e.requestAnimationFrame, u = e.cancelAnimationFrame; for (t = 0; !c && t < l.length; ++t) c = e[l[t] + "RequestAnimationFrame"], u = e[l[t] + "CancelAnimationFrame"] || e[l[t] + "CancelRequestAnimationFrame"]; c || (c = function(t) { var n = new Date().getTime(), r = Math.max(0, 16 - (n - a)), i = e.setTimeout(function() { t(n + r); }, r); return a = n + r, i; }), u || (u = function(t) { e.clearTimeout(t); }), n.rAF = c.bind(e), n.cAF = u.bind(e); var f = n.type = function(e) { return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase(); }; f.String = function(e) { return "string" === f(e); }, f.Function = function(e) { return "function" === f(e); }, f.Array = function(e) { return Array.isArray(e); }, f.Number = function(e) { return !f.Array(e) && 0 <= e - parseFloat(e) + 1; }, f.DomElement = function(e) { return "object" == typeof HTMLElement ? e instanceof HTMLElement : e && "object" == typeof e && null !== e && 1 === e.nodeType && "string" == typeof e.nodeName; }; var d = n.get = {}; return d.elements = function(t) { var n = []; if (f.String(t)) try { t = document.querySelectorAll(t); } catch (r) { return n; } if ("nodelist" === f(t) || f.Array(t)) for (var i = 0, o = n.length = t.length; i < o; i++) { var s = t[i]; n[i] = f.DomElement(s) ? s : d.elements(s); } else (f.DomElement(t) || t === document || t === e) && (n = [ t ]); return n; }, d.scrollTop = function(t) { return t && "number" == typeof t.scrollTop ? t.scrollTop : e.pageYOffset || 0; }, d.scrollLeft = function(t) { return t && "number" == typeof t.scrollLeft ? t.scrollLeft : e.pageXOffset || 0; }, d.width = function(e, t, n) { return o("width", e, t, n); }, d.height = function(e, t, n) { return o("height", e, t, n); }, d.offset = function(e, t) { var n = { top: 0, left: 0 }; if (e && e.getBoundingClientRect) { var r = e.getBoundingClientRect(); n.top = r.top, n.left = r.left, t || (n.top += d.scrollTop(), n.left += d.scrollLeft()); } return n; }, n.addClass = function(e, t) { t && (e.classList ? e.classList.add(t) : e.className += " " + t); }, n.removeClass = function(e, t) { t && (e.classList ? e.classList.remove(t) : e.className = e.className.replace(RegExp("(^|\\b)" + t.split(" ").join("|") + "(\\b|$)", "gi"), " ")); }, n.css = function(e, t) { if (f.String(t)) return i(e)[s(t)]; if (f.Array(t)) { var n = {}, r = i(e); return t.forEach(function(e) { n[e] = r[s(e)]; }), n; } for (var o in t) { var a = t[o]; a == parseFloat(a) && (a += "px"), e.style[s(o)] = a; } }, n; }(window || {}); return e; }), function(e, n) { "function" == typeof define && define.amd ? define([ "ScrollMagic", "TweenMax", "TimelineMax" ], n) : "object" == typeof exports ? (require("gsap"), n(require("scrollmagic"), TweenMax, TimelineMax)) : n(e.ScrollMagic || e.jQuery && e.jQuery.ScrollMagic, e.TweenMax || e.TweenLite, e.TimelineMax || e.TimelineLite); }(this, function(e, n, r) { "use strict"; e.Scene.addOption("tweenChanges", !1, function(e) { return !!e; }), e.Scene.extend(function() { var e, t = this; t.on("progress.plugin_gsap", function() { i(); }), t.on("destroy.plugin_gsap", function(e) { t.removeTween(e.reset); }); var i = function() { if (e) { var n = t.progress(), r = t.state(); e.repeat && -1 === e.repeat() ? "DURING" === r && e.paused() ? e.play() : "DURING" === r || e.paused() || e.pause() : n != e.progress() && (0 === t.duration() ? 0 < n ? e.play() : e.reverse() : t.tweenChanges() && e.tweenTo ? e.tweenTo(n * e.duration()) : e.progress(n).pause()); } }; t.setTween = function(o, a, s) { var u; 1 < arguments.length && (arguments.length < 3 && (s = a, a = 1), o = n.to(o, a, s)); try { (u = r ? new r({ smoothChildTiming: !0 }).add(o) : o).pause(); } catch (p) { return t; } return e && t.removeTween(), e = u, o.repeat && -1 === o.repeat() && (e.repeat(-1), e.yoyo(o.yoyo())), i(), t; }, t.removeTween = function(n) { return e && (n && e.progress(0).pause(), e.kill(), e = void 0), t; }; }); }), function() { "use strict"; var e, r, a = function(t, s) { function r(e) { return Math.floor(e); } function i() { var e = x.params.autoplay, a = x.slides.eq(x.activeIndex); a.attr("data-swiper-autoplay") && (e = a.attr("data-swiper-autoplay") || x.params.autoplay), x.autoplayTimeoutId = setTimeout(function() { x.params.loop ? (x.fixLoop(), x._slideNext(), x.emit("onAutoplay", x)) : x.isEnd ? s.autoplayStopOnLast ? x.stopAutoplay() : (x._slideTo(0), x.emit("onAutoplay", x)) : (x._slideNext(), x.emit("onAutoplay", x)); }, e); } function n(a, t) { var s = e(a.target); if (!s.is(t)) if ("string" == typeof t) s = s.parents(t); else if (t.nodeType) { var r; return s.parents().each(function(e, a) { a === t && (r = t); }), r ? t : void 0; } if (0 !== s.length) return s[0]; } function o(e, a) { a = a || {}; var s = new (window.MutationObserver || window.WebkitMutationObserver)(function(e) { e.forEach(function(e) { x.onResize(!0), x.emit("onObserverUpdate", x, e); }); }); s.observe(e, { attributes: void 0 === a.attributes || a.attributes, childList: void 0 === a.childList || a.childList, characterData: void 0 === a.characterData || a.characterData }), x.observers.push(s); } function l(e) { e.originalEvent && (e = e.originalEvent); var a = e.keyCode || e.charCode; if (!x.params.allowSwipeToNext && (x.isHorizontal() && 39 === a || !x.isHorizontal() && 40 === a)) return !1; if (!x.params.allowSwipeToPrev && (x.isHorizontal() && 37 === a || !x.isHorizontal() && 38 === a)) return !1; if (!(e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase()))) { if (37 === a || 39 === a || 38 === a || 40 === a) { var t = !1; if (0 < x.container.parents("." + x.params.slideClass).length && 0 === x.container.parents("." + x.params.slideActiveClass).length) return; var s_left = window.pageXOffset, s_top = window.pageYOffset, r = window.innerWidth, i = window.innerHeight, n = x.container.offset(); x.rtl && (n.left = n.left - x.container[0].scrollLeft); for (var o = [ [ n.left, n.top ], [ n.left + x.width, n.top ], [ n.left, n.top + x.height ], [ n.left + x.width, n.top + x.height ] ], l = 0; l < o.length; l++) { var p = o[l]; p[0] >= s_left && p[0] <= s_left + r && p[1] >= s_top && p[1] <= s_top + i && (t = !0); } if (!t) return; } x.isHorizontal() ? (37 !== a && 39 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), (39 === a && !x.rtl || 37 === a && x.rtl) && x.slideNext(), (37 === a && !x.rtl || 39 === a && x.rtl) && x.slidePrev()) : (38 !== a && 40 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), 40 === a && x.slideNext(), 38 === a && x.slidePrev()), x.emit("onKeyPress", x, a); } } function d(e) { e.originalEvent && (e = e.originalEvent); var a = 0, t = x.rtl ? -1 : 1, s = function(e) { var a = 0, t = 0, s = 0, r = 0; return "detail" in e && (t = e.detail), "wheelDelta" in e && (t = -e.wheelDelta / 120), "wheelDeltaY" in e && (t = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (a = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (a = t, t = 0), s = 10 * a, r = 10 * t, "deltaY" in e && (r = e.deltaY), "deltaX" in e && (s = e.deltaX), (s || r) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, r *= 40) : (s *= 800, r *= 800)), s && !a && (a = s < 1 ? -1 : 1), r && !t && (t = r < 1 ? -1 : 1), { spinX: a, spinY: t, pixelX: s, pixelY: r }; }(e); if (x.params.mousewheelForceToAxis) if (x.isHorizontal()) { if (!(Math.abs(s.pixelX) > Math.abs(s.pixelY))) return; a = s.pixelX * t; } else { if (!(Math.abs(s.pixelY) > Math.abs(s.pixelX))) return; a = s.pixelY; } else a = Math.abs(s.pixelX) > Math.abs(s.pixelY) ? -s.pixelX * t : -s.pixelY; if (0 !== a) { if (x.params.mousewheelInvert && (a = -a), x.params.freeMode) { var r = x.getWrapperTranslate() + a * x.params.mousewheelSensitivity, i = x.isBeginning, n = x.isEnd; if (r >= x.minTranslate() && (r = x.minTranslate()), r <= x.maxTranslate() && (r = x.maxTranslate()), x.setWrapperTransition(0), x.setWrapperTranslate(r), x.updateProgress(), x.updateActiveIndex(), (!i && x.isBeginning || !n && x.isEnd) && x.updateClasses(), x.params.freeModeSticky ? (clearTimeout(x.mousewheel.timeout), x.mousewheel.timeout = setTimeout(function() { x.slideReset(); }, 300)) : x.params.lazyLoading && x.lazy && x.lazy.load(), x.emit("onScroll", x, e), x.params.autoplay && x.params.autoplayDisableOnInteraction && x.stopAutoplay(), 0 === r || r === x.maxTranslate()) return; } else { if (60 < new window.Date().getTime() - x.mousewheel.lastScrollTime) if (a < 0) if (x.isEnd && !x.params.loop || x.animating) { if (x.params.mousewheelReleaseOnEdges) return !0; } else x.slideNext(), x.emit("onScroll", x, e); else if (x.isBeginning && !x.params.loop || x.animating) { if (x.params.mousewheelReleaseOnEdges) return !0; } else x.slidePrev(), x.emit("onScroll", x, e); x.mousewheel.lastScrollTime = new window.Date().getTime(); } return e.preventDefault ? e.preventDefault() : e.returnValue = !1, !1; } } function m(a, t) { a = e(a); var s, r, i, n = x.rtl ? -1 : 1; s = a.attr("data-swiper-parallax") || "0", r = a.attr("data-swiper-parallax-x"), i = a.attr("data-swiper-parallax-y"), r || i ? (r = r || "0", i = i || "0") : x.isHorizontal() ? (r = s, i = "0") : (i = s, r = "0"), r = 0 <= r.indexOf("%") ? parseInt(r, 10) * t * n + "%" : r * t * n + "px", i = 0 <= i.indexOf("%") ? parseInt(i, 10) * t + "%" : i * t + "px", a.transform("translate3d(" + r + ", " + i + ",0px)"); } function u(e) { return 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), e; } if (!(this instanceof a)) return new a(t, s); var c = { direction: "horizontal", touchEventsTarget: "container", initialSlide: 0, speed: 300, autoplay: !1, autoplayDisableOnInteraction: !0, autoplayStopOnLast: !1, iOSEdgeSwipeDetection: !1, iOSEdgeSwipeThreshold: 20, freeMode: !1, freeModeMomentum: !0, freeModeMomentumRatio: 1, freeModeMomentumBounce: !0, freeModeMomentumBounceRatio: 1, freeModeMomentumVelocityRatio: 1, freeModeSticky: !1, freeModeMinimumVelocity: .02, autoHeight: !1, setWrapperSize: !1, virtualTranslate: !1, effect: "slide", coverflow: { rotate: 50, stretch: 0, depth: 100, modifier: 1, slideShadows: !0 }, flip: { slideShadows: !0, limitRotation: !0 }, cube: { slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: .94 }, fade: { crossFade: !1 }, parallax: !1, zoom: !1, zoomMax: 3, zoomMin: 1, zoomToggle: !0, scrollbar: null, scrollbarHide: !0, scrollbarDraggable: !1, scrollbarSnapOnRelease: !1, keyboardControl: !1, mousewheelControl: !1, mousewheelReleaseOnEdges: !1, mousewheelInvert: !1, mousewheelForceToAxis: !1, mousewheelSensitivity: 1, mousewheelEventsTarged: "container", hashnav: !1, hashnavWatchState: !1, history: !1, replaceState: !1, breakpoints: void 0, spaceBetween: 0, slidesPerView: 1, slidesPerColumn: 1, slidesPerColumnFill: "column", slidesPerGroup: 1, centeredSlides: !1, slidesOffsetBefore: 0, slidesOffsetAfter: 0, roundLengths: !1, touchRatio: 1, touchAngle: 45, simulateTouch: !0, shortSwipes: !0, longSwipes: !0, longSwipesRatio: .5, longSwipesMs: 300, followFinger: !0, onlyExternal: !1, threshold: 0, touchMoveStopPropagation: !0, touchReleaseOnEdges: !1, uniqueNavElements: !0, pagination: null, paginationElement: "span", paginationClickable: !1, paginationHide: !1, paginationBulletRender: null, paginationProgressRender: null, paginationFractionRender: null, paginationCustomRender: null, paginationType: "bullets", resistance: !0, resistanceRatio: .85, nextButton: null, prevButton: null, watchSlidesProgress: !1, watchSlidesVisibility: !1, grabCursor: !1, preventClicks: !0, preventClicksPropagation: !0, slideToClickedSlide: !1, lazyLoading: !1, lazyLoadingInPrevNext: !1, lazyLoadingInPrevNextAmount: 1, lazyLoadingOnTransitionStart: !1, preloadImages: !0, updateOnImagesReady: !0, loop: !1, loopAdditionalSlides: 0, loopedSlides: null, control: void 0, controlInverse: !1, controlBy: "slide", normalizeSlideIndex: !0, allowSwipeToPrev: !0, allowSwipeToNext: !0, swipeHandler: null, noSwiping: !0, noSwipingClass: "swiper-no-swiping", passiveListeners: !0, containerModifierClass: "swiper-container-", slideClass: "swiper-slide", slideActiveClass: "swiper-slide-active", slideDuplicateActiveClass: "swiper-slide-duplicate-active", slideVisibleClass: "swiper-slide-visible", slideDuplicateClass: "swiper-slide-duplicate", slideNextClass: "swiper-slide-next", slideDuplicateNextClass: "swiper-slide-duplicate-next", slidePrevClass: "swiper-slide-prev", slideDuplicatePrevClass: "swiper-slide-duplicate-prev", wrapperClass: "swiper-wrapper", bulletClass: "swiper-pagination-bullet", bulletActiveClass: "swiper-pagination-bullet-active", buttonDisabledClass: "swiper-button-disabled", paginationCurrentClass: "swiper-pagination-current", paginationTotalClass: "swiper-pagination-total", paginationHiddenClass: "swiper-pagination-hidden", paginationProgressbarClass: "swiper-pagination-progressbar", paginationClickableClass: "swiper-pagination-clickable", paginationModifierClass: "swiper-pagination-", lazyLoadingClass: "swiper-lazy", lazyStatusLoadingClass: "swiper-lazy-loading", lazyStatusLoadedClass: "swiper-lazy-loaded", lazyPreloaderClass: "swiper-lazy-preloader", notificationClass: "swiper-notification", preloaderClass: "preloader", zoomContainerClass: "swiper-zoom-container", observer: !1, observeParents: !1, a11y: !1, prevSlideMessage: "Previous slide", nextSlideMessage: "Next slide", firstSlideMessage: "This is the first slide", lastSlideMessage: "This is the last slide", paginationBulletMessage: "Go to slide {{index}}", runCallbacksOnInit: !0 }, g = s && s.virtualTranslate; s = s || {}; var h = {}; for (var v in s) if ("object" != typeof s[v] || null === s[v] || s[v].nodeType || s[v] === window || s[v] === document || "undefined" != typeof Dom7 && s[v] instanceof Dom7 || "undefined" != typeof jQuery && s[v] instanceof jQuery) h[v] = s[v]; else for (var f in h[v] = {}, s[v]) h[v][f] = s[v][f]; for (var w in c) if (void 0 === s[w]) s[w] = c[w]; else if ("object" == typeof s[w]) for (var y in c[w]) void 0 === s[w][y] && (s[w][y] = c[w][y]); var x = this; if (x.params = s, x.originalParams = h, x.classNames = [], void 0 !== e && "undefined" != typeof Dom7 && (e = Dom7), (void 0 !== e || (e = "undefined" == typeof Dom7 ? window.Dom7 || window.Zepto || window.jQuery : Dom7)) && (x.$ = e, x.currentBreakpoint = void 0, x.getActiveBreakpoint = function() { if (!x.params.breakpoints) return !1; var e, a = !1, t = []; for (e in x.params.breakpoints) x.params.breakpoints.hasOwnProperty(e) && t.push(e); t.sort(function(e, a) { return parseInt(e, 10) > parseInt(a, 10); }); for (var s = 0; s < t.length; s++) (e = t[s]) >= window.innerWidth && !a && (a = e); return a || "max"; }, x.setBreakpoint = function() { var e = x.getActiveBreakpoint(); if (e && x.currentBreakpoint !== e) { var a = e in x.params.breakpoints ? x.params.breakpoints[e] : x.originalParams, t = x.params.loop && a.slidesPerView !== x.params.slidesPerView; for (var s in a) x.params[s] = a[s]; x.currentBreakpoint = e, t && x.destroyLoop && x.reLoop(!0); } }, x.params.breakpoints && x.setBreakpoint(), x.container = e(t), 0 !== x.container.length)) { if (1 < x.container.length) { var T = []; return x.container.each(function() { T.push(new a(this, s)); }), T; } (x.container[0].swiper = x).container.data("swiper", x), x.classNames.push(x.params.containerModifierClass + x.params.direction), x.params.freeMode && x.classNames.push(x.params.containerModifierClass + "free-mode"), x.support.flexbox || (x.classNames.push(x.params.containerModifierClass + "no-flexbox"), x.params.slidesPerColumn = 1), x.params.autoHeight && x.classNames.push(x.params.containerModifierClass + "autoheight"), (x.params.parallax || x.params.watchSlidesVisibility) && (x.params.watchSlidesProgress = !0), x.params.touchReleaseOnEdges && (x.params.resistanceRatio = 0), 0 <= [ "cube", "coverflow", "flip" ].indexOf(x.params.effect) && (x.support.transforms3d ? (x.params.watchSlidesProgress = !0, x.classNames.push(x.params.containerModifierClass + "3d")) : x.params.effect = "slide"), "slide" !== x.params.effect && x.classNames.push(x.params.containerModifierClass + x.params.effect), "cube" === x.params.effect && (x.params.resistanceRatio = 0, x.params.slidesPerView = 1, x.params.slidesPerColumn = 1, x.params.slidesPerGroup = 1, x.params.centeredSlides = !1, x.params.spaceBetween = 0, x.params.virtualTranslate = !0), "fade" !== x.params.effect && "flip" !== x.params.effect || (x.params.slidesPerView = 1, x.params.slidesPerColumn = 1, x.params.slidesPerGroup = 1, x.params.watchSlidesProgress = !0, void (x.params.spaceBetween = 0) === g && (x.params.virtualTranslate = !0)), x.params.grabCursor && x.support.touch && (x.params.grabCursor = !1), x.wrapper = x.container.children("." + x.params.wrapperClass), x.params.pagination && (x.paginationContainer = e(x.params.pagination), x.params.uniqueNavElements && "string" == typeof x.params.pagination && 1 < x.paginationContainer.length && 1 === x.container.find(x.params.pagination).length && (x.paginationContainer = x.container.find(x.params.pagination)), "bullets" === x.params.paginationType && x.params.paginationClickable ? x.paginationContainer.addClass(x.params.paginationModifierClass + "clickable") : x.params.paginationClickable = !1, x.paginationContainer.addClass(x.params.paginationModifierClass + x.params.paginationType)), (x.params.nextButton || x.params.prevButton) && (x.params.nextButton && (x.nextButton = e(x.params.nextButton), x.params.uniqueNavElements && "string" == typeof x.params.nextButton && 1 < x.nextButton.length && 1 === x.container.find(x.params.nextButton).length && (x.nextButton = x.container.find(x.params.nextButton))), x.params.prevButton && (x.prevButton = e(x.params.prevButton), x.params.uniqueNavElements && "string" == typeof x.params.prevButton && 1 < x.prevButton.length && 1 === x.container.find(x.params.prevButton).length && (x.prevButton = x.container.find(x.params.prevButton)))), x.isHorizontal = function() { return "horizontal" === x.params.direction; }, x.rtl = x.isHorizontal() && ("rtl" === x.container[0].dir.toLowerCase() || "rtl" === x.container.css("direction")), x.rtl && x.classNames.push(x.params.containerModifierClass + "rtl"), x.rtl && (x.wrongRTL = "-webkit-box" === x.wrapper.css("display")), 1 < x.params.slidesPerColumn && x.classNames.push(x.params.containerModifierClass + "multirow"), x.device.android && x.classNames.push(x.params.containerModifierClass + "android"), x.container.addClass(x.classNames.join(" ")), x.translate = 0, x.progress = 0, x.velocity = 0, x.lockSwipeToNext = function() { (x.params.allowSwipeToNext = !1) === x.params.allowSwipeToPrev && x.params.grabCursor && x.unsetGrabCursor(); }, x.lockSwipeToPrev = function() { (x.params.allowSwipeToPrev = !1) === x.params.allowSwipeToNext && x.params.grabCursor && x.unsetGrabCursor(); }, x.lockSwipes = function() { x.params.allowSwipeToNext = x.params.allowSwipeToPrev = !1, x.params.grabCursor && x.unsetGrabCursor(); }, x.unlockSwipeToNext = function() { (x.params.allowSwipeToNext = !0) === x.params.allowSwipeToPrev && x.params.grabCursor && x.setGrabCursor(); }, x.unlockSwipeToPrev = function() { (x.params.allowSwipeToPrev = !0) === x.params.allowSwipeToNext && x.params.grabCursor && x.setGrabCursor(); }, x.unlockSwipes = function() { x.params.allowSwipeToNext = x.params.allowSwipeToPrev = !0, x.params.grabCursor && x.setGrabCursor(); }, x.setGrabCursor = function(e) { x.container[0].style.cursor = "move", x.container[0].style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", x.container[0].style.cursor = e ? "-moz-grabbin" : "-moz-grab", x.container[0].style.cursor = e ? "grabbing" : "grab"; }, x.unsetGrabCursor = function() { x.container[0].style.cursor = ""; }, x.params.grabCursor && x.setGrabCursor(), x.imagesToLoad = [], x.imagesLoaded = 0, x.loadImage = function(e, a, t, s, r, i) { function n() { i && i(); } var o; e.complete && r ? n() : a ? ((o = new window.Image()).onload = n, o.onerror = n, s && (o.sizes = s), t && (o.srcset = t), a && (o.src = a)) : n(); }, x.preloadImages = function() { function e() { null != x && x && (void 0 !== x.imagesLoaded && x.imagesLoaded++, x.imagesLoaded === x.imagesToLoad.length && (x.params.updateOnImagesReady && x.update(), x.emit("onImagesReady", x))); } x.imagesToLoad = x.container.find("img"); for (var a = 0; a < x.imagesToLoad.length; a++) x.loadImage(x.imagesToLoad[a], x.imagesToLoad[a].currentSrc || x.imagesToLoad[a].getAttribute("src"), x.imagesToLoad[a].srcset || x.imagesToLoad[a].getAttribute("srcset"), x.imagesToLoad[a].sizes || x.imagesToLoad[a].getAttribute("sizes"), !0, e); }, x.autoplayTimeoutId = void 0, x.autoplaying = !1, x.autoplayPaused = !1, x.startAutoplay = function() { return void 0 === x.autoplayTimeoutId && !!x.params.autoplay && !x.autoplaying && (x.autoplaying = !0, x.emit("onAutoplayStart", x), void i()); }, x.stopAutoplay = function(e) { x.autoplayTimeoutId && (x.autoplayTimeoutId && clearTimeout(x.autoplayTimeoutId), x.autoplaying = !1, x.autoplayTimeoutId = void 0, x.emit("onAutoplayStop", x)); }, x.pauseAutoplay = function(e) { x.autoplayPaused || (x.autoplayTimeoutId && clearTimeout(x.autoplayTimeoutId), x.autoplayPaused = !0, 0 === e ? (x.autoplayPaused = !1, i()) : x.wrapper.transitionEnd(function() { x && (x.autoplayPaused = !1, x.autoplaying ? i() : x.stopAutoplay()); })); }, x.minTranslate = function() { return -x.snapGrid[0]; }, x.maxTranslate = function() { return -x.snapGrid[x.snapGrid.length - 1]; }, x.updateAutoHeight = function() { var e, a = [], t = 0; if ("auto" !== x.params.slidesPerView && 1 < x.params.slidesPerView) for (e = 0; e < Math.ceil(x.params.slidesPerView); e++) { var s = x.activeIndex + e; if (s > x.slides.length) break; a.push(x.slides.eq(s)[0]); } else a.push(x.slides.eq(x.activeIndex)[0]); for (e = 0; e < a.length; e++) if (void 0 !== a[e]) { var r = a[e].offsetHeight; t = t < r ? r : t; } t && x.wrapper.css("height", t + "px"); }, x.updateContainerSize = function() { var e, a; e = void 0 !== x.params.width ? x.params.width : x.container[0].clientWidth, a = void 0 !== x.params.height ? x.params.height : x.container[0].clientHeight, 0 === e && x.isHorizontal() || 0 === a && !x.isHorizontal() || (e = e - parseInt(x.container.css("padding-left"), 10) - parseInt(x.container.css("padding-right"), 10), a = a - parseInt(x.container.css("padding-top"), 10) - parseInt(x.container.css("padding-bottom"), 10), x.width = e, x.height = a, x.size = x.isHorizontal() ? x.width : x.height); }, x.updateSlidesSize = function() { x.slides = x.wrapper.children("." + x.params.slideClass), x.snapGrid = [], x.slidesGrid = [], x.slidesSizesGrid = []; var e, a = x.params.spaceBetween, t = -x.params.slidesOffsetBefore, s = 0, i = 0; if (void 0 !== x.size) { var n; "string" == typeof a && 0 <= a.indexOf("%") && (a = parseFloat(a.replace("%", "")) / 100 * x.size), x.virtualSize = -a, x.rtl ? x.slides.css({ marginLeft: "", marginTop: "" }) : x.slides.css({ marginRight: "", marginBottom: "" }), 1 < x.params.slidesPerColumn && (n = Math.floor(x.slides.length / x.params.slidesPerColumn) === x.slides.length / x.params.slidesPerColumn ? x.slides.length : Math.ceil(x.slides.length / x.params.slidesPerColumn) * x.params.slidesPerColumn, "auto" !== x.params.slidesPerView && "row" === x.params.slidesPerColumnFill && (n = Math.max(n, x.params.slidesPerView * x.params.slidesPerColumn))); var o, h, l = x.params.slidesPerColumn, p = n / l, d = p - (x.params.slidesPerColumn * p - x.slides.length); for (e = 0; e < x.slides.length; e++) { o = 0; var u, c, g, m = x.slides.eq(e); if (1 < x.params.slidesPerColumn) "column" === x.params.slidesPerColumnFill ? (g = e - (c = Math.floor(e / l)) * l, (d < c || c === d && g === l - 1) && ++g >= l && (g = 0, c++), u = c + g * n / l, m.css({ "-webkit-box-ordinal-group": u, "-moz-box-ordinal-group": u, "-ms-flex-order": u, "-webkit-order": u, order: u })) : c = e - (g = Math.floor(e / p)) * p, m.css("margin-" + (x.isHorizontal() ? "top" : "left"), 0 !== g && x.params.spaceBetween && x.params.spaceBetween + "px").attr("data-swiper-column", c).attr("data-swiper-row", g); "none" !== m.css("display") && ("auto" === x.params.slidesPerView ? (o = x.isHorizontal() ? m.outerWidth(!0) : m.outerHeight(!0), x.params.roundLengths && (o = r(o))) : (o = (x.size - (x.params.slidesPerView - 1) * a) / x.params.slidesPerView, x.params.roundLengths && (o = r(o)), x.isHorizontal() ? x.slides[e].style.width = o + "px" : x.slides[e].style.height = o + "px"), x.slides[e].swiperSlideSize = o, x.slidesSizesGrid.push(o), x.params.centeredSlides ? (t = t + o / 2 + s / 2 + a, 0 === s && 0 !== e && (t = t - x.size / 2 - a), 0 === e && (t = t - x.size / 2 - a), Math.abs(t) < .001 && (t = 0), i % x.params.slidesPerGroup == 0 && x.snapGrid.push(t), x.slidesGrid.push(t)) : (i % x.params.slidesPerGroup == 0 && x.snapGrid.push(t), x.slidesGrid.push(t), t = t + o + a), x.virtualSize += o + a, s = o, i++); } if (x.virtualSize = Math.max(x.virtualSize, x.size) + x.params.slidesOffsetAfter, x.rtl && x.wrongRTL && ("slide" === x.params.effect || "coverflow" === x.params.effect) && x.wrapper.css({ width: x.virtualSize + x.params.spaceBetween + "px" }), x.support.flexbox && !x.params.setWrapperSize || (x.isHorizontal() ? x.wrapper.css({ width: x.virtualSize + x.params.spaceBetween + "px" }) : x.wrapper.css({ height: x.virtualSize + x.params.spaceBetween + "px" })), 1 < x.params.slidesPerColumn && (x.virtualSize = (o + x.params.spaceBetween) * n, x.virtualSize = Math.ceil(x.virtualSize / x.params.slidesPerColumn) - x.params.spaceBetween, x.isHorizontal() ? x.wrapper.css({ width: x.virtualSize + x.params.spaceBetween + "px" }) : x.wrapper.css({ height: x.virtualSize + x.params.spaceBetween + "px" }), x.params.centeredSlides)) { for (h = [], e = 0; e < x.snapGrid.length; e++) x.snapGrid[e] < x.virtualSize + x.snapGrid[0] && h.push(x.snapGrid[e]); x.snapGrid = h; } if (!x.params.centeredSlides) { for (h = [], e = 0; e < x.snapGrid.length; e++) x.snapGrid[e] <= x.virtualSize - x.size && h.push(x.snapGrid[e]); x.snapGrid = h, 1 < Math.floor(x.virtualSize - x.size) - Math.floor(x.snapGrid[x.snapGrid.length - 1]) && x.snapGrid.push(x.virtualSize - x.size); } 0 === x.snapGrid.length && (x.snapGrid = [ 0 ]), 0 !== x.params.spaceBetween && (x.isHorizontal() ? x.rtl ? x.slides.css({ marginLeft: a + "px" }) : x.slides.css({ marginRight: a + "px" }) : x.slides.css({ marginBottom: a + "px" })), x.params.watchSlidesProgress && x.updateSlidesOffset(); } }, x.updateSlidesOffset = function() { for (var e = 0; e < x.slides.length; e++) x.slides[e].swiperSlideOffset = x.isHorizontal() ? x.slides[e].offsetLeft : x.slides[e].offsetTop; }, x.currentSlidesPerView = function() { var e, a, t = 1; if (x.params.centeredSlides) { var s, r = x.slides[x.activeIndex].swiperSlideSize; for (e = x.activeIndex + 1; e < x.slides.length; e++) x.slides[e] && !s && (t++, (r += x.slides[e].swiperSlideSize) > x.size && (s = !0)); for (a = x.activeIndex - 1; 0 <= a; a--) x.slides[a] && !s && (t++, (r += x.slides[a].swiperSlideSize) > x.size && (s = !0)); } else for (e = x.activeIndex + 1; e < x.slides.length; e++) x.slidesGrid[e] - x.slidesGrid[x.activeIndex] < x.size && t++; return t; }, x.updateSlidesProgress = function(e) { if (void 0 === e && (e = x.translate || 0), 0 !== x.slides.length) { void 0 === x.slides[0].swiperSlideOffset && x.updateSlidesOffset(); var a = -e; x.rtl && (a = e), x.slides.removeClass(x.params.slideVisibleClass); for (var t = 0; t < x.slides.length; t++) { var s = x.slides[t], r = (a + (x.params.centeredSlides ? x.minTranslate() : 0) - s.swiperSlideOffset) / (s.swiperSlideSize + x.params.spaceBetween); if (x.params.watchSlidesVisibility) { var i = -(a - s.swiperSlideOffset), n = i + x.slidesSizesGrid[t]; (0 <= i && i < x.size || 0 < n && n <= x.size || i <= 0 && n >= x.size) && x.slides.eq(t).addClass(x.params.slideVisibleClass); } s.progress = x.rtl ? -r : r; } } }, x.updateProgress = function(e) { void 0 === e && (e = x.translate || 0); var a = x.maxTranslate() - x.minTranslate(), t = x.isBeginning, s = x.isEnd; 0 === a ? (x.progress = 0, x.isBeginning = x.isEnd = !0) : (x.progress = (e - x.minTranslate()) / a, x.isBeginning = x.progress <= 0, x.isEnd = 1 <= x.progress), x.isBeginning && !t && x.emit("onReachBeginning", x), x.isEnd && !s && x.emit("onReachEnd", x), x.params.watchSlidesProgress && x.updateSlidesProgress(e), x.emit("onProgress", x, x.progress); }, x.updateActiveIndex = function() { var e, a, t, s = x.rtl ? x.translate : -x.translate; for (a = 0; a < x.slidesGrid.length; a++) void 0 !== x.slidesGrid[a + 1] ? s >= x.slidesGrid[a] && s < x.slidesGrid[a + 1] - (x.slidesGrid[a + 1] - x.slidesGrid[a]) / 2 ? e = a : s >= x.slidesGrid[a] && s < x.slidesGrid[a + 1] && (e = a + 1) : s >= x.slidesGrid[a] && (e = a); x.params.normalizeSlideIndex && (e < 0 || void 0 === e) && (e = 0), (t = Math.floor(e / x.params.slidesPerGroup)) >= x.snapGrid.length && (t = x.snapGrid.length - 1), e !== x.activeIndex && (x.snapIndex = t, x.previousIndex = x.activeIndex, x.activeIndex = e, x.updateClasses(), x.updateRealIndex()); }, x.updateRealIndex = function() { x.realIndex = parseInt(x.slides.eq(x.activeIndex).attr("data-swiper-slide-index") || x.activeIndex, 10); }, x.updateClasses = function() { x.slides.removeClass(x.params.slideActiveClass + " " + x.params.slideNextClass + " " + x.params.slidePrevClass + " " + x.params.slideDuplicateActiveClass + " " + x.params.slideDuplicateNextClass + " " + x.params.slideDuplicatePrevClass); var a = x.slides.eq(x.activeIndex); a.addClass(x.params.slideActiveClass), s.loop && (a.hasClass(x.params.slideDuplicateClass) ? x.wrapper.children("." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + x.realIndex + '"]').addClass(x.params.slideDuplicateActiveClass) : x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + x.realIndex + '"]').addClass(x.params.slideDuplicateActiveClass)); var t = a.next("." + x.params.slideClass).addClass(x.params.slideNextClass); x.params.loop && 0 === t.length && (t = x.slides.eq(0)).addClass(x.params.slideNextClass); var r = a.prev("." + x.params.slideClass).addClass(x.params.slidePrevClass); if (x.params.loop && 0 === r.length && (r = x.slides.eq(-1)).addClass(x.params.slidePrevClass), s.loop && (t.hasClass(x.params.slideDuplicateClass) ? x.wrapper.children("." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicateNextClass) : x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicateNextClass), r.hasClass(x.params.slideDuplicateClass) ? x.wrapper.children("." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + r.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicatePrevClass) : x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + r.attr("data-swiper-slide-index") + '"]').addClass(x.params.slideDuplicatePrevClass)), x.paginationContainer && 0 < x.paginationContainer.length) { var i, n = x.params.loop ? Math.ceil((x.slides.length - 2 * x.loopedSlides) / x.params.slidesPerGroup) : x.snapGrid.length; if (x.params.loop ? ((i = Math.ceil((x.activeIndex - x.loopedSlides) / x.params.slidesPerGroup)) > x.slides.length - 1 - 2 * x.loopedSlides && (i -= x.slides.length - 2 * x.loopedSlides), n - 1 < i && (i -= n), i < 0 && "bullets" !== x.params.paginationType && (i = n + i)) : i = void 0 !== x.snapIndex ? x.snapIndex : x.activeIndex || 0, "bullets" === x.params.paginationType && x.bullets && 0 < x.bullets.length && (x.bullets.removeClass(x.params.bulletActiveClass), 1 < x.paginationContainer.length ? x.bullets.each(function() { e(this).index() === i && e(this).addClass(x.params.bulletActiveClass); }) : x.bullets.eq(i).addClass(x.params.bulletActiveClass)), "fraction" === x.params.paginationType && (x.paginationContainer.find("." + x.params.paginationCurrentClass).text(i + 1), x.paginationContainer.find("." + x.params.paginationTotalClass).text(n)), "progress" === x.params.paginationType) { var o = (i + 1) / n, l = o, p = 1; x.isHorizontal() || (p = o, l = 1), x.paginationContainer.find("." + x.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX(" + l + ") scaleY(" + p + ")").transition(x.params.speed); } "custom" === x.params.paginationType && x.params.paginationCustomRender && (x.paginationContainer.html(x.params.paginationCustomRender(x, i + 1, n)), x.emit("onPaginationRendered", x, x.paginationContainer[0])); } x.params.loop || (x.params.prevButton && x.prevButton && 0 < x.prevButton.length && (x.isBeginning ? (x.prevButton.addClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.disable(x.prevButton)) : (x.prevButton.removeClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.enable(x.prevButton))), x.params.nextButton && x.nextButton && 0 < x.nextButton.length && (x.isEnd ? (x.nextButton.addClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.disable(x.nextButton)) : (x.nextButton.removeClass(x.params.buttonDisabledClass), x.params.a11y && x.a11y && x.a11y.enable(x.nextButton)))); }, x.updatePagination = function() { if (x.params.pagination && x.paginationContainer && 0 < x.paginationContainer.length) { var e = ""; if ("bullets" === x.params.paginationType) { for (var a = x.params.loop ? Math.ceil((x.slides.length - 2 * x.loopedSlides) / x.params.slidesPerGroup) : x.snapGrid.length, t = 0; t < a; t++) e += x.params.paginationBulletRender ? x.params.paginationBulletRender(x, t, x.params.bulletClass) : "<" + x.params.paginationElement + ' class="' + x.params.bulletClass + '">"; x.paginationContainer.html(e), x.bullets = x.paginationContainer.find("." + x.params.bulletClass), x.params.paginationClickable && x.params.a11y && x.a11y && x.a11y.initPagination(); } "fraction" === x.params.paginationType && (e = x.params.paginationFractionRender ? x.params.paginationFractionRender(x, x.params.paginationCurrentClass, x.params.paginationTotalClass) : ' / ', x.paginationContainer.html(e)), "progress" === x.params.paginationType && (e = x.params.paginationProgressRender ? x.params.paginationProgressRender(x, x.params.paginationProgressbarClass) : '', x.paginationContainer.html(e)), "custom" !== x.params.paginationType && x.emit("onPaginationRendered", x, x.paginationContainer[0]); } }, x.update = function(e) { function a() { x.rtl, x.translate, t = Math.min(Math.max(x.translate, x.maxTranslate()), x.minTranslate()), x.setWrapperTranslate(t), x.updateActiveIndex(), x.updateClasses(); } var t; x && (x.updateContainerSize(), x.updateSlidesSize(), x.updateProgress(), x.updatePagination(), x.updateClasses(), x.params.scrollbar && x.scrollbar && x.scrollbar.set(), e ? (x.controller && x.controller.spline && (x.controller.spline = void 0), x.params.freeMode ? (a(), x.params.autoHeight && x.updateAutoHeight()) : (("auto" === x.params.slidesPerView || 1 < x.params.slidesPerView) && x.isEnd && !x.params.centeredSlides ? x.slideTo(x.slides.length - 1, 0, !1, !0) : x.slideTo(x.activeIndex, 0, !1, !0)) || a()) : x.params.autoHeight && x.updateAutoHeight()); }, x.onResize = function(e) { x.params.onBeforeResize && x.params.onBeforeResize(x), x.params.breakpoints && x.setBreakpoint(); var a = x.params.allowSwipeToPrev, t = x.params.allowSwipeToNext; x.params.allowSwipeToPrev = x.params.allowSwipeToNext = !0, x.updateContainerSize(), x.updateSlidesSize(), ("auto" === x.params.slidesPerView || x.params.freeMode || e) && x.updatePagination(), x.params.scrollbar && x.scrollbar && x.scrollbar.set(), x.controller && x.controller.spline && (x.controller.spline = void 0); var s = !1; if (x.params.freeMode) { var r = Math.min(Math.max(x.translate, x.maxTranslate()), x.minTranslate()); x.setWrapperTranslate(r), x.updateActiveIndex(), x.updateClasses(), x.params.autoHeight && x.updateAutoHeight(); } else x.updateClasses(), s = ("auto" === x.params.slidesPerView || 1 < x.params.slidesPerView) && x.isEnd && !x.params.centeredSlides ? x.slideTo(x.slides.length - 1, 0, !1, !0) : x.slideTo(x.activeIndex, 0, !1, !0); x.params.lazyLoading && !s && x.lazy && x.lazy.load(), x.params.allowSwipeToPrev = a, x.params.allowSwipeToNext = t, x.params.onAfterResize && x.params.onAfterResize(x); }, x.touchEventsDesktop = { start: "mousedown", move: "mousemove", end: "mouseup" }, window.navigator.pointerEnabled ? x.touchEventsDesktop = { start: "pointerdown", move: "pointermove", end: "pointerup" } : window.navigator.msPointerEnabled && (x.touchEventsDesktop = { start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp" }), x.touchEvents = { start: x.support.touch || !x.params.simulateTouch ? "touchstart" : x.touchEventsDesktop.start, move: x.support.touch || !x.params.simulateTouch ? "touchmove" : x.touchEventsDesktop.move, end: x.support.touch || !x.params.simulateTouch ? "touchend" : x.touchEventsDesktop.end }, (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === x.params.touchEventsTarget ? x.container : x.wrapper).addClass("swiper-wp8-" + x.params.direction), x.initEvents = function(e) { var a = e ? "off" : "on", t = e ? "removeEventListener" : "addEventListener", r = "container" === x.params.touchEventsTarget ? x.container[0] : x.wrapper[0], i = x.support.touch ? r : document, n = !!x.params.nested; if (x.browser.ie) r[t](x.touchEvents.start, x.onTouchStart, !1), i[t](x.touchEvents.move, x.onTouchMove, n), i[t](x.touchEvents.end, x.onTouchEnd, !1); else { if (x.support.touch) { var o = !("touchstart" !== x.touchEvents.start || !x.support.passiveListener || !x.params.passiveListeners) && { passive: !0, capture: !1 }; r[t](x.touchEvents.start, x.onTouchStart, o), r[t](x.touchEvents.move, x.onTouchMove, n), r[t](x.touchEvents.end, x.onTouchEnd, o); } (s.simulateTouch && !x.device.ios && !x.device.android || s.simulateTouch && !x.support.touch && x.device.ios) && (r[t]("mousedown", x.onTouchStart, !1), document[t]("mousemove", x.onTouchMove, n), document[t]("mouseup", x.onTouchEnd, !1)); } window[t]("resize", x.onResize), x.params.nextButton && x.nextButton && 0 < x.nextButton.length && (x.nextButton[a]("click", x.onClickNext), x.params.a11y && x.a11y && x.nextButton[a]("keydown", x.a11y.onEnterKey)), x.params.prevButton && x.prevButton && 0 < x.prevButton.length && (x.prevButton[a]("click", x.onClickPrev), x.params.a11y && x.a11y && x.prevButton[a]("keydown", x.a11y.onEnterKey)), x.params.pagination && x.params.paginationClickable && (x.paginationContainer[a]("click", "." + x.params.bulletClass, x.onClickIndex), x.params.a11y && x.a11y && x.paginationContainer[a]("keydown", "." + x.params.bulletClass, x.a11y.onEnterKey)), (x.params.preventClicks || x.params.preventClicksPropagation) && r[t]("click", x.preventClicks, !0); }, x.attachEvents = function() { x.initEvents(); }, x.detachEvents = function() { x.initEvents(!0); }, x.allowClick = !0, x.preventClicks = function(e) { x.allowClick || (x.params.preventClicks && e.preventDefault(), x.params.preventClicksPropagation && x.animating && (e.stopPropagation(), e.stopImmediatePropagation())); }, x.onClickNext = function(e) { e.preventDefault(), x.isEnd && !x.params.loop || x.slideNext(); }, x.onClickPrev = function(e) { e.preventDefault(), x.isBeginning && !x.params.loop || x.slidePrev(); }, x.onClickIndex = function(a) { a.preventDefault(); var t = e(this).index() * x.params.slidesPerGroup; x.params.loop && (t += x.loopedSlides), x.slideTo(t); }, x.updateClickedSlide = function(a) { var t = n(a, "." + x.params.slideClass), s = !1; if (t) for (var r = 0; r < x.slides.length; r++) x.slides[r] === t && (s = !0); if (!t || !s) return x.clickedSlide = void 0, void (x.clickedIndex = void 0); if (x.clickedSlide = t, x.clickedIndex = e(t).index(), x.params.slideToClickedSlide && void 0 !== x.clickedIndex && x.clickedIndex !== x.activeIndex) { var i, o = x.clickedIndex, l = "auto" === x.params.slidesPerView ? x.currentSlidesPerView() : x.params.slidesPerView; if (x.params.loop) { if (x.animating) return; i = parseInt(e(x.clickedSlide).attr("data-swiper-slide-index"), 10), x.params.centeredSlides ? o < x.loopedSlides - l / 2 || o > x.slides.length - x.loopedSlides + l / 2 ? (x.fixLoop(), o = x.wrapper.children("." + x.params.slideClass + '[data-swiper-slide-index="' + i + '"]:not(.' + x.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function() { x.slideTo(o); }, 0)) : x.slideTo(o) : o > x.slides.length - l ? (x.fixLoop(), o = x.wrapper.children("." + x.params.slideClass + '[data-swiper-slide-index="' + i + '"]:not(.' + x.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function() { x.slideTo(o); }, 0)) : x.slideTo(o); } else x.slideTo(o); } }; var b, C, S, z, M, P, E, I, k, D, G, X, L = "input, select, textarea, button, video", B = Date.now(), H = []; for (var Y in x.animating = !1, x.touches = { startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0 }, x.onTouchStart = function(a) { if (a.originalEvent && (a = a.originalEvent), (G = "touchstart" === a.type) || !("which" in a) || 3 !== a.which) { if (x.params.noSwiping && n(a, "." + x.params.noSwipingClass)) return void (x.allowClick = !0); if (!x.params.swipeHandler || n(a, x.params.swipeHandler)) { var t = x.touches.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX, s = x.touches.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY; if (!(x.device.ios && x.params.iOSEdgeSwipeDetection && t <= x.params.iOSEdgeSwipeThreshold)) { if (S = !(C = !(b = !0)), X = M = void 0, x.touches.startX = t, x.touches.startY = s, z = Date.now(), x.allowClick = !0, x.updateContainerSize(), x.swipeDirection = void 0, 0 < x.params.threshold && (I = !1), "touchstart" !== a.type) { var r = !0; e(a.target).is(L) && (r = !1), document.activeElement && e(document.activeElement).is(L) && document.activeElement.blur(), r && a.preventDefault(); } x.emit("onTouchStart", x, a); } } } }, x.onTouchMove = function(a) { if (a.originalEvent && (a = a.originalEvent), !G || "mousemove" !== a.type) { if (a.preventedByNestedSwiper) return x.touches.startX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, void (x.touches.startY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY); if (x.params.onlyExternal) return x.allowClick = !1, void (b && (x.touches.startX = x.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, x.touches.startY = x.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, z = Date.now())); if (G && x.params.touchReleaseOnEdges && !x.params.loop) if (x.isHorizontal()) { if (x.touches.currentX < x.touches.startX && x.translate <= x.maxTranslate() || x.touches.currentX > x.touches.startX && x.translate >= x.minTranslate()) return; } else if (x.touches.currentY < x.touches.startY && x.translate <= x.maxTranslate() || x.touches.currentY > x.touches.startY && x.translate >= x.minTranslate()) return; if (G && document.activeElement && a.target === document.activeElement && e(a.target).is(L)) return C = !0, void (x.allowClick = !1); if (S && x.emit("onTouchMove", x, a), !(a.targetTouches && 1 < a.targetTouches.length)) { var t; if (x.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, x.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, void 0 === M) x.isHorizontal() && x.touches.currentY === x.touches.startY || !x.isHorizontal() && x.touches.currentX === x.touches.startX ? M = !1 : (t = 180 * Math.atan2(Math.abs(x.touches.currentY - x.touches.startY), Math.abs(x.touches.currentX - x.touches.startX)) / Math.PI, M = x.isHorizontal() ? t > x.params.touchAngle : 90 - t > x.params.touchAngle); if (M && x.emit("onTouchMoveOpposite", x, a), void 0 === X && (x.touches.currentX === x.touches.startX && x.touches.currentY === x.touches.startY || (X = !0)), b) { if (M) return void (b = !1); if (X) { x.allowClick = !1, x.emit("onSliderMove", x, a), a.preventDefault(), x.params.touchMoveStopPropagation && !x.params.nested && a.stopPropagation(), C || (s.loop && x.fixLoop(), E = x.getWrapperTranslate(), x.setWrapperTransition(0), x.animating && x.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), x.params.autoplay && x.autoplaying && (x.params.autoplayDisableOnInteraction ? x.stopAutoplay() : x.pauseAutoplay()), D = !1, !x.params.grabCursor || !0 !== x.params.allowSwipeToNext && !0 !== x.params.allowSwipeToPrev || x.setGrabCursor(!0)), C = !0; var r = x.touches.diff = x.isHorizontal() ? x.touches.currentX - x.touches.startX : x.touches.currentY - x.touches.startY; r *= x.params.touchRatio, x.rtl && (r = -r), x.swipeDirection = 0 < r ? "prev" : "next", P = r + E; var i = !0; if (0 < r && P > x.minTranslate() ? (i = !1, x.params.resistance && (P = x.minTranslate() - 1 + Math.pow(-x.minTranslate() + E + r, x.params.resistanceRatio))) : r < 0 && P < x.maxTranslate() && (i = !1, x.params.resistance && (P = x.maxTranslate() + 1 - Math.pow(x.maxTranslate() - E - r, x.params.resistanceRatio))), i && (a.preventedByNestedSwiper = !0), !x.params.allowSwipeToNext && "next" === x.swipeDirection && P < E && (P = E), !x.params.allowSwipeToPrev && "prev" === x.swipeDirection && E < P && (P = E), 0 < x.params.threshold) { if (!(Math.abs(r) > x.params.threshold || I)) return void (P = E); if (!I) return I = !0, x.touches.startX = x.touches.currentX, x.touches.startY = x.touches.currentY, P = E, void (x.touches.diff = x.isHorizontal() ? x.touches.currentX - x.touches.startX : x.touches.currentY - x.touches.startY); } x.params.followFinger && ((x.params.freeMode || x.params.watchSlidesProgress) && x.updateActiveIndex(), x.params.freeMode && (0 === H.length && H.push({ position: x.touches[x.isHorizontal() ? "startX" : "startY"], time: z }), H.push({ position: x.touches[x.isHorizontal() ? "currentX" : "currentY"], time: new window.Date().getTime() })), x.updateProgress(P), x.setWrapperTranslate(P)); } } } } }, x.onTouchEnd = function(a) { if (a.originalEvent && (a = a.originalEvent), S && x.emit("onTouchEnd", x, a), S = !1, b) { x.params.grabCursor && C && b && (!0 === x.params.allowSwipeToNext || !0 === x.params.allowSwipeToPrev) && x.setGrabCursor(!1); var r, t = Date.now(), s = t - z; if (x.allowClick && (x.updateClickedSlide(a), x.emit("onTap", x, a), s < 300 && 300 < t - B && (k && clearTimeout(k), k = setTimeout(function() { x && (x.params.paginationHide && 0 < x.paginationContainer.length && !e(a.target).hasClass(x.params.bulletClass) && x.paginationContainer.toggleClass(x.params.paginationHiddenClass), x.emit("onClick", x, a)); }, 300)), s < 300 && t - B < 300 && (k && clearTimeout(k), x.emit("onDoubleTap", x, a))), B = Date.now(), setTimeout(function() { x && (x.allowClick = !0); }, 0), !b || !C || !x.swipeDirection || 0 === x.touches.diff || P === E) return void (b = C = !1); if (b = C = !1, r = x.params.followFinger ? x.rtl ? x.translate : -x.translate : -P, x.params.freeMode) { if (r < -x.minTranslate()) return void x.slideTo(x.activeIndex); if (r > -x.maxTranslate()) return void (x.slides.length < x.snapGrid.length ? x.slideTo(x.snapGrid.length - 1) : x.slideTo(x.slides.length - 1)); if (x.params.freeModeMomentum) { if (1 < H.length) { var i = H.pop(), n = H.pop(), o = i.position - n.position, l = i.time - n.time; x.velocity = o / l, x.velocity = x.velocity / 2, Math.abs(x.velocity) < x.params.freeModeMinimumVelocity && (x.velocity = 0), (150 < l || 300 < new window.Date().getTime() - i.time) && (x.velocity = 0); } else x.velocity = 0; x.velocity = x.velocity * x.params.freeModeMomentumVelocityRatio, H.length = 0; var p = 1e3 * x.params.freeModeMomentumRatio, d = x.velocity * p, m = x.translate + d; x.rtl && (m = -m); var u, c = !1, g = 20 * Math.abs(x.velocity) * x.params.freeModeMomentumBounceRatio; if (m < x.maxTranslate()) x.params.freeModeMomentumBounce ? (m + x.maxTranslate() < -g && (m = x.maxTranslate() - g), u = x.maxTranslate(), D = c = !0) : m = x.maxTranslate(); else if (m > x.minTranslate()) x.params.freeModeMomentumBounce ? (m - x.minTranslate() > g && (m = x.minTranslate() + g), u = x.minTranslate(), D = c = !0) : m = x.minTranslate(); else if (x.params.freeModeSticky) { var h, v = 0; for (v = 0; v < x.snapGrid.length; v += 1) if (x.snapGrid[v] > -m) { h = v; break; } m = Math.abs(x.snapGrid[h] - m) < Math.abs(x.snapGrid[h - 1] - m) || "next" === x.swipeDirection ? x.snapGrid[h] : x.snapGrid[h - 1], x.rtl || (m = -m); } if (0 !== x.velocity) p = x.rtl ? Math.abs((-m - x.translate) / x.velocity) : Math.abs((m - x.translate) / x.velocity); else if (x.params.freeModeSticky) return void x.slideReset(); x.params.freeModeMomentumBounce && c ? (x.updateProgress(u), x.setWrapperTransition(p), x.setWrapperTranslate(m), x.onTransitionStart(), x.animating = !0, x.wrapper.transitionEnd(function() { x && D && (x.emit("onMomentumBounce", x), x.setWrapperTransition(x.params.speed), x.setWrapperTranslate(u), x.wrapper.transitionEnd(function() { x && x.onTransitionEnd(); })); })) : x.velocity ? (x.updateProgress(m), x.setWrapperTransition(p), x.setWrapperTranslate(m), x.onTransitionStart(), x.animating || (x.animating = !0, x.wrapper.transitionEnd(function() { x && x.onTransitionEnd(); }))) : x.updateProgress(m), x.updateActiveIndex(); } return void ((!x.params.freeModeMomentum || s >= x.params.longSwipesMs) && (x.updateProgress(), x.updateActiveIndex())); } var f, w = 0, y = x.slidesSizesGrid[0]; for (f = 0; f < x.slidesGrid.length; f += x.params.slidesPerGroup) void 0 !== x.slidesGrid[f + x.params.slidesPerGroup] ? r >= x.slidesGrid[f] && r < x.slidesGrid[f + x.params.slidesPerGroup] && (w = f, y = x.slidesGrid[f + x.params.slidesPerGroup] - x.slidesGrid[f]) : r >= x.slidesGrid[f] && (w = f, y = x.slidesGrid[x.slidesGrid.length - 1] - x.slidesGrid[x.slidesGrid.length - 2]); var T = (r - x.slidesGrid[w]) / y; if (s > x.params.longSwipesMs) { if (!x.params.longSwipes) return void x.slideTo(x.activeIndex); "next" === x.swipeDirection && (T >= x.params.longSwipesRatio ? x.slideTo(w + x.params.slidesPerGroup) : x.slideTo(w)), "prev" === x.swipeDirection && (T > 1 - x.params.longSwipesRatio ? x.slideTo(w + x.params.slidesPerGroup) : x.slideTo(w)); } else { if (!x.params.shortSwipes) return void x.slideTo(x.activeIndex); "next" === x.swipeDirection && x.slideTo(w + x.params.slidesPerGroup), "prev" === x.swipeDirection && x.slideTo(w); } } }, x._slideTo = function(e, a) { return x.slideTo(e, a, !0, !0); }, x.slideTo = function(e, a, t, s) { void 0 === t && (t = !0), void 0 === e && (e = 0), e < 0 && (e = 0), x.snapIndex = Math.floor(e / x.params.slidesPerGroup), x.snapIndex >= x.snapGrid.length && (x.snapIndex = x.snapGrid.length - 1); var r = -x.snapGrid[x.snapIndex]; if (x.params.autoplay && x.autoplaying && (s || !x.params.autoplayDisableOnInteraction ? x.pauseAutoplay(a) : x.stopAutoplay()), x.updateProgress(r), x.params.normalizeSlideIndex) for (var i = 0; i < x.slidesGrid.length; i++) -Math.floor(100 * r) >= Math.floor(100 * x.slidesGrid[i]) && (e = i); return !(!x.params.allowSwipeToNext && r < x.translate && r < x.minTranslate() || !x.params.allowSwipeToPrev && r > x.translate && r > x.maxTranslate() && (x.activeIndex || 0) !== e || (void 0 === a && (a = x.params.speed), x.previousIndex = x.activeIndex || 0, x.activeIndex = e, x.updateRealIndex(), x.rtl && -r === x.translate || !x.rtl && r === x.translate ? (x.params.autoHeight && x.updateAutoHeight(), x.updateClasses(), "slide" !== x.params.effect && x.setWrapperTranslate(r), 1) : (x.updateClasses(), x.onTransitionStart(t), 0 === a || x.browser.lteIE9 ? (x.setWrapperTranslate(r), x.setWrapperTransition(0), x.onTransitionEnd(t)) : (x.setWrapperTranslate(r), x.setWrapperTransition(a), x.animating || (x.animating = !0, x.wrapper.transitionEnd(function() { x && x.onTransitionEnd(t); }))), 0))); }, x.onTransitionStart = function(e) { void 0 === e && (e = !0), x.params.autoHeight && x.updateAutoHeight(), x.lazy && x.lazy.onTransitionStart(), e && (x.emit("onTransitionStart", x), x.activeIndex !== x.previousIndex && (x.emit("onSlideChangeStart", x), x.activeIndex > x.previousIndex ? x.emit("onSlideNextStart", x) : x.emit("onSlidePrevStart", x))); }, x.onTransitionEnd = function(e) { x.animating = !1, x.setWrapperTransition(0), void 0 === e && (e = !0), x.lazy && x.lazy.onTransitionEnd(), e && (x.emit("onTransitionEnd", x), x.activeIndex !== x.previousIndex && (x.emit("onSlideChangeEnd", x), x.activeIndex > x.previousIndex ? x.emit("onSlideNextEnd", x) : x.emit("onSlidePrevEnd", x))), x.params.history && x.history && x.history.setHistory(x.params.history, x.activeIndex), x.params.hashnav && x.hashnav && x.hashnav.setHash(); }, x.slideNext = function(e, a, t) { return x.params.loop ? !x.animating && (x.fixLoop(), x.container[0].clientLeft, x.slideTo(x.activeIndex + x.params.slidesPerGroup, a, e, t)) : x.slideTo(x.activeIndex + x.params.slidesPerGroup, a, e, t); }, x._slideNext = function(e) { return x.slideNext(!0, e, !0); }, x.slidePrev = function(e, a, t) { return x.params.loop ? !x.animating && (x.fixLoop(), x.container[0].clientLeft, x.slideTo(x.activeIndex - 1, a, e, t)) : x.slideTo(x.activeIndex - 1, a, e, t); }, x._slidePrev = function(e) { return x.slidePrev(!0, e, !0); }, x.slideReset = function(e, a, t) { return x.slideTo(x.activeIndex, a, e); }, x.disableTouchControl = function() { return x.params.onlyExternal = !0; }, x.enableTouchControl = function() { return !(x.params.onlyExternal = !1); }, x.setWrapperTransition = function(e, a) { x.wrapper.transition(e), "slide" !== x.params.effect && x.effects[x.params.effect] && x.effects[x.params.effect].setTransition(e), x.params.parallax && x.parallax && x.parallax.setTransition(e), x.params.scrollbar && x.scrollbar && x.scrollbar.setTransition(e), x.params.control && x.controller && x.controller.setTransition(e, a), x.emit("onSetTransition", x, e); }, x.setWrapperTranslate = function(e, a, t) { var s = 0, i = 0; x.isHorizontal() ? s = x.rtl ? -e : e : i = e, x.params.roundLengths && (s = r(s), i = r(i)), x.params.virtualTranslate || (x.support.transforms3d ? x.wrapper.transform("translate3d(" + s + "px, " + i + "px, 0px)") : x.wrapper.transform("translate(" + s + "px, " + i + "px)")), x.translate = x.isHorizontal() ? s : i; var o = x.maxTranslate() - x.minTranslate(); (0 === o ? 0 : (e - x.minTranslate()) / o) !== x.progress && x.updateProgress(e), a && x.updateActiveIndex(), "slide" !== x.params.effect && x.effects[x.params.effect] && x.effects[x.params.effect].setTranslate(x.translate), x.params.parallax && x.parallax && x.parallax.setTranslate(x.translate), x.params.scrollbar && x.scrollbar && x.scrollbar.setTranslate(x.translate), x.params.control && x.controller && x.controller.setTranslate(x.translate, t), x.emit("onSetTranslate", x, x.translate); }, x.getTranslate = function(e, a) { var t, s, r, i; return void 0 === a && (a = "x"), x.params.virtualTranslate ? x.rtl ? -x.translate : x.translate : (r = window.getComputedStyle(e, null), window.WebKitCSSMatrix ? (6 < (s = r.transform || r.webkitTransform).split(",").length && (s = s.split(", ").map(function(e) { return e.replace(",", "."); }).join(", ")), i = new window.WebKitCSSMatrix("none" === s ? "" : s)) : t = (i = r.MozTransform || r.OTransform || r.MsTransform || r.msTransform || r.transform || r.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).toString().split(","), "x" === a && (s = window.WebKitCSSMatrix ? i.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (s = window.WebKitCSSMatrix ? i.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), x.rtl && s && (s = -s), s || 0); }, x.getWrapperTranslate = function(e) { return void 0 === e && (e = x.isHorizontal() ? "x" : "y"), x.getTranslate(x.wrapper[0], e); }, x.observers = [], x.initObservers = function() { if (x.params.observeParents) for (var e = x.container.parents(), a = 0; a < e.length; a++) o(e[a]); o(x.container[0], { childList: !1 }), o(x.wrapper[0], { attributes: !1 }); }, x.disconnectObservers = function() { for (var e = 0; e < x.observers.length; e++) x.observers[e].disconnect(); x.observers = []; }, x.createLoop = function() { x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass).remove(); var a = x.wrapper.children("." + x.params.slideClass); "auto" !== x.params.slidesPerView || x.params.loopedSlides || (x.params.loopedSlides = a.length), x.loopedSlides = parseInt(x.params.loopedSlides || x.params.slidesPerView, 10), x.loopedSlides = x.loopedSlides + x.params.loopAdditionalSlides, x.loopedSlides > a.length && (x.loopedSlides = a.length); var t, s = [], r = []; for (a.each(function(t, i) { var n = e(this); t < x.loopedSlides && r.push(i), t < a.length && t >= a.length - x.loopedSlides && s.push(i), n.attr("data-swiper-slide-index", t); }), t = 0; t < r.length; t++) x.wrapper.append(e(r[t].cloneNode(!0)).addClass(x.params.slideDuplicateClass)); for (t = s.length - 1; 0 <= t; t--) x.wrapper.prepend(e(s[t].cloneNode(!0)).addClass(x.params.slideDuplicateClass)); }, x.destroyLoop = function() { x.wrapper.children("." + x.params.slideClass + "." + x.params.slideDuplicateClass).remove(), x.slides.removeAttr("data-swiper-slide-index"); }, x.reLoop = function(e) { var a = x.activeIndex - x.loopedSlides; x.destroyLoop(), x.createLoop(), x.updateSlidesSize(), e && x.slideTo(a + x.loopedSlides, 0, !1); }, x.fixLoop = function() { var e; x.activeIndex < x.loopedSlides ? (e = x.slides.length - 3 * x.loopedSlides + x.activeIndex, e += x.loopedSlides, x.slideTo(e, 0, !1, !0)) : ("auto" === x.params.slidesPerView && x.activeIndex >= 2 * x.loopedSlides || x.activeIndex > x.slides.length - 2 * x.params.slidesPerView) && (e = -x.slides.length + x.activeIndex + x.loopedSlides, e += x.loopedSlides, x.slideTo(e, 0, !1, !0)); }, x.appendSlide = function(e) { if (x.params.loop && x.destroyLoop(), "object" == typeof e && e.length) for (var a = 0; a < e.length; a++) e[a] && x.wrapper.append(e[a]); else x.wrapper.append(e); x.params.loop && x.createLoop(), x.params.observer && x.support.observer || x.update(!0); }, x.prependSlide = function(e) { x.params.loop && x.destroyLoop(); var a = x.activeIndex + 1; if ("object" == typeof e && e.length) { for (var t = 0; t < e.length; t++) e[t] && x.wrapper.prepend(e[t]); a = x.activeIndex + e.length; } else x.wrapper.prepend(e); x.params.loop && x.createLoop(), x.params.observer && x.support.observer || x.update(!0), x.slideTo(a, 0, !1); }, x.removeSlide = function(e) { x.params.loop && (x.destroyLoop(), x.slides = x.wrapper.children("." + x.params.slideClass)); var a, t = x.activeIndex; if ("object" == typeof e && e.length) { for (var s = 0; s < e.length; s++) a = e[s], x.slides[a] && x.slides.eq(a).remove(), a < t && t--; t = Math.max(t, 0); } else a = e, x.slides[a] && x.slides.eq(a).remove(), a < t && t--, t = Math.max(t, 0); x.params.loop && x.createLoop(), x.params.observer && x.support.observer || x.update(!0), x.params.loop ? x.slideTo(t + x.loopedSlides, 0, !1) : x.slideTo(t, 0, !1); }, x.removeAllSlides = function() { for (var e = [], a = 0; a < x.slides.length; a++) e.push(a); x.removeSlide(e); }, x.effects = { fade: { setTranslate: function() { for (var e = 0; e < x.slides.length; e++) { var a = x.slides.eq(e), s = -a[0].swiperSlideOffset; x.params.virtualTranslate || (s -= x.translate); var r = 0; x.isHorizontal() || (r = s, s = 0); var i = x.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0); a.css({ opacity: i }).transform("translate3d(" + s + "px, " + r + "px, 0px)"); } }, setTransition: function(e) { if (x.slides.transition(e), x.params.virtualTranslate && 0 !== e) { var a = !1; x.slides.transitionEnd(function() { if (!a && x) { a = !0, x.animating = !1; for (var e = [ "webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd" ], t = 0; t < e.length; t++) x.wrapper.trigger(e[t]); } }); } } }, flip: { setTranslate: function() { for (var a = 0; a < x.slides.length; a++) { var t = x.slides.eq(a), s = t[0].progress; x.params.flip.limitRotation && (s = Math.max(Math.min(t[0].progress, 1), -1)); var n = -180 * s, o = 0, l = -t[0].swiperSlideOffset, p = 0; if (x.isHorizontal() ? x.rtl && (n = -n) : (p = l, o = -n, n = l = 0), t[0].style.zIndex = -Math.abs(Math.round(s)) + x.slides.length, x.params.flip.slideShadows) { var d = x.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), m = x.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === d.length && (d = e('
'), t.append(d)), 0 === m.length && (m = e('
'), t.append(m)), d.length && (d[0].style.opacity = Math.max(-s, 0)), m.length && (m[0].style.opacity = Math.max(s, 0)); } t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)"); } }, setTransition: function(a) { if (x.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a), x.params.virtualTranslate && 0 !== a) { var t = !1; x.slides.eq(x.activeIndex).transitionEnd(function() { if (!t && x && e(this).hasClass(x.params.slideActiveClass)) { t = !0, x.animating = !1; for (var a = [ "webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd" ], s = 0; s < a.length; s++) x.wrapper.trigger(a[s]); } }); } } }, cube: { setTranslate: function() { var a, t = 0; x.params.cube.shadow && (x.isHorizontal() ? (0 === (a = x.wrapper.find(".swiper-cube-shadow")).length && (a = e('
'), x.wrapper.append(a)), a.css({ height: x.width + "px" })) : 0 === (a = x.container.find(".swiper-cube-shadow")).length && (a = e('
'), x.container.append(a))); for (var s = 0; s < x.slides.length; s++) { var r = x.slides.eq(s), i = 90 * s, n = Math.floor(i / 360); x.rtl && (i = -i, n = Math.floor(-i / 360)); var o = Math.max(Math.min(r[0].progress, 1), -1), l = 0, p = 0, d = 0; s % 4 == 0 ? (l = 4 * -n * x.size, d = 0) : (s - 1) % 4 == 0 ? (l = 0, d = 4 * -n * x.size) : (s - 2) % 4 == 0 ? (l = x.size + 4 * n * x.size, d = x.size) : (s - 3) % 4 == 0 && (l = -x.size, d = 3 * x.size + 4 * x.size * n), x.rtl && (l = -l), x.isHorizontal() || (p = l, l = 0); var m = "rotateX(" + (x.isHorizontal() ? 0 : -i) + "deg) rotateY(" + (x.isHorizontal() ? i : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)"; if (o <= 1 && -1 < o && (t = 90 * s + 90 * o, x.rtl && (t = 90 * -s - 90 * o)), r.transform(m), x.params.cube.slideShadows) { var u = x.isHorizontal() ? r.find(".swiper-slide-shadow-left") : r.find(".swiper-slide-shadow-top"), c = x.isHorizontal() ? r.find(".swiper-slide-shadow-right") : r.find(".swiper-slide-shadow-bottom"); 0 === u.length && (u = e('
'), r.append(u)), 0 === c.length && (c = e('
'), r.append(c)), u.length && (u[0].style.opacity = Math.max(-o, 0)), c.length && (c[0].style.opacity = Math.max(o, 0)); } } if (x.wrapper.css({ "-webkit-transform-origin": "50% 50% -" + x.size / 2 + "px", "-moz-transform-origin": "50% 50% -" + x.size / 2 + "px", "-ms-transform-origin": "50% 50% -" + x.size / 2 + "px", "transform-origin": "50% 50% -" + x.size / 2 + "px" }), x.params.cube.shadow) if (x.isHorizontal()) a.transform("translate3d(0px, " + (x.width / 2 + x.params.cube.shadowOffset) + "px, " + -x.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + x.params.cube.shadowScale + ")"); else { var g = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90), h = 1.5 - (Math.sin(2 * g * Math.PI / 360) / 2 + Math.cos(2 * g * Math.PI / 360) / 2), v = x.params.cube.shadowScale, f = x.params.cube.shadowScale / h, w = x.params.cube.shadowOffset; a.transform("scale3d(" + v + ", 1, " + f + ") translate3d(0px, " + (x.height / 2 + w) + "px, " + -x.height / 2 / f + "px) rotateX(-90deg)"); } var y = x.isSafari || x.isUiWebView ? -x.size / 2 : 0; x.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (x.isHorizontal() ? 0 : t) + "deg) rotateY(" + (x.isHorizontal() ? -t : 0) + "deg)"); }, setTransition: function(e) { x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), x.params.cube.shadow && !x.isHorizontal() && x.container.find(".swiper-cube-shadow").transition(e); } }, coverflow: { setTranslate: function() { for (var a = x.translate, t = x.isHorizontal() ? -a + x.width / 2 : -a + x.height / 2, s = x.isHorizontal() ? x.params.coverflow.rotate : -x.params.coverflow.rotate, r = x.params.coverflow.depth, i = 0, n = x.slides.length; i < n; i++) { var o = x.slides.eq(i), l = x.slidesSizesGrid[i], d = (t - o[0].swiperSlideOffset - l / 2) / l * x.params.coverflow.modifier, m = x.isHorizontal() ? s * d : 0, u = x.isHorizontal() ? 0 : s * d, c = -r * Math.abs(d), g = x.isHorizontal() ? 0 : x.params.coverflow.stretch * d, h = x.isHorizontal() ? x.params.coverflow.stretch * d : 0; Math.abs(h) < .001 && (h = 0), Math.abs(g) < .001 && (g = 0), Math.abs(c) < .001 && (c = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0); var v = "translate3d(" + h + "px," + g + "px," + c + "px) rotateX(" + u + "deg) rotateY(" + m + "deg)"; if (o.transform(v), o[0].style.zIndex = 1 - Math.abs(Math.round(d)), x.params.coverflow.slideShadows) { var f = x.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"), w = x.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom"); 0 === f.length && (f = e('
'), o.append(f)), 0 === w.length && (w = e('
'), o.append(w)), f.length && (f[0].style.opacity = 0 < d ? d : 0), w.length && (w[0].style.opacity = 0 < -d ? -d : 0); } } x.browser.ie && (x.wrapper[0].style.perspectiveOrigin = t + "px 50%"); }, setTransition: function(e) { x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e); } } }, x.lazy = { initialImageLoaded: !1, loadImageInSlide: function(a, t) { if (void 0 !== a && (void 0 === t && (t = !0), 0 !== x.slides.length)) { var s = x.slides.eq(a), r = s.find("." + x.params.lazyLoadingClass + ":not(." + x.params.lazyStatusLoadedClass + "):not(." + x.params.lazyStatusLoadingClass + ")"); !s.hasClass(x.params.lazyLoadingClass) || s.hasClass(x.params.lazyStatusLoadedClass) || s.hasClass(x.params.lazyStatusLoadingClass) || (r = r.add(s[0])), 0 !== r.length && r.each(function() { var a = e(this); a.addClass(x.params.lazyStatusLoadingClass); var r = a.attr("data-background"), i = a.attr("data-src"), n = a.attr("data-srcset"), o = a.attr("data-sizes"); x.loadImage(a[0], i || r, n, o, !1, function() { if (null != x && x) { if (r ? (a.css("background-image", 'url("' + r + '")'), a.removeAttr("data-background")) : (n && (a.attr("srcset", n), a.removeAttr("data-srcset")), o && (a.attr("sizes", o), a.removeAttr("data-sizes")), i && (a.attr("src", i), a.removeAttr("data-src"))), a.addClass(x.params.lazyStatusLoadedClass).removeClass(x.params.lazyStatusLoadingClass), s.find("." + x.params.lazyPreloaderClass + ", ." + x.params.preloaderClass).remove(), x.params.loop && t) { var e = s.attr("data-swiper-slide-index"); if (s.hasClass(x.params.slideDuplicateClass)) { var l = x.wrapper.children('[data-swiper-slide-index="' + e + '"]:not(.' + x.params.slideDuplicateClass + ")"); x.lazy.loadImageInSlide(l.index(), !1); } else { var p = x.wrapper.children("." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]'); x.lazy.loadImageInSlide(p.index(), !1); } } x.emit("onLazyImageReady", x, s[0], a[0]); } }), x.emit("onLazyImageLoad", x, s[0], a[0]); }); } }, load: function() { var a, t = x.params.slidesPerView; if ("auto" === t && (t = 0), x.lazy.initialImageLoaded || (x.lazy.initialImageLoaded = !0), x.params.watchSlidesVisibility) x.wrapper.children("." + x.params.slideVisibleClass).each(function() { x.lazy.loadImageInSlide(e(this).index()); }); else if (1 < t) for (a = x.activeIndex; a < x.activeIndex + t; a++) x.slides[a] && x.lazy.loadImageInSlide(a); else x.lazy.loadImageInSlide(x.activeIndex); if (x.params.lazyLoadingInPrevNext) if (1 < t || x.params.lazyLoadingInPrevNextAmount && 1 < x.params.lazyLoadingInPrevNextAmount) { var s = x.params.lazyLoadingInPrevNextAmount, r = t, i = Math.min(x.activeIndex + r + Math.max(s, r), x.slides.length), n = Math.max(x.activeIndex - Math.max(r, s), 0); for (a = x.activeIndex + t; a < i; a++) x.slides[a] && x.lazy.loadImageInSlide(a); for (a = n; a < x.activeIndex; a++) x.slides[a] && x.lazy.loadImageInSlide(a); } else { var o = x.wrapper.children("." + x.params.slideNextClass); 0 < o.length && x.lazy.loadImageInSlide(o.index()); var l = x.wrapper.children("." + x.params.slidePrevClass); 0 < l.length && x.lazy.loadImageInSlide(l.index()); } }, onTransitionStart: function() { x.params.lazyLoading && (x.params.lazyLoadingOnTransitionStart || !x.params.lazyLoadingOnTransitionStart && !x.lazy.initialImageLoaded) && x.lazy.load(); }, onTransitionEnd: function() { x.params.lazyLoading && !x.params.lazyLoadingOnTransitionStart && x.lazy.load(); } }, x.scrollbar = { isTouched: !1, setDragPosition: function(e) { var a = x.scrollbar, s = (x.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX || e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY || e.clientY) - a.track.offset()[x.isHorizontal() ? "left" : "top"] - a.dragSize / 2, r = -x.minTranslate() * a.moveDivider, i = -x.maxTranslate() * a.moveDivider; s < r ? s = r : i < s && (s = i), s = -s / a.moveDivider, x.updateProgress(s), x.setWrapperTranslate(s, !0); }, dragStart: function(e) { var a = x.scrollbar; a.isTouched = !0, e.preventDefault(), e.stopPropagation(), a.setDragPosition(e), clearTimeout(a.dragTimeout), a.track.transition(0), x.params.scrollbarHide && a.track.css("opacity", 1), x.wrapper.transition(100), a.drag.transition(100), x.emit("onScrollbarDragStart", x); }, dragMove: function(e) { var a = x.scrollbar; a.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), x.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), x.emit("onScrollbarDragMove", x)); }, dragEnd: function(e) { var a = x.scrollbar; a.isTouched && (a.isTouched = !1, x.params.scrollbarHide && (clearTimeout(a.dragTimeout), a.dragTimeout = setTimeout(function() { a.track.css("opacity", 0), a.track.transition(400); }, 1e3)), x.emit("onScrollbarDragEnd", x), x.params.scrollbarSnapOnRelease && x.slideReset()); }, draggableEvents: !1 !== x.params.simulateTouch || x.support.touch ? x.touchEvents : x.touchEventsDesktop, enableDraggable: function() { var a = x.scrollbar, t = x.support.touch ? a.track : document; e(a.track).on(a.draggableEvents.start, a.dragStart), e(t).on(a.draggableEvents.move, a.dragMove), e(t).on(a.draggableEvents.end, a.dragEnd); }, disableDraggable: function() { var a = x.scrollbar, t = x.support.touch ? a.track : document; e(a.track).off(a.draggableEvents.start, a.dragStart), e(t).off(a.draggableEvents.move, a.dragMove), e(t).off(a.draggableEvents.end, a.dragEnd); }, set: function() { if (x.params.scrollbar) { var a = x.scrollbar; a.track = e(x.params.scrollbar), x.params.uniqueNavElements && "string" == typeof x.params.scrollbar && 1 < a.track.length && 1 === x.container.find(x.params.scrollbar).length && (a.track = x.container.find(x.params.scrollbar)), a.drag = a.track.find(".swiper-scrollbar-drag"), 0 === a.drag.length && (a.drag = e('
'), a.track.append(a.drag)), a.drag[0].style.width = "", a.drag[0].style.height = "", a.trackSize = x.isHorizontal() ? a.track[0].offsetWidth : a.track[0].offsetHeight, a.divider = x.size / x.virtualSize, a.moveDivider = a.divider * (a.trackSize / x.size), a.dragSize = a.trackSize * a.divider, x.isHorizontal() ? a.drag[0].style.width = a.dragSize + "px" : a.drag[0].style.height = a.dragSize + "px", 1 <= a.divider ? a.track[0].style.display = "none" : a.track[0].style.display = "", x.params.scrollbarHide && (a.track[0].style.opacity = 0); } }, setTranslate: function() { if (x.params.scrollbar) { var e, a = x.scrollbar, t = (x.translate, a.dragSize); e = (a.trackSize - a.dragSize) * x.progress, x.rtl && x.isHorizontal() ? 0 < (e = -e) ? (t = a.dragSize - e, e = 0) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e) : e < 0 ? (t = a.dragSize + e, e = 0) : e + a.dragSize > a.trackSize && (t = a.trackSize - e), x.isHorizontal() ? (x.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), a.drag[0].style.width = t + "px") : (x.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), a.drag[0].style.height = t + "px"), x.params.scrollbarHide && (clearTimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = setTimeout(function() { a.track[0].style.opacity = 0, a.track.transition(400); }, 1e3)); } }, setTransition: function(e) { x.params.scrollbar && x.scrollbar.drag.transition(e); } }, x.controller = { LinearSpline: function(e, a) { var s, r, t = function() { var e, a, t; return function(s, r) { for (a = -1, e = s.length; 1 < e - a; ) s[t = e + a >> 1] <= r ? a = t : e = t; return e; }; }(); this.x = e, this.y = a, this.lastIndex = e.length - 1, this.x.length, this.interpolate = function(e) { return e ? (r = t(this.x, e), s = r - 1, (e - this.x[s]) * (this.y[r] - this.y[s]) / (this.x[r] - this.x[s]) + this.y[s]) : 0; }; }, getInterpolateFunction: function(e) { x.controller.spline || (x.controller.spline = x.params.loop ? new x.controller.LinearSpline(x.slidesGrid, e.slidesGrid) : new x.controller.LinearSpline(x.snapGrid, e.snapGrid)); }, setTranslate: function(e, t) { function s(a) { e = a.rtl && "horizontal" === a.params.direction ? -x.translate : x.translate, "slide" === x.params.controlBy && (x.controller.getInterpolateFunction(a), i = -x.controller.spline.interpolate(-e)), i && "container" !== x.params.controlBy || (r = (a.maxTranslate() - a.minTranslate()) / (x.maxTranslate() - x.minTranslate()), i = (e - x.minTranslate()) * r + a.minTranslate()), x.params.controlInverse && (i = a.maxTranslate() - i), a.updateProgress(i), a.setWrapperTranslate(i, !1, x), a.updateActiveIndex(); } var r, i, n = x.params.control; if (Array.isArray(n)) for (var o = 0; o < n.length; o++) n[o] !== t && n[o] instanceof a && s(n[o]); else n instanceof a && t !== n && s(n); }, setTransition: function(e, t) { function s(a) { a.setWrapperTransition(e, x), 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function() { i && (a.params.loop && "slide" === x.params.controlBy && a.fixLoop(), a.onTransitionEnd()); })); } var r, i = x.params.control; if (Array.isArray(i)) for (r = 0; r < i.length; r++) i[r] !== t && i[r] instanceof a && s(i[r]); else i instanceof a && t !== i && s(i); } }, x.hashnav = { onHashCange: function(e, a) { var t = document.location.hash.replace("#", ""); t !== x.slides.eq(x.activeIndex).attr("data-hash") && x.slideTo(x.wrapper.children("." + x.params.slideClass + '[data-hash="' + t + '"]').index()); }, attachEvents: function(a) { var t = a ? "off" : "on"; e(window)[t]("hashchange", x.hashnav.onHashCange); }, setHash: function() { if (x.hashnav.initialized && x.params.hashnav) if (x.params.replaceState && window.history && window.history.replaceState) window.history.replaceState(null, null, "#" + x.slides.eq(x.activeIndex).attr("data-hash") || ""); else { var e = x.slides.eq(x.activeIndex), a = e.attr("data-hash") || e.attr("data-history"); document.location.hash = a || ""; } }, init: function() { if (x.params.hashnav && !x.params.history) { x.hashnav.initialized = !0; var e = document.location.hash.replace("#", ""); if (e) for (var a = 0, t = x.slides.length; a < t; a++) { var s = x.slides.eq(a); if ((s.attr("data-hash") || s.attr("data-history")) === e && !s.hasClass(x.params.slideDuplicateClass)) { var i = s.index(); x.slideTo(i, 0, x.params.runCallbacksOnInit, !0); } } x.params.hashnavWatchState && x.hashnav.attachEvents(); } }, destroy: function() { x.params.hashnavWatchState && x.hashnav.attachEvents(!0); } }, x.history = { init: function() { if (x.params.history) { if (!window.history || !window.history.pushState) return x.params.history = !1, void (x.params.hashnav = !0); x.history.initialized = !0, this.paths = this.getPathValues(), (this.paths.key || this.paths.value) && (this.scrollToSlide(0, this.paths.value, x.params.runCallbacksOnInit), x.params.replaceState || window.addEventListener("popstate", this.setHistoryPopState)); } }, setHistoryPopState: function() { x.history.paths = x.history.getPathValues(), x.history.scrollToSlide(x.params.speed, x.history.paths.value, !1); }, getPathValues: function() { var e = window.location.pathname.slice(1).split("/"), a = e.length; return { key: e[a - 2], value: e[a - 1] }; }, setHistory: function(e, a) { if (x.history.initialized && x.params.history) { var t = x.slides.eq(a), s = this.slugify(t.attr("data-history")); window.location.pathname.includes(e) || (s = e + "/" + s), x.params.replaceState ? window.history.replaceState(null, null, s) : window.history.pushState(null, null, s); } }, slugify: function(e) { return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, ""); }, scrollToSlide: function(e, a, t) { if (a) for (var s = 0, r = x.slides.length; s < r; s++) { var i = x.slides.eq(s); if (this.slugify(i.attr("data-history")) === a && !i.hasClass(x.params.slideDuplicateClass)) { var o = i.index(); x.slideTo(o, e, t); } } else x.slideTo(0, e, t); } }, x.disableKeyboardControl = function() { x.params.keyboardControl = !1, e(document).off("keydown", l); }, x.enableKeyboardControl = function() { x.params.keyboardControl = !0, e(document).on("keydown", l); }, x.mousewheel = { event: !1, lastScrollTime: new window.Date().getTime() }, x.params.mousewheelControl && (x.mousewheel.event = -1 < navigator.userAgent.indexOf("firefox") ? "DOMMouseScroll" : function() { var e = "onwheel" in document; if (!e) { var a = document.createElement("div"); a.setAttribute("onwheel", "return;"), e = "function" == typeof a.onwheel; } return !e && document.implementation && document.implementation.hasFeature && !0 !== document.implementation.hasFeature("", "") && (e = document.implementation.hasFeature("Events.wheel", "3.0")), e; }() ? "wheel" : "mousewheel"), x.disableMousewheelControl = function() { if (!x.mousewheel.event) return !1; var a = x.container; return "container" !== x.params.mousewheelEventsTarged && (a = e(x.params.mousewheelEventsTarged)), a.off(x.mousewheel.event, d), !(x.params.mousewheelControl = !1); }, x.enableMousewheelControl = function() { if (!x.mousewheel.event) return !1; var a = x.container; return "container" !== x.params.mousewheelEventsTarged && (a = e(x.params.mousewheelEventsTarged)), a.on(x.mousewheel.event, d), x.params.mousewheelControl = !0; }, x.parallax = { setTranslate: function() { x.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { m(this, x.progress); }), x.slides.each(function() { var a = e(this); a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { m(this, Math.min(Math.max(a[0].progress, -1), 1)); }); }); }, setTransition: function(a) { void 0 === a && (a = x.params.speed), x.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { var t = e(this), s = parseInt(t.attr("data-swiper-parallax-duration"), 10) || a; 0 === a && (s = 0), t.transition(s); }); } }, x.zoom = { scale: 1, currentScale: 1, isScaling: !1, gesture: { slide: void 0, slideWidth: void 0, slideHeight: void 0, image: void 0, imageWrap: void 0, zoomMax: x.params.zoomMax }, image: { isTouched: void 0, isMoved: void 0, currentX: void 0, currentY: void 0, minX: void 0, minY: void 0, maxX: void 0, maxY: void 0, width: void 0, height: void 0, startX: void 0, startY: void 0, touchesStart: {}, touchesCurrent: {} }, velocity: { x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0 }, getDistanceBetweenTouches: function(e) { if (e.targetTouches.length < 2) return 1; var a = e.targetTouches[0].pageX, t = e.targetTouches[0].pageY, s = e.targetTouches[1].pageX, r = e.targetTouches[1].pageY; return Math.sqrt(Math.pow(s - a, 2) + Math.pow(r - t, 2)); }, onGestureStart: function(a) { var t = x.zoom; if (!x.support.gestures) { if ("touchstart" !== a.type || "touchstart" === a.type && a.targetTouches.length < 2) return; t.gesture.scaleStart = t.getDistanceBetweenTouches(a); } t.gesture.slide && t.gesture.slide.length || (t.gesture.slide = e(this), 0 === t.gesture.slide.length && (t.gesture.slide = x.slides.eq(x.activeIndex)), t.gesture.image = t.gesture.slide.find("img, svg, canvas"), t.gesture.imageWrap = t.gesture.image.parent("." + x.params.zoomContainerClass), t.gesture.zoomMax = t.gesture.imageWrap.attr("data-swiper-zoom") || x.params.zoomMax, 0 !== t.gesture.imageWrap.length) ? (t.gesture.image.transition(0), t.isScaling = !0) : t.gesture.image = void 0; }, onGestureChange: function(e) { var a = x.zoom; if (!x.support.gestures) { if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; a.gesture.scaleMove = a.getDistanceBetweenTouches(e); } a.gesture.image && 0 !== a.gesture.image.length && (x.support.gestures ? a.scale = e.scale * a.currentScale : a.scale = a.gesture.scaleMove / a.gesture.scaleStart * a.currentScale, a.scale > a.gesture.zoomMax && (a.scale = a.gesture.zoomMax - 1 + Math.pow(a.scale - a.gesture.zoomMax + 1, .5)), a.scale < x.params.zoomMin && (a.scale = x.params.zoomMin + 1 - Math.pow(x.params.zoomMin - a.scale + 1, .5)), a.gesture.image.transform("translate3d(0,0,0) scale(" + a.scale + ")")); }, onGestureEnd: function(e) { var a = x.zoom; !x.support.gestures && ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2) || a.gesture.image && 0 !== a.gesture.image.length && (a.scale = Math.max(Math.min(a.scale, a.gesture.zoomMax), x.params.zoomMin), a.gesture.image.transition(x.params.speed).transform("translate3d(0,0,0) scale(" + a.scale + ")"), a.currentScale = a.scale, a.isScaling = !1, 1 === a.scale && (a.gesture.slide = void 0)); }, onTouchStart: function(e, a) { var t = e.zoom; t.gesture.image && 0 !== t.gesture.image.length && (t.image.isTouched || ("android" === e.device.os && a.preventDefault(), t.image.isTouched = !0, t.image.touchesStart.x = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX, t.image.touchesStart.y = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY)); }, onTouchMove: function(e) { var a = x.zoom; if (a.gesture.image && 0 !== a.gesture.image.length && (x.allowClick = !1, a.image.isTouched && a.gesture.slide)) { a.image.isMoved || (a.image.width = a.gesture.image[0].offsetWidth, a.image.height = a.gesture.image[0].offsetHeight, a.image.startX = x.getTranslate(a.gesture.imageWrap[0], "x") || 0, a.image.startY = x.getTranslate(a.gesture.imageWrap[0], "y") || 0, a.gesture.slideWidth = a.gesture.slide[0].offsetWidth, a.gesture.slideHeight = a.gesture.slide[0].offsetHeight, a.gesture.imageWrap.transition(0), x.rtl && (a.image.startX = -a.image.startX), x.rtl && (a.image.startY = -a.image.startY)); var t = a.image.width * a.scale, s = a.image.height * a.scale; if (!(t < a.gesture.slideWidth && s < a.gesture.slideHeight)) { if (a.image.minX = Math.min(a.gesture.slideWidth / 2 - t / 2, 0), a.image.maxX = -a.image.minX, a.image.minY = Math.min(a.gesture.slideHeight / 2 - s / 2, 0), a.image.maxY = -a.image.minY, a.image.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, a.image.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !a.image.isMoved && !a.isScaling) { if (x.isHorizontal() && Math.floor(a.image.minX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x < a.image.touchesStart.x || Math.floor(a.image.maxX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x > a.image.touchesStart.x) return void (a.image.isTouched = !1); if (!x.isHorizontal() && Math.floor(a.image.minY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y < a.image.touchesStart.y || Math.floor(a.image.maxY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y > a.image.touchesStart.y) return void (a.image.isTouched = !1); } e.preventDefault(), e.stopPropagation(), a.image.isMoved = !0, a.image.currentX = a.image.touchesCurrent.x - a.image.touchesStart.x + a.image.startX, a.image.currentY = a.image.touchesCurrent.y - a.image.touchesStart.y + a.image.startY, a.image.currentX < a.image.minX && (a.image.currentX = a.image.minX + 1 - Math.pow(a.image.minX - a.image.currentX + 1, .8)), a.image.currentX > a.image.maxX && (a.image.currentX = a.image.maxX - 1 + Math.pow(a.image.currentX - a.image.maxX + 1, .8)), a.image.currentY < a.image.minY && (a.image.currentY = a.image.minY + 1 - Math.pow(a.image.minY - a.image.currentY + 1, .8)), a.image.currentY > a.image.maxY && (a.image.currentY = a.image.maxY - 1 + Math.pow(a.image.currentY - a.image.maxY + 1, .8)), a.velocity.prevPositionX || (a.velocity.prevPositionX = a.image.touchesCurrent.x), a.velocity.prevPositionY || (a.velocity.prevPositionY = a.image.touchesCurrent.y), a.velocity.prevTime || (a.velocity.prevTime = Date.now()), a.velocity.x = (a.image.touchesCurrent.x - a.velocity.prevPositionX) / (Date.now() - a.velocity.prevTime) / 2, a.velocity.y = (a.image.touchesCurrent.y - a.velocity.prevPositionY) / (Date.now() - a.velocity.prevTime) / 2, Math.abs(a.image.touchesCurrent.x - a.velocity.prevPositionX) < 2 && (a.velocity.x = 0), Math.abs(a.image.touchesCurrent.y - a.velocity.prevPositionY) < 2 && (a.velocity.y = 0), a.velocity.prevPositionX = a.image.touchesCurrent.x, a.velocity.prevPositionY = a.image.touchesCurrent.y, a.velocity.prevTime = Date.now(), a.gesture.imageWrap.transform("translate3d(" + a.image.currentX + "px, " + a.image.currentY + "px,0)"); } } }, onTouchEnd: function(e, a) { var t = e.zoom; if (t.gesture.image && 0 !== t.gesture.image.length) { if (!t.image.isTouched || !t.image.isMoved) return t.image.isTouched = !1, void (t.image.isMoved = !1); t.image.isTouched = !1, t.image.isMoved = !1; var s = 300, r = 300, i = t.velocity.x * s, n = t.image.currentX + i, o = t.velocity.y * r, l = t.image.currentY + o; 0 !== t.velocity.x && (s = Math.abs((n - t.image.currentX) / t.velocity.x)), 0 !== t.velocity.y && (r = Math.abs((l - t.image.currentY) / t.velocity.y)); var p = Math.max(s, r); t.image.currentX = n, t.image.currentY = l; var d = t.image.width * t.scale, m = t.image.height * t.scale; t.image.minX = Math.min(t.gesture.slideWidth / 2 - d / 2, 0), t.image.maxX = -t.image.minX, t.image.minY = Math.min(t.gesture.slideHeight / 2 - m / 2, 0), t.image.maxY = -t.image.minY, t.image.currentX = Math.max(Math.min(t.image.currentX, t.image.maxX), t.image.minX), t.image.currentY = Math.max(Math.min(t.image.currentY, t.image.maxY), t.image.minY), t.gesture.imageWrap.transition(p).transform("translate3d(" + t.image.currentX + "px, " + t.image.currentY + "px,0)"); } }, onTransitionEnd: function(e) { var a = e.zoom; a.gesture.slide && e.previousIndex !== e.activeIndex && (a.gesture.image.transform("translate3d(0,0,0) scale(1)"), a.gesture.imageWrap.transform("translate3d(0,0,0)"), a.gesture.slide = a.gesture.image = a.gesture.imageWrap = void 0, a.scale = a.currentScale = 1); }, toggleZoom: function(a, t) { var r, i, l, p, d, m, u, c, g, h, v, f, w, y, x, T, s = a.zoom; (s.gesture.slide || (s.gesture.slide = a.clickedSlide ? e(a.clickedSlide) : a.slides.eq(a.activeIndex), s.gesture.image = s.gesture.slide.find("img, svg, canvas"), s.gesture.imageWrap = s.gesture.image.parent("." + a.params.zoomContainerClass)), s.gesture.image && 0 !== s.gesture.image.length) && (void 0 === s.image.touchesStart.x && t ? (r = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, i = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (r = s.image.touchesStart.x, i = s.image.touchesStart.y), s.scale && 1 !== s.scale ? (s.scale = s.currentScale = 1, s.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"), s.gesture.slide = void 0) : (s.scale = s.currentScale = s.gesture.imageWrap.attr("data-swiper-zoom") || a.params.zoomMax, t ? (x = s.gesture.slide[0].offsetWidth, T = s.gesture.slide[0].offsetHeight, l = s.gesture.slide.offset().left + x / 2 - r, p = s.gesture.slide.offset().top + T / 2 - i, u = s.gesture.image[0].offsetWidth, c = s.gesture.image[0].offsetHeight, g = u * s.scale, h = c * s.scale, w = -(v = Math.min(x / 2 - g / 2, 0)), y = -(f = Math.min(T / 2 - h / 2, 0)), (d = l * s.scale) < v && (d = v), w < d && (d = w), (m = p * s.scale) < f && (m = f), y < m && (m = y)) : m = d = 0, s.gesture.imageWrap.transition(300).transform("translate3d(" + d + "px, " + m + "px,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(" + s.scale + ")"))); }, attachEvents: function(a) { var t = a ? "off" : "on"; if (x.params.zoom) { var s = (x.slides, !("touchstart" !== x.touchEvents.start || !x.support.passiveListener || !x.params.passiveListeners) && { passive: !0, capture: !1 }); x.support.gestures ? (x.slides[t]("gesturestart", x.zoom.onGestureStart, s), x.slides[t]("gesturechange", x.zoom.onGestureChange, s), x.slides[t]("gestureend", x.zoom.onGestureEnd, s)) : "touchstart" === x.touchEvents.start && (x.slides[t](x.touchEvents.start, x.zoom.onGestureStart, s), x.slides[t](x.touchEvents.move, x.zoom.onGestureChange, s), x.slides[t](x.touchEvents.end, x.zoom.onGestureEnd, s)), x[t]("touchStart", x.zoom.onTouchStart), x.slides.each(function(a, s) { 0 < e(s).find("." + x.params.zoomContainerClass).length && e(s)[t](x.touchEvents.move, x.zoom.onTouchMove); }), x[t]("touchEnd", x.zoom.onTouchEnd), x[t]("transitionEnd", x.zoom.onTransitionEnd), x.params.zoomToggle && x.on("doubleTap", x.zoom.toggleZoom); } }, init: function() { x.zoom.attachEvents(); }, destroy: function() { x.zoom.attachEvents(!0); } }, x._plugins = [], x.plugins) { var A = x.plugins[Y](x, x.params[Y]); A && x._plugins.push(A); } return x.callPlugins = function(e) { for (var a = 0; a < x._plugins.length; a++) e in x._plugins[a] && x._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); }, x.emitterEventListeners = {}, x.emit = function(e) { var a; if (x.params[e] && x.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]), x.emitterEventListeners[e]) for (a = 0; a < x.emitterEventListeners[e].length; a++) x.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); x.callPlugins && x.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); }, x.on = function(e, a) { return e = u(e), x.emitterEventListeners[e] || (x.emitterEventListeners[e] = []), x.emitterEventListeners[e].push(a), x; }, x.off = function(e, a) { var t; if (e = u(e), void 0 === a) return x.emitterEventListeners[e] = [], x; if (x.emitterEventListeners[e] && 0 !== x.emitterEventListeners[e].length) { for (t = 0; t < x.emitterEventListeners[e].length; t++) x.emitterEventListeners[e][t] === a && x.emitterEventListeners[e].splice(t, 1); return x; } }, x.once = function(e, a) { e = u(e); var t = function() { a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), x.off(e, t); }; return x.on(e, t), x; }, x.a11y = { makeFocusable: function(e) { return e.attr("tabIndex", "0"), e; }, addRole: function(e, a) { return e.attr("role", a), e; }, addLabel: function(e, a) { return e.attr("aria-label", a), e; }, disable: function(e) { return e.attr("aria-disabled", !0), e; }, enable: function(e) { return e.attr("aria-disabled", !1), e; }, onEnterKey: function(a) { 13 === a.keyCode && (e(a.target).is(x.params.nextButton) ? (x.onClickNext(a), x.isEnd ? x.a11y.notify(x.params.lastSlideMessage) : x.a11y.notify(x.params.nextSlideMessage)) : e(a.target).is(x.params.prevButton) && (x.onClickPrev(a), x.isBeginning ? x.a11y.notify(x.params.firstSlideMessage) : x.a11y.notify(x.params.prevSlideMessage)), e(a.target).is("." + x.params.bulletClass) && e(a.target)[0].click()); }, liveRegion: e(''), notify: function(e) { var a = x.a11y.liveRegion; 0 !== a.length && (a.html(""), a.html(e)); }, init: function() { x.params.nextButton && x.nextButton && 0 < x.nextButton.length && (x.a11y.makeFocusable(x.nextButton), x.a11y.addRole(x.nextButton, "button"), x.a11y.addLabel(x.nextButton, x.params.nextSlideMessage)), x.params.prevButton && x.prevButton && 0 < x.prevButton.length && (x.a11y.makeFocusable(x.prevButton), x.a11y.addRole(x.prevButton, "button"), x.a11y.addLabel(x.prevButton, x.params.prevSlideMessage)), e(x.container).append(x.a11y.liveRegion); }, initPagination: function() { x.params.pagination && x.params.paginationClickable && x.bullets && x.bullets.length && x.bullets.each(function() { var a = e(this); x.a11y.makeFocusable(a), x.a11y.addRole(a, "button"), x.a11y.addLabel(a, x.params.paginationBulletMessage.replace(/{{index}}/, a.index() + 1)); }); }, destroy: function() { x.a11y.liveRegion && 0 < x.a11y.liveRegion.length && x.a11y.liveRegion.remove(); } }, x.init = function() { x.params.loop && x.createLoop(), x.updateContainerSize(), x.updateSlidesSize(), x.updatePagination(), x.params.scrollbar && x.scrollbar && (x.scrollbar.set(), x.params.scrollbarDraggable && x.scrollbar.enableDraggable()), "slide" !== x.params.effect && x.effects[x.params.effect] && (x.params.loop || x.updateProgress(), x.effects[x.params.effect].setTranslate()), x.params.loop ? x.slideTo(x.params.initialSlide + x.loopedSlides, 0, x.params.runCallbacksOnInit) : (x.slideTo(x.params.initialSlide, 0, x.params.runCallbacksOnInit), 0 === x.params.initialSlide && (x.parallax && x.params.parallax && x.parallax.setTranslate(), x.lazy && x.params.lazyLoading && (x.lazy.load(), x.lazy.initialImageLoaded = !0))), x.attachEvents(), x.params.observer && x.support.observer && x.initObservers(), x.params.preloadImages && !x.params.lazyLoading && x.preloadImages(), x.params.zoom && x.zoom && x.zoom.init(), x.params.autoplay && x.startAutoplay(), x.params.keyboardControl && x.enableKeyboardControl && x.enableKeyboardControl(), x.params.mousewheelControl && x.enableMousewheelControl && x.enableMousewheelControl(), x.params.hashnavReplaceState && (x.params.replaceState = x.params.hashnavReplaceState), x.params.history && x.history && x.history.init(), x.params.hashnav && x.hashnav && x.hashnav.init(), x.params.a11y && x.a11y && x.a11y.init(), x.emit("onInit", x); }, x.cleanupStyles = function() { x.container.removeClass(x.classNames.join(" ")).removeAttr("style"), x.wrapper.removeAttr("style"), x.slides && x.slides.length && x.slides.removeClass([ x.params.slideVisibleClass, x.params.slideActiveClass, x.params.slideNextClass, x.params.slidePrevClass ].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), x.paginationContainer && x.paginationContainer.length && x.paginationContainer.removeClass(x.params.paginationHiddenClass), x.bullets && x.bullets.length && x.bullets.removeClass(x.params.bulletActiveClass), x.params.prevButton && e(x.params.prevButton).removeClass(x.params.buttonDisabledClass), x.params.nextButton && e(x.params.nextButton).removeClass(x.params.buttonDisabledClass), x.params.scrollbar && x.scrollbar && (x.scrollbar.track && x.scrollbar.track.length && x.scrollbar.track.removeAttr("style"), x.scrollbar.drag && x.scrollbar.drag.length && x.scrollbar.drag.removeAttr("style")); }, x.destroy = function(e, a) { x.detachEvents(), x.stopAutoplay(), x.params.scrollbar && x.scrollbar && x.params.scrollbarDraggable && x.scrollbar.disableDraggable(), x.params.loop && x.destroyLoop(), a && x.cleanupStyles(), x.disconnectObservers(), x.params.zoom && x.zoom && x.zoom.destroy(), x.params.keyboardControl && x.disableKeyboardControl && x.disableKeyboardControl(), x.params.mousewheelControl && x.disableMousewheelControl && x.disableMousewheelControl(), x.params.a11y && x.a11y && x.a11y.destroy(), x.params.history && !x.params.replaceState && window.removeEventListener("popstate", x.history.setHistoryPopState), x.params.hashnav && x.hashnav && x.hashnav.destroy(), x.emit("onDestroy"), !1 !== e && (x = null); }, x.init(), x; } }; a.prototype = { isSafari: function() { var e = window.navigator.userAgent.toLowerCase(); return 0 <= e.indexOf("safari") && e.indexOf("chrome") < 0 && e.indexOf("android") < 0; }(), isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent), isArray: function(e) { return "[object Array]" === Object.prototype.toString.apply(e); }, browser: { ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled, ieTouch: window.navigator.msPointerEnabled && 1 < window.navigator.msMaxTouchPoints || window.navigator.pointerEnabled && 1 < window.navigator.maxTouchPoints, lteIE9: function() { var e = document.createElement("div"); return e.innerHTML = "\x3c!--[if lte IE 9]>= d.__options.IEmin) { var e = null; if (void 0 === d._$origin.data("tooltipster-initialTitle") && (void 0 === (e = d._$origin.attr("title")) && (e = null), d._$origin.data("tooltipster-initialTitle", e)), null !== d.__options.content) d.__contentSet(d.__options.content); else { var g, i = d._$origin.attr("data-tooltip-content"); i && (g = a(i)), g && g[0] ? d.__contentSet(g.first()) : d.__contentSet(e); } d._$origin.removeAttr("title").addClass("tooltipstered"), d.__prepareOrigin(), d.__prepareGC(), a.each(d.__options.plugins, function(a, b) { d._plug(b); }), h.hasTouchCapability && a(h.window.document.body).on("touchmove." + d.__namespace + "-triggerOpen", function(a) { d._touchRecordEvent(a); }), d._on("created", function() { d.__prepareTooltip(); })._on("repositioned", function(a) { d.__lastPosition = a.position; }); } else d.__options.disabled = !0; }, __contentInsert: function() { var a = this, b = a._$tooltip.find(".tooltipster-content"), c = a.__Content; return a._trigger({ type: "format", content: a.__Content, format: function(a) { c = a; } }), a.__options.functionFormat && (c = a.__options.functionFormat.call(a, a, { origin: a._$origin[0] }, a.__Content)), "string" != typeof c || a.__options.contentAsHTML ? b.empty().append(c) : b.text(c), a; }, __contentSet: function(b) { return b instanceof a && this.__options.contentCloning && (b = b.clone(!0)), this.__Content = b, this._trigger({ type: "updated", content: b }), this; }, __destroyError: function() { throw new Error("This tooltip has been destroyed and cannot execute your method call."); }, __geometry: function() { var b = this, c = b._$origin, d = b._$origin.is("area"); if (d) { var e = b._$origin.parent().attr("name"); c = a('img[usemap="#' + e + '"]'); } var f = c[0].getBoundingClientRect(), g = a(h.window.document), i = a(h.window), j = c, k = { available: { document: null, window: null }, document: { size: { height: g.height(), width: g.width() } }, window: { scroll: { left: h.window.scrollX || h.window.document.documentElement.scrollLeft, top: h.window.scrollY || h.window.document.documentElement.scrollTop }, size: { height: i.height(), width: i.width() } }, origin: { fixedLineage: !1, offset: {}, size: { height: f.bottom - f.top, width: f.right - f.left }, usemapImage: d ? c[0] : null, windowOffset: { bottom: f.bottom, left: f.left, right: f.right, top: f.top } } }; if (d) { var l = b._$origin.attr("shape"), m = b._$origin.attr("coords"); if (m && (m = m.split(","), a.map(m, function(a, b) { m[b] = parseInt(a); })), "default" != l) switch (l) { case "circle": var n = m[0], o = m[1], p = m[2], q = o - p, r = n - p; k.origin.size.height = 2 * p, k.origin.size.width = k.origin.size.height, k.origin.windowOffset.left += r, k.origin.windowOffset.top += q; break; case "rect": var s = m[0], t = m[1], u = m[2], v = m[3]; k.origin.size.height = v - t, k.origin.size.width = u - s, k.origin.windowOffset.left += s, k.origin.windowOffset.top += t; break; case "poly": for (var w = 0, x = 0, y = 0, z = 0, A = "even", B = 0; B < m.length; B++) { var C = m[B]; "even" == A ? (y < C && (y = C, 0 === B && (w = y)), C < w && (w = C), A = "odd") : (z < C && (z = C, 1 == B && (x = z)), C < x && (x = C), A = "even"); } k.origin.size.height = z - x, k.origin.size.width = y - w, k.origin.windowOffset.left += w, k.origin.windowOffset.top += x; } } for (b._trigger({ type: "geometry", edit: function(a) { k.origin.size.height = a.height, k.origin.windowOffset.left = a.left, k.origin.windowOffset.top = a.top, k.origin.size.width = a.width; }, geometry: { height: k.origin.size.height, left: k.origin.windowOffset.left, top: k.origin.windowOffset.top, width: k.origin.size.width } }), k.origin.windowOffset.right = k.origin.windowOffset.left + k.origin.size.width, k.origin.windowOffset.bottom = k.origin.windowOffset.top + k.origin.size.height, k.origin.offset.left = k.origin.windowOffset.left + k.window.scroll.left, k.origin.offset.top = k.origin.windowOffset.top + k.window.scroll.top, k.origin.offset.bottom = k.origin.offset.top + k.origin.size.height, k.origin.offset.right = k.origin.offset.left + k.origin.size.width, k.available.document = { bottom: { height: k.document.size.height - k.origin.offset.bottom, width: k.document.size.width }, left: { height: k.document.size.height, width: k.origin.offset.left }, right: { height: k.document.size.height, width: k.document.size.width - k.origin.offset.right }, top: { height: k.origin.offset.top, width: k.document.size.width } }, k.available.window = { bottom: { height: Math.max(k.window.size.height - Math.max(k.origin.windowOffset.bottom, 0), 0), width: k.window.size.width }, left: { height: k.window.size.height, width: Math.max(k.origin.windowOffset.left, 0) }, right: { height: k.window.size.height, width: Math.max(k.window.size.width - Math.max(k.origin.windowOffset.right, 0), 0) }, top: { height: Math.max(k.origin.windowOffset.top, 0), width: k.window.size.width } }; "html" != j[0].tagName.toLowerCase(); ) { if ("fixed" == j.css("position")) { k.origin.fixedLineage = !0; break; } j = j.parent(); } return k; }, __optionsFormat: function() { return "number" == typeof this.__options.animationDuration && (this.__options.animationDuration = [ this.__options.animationDuration, this.__options.animationDuration ]), "number" == typeof this.__options.delay && (this.__options.delay = [ this.__options.delay, this.__options.delay ]), "number" == typeof this.__options.delayTouch && (this.__options.delayTouch = [ this.__options.delayTouch, this.__options.delayTouch ]), "string" == typeof this.__options.theme && (this.__options.theme = [ this.__options.theme ]), null === this.__options.parent ? this.__options.parent = a(h.window.document.body) : "string" == typeof this.__options.parent && (this.__options.parent = a(this.__options.parent)), "hover" == this.__options.trigger ? (this.__options.triggerOpen = { mouseenter: !0, touchstart: !0 }, this.__options.triggerClose = { mouseleave: !0, originClick: !0, touchleave: !0 }) : "click" == this.__options.trigger && (this.__options.triggerOpen = { click: !0, tap: !0 }, this.__options.triggerClose = { click: !0, tap: !0 }), this._trigger("options"), this; }, __prepareGC: function() { var b = this; return b.__options.selfDestruction ? b.__garbageCollector = setInterval(function() { var c = new Date().getTime(); b.__touchEvents = a.grep(b.__touchEvents, function(a, b) { return 6e4 < c - a.time; }), d(b._$origin) || b.close(function() { b.destroy(); }); }, 2e4) : clearInterval(b.__garbageCollector), b; }, __prepareOrigin: function() { var a = this; if (a._$origin.off("." + a.__namespace + "-triggerOpen"), h.hasTouchCapability && a._$origin.on("touchstart." + a.__namespace + "-triggerOpen touchend." + a.__namespace + "-triggerOpen touchcancel." + a.__namespace + "-triggerOpen", function(b) { a._touchRecordEvent(b); }), a.__options.triggerOpen.click || a.__options.triggerOpen.tap && h.hasTouchCapability) { var b = ""; a.__options.triggerOpen.click && (b += "click." + a.__namespace + "-triggerOpen "), a.__options.triggerOpen.tap && h.hasTouchCapability && (b += "touchend." + a.__namespace + "-triggerOpen"), a._$origin.on(b, function(b) { a._touchIsMeaningfulEvent(b) && a._open(b); }); } if (a.__options.triggerOpen.mouseenter || a.__options.triggerOpen.touchstart && h.hasTouchCapability) { b = ""; a.__options.triggerOpen.mouseenter && (b += "mouseenter." + a.__namespace + "-triggerOpen "), a.__options.triggerOpen.touchstart && h.hasTouchCapability && (b += "touchstart." + a.__namespace + "-triggerOpen"), a._$origin.on(b, function(b) { !a._touchIsTouchEvent(b) && a._touchIsEmulatedEvent(b) || (a.__pointerIsOverOrigin = !0, a._openShortly(b)); }); } if (a.__options.triggerClose.mouseleave || a.__options.triggerClose.touchleave && h.hasTouchCapability) { b = ""; a.__options.triggerClose.mouseleave && (b += "mouseleave." + a.__namespace + "-triggerOpen "), a.__options.triggerClose.touchleave && h.hasTouchCapability && (b += "touchend." + a.__namespace + "-triggerOpen touchcancel." + a.__namespace + "-triggerOpen"), a._$origin.on(b, function(b) { a._touchIsMeaningfulEvent(b) && (a.__pointerIsOverOrigin = !1); }); } return a; }, __prepareTooltip: function() { var b = this, c = b.__options.interactive ? "auto" : ""; return b._$tooltip.attr("id", b.__namespace).css({ "pointer-events": c, zIndex: b.__options.zIndex }), a.each(b.__previousThemes, function(a, c) { b._$tooltip.removeClass(c); }), a.each(b.__options.theme, function(a, c) { b._$tooltip.addClass(c); }), b.__previousThemes = a.merge([], b.__options.theme), b; }, __scrollHandler: function(b) { var c = this; if (c.__options.triggerClose.scroll) c._close(b); else if (d(c._$origin) && d(c._$tooltip)) { var e = null; if (b.target === h.window.document) c.__Geometry.origin.fixedLineage || c.__options.repositionOnScroll && c.reposition(b); else { e = c.__geometry(); var f = !1; if ("fixed" != c._$origin.css("position") && c.__$originParents.each(function(b, c) { var d = a(c), g = d.css("overflow-x"), h = d.css("overflow-y"); if ("visible" != g || "visible" != h) { var i = c.getBoundingClientRect(); if ("visible" != g && (e.origin.windowOffset.left < i.left || e.origin.windowOffset.right > i.right)) return !(f = !0); if ("visible" != h && (e.origin.windowOffset.top < i.top || e.origin.windowOffset.bottom > i.bottom)) return !(f = !0); } return "fixed" != d.css("position") && void 0; }), f) c._$tooltip.css("visibility", "hidden"); else if (c._$tooltip.css("visibility", "visible"), c.__options.repositionOnScroll) c.reposition(b); else { var g = e.origin.offset.left - c.__Geometry.origin.offset.left, i = e.origin.offset.top - c.__Geometry.origin.offset.top; c._$tooltip.css({ left: c.__lastPosition.coord.left + g, top: c.__lastPosition.coord.top + i }); } } c._trigger({ type: "scroll", event: b, geo: e }); } return c; }, __stateSet: function(a) { return this.__state = a, this._trigger({ type: "state", state: a }), this; }, __timeoutsClear: function() { return clearTimeout(this.__timeouts.open), this.__timeouts.open = null, a.each(this.__timeouts.close, function(a, b) { clearTimeout(b); }), this.__timeouts.close = [], this; }, __trackerStart: function() { var a = this, b = a._$tooltip.find(".tooltipster-content"); return a.__options.trackTooltip && (a.__contentBcr = b[0].getBoundingClientRect()), a.__tracker = setInterval(function() { if (d(a._$origin) && d(a._$tooltip)) { if (a.__options.trackOrigin) { var e = a.__geometry(), f = !1; c(e.origin.size, a.__Geometry.origin.size) && (a.__Geometry.origin.fixedLineage ? c(e.origin.windowOffset, a.__Geometry.origin.windowOffset) && (f = !0) : c(e.origin.offset, a.__Geometry.origin.offset) && (f = !0)), f || (a.__options.triggerClose.mouseleave ? a._close() : a.reposition()); } if (a.__options.trackTooltip) { var g = b[0].getBoundingClientRect(); g.height === a.__contentBcr.height && g.width === a.__contentBcr.width || (a.reposition(), a.__contentBcr = g); } } else a._close(); }, a.__options.trackerInterval), a; }, _close: function(b, c, d) { var e = this, f = !0; if (e._trigger({ type: "close", event: b, stop: function() { f = !1; } }), f || d) { c && e.__callbacks.close.push(c), e.__callbacks.open = [], e.__timeoutsClear(); var g = function() { a.each(e.__callbacks.close, function(a, c) { c.call(e, e, { event: b, origin: e._$origin[0] }); }), e.__callbacks.close = []; }; if ("closed" != e.__state) { var i = !0, l = new Date().getTime() + e.__options.animationDuration[1]; if ("disappearing" == e.__state && l > e.__closingTime && 0 < e.__options.animationDuration[1] && (i = !1), i) { e.__closingTime = l, "disappearing" != e.__state && e.__stateSet("disappearing"); var m = function() { clearInterval(e.__tracker), e._trigger({ type: "closing", event: b }), e._$tooltip.off("." + e.__namespace + "-triggerClose").removeClass("tooltipster-dying"), a(h.window).off("." + e.__namespace + "-triggerClose"), e.__$originParents.each(function(b, c) { a(c).off("scroll." + e.__namespace + "-triggerClose"); }), e.__$originParents = null, a(h.window.document.body).off("." + e.__namespace + "-triggerClose"), e._$origin.off("." + e.__namespace + "-triggerClose"), e._off("dismissable"), e.__stateSet("closed"), e._trigger({ type: "after", event: b }), e.__options.functionAfter && e.__options.functionAfter.call(e, e, { event: b, origin: e._$origin[0] }), g(); }; h.hasTransitions ? (e._$tooltip.css({ "-moz-animation-duration": e.__options.animationDuration[1] + "ms", "-ms-animation-duration": e.__options.animationDuration[1] + "ms", "-o-animation-duration": e.__options.animationDuration[1] + "ms", "-webkit-animation-duration": e.__options.animationDuration[1] + "ms", "animation-duration": e.__options.animationDuration[1] + "ms", "transition-duration": e.__options.animationDuration[1] + "ms" }), e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"), 0 < e.__options.animationDuration[1] && e._$tooltip.delay(e.__options.animationDuration[1]), e._$tooltip.queue(m)) : e._$tooltip.stop().fadeOut(e.__options.animationDuration[1], m); } } else g(); } return e; }, _off: function() { return this.__$emitterPrivate.off.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments)), this; }, _on: function() { return this.__$emitterPrivate.on.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments)), this; }, _one: function() { return this.__$emitterPrivate.one.apply(this.__$emitterPrivate, Array.prototype.slice.apply(arguments)), this; }, _open: function(b, c) { var e = this; if (!e.__destroying && d(e._$origin) && e.__enabled) { var f = !0; if ("closed" == e.__state && (e._trigger({ type: "before", event: b, stop: function() { f = !1; } }), f && e.__options.functionBefore && (f = e.__options.functionBefore.call(e, e, { event: b, origin: e._$origin[0] }))), !1 !== f && null !== e.__Content) { c && e.__callbacks.open.push(c), e.__callbacks.close = [], e.__timeoutsClear(); var g, i = function() { "stable" != e.__state && e.__stateSet("stable"), a.each(e.__callbacks.open, function(a, b) { b.call(e, e, { origin: e._$origin[0], tooltip: e._$tooltip[0] }); }), e.__callbacks.open = []; }; if ("closed" !== e.__state) g = 0, "disappearing" === e.__state ? (e.__stateSet("appearing"), h.hasTransitions ? (e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"), 0 < e.__options.animationDuration[0] && e._$tooltip.delay(e.__options.animationDuration[0]), e._$tooltip.queue(i)) : e._$tooltip.stop().fadeIn(i)) : "stable" == e.__state && i(); else { if (e.__stateSet("appearing"), g = e.__options.animationDuration[0], e.__contentInsert(), e.reposition(b, !0), h.hasTransitions ? (e._$tooltip.addClass("tooltipster-" + e.__options.animation).addClass("tooltipster-initial").css({ "-moz-animation-duration": e.__options.animationDuration[0] + "ms", "-ms-animation-duration": e.__options.animationDuration[0] + "ms", "-o-animation-duration": e.__options.animationDuration[0] + "ms", "-webkit-animation-duration": e.__options.animationDuration[0] + "ms", "animation-duration": e.__options.animationDuration[0] + "ms", "transition-duration": e.__options.animationDuration[0] + "ms" }), setTimeout(function() { "closed" != e.__state && (e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"), 0 < e.__options.animationDuration[0] && e._$tooltip.delay(e.__options.animationDuration[0]), e._$tooltip.queue(i)); }, 0)) : e._$tooltip.css("display", "none").fadeIn(e.__options.animationDuration[0], i), e.__trackerStart(), a(h.window).on("resize." + e.__namespace + "-triggerClose", function(b) { var c = a(document.activeElement); (c.is("input") || c.is("textarea")) && a.contains(e._$tooltip[0], c[0]) || e.reposition(b); }).on("scroll." + e.__namespace + "-triggerClose", function(a) { e.__scrollHandler(a); }), e.__$originParents = e._$origin.parents(), e.__$originParents.each(function(b, c) { a(c).on("scroll." + e.__namespace + "-triggerClose", function(a) { e.__scrollHandler(a); }); }), e.__options.triggerClose.mouseleave || e.__options.triggerClose.touchleave && h.hasTouchCapability) { e._on("dismissable", function(a) { a.dismissable ? a.delay ? (m = setTimeout(function() { e._close(a.event); }, a.delay), e.__timeouts.close.push(m)) : e._close(a) : clearTimeout(m); }); var j = e._$origin, k = "", l = "", m = null; e.__options.interactive && (j = j.add(e._$tooltip)), e.__options.triggerClose.mouseleave && (k += "mouseenter." + e.__namespace + "-triggerClose ", l += "mouseleave." + e.__namespace + "-triggerClose "), e.__options.triggerClose.touchleave && h.hasTouchCapability && (k += "touchstart." + e.__namespace + "-triggerClose", l += "touchend." + e.__namespace + "-triggerClose touchcancel." + e.__namespace + "-triggerClose"), j.on(l, function(a) { if (e._touchIsTouchEvent(a) || !e._touchIsEmulatedEvent(a)) { var b = "mouseleave" == a.type ? e.__options.delay : e.__options.delayTouch; e._trigger({ delay: b[1], dismissable: !0, event: a, type: "dismissable" }); } }).on(k, function(a) { !e._touchIsTouchEvent(a) && e._touchIsEmulatedEvent(a) || e._trigger({ dismissable: !1, event: a, type: "dismissable" }); }); } e.__options.triggerClose.originClick && e._$origin.on("click." + e.__namespace + "-triggerClose", function(a) { e._touchIsTouchEvent(a) || e._touchIsEmulatedEvent(a) || e._close(a); }), (e.__options.triggerClose.click || e.__options.triggerClose.tap && h.hasTouchCapability) && setTimeout(function() { if ("closed" != e.__state) { var b = "", c = a(h.window.document.body); e.__options.triggerClose.click && (b += "click." + e.__namespace + "-triggerClose "), e.__options.triggerClose.tap && h.hasTouchCapability && (b += "touchend." + e.__namespace + "-triggerClose"), c.on(b, function(b) { e._touchIsMeaningfulEvent(b) && (e._touchRecordEvent(b), e.__options.interactive && a.contains(e._$tooltip[0], b.target) || e._close(b)); }), e.__options.triggerClose.tap && h.hasTouchCapability && c.on("touchstart." + e.__namespace + "-triggerClose", function(a) { e._touchRecordEvent(a); }); } }, 0), e._trigger("ready"), e.__options.functionReady && e.__options.functionReady.call(e, e, { origin: e._$origin[0], tooltip: e._$tooltip[0] }); } if (0 < e.__options.timer) { m = setTimeout(function() { e._close(); }, e.__options.timer + g); e.__timeouts.close.push(m); } } } return e; }, _openShortly: function(a) { var b = this, c = !0; if ("stable" != b.__state && "appearing" != b.__state && !b.__timeouts.open && (b._trigger({ type: "start", event: a, stop: function() { c = !1; } }), c)) { var d = 0 == a.type.indexOf("touch") ? b.__options.delayTouch : b.__options.delay; d[0] ? b.__timeouts.open = setTimeout(function() { b.__timeouts.open = null, b.__pointerIsOverOrigin && b._touchIsMeaningfulEvent(a) ? (b._trigger("startend"), b._open(a)) : b._trigger("startcancel"); }, d[0]) : (b._trigger("startend"), b._open(a)); } return b; }, _optionsExtract: function(b, c) { var d = this, e = a.extend(!0, {}, c), f = d.__options[b]; return f || (f = {}, a.each(c, function(a, b) { var c = d.__options[a]; void 0 !== c && (f[a] = c); })), a.each(e, function(b, c) { void 0 !== f[b] && ("object" != typeof c || c instanceof Array || null == c || "object" != typeof f[b] || f[b] instanceof Array || null == f[b] ? e[b] = f[b] : a.extend(e[b], f[b])); }), e; }, _plug: function(b) { var c = a.tooltipster._plugin(b); if (!c) throw new Error('The "' + b + '" plugin is not defined'); return c.instance && a.tooltipster.__bridge(c.instance, this, c.name), this; }, _touchIsEmulatedEvent: function(a) { for (var b = !1, c = new Date().getTime(), d = this.__touchEvents.length - 1; 0 <= d; d--) { var e = this.__touchEvents[d]; if (!(c - e.time < 500)) break; e.target === a.target && (b = !0); } return b; }, _touchIsMeaningfulEvent: function(a) { return this._touchIsTouchEvent(a) && !this._touchSwiped(a.target) || !this._touchIsTouchEvent(a) && !this._touchIsEmulatedEvent(a); }, _touchIsTouchEvent: function(a) { return 0 == a.type.indexOf("touch"); }, _touchRecordEvent: function(a) { return this._touchIsTouchEvent(a) && (a.time = new Date().getTime(), this.__touchEvents.push(a)), this; }, _touchSwiped: function(a) { for (var b = !1, c = this.__touchEvents.length - 1; 0 <= c; c--) { var d = this.__touchEvents[c]; if ("touchmove" == d.type) { b = !0; break; } if ("touchstart" == d.type && a === d.target) break; } return b; }, _trigger: function() { var b = Array.prototype.slice.apply(arguments); return "string" == typeof b[0] && (b[0] = { type: b[0] }), b[0].instance = this, b[0].origin = this._$origin ? this._$origin[0] : null, b[0].tooltip = this._$tooltip ? this._$tooltip[0] : null, this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate, b), a.tooltipster._trigger.apply(a.tooltipster, b), this.__$emitterPublic.trigger.apply(this.__$emitterPublic, b), this; }, _unplug: function(b) { var c = this; if (c[b]) { var d = a.tooltipster._plugin(b); d.instance && a.each(d.instance, function(a, d) { c[a] && c[a].bridged === c[b] && delete c[a]; }), c[b].__destroy && c[b].__destroy(), delete c[b]; } return c; }, close: function(a) { return this.__destroyed ? this.__destroyError() : this._close(null, a), this; }, content: function(a) { var b = this; if (void 0 === a) return b.__Content; if (b.__destroyed) b.__destroyError(); else if (b.__contentSet(a), null !== b.__Content) { if ("closed" !== b.__state && (b.__contentInsert(), b.reposition(), b.__options.updateAnimation)) if (h.hasTransitions) { var c = b.__options.updateAnimation; b._$tooltip.addClass("tooltipster-update-" + c), setTimeout(function() { "closed" != b.__state && b._$tooltip.removeClass("tooltipster-update-" + c); }, 1e3); } else b._$tooltip.fadeTo(200, .5, function() { "closed" != b.__state && b._$tooltip.fadeTo(200, 1); }); } else b._close(); return b; }, destroy: function() { var b = this; if (b.__destroyed) b.__destroyError(); else { "closed" != b.__state ? b.option("animationDuration", 0)._close(null, null, !0) : b.__timeoutsClear(), b._trigger("destroy"), b.__destroyed = !0, b._$origin.removeData(b.__namespace).off("." + b.__namespace + "-triggerOpen"), a(h.window.document.body).off("." + b.__namespace + "-triggerOpen"); var c = b._$origin.data("tooltipster-ns"); if (c) if (1 === c.length) { var d = null; "previous" == b.__options.restoration ? d = b._$origin.data("tooltipster-initialTitle") : "current" == b.__options.restoration && (d = "string" == typeof b.__Content ? b.__Content : a("
").append(b.__Content).html()), d && b._$origin.attr("title", d), b._$origin.removeClass("tooltipstered"), b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle"); } else c = a.grep(c, function(a, c) { return a !== b.__namespace; }), b._$origin.data("tooltipster-ns", c); b._trigger("destroyed"), b._off(), b.off(), b.__Content = null, b.__$emitterPrivate = null, b.__$emitterPublic = null, b.__options.parent = null, b._$origin = null, b._$tooltip = null, a.tooltipster.__instancesLatestArr = a.grep(a.tooltipster.__instancesLatestArr, function(a, c) { return b !== a; }), clearInterval(b.__garbageCollector); } return b; }, disable: function() { return this.__destroyed ? this.__destroyError() : (this._close(), this.__enabled = !1), this; }, elementOrigin: function() { return this.__destroyed ? void this.__destroyError() : this._$origin[0]; }, elementTooltip: function() { return this._$tooltip ? this._$tooltip[0] : null; }, enable: function() { return this.__enabled = !0, this; }, hide: function(a) { return this.close(a); }, instance: function() { return this; }, off: function() { return this.__destroyed || this.__$emitterPublic.off.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments)), this; }, on: function() { return this.__destroyed ? this.__destroyError() : this.__$emitterPublic.on.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments)), this; }, one: function() { return this.__destroyed ? this.__destroyError() : this.__$emitterPublic.one.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments)), this; }, open: function(a) { return this.__destroyed ? this.__destroyError() : this._open(null, a), this; }, option: function(b, c) { return void 0 === c ? this.__options[b] : (this.__destroyed ? this.__destroyError() : (this.__options[b] = c, this.__optionsFormat(), 0 <= a.inArray(b, [ "trigger", "triggerClose", "triggerOpen" ]) && this.__prepareOrigin(), "selfDestruction" === b && this.__prepareGC()), this); }, reposition: function(a, b) { var c = this; return c.__destroyed ? c.__destroyError() : "closed" != c.__state && d(c._$origin) && (b || d(c._$tooltip)) && (b || c._$tooltip.detach(), c.__Geometry = c.__geometry(), c._trigger({ type: "reposition", event: a, helper: { geo: c.__Geometry } })), c; }, show: function(a) { return this.open(a); }, status: function() { return { destroyed: this.__destroyed, enabled: this.__enabled, open: "closed" !== this.__state, state: this.__state }; }, triggerHandler: function() { return this.__destroyed ? this.__destroyError() : this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic, Array.prototype.slice.apply(arguments)), this; } }, a.fn.tooltipster = function() { var b = Array.prototype.slice.apply(arguments), c = "You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE."; if (0 === this.length) return this; if ("string" == typeof b[0]) { var d = "#*$~&"; return this.each(function() { var e = a(this).data("tooltipster-ns"), f = e ? a(this).data(e[0]) : null; if (!f) throw new Error("You called Tooltipster's \"" + b[0] + '" method on an uninitialized element'); if ("function" != typeof f[b[0]]) throw new Error('Unknown method "' + b[0] + '"'); 1 < this.length && "content" == b[0] && (b[1] instanceof a || "object" == typeof b[1] && null != b[1] && b[1].tagName) && !f.__options.contentCloning && f.__options.debug && console.log(c); var g = f[b[0]](b[1], b[2]); return g !== f || "instance" === b[0] ? (d = g, !1) : void 0; }), "#*$~&" !== d ? d : this; } a.tooltipster.__instancesLatestArr = []; var e = b[0] && void 0 !== b[0].multiple, g = e && b[0].multiple || !e && f.multiple, h = b[0] && void 0 !== b[0].content, i = h && b[0].content || !h && f.content, j = b[0] && void 0 !== b[0].contentCloning, k = j && b[0].contentCloning || !j && f.contentCloning, l = b[0] && void 0 !== b[0].debug, m = l && b[0].debug || !l && f.debug; return 1 < this.length && (i instanceof a || "object" == typeof i && null != i && i.tagName) && !k && m && console.log(c), this.each(function() { var c = !1, d = a(this), e = d.data("tooltipster-ns"), f = null; e ? g ? c = !0 : m && (console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."), console.log(this)) : c = !0, c && (f = new a.Tooltipster(this, b[0]), e || (e = []), e.push(f.__namespace), d.data("tooltipster-ns", e), d.data(f.__namespace, f), f.__options.functionInit && f.__options.functionInit.call(f, f, { origin: this }), f._trigger("init")), a.tooltipster.__instancesLatestArr.push(f); }), this; }, b.prototype = { __init: function(b) { this.__$tooltip = b, this.__$tooltip.css({ left: 0, overflow: "hidden", position: "absolute", top: 0 }).find(".tooltipster-content").css("overflow", "auto"), this.$container = a('
').append(this.__$tooltip).appendTo(h.window.document.body); }, __forceRedraw: function() { var a = this.__$tooltip.parent(); this.__$tooltip.detach(), this.__$tooltip.appendTo(a); }, constrain: function(a, b) { return this.constraints = { width: a, height: b }, this.__$tooltip.css({ display: "block", height: "", overflow: "auto", width: a }), this; }, destroy: function() { this.__$tooltip.detach().find(".tooltipster-content").css({ display: "", overflow: "" }), this.$container.remove(); }, free: function() { return this.constraints = null, this.__$tooltip.css({ display: "", height: "", overflow: "visible", width: "" }), this; }, measure: function() { this.__forceRedraw(); var a = this.__$tooltip[0].getBoundingClientRect(), b = { size: { height: a.height || a.bottom - a.top, width: a.width || a.right - a.left } }; if (this.constraints) { var c = this.__$tooltip.find(".tooltipster-content"), d = this.__$tooltip.outerHeight(), e = c[0].getBoundingClientRect(), f = { height: d <= this.constraints.height, width: a.width <= this.constraints.width && e.width >= c[0].scrollWidth - 1 }; b.fits = f.height && f.width; } return h.IE && h.IE <= 11 && b.size.width !== h.window.document.documentElement.clientWidth && (b.size.width = Math.ceil(b.size.width) + 1), b; } }; var j = navigator.userAgent.toLowerCase(); -1 != j.indexOf("msie") ? h.IE = parseInt(j.split("msie")[1]) : -1 !== j.toLowerCase().indexOf("trident") && -1 !== j.indexOf(" rv:11") ? h.IE = 11 : -1 != j.toLowerCase().indexOf("edge/") && (h.IE = parseInt(j.toLowerCase().split("edge/")[1])); var k = "tooltipster.sideTip"; return a.tooltipster._plugin({ name: k, instance: { __defaults: function() { return { arrow: !0, distance: 6, functionPosition: null, maxWidth: null, minIntersection: 16, minWidth: 0, position: null, side: "top", viewportAware: !0 }; }, __init: function(a) { var b = this; b.__instance = a, b.__namespace = "tooltipster-sideTip-" + Math.round(1e6 * Math.random()), b.__previousState = "closed", b.__options, b.__optionsFormat(), b.__instance._on("state." + b.__namespace, function(a) { "closed" == a.state ? b.__close() : "appearing" == a.state && "closed" == b.__previousState && b.__create(), b.__previousState = a.state; }), b.__instance._on("options." + b.__namespace, function() { b.__optionsFormat(); }), b.__instance._on("reposition." + b.__namespace, function(a) { b.__reposition(a.event, a.helper); }); }, __close: function() { this.__instance.content() instanceof a && this.__instance.content().detach(), this.__instance._$tooltip.remove(), this.__instance._$tooltip = null; }, __create: function() { var b = a('
'); this.__options.arrow || b.find(".tooltipster-box").css("margin", 0).end().find(".tooltipster-arrow").hide(), this.__options.minWidth && b.css("min-width", this.__options.minWidth + "px"), this.__options.maxWidth && b.css("max-width", this.__options.maxWidth + "px"), this.__instance._$tooltip = b, this.__instance._trigger("created"); }, __destroy: function() { this.__instance._off("." + self.__namespace); }, __optionsFormat: function() { var b = this; if (b.__options = b.__instance._optionsExtract(k, b.__defaults()), b.__options.position && (b.__options.side = b.__options.position), "object" != typeof b.__options.distance && (b.__options.distance = [ b.__options.distance ]), b.__options.distance.length < 4 && (void 0 === b.__options.distance[1] && (b.__options.distance[1] = b.__options.distance[0]), void 0 === b.__options.distance[2] && (b.__options.distance[2] = b.__options.distance[0]), void 0 === b.__options.distance[3] && (b.__options.distance[3] = b.__options.distance[1]), b.__options.distance = { top: b.__options.distance[0], right: b.__options.distance[1], bottom: b.__options.distance[2], left: b.__options.distance[3] }), "string" == typeof b.__options.side) { b.__options.side = [ b.__options.side, { top: "bottom", right: "left", bottom: "top", left: "right" }[b.__options.side] ], "left" == b.__options.side[0] || "right" == b.__options.side[0] ? b.__options.side.push("top", "bottom") : b.__options.side.push("right", "left"); } 6 === a.tooltipster._env.IE && !0 !== b.__options.arrow && (b.__options.arrow = !1); }, __reposition: function(b, c) { var d, e = this, f = e.__targetFind(c), g = []; e.__instance._$tooltip.detach(); var h = e.__instance._$tooltip.clone(), i = a.tooltipster._getRuler(h), j = !1, k = e.__instance.option("animation"); switch (k && h.removeClass("tooltipster-" + k), a.each([ "window", "document" ], function(d, k) { var l = null; if (e.__instance._trigger({ container: k, helper: c, satisfied: j, takeTest: function(a) { l = a; }, results: g, type: "positionTest" }), 1 == l || 0 != l && 0 == j && ("window" != k || e.__options.viewportAware)) for (d = 0; d < e.__options.side.length; d++) { var m = { horizontal: 0, vertical: 0 }, n = e.__options.side[d]; "top" == n || "bottom" == n ? m.vertical = e.__options.distance[n] : m.horizontal = e.__options.distance[n], e.__sideChange(h, n), a.each([ "natural", "constrained" ], function(a, d) { if (l = null, e.__instance._trigger({ container: k, event: b, helper: c, mode: d, results: g, satisfied: j, side: n, takeTest: function(a) { l = a; }, type: "positionTest" }), 1 == l || 0 != l && 0 == j) { var h = { container: k, distance: m, fits: null, mode: d, outerSize: null, side: n, size: null, target: f[n], whole: null }, p = ("natural" == d ? i.free() : i.constrain(c.geo.available[k][n].width - m.horizontal, c.geo.available[k][n].height - m.vertical)).measure(); if (h.size = p.size, h.outerSize = { height: p.size.height + m.vertical, width: p.size.width + m.horizontal }, "natural" == d ? c.geo.available[k][n].width >= h.outerSize.width && c.geo.available[k][n].height >= h.outerSize.height ? h.fits = !0 : h.fits = !1 : h.fits = p.fits, "window" == k && (h.fits ? h.whole = "top" == n || "bottom" == n ? c.geo.origin.windowOffset.right >= e.__options.minIntersection && c.geo.window.size.width - c.geo.origin.windowOffset.left >= e.__options.minIntersection : c.geo.origin.windowOffset.bottom >= e.__options.minIntersection && c.geo.window.size.height - c.geo.origin.windowOffset.top >= e.__options.minIntersection : h.whole = !1), g.push(h), h.whole) j = !0; else if ("natural" == h.mode && (h.fits || h.size.width <= c.geo.available[k][n].width)) return !1; } }); } }), e.__instance._trigger({ edit: function(a) { g = a; }, event: b, helper: c, results: g, type: "positionTested" }), g.sort(function(a, b) { return a.whole && !b.whole ? -1 : !a.whole && b.whole ? 1 : a.whole && b.whole ? (c = e.__options.side.indexOf(a.side)) < (d = e.__options.side.indexOf(b.side)) ? -1 : d < c ? 1 : "natural" == a.mode ? -1 : 1 : a.fits && !b.fits ? -1 : !a.fits && b.fits ? 1 : a.fits && b.fits ? (c = e.__options.side.indexOf(a.side)) < (d = e.__options.side.indexOf(b.side)) ? -1 : d < c ? 1 : "natural" == a.mode ? -1 : 1 : "document" == a.container && "bottom" == a.side && "natural" == a.mode ? -1 : 1; var c, d; }), (d = g[0]).coord = {}, d.side) { case "left": case "right": d.coord.top = Math.floor(d.target - d.size.height / 2); break; case "bottom": case "top": d.coord.left = Math.floor(d.target - d.size.width / 2); } switch (d.side) { case "left": d.coord.left = c.geo.origin.windowOffset.left - d.outerSize.width; break; case "right": d.coord.left = c.geo.origin.windowOffset.right + d.distance.horizontal; break; case "top": d.coord.top = c.geo.origin.windowOffset.top - d.outerSize.height; break; case "bottom": d.coord.top = c.geo.origin.windowOffset.bottom + d.distance.vertical; } "window" == d.container ? "top" == d.side || "bottom" == d.side ? d.coord.left < 0 ? 0 <= c.geo.origin.windowOffset.right - this.__options.minIntersection ? d.coord.left = 0 : d.coord.left = c.geo.origin.windowOffset.right - this.__options.minIntersection - 1 : d.coord.left > c.geo.window.size.width - d.size.width && (c.geo.origin.windowOffset.left + this.__options.minIntersection <= c.geo.window.size.width ? d.coord.left = c.geo.window.size.width - d.size.width : d.coord.left = c.geo.origin.windowOffset.left + this.__options.minIntersection + 1 - d.size.width) : d.coord.top < 0 ? 0 <= c.geo.origin.windowOffset.bottom - this.__options.minIntersection ? d.coord.top = 0 : d.coord.top = c.geo.origin.windowOffset.bottom - this.__options.minIntersection - 1 : d.coord.top > c.geo.window.size.height - d.size.height && (c.geo.origin.windowOffset.top + this.__options.minIntersection <= c.geo.window.size.height ? d.coord.top = c.geo.window.size.height - d.size.height : d.coord.top = c.geo.origin.windowOffset.top + this.__options.minIntersection + 1 - d.size.height) : (d.coord.left > c.geo.window.size.width - d.size.width && (d.coord.left = c.geo.window.size.width - d.size.width), d.coord.left < 0 && (d.coord.left = 0)), e.__sideChange(h, d.side), c.tooltipClone = h[0], c.tooltipParent = e.__instance.option("parent").parent[0], c.mode = d.mode, c.whole = d.whole, c.origin = e.__instance._$origin[0], c.tooltip = e.__instance._$tooltip[0], delete d.container, delete d.fits, delete d.mode, delete d.outerSize, delete d.whole, d.distance = d.distance.horizontal || d.distance.vertical; var n, o, p, l = a.extend(!0, {}, d); if (e.__instance._trigger({ edit: function(a) { d = a; }, event: b, helper: c, position: l, type: "position" }), e.__options.functionPosition) { var m = e.__options.functionPosition.call(e, e.__instance, c, l); m && (d = m); } i.destroy(), "top" == d.side || "bottom" == d.side ? (n = { prop: "left", val: d.target - d.coord.left }, o = d.size.width - this.__options.minIntersection) : (n = { prop: "top", val: d.target - d.coord.top }, o = d.size.height - this.__options.minIntersection), n.val < this.__options.minIntersection ? n.val = this.__options.minIntersection : n.val > o && (n.val = o), p = c.geo.origin.fixedLineage ? c.geo.origin.windowOffset : { left: c.geo.origin.windowOffset.left + c.geo.window.scroll.left, top: c.geo.origin.windowOffset.top + c.geo.window.scroll.top }, d.coord = { left: p.left + (d.coord.left - c.geo.origin.windowOffset.left), top: p.top + (d.coord.top - c.geo.origin.windowOffset.top) }, e.__sideChange(e.__instance._$tooltip, d.side), c.geo.origin.fixedLineage ? e.__instance._$tooltip.css("position", "fixed") : e.__instance._$tooltip.css("position", ""), e.__instance._$tooltip.css({ left: d.coord.left, top: d.coord.top, height: d.size.height, width: d.size.width }).find(".tooltipster-arrow").css({ left: "", top: "" }).css(n.prop, n.val), e.__instance._$tooltip.appendTo(e.__instance.option("parent")), e.__instance._trigger({ type: "repositioned", event: b, position: d }); }, __sideChange: function(a, b) { a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-" + b); }, __targetFind: function(a) { var b = {}, c = this.__instance._$origin[0].getClientRects(); 1 < c.length && (1 == this.__instance._$origin.css("opacity") && (this.__instance._$origin.css("opacity", .99), c = this.__instance._$origin[0].getClientRects(), this.__instance._$origin.css("opacity", 1))); if (c.length < 2) b.top = Math.floor(a.geo.origin.windowOffset.left + a.geo.origin.size.width / 2), b.bottom = b.top, b.left = Math.floor(a.geo.origin.windowOffset.top + a.geo.origin.size.height / 2), b.right = b.left; else { var e = c[0]; b.top = Math.floor(e.left + (e.right - e.left) / 2), e = 2 < c.length ? c[Math.ceil(c.length / 2) - 1] : c[0], b.right = Math.floor(e.top + (e.bottom - e.top) / 2), e = c[c.length - 1], b.bottom = Math.floor(e.left + (e.right - e.left) / 2), e = 2 < c.length ? c[Math.ceil((c.length + 1) / 2) - 1] : c[c.length - 1], b.left = Math.floor(e.top + (e.bottom - e.top) / 2); } return b; } } }), a; }), function(root, factory) { "function" == typeof define && define.amd ? define([ "jquery" ], function(a0) { return factory(a0); }) : "object" == typeof module && module.exports ? module.exports = factory(require("jquery")) : factory(root.jQuery); }(this, function($) { !function() { "use strict"; var defaults = { mode: "lg-slide", cssEasing: "ease", easing: "linear", speed: 600, height: "100%", width: "100%", addClass: "", startClass: "lg-start-zoom", backdropDuration: 150, hideBarsDelay: 6e3, useLeft: !1, closable: !0, loop: !0, escKey: !0, keyPress: !0, controls: !0, slideEndAnimatoin: !0, hideControlOnEnd: !1, mousewheel: !0, getCaptionFromTitleOrAlt: !0, appendSubHtmlTo: ".lg-sub-html", subHtmlSelectorRelative: !1, preload: 1, showAfterLoad: !0, selector: "", selectWithin: "", nextHtml: "", prevHtml: "", index: !1, iframeMaxWidth: "100%", download: !0, counter: !0, appendCounterTo: ".lg-toolbar", swipeThreshold: 50, enableSwipe: !0, enableDrag: !0, dynamic: !1, dynamicEl: [], galleryId: 1 }; function Plugin(element, options) { if (this.el = element, this.$el = $(element), this.s = $.extend({}, defaults, options), this.s.dynamic && "undefined" !== this.s.dynamicEl && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) throw "When using dynamic mode, you must also define dynamicEl as an Array."; return this.modules = {}, this.lGalleryOn = !1, this.lgBusy = !1, this.hideBartimeout = !1, this.isTouch = "ontouchstart" in document.documentElement, this.s.slideEndAnimatoin && (this.s.hideControlOnEnd = !1), this.s.dynamic ? this.$items = this.s.dynamicEl : "this" === this.s.selector ? this.$items = this.$el : "" !== this.s.selector ? this.s.selectWithin ? this.$items = $(this.s.selectWithin).find(this.s.selector) : this.$items = this.$el.find($(this.s.selector)) : this.$items = this.$el.children(), this.$slide = "", this.$outer = "", this.init(), this; } Plugin.prototype.init = function() { var _this = this; _this.s.preload > _this.$items.length && (_this.s.preload = _this.$items.length); var _hash = window.location.hash; 0 < _hash.indexOf("lg=" + this.s.galleryId) && (_this.index = parseInt(_hash.split("&slide=")[1], 10), $("body").addClass("lg-from-hash"), $("body").hasClass("lg-on") || (setTimeout(function() { _this.build(_this.index); }), $("body").addClass("lg-on"))), _this.s.dynamic ? (_this.$el.trigger("onBeforeOpen.lg"), _this.index = _this.s.index || 0, $("body").hasClass("lg-on") || setTimeout(function() { _this.build(_this.index), $("body").addClass("lg-on"); })) : _this.$items.on("click.lgcustom", function(event) { try { event.preventDefault(), event.preventDefault(); } catch (er) { event.returnValue = !1; } _this.$el.trigger("onBeforeOpen.lg"), _this.index = _this.s.index || _this.$items.index(this), $("body").hasClass("lg-on") || (_this.build(_this.index), $("body").addClass("lg-on")); }); }, Plugin.prototype.build = function(index) { var _this = this; _this.structure(), $.each($.fn.lightGallery.modules, function(key) { _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el); }), _this.slide(index, !1, !1, !1), _this.s.keyPress && _this.keyPress(), 1 < _this.$items.length ? (_this.arrow(), setTimeout(function() { _this.enableDrag(), _this.enableSwipe(); }, 50), _this.s.mousewheel && _this.mousewheel()) : _this.$slide.on("click.lg", function() { _this.$el.trigger("onSlideClick.lg"); }), _this.counter(), _this.closeGallery(), _this.$el.trigger("onAfterOpen.lg"), _this.$outer.on("mousemove.lg click.lg touchstart.lg", function() { _this.$outer.removeClass("lg-hide-items"), clearTimeout(_this.hideBartimeout), _this.hideBartimeout = setTimeout(function() { _this.$outer.addClass("lg-hide-items"); }, _this.s.hideBarsDelay); }), _this.$outer.trigger("mousemove.lg"); }, Plugin.prototype.structure = function() { var template, list = "", controls = "", i = 0, subHtmlCont = "", _this = this; for ($("body").append('
'), $(".lg-backdrop").css("transition-duration", this.s.backdropDuration + "ms"), i = 0; i < this.$items.length; i++) list += '
'; if (this.s.controls && 1 < this.$items.length && (controls = '
"), ".lg-sub-html" === this.s.appendSubHtmlTo && (subHtmlCont = '
'), template = '
' + list + '
' + controls + subHtmlCont + "
", $("body").append(template), this.$outer = $(".lg-outer"), this.$slide = this.$outer.find(".lg-item"), this.s.useLeft ? (this.$outer.addClass("lg-use-left"), this.s.mode = "lg-slide") : this.$outer.addClass("lg-use-css3"), _this.setTop(), $(window).on("resize.lg orientationchange.lg", function() { setTimeout(function() { _this.setTop(); }, 100); }), this.$slide.eq(this.index).addClass("lg-current"), this.doCss() ? this.$outer.addClass("lg-css3") : (this.$outer.addClass("lg-css"), this.s.speed = 0), this.$outer.addClass(this.s.mode), this.s.enableDrag && 1 < this.$items.length && this.$outer.addClass("lg-grab"), this.s.showAfterLoad && this.$outer.addClass("lg-show-after-load"), this.doCss()) { var $inner = this.$outer.find(".lg-inner"); $inner.css("transition-timing-function", this.s.cssEasing), $inner.css("transition-duration", this.s.speed + "ms"); } setTimeout(function() { $(".lg-backdrop").addClass("in"); }), setTimeout(function() { _this.$outer.addClass("lg-visible"); }, this.s.backdropDuration), this.s.download && this.$outer.find(".lg-toolbar").append(''), this.prevScrollTop = $(window).scrollTop(); }, Plugin.prototype.setTop = function() { if ("100%" !== this.s.height) { var wH = $(window).height(), top = (wH - parseInt(this.s.height, 10)) / 2, $lGallery = this.$outer.find(".lg"); wH >= parseInt(this.s.height, 10) ? $lGallery.css("top", top + "px") : $lGallery.css("top", "0px"); } }, Plugin.prototype.doCss = function() { return !!function() { var transition = [ "transition", "MozTransition", "WebkitTransition", "OTransition", "msTransition", "KhtmlTransition" ], root = document.documentElement, i = 0; for (i = 0; i < transition.length; i++) if (transition[i] in root.style) return !0; }(); }, Plugin.prototype.isVideo = function(src, index) { var html; if (html = this.s.dynamic ? this.s.dynamicEl[index].html : this.$items.eq(index).attr("data-html"), !src) return html ? { html5: !0 } : (console.error("lightGallery :- data-src is not pvovided on slide item " + (index + 1) + ". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"), !1); var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i), vimeo = src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i), dailymotion = src.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i), vk = src.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i); return youtube ? { youtube: youtube } : vimeo ? { vimeo: vimeo } : dailymotion ? { dailymotion: dailymotion } : vk ? { vk: vk } : void 0; }, Plugin.prototype.counter = function() { this.s.counter && $(this.s.appendCounterTo).append('
' + (parseInt(this.index, 10) + 1) + ' / ' + this.$items.length + "
"); }, Plugin.prototype.addHtml = function(index) { var subHtmlUrl, $currentEle, subHtml = null; if (this.s.dynamic ? this.s.dynamicEl[index].subHtmlUrl ? subHtmlUrl = this.s.dynamicEl[index].subHtmlUrl : subHtml = this.s.dynamicEl[index].subHtml : ($currentEle = this.$items.eq(index)).attr("data-sub-html-url") ? subHtmlUrl = $currentEle.attr("data-sub-html-url") : (subHtml = $currentEle.attr("data-sub-html"), this.s.getCaptionFromTitleOrAlt && !subHtml && (subHtml = $currentEle.attr("title") || $currentEle.find("img").first().attr("alt"))), !subHtmlUrl) if (null != subHtml) { var fL = subHtml.substring(0, 1); "." !== fL && "#" !== fL || (subHtml = this.s.subHtmlSelectorRelative && !this.s.dynamic ? $currentEle.find(subHtml).html() : $(subHtml).html()); } else subHtml = ""; ".lg-sub-html" === this.s.appendSubHtmlTo ? subHtmlUrl ? this.$outer.find(this.s.appendSubHtmlTo).load(subHtmlUrl) : this.$outer.find(this.s.appendSubHtmlTo).html(subHtml) : subHtmlUrl ? this.$slide.eq(index).load(subHtmlUrl) : this.$slide.eq(index).append(subHtml), null != subHtml && ("" === subHtml ? this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html") : this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")), this.$el.trigger("onAfterAppendSubHtml.lg", [ index ]); }, Plugin.prototype.preload = function(index) { var i = 1, j = 1; for (i = 1; i <= this.s.preload && !(i >= this.$items.length - index); i++) this.loadContent(index + i, !1, 0); for (j = 1; j <= this.s.preload && !(index - j < 0); j++) this.loadContent(index - j, !1, 0); }, Plugin.prototype.loadContent = function(index, rec, delay) { var _$img, _src, _poster, _srcset, _sizes, _html, _this = this, _hasPoster = !1, getResponsiveSrc = function(srcItms) { for (var rsWidth = [], rsSrc = [], i = 0; i < srcItms.length; i++) { var __src = srcItms[i].split(" "); "" === __src[0] && __src.splice(0, 1), rsSrc.push(__src[0]), rsWidth.push(__src[1]); } for (var wWidth = $(window).width(), j = 0; j < rsWidth.length; j++) if (parseInt(rsWidth[j], 10) > wWidth) { _src = rsSrc[j]; break; } }; if (_this.s.dynamic) { if (_this.s.dynamicEl[index].poster && (_hasPoster = !0, _poster = _this.s.dynamicEl[index].poster), _html = _this.s.dynamicEl[index].html, _src = _this.s.dynamicEl[index].src, _this.s.dynamicEl[index].responsive) getResponsiveSrc(_this.s.dynamicEl[index].responsive.split(",")); _srcset = _this.s.dynamicEl[index].srcset, _sizes = _this.s.dynamicEl[index].sizes; } else { if (_this.$items.eq(index).attr("data-poster") && (_hasPoster = !0, _poster = _this.$items.eq(index).attr("data-poster")), _html = _this.$items.eq(index).attr("data-html"), _src = _this.$items.eq(index).attr("href") || _this.$items.eq(index).attr("data-src"), _this.$items.eq(index).attr("data-responsive")) getResponsiveSrc(_this.$items.eq(index).attr("data-responsive").split(",")); _srcset = _this.$items.eq(index).attr("data-srcset"), _sizes = _this.$items.eq(index).attr("data-sizes"); } var iframe = !1; _this.s.dynamic ? _this.s.dynamicEl[index].iframe && (iframe = !0) : "true" === _this.$items.eq(index).attr("data-iframe") && (iframe = !0); var _isVideo = _this.isVideo(_src, index); if (!_this.$slide.eq(index).hasClass("lg-loaded")) { if (iframe) _this.$slide.eq(index).prepend('
'); else if (_hasPoster) { var videoClass = ""; videoClass = _isVideo && _isVideo.youtube ? "lg-has-youtube" : _isVideo && _isVideo.vimeo ? "lg-has-vimeo" : "lg-has-html5", _this.$slide.eq(index).prepend('
'); } else _isVideo ? (_this.$slide.eq(index).prepend('
'), _this.$el.trigger("hasVideo.lg", [ index, _src, _html ])) : _this.$slide.eq(index).prepend('
'); if (_this.$el.trigger("onAferAppendSlide.lg", [ index ]), _$img = _this.$slide.eq(index).find(".lg-object"), _sizes && _$img.attr("sizes", _sizes), _srcset) { _$img.attr("srcset", _srcset); try { picturefill({ elements: [ _$img[0] ] }); } catch (e) { console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document."); } } ".lg-sub-html" !== this.s.appendSubHtmlTo && _this.addHtml(index), _this.$slide.eq(index).addClass("lg-loaded"); } _this.$slide.eq(index).find(".lg-object").on("load.lg error.lg", function() { var _speed = 0; delay && !$("body").hasClass("lg-from-hash") && (_speed = delay), setTimeout(function() { _this.$slide.eq(index).addClass("lg-complete"), _this.$el.trigger("onSlideItemLoad.lg", [ index, delay || 0 ]); }, _speed); }), _isVideo && _isVideo.html5 && !_hasPoster && _this.$slide.eq(index).addClass("lg-complete"), !0 === rec && (_this.$slide.eq(index).hasClass("lg-complete") ? _this.preload(index) : _this.$slide.eq(index).find(".lg-object").on("load.lg error.lg", function() { _this.preload(index); })); }, Plugin.prototype.slide = function(index, fromTouch, fromThumb, direction) { var _prevIndex = this.$outer.find(".lg-current").index(), _this = this; if (!_this.lGalleryOn || _prevIndex !== index) { var _length = this.$slide.length, _time = _this.lGalleryOn ? this.s.speed : 0; if (!_this.lgBusy) { var _src, touchPrev, touchNext; if (this.s.download) (_src = _this.s.dynamic ? !1 !== _this.s.dynamicEl[index].downloadUrl && (_this.s.dynamicEl[index].downloadUrl || _this.s.dynamicEl[index].src) : "false" !== _this.$items.eq(index).attr("data-download-url") && (_this.$items.eq(index).attr("data-download-url") || _this.$items.eq(index).attr("href") || _this.$items.eq(index).attr("data-src"))) ? ($("#lg-download").attr("href", _src), _this.$outer.removeClass("lg-hide-download")) : _this.$outer.addClass("lg-hide-download"); if (this.$el.trigger("onBeforeSlide.lg", [ _prevIndex, index, fromTouch, fromThumb ]), _this.lgBusy = !0, clearTimeout(_this.hideBartimeout), ".lg-sub-html" === this.s.appendSubHtmlTo && setTimeout(function() { _this.addHtml(index); }, _time), this.arrowDisable(index), direction || (index < _prevIndex ? direction = "prev" : _prevIndex < index && (direction = "next")), fromTouch) this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"), 2 < _length ? (touchPrev = index - 1, touchNext = index + 1, 0 === index && _prevIndex === _length - 1 ? (touchNext = 0, touchPrev = _length - 1) : index === _length - 1 && 0 === _prevIndex && (touchNext = 0, touchPrev = _length - 1)) : (touchPrev = 0, touchNext = 1), "prev" === direction ? _this.$slide.eq(touchNext).addClass("lg-next-slide") : _this.$slide.eq(touchPrev).addClass("lg-prev-slide"), _this.$slide.eq(index).addClass("lg-current"); else _this.$outer.addClass("lg-no-trans"), this.$slide.removeClass("lg-prev-slide lg-next-slide"), "prev" === direction ? (this.$slide.eq(index).addClass("lg-prev-slide"), this.$slide.eq(_prevIndex).addClass("lg-next-slide")) : (this.$slide.eq(index).addClass("lg-next-slide"), this.$slide.eq(_prevIndex).addClass("lg-prev-slide")), setTimeout(function() { _this.$slide.removeClass("lg-current"), _this.$slide.eq(index).addClass("lg-current"), _this.$outer.removeClass("lg-no-trans"); }, 50); _this.lGalleryOn ? (setTimeout(function() { _this.loadContent(index, !0, 0); }, this.s.speed + 50), setTimeout(function() { _this.lgBusy = !1, _this.$el.trigger("onAfterSlide.lg", [ _prevIndex, index, fromTouch, fromThumb ]); }, this.s.speed)) : (_this.loadContent(index, !0, _this.s.backdropDuration), _this.lgBusy = !1, _this.$el.trigger("onAfterSlide.lg", [ _prevIndex, index, fromTouch, fromThumb ])), _this.lGalleryOn = !0, this.s.counter && $("#lg-counter-current").text(index + 1); } _this.index = index; } }, Plugin.prototype.goToNextSlide = function(fromTouch) { var _this = this, _loop = _this.s.loop; fromTouch && _this.$slide.length < 3 && (_loop = !1), _this.lgBusy || (_this.index + 1 < _this.$slide.length ? (_this.index++, _this.$el.trigger("onBeforeNextSlide.lg", [ _this.index ]), _this.slide(_this.index, fromTouch, !1, "next")) : _loop ? (_this.index = 0, _this.$el.trigger("onBeforeNextSlide.lg", [ _this.index ]), _this.slide(_this.index, fromTouch, !1, "next")) : _this.s.slideEndAnimatoin && !fromTouch && (_this.$outer.addClass("lg-right-end"), setTimeout(function() { _this.$outer.removeClass("lg-right-end"); }, 400))); }, Plugin.prototype.goToPrevSlide = function(fromTouch) { var _this = this, _loop = _this.s.loop; fromTouch && _this.$slide.length < 3 && (_loop = !1), _this.lgBusy || (0 < _this.index ? (_this.index--, _this.$el.trigger("onBeforePrevSlide.lg", [ _this.index, fromTouch ]), _this.slide(_this.index, fromTouch, !1, "prev")) : _loop ? (_this.index = _this.$items.length - 1, _this.$el.trigger("onBeforePrevSlide.lg", [ _this.index, fromTouch ]), _this.slide(_this.index, fromTouch, !1, "prev")) : _this.s.slideEndAnimatoin && !fromTouch && (_this.$outer.addClass("lg-left-end"), setTimeout(function() { _this.$outer.removeClass("lg-left-end"); }, 400))); }, Plugin.prototype.keyPress = function() { var _this = this; 1 < this.$items.length && $(window).on("keyup.lg", function(e) { 1 < _this.$items.length && (37 === e.keyCode && (e.preventDefault(), _this.goToPrevSlide()), 39 === e.keyCode && (e.preventDefault(), _this.goToNextSlide())); }), $(window).on("keydown.lg", function(e) { !0 === _this.s.escKey && 27 === e.keyCode && (e.preventDefault(), _this.$outer.hasClass("lg-thumb-open") ? _this.$outer.removeClass("lg-thumb-open") : _this.destroy()); }); }, Plugin.prototype.arrow = function() { var _this = this; this.$outer.find(".lg-prev").on("click.lg", function() { _this.goToPrevSlide(); }), this.$outer.find(".lg-next").on("click.lg", function() { _this.goToNextSlide(); }); }, Plugin.prototype.arrowDisable = function(index) { !this.s.loop && this.s.hideControlOnEnd && (index + 1 < this.$slide.length ? this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled") : this.$outer.find(".lg-next").attr("disabled", "disabled").addClass("disabled"), 0 < index ? this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled") : this.$outer.find(".lg-prev").attr("disabled", "disabled").addClass("disabled")); }, Plugin.prototype.setTranslate = function($el, xValue, yValue) { this.s.useLeft ? $el.css("left", xValue) : $el.css({ transform: "translate3d(" + xValue + "px, " + yValue + "px, 0px)" }); }, Plugin.prototype.touchMove = function(startCoords, endCoords) { var distance = endCoords - startCoords; 15 < Math.abs(distance) && (this.$outer.addClass("lg-dragging"), this.setTranslate(this.$slide.eq(this.index), distance, 0), this.setTranslate($(".lg-prev-slide"), -this.$slide.eq(this.index).width() + distance, 0), this.setTranslate($(".lg-next-slide"), this.$slide.eq(this.index).width() + distance, 0)); }, Plugin.prototype.touchEnd = function(distance) { var _this = this; "lg-slide" !== _this.s.mode && _this.$outer.addClass("lg-slide"), this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity", "0"), setTimeout(function() { _this.$outer.removeClass("lg-dragging"), distance < 0 && Math.abs(distance) > _this.s.swipeThreshold ? _this.goToNextSlide(!0) : 0 < distance && Math.abs(distance) > _this.s.swipeThreshold ? _this.goToPrevSlide(!0) : Math.abs(distance) < 5 && _this.$el.trigger("onSlideClick.lg"), _this.$slide.removeAttr("style"); }), setTimeout(function() { _this.$outer.hasClass("lg-dragging") || "lg-slide" === _this.s.mode || _this.$outer.removeClass("lg-slide"); }, _this.s.speed + 100); }, Plugin.prototype.enableSwipe = function() { var _this = this, startCoords = 0, endCoords = 0, isMoved = !1; _this.s.enableSwipe && _this.doCss() && (_this.$slide.on("touchstart.lg", function(e) { _this.$outer.hasClass("lg-zoomed") || _this.lgBusy || (e.preventDefault(), _this.manageSwipeClass(), startCoords = e.originalEvent.targetTouches[0].pageX); }), _this.$slide.on("touchmove.lg", function(e) { _this.$outer.hasClass("lg-zoomed") || (e.preventDefault(), endCoords = e.originalEvent.targetTouches[0].pageX, _this.touchMove(startCoords, endCoords), isMoved = !0); }), _this.$slide.on("touchend.lg", function() { _this.$outer.hasClass("lg-zoomed") || (isMoved ? (isMoved = !1, _this.touchEnd(endCoords - startCoords)) : _this.$el.trigger("onSlideClick.lg")); })); }, Plugin.prototype.enableDrag = function() { var _this = this, startCoords = 0, endCoords = 0, isDraging = !1, isMoved = !1; _this.s.enableDrag && _this.doCss() && (_this.$slide.on("mousedown.lg", function(e) { _this.$outer.hasClass("lg-zoomed") || _this.lgBusy || $(e.target).text().trim() || (e.preventDefault(), _this.manageSwipeClass(), startCoords = e.pageX, isDraging = !0, _this.$outer.scrollLeft += 1, _this.$outer.scrollLeft -= 1, _this.$outer.removeClass("lg-grab").addClass("lg-grabbing"), _this.$el.trigger("onDragstart.lg")); }), $(window).on("mousemove.lg", function(e) { isDraging && (isMoved = !0, endCoords = e.pageX, _this.touchMove(startCoords, endCoords), _this.$el.trigger("onDragmove.lg")); }), $(window).on("mouseup.lg", function(e) { isMoved ? (isMoved = !1, _this.touchEnd(endCoords - startCoords), _this.$el.trigger("onDragend.lg")) : ($(e.target).hasClass("lg-object") || $(e.target).hasClass("lg-video-play")) && _this.$el.trigger("onSlideClick.lg"), isDraging && (isDraging = !1, _this.$outer.removeClass("lg-grabbing").addClass("lg-grab")); })); }, Plugin.prototype.manageSwipeClass = function() { var _touchNext = this.index + 1, _touchPrev = this.index - 1; this.s.loop && 2 < this.$slide.length && (0 === this.index ? _touchPrev = this.$slide.length - 1 : this.index === this.$slide.length - 1 && (_touchNext = 0)), this.$slide.removeClass("lg-next-slide lg-prev-slide"), -1 < _touchPrev && this.$slide.eq(_touchPrev).addClass("lg-prev-slide"), this.$slide.eq(_touchNext).addClass("lg-next-slide"); }, Plugin.prototype.mousewheel = function() { var _this = this; _this.$outer.on("mousewheel.lg", function(e) { e.deltaY && (0 < e.deltaY ? _this.goToPrevSlide() : _this.goToNextSlide(), e.preventDefault()); }); }, Plugin.prototype.closeGallery = function() { var _this = this, mousedown = !1; this.$outer.find(".lg-close").on("click.lg", function() { _this.destroy(); }), _this.s.closable && (_this.$outer.on("mousedown.lg", function(e) { mousedown = !!($(e.target).is(".lg-outer") || $(e.target).is(".lg-item ") || $(e.target).is(".lg-img-wrap")); }), _this.$outer.on("mousemove.lg", function() { mousedown = !1; }), _this.$outer.on("mouseup.lg", function(e) { ($(e.target).is(".lg-outer") || $(e.target).is(".lg-item ") || $(e.target).is(".lg-img-wrap") && mousedown) && (_this.$outer.hasClass("lg-dragging") || _this.destroy()); })); }, Plugin.prototype.destroy = function(d) { var _this = this; d || (_this.$el.trigger("onBeforeClose.lg"), $(window).scrollTop(_this.prevScrollTop)), d && (_this.s.dynamic || this.$items.off("click.lg click.lgcustom"), $.removeData(_this.el, "lightGallery")), this.$el.off(".lg.tm"), $.each($.fn.lightGallery.modules, function(key) { _this.modules[key] && _this.modules[key].destroy(); }), this.lGalleryOn = !1, clearTimeout(_this.hideBartimeout), this.hideBartimeout = !1, $(window).off(".lg"), $("body").removeClass("lg-on lg-from-hash"), _this.$outer && _this.$outer.removeClass("lg-visible"), $(".lg-backdrop").removeClass("in"), setTimeout(function() { _this.$outer && _this.$outer.remove(), $(".lg-backdrop").remove(), d || _this.$el.trigger("onCloseAfter.lg"); }, _this.s.backdropDuration + 50); }, $.fn.lightGallery = function(options) { return this.each(function() { if ($.data(this, "lightGallery")) try { $(this).data("lightGallery").init(); } catch (err) { console.error("lightGallery has not initiated properly"); } else $.data(this, "lightGallery", new Plugin(this, options)); }); }, $.fn.lightGallery.modules = {}; }(); }), function(root, factory) { "function" == typeof define && define.amd ? define([ "jquery" ], function(a0) { return factory(a0); }) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery); }(0, function($) { !function() { "use strict"; var defaults = { fullScreen: !0 }, Fullscreen = function(element) { return this.core = $(element).data("lightGallery"), this.$el = $(element), this.core.s = $.extend({}, defaults, this.core.s), this.init(), this; }; Fullscreen.prototype.init = function() { var fullScreen = ""; if (this.core.s.fullScreen) { if (!(document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled)) return; fullScreen = '', this.core.$outer.find(".lg-toolbar").append(fullScreen), this.fullScreen(); } }, Fullscreen.prototype.requestFullscreen = function() { var el = document.documentElement; el.requestFullscreen ? el.requestFullscreen() : el.msRequestFullscreen ? el.msRequestFullscreen() : el.mozRequestFullScreen ? el.mozRequestFullScreen() : el.webkitRequestFullscreen && el.webkitRequestFullscreen(); }, Fullscreen.prototype.exitFullscreen = function() { document.exitFullscreen ? document.exitFullscreen() : document.msExitFullscreen ? document.msExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen && document.webkitExitFullscreen(); }, Fullscreen.prototype.fullScreen = function() { var _this = this; $(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg", function() { _this.core.$outer.toggleClass("lg-fullscreen-on"); }), this.core.$outer.find(".lg-fullscreen").on("click.lg", function() { document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement ? _this.exitFullscreen() : _this.requestFullscreen(); }); }, Fullscreen.prototype.destroy = function() { this.exitFullscreen(), $(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg"); }, $.fn.lightGallery.modules.fullscreen = Fullscreen; }(); }), function(root, factory) { "function" == typeof define && define.amd ? define([ "jquery" ], function(a0) { return factory(a0); }) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery); }(0, function($) { !function() { "use strict"; var defaults = { thumbnail: !0, animateThumb: !0, currentPagerPosition: "middle", thumbWidth: 100, thumbHeight: "80px", thumbContHeight: 100, thumbMargin: 5, exThumbImage: !1, showThumbByDefault: !0, toogleThumb: !0, pullCaptionUp: !0, enableThumbDrag: !0, enableThumbSwipe: !0, swipeThreshold: 50, loadYoutubeThumbnail: !0, youtubeThumbSize: 1, loadVimeoThumbnail: !0, vimeoThumbSize: "thumbnail_small", loadDailymotionThumbnail: !0 }, Thumbnail = function(element) { return this.core = $(element).data("lightGallery"), this.core.s = $.extend({}, defaults, this.core.s), this.$el = $(element), this.$thumbOuter = null, this.thumbOuterWidth = 0, this.thumbTotalWidth = this.core.$items.length * (this.core.s.thumbWidth + this.core.s.thumbMargin), this.thumbIndex = this.core.index, this.core.s.animateThumb && (this.core.s.thumbHeight = "100%"), this.left = 0, this.init(), this; }; Thumbnail.prototype.init = function() { var _this = this; this.core.s.thumbnail && 1 < this.core.$items.length && (this.core.s.showThumbByDefault && setTimeout(function() { _this.core.$outer.addClass("lg-thumb-open"); }, 700), this.core.s.pullCaptionUp && this.core.$outer.addClass("lg-pull-caption-up"), this.build(), this.core.s.animateThumb && this.core.doCss() ? (this.core.s.enableThumbDrag && this.enableThumbDrag(), this.core.s.enableThumbSwipe && this.enableThumbSwipe(), this.thumbClickable = !1) : this.thumbClickable = !0, this.toogle(), this.thumbkeyPress()); }, Thumbnail.prototype.build = function() { var $thumb, _this = this, thumbList = "", vimeoErrorThumbSize = ""; switch (this.core.s.vimeoThumbSize) { case "thumbnail_large": vimeoErrorThumbSize = "640"; break; case "thumbnail_medium": vimeoErrorThumbSize = "200x150"; break; case "thumbnail_small": vimeoErrorThumbSize = "100x75"; } function getThumb(src, thumb, index) { var thumbImg, isVideo = _this.core.isVideo(src, index) || {}, vimeoId = ""; isVideo.youtube || isVideo.vimeo || isVideo.dailymotion ? isVideo.youtube ? thumbImg = _this.core.s.loadYoutubeThumbnail ? "//img.youtube.com/vi/" + isVideo.youtube[1] + "/" + _this.core.s.youtubeThumbSize + ".jpg" : thumb : isVideo.vimeo ? _this.core.s.loadVimeoThumbnail ? (thumbImg = "//i.vimeocdn.com/video/error_" + vimeoErrorThumbSize + ".jpg", vimeoId = isVideo.vimeo[1]) : thumbImg = thumb : isVideo.dailymotion && (thumbImg = _this.core.s.loadDailymotionThumbnail ? "//www.dailymotion.com/thumbnail/video/" + isVideo.dailymotion[1] : thumb) : thumbImg = thumb, thumbList += '
', vimeoId = ""; } if (_this.core.$outer.addClass("lg-has-thumb"), _this.core.$outer.find(".lg").append('
'), _this.$thumbOuter = _this.core.$outer.find(".lg-thumb-outer"), _this.thumbOuterWidth = _this.$thumbOuter.width(), _this.core.s.animateThumb && _this.core.$outer.find(".lg-thumb").css({ width: _this.thumbTotalWidth + "px", position: "relative" }), this.core.s.animateThumb && _this.$thumbOuter.css("height", _this.core.s.thumbContHeight + "px"), _this.core.s.dynamic) for (var i = 0; i < _this.core.s.dynamicEl.length; i++) getThumb(_this.core.s.dynamicEl[i].src, _this.core.s.dynamicEl[i].thumb, i); else _this.core.$items.each(function(i) { _this.core.s.exThumbImage ? getThumb($(this).attr("href") || $(this).attr("data-src"), $(this).attr(_this.core.s.exThumbImage), i) : getThumb($(this).attr("href") || $(this).attr("data-src"), $(this).find("img").attr("src"), i); }); _this.core.$outer.find(".lg-thumb").html(thumbList), ($thumb = _this.core.$outer.find(".lg-thumb-item")).each(function() { var $this = $(this), vimeoVideoId = $this.attr("data-vimeo-id"); vimeoVideoId && $.getJSON("//www.vimeo.com/api/v2/video/" + vimeoVideoId + ".json?callback=?", { format: "json" }, function(data) { $this.find("img").attr("src", data[0][_this.core.s.vimeoThumbSize]); }); }), $thumb.eq(_this.core.index).addClass("active"), _this.core.$el.on("onBeforeSlide.lg.tm", function() { $thumb.removeClass("active"), $thumb.eq(_this.core.index).addClass("active"); }), $thumb.on("click.lg touchend.lg", function() { var _$this = $(this); setTimeout(function() { (_this.thumbClickable && !_this.core.lgBusy || !_this.core.doCss()) && (_this.core.index = _$this.index(), _this.core.slide(_this.core.index, !1, !0, !1)); }, 50); }), _this.core.$el.on("onBeforeSlide.lg.tm", function() { _this.animateThumb(_this.core.index); }), $(window).on("resize.lg.thumb orientationchange.lg.thumb", function() { setTimeout(function() { _this.animateThumb(_this.core.index), _this.thumbOuterWidth = _this.$thumbOuter.width(); }, 200); }); }, Thumbnail.prototype.setTranslate = function(value) { this.core.$outer.find(".lg-thumb").css({ transform: "translate3d(-" + value + "px, 0px, 0px)" }); }, Thumbnail.prototype.animateThumb = function(index) { var $thumb = this.core.$outer.find(".lg-thumb"); if (this.core.s.animateThumb) { var position; switch (this.core.s.currentPagerPosition) { case "left": position = 0; break; case "middle": position = this.thumbOuterWidth / 2 - this.core.s.thumbWidth / 2; break; case "right": position = this.thumbOuterWidth - this.core.s.thumbWidth; } this.left = (this.core.s.thumbWidth + this.core.s.thumbMargin) * index - 1 - position, this.left > this.thumbTotalWidth - this.thumbOuterWidth && (this.left = this.thumbTotalWidth - this.thumbOuterWidth), this.left < 0 && (this.left = 0), this.core.lGalleryOn ? ($thumb.hasClass("on") || this.core.$outer.find(".lg-thumb").css("transition-duration", this.core.s.speed + "ms"), this.core.doCss() || $thumb.animate({ left: -this.left + "px" }, this.core.s.speed)) : this.core.doCss() || $thumb.css("left", -this.left + "px"), this.setTranslate(this.left); } }, Thumbnail.prototype.enableThumbDrag = function() { var _this = this, startCoords = 0, endCoords = 0, isDraging = !1, isMoved = !1, tempLeft = 0; _this.$thumbOuter.addClass("lg-grab"), _this.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb", function(e) { _this.thumbTotalWidth > _this.thumbOuterWidth && (e.preventDefault(), startCoords = e.pageX, isDraging = !0, _this.core.$outer.scrollLeft += 1, _this.core.$outer.scrollLeft -= 1, _this.thumbClickable = !1, _this.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing")); }), $(window).on("mousemove.lg.thumb", function(e) { isDraging && (tempLeft = _this.left, isMoved = !0, endCoords = e.pageX, _this.$thumbOuter.addClass("lg-dragging"), (tempLeft -= endCoords - startCoords) > _this.thumbTotalWidth - _this.thumbOuterWidth && (tempLeft = _this.thumbTotalWidth - _this.thumbOuterWidth), tempLeft < 0 && (tempLeft = 0), _this.setTranslate(tempLeft)); }), $(window).on("mouseup.lg.thumb", function() { isMoved ? (isMoved = !1, _this.$thumbOuter.removeClass("lg-dragging"), _this.left = tempLeft, Math.abs(endCoords - startCoords) < _this.core.s.swipeThreshold && (_this.thumbClickable = !0)) : _this.thumbClickable = !0, isDraging && (isDraging = !1, _this.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")); }); }, Thumbnail.prototype.enableThumbSwipe = function() { var _this = this, startCoords = 0, endCoords = 0, isMoved = !1, tempLeft = 0; _this.core.$outer.find(".lg-thumb").on("touchstart.lg", function(e) { _this.thumbTotalWidth > _this.thumbOuterWidth && (e.preventDefault(), startCoords = e.originalEvent.targetTouches[0].pageX, _this.thumbClickable = !1); }), _this.core.$outer.find(".lg-thumb").on("touchmove.lg", function(e) { _this.thumbTotalWidth > _this.thumbOuterWidth && (e.preventDefault(), endCoords = e.originalEvent.targetTouches[0].pageX, isMoved = !0, _this.$thumbOuter.addClass("lg-dragging"), tempLeft = _this.left, (tempLeft -= endCoords - startCoords) > _this.thumbTotalWidth - _this.thumbOuterWidth && (tempLeft = _this.thumbTotalWidth - _this.thumbOuterWidth), tempLeft < 0 && (tempLeft = 0), _this.setTranslate(tempLeft)); }), _this.core.$outer.find(".lg-thumb").on("touchend.lg", function() { _this.thumbTotalWidth > _this.thumbOuterWidth && isMoved ? (isMoved = !1, _this.$thumbOuter.removeClass("lg-dragging"), Math.abs(endCoords - startCoords) < _this.core.s.swipeThreshold && (_this.thumbClickable = !0), _this.left = tempLeft) : _this.thumbClickable = !0; }); }, Thumbnail.prototype.toogle = function() { var _this = this; _this.core.s.toogleThumb && (_this.core.$outer.addClass("lg-can-toggle"), _this.$thumbOuter.append(''), _this.core.$outer.find(".lg-toogle-thumb").on("click.lg", function() { _this.core.$outer.toggleClass("lg-thumb-open"); })); }, Thumbnail.prototype.thumbkeyPress = function() { var _this = this; $(window).on("keydown.lg.thumb", function(e) { 38 === e.keyCode ? (e.preventDefault(), _this.core.$outer.addClass("lg-thumb-open")) : 40 === e.keyCode && (e.preventDefault(), _this.core.$outer.removeClass("lg-thumb-open")); }); }, Thumbnail.prototype.destroy = function() { this.core.s.thumbnail && 1 < this.core.$items.length && ($(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"), this.$thumbOuter.remove(), this.core.$outer.removeClass("lg-has-thumb")); }, $.fn.lightGallery.modules.Thumbnail = Thumbnail; }(); }), function(root, factory) { "function" == typeof define && define.amd ? define([ "jquery" ], function(a0) { return factory(a0); }) : "object" == typeof module && module.exports ? module.exports = factory(require("jquery")) : factory(root.jQuery); }(this, function($) { !function() { "use strict"; var defaults = { videoMaxWidth: "855px", autoplayFirstVideo: !0, youtubePlayerParams: !1, vimeoPlayerParams: !1, dailymotionPlayerParams: !1, vkPlayerParams: !1, videojs: !1, videojsOptions: {} }, Video = function(element) { return this.core = $(element).data("lightGallery"), this.$el = $(element), this.core.s = $.extend({}, defaults, this.core.s), this.videoLoaded = !1, this.init(), this; }; Video.prototype.init = function() { var _this = this; _this.core.$el.on("hasVideo.lg.tm", function(event, index, src, html) { var _this = this; if (_this.core.$slide.eq(index).find(".lg-video").append(_this.loadVideo(src, "lg-object", !0, index, html)), html) if (_this.core.s.videojs) try { videojs(_this.core.$slide.eq(index).find(".lg-html5").get(0), _this.core.s.videojsOptions, function() { !_this.videoLoaded && _this.core.s.autoplayFirstVideo && this.play(); }); } catch (e) { console.error("Make sure you have included videojs"); } else !_this.videoLoaded && _this.core.s.autoplayFirstVideo && _this.core.$slide.eq(index).find(".lg-html5").get(0).play(); }.bind(this)), _this.core.$el.on("onAferAppendSlide.lg.tm", function(event, index) { var $videoCont = this.core.$slide.eq(index).find(".lg-video-cont"); $videoCont.hasClass("lg-has-iframe") || ($videoCont.css("max-width", this.core.s.videoMaxWidth), this.videoLoaded = !0); }.bind(this)), _this.core.doCss() && 1 < _this.core.$items.length && (_this.core.s.enableSwipe || _this.core.s.enableDrag) ? _this.core.$el.on("onSlideClick.lg.tm", function() { var $el = _this.core.$slide.eq(_this.core.index); _this.loadVideoOnclick($el); }) : _this.core.$slide.on("click.lg", function() { _this.loadVideoOnclick($(this)); }), _this.core.$el.on("onBeforeSlide.lg.tm", function(event, prevIndex, index) { var _src, $videoSlide = this.core.$slide.eq(prevIndex), youtubePlayer = $videoSlide.find(".lg-youtube").get(0), vimeoPlayer = $videoSlide.find(".lg-vimeo").get(0), dailymotionPlayer = $videoSlide.find(".lg-dailymotion").get(0), vkPlayer = $videoSlide.find(".lg-vk").get(0), html5Player = $videoSlide.find(".lg-html5").get(0); if (youtubePlayer) youtubePlayer.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', "*"); else if (vimeoPlayer) try { $f(vimeoPlayer).api("pause"); } catch (e) { console.error("Make sure you have included froogaloop2 js"); } else if (dailymotionPlayer) dailymotionPlayer.contentWindow.postMessage("pause", "*"); else if (html5Player) if (this.core.s.videojs) try { videojs(html5Player).pause(); } catch (e) { console.error("Make sure you have included videojs"); } else html5Player.pause(); vkPlayer && $(vkPlayer).attr("src", $(vkPlayer).attr("src").replace("&autoplay", "&noplay")); _src = this.core.s.dynamic ? this.core.s.dynamicEl[index].src : this.core.$items.eq(index).attr("href") || this.core.$items.eq(index).attr("data-src"); var _isVideo = this.core.isVideo(_src, index) || {}; (_isVideo.youtube || _isVideo.vimeo || _isVideo.dailymotion || _isVideo.vk) && this.core.$outer.addClass("lg-hide-download"); }.bind(this)), _this.core.$el.on("onAfterSlide.lg.tm", function(event, prevIndex) { _this.core.$slide.eq(prevIndex).removeClass("lg-video-playing"); }), _this.core.s.autoplayFirstVideo && _this.core.$el.on("onAferAppendSlide.lg.tm", function(e, index) { if (!_this.core.lGalleryOn) { var $el = _this.core.$slide.eq(index); setTimeout(function() { _this.loadVideoOnclick($el); }, 100); } }); }, Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) { var video = "", autoplay = 1, a = "", isVideo = this.core.isVideo(src, index) || {}; if (noPoster && (autoplay = this.videoLoaded ? 0 : this.core.s.autoplayFirstVideo ? 1 : 0), isVideo.youtube) a = "?wmode=opaque&autoplay=" + autoplay + "&enablejsapi=1", this.core.s.youtubePlayerParams && (a = a + "&" + $.param(this.core.s.youtubePlayerParams)), video = ''; else if (isVideo.vimeo) a = "?autoplay=" + autoplay + "&api=1", this.core.s.vimeoPlayerParams && (a = a + "&" + $.param(this.core.s.vimeoPlayerParams)), video = ''; else if (isVideo.dailymotion) a = "?wmode=opaque&autoplay=" + autoplay + "&api=postMessage", this.core.s.dailymotionPlayerParams && (a = a + "&" + $.param(this.core.s.dailymotionPlayerParams)), video = ''; else if (isVideo.html5) { var fL = html.substring(0, 1); "." !== fL && "#" !== fL || (html = $(html).html()), video = html; } else isVideo.vk && (a = "&autoplay=" + autoplay, this.core.s.vkPlayerParams && (a = a + "&" + $.param(this.core.s.vkPlayerParams)), video = ''); return video; }, Video.prototype.loadVideoOnclick = function($el) { var _this = this; if ($el.find(".lg-object").hasClass("lg-has-poster") && $el.find(".lg-object").is(":visible")) if ($el.hasClass("lg-has-video")) { var youtubePlayer = $el.find(".lg-youtube").get(0), vimeoPlayer = $el.find(".lg-vimeo").get(0), dailymotionPlayer = $el.find(".lg-dailymotion").get(0), html5Player = $el.find(".lg-html5").get(0); if (youtubePlayer) youtubePlayer.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', "*"); else if (vimeoPlayer) try { $f(vimeoPlayer).api("play"); } catch (e) { console.error("Make sure you have included froogaloop2 js"); } else if (dailymotionPlayer) dailymotionPlayer.contentWindow.postMessage("play", "*"); else if (html5Player) if (_this.core.s.videojs) try { videojs(html5Player).play(); } catch (e) { console.error("Make sure you have included videojs"); } else html5Player.play(); $el.addClass("lg-video-playing"); } else { $el.addClass("lg-video-playing lg-has-video"); var _loadVideo = function(_src, _html) { if ($el.find(".lg-video").append(_this.loadVideo(_src, "", !1, _this.core.index, _html)), _html) if (_this.core.s.videojs) try { videojs(_this.core.$slide.eq(_this.core.index).find(".lg-html5").get(0), _this.core.s.videojsOptions, function() { this.play(); }); } catch (e) { console.error("Make sure you have included videojs"); } else _this.core.$slide.eq(_this.core.index).find(".lg-html5").get(0).play(); }; _this.core.s.dynamic ? _loadVideo(_this.core.s.dynamicEl[_this.core.index].src, _this.core.s.dynamicEl[_this.core.index].html) : _loadVideo(_this.core.$items.eq(_this.core.index).attr("href") || _this.core.$items.eq(_this.core.index).attr("data-src"), _this.core.$items.eq(_this.core.index).attr("data-html")); var $tempImg = $el.find(".lg-object"); $el.find(".lg-video").append($tempImg), $el.find(".lg-video-object").hasClass("lg-html5") || ($el.removeClass("lg-complete"), $el.find(".lg-video-object").on("load.lg error.lg", function() { $el.addClass("lg-complete"); })); } }, Video.prototype.destroy = function() { this.videoLoaded = !1; }, $.fn.lightGallery.modules.video = Video; }(); }), function(root, factory) { "function" == typeof define && define.amd ? define([ "jquery" ], function(a0) { return factory(a0); }) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery); }(0, function($) { !function() { "use strict"; var defaults = { autoplay: !1, pause: 5e3, progressBar: !0, fourceAutoplay: !1, autoplayControls: !0, appendAutoplayControlsTo: ".lg-toolbar" }, Autoplay = function(element) { return this.core = $(element).data("lightGallery"), this.$el = $(element), !(this.core.$items.length < 2) && (this.core.s = $.extend({}, defaults, this.core.s), this.interval = !1, this.fromAuto = !0, this.canceledOnTouch = !1, this.fourceAutoplayTemp = this.core.s.fourceAutoplay, this.core.doCss() || (this.core.s.progressBar = !1), this.init(), this); }; Autoplay.prototype.init = function() { var _this = this; _this.core.s.autoplayControls && _this.controls(), _this.core.s.progressBar && _this.core.$outer.find(".lg").append('
'), _this.progress(), _this.core.s.autoplay && _this.$el.one("onSlideItemLoad.lg.tm", function() { _this.startlAuto(); }), _this.$el.on("onDragstart.lg.tm touchstart.lg.tm", function() { _this.interval && (_this.cancelAuto(), _this.canceledOnTouch = !0); }), _this.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm", function() { !_this.interval && _this.canceledOnTouch && (_this.startlAuto(), _this.canceledOnTouch = !1); }); }, Autoplay.prototype.progress = function() { var _$progressBar, _$progress, _this = this; _this.$el.on("onBeforeSlide.lg.tm", function() { _this.core.s.progressBar && _this.fromAuto && (_$progressBar = _this.core.$outer.find(".lg-progress-bar"), _$progress = _this.core.$outer.find(".lg-progress"), _this.interval && (_$progress.removeAttr("style"), _$progressBar.removeClass("lg-start"), setTimeout(function() { _$progress.css("transition", "width " + (_this.core.s.speed + _this.core.s.pause) + "ms ease 0s"), _$progressBar.addClass("lg-start"); }, 20))), _this.fromAuto || _this.core.s.fourceAutoplay || _this.cancelAuto(), _this.fromAuto = !1; }); }, Autoplay.prototype.controls = function() { var _this = this; $(this.core.s.appendAutoplayControlsTo).append(''), _this.core.$outer.find(".lg-autoplay-button").on("click.lg", function() { $(_this.core.$outer).hasClass("lg-show-autoplay") ? (_this.cancelAuto(), _this.core.s.fourceAutoplay = !1) : _this.interval || (_this.startlAuto(), _this.core.s.fourceAutoplay = _this.fourceAutoplayTemp); }); }, Autoplay.prototype.startlAuto = function() { var _this = this; _this.core.$outer.find(".lg-progress").css("transition", "width " + (_this.core.s.speed + _this.core.s.pause) + "ms ease 0s"), _this.core.$outer.addClass("lg-show-autoplay"), _this.core.$outer.find(".lg-progress-bar").addClass("lg-start"), _this.interval = setInterval(function() { _this.core.index + 1 < _this.core.$items.length ? _this.core.index++ : _this.core.index = 0, _this.fromAuto = !0, _this.core.slide(_this.core.index, !1, !1, "next"); }, _this.core.s.speed + _this.core.s.pause); }, Autoplay.prototype.cancelAuto = function() { clearInterval(this.interval), this.interval = !1, this.core.$outer.find(".lg-progress").removeAttr("style"), this.core.$outer.removeClass("lg-show-autoplay"), this.core.$outer.find(".lg-progress-bar").removeClass("lg-start"); }, Autoplay.prototype.destroy = function() { this.cancelAuto(), this.core.$outer.find(".lg-progress-bar").remove(); }, $.fn.lightGallery.modules.autoplay = Autoplay; }(); }); var controller = new ScrollMagic.Controller(); jQuery(document).ready(function() { if (jQuery("#ricarica_cellulare ul li").click(function() { id_valore_ricarica = jQuery(this).attr("id"), jQuery("#ricarica_cellulare ul li").removeClass("active"), jQuery(this).addClass("active"), jQuery("#ricarica_cellulare #needle").removeClass(), jQuery("#ricarica_cellulare #needle").addClass(id_valore_ricarica), res_value = id_valore_ricarica.replace("euro", ""), jQuery("#valore_ricarica").val(res_value); }), jQuery("#scheda_prodotto").length) { if (jQuery(".lightgallery_page").length && jQuery("body").lightGallery({ selector: ".lightgallery_page", thumbnail: !1, animateThumb: !1, showThumbByDefault: !1, download: !1, hideBarsDelay: 1e9, closable: !1, zoom: !1, loop: !1, fullScreen: !1, autoplayControls: !1, counter: !1, hash: !1 }), 0 < jQuery("#gallery-top .swiper-slide").length) { idactive = 0; var galleryTop = new Swiper("#gallery-top", { lazyLoading: !0, lazyLoadingInPrevNext: !0, onTransitionEnd: function(galleryTop) { idactive = galleryTop.activeIndex; } }); jQuery("#comandi_slide .colori_img").click(function() { idactive += 1, idactive >= galleryTop.slides.length && (idactive = 0), galleryTop.slideTo(idactive); }); if(jQuery("#gallery-top .swiper-slide").length < 2) { jQuery("#comandi_slide .colori_img").remove(); }; if((jQuery("#gallery-top .img_front").length == 1)&& (jQuery("#gallery-top .img_back").length == 0)) { jQuery("#comandi_slide .zoom_img").remove(); jQuery(".swiper-slide .img_front").removeAttr('href'); jQuery(".swiper-slide .img_front").off('click'); }; } ; 0 < jQuery("#gallery-top .swiper-slide .img_back").length ? jQuery("#comandi_slide .ruota_img").click(function() { jQuery("#gallery-top").toggleClass("ruota"); }) : jQuery("#comandi_slide .ruota_img").remove(), jQuery("#comandi_slide .zoom_img").click(function() { jQuery("#gallery-top").hasClass("ruota") ? jQuery("#gallery-top .swiper-slide-active a.img_back").click() : jQuery("#gallery-top .swiper-slide-active a.img_front").click(); }), jQuery(".toggle_caratteristiche h3").click(function() { jQuery(this).next(".caratteristiche-block").slideToggle(); }); } jQuery(".box-accordion h3").click(function() { jQuery(this).toggleClass("active"), jQuery(this).next(".collapse").slideToggle(); }), 0 < jQuery(".campo_datapicker").length && (jQuery(".campo_datapicker").datepicker({ changeMonth: !0, changeYear: !0, yearRange: "-100:+0" }), jQuery.datepicker.setDefaults(jQuery.datepicker.regional.it)), myWidth = jQuery(window).width(), (0 < jQuery("#pm15_main").length || 0 < jQuery("#pm15_canvas").length || 0 < jQuery("#pm15_site_container").length || 0 < jQuery("#pm13_main_container").length) && (myWidth = screen.width), myHeight = jQuery(window).height(), jQuery(window).resize(function() { myWidth = jQuery(window).width(), myHeight = jQuery(window).height(), (0 < jQuery("#pm15_main").length || 0 < jQuery("#pm15_canvas").length || 0 < jQuery("#pm15_site_container").length || 0 < jQuery("#pm13_main_container").length) && (myWidth = screen.width); }), jQuery("span.tooltip").tooltipster({ maxWidth: 400, debug: !1, theme: [ "tooltipster-borderless" ] }), jQuery("#checkall_consensi").click(function() { var checked = $(this).prop("checked"); $("#consensi").find("input:checkbox").prop("checked", checked); }), jQuery("#nav-toggle").click(function() { open_mobile(); }), jQuery(".ico-cerca").click(function() { open_cerca(); }), jQuery(".cerca_close").click(function() { open_cerca(); }), jQuery(".cosa_serve h2").click(function() { jQuery(".cosa_serve ul").toggleClass("cosa_serve_aperto"), jQuery(this).toggleClass("open_h2"); }), jQuery(".popup_contrato").click(function(e) { e.preventDefault(), link_popup = jQuery(this).attr("data-href"), jQuery("#popup_load").load(link_popup), jQuery(".popup_info").addClass("open"); }), jQuery(".popup_info_close, .popup_info_back").click(function(e) { e.preventDefault(), jQuery(".popup_info").removeClass("open"); }), 1560 < myWidth ? jQuery(".carrello").addClass("open_link_dett") : jQuery(".carrello").addClass("open_link_carrello"), jQuery(".link_carrello").click(function(e) { jQuery(".carrello").addClass("open_link_dett"), jQuery(".carrello").removeClass("open_link_carrello"); }), jQuery(".close_carrello").click(function(e) { jQuery(".carrello").removeClass("open_link_dett"), jQuery(".carrello").addClass("open_link_carrello"); }); new ScrollMagic.Scene({ triggerElement: "body", triggerHook: "onLeave" }).setClassToggle("#header", "top_meno").offset(140).addTo(controller), new ScrollMagic.Scene({ triggerElement: "body", triggerHook: "onLeave" }).setClassToggle("#header", "fixed").offset(200).addTo(controller); if (0 < jQuery("#offertaposte").length && (setTimeout(function() { jQuery("div#offertaposte").addClass("open"); }, 2e3), jQuery("div.offertaposte_close").click(function() { jQuery("div#offertaposte").removeClass("open"); })), 0 < jQuery(".blocco_assistente_pad").length) { jQuery(".assistente_bottom a").click(function(e) { e.preventDefault(), goToByScroll("blocco_assistente"); }); new ScrollMagic.Scene({ triggerElement: ".blocco_assistente_pad", triggerHook: "onEnter" }).setClassToggle(".blocco_assistente_pad", "open").addTo(controller); } if (jQuery("input[type=radio][name=modalita_recupero]").change(function() { "recupero-modalita-1" == this.value ? (jQuery("#tabs-1").show(), jQuery("#tabs-2").hide()) : "recupero-modalita-2" == this.value && (jQuery("#tabs-1").hide(), jQuery("#tabs-2").show()); }), jQuery(".sub_col.mobile h2").click(function(e) { myWidth < 768 && (jQuery(this).next("ul").slideToggle(), jQuery(this).toggleClass("active")); }), 0 < jQuery("#bannerone_basket").length) new ScrollMagic.Scene({ triggerElement: "#bannerone_basket:not(.no_animation)", offset: -100 }).setClassToggle(".txt_banner_basket", "open").addTo(controller); if (0 < jQuery(".opinione_ricarica").length) new ScrollMagic.Scene({ triggerElement: ".opinione_ricarica:not(.no_animation)", offset: -100 }).setClassToggle(".opinione_ricarica ul", "open").addTo(controller); for (var slides = document.querySelectorAll(".section"), i = 0; i < slides.length; i++) new ScrollMagic.Scene({ triggerElement: slides[i] }).setClassToggle(slides[i], "apriamo").addTo(controller); if (0 < jQuery(".banner_animation_test").length) for (var slides_animation = document.querySelectorAll(".banner_animation_test:not(.open)"), i_animation = 0; i_animation < slides_animation.length; i_animation++) new ScrollMagic.Scene({ triggerElement: slides_animation[i_animation], offset: -100 }).setClassToggle(slides_animation[i_animation], "open").on("progress", callback).addTo(controller); if ($(".slider-primo_blocco_100_500").each(function() { if (1 < jQuery(this).find(".swiper-slide").length) new Swiper(this, { pagination: $(this).find(".swiper-pagination")[0], paginationClickable: !0, preloadImages: !1, lazyLoading: !0, lazyLoadingInPrevNext: !0 }); else jQuery(this).find(".swiper-slide").addClass("swiper-slide-active"); }), myWidth < 768 && ($(".slider-banner").each(function() { new Swiper(this, { nextButton: $(this).find(".swiper-button-next")[0], prevButton: $(this).find(".swiper-button-prev")[0], autoHeight: "auto", preloadImages: !1, lazyLoading: !0, lazyLoadingInPrevNext: !0 }); }), $(".video-viewport").each(function() { jQuery(this).find("img").show(), jQuery(this).find("video").remove(); }), $(".video_autoplay").each(function() { jQuery(this).find("img").show(), jQuery(this).find("video").remove(); }), $(".banner-viewport").each(function() { jQuery(this).find("img").show(), jQuery(this).find("video").remove(); })), jQuery("ul.tool_tagli_ricarica li").click(function() { switch (valore_taglio = jQuery(this).html(), jQuery("#speedNobe").removeAttr("class"), valore_taglio) { case "5": jQuery("#speedNobe").addClass("ricarica_5"); break; case "10": jQuery("#speedNobe").addClass("ricarica_10"); break; case "15": jQuery("#speedNobe").addClass("ricarica_15"); break; case "20": jQuery("#speedNobe").addClass("ricarica_20"); break; case "50": jQuery("#speedNobe").addClass("ricarica_50"); break; case "80": jQuery("#speedNobe").addClass("ricarica_80"); break; case "100": jQuery("#speedNobe").addClass("ricarica_100"); break; case "150": jQuery("#speedNobe").addClass("ricarica_150"); } jQuery("ul.tool_tagli_ricarica li").removeClass("active"), jQuery(this).addClass("active"); }), 768 < myWidth && 0 < jQuery("#scena_skyline").length && jQuery().parallax && jQuery("#scene").parallax(), jQuery(".modal-header .close").click(function() { jQuery(".modale-box").fadeOut(); }), jQuery(".dett-filtri").click(function() { jQuery(this).toggleClass("active"), jQuery(".filtri_rassegna-altro").slideToggle(); }), jQuery(".intesta-rassegna-3 .condividi").click(function() { jQuery(".popover-menu").slideToggle(); }), jQuery("#main-menu .submenu > a").click(function(e) { myWidth <= 970 ? jQuery(this).hasClass("active") ? (jQuery(this).removeClass("active"), jQuery("#main-menu .submenu > .sub").slideUp()) : (jQuery("#main-menu .submenu > a").removeClass("active"), jQuery("#main-menu .submenu > .sub").slideUp(), jQuery(this).addClass("active"), jQuery(this).next("div.sub").slideDown()) : jQuery(this).next("div.sub").removeAttr("style"), e.preventDefault(); }), jQuery("#second-menu .third-menu-puls.submenu .menu_loggato > a").click(function(e) { myWidth <= 768 && jQuery("#second-menu .third-menu-puls.submenu .sub").slideToggle(), e.preventDefault(); }), jQuery(".info_telefono .telefono .vivavoce").click(function() { jQuery("#modale_vivavoce").fadeIn(); }), jQuery(".info_telefono .telefono .display").click(function() { jQuery("#modale_display").fadeIn(); }), jQuery(".info_telefono .telefono .rubrica").click(function() { jQuery("#modale_rubrica").fadeIn(); }), jQuery("#scopri_tariffe").click(function(e) { jQuery(".intestazione_tariffe_roaming").slideDown(), jQuery("html,body").animate({ scrollTop: jQuery(".intestazione_tariffe_roaming").offset().top - 180 }, "slow"), e.preventDefault(); }), 0 < jQuery("#anchor-submenu").length) { jQuery("#anchor-submenu ul li a").click(function(e) { id_ancora = jQuery(this).attr("href"), jQuery("html,body").animate({ scrollTop: jQuery(id_ancora).offset().top - 180 }, "slow"), e.preventDefault(); }), new ScrollMagic.Scene({ triggerElement: "#anchor-submenu", triggerHook: "onLeave", offset: -100 }).setPin("#anchor-submenu").addTo(controller); for (var slides_mega_menu = document.querySelectorAll(".sezione_mega"), i_mega_menu = 0; i_mega_menu < slides_mega_menu.length; i_mega_menu++) new ScrollMagic.Scene({ triggerElement: slides_mega_menu[i_mega_menu], duration: jQuery(".sezione_mega:eq(" + i_mega_menu + ")").height() }).setClassToggle(slides_mega_menu[i_mega_menu], "apriamo").on("enter", funcs[i_mega_menu] = printValue(i_mega_menu)).on("leave", funcs_2[i_mega_menu] = printValue_2(i_mega_menu)).addTo(controller); } }); var funcs = [], funcs_2 = []; function printValue(e) { return function() { jQuery("#anchor-submenu ul li:eq(" + e + ") a ").addClass("active"); }; } function printValue_2(e) { return function() { jQuery("#anchor-submenu ul li a").removeClass("active"); }; } var figure = $(".video_autoplay"), vid = figure.find("video"); function callback(event) { console.log("Ciao"); } function hoverVideo(index, e) { 767 < myWidth && vid[index].play(); } function hideVideo(index, e) { 767 < myWidth && vid[index].pause(); } function open_mobile() { 0 === visua_open_mobile ? (jQuery("body").addClass("open_mobile"), jQuery("#nav-toggle").addClass("active"), visua_open_mobile = 1) : (jQuery("body").removeClass("open_mobile"), jQuery("#nav-toggle").removeClass("active"), visua_open_mobile = 0); } function open_cerca() { 0 === visua_open_cerca ? (jQuery("body").addClass("open_cerca"), visua_open_cerca = 1) : (jQuery("body").removeClass("open_cerca"), visua_open_cerca = 0); } [].forEach.call(figure, function(item, index) { item.parentElement.addEventListener("mouseover", hoverVideo.bind(item, index), !1), item.parentElement.addEventListener("mouseout", hideVideo.bind(item, index), !1); }), visua_open_mobile = 0; var n_callback = visua_open_cerca = 0; function callback(event) { 0 === n_callback && (n_callback = 1, $("video.mini_hover_autoplay").each(function() { jQuery(this).get(0).play(); }), setTimeout(function() { jQuery(".video_autoplay").addClass("close"); }, 4900)); } jQuery(function($) { 0 < jQuery(".campo_datapicker").length && ($.datepicker.regional.it = { closeText: "Chiudi", prevText: "<Prec", nextText: "Succ>", currentText: "Oggi", monthNames: [ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ], monthNamesShort: [ "Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic" ], dayNames: [ "Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato" ], dayNamesShort: [ "Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab" ], dayNamesMin: [ "Do", "Lu", "Ma", "Me", "Gio", "Ve", "Sa" ], dateFormat: "dd/mm/yy", firstDay: 1, isRTL: !1 }, $.datepicker.setDefaults($.datepicker.regional.it)); });