swiper.min.js 174 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404
  1. /**
  2. * Swiper 5.2.0
  3. * Most modern mobile touch slider and framework with hardware accelerated transitions
  4. * http://swiperjs.com
  5. *
  6. * Copyright 2014-2019 Vladimir Kharlampidi
  7. *
  8. * Released under the MIT License
  9. *
  10. * Released on: October 26, 2019
  11. */
  12. ! function(e, t) {
  13. "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define &&
  14. define.amd ? define(t) : (e = e || self).Swiper = t()
  15. }(this, (function() {
  16. "use strict";
  17. var e = "undefined" == typeof document ? {
  18. body: {},
  19. addEventListener: function() {},
  20. removeEventListener: function() {},
  21. activeElement: {
  22. blur: function() {},
  23. nodeName: ""
  24. },
  25. querySelector: function() {
  26. return null
  27. },
  28. querySelectorAll: function() {
  29. return []
  30. },
  31. getElementById: function() {
  32. return null
  33. },
  34. createEvent: function() {
  35. return {
  36. initEvent: function() {}
  37. }
  38. },
  39. createElement: function() {
  40. return {
  41. children: [],
  42. childNodes: [],
  43. style: {},
  44. setAttribute: function() {},
  45. getElementsByTagName: function() {
  46. return []
  47. }
  48. }
  49. },
  50. location: {
  51. hash: ""
  52. }
  53. } : document,
  54. t = "undefined" == typeof window ? {
  55. document: e,
  56. navigator: {
  57. userAgent: ""
  58. },
  59. location: {},
  60. history: {},
  61. CustomEvent: function() {
  62. return this
  63. },
  64. addEventListener: function() {},
  65. removeEventListener: function() {},
  66. getComputedStyle: function() {
  67. return {
  68. getPropertyValue: function() {
  69. return ""
  70. }
  71. }
  72. },
  73. Image: function() {},
  74. Date: function() {},
  75. screen: {},
  76. setTimeout: function() {},
  77. clearTimeout: function() {}
  78. } : window,
  79. i = function(e) {
  80. for (var t = 0; t < e.length; t += 1) this[t] = e[t];
  81. return this.length = e.length, this
  82. };
  83. function s(s, a) {
  84. var r = [],
  85. n = 0;
  86. if (s && !a && s instanceof i) return s;
  87. if (s)
  88. if ("string" == typeof s) {
  89. var o, l, d = s.trim();
  90. if (d.indexOf("<") >= 0 && d.indexOf(">") >= 0) {
  91. var h = "div";
  92. for (0 === d.indexOf("<li") && (h = "ul"), 0 === d.indexOf("<tr") && (h = "tbody"), 0 !== d.indexOf("<td") && 0 !==
  93. d.indexOf("<th") || (h = "tr"), 0 === d.indexOf("<tbody") && (h = "table"), 0 === d.indexOf("<option") && (h =
  94. "select"), (l = e.createElement(h)).innerHTML = d, n = 0; n < l.childNodes.length; n += 1) r.push(l.childNodes[
  95. n])
  96. } else
  97. for (o = a || "#" !== s[0] || s.match(/[ .<>:~]/) ? (a || e).querySelectorAll(s.trim()) : [e.getElementById(s.trim()
  98. .split("#")[1])], n = 0; n < o.length; n += 1) o[n] && r.push(o[n])
  99. } else if (s.nodeType || s === t || s === e) r.push(s);
  100. else if (s.length > 0 && s[0].nodeType)
  101. for (n = 0; n < s.length; n += 1) r.push(s[n]);
  102. return new i(r)
  103. }
  104. function a(e) {
  105. for (var t = [], i = 0; i < e.length; i += 1) - 1 === t.indexOf(e[i]) && t.push(e[i]);
  106. return t
  107. }
  108. s.fn = i.prototype, s.Class = i, s.Dom7 = i;
  109. var r = {
  110. addClass: function(e) {
  111. if (void 0 === e) return this;
  112. for (var t = e.split(" "), i = 0; i < t.length; i += 1)
  113. for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList
  114. .add(t[i]);
  115. return this
  116. },
  117. removeClass: function(e) {
  118. for (var t = e.split(" "), i = 0; i < t.length; i += 1)
  119. for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList
  120. .remove(t[i]);
  121. return this
  122. },
  123. hasClass: function(e) {
  124. return !!this[0] && this[0].classList.contains(e)
  125. },
  126. toggleClass: function(e) {
  127. for (var t = e.split(" "), i = 0; i < t.length; i += 1)
  128. for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList
  129. .toggle(t[i]);
  130. return this
  131. },
  132. attr: function(e, t) {
  133. var i = arguments;
  134. if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0;
  135. for (var s = 0; s < this.length; s += 1)
  136. if (2 === i.length) this[s].setAttribute(e, t);
  137. else
  138. for (var a in e) this[s][a] = e[a], this[s].setAttribute(a, e[a]);
  139. return this
  140. },
  141. removeAttr: function(e) {
  142. for (var t = 0; t < this.length; t += 1) this[t].removeAttribute(e);
  143. return this
  144. },
  145. data: function(e, t) {
  146. var i;
  147. if (void 0 !== t) {
  148. for (var s = 0; s < this.length; s += 1)(i = this[s]).dom7ElementDataStorage || (i.dom7ElementDataStorage = {}),
  149. i.dom7ElementDataStorage[e] = t;
  150. return this
  151. }
  152. if (i = this[0]) {
  153. if (i.dom7ElementDataStorage && e in i.dom7ElementDataStorage) return i.dom7ElementDataStorage[e];
  154. var a = i.getAttribute("data-" + e);
  155. return a || void 0
  156. }
  157. },
  158. transform: function(e) {
  159. for (var t = 0; t < this.length; t += 1) {
  160. var i = this[t].style;
  161. i.webkitTransform = e, i.transform = e
  162. }
  163. return this
  164. },
  165. transition: function(e) {
  166. "string" != typeof e && (e += "ms");
  167. for (var t = 0; t < this.length; t += 1) {
  168. var i = this[t].style;
  169. i.webkitTransitionDuration = e, i.transitionDuration = e
  170. }
  171. return this
  172. },
  173. on: function() {
  174. for (var e, t = [], i = arguments.length; i--;) t[i] = arguments[i];
  175. var a = t[0],
  176. r = t[1],
  177. n = t[2],
  178. o = t[3];
  179. function l(e) {
  180. var t = e.target;
  181. if (t) {
  182. var i = e.target.dom7EventData || [];
  183. if (i.indexOf(e) < 0 && i.unshift(e), s(t).is(r)) n.apply(t, i);
  184. else
  185. for (var a = s(t).parents(), o = 0; o < a.length; o += 1) s(a[o]).is(r) && n.apply(a[o], i)
  186. }
  187. }
  188. function d(e) {
  189. var t = e && e.target && e.target.dom7EventData || [];
  190. t.indexOf(e) < 0 && t.unshift(e), n.apply(this, t)
  191. }
  192. "function" == typeof t[1] && (a = (e = t)[0], n = e[1], o = e[2], r = void 0), o || (o = !1);
  193. for (var h, p = a.split(" "), c = 0; c < this.length; c += 1) {
  194. var u = this[c];
  195. if (r)
  196. for (h = 0; h < p.length; h += 1) {
  197. var v = p[h];
  198. u.dom7LiveListeners || (u.dom7LiveListeners = {}), u.dom7LiveListeners[v] || (u.dom7LiveListeners[v] = []), u
  199. .dom7LiveListeners[v].push({
  200. listener: n,
  201. proxyListener: l
  202. }), u.addEventListener(v, l, o)
  203. } else
  204. for (h = 0; h < p.length; h += 1) {
  205. var f = p[h];
  206. u.dom7Listeners || (u.dom7Listeners = {}), u.dom7Listeners[f] || (u.dom7Listeners[f] = []), u.dom7Listeners[
  207. f].push({
  208. listener: n,
  209. proxyListener: d
  210. }), u.addEventListener(f, d, o)
  211. }
  212. }
  213. return this
  214. },
  215. off: function() {
  216. for (var e, t = [], i = arguments.length; i--;) t[i] = arguments[i];
  217. var s = t[0],
  218. a = t[1],
  219. r = t[2],
  220. n = t[3];
  221. "function" == typeof t[1] && (s = (e = t)[0], r = e[1], n = e[2], a = void 0), n || (n = !1);
  222. for (var o = s.split(" "), l = 0; l < o.length; l += 1)
  223. for (var d = o[l], h = 0; h < this.length; h += 1) {
  224. var p = this[h],
  225. c = void 0;
  226. if (!a && p.dom7Listeners ? c = p.dom7Listeners[d] : a && p.dom7LiveListeners && (c = p.dom7LiveListeners[d]),
  227. c && c.length)
  228. for (var u = c.length - 1; u >= 0; u -= 1) {
  229. var v = c[u];
  230. r && v.listener === r ? (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1)) : r && v.listener &&
  231. v.listener.dom7proxy && v.listener.dom7proxy === r ? (p.removeEventListener(d, v.proxyListener, n), c.splice(
  232. u, 1)) : r || (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1))
  233. }
  234. }
  235. return this
  236. },
  237. trigger: function() {
  238. for (var i = [], s = arguments.length; s--;) i[s] = arguments[s];
  239. for (var a = i[0].split(" "), r = i[1], n = 0; n < a.length; n += 1)
  240. for (var o = a[n], l = 0; l < this.length; l += 1) {
  241. var d = this[l],
  242. h = void 0;
  243. try {
  244. h = new t.CustomEvent(o, {
  245. detail: r,
  246. bubbles: !0,
  247. cancelable: !0
  248. })
  249. } catch (t) {
  250. (h = e.createEvent("Event")).initEvent(o, !0, !0), h.detail = r
  251. }
  252. d.dom7EventData = i.filter((function(e, t) {
  253. return t > 0
  254. })), d.dispatchEvent(h), d.dom7EventData = [], delete d.dom7EventData
  255. }
  256. return this
  257. },
  258. transitionEnd: function(e) {
  259. var t, i = ["webkitTransitionEnd", "transitionend"],
  260. s = this;
  261. function a(r) {
  262. if (r.target === this)
  263. for (e.call(this, r), t = 0; t < i.length; t += 1) s.off(i[t], a)
  264. }
  265. if (e)
  266. for (t = 0; t < i.length; t += 1) s.on(i[t], a);
  267. return this
  268. },
  269. outerWidth: function(e) {
  270. if (this.length > 0) {
  271. if (e) {
  272. var t = this.styles();
  273. return this[0].offsetWidth + parseFloat(t.getPropertyValue("margin-right")) + parseFloat(t.getPropertyValue(
  274. "margin-left"))
  275. }
  276. return this[0].offsetWidth
  277. }
  278. return null
  279. },
  280. outerHeight: function(e) {
  281. if (this.length > 0) {
  282. if (e) {
  283. var t = this.styles();
  284. return this[0].offsetHeight + parseFloat(t.getPropertyValue("margin-top")) + parseFloat(t.getPropertyValue(
  285. "margin-bottom"))
  286. }
  287. return this[0].offsetHeight
  288. }
  289. return null
  290. },
  291. offset: function() {
  292. if (this.length > 0) {
  293. var i = this[0],
  294. s = i.getBoundingClientRect(),
  295. a = e.body,
  296. r = i.clientTop || a.clientTop || 0,
  297. n = i.clientLeft || a.clientLeft || 0,
  298. o = i === t ? t.scrollY : i.scrollTop,
  299. l = i === t ? t.scrollX : i.scrollLeft;
  300. return {
  301. top: s.top + o - r,
  302. left: s.left + l - n
  303. }
  304. }
  305. return null
  306. },
  307. css: function(e, i) {
  308. var s;
  309. if (1 === arguments.length) {
  310. if ("string" != typeof e) {
  311. for (s = 0; s < this.length; s += 1)
  312. for (var a in e) this[s].style[a] = e[a];
  313. return this
  314. }
  315. if (this[0]) return t.getComputedStyle(this[0], null).getPropertyValue(e)
  316. }
  317. if (2 === arguments.length && "string" == typeof e) {
  318. for (s = 0; s < this.length; s += 1) this[s].style[e] = i;
  319. return this
  320. }
  321. return this
  322. },
  323. each: function(e) {
  324. if (!e) return this;
  325. for (var t = 0; t < this.length; t += 1)
  326. if (!1 === e.call(this[t], t, this[t])) return this;
  327. return this
  328. },
  329. html: function(e) {
  330. if (void 0 === e) return this[0] ? this[0].innerHTML : void 0;
  331. for (var t = 0; t < this.length; t += 1) this[t].innerHTML = e;
  332. return this
  333. },
  334. text: function(e) {
  335. if (void 0 === e) return this[0] ? this[0].textContent.trim() : null;
  336. for (var t = 0; t < this.length; t += 1) this[t].textContent = e;
  337. return this
  338. },
  339. is: function(a) {
  340. var r, n, o = this[0];
  341. if (!o || void 0 === a) return !1;
  342. if ("string" == typeof a) {
  343. if (o.matches) return o.matches(a);
  344. if (o.webkitMatchesSelector) return o.webkitMatchesSelector(a);
  345. if (o.msMatchesSelector) return o.msMatchesSelector(a);
  346. for (r = s(a), n = 0; n < r.length; n += 1)
  347. if (r[n] === o) return !0;
  348. return !1
  349. }
  350. if (a === e) return o === e;
  351. if (a === t) return o === t;
  352. if (a.nodeType || a instanceof i) {
  353. for (r = a.nodeType ? [a] : a, n = 0; n < r.length; n += 1)
  354. if (r[n] === o) return !0;
  355. return !1
  356. }
  357. return !1
  358. },
  359. index: function() {
  360. var e, t = this[0];
  361. if (t) {
  362. for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1);
  363. return e
  364. }
  365. },
  366. eq: function(e) {
  367. if (void 0 === e) return this;
  368. var t, s = this.length;
  369. return new i(e > s - 1 ? [] : e < 0 ? (t = s + e) < 0 ? [] : [this[t]] : [this[e]])
  370. },
  371. append: function() {
  372. for (var t, s = [], a = arguments.length; a--;) s[a] = arguments[a];
  373. for (var r = 0; r < s.length; r += 1) {
  374. t = s[r];
  375. for (var n = 0; n < this.length; n += 1)
  376. if ("string" == typeof t) {
  377. var o = e.createElement("div");
  378. for (o.innerHTML = t; o.firstChild;) this[n].appendChild(o.firstChild)
  379. } else if (t instanceof i)
  380. for (var l = 0; l < t.length; l += 1) this[n].appendChild(t[l]);
  381. else this[n].appendChild(t)
  382. }
  383. return this
  384. },
  385. prepend: function(t) {
  386. var s, a;
  387. for (s = 0; s < this.length; s += 1)
  388. if ("string" == typeof t) {
  389. var r = e.createElement("div");
  390. for (r.innerHTML = t, a = r.childNodes.length - 1; a >= 0; a -= 1) this[s].insertBefore(r.childNodes[a], this[
  391. s].childNodes[0])
  392. } else if (t instanceof i)
  393. for (a = 0; a < t.length; a += 1) this[s].insertBefore(t[a], this[s].childNodes[0]);
  394. else this[s].insertBefore(t, this[s].childNodes[0]);
  395. return this
  396. },
  397. next: function(e) {
  398. return this.length > 0 ? e ? this[0].nextElementSibling && s(this[0].nextElementSibling).is(e) ? new i([this[0].nextElementSibling]) :
  399. new i([]) : this[0].nextElementSibling ? new i([this[0].nextElementSibling]) : new i([]) : new i([])
  400. },
  401. nextAll: function(e) {
  402. var t = [],
  403. a = this[0];
  404. if (!a) return new i([]);
  405. for (; a.nextElementSibling;) {
  406. var r = a.nextElementSibling;
  407. e ? s(r).is(e) && t.push(r) : t.push(r), a = r
  408. }
  409. return new i(t)
  410. },
  411. prev: function(e) {
  412. if (this.length > 0) {
  413. var t = this[0];
  414. return e ? t.previousElementSibling && s(t.previousElementSibling).is(e) ? new i([t.previousElementSibling]) :
  415. new i([]) : t.previousElementSibling ? new i([t.previousElementSibling]) : new i([])
  416. }
  417. return new i([])
  418. },
  419. prevAll: function(e) {
  420. var t = [],
  421. a = this[0];
  422. if (!a) return new i([]);
  423. for (; a.previousElementSibling;) {
  424. var r = a.previousElementSibling;
  425. e ? s(r).is(e) && t.push(r) : t.push(r), a = r
  426. }
  427. return new i(t)
  428. },
  429. parent: function(e) {
  430. for (var t = [], i = 0; i < this.length; i += 1) null !== this[i].parentNode && (e ? s(this[i].parentNode).is(e) &&
  431. t.push(this[i].parentNode) : t.push(this[i].parentNode));
  432. return s(a(t))
  433. },
  434. parents: function(e) {
  435. for (var t = [], i = 0; i < this.length; i += 1)
  436. for (var r = this[i].parentNode; r;) e ? s(r).is(e) && t.push(r) : t.push(r), r = r.parentNode;
  437. return s(a(t))
  438. },
  439. closest: function(e) {
  440. var t = this;
  441. return void 0 === e ? new i([]) : (t.is(e) || (t = t.parents(e).eq(0)), t)
  442. },
  443. find: function(e) {
  444. for (var t = [], s = 0; s < this.length; s += 1)
  445. for (var a = this[s].querySelectorAll(e), r = 0; r < a.length; r += 1) t.push(a[r]);
  446. return new i(t)
  447. },
  448. children: function(e) {
  449. for (var t = [], r = 0; r < this.length; r += 1)
  450. for (var n = this[r].childNodes, o = 0; o < n.length; o += 1) e ? 1 === n[o].nodeType && s(n[o]).is(e) && t.push(
  451. n[o]) : 1 === n[o].nodeType && t.push(n[o]);
  452. return new i(a(t))
  453. },
  454. filter: function(e) {
  455. for (var t = [], s = 0; s < this.length; s += 1) e.call(this[s], s, this[s]) && t.push(this[s]);
  456. return new i(t)
  457. },
  458. remove: function() {
  459. for (var e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]);
  460. return this
  461. },
  462. add: function() {
  463. for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
  464. var i, a;
  465. for (i = 0; i < e.length; i += 1) {
  466. var r = s(e[i]);
  467. for (a = 0; a < r.length; a += 1) this[this.length] = r[a], this.length += 1
  468. }
  469. return this
  470. },
  471. styles: function() {
  472. return this[0] ? t.getComputedStyle(this[0], null) : {}
  473. }
  474. };
  475. Object.keys(r).forEach((function(e) {
  476. s.fn[e] = s.fn[e] || r[e]
  477. }));
  478. var n = {
  479. deleteProps: function(e) {
  480. var t = e;
  481. Object.keys(t).forEach((function(e) {
  482. try {
  483. t[e] = null
  484. } catch (e) {}
  485. try {
  486. delete t[e]
  487. } catch (e) {}
  488. }))
  489. },
  490. nextTick: function(e, t) {
  491. return void 0 === t && (t = 0), setTimeout(e, t)
  492. },
  493. now: function() {
  494. return Date.now()
  495. },
  496. getTranslate: function(e, i) {
  497. var s, a, r;
  498. void 0 === i && (i = "x");
  499. var n = t.getComputedStyle(e, null);
  500. return t.WebKitCSSMatrix ? ((a = n.transform || n.webkitTransform).split(",").length > 6 && (a = a.split(", ").map(
  501. (function(e) {
  502. return e.replace(",", ".")
  503. })).join(", ")), r = new t.WebKitCSSMatrix("none" === a ? "" : a)) : s = (r = n.MozTransform || n.OTransform ||
  504. n.MsTransform || n.msTransform || n.transform || n.getPropertyValue("transform").replace("translate(",
  505. "matrix(1, 0, 0, 1,")).toString().split(","), "x" === i && (a = t.WebKitCSSMatrix ? r.m41 : 16 === s.length ?
  506. parseFloat(s[12]) : parseFloat(s[4])), "y" === i && (a = t.WebKitCSSMatrix ? r.m42 : 16 === s.length ?
  507. parseFloat(s[13]) : parseFloat(s[5])), a || 0
  508. },
  509. parseUrlQuery: function(e) {
  510. var i, s, a, r, n = {},
  511. o = e || t.location.href;
  512. if ("string" == typeof o && o.length)
  513. for (r = (s = (o = o.indexOf("?") > -1 ? o.replace(/\S*\?/, "") : "").split("&").filter((function(e) {
  514. return "" !== e
  515. }))).length, i = 0; i < r; i += 1) a = s[i].replace(/#\S+/g, "").split("="), n[decodeURIComponent(a[0])] =
  516. void 0 === a[1] ? void 0 : decodeURIComponent(a[1]) || "";
  517. return n
  518. },
  519. isObject: function(e) {
  520. return "object" == typeof e && null !== e && e.constructor && e.constructor === Object
  521. },
  522. extend: function() {
  523. for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
  524. for (var i = Object(e[0]), s = 1; s < e.length; s += 1) {
  525. var a = e[s];
  526. if (null != a)
  527. for (var r = Object.keys(Object(a)), o = 0, l = r.length; o < l; o += 1) {
  528. var d = r[o],
  529. h = Object.getOwnPropertyDescriptor(a, d);
  530. void 0 !== h && h.enumerable && (n.isObject(i[d]) && n.isObject(a[d]) ? n.extend(i[d], a[d]) : !n.isObject(i[
  531. d]) && n.isObject(a[d]) ? (i[d] = {}, n.extend(i[d], a[d])) : i[d] = a[d])
  532. }
  533. }
  534. return i
  535. }
  536. },
  537. o = {
  538. touch: t.Modernizr && !0 === t.Modernizr.touch || !!(t.navigator.maxTouchPoints > 0 || "ontouchstart" in t || t.DocumentTouch &&
  539. e instanceof t.DocumentTouch),
  540. pointerEvents: !!t.PointerEvent && "maxTouchPoints" in t.navigator && t.navigator.maxTouchPoints > 0,
  541. observer: "MutationObserver" in t || "WebkitMutationObserver" in t,
  542. passiveListener: function() {
  543. var e = !1;
  544. try {
  545. var i = Object.defineProperty({}, "passive", {
  546. get: function() {
  547. e = !0
  548. }
  549. });
  550. t.addEventListener("testPassiveListener", null, i)
  551. } catch (e) {}
  552. return e
  553. }(),
  554. gestures: "ongesturestart" in t
  555. },
  556. l = function(e) {
  557. void 0 === e && (e = {});
  558. var t = this;
  559. t.params = e, t.eventsListeners = {}, t.params && t.params.on && Object.keys(t.params.on).forEach((function(e) {
  560. t.on(e, t.params.on[e])
  561. }))
  562. },
  563. d = {
  564. components: {
  565. configurable: !0
  566. }
  567. };
  568. l.prototype.on = function(e, t, i) {
  569. var s = this;
  570. if ("function" != typeof t) return s;
  571. var a = i ? "unshift" : "push";
  572. return e.split(" ").forEach((function(e) {
  573. s.eventsListeners[e] || (s.eventsListeners[e] = []), s.eventsListeners[e][a](t)
  574. })), s
  575. }, l.prototype.once = function(e, t, i) {
  576. var s = this;
  577. if ("function" != typeof t) return s;
  578. function a() {
  579. for (var i = [], r = arguments.length; r--;) i[r] = arguments[r];
  580. t.apply(s, i), s.off(e, a), a.f7proxy && delete a.f7proxy
  581. }
  582. return a.f7proxy = t, s.on(e, a, i)
  583. }, l.prototype.off = function(e, t) {
  584. var i = this;
  585. return i.eventsListeners ? (e.split(" ").forEach((function(e) {
  586. void 0 === t ? i.eventsListeners[e] = [] : i.eventsListeners[e] && i.eventsListeners[e].length && i.eventsListeners[
  587. e].forEach((function(s, a) {
  588. (s === t || s.f7proxy && s.f7proxy === t) && i.eventsListeners[e].splice(a, 1)
  589. }))
  590. })), i) : i
  591. }, l.prototype.emit = function() {
  592. for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
  593. var i, s, a, r = this;
  594. if (!r.eventsListeners) return r;
  595. "string" == typeof e[0] || Array.isArray(e[0]) ? (i = e[0], s = e.slice(1, e.length), a = r) : (i = e[0].events, s =
  596. e[0].data, a = e[0].context || r);
  597. var n = Array.isArray(i) ? i : i.split(" ");
  598. return n.forEach((function(e) {
  599. if (r.eventsListeners && r.eventsListeners[e]) {
  600. var t = [];
  601. r.eventsListeners[e].forEach((function(e) {
  602. t.push(e)
  603. })), t.forEach((function(e) {
  604. e.apply(a, s)
  605. }))
  606. }
  607. })), r
  608. }, l.prototype.useModulesParams = function(e) {
  609. var t = this;
  610. t.modules && Object.keys(t.modules).forEach((function(i) {
  611. var s = t.modules[i];
  612. s.params && n.extend(e, s.params)
  613. }))
  614. }, l.prototype.useModules = function(e) {
  615. void 0 === e && (e = {});
  616. var t = this;
  617. t.modules && Object.keys(t.modules).forEach((function(i) {
  618. var s = t.modules[i],
  619. a = e[i] || {};
  620. s.instance && Object.keys(s.instance).forEach((function(e) {
  621. var i = s.instance[e];
  622. t[e] = "function" == typeof i ? i.bind(t) : i
  623. })), s.on && t.on && Object.keys(s.on).forEach((function(e) {
  624. t.on(e, s.on[e])
  625. })), s.create && s.create.bind(t)(a)
  626. }))
  627. }, d.components.set = function(e) {
  628. this.use && this.use(e)
  629. }, l.installModule = function(e) {
  630. for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1];
  631. var s = this;
  632. s.prototype.modules || (s.prototype.modules = {});
  633. var a = e.name || Object.keys(s.prototype.modules).length + "_" + n.now();
  634. return s.prototype.modules[a] = e, e.proto && Object.keys(e.proto).forEach((function(t) {
  635. s.prototype[t] = e.proto[t]
  636. })), e.static && Object.keys(e.static).forEach((function(t) {
  637. s[t] = e.static[t]
  638. })), e.install && e.install.apply(s, t), s
  639. }, l.use = function(e) {
  640. for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1];
  641. var s = this;
  642. return Array.isArray(e) ? (e.forEach((function(e) {
  643. return s.installModule(e)
  644. })), s) : s.installModule.apply(s, [e].concat(t))
  645. }, Object.defineProperties(l, d);
  646. var h = {
  647. updateSize: function() {
  648. var e, t, i = this.$el;
  649. e = void 0 !== this.params.width ? this.params.width : i[0].clientWidth, t = void 0 !== this.params.height ?
  650. this.params.height : i[0].clientHeight, 0 === e && this.isHorizontal() || 0 === t && this.isVertical() || (e =
  651. e - parseInt(i.css("padding-left"), 10) - parseInt(i.css("padding-right"), 10), t = t - parseInt(i.css(
  652. "padding-top"), 10) - parseInt(i.css("padding-bottom"), 10), n.extend(this, {
  653. width: e,
  654. height: t,
  655. size: this.isHorizontal() ? e : t
  656. }))
  657. },
  658. updateSlides: function() {
  659. var e = this.params,
  660. i = this.$wrapperEl,
  661. s = this.size,
  662. a = this.rtlTranslate,
  663. r = this.wrongRTL,
  664. o = this.virtual && e.virtual.enabled,
  665. l = o ? this.virtual.slides.length : this.slides.length,
  666. d = i.children("." + this.params.slideClass),
  667. h = o ? this.virtual.slides.length : d.length,
  668. p = [],
  669. c = [],
  670. u = [];
  671. function v(t) {
  672. return !e.cssMode || t !== d.length - 1
  673. }
  674. var f = e.slidesOffsetBefore;
  675. "function" == typeof f && (f = e.slidesOffsetBefore.call(this));
  676. var m = e.slidesOffsetAfter;
  677. "function" == typeof m && (m = e.slidesOffsetAfter.call(this));
  678. var g = this.snapGrid.length,
  679. b = this.snapGrid.length,
  680. w = e.spaceBetween,
  681. y = -f,
  682. x = 0,
  683. T = 0;
  684. if (void 0 !== s) {
  685. var E, C;
  686. "string" == typeof w && w.indexOf("%") >= 0 && (w = parseFloat(w.replace("%", "")) / 100 * s), this.virtualSize = -
  687. w, a ? d.css({
  688. marginLeft: "",
  689. marginTop: ""
  690. }) : d.css({
  691. marginRight: "",
  692. marginBottom: ""
  693. }), e.slidesPerColumn > 1 && (E = Math.floor(h / e.slidesPerColumn) === h / this.params.slidesPerColumn ? h :
  694. Math.ceil(h / e.slidesPerColumn) * e.slidesPerColumn, "auto" !== e.slidesPerView && "row" === e.slidesPerColumnFill &&
  695. (E = Math.max(E, e.slidesPerView * e.slidesPerColumn)));
  696. for (var S, M = e.slidesPerColumn, P = E / M, z = Math.floor(h / e.slidesPerColumn), k = 0; k < h; k += 1) {
  697. C = 0;
  698. var $ = d.eq(k);
  699. if (e.slidesPerColumn > 1) {
  700. var L = void 0,
  701. I = void 0,
  702. D = void 0;
  703. if ("row" === e.slidesPerColumnFill && e.slidesPerGroup > 1) {
  704. var O = Math.floor(k / (e.slidesPerGroup * e.slidesPerColumn)),
  705. A = k - e.slidesPerColumn * e.slidesPerGroup * O,
  706. G = 0 === O ? e.slidesPerGroup : Math.min(Math.ceil((h - O * M * e.slidesPerGroup) / M), e.slidesPerGroup);
  707. L = (I = A - (D = Math.floor(A / G)) * G + O * e.slidesPerGroup) + D * E / M, $.css({
  708. "-webkit-box-ordinal-group": L,
  709. "-moz-box-ordinal-group": L,
  710. "-ms-flex-order": L,
  711. "-webkit-order": L,
  712. order: L
  713. })
  714. } else "column" === e.slidesPerColumnFill ? (D = k - (I = Math.floor(k / M)) * M, (I > z || I === z && D ===
  715. M - 1) && (D += 1) >= M && (D = 0, I += 1)) : I = k - (D = Math.floor(k / P)) * P;
  716. $.css("margin-" + (this.isHorizontal() ? "top" : "left"), 0 !== D && e.spaceBetween && e.spaceBetween + "px")
  717. }
  718. if ("none" !== $.css("display")) {
  719. if ("auto" === e.slidesPerView) {
  720. var B = t.getComputedStyle($[0], null),
  721. H = $[0].style.transform,
  722. N = $[0].style.webkitTransform;
  723. if (H && ($[0].style.transform = "none"), N && ($[0].style.webkitTransform = "none"), e.roundLengths) C =
  724. this.isHorizontal() ? $.outerWidth(!0) : $.outerHeight(!0);
  725. else if (this.isHorizontal()) {
  726. var X = parseFloat(B.getPropertyValue("width")),
  727. V = parseFloat(B.getPropertyValue("padding-left")),
  728. Y = parseFloat(B.getPropertyValue("padding-right")),
  729. F = parseFloat(B.getPropertyValue("margin-left")),
  730. W = parseFloat(B.getPropertyValue("margin-right")),
  731. R = B.getPropertyValue("box-sizing");
  732. C = R && "border-box" === R ? X + F + W : X + V + Y + F + W
  733. } else {
  734. var q = parseFloat(B.getPropertyValue("height")),
  735. j = parseFloat(B.getPropertyValue("padding-top")),
  736. K = parseFloat(B.getPropertyValue("padding-bottom")),
  737. U = parseFloat(B.getPropertyValue("margin-top")),
  738. _ = parseFloat(B.getPropertyValue("margin-bottom")),
  739. Z = B.getPropertyValue("box-sizing");
  740. C = Z && "border-box" === Z ? q + U + _ : q + j + K + U + _
  741. }
  742. H && ($[0].style.transform = H), N && ($[0].style.webkitTransform = N), e.roundLengths && (C = Math.floor(C))
  743. } else C = (s - (e.slidesPerView - 1) * w) / e.slidesPerView, e.roundLengths && (C = Math.floor(C)), d[k] &&
  744. (this.isHorizontal() ? d[k].style.width = C + "px" : d[k].style.height = C + "px");
  745. d[k] && (d[k].swiperSlideSize = C), u.push(C), e.centeredSlides ? (y = y + C / 2 + x / 2 + w, 0 === x && 0 !==
  746. k && (y = y - s / 2 - w), 0 === k && (y = y - s / 2 - w), Math.abs(y) < .001 && (y = 0), e.roundLengths &&
  747. (y = Math.floor(y)), T % e.slidesPerGroup == 0 && p.push(y), c.push(y)) : (e.roundLengths && (y = Math.floor(
  748. y)), T % e.slidesPerGroup == 0 && p.push(y), c.push(y), y = y + C + w), this.virtualSize += C + w, x = C, T +=
  749. 1
  750. }
  751. }
  752. if (this.virtualSize = Math.max(this.virtualSize, s) + m, a && r && ("slide" === e.effect || "coverflow" === e.effect) &&
  753. i.css({
  754. width: this.virtualSize + e.spaceBetween + "px"
  755. }), e.setWrapperSize && (this.isHorizontal() ? i.css({
  756. width: this.virtualSize + e.spaceBetween + "px"
  757. }) : i.css({
  758. height: this.virtualSize + e.spaceBetween + "px"
  759. })), e.slidesPerColumn > 1 && (this.virtualSize = (C + e.spaceBetween) * E, this.virtualSize = Math.ceil(this.virtualSize /
  760. e.slidesPerColumn) - e.spaceBetween, this.isHorizontal() ? i.css({
  761. width: this.virtualSize + e.spaceBetween + "px"
  762. }) : i.css({
  763. height: this.virtualSize + e.spaceBetween + "px"
  764. }), e.centeredSlides)) {
  765. S = [];
  766. for (var Q = 0; Q < p.length; Q += 1) {
  767. var J = p[Q];
  768. e.roundLengths && (J = Math.floor(J)), p[Q] < this.virtualSize + p[0] && S.push(J)
  769. }
  770. p = S
  771. }
  772. if (!e.centeredSlides) {
  773. S = [];
  774. for (var ee = 0; ee < p.length; ee += 1) {
  775. var te = p[ee];
  776. e.roundLengths && (te = Math.floor(te)), p[ee] <= this.virtualSize - s && S.push(te)
  777. }
  778. p = S, Math.floor(this.virtualSize - s) - Math.floor(p[p.length - 1]) > 1 && p.push(this.virtualSize - s)
  779. }
  780. if (0 === p.length && (p = [0]), 0 !== e.spaceBetween && (this.isHorizontal() ? a ? d.filter(v).css({
  781. marginLeft: w + "px"
  782. }) : d.filter(v).css({
  783. marginRight: w + "px"
  784. }) : d.filter(v).css({
  785. marginBottom: w + "px"
  786. })), e.centeredSlides && e.centeredSlidesBounds) {
  787. var ie = 0;
  788. u.forEach((function(t) {
  789. ie += t + (e.spaceBetween ? e.spaceBetween : 0)
  790. }));
  791. var se = (ie -= e.spaceBetween) - s;
  792. p = p.map((function(e) {
  793. return e < 0 ? -f : e > se ? se + m : e
  794. }))
  795. }
  796. if (e.centerInsufficientSlides) {
  797. var ae = 0;
  798. if (u.forEach((function(t) {
  799. ae += t + (e.spaceBetween ? e.spaceBetween : 0)
  800. })), (ae -= e.spaceBetween) < s) {
  801. var re = (s - ae) / 2;
  802. p.forEach((function(e, t) {
  803. p[t] = e - re
  804. })), c.forEach((function(e, t) {
  805. c[t] = e + re
  806. }))
  807. }
  808. }
  809. n.extend(this, {
  810. slides: d,
  811. snapGrid: p,
  812. slidesGrid: c,
  813. slidesSizesGrid: u
  814. }), h !== l && this.emit("slidesLengthChange"), p.length !== g && (this.params.watchOverflow && this.checkOverflow(),
  815. this.emit("snapGridLengthChange")), c.length !== b && this.emit("slidesGridLengthChange"), (e.watchSlidesProgress ||
  816. e.watchSlidesVisibility) && this.updateSlidesOffset()
  817. }
  818. },
  819. updateAutoHeight: function(e) {
  820. var t, i = [],
  821. s = 0;
  822. if ("number" == typeof e ? this.setTransition(e) : !0 === e && this.setTransition(this.params.speed), "auto" !==
  823. this.params.slidesPerView && this.params.slidesPerView > 1)
  824. for (t = 0; t < Math.ceil(this.params.slidesPerView); t += 1) {
  825. var a = this.activeIndex + t;
  826. if (a > this.slides.length) break;
  827. i.push(this.slides.eq(a)[0])
  828. } else i.push(this.slides.eq(this.activeIndex)[0]);
  829. for (t = 0; t < i.length; t += 1)
  830. if (void 0 !== i[t]) {
  831. var r = i[t].offsetHeight;
  832. s = r > s ? r : s
  833. } s && this.$wrapperEl.css("height", s + "px")
  834. },
  835. updateSlidesOffset: function() {
  836. for (var e = this.slides, t = 0; t < e.length; t += 1) e[t].swiperSlideOffset = this.isHorizontal() ? e[t].offsetLeft :
  837. e[t].offsetTop
  838. },
  839. updateSlidesProgress: function(e) {
  840. void 0 === e && (e = this && this.translate || 0);
  841. var t = this.params,
  842. i = this.slides,
  843. a = this.rtlTranslate;
  844. if (0 !== i.length) {
  845. void 0 === i[0].swiperSlideOffset && this.updateSlidesOffset();
  846. var r = -e;
  847. a && (r = e), i.removeClass(t.slideVisibleClass), this.visibleSlidesIndexes = [], this.visibleSlides = [];
  848. for (var n = 0; n < i.length; n += 1) {
  849. var o = i[n],
  850. l = (r + (t.centeredSlides ? this.minTranslate() : 0) - o.swiperSlideOffset) / (o.swiperSlideSize + t.spaceBetween);
  851. if (t.watchSlidesVisibility) {
  852. var d = -(r - o.swiperSlideOffset),
  853. h = d + this.slidesSizesGrid[n];
  854. (d >= 0 && d < this.size - 1 || h > 1 && h <= this.size || d <= 0 && h >= this.size) && (this.visibleSlides.push(
  855. o), this.visibleSlidesIndexes.push(n), i.eq(n).addClass(t.slideVisibleClass))
  856. }
  857. o.progress = a ? -l : l
  858. }
  859. this.visibleSlides = s(this.visibleSlides)
  860. }
  861. },
  862. updateProgress: function(e) {
  863. if (void 0 === e) {
  864. var t = this.rtlTranslate ? -1 : 1;
  865. e = this && this.translate && this.translate * t || 0
  866. }
  867. var i = this.params,
  868. s = this.maxTranslate() - this.minTranslate(),
  869. a = this.progress,
  870. r = this.isBeginning,
  871. o = this.isEnd,
  872. l = r,
  873. d = o;
  874. 0 === s ? (a = 0, r = !0, o = !0) : (r = (a = (e - this.minTranslate()) / s) <= 0, o = a >= 1), n.extend(this, {
  875. progress: a,
  876. isBeginning: r,
  877. isEnd: o
  878. }), (i.watchSlidesProgress || i.watchSlidesVisibility) && this.updateSlidesProgress(e), r && !l && this.emit(
  879. "reachBeginning toEdge"), o && !d && this.emit("reachEnd toEdge"), (l && !r || d && !o) && this.emit(
  880. "fromEdge"), this.emit("progress", a)
  881. },
  882. updateSlidesClasses: function() {
  883. var e, t = this.slides,
  884. i = this.params,
  885. s = this.$wrapperEl,
  886. a = this.activeIndex,
  887. r = this.realIndex,
  888. n = this.virtual && i.virtual.enabled;
  889. t.removeClass(i.slideActiveClass + " " + i.slideNextClass + " " + i.slidePrevClass + " " + i.slideDuplicateActiveClass +
  890. " " + i.slideDuplicateNextClass + " " + i.slideDuplicatePrevClass), (e = n ? this.$wrapperEl.find("." + i.slideClass +
  891. '[data-swiper-slide-index="' + a + '"]') : t.eq(a)).addClass(i.slideActiveClass), i.loop && (e.hasClass(i.slideDuplicateClass) ?
  892. s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + r + '"]').addClass(
  893. i.slideDuplicateActiveClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass +
  894. '[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass));
  895. var o = e.nextAll("." + i.slideClass).eq(0).addClass(i.slideNextClass);
  896. i.loop && 0 === o.length && (o = t.eq(0)).addClass(i.slideNextClass);
  897. var l = e.prevAll("." + i.slideClass).eq(0).addClass(i.slidePrevClass);
  898. i.loop && 0 === l.length && (l = t.eq(-1)).addClass(i.slidePrevClass), i.loop && (o.hasClass(i.slideDuplicateClass) ?
  899. s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + o.attr(
  900. "data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass) : s.children("." + i.slideClass + "." +
  901. i.slideDuplicateClass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass),
  902. l.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass +
  903. ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass) :
  904. s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + l.attr(
  905. "data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass))
  906. },
  907. updateActiveIndex: function(e) {
  908. var t, i = this.rtlTranslate ? this.translate : -this.translate,
  909. s = this.slidesGrid,
  910. a = this.snapGrid,
  911. r = this.params,
  912. o = this.activeIndex,
  913. l = this.realIndex,
  914. d = this.snapIndex,
  915. h = e;
  916. if (void 0 === h) {
  917. for (var p = 0; p < s.length; p += 1) void 0 !== s[p + 1] ? i >= s[p] && i < s[p + 1] - (s[p + 1] - s[p]) / 2 ?
  918. h = p : i >= s[p] && i < s[p + 1] && (h = p + 1) : i >= s[p] && (h = p);
  919. r.normalizeSlideIndex && (h < 0 || void 0 === h) && (h = 0)
  920. }
  921. if ((t = a.indexOf(i) >= 0 ? a.indexOf(i) : Math.floor(h / r.slidesPerGroup)) >= a.length && (t = a.length - 1),
  922. h !== o) {
  923. var c = parseInt(this.slides.eq(h).attr("data-swiper-slide-index") || h, 10);
  924. n.extend(this, {
  925. snapIndex: t,
  926. realIndex: c,
  927. previousIndex: o,
  928. activeIndex: h
  929. }), this.emit("activeIndexChange"), this.emit("snapIndexChange"), l !== c && this.emit("realIndexChange"), (
  930. this.initialized || this.runCallbacksOnInit) && this.emit("slideChange")
  931. } else t !== d && (this.snapIndex = t, this.emit("snapIndexChange"))
  932. },
  933. updateClickedSlide: function(e) {
  934. var t = this.params,
  935. i = s(e.target).closest("." + t.slideClass)[0],
  936. a = !1;
  937. if (i)
  938. for (var r = 0; r < this.slides.length; r += 1) this.slides[r] === i && (a = !0);
  939. if (!i || !a) return this.clickedSlide = void 0, void(this.clickedIndex = void 0);
  940. this.clickedSlide = i, this.virtual && this.params.virtual.enabled ? this.clickedIndex = parseInt(s(i).attr(
  941. "data-swiper-slide-index"), 10) : this.clickedIndex = s(i).index(), t.slideToClickedSlide && void 0 !== this.clickedIndex &&
  942. this.clickedIndex !== this.activeIndex && this.slideToClickedSlide()
  943. }
  944. };
  945. var p = {
  946. getTranslate: function(e) {
  947. void 0 === e && (e = this.isHorizontal() ? "x" : "y");
  948. var t = this.params,
  949. i = this.rtlTranslate,
  950. s = this.translate,
  951. a = this.$wrapperEl;
  952. if (t.virtualTranslate) return i ? -s : s;
  953. if (t.cssMode) return s;
  954. var r = n.getTranslate(a[0], e);
  955. return i && (r = -r), r || 0
  956. },
  957. setTranslate: function(e, t) {
  958. var i = this.rtlTranslate,
  959. s = this.params,
  960. a = this.$wrapperEl,
  961. r = this.wrapperEl,
  962. n = this.progress,
  963. o = 0,
  964. l = 0;
  965. this.isHorizontal() ? o = i ? -e : e : l = e, s.roundLengths && (o = Math.floor(o), l = Math.floor(l)), s.cssMode ?
  966. r[this.isHorizontal() ? "scrollLeft" : "scrollTop"] = this.isHorizontal() ? -o : -l : s.virtualTranslate || a.transform(
  967. "translate3d(" + o + "px, " + l + "px, 0px)"), this.previousTranslate = this.translate, this.translate = this.isHorizontal() ?
  968. o : l;
  969. var d = this.maxTranslate() - this.minTranslate();
  970. (0 === d ? 0 : (e - this.minTranslate()) / d) !== n && this.updateProgress(e), this.emit("setTranslate", this.translate,
  971. t)
  972. },
  973. minTranslate: function() {
  974. return -this.snapGrid[0]
  975. },
  976. maxTranslate: function() {
  977. return -this.snapGrid[this.snapGrid.length - 1]
  978. },
  979. translateTo: function(e, t, i, s, a) {
  980. var r;
  981. void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0), void 0 === s && (s = !
  982. 0);
  983. var n = this,
  984. o = n.params,
  985. l = n.wrapperEl;
  986. if (n.animating && o.preventInteractionOnTransition) return !1;
  987. var d, h = n.minTranslate(),
  988. p = n.maxTranslate();
  989. if (d = s && e > h ? h : s && e < p ? p : e, n.updateProgress(d), o.cssMode) {
  990. var c = n.isHorizontal();
  991. return 0 === t ? l[c ? "scrollLeft" : "scrollTop"] = -d : l.scrollTo ? l.scrollTo(((r = {})[c ? "left" : "top"] = -
  992. d, r.behavior = "smooth", r)) : l[c ? "scrollLeft" : "scrollTop"] = -d, !0
  993. }
  994. return 0 === t ? (n.setTransition(0), n.setTranslate(d), i && (n.emit("beforeTransitionStart", t, a), n.emit(
  995. "transitionEnd"))) : (n.setTransition(t), n.setTranslate(d), i && (n.emit("beforeTransitionStart", t, a), n.emit(
  996. "transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd =
  997. function(e) {
  998. n && !n.destroyed && e.target === this && (n.$wrapperEl[0].removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd),
  999. n.$wrapperEl[0].removeEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd =
  1000. null, delete n.onTranslateToWrapperTransitionEnd, i && n.emit("transitionEnd"))
  1001. }), n.$wrapperEl[0].addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].addEventListener(
  1002. "webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd))), !0
  1003. }
  1004. };
  1005. var c = {
  1006. setTransition: function(e, t) {
  1007. this.params.cssMode || this.$wrapperEl.transition(e), this.emit("setTransition", e, t)
  1008. },
  1009. transitionStart: function(e, t) {
  1010. void 0 === e && (e = !0);
  1011. var i = this.activeIndex,
  1012. s = this.params,
  1013. a = this.previousIndex;
  1014. if (!s.cssMode) {
  1015. s.autoHeight && this.updateAutoHeight();
  1016. var r = t;
  1017. if (r || (r = i > a ? "next" : i < a ? "prev" : "reset"), this.emit("transitionStart"), e && i !== a) {
  1018. if ("reset" === r) return void this.emit("slideResetTransitionStart");
  1019. this.emit("slideChangeTransitionStart"), "next" === r ? this.emit("slideNextTransitionStart") : this.emit(
  1020. "slidePrevTransitionStart")
  1021. }
  1022. }
  1023. },
  1024. transitionEnd: function(e, t) {
  1025. void 0 === e && (e = !0);
  1026. var i = this.activeIndex,
  1027. s = this.previousIndex,
  1028. a = this.params;
  1029. if (this.animating = !1, !a.cssMode) {
  1030. this.setTransition(0);
  1031. var r = t;
  1032. if (r || (r = i > s ? "next" : i < s ? "prev" : "reset"), this.emit("transitionEnd"), e && i !== s) {
  1033. if ("reset" === r) return void this.emit("slideResetTransitionEnd");
  1034. this.emit("slideChangeTransitionEnd"), "next" === r ? this.emit("slideNextTransitionEnd") : this.emit(
  1035. "slidePrevTransitionEnd")
  1036. }
  1037. }
  1038. }
  1039. };
  1040. var u = {
  1041. slideTo: function(e, t, i, s) {
  1042. var a;
  1043. void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0);
  1044. var r = this,
  1045. n = e;
  1046. n < 0 && (n = 0);
  1047. var o = r.params,
  1048. l = r.snapGrid,
  1049. d = r.slidesGrid,
  1050. h = r.previousIndex,
  1051. p = r.activeIndex,
  1052. c = r.rtlTranslate,
  1053. u = r.wrapperEl;
  1054. if (r.animating && o.preventInteractionOnTransition) return !1;
  1055. var v = Math.floor(n / o.slidesPerGroup);
  1056. v >= l.length && (v = l.length - 1), (p || o.initialSlide || 0) === (h || 0) && i && r.emit(
  1057. "beforeSlideChangeStart");
  1058. var f, m = -l[v];
  1059. if (r.updateProgress(m), o.normalizeSlideIndex)
  1060. for (var g = 0; g < d.length; g += 1) - Math.floor(100 * m) >= Math.floor(100 * d[g]) && (n = g);
  1061. if (r.initialized && n !== p) {
  1062. if (!r.allowSlideNext && m < r.translate && m < r.minTranslate()) return !1;
  1063. if (!r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (p || 0) !== n) return !1
  1064. }
  1065. if (f = n > p ? "next" : n < p ? "prev" : "reset", c && -m === r.translate || !c && m === r.translate) return r.updateActiveIndex(
  1066. n), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== o.effect && r.setTranslate(m),
  1067. "reset" !== f && (r.transitionStart(i, f), r.transitionEnd(i, f)), !1;
  1068. if (o.cssMode) {
  1069. var b = r.isHorizontal();
  1070. return 0 === t ? u[b ? "scrollLeft" : "scrollTop"] = -m : u.scrollTo ? u.scrollTo(((a = {})[b ? "left" : "top"] = -
  1071. m, a.behavior = "smooth", a)) : u[b ? "scrollLeft" : "scrollTop"] = -m, !0
  1072. }
  1073. return 0 === t ? (r.setTransition(0), r.setTranslate(m), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit(
  1074. "beforeTransitionStart", t, s), r.transitionStart(i, f), r.transitionEnd(i, f)) : (r.setTransition(t), r.setTranslate(
  1075. m), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(
  1076. i, f), r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd =
  1077. function(e) {
  1078. r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd),
  1079. r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd =
  1080. null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, f))
  1081. }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener(
  1082. "webkitTransitionEnd", r.onSlideToWrapperTransitionEnd))), !0
  1083. },
  1084. slideToLoop: function(e, t, i, s) {
  1085. void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0);
  1086. var a = e;
  1087. return this.params.loop && (a += this.loopedSlides), this.slideTo(a, t, i, s)
  1088. },
  1089. slideNext: function(e, t, i) {
  1090. void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
  1091. var s = this.params,
  1092. a = this.animating;
  1093. return s.loop ? !a && (this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft, this.slideTo(this.activeIndex +
  1094. s.slidesPerGroup, e, t, i)) : this.slideTo(this.activeIndex + s.slidesPerGroup, e, t, i)
  1095. },
  1096. slidePrev: function(e, t, i) {
  1097. void 0 === e && (e = this.params.speed), void 0 === t && (t = !0);
  1098. var s = this.params,
  1099. a = this.animating,
  1100. r = this.snapGrid,
  1101. n = this.slidesGrid,
  1102. o = this.rtlTranslate;
  1103. if (s.loop) {
  1104. if (a) return !1;
  1105. this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft
  1106. }
  1107. function l(e) {
  1108. return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e)
  1109. }
  1110. var d, h = l(o ? this.translate : -this.translate),
  1111. p = r.map((function(e) {
  1112. return l(e)
  1113. })),
  1114. c = (n.map((function(e) {
  1115. return l(e)
  1116. })), r[p.indexOf(h)], r[p.indexOf(h) - 1]);
  1117. return void 0 === c && s.cssMode && r.forEach((function(e) {
  1118. !c && h >= e && (c = e)
  1119. })), void 0 !== c && (d = n.indexOf(c)) < 0 && (d = this.activeIndex - 1), this.slideTo(d, e, t, i)
  1120. },
  1121. slideReset: function(e, t, i) {
  1122. return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, i)
  1123. },
  1124. slideToClosest: function(e, t, i, s) {
  1125. void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === s && (s = .5);
  1126. var a = this.activeIndex,
  1127. r = Math.floor(a / this.params.slidesPerGroup),
  1128. n = this.rtlTranslate ? this.translate : -this.translate;
  1129. if (n >= this.snapGrid[r]) {
  1130. var o = this.snapGrid[r];
  1131. n - o > (this.snapGrid[r + 1] - o) * s && (a += this.params.slidesPerGroup)
  1132. } else {
  1133. var l = this.snapGrid[r - 1];
  1134. n - l <= (this.snapGrid[r] - l) * s && (a -= this.params.slidesPerGroup)
  1135. }
  1136. return a = Math.max(a, 0), a = Math.min(a, this.snapGrid.length - 1), this.slideTo(a, e, t, i)
  1137. },
  1138. slideToClickedSlide: function() {
  1139. var e, t = this,
  1140. i = t.params,
  1141. a = t.$wrapperEl,
  1142. r = "auto" === i.slidesPerView ? t.slidesPerViewDynamic() : i.slidesPerView,
  1143. o = t.clickedIndex;
  1144. if (i.loop) {
  1145. if (t.animating) return;
  1146. e = parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"), 10), i.centeredSlides ? o < t.loopedSlides - r /
  1147. 2 || o > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), o = a.children("." + i.slideClass +
  1148. '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), n.nextTick((
  1149. function() {
  1150. t.slideTo(o)
  1151. }))) : t.slideTo(o) : o > t.slides.length - r ? (t.loopFix(), o = a.children("." + i.slideClass +
  1152. '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), n.nextTick((
  1153. function() {
  1154. t.slideTo(o)
  1155. }))) : t.slideTo(o)
  1156. } else t.slideTo(o)
  1157. }
  1158. };
  1159. var v = {
  1160. loopCreate: function() {
  1161. var t = this,
  1162. i = t.params,
  1163. a = t.$wrapperEl;
  1164. a.children("." + i.slideClass + "." + i.slideDuplicateClass).remove();
  1165. var r = a.children("." + i.slideClass);
  1166. if (i.loopFillGroupWithBlank) {
  1167. var n = i.slidesPerGroup - r.length % i.slidesPerGroup;
  1168. if (n !== i.slidesPerGroup) {
  1169. for (var o = 0; o < n; o += 1) {
  1170. var l = s(e.createElement("div")).addClass(i.slideClass + " " + i.slideBlankClass);
  1171. a.append(l)
  1172. }
  1173. r = a.children("." + i.slideClass)
  1174. }
  1175. }
  1176. "auto" !== i.slidesPerView || i.loopedSlides || (i.loopedSlides = r.length), t.loopedSlides = Math.ceil(
  1177. parseFloat(i.loopedSlides || i.slidesPerView, 10)), t.loopedSlides += i.loopAdditionalSlides, t.loopedSlides >
  1178. r.length && (t.loopedSlides = r.length);
  1179. var d = [],
  1180. h = [];
  1181. r.each((function(e, i) {
  1182. var a = s(i);
  1183. e < t.loopedSlides && h.push(i), e < r.length && e >= r.length - t.loopedSlides && d.push(i), a.attr(
  1184. "data-swiper-slide-index", e)
  1185. }));
  1186. for (var p = 0; p < h.length; p += 1) a.append(s(h[p].cloneNode(!0)).addClass(i.slideDuplicateClass));
  1187. for (var c = d.length - 1; c >= 0; c -= 1) a.prepend(s(d[c].cloneNode(!0)).addClass(i.slideDuplicateClass))
  1188. },
  1189. loopFix: function() {
  1190. var e, t = this.activeIndex,
  1191. i = this.slides,
  1192. s = this.loopedSlides,
  1193. a = this.allowSlidePrev,
  1194. r = this.allowSlideNext,
  1195. n = this.snapGrid,
  1196. o = this.rtlTranslate;
  1197. this.allowSlidePrev = !0, this.allowSlideNext = !0;
  1198. var l = -n[t] - this.getTranslate();
  1199. if (t < s) e = i.length - 3 * s + t, e += s, this.slideTo(e, 0, !1, !0) && 0 !== l && this.setTranslate((o ? -
  1200. this.translate : this.translate) - l);
  1201. else if (t >= i.length - s) {
  1202. e = -i.length + t + s, e += s, this.slideTo(e, 0, !1, !0) && 0 !== l && this.setTranslate((o ? -this.translate :
  1203. this.translate) - l)
  1204. }
  1205. this.allowSlidePrev = a, this.allowSlideNext = r
  1206. },
  1207. loopDestroy: function() {
  1208. var e = this.$wrapperEl,
  1209. t = this.params,
  1210. i = this.slides;
  1211. e.children("." + t.slideClass + "." + t.slideDuplicateClass + ",." + t.slideClass + "." + t.slideBlankClass).remove(),
  1212. i.removeAttr("data-swiper-slide-index")
  1213. }
  1214. };
  1215. var f = {
  1216. setGrabCursor: function(e) {
  1217. if (!(o.touch || !this.params.simulateTouch || this.params.watchOverflow && this.isLocked || this.params.cssMode)) {
  1218. var t = this.el;
  1219. t.style.cursor = "move", t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", t.style.cursor = e ?
  1220. "-moz-grabbin" : "-moz-grab", t.style.cursor = e ? "grabbing" : "grab"
  1221. }
  1222. },
  1223. unsetGrabCursor: function() {
  1224. o.touch || this.params.watchOverflow && this.isLocked || this.params.cssMode || (this.el.style.cursor = "")
  1225. }
  1226. };
  1227. var m, g, b, w, y, x, T, E, C, S, M, P, z, k, $, L = {
  1228. appendSlide: function(e) {
  1229. var t = this.$wrapperEl,
  1230. i = this.params;
  1231. if (i.loop && this.loopDestroy(), "object" == typeof e && "length" in e)
  1232. for (var s = 0; s < e.length; s += 1) e[s] && t.append(e[s]);
  1233. else t.append(e);
  1234. i.loop && this.loopCreate(), i.observer && o.observer || this.update()
  1235. },
  1236. prependSlide: function(e) {
  1237. var t = this.params,
  1238. i = this.$wrapperEl,
  1239. s = this.activeIndex;
  1240. t.loop && this.loopDestroy();
  1241. var a = s + 1;
  1242. if ("object" == typeof e && "length" in e) {
  1243. for (var r = 0; r < e.length; r += 1) e[r] && i.prepend(e[r]);
  1244. a = s + e.length
  1245. } else i.prepend(e);
  1246. t.loop && this.loopCreate(), t.observer && o.observer || this.update(), this.slideTo(a, 0, !1)
  1247. },
  1248. addSlide: function(e, t) {
  1249. var i = this.$wrapperEl,
  1250. s = this.params,
  1251. a = this.activeIndex;
  1252. s.loop && (a -= this.loopedSlides, this.loopDestroy(), this.slides = i.children("." + s.slideClass));
  1253. var r = this.slides.length;
  1254. if (e <= 0) this.prependSlide(t);
  1255. else if (e >= r) this.appendSlide(t);
  1256. else {
  1257. for (var n = a > e ? a + 1 : a, l = [], d = r - 1; d >= e; d -= 1) {
  1258. var h = this.slides.eq(d);
  1259. h.remove(), l.unshift(h)
  1260. }
  1261. if ("object" == typeof t && "length" in t) {
  1262. for (var p = 0; p < t.length; p += 1) t[p] && i.append(t[p]);
  1263. n = a > e ? a + t.length : a
  1264. } else i.append(t);
  1265. for (var c = 0; c < l.length; c += 1) i.append(l[c]);
  1266. s.loop && this.loopCreate(), s.observer && o.observer || this.update(), s.loop ? this.slideTo(n + this.loopedSlides,
  1267. 0, !1) : this.slideTo(n, 0, !1)
  1268. }
  1269. },
  1270. removeSlide: function(e) {
  1271. var t = this.params,
  1272. i = this.$wrapperEl,
  1273. s = this.activeIndex;
  1274. t.loop && (s -= this.loopedSlides, this.loopDestroy(), this.slides = i.children("." + t.slideClass));
  1275. var a, r = s;
  1276. if ("object" == typeof e && "length" in e) {
  1277. for (var n = 0; n < e.length; n += 1) a = e[n], this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1);
  1278. r = Math.max(r, 0)
  1279. } else a = e, this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1), r = Math.max(r, 0);
  1280. t.loop && this.loopCreate(), t.observer && o.observer || this.update(), t.loop ? this.slideTo(r + this.loopedSlides,
  1281. 0, !1) : this.slideTo(r, 0, !1)
  1282. },
  1283. removeAllSlides: function() {
  1284. for (var e = [], t = 0; t < this.slides.length; t += 1) e.push(t);
  1285. this.removeSlide(e)
  1286. }
  1287. },
  1288. I = (m = t.navigator.platform, g = t.navigator.userAgent, b = {
  1289. ios: !1,
  1290. android: !1,
  1291. androidChrome: !1,
  1292. desktop: !1,
  1293. iphone: !1,
  1294. ipod: !1,
  1295. ipad: !1,
  1296. edge: !1,
  1297. ie: !1,
  1298. firefox: !1,
  1299. macos: !1,
  1300. windows: !1,
  1301. cordova: !(!t.cordova && !t.phonegap),
  1302. phonegap: !(!t.cordova && !t.phonegap),
  1303. electron: !1
  1304. }, w = t.screen.width, y = t.screen.height, x = g.match(/(Android);?[\s\/]+([\d.]+)?/), T = g.match(
  1305. /(iPad).*OS\s([\d_]+)/), E = g.match(/(iPod)(.*OS\s([\d_]+))?/), C = !T && g.match(/(iPhone\sOS|iOS)\s([\d_]+)/),
  1306. S = g.indexOf("MSIE ") >= 0 || g.indexOf("Trident/") >= 0, M = g.indexOf("Edge/") >= 0, P = g.indexOf("Gecko/") >=
  1307. 0 && g.indexOf("Firefox/") >= 0, z = "Win32" === m, k = g.toLowerCase().indexOf("electron") >= 0, $ = "MacIntel" ===
  1308. m, !T && $ && o.touch && (1024 === w && 1366 === y || 834 === w && 1194 === y || 834 === w && 1112 === y || 768 ===
  1309. w && 1024 === y) && (T = g.match(/(Version)\/([\d.]+)/), $ = !1), b.ie = S, b.edge = M, b.firefox = P, x && !z &&
  1310. (b.os = "android", b.osVersion = x[2], b.android = !0, b.androidChrome = g.toLowerCase().indexOf("chrome") >= 0),
  1311. (T || C || E) && (b.os = "ios", b.ios = !0), C && !E && (b.osVersion = C[2].replace(/_/g, "."), b.iphone = !0), T &&
  1312. (b.osVersion = T[2].replace(/_/g, "."), b.ipad = !0), E && (b.osVersion = E[3] ? E[3].replace(/_/g, ".") : null, b
  1313. .ipod = !0), b.ios && b.osVersion && g.indexOf("Version/") >= 0 && "10" === b.osVersion.split(".")[0] && (b.osVersion =
  1314. g.toLowerCase().split("version/")[1].split(" ")[0]), b.webView = !(!(C || T || E) || !g.match(
  1315. /.*AppleWebKit(?!.*Safari)/i) && !t.navigator.standalone) || t.matchMedia && t.matchMedia(
  1316. "(display-mode: standalone)").matches, b.webview = b.webView, b.standalone = b.webView, b.desktop = !(b.ios || b.android) ||
  1317. k, b.desktop && (b.electron = k, b.macos = $, b.windows = z, b.macos && (b.os = "macos"), b.windows && (b.os =
  1318. "windows")), b.pixelRatio = t.devicePixelRatio || 1, b);
  1319. function D(i) {
  1320. var a = this.touchEventsData,
  1321. r = this.params,
  1322. o = this.touches;
  1323. if (!this.animating || !r.preventInteractionOnTransition) {
  1324. var l = i;
  1325. l.originalEvent && (l = l.originalEvent);
  1326. var d = s(l.target);
  1327. if (("wrapper" !== r.touchEventsTarget || d.closest(this.wrapperEl).length) && (a.isTouchEvent = "touchstart" ===
  1328. l.type, (a.isTouchEvent || !("which" in l) || 3 !== l.which) && !(!a.isTouchEvent && "button" in l && l.button >
  1329. 0 || a.isTouched && a.isMoved)))
  1330. if (r.noSwiping && d.closest(r.noSwipingSelector ? r.noSwipingSelector : "." + r.noSwipingClass)[0]) this.allowClick = !
  1331. 0;
  1332. else if (!r.swipeHandler || d.closest(r.swipeHandler)[0]) {
  1333. o.currentX = "touchstart" === l.type ? l.targetTouches[0].pageX : l.pageX, o.currentY = "touchstart" === l.type ?
  1334. l.targetTouches[0].pageY : l.pageY;
  1335. var h = o.currentX,
  1336. p = o.currentY,
  1337. c = r.edgeSwipeDetection || r.iOSEdgeSwipeDetection,
  1338. u = r.edgeSwipeThreshold || r.iOSEdgeSwipeThreshold;
  1339. if (!c || !(h <= u || h >= t.screen.width - u)) {
  1340. if (n.extend(a, {
  1341. isTouched: !0,
  1342. isMoved: !1,
  1343. allowTouchCallbacks: !0,
  1344. isScrolling: void 0,
  1345. startMoving: void 0
  1346. }), o.startX = h, o.startY = p, a.touchStartTime = n.now(), this.allowClick = !0, this.updateSize(), this.swipeDirection =
  1347. void 0, r.threshold > 0 && (a.allowThresholdMove = !1), "touchstart" !== l.type) {
  1348. var v = !0;
  1349. d.is(a.formElements) && (v = !1), e.activeElement && s(e.activeElement).is(a.formElements) && e.activeElement !==
  1350. d[0] && e.activeElement.blur();
  1351. var f = v && this.allowTouchMove && r.touchStartPreventDefault;
  1352. (r.touchStartForcePreventDefault || f) && l.preventDefault()
  1353. }
  1354. this.emit("touchStart", l)
  1355. }
  1356. }
  1357. }
  1358. }
  1359. function O(t) {
  1360. var i = this.touchEventsData,
  1361. a = this.params,
  1362. r = this.touches,
  1363. o = this.rtlTranslate,
  1364. l = t;
  1365. if (l.originalEvent && (l = l.originalEvent), i.isTouched) {
  1366. if (!i.isTouchEvent || "mousemove" !== l.type) {
  1367. var d = "touchmove" === l.type && l.targetTouches && (l.targetTouches[0] || l.changedTouches[0]),
  1368. h = "touchmove" === l.type ? d.pageX : l.pageX,
  1369. p = "touchmove" === l.type ? d.pageY : l.pageY;
  1370. if (l.preventedByNestedSwiper) return r.startX = h, void(r.startY = p);
  1371. if (!this.allowTouchMove) return this.allowClick = !1, void(i.isTouched && (n.extend(r, {
  1372. startX: h,
  1373. startY: p,
  1374. currentX: h,
  1375. currentY: p
  1376. }), i.touchStartTime = n.now()));
  1377. if (i.isTouchEvent && a.touchReleaseOnEdges && !a.loop)
  1378. if (this.isVertical()) {
  1379. if (p < r.startY && this.translate <= this.maxTranslate() || p > r.startY && this.translate >= this.minTranslate())
  1380. return i.isTouched = !1, void(i.isMoved = !1)
  1381. } else if (h < r.startX && this.translate <= this.maxTranslate() || h > r.startX && this.translate >= this.minTranslate())
  1382. return;
  1383. if (i.isTouchEvent && e.activeElement && l.target === e.activeElement && s(l.target).is(i.formElements)) return i
  1384. .isMoved = !0, void(this.allowClick = !1);
  1385. if (i.allowTouchCallbacks && this.emit("touchMove", l), !(l.targetTouches && l.targetTouches.length > 1)) {
  1386. r.currentX = h, r.currentY = p;
  1387. var c = r.currentX - r.startX,
  1388. u = r.currentY - r.startY;
  1389. if (!(this.params.threshold && Math.sqrt(Math.pow(c, 2) + Math.pow(u, 2)) < this.params.threshold)) {
  1390. var v;
  1391. if (void 0 === i.isScrolling) this.isHorizontal() && r.currentY === r.startY || this.isVertical() && r.currentX ===
  1392. r.startX ? i.isScrolling = !1 : c * c + u * u >= 25 && (v = 180 * Math.atan2(Math.abs(u), Math.abs(c)) / Math.PI,
  1393. i.isScrolling = this.isHorizontal() ? v > a.touchAngle : 90 - v > a.touchAngle);
  1394. if (i.isScrolling && this.emit("touchMoveOpposite", l), void 0 === i.startMoving && (r.currentX === r.startX &&
  1395. r.currentY === r.startY || (i.startMoving = !0)), i.isScrolling) i.isTouched = !1;
  1396. else if (i.startMoving) {
  1397. this.allowClick = !1, a.cssMode || l.preventDefault(), a.touchMoveStopPropagation && !a.nested && l.stopPropagation(),
  1398. i.isMoved || (a.loop && this.loopFix(), i.startTranslate = this.getTranslate(), this.setTransition(0), this.animating &&
  1399. this.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !a.grabCursor || !
  1400. 0 !== this.allowSlideNext && !0 !== this.allowSlidePrev || this.setGrabCursor(!0), this.emit(
  1401. "sliderFirstMove", l)), this.emit("sliderMove", l), i.isMoved = !0;
  1402. var f = this.isHorizontal() ? c : u;
  1403. r.diff = f, f *= a.touchRatio, o && (f = -f), this.swipeDirection = f > 0 ? "prev" : "next", i.currentTranslate =
  1404. f + i.startTranslate;
  1405. var m = !0,
  1406. g = a.resistanceRatio;
  1407. if (a.touchReleaseOnEdges && (g = 0), f > 0 && i.currentTranslate > this.minTranslate() ? (m = !1, a.resistance &&
  1408. (i.currentTranslate = this.minTranslate() - 1 + Math.pow(-this.minTranslate() + i.startTranslate + f, g))) :
  1409. f < 0 && i.currentTranslate < this.maxTranslate() && (m = !1, a.resistance && (i.currentTranslate = this.maxTranslate() +
  1410. 1 - Math.pow(this.maxTranslate() - i.startTranslate - f, g))), m && (l.preventedByNestedSwiper = !0), !this.allowSlideNext &&
  1411. "next" === this.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate),
  1412. !this.allowSlidePrev && "prev" === this.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate =
  1413. i.startTranslate), a.threshold > 0) {
  1414. if (!(Math.abs(f) > a.threshold || i.allowThresholdMove)) return void(i.currentTranslate = i.startTranslate);
  1415. if (!i.allowThresholdMove) return i.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, i.currentTranslate =
  1416. i.startTranslate, void(r.diff = this.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY)
  1417. }
  1418. a.followFinger && !a.cssMode && ((a.freeMode || a.watchSlidesProgress || a.watchSlidesVisibility) && (this.updateActiveIndex(),
  1419. this.updateSlidesClasses()), a.freeMode && (0 === i.velocities.length && i.velocities.push({
  1420. position: r[this.isHorizontal() ? "startX" : "startY"],
  1421. time: i.touchStartTime
  1422. }), i.velocities.push({
  1423. position: r[this.isHorizontal() ? "currentX" : "currentY"],
  1424. time: n.now()
  1425. })), this.updateProgress(i.currentTranslate), this.setTranslate(i.currentTranslate))
  1426. }
  1427. }
  1428. }
  1429. }
  1430. } else i.startMoving && i.isScrolling && this.emit("touchMoveOpposite", l)
  1431. }
  1432. function A(e) {
  1433. var t = this,
  1434. i = t.touchEventsData,
  1435. s = t.params,
  1436. a = t.touches,
  1437. r = t.rtlTranslate,
  1438. o = t.$wrapperEl,
  1439. l = t.slidesGrid,
  1440. d = t.snapGrid,
  1441. h = e;
  1442. if (h.originalEvent && (h = h.originalEvent), i.allowTouchCallbacks && t.emit("touchEnd", h), i.allowTouchCallbacks = !
  1443. 1, !i.isTouched) return i.isMoved && s.grabCursor && t.setGrabCursor(!1), i.isMoved = !1, void(i.startMoving = !1);
  1444. s.grabCursor && i.isMoved && i.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(
  1445. !1);
  1446. var p, c = n.now(),
  1447. u = c - i.touchStartTime;
  1448. if (t.allowClick && (t.updateClickedSlide(h), t.emit("tap click", h), u < 300 && c - i.lastClickTime < 300 && t.emit(
  1449. "doubleTap doubleClick", h)), i.lastClickTime = n.now(), n.nextTick((function() {
  1450. t.destroyed || (t.allowClick = !0)
  1451. })), !i.isTouched || !i.isMoved || !t.swipeDirection || 0 === a.diff || i.currentTranslate === i.startTranslate)
  1452. return i.isTouched = !1, i.isMoved = !1, void(i.startMoving = !1);
  1453. if (i.isTouched = !1, i.isMoved = !1, i.startMoving = !1, p = s.followFinger ? r ? t.translate : -t.translate : -i.currentTranslate,
  1454. !s.cssMode)
  1455. if (s.freeMode) {
  1456. if (p < -t.minTranslate()) return void t.slideTo(t.activeIndex);
  1457. if (p > -t.maxTranslate()) return void(t.slides.length < d.length ? t.slideTo(d.length - 1) : t.slideTo(t.slides.length -
  1458. 1));
  1459. if (s.freeModeMomentum) {
  1460. if (i.velocities.length > 1) {
  1461. var v = i.velocities.pop(),
  1462. f = i.velocities.pop(),
  1463. m = v.position - f.position,
  1464. g = v.time - f.time;
  1465. t.velocity = m / g, t.velocity /= 2, Math.abs(t.velocity) < s.freeModeMinimumVelocity && (t.velocity = 0), (g >
  1466. 150 || n.now() - v.time > 300) && (t.velocity = 0)
  1467. } else t.velocity = 0;
  1468. t.velocity *= s.freeModeMomentumVelocityRatio, i.velocities.length = 0;
  1469. var b = 1e3 * s.freeModeMomentumRatio,
  1470. w = t.velocity * b,
  1471. y = t.translate + w;
  1472. r && (y = -y);
  1473. var x, T, E = !1,
  1474. C = 20 * Math.abs(t.velocity) * s.freeModeMomentumBounceRatio;
  1475. if (y < t.maxTranslate()) s.freeModeMomentumBounce ? (y + t.maxTranslate() < -C && (y = t.maxTranslate() - C), x =
  1476. t.maxTranslate(), E = !0, i.allowMomentumBounce = !0) : y = t.maxTranslate(), s.loop && s.centeredSlides && (T = !
  1477. 0);
  1478. else if (y > t.minTranslate()) s.freeModeMomentumBounce ? (y - t.minTranslate() > C && (y = t.minTranslate() + C),
  1479. x = t.minTranslate(), E = !0, i.allowMomentumBounce = !0) : y = t.minTranslate(), s.loop && s.centeredSlides &&
  1480. (T = !0);
  1481. else if (s.freeModeSticky) {
  1482. for (var S, M = 0; M < d.length; M += 1)
  1483. if (d[M] > -y) {
  1484. S = M;
  1485. break
  1486. } y = -(y = Math.abs(d[S] - y) < Math.abs(d[S - 1] - y) || "next" === t.swipeDirection ? d[S] : d[S - 1])
  1487. }
  1488. if (T && t.once("transitionEnd", (function() {
  1489. t.loopFix()
  1490. })), 0 !== t.velocity) {
  1491. if (b = r ? Math.abs((-y - t.translate) / t.velocity) : Math.abs((y - t.translate) / t.velocity), s.freeModeSticky) {
  1492. var P = Math.abs((r ? -y : y) - t.translate),
  1493. z = t.slidesSizesGrid[t.activeIndex];
  1494. b = P < z ? s.speed : P < 2 * z ? 1.5 * s.speed : 2.5 * s.speed
  1495. }
  1496. } else if (s.freeModeSticky) return void t.slideToClosest();
  1497. s.freeModeMomentumBounce && E ? (t.updateProgress(x), t.setTransition(b), t.setTranslate(y), t.transitionStart(!
  1498. 0, t.swipeDirection), t.animating = !0, o.transitionEnd((function() {
  1499. t && !t.destroyed && i.allowMomentumBounce && (t.emit("momentumBounce"), t.setTransition(s.speed), t.setTranslate(
  1500. x), o.transitionEnd((function() {
  1501. t && !t.destroyed && t.transitionEnd()
  1502. })))
  1503. }))) : t.velocity ? (t.updateProgress(y), t.setTransition(b), t.setTranslate(y), t.transitionStart(!0, t.swipeDirection),
  1504. t.animating || (t.animating = !0, o.transitionEnd((function() {
  1505. t && !t.destroyed && t.transitionEnd()
  1506. })))) : t.updateProgress(y), t.updateActiveIndex(), t.updateSlidesClasses()
  1507. } else if (s.freeModeSticky) return void t.slideToClosest();
  1508. (!s.freeModeMomentum || u >= s.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses())
  1509. } else {
  1510. for (var k = 0, $ = t.slidesSizesGrid[0], L = 0; L < l.length; L += s.slidesPerGroup) void 0 !== l[L + s.slidesPerGroup] ?
  1511. p >= l[L] && p < l[L + s.slidesPerGroup] && (k = L, $ = l[L + s.slidesPerGroup] - l[L]) : p >= l[L] && (k = L, $ =
  1512. l[l.length - 1] - l[l.length - 2]);
  1513. var I = (p - l[k]) / $;
  1514. if (u > s.longSwipesMs) {
  1515. if (!s.longSwipes) return void t.slideTo(t.activeIndex);
  1516. "next" === t.swipeDirection && (I >= s.longSwipesRatio ? t.slideTo(k + s.slidesPerGroup) : t.slideTo(k)), "prev" ===
  1517. t.swipeDirection && (I > 1 - s.longSwipesRatio ? t.slideTo(k + s.slidesPerGroup) : t.slideTo(k))
  1518. } else {
  1519. if (!s.shortSwipes) return void t.slideTo(t.activeIndex);
  1520. t.navigation && (h.target === t.navigation.nextEl || h.target === t.navigation.prevEl) ? h.target === t.navigation
  1521. .nextEl ? t.slideTo(k + s.slidesPerGroup) : t.slideTo(k) : ("next" === t.swipeDirection && t.slideTo(k + s.slidesPerGroup),
  1522. "prev" === t.swipeDirection && t.slideTo(k))
  1523. }
  1524. }
  1525. }
  1526. function G() {
  1527. var e = this.params,
  1528. t = this.el;
  1529. if (!t || 0 !== t.offsetWidth) {
  1530. e.breakpoints && this.setBreakpoint();
  1531. var i = this.allowSlideNext,
  1532. s = this.allowSlidePrev,
  1533. a = this.snapGrid;
  1534. this.allowSlideNext = !0, this.allowSlidePrev = !0, this.updateSize(), this.updateSlides(), this.updateSlidesClasses(),
  1535. ("auto" === e.slidesPerView || e.slidesPerView > 1) && this.isEnd && !this.params.centeredSlides ? this.slideTo(
  1536. this.slides.length - 1, 0, !1, !0) : this.slideTo(this.activeIndex, 0, !1, !0), this.autoplay && this.autoplay.running &&
  1537. this.autoplay.paused && this.autoplay.run(), this.allowSlidePrev = s, this.allowSlideNext = i, this.params.watchOverflow &&
  1538. a !== this.snapGrid && this.checkOverflow()
  1539. }
  1540. }
  1541. function B(e) {
  1542. this.allowClick || (this.params.preventClicks && e.preventDefault(), this.params.preventClicksPropagation && this.animating &&
  1543. (e.stopPropagation(), e.stopImmediatePropagation()))
  1544. }
  1545. function H() {
  1546. var e = this.wrapperEl;
  1547. this.previousTranslate = this.translate, this.translate = this.isHorizontal() ? -e.scrollLeft : -e.scrollTop, -0 ===
  1548. this.translate && (this.translate = 0), this.updateActiveIndex(), this.updateSlidesClasses();
  1549. var t = this.maxTranslate() - this.minTranslate();
  1550. (0 === t ? 0 : (this.translate - this.minTranslate()) / t) !== this.progress && this.updateProgress(this.translate),
  1551. this.emit("setTranslate", this.translate, !1)
  1552. }
  1553. var N = !1;
  1554. function X() {}
  1555. var V = {
  1556. init: !0,
  1557. direction: "horizontal",
  1558. touchEventsTarget: "container",
  1559. initialSlide: 0,
  1560. speed: 300,
  1561. cssMode: !1,
  1562. preventInteractionOnTransition: !1,
  1563. edgeSwipeDetection: !1,
  1564. edgeSwipeThreshold: 20,
  1565. freeMode: !1,
  1566. freeModeMomentum: !0,
  1567. freeModeMomentumRatio: 1,
  1568. freeModeMomentumBounce: !0,
  1569. freeModeMomentumBounceRatio: 1,
  1570. freeModeMomentumVelocityRatio: 1,
  1571. freeModeSticky: !1,
  1572. freeModeMinimumVelocity: .02,
  1573. autoHeight: !1,
  1574. setWrapperSize: !1,
  1575. virtualTranslate: !1,
  1576. effect: "slide",
  1577. breakpoints: void 0,
  1578. spaceBetween: 0,
  1579. slidesPerView: 1,
  1580. slidesPerColumn: 1,
  1581. slidesPerColumnFill: "column",
  1582. slidesPerGroup: 1,
  1583. centeredSlides: !1,
  1584. centeredSlidesBounds: !1,
  1585. slidesOffsetBefore: 0,
  1586. slidesOffsetAfter: 0,
  1587. normalizeSlideIndex: !0,
  1588. centerInsufficientSlides: !1,
  1589. watchOverflow: !1,
  1590. roundLengths: !1,
  1591. touchRatio: 1,
  1592. touchAngle: 45,
  1593. simulateTouch: !0,
  1594. shortSwipes: !0,
  1595. longSwipes: !0,
  1596. longSwipesRatio: .5,
  1597. longSwipesMs: 300,
  1598. followFinger: !0,
  1599. allowTouchMove: !0,
  1600. threshold: 0,
  1601. touchMoveStopPropagation: !1,
  1602. touchStartPreventDefault: !0,
  1603. touchStartForcePreventDefault: !1,
  1604. touchReleaseOnEdges: !1,
  1605. uniqueNavElements: !0,
  1606. resistance: !0,
  1607. resistanceRatio: .85,
  1608. watchSlidesProgress: !1,
  1609. watchSlidesVisibility: !1,
  1610. grabCursor: !1,
  1611. preventClicks: !0,
  1612. preventClicksPropagation: !0,
  1613. slideToClickedSlide: !1,
  1614. preloadImages: !0,
  1615. updateOnImagesReady: !0,
  1616. loop: !1,
  1617. loopAdditionalSlides: 0,
  1618. loopedSlides: null,
  1619. loopFillGroupWithBlank: !1,
  1620. allowSlidePrev: !0,
  1621. allowSlideNext: !0,
  1622. swipeHandler: null,
  1623. noSwiping: !0,
  1624. noSwipingClass: "swiper-no-swiping",
  1625. noSwipingSelector: null,
  1626. passiveListeners: !0,
  1627. containerModifierClass: "swiper-container-",
  1628. slideClass: "swiper-slide",
  1629. slideBlankClass: "swiper-slide-invisible-blank",
  1630. slideActiveClass: "swiper-slide-active",
  1631. slideDuplicateActiveClass: "swiper-slide-duplicate-active",
  1632. slideVisibleClass: "swiper-slide-visible",
  1633. slideDuplicateClass: "swiper-slide-duplicate",
  1634. slideNextClass: "swiper-slide-next",
  1635. slideDuplicateNextClass: "swiper-slide-duplicate-next",
  1636. slidePrevClass: "swiper-slide-prev",
  1637. slideDuplicatePrevClass: "swiper-slide-duplicate-prev",
  1638. wrapperClass: "swiper-wrapper",
  1639. runCallbacksOnInit: !0
  1640. },
  1641. Y = {
  1642. update: h,
  1643. translate: p,
  1644. transition: c,
  1645. slide: u,
  1646. loop: v,
  1647. grabCursor: f,
  1648. manipulation: L,
  1649. events: {
  1650. attachEvents: function() {
  1651. var t = this.params,
  1652. i = this.touchEvents,
  1653. s = this.el,
  1654. a = this.wrapperEl;
  1655. this.onTouchStart = D.bind(this), this.onTouchMove = O.bind(this), this.onTouchEnd = A.bind(this), t.cssMode &&
  1656. (this.onScroll = H.bind(this)), this.onClick = B.bind(this);
  1657. var r = !!t.nested;
  1658. if (!o.touch && o.pointerEvents) s.addEventListener(i.start, this.onTouchStart, !1), e.addEventListener(i.move,
  1659. this.onTouchMove, r), e.addEventListener(i.end, this.onTouchEnd, !1);
  1660. else {
  1661. if (o.touch) {
  1662. var n = !("touchstart" !== i.start || !o.passiveListener || !t.passiveListeners) && {
  1663. passive: !0,
  1664. capture: !1
  1665. };
  1666. s.addEventListener(i.start, this.onTouchStart, n), s.addEventListener(i.move, this.onTouchMove, o.passiveListener ?
  1667. {
  1668. passive: !1,
  1669. capture: r
  1670. } : r), s.addEventListener(i.end, this.onTouchEnd, n), i.cancel && s.addEventListener(i.cancel, this.onTouchEnd,
  1671. n), N || (e.addEventListener("touchstart", X), N = !0)
  1672. }(t.simulateTouch && !I.ios && !I.android || t.simulateTouch && !o.touch && I.ios) && (s.addEventListener(
  1673. "mousedown", this.onTouchStart, !1), e.addEventListener("mousemove", this.onTouchMove, r), e.addEventListener(
  1674. "mouseup", this.onTouchEnd, !1))
  1675. }(t.preventClicks || t.preventClicksPropagation) && s.addEventListener("click", this.onClick, !0), t.cssMode &&
  1676. a.addEventListener("scroll", this.onScroll), this.on(I.ios || I.android ?
  1677. "resize orientationchange observerUpdate" : "resize observerUpdate", G, !0)
  1678. },
  1679. detachEvents: function() {
  1680. var t = this.params,
  1681. i = this.touchEvents,
  1682. s = this.el,
  1683. a = this.wrapperEl,
  1684. r = !!t.nested;
  1685. if (!o.touch && o.pointerEvents) s.removeEventListener(i.start, this.onTouchStart, !1), e.removeEventListener(i
  1686. .move, this.onTouchMove, r), e.removeEventListener(i.end, this.onTouchEnd, !1);
  1687. else {
  1688. if (o.touch) {
  1689. var n = !("onTouchStart" !== i.start || !o.passiveListener || !t.passiveListeners) && {
  1690. passive: !0,
  1691. capture: !1
  1692. };
  1693. s.removeEventListener(i.start, this.onTouchStart, n), s.removeEventListener(i.move, this.onTouchMove, r), s.removeEventListener(
  1694. i.end, this.onTouchEnd, n), i.cancel && s.removeEventListener(i.cancel, this.onTouchEnd, n)
  1695. }(t.simulateTouch && !I.ios && !I.android || t.simulateTouch && !o.touch && I.ios) && (s.removeEventListener(
  1696. "mousedown", this.onTouchStart, !1), e.removeEventListener("mousemove", this.onTouchMove, r), e.removeEventListener(
  1697. "mouseup", this.onTouchEnd, !1))
  1698. }(t.preventClicks || t.preventClicksPropagation) && s.removeEventListener("click", this.onClick, !0), t.cssMode &&
  1699. a.removeEventListener("scroll", this.onScroll), this.off(I.ios || I.android ?
  1700. "resize orientationchange observerUpdate" : "resize observerUpdate", G)
  1701. }
  1702. },
  1703. breakpoints: {
  1704. setBreakpoint: function() {
  1705. var e = this.activeIndex,
  1706. t = this.initialized,
  1707. i = this.loopedSlides;
  1708. void 0 === i && (i = 0);
  1709. var s = this.params,
  1710. a = this.$el,
  1711. r = s.breakpoints;
  1712. if (r && (!r || 0 !== Object.keys(r).length)) {
  1713. var o = this.getBreakpoint(r);
  1714. if (o && this.currentBreakpoint !== o) {
  1715. var l = o in r ? r[o] : void 0;
  1716. l && ["slidesPerView", "spaceBetween", "slidesPerGroup", "slidesPerColumn"].forEach((function(e) {
  1717. var t = l[e];
  1718. void 0 !== t && (l[e] = "slidesPerView" !== e || "AUTO" !== t && "auto" !== t ? "slidesPerView" === e ?
  1719. parseFloat(t) : parseInt(t, 10) : "auto")
  1720. }));
  1721. var d = l || this.originalParams,
  1722. h = s.slidesPerColumn > 1,
  1723. p = d.slidesPerColumn > 1;
  1724. h && !p ? a.removeClass(s.containerModifierClass + "multirow " + s.containerModifierClass + "multirow-column") :
  1725. !h && p && (a.addClass(s.containerModifierClass + "multirow"), "column" === d.slidesPerColumnFill && a.addClass(
  1726. s.containerModifierClass + "multirow-column"));
  1727. var c = d.direction && d.direction !== s.direction,
  1728. u = s.loop && (d.slidesPerView !== s.slidesPerView || c);
  1729. c && t && this.changeDirection(), n.extend(this.params, d), n.extend(this, {
  1730. allowTouchMove: this.params.allowTouchMove,
  1731. allowSlideNext: this.params.allowSlideNext,
  1732. allowSlidePrev: this.params.allowSlidePrev
  1733. }), this.currentBreakpoint = o, u && t && (this.loopDestroy(), this.loopCreate(), this.updateSlides(), this.slideTo(
  1734. e - i + this.loopedSlides, 0, !1)), this.emit("breakpoint", d)
  1735. }
  1736. }
  1737. },
  1738. getBreakpoint: function(e) {
  1739. if (e) {
  1740. var i = !1,
  1741. s = [];
  1742. Object.keys(e).forEach((function(e) {
  1743. s.push(e)
  1744. })), s.sort((function(e, t) {
  1745. return parseInt(e, 10) - parseInt(t, 10)
  1746. }));
  1747. for (var a = 0; a < s.length; a += 1) {
  1748. var r = s[a];
  1749. r <= t.innerWidth && (i = r)
  1750. }
  1751. return i || "max"
  1752. }
  1753. }
  1754. },
  1755. checkOverflow: {
  1756. checkOverflow: function() {
  1757. var e = this.params,
  1758. t = this.isLocked,
  1759. i = this.slides.length > 0 && e.slidesOffsetBefore + e.spaceBetween * (this.slides.length - 1) + this.slides[0]
  1760. .offsetWidth * this.slides.length;
  1761. e.slidesOffsetBefore && e.slidesOffsetAfter && i ? this.isLocked = i <= this.size : this.isLocked = 1 === this.snapGrid
  1762. .length, this.allowSlideNext = !this.isLocked, this.allowSlidePrev = !this.isLocked, t !== this.isLocked &&
  1763. this.emit(this.isLocked ? "lock" : "unlock"), t && t !== this.isLocked && (this.isEnd = !1, this.navigation.update())
  1764. }
  1765. },
  1766. classes: {
  1767. addClasses: function() {
  1768. var e = this.classNames,
  1769. t = this.params,
  1770. i = this.rtl,
  1771. s = this.$el,
  1772. a = [];
  1773. a.push("initialized"), a.push(t.direction), t.freeMode && a.push("free-mode"), t.autoHeight && a.push(
  1774. "autoheight"), i && a.push("rtl"), t.slidesPerColumn > 1 && (a.push("multirow"), "column" === t.slidesPerColumnFill &&
  1775. a.push("multirow-column")), I.android && a.push("android"), I.ios && a.push("ios"), t.cssMode && a.push(
  1776. "css-mode"), a.forEach((function(i) {
  1777. e.push(t.containerModifierClass + i)
  1778. })), s.addClass(e.join(" "))
  1779. },
  1780. removeClasses: function() {
  1781. var e = this.$el,
  1782. t = this.classNames;
  1783. e.removeClass(t.join(" "))
  1784. }
  1785. },
  1786. images: {
  1787. loadImage: function(e, i, s, a, r, n) {
  1788. var o;
  1789. function l() {
  1790. n && n()
  1791. }
  1792. e.complete && r ? l() : i ? ((o = new t.Image).onload = l, o.onerror = l, a && (o.sizes = a), s && (o.srcset =
  1793. s), i && (o.src = i)) : l()
  1794. },
  1795. preloadImages: function() {
  1796. var e = this;
  1797. function t() {
  1798. null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad
  1799. .length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady")))
  1800. }
  1801. e.imagesToLoad = e.$el.find("img");
  1802. for (var i = 0; i < e.imagesToLoad.length; i += 1) {
  1803. var s = e.imagesToLoad[i];
  1804. e.loadImage(s, s.currentSrc || s.getAttribute("src"), s.srcset || s.getAttribute("srcset"), s.sizes || s.getAttribute(
  1805. "sizes"), !0, t)
  1806. }
  1807. }
  1808. }
  1809. },
  1810. F = {},
  1811. W = function(e) {
  1812. function t() {
  1813. for (var i, a, r, l = [], d = arguments.length; d--;) l[d] = arguments[d];
  1814. 1 === l.length && l[0].constructor && l[0].constructor === Object ? r = l[0] : (a = (i = l)[0], r = i[1]), r || (
  1815. r = {}), r = n.extend({}, r), a && !r.el && (r.el = a), e.call(this, r), Object.keys(Y).forEach((function(e) {
  1816. Object.keys(Y[e]).forEach((function(i) {
  1817. t.prototype[i] || (t.prototype[i] = Y[e][i])
  1818. }))
  1819. }));
  1820. var h = this;
  1821. void 0 === h.modules && (h.modules = {}), Object.keys(h.modules).forEach((function(e) {
  1822. var t = h.modules[e];
  1823. if (t.params) {
  1824. var i = Object.keys(t.params)[0],
  1825. s = t.params[i];
  1826. if ("object" != typeof s || null === s) return;
  1827. if (!(i in r && "enabled" in s)) return;
  1828. !0 === r[i] && (r[i] = {
  1829. enabled: !0
  1830. }), "object" != typeof r[i] || "enabled" in r[i] || (r[i].enabled = !0), r[i] || (r[i] = {
  1831. enabled: !1
  1832. })
  1833. }
  1834. }));
  1835. var p = n.extend({}, V);
  1836. h.useModulesParams(p), h.params = n.extend({}, p, F, r), h.originalParams = n.extend({}, h.params), h.passedParams =
  1837. n.extend({}, r), h.$ = s;
  1838. var c = s(h.params.el);
  1839. if (a = c[0]) {
  1840. if (c.length > 1) {
  1841. var u = [];
  1842. return c.each((function(e, i) {
  1843. var s = n.extend({}, r, {
  1844. el: i
  1845. });
  1846. u.push(new t(s))
  1847. })), u
  1848. }
  1849. var v, f, m;
  1850. return a.swiper = h, c.data("swiper", h), a && a.shadowRoot && a.shadowRoot.querySelector ? (v = s(a.shadowRoot.querySelector(
  1851. "." + h.params.wrapperClass))).children = function(e) {
  1852. return c.children(e)
  1853. } : v = c.children("." + h.params.wrapperClass), n.extend(h, {
  1854. $el: c,
  1855. el: a,
  1856. $wrapperEl: v,
  1857. wrapperEl: v[0],
  1858. classNames: [],
  1859. slides: s(),
  1860. slidesGrid: [],
  1861. snapGrid: [],
  1862. slidesSizesGrid: [],
  1863. isHorizontal: function() {
  1864. return "horizontal" === h.params.direction
  1865. },
  1866. isVertical: function() {
  1867. return "vertical" === h.params.direction
  1868. },
  1869. rtl: "rtl" === a.dir.toLowerCase() || "rtl" === c.css("direction"),
  1870. rtlTranslate: "horizontal" === h.params.direction && ("rtl" === a.dir.toLowerCase() || "rtl" === c.css(
  1871. "direction")),
  1872. wrongRTL: "-webkit-box" === v.css("display"),
  1873. activeIndex: 0,
  1874. realIndex: 0,
  1875. isBeginning: !0,
  1876. isEnd: !1,
  1877. translate: 0,
  1878. previousTranslate: 0,
  1879. progress: 0,
  1880. velocity: 0,
  1881. animating: !1,
  1882. allowSlideNext: h.params.allowSlideNext,
  1883. allowSlidePrev: h.params.allowSlidePrev,
  1884. touchEvents: (f = ["touchstart", "touchmove", "touchend", "touchcancel"], m = ["mousedown", "mousemove",
  1885. "mouseup"
  1886. ], o.pointerEvents && (m = ["pointerdown", "pointermove", "pointerup"]), h.touchEventsTouch = {
  1887. start: f[0],
  1888. move: f[1],
  1889. end: f[2],
  1890. cancel: f[3]
  1891. }, h.touchEventsDesktop = {
  1892. start: m[0],
  1893. move: m[1],
  1894. end: m[2]
  1895. }, o.touch || !h.params.simulateTouch ? h.touchEventsTouch : h.touchEventsDesktop),
  1896. touchEventsData: {
  1897. isTouched: void 0,
  1898. isMoved: void 0,
  1899. allowTouchCallbacks: void 0,
  1900. touchStartTime: void 0,
  1901. isScrolling: void 0,
  1902. currentTranslate: void 0,
  1903. startTranslate: void 0,
  1904. allowThresholdMove: void 0,
  1905. formElements: "input, select, option, textarea, button, video",
  1906. lastClickTime: n.now(),
  1907. clickTimeout: void 0,
  1908. velocities: [],
  1909. allowMomentumBounce: void 0,
  1910. isTouchEvent: void 0,
  1911. startMoving: void 0
  1912. },
  1913. allowClick: !0,
  1914. allowTouchMove: h.params.allowTouchMove,
  1915. touches: {
  1916. startX: 0,
  1917. startY: 0,
  1918. currentX: 0,
  1919. currentY: 0,
  1920. diff: 0
  1921. },
  1922. imagesToLoad: [],
  1923. imagesLoaded: 0
  1924. }), h.useModules(), h.params.init && h.init(), h
  1925. }
  1926. }
  1927. e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t;
  1928. var i = {
  1929. extendedDefaults: {
  1930. configurable: !0
  1931. },
  1932. defaults: {
  1933. configurable: !0
  1934. },
  1935. Class: {
  1936. configurable: !0
  1937. },
  1938. $: {
  1939. configurable: !0
  1940. }
  1941. };
  1942. return t.prototype.slidesPerViewDynamic = function() {
  1943. var e = this.params,
  1944. t = this.slides,
  1945. i = this.slidesGrid,
  1946. s = this.size,
  1947. a = this.activeIndex,
  1948. r = 1;
  1949. if (e.centeredSlides) {
  1950. for (var n, o = t[a].swiperSlideSize, l = a + 1; l < t.length; l += 1) t[l] && !n && (r += 1, (o += t[l].swiperSlideSize) >
  1951. s && (n = !0));
  1952. for (var d = a - 1; d >= 0; d -= 1) t[d] && !n && (r += 1, (o += t[d].swiperSlideSize) > s && (n = !0))
  1953. } else
  1954. for (var h = a + 1; h < t.length; h += 1) i[h] - i[a] < s && (r += 1);
  1955. return r
  1956. }, t.prototype.update = function() {
  1957. var e = this;
  1958. if (e && !e.destroyed) {
  1959. var t = e.snapGrid,
  1960. i = e.params;
  1961. i.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(),
  1962. e.params.freeMode ? (s(), e.params.autoHeight && e.updateAutoHeight()) : (("auto" === e.params.slidesPerView ||
  1963. e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !
  1964. 0) : e.slideTo(e.activeIndex, 0, !1, !0)) || s(), i.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e
  1965. .emit("update")
  1966. }
  1967. function s() {
  1968. var t = e.rtlTranslate ? -1 * e.translate : e.translate,
  1969. i = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate());
  1970. e.setTranslate(i), e.updateActiveIndex(), e.updateSlidesClasses()
  1971. }
  1972. }, t.prototype.changeDirection = function(e, t) {
  1973. void 0 === t && (t = !0);
  1974. var i = this.params.direction;
  1975. return e || (e = "horizontal" === i ? "vertical" : "horizontal"), e === i || "horizontal" !== e && "vertical" !==
  1976. e ? this : (this.$el.removeClass("" + this.params.containerModifierClass + i).addClass("" + this.params.containerModifierClass +
  1977. e), this.params.direction = e, this.slides.each((function(t, i) {
  1978. "vertical" === e ? i.style.width = "" : i.style.height = ""
  1979. })), this.emit("changeDirection"), t && this.update(), this)
  1980. }, t.prototype.init = function() {
  1981. this.initialized || (this.emit("beforeInit"), this.params.breakpoints && this.setBreakpoint(), this.addClasses(),
  1982. this.params.loop && this.loopCreate(), this.updateSize(), this.updateSlides(), this.params.watchOverflow &&
  1983. this.checkOverflow(), this.params.grabCursor && this.setGrabCursor(), this.params.preloadImages && this.preloadImages(),
  1984. this.params.loop ? this.slideTo(this.params.initialSlide + this.loopedSlides, 0, this.params.runCallbacksOnInit) :
  1985. this.slideTo(this.params.initialSlide, 0, this.params.runCallbacksOnInit), this.attachEvents(), this.initialized = !
  1986. 0, this.emit("init"))
  1987. }, t.prototype.destroy = function(e, t) {
  1988. void 0 === e && (e = !0), void 0 === t && (t = !0);
  1989. var i = this,
  1990. s = i.params,
  1991. a = i.$el,
  1992. r = i.$wrapperEl,
  1993. o = i.slides;
  1994. return void 0 === i.params || i.destroyed ? null : (i.emit("beforeDestroy"), i.initialized = !1, i.detachEvents(),
  1995. s.loop && i.loopDestroy(), t && (i.removeClasses(), a.removeAttr("style"), r.removeAttr("style"), o && o.length &&
  1996. o.removeClass([s.slideVisibleClass, s.slideActiveClass, s.slideNextClass, s.slidePrevClass].join(" ")).removeAttr(
  1997. "style").removeAttr("data-swiper-slide-index")), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((
  1998. function(e) {
  1999. i.off(e)
  2000. })), !1 !== e && (i.$el[0].swiper = null, i.$el.data("swiper", null), n.deleteProps(i)), i.destroyed = !0,
  2001. null)
  2002. }, t.extendDefaults = function(e) {
  2003. n.extend(F, e)
  2004. }, i.extendedDefaults.get = function() {
  2005. return F
  2006. }, i.defaults.get = function() {
  2007. return V
  2008. }, i.Class.get = function() {
  2009. return e
  2010. }, i.$.get = function() {
  2011. return s
  2012. }, Object.defineProperties(t, i), t
  2013. }(l),
  2014. R = {
  2015. name: "device",
  2016. proto: {
  2017. device: I
  2018. },
  2019. static: {
  2020. device: I
  2021. }
  2022. },
  2023. q = {
  2024. name: "support",
  2025. proto: {
  2026. support: o
  2027. },
  2028. static: {
  2029. support: o
  2030. }
  2031. },
  2032. j = {
  2033. isEdge: !!t.navigator.userAgent.match(/Edge/g),
  2034. isSafari: function() {
  2035. var e = t.navigator.userAgent.toLowerCase();
  2036. return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0
  2037. }(),
  2038. isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)
  2039. },
  2040. K = {
  2041. name: "browser",
  2042. proto: {
  2043. browser: j
  2044. },
  2045. static: {
  2046. browser: j
  2047. }
  2048. },
  2049. U = {
  2050. name: "resize",
  2051. create: function() {
  2052. var e = this;
  2053. n.extend(e, {
  2054. resize: {
  2055. resizeHandler: function() {
  2056. e && !e.destroyed && e.initialized && (e.emit("beforeResize"), e.emit("resize"))
  2057. },
  2058. orientationChangeHandler: function() {
  2059. e && !e.destroyed && e.initialized && e.emit("orientationchange")
  2060. }
  2061. }
  2062. })
  2063. },
  2064. on: {
  2065. init: function() {
  2066. t.addEventListener("resize", this.resize.resizeHandler), t.addEventListener("orientationchange", this.resize.orientationChangeHandler)
  2067. },
  2068. destroy: function() {
  2069. t.removeEventListener("resize", this.resize.resizeHandler), t.removeEventListener("orientationchange", this.resize
  2070. .orientationChangeHandler)
  2071. }
  2072. }
  2073. },
  2074. _ = {
  2075. func: t.MutationObserver || t.WebkitMutationObserver,
  2076. attach: function(e, i) {
  2077. void 0 === i && (i = {});
  2078. var s = this,
  2079. a = new(0, _.func)((function(e) {
  2080. if (1 !== e.length) {
  2081. var i = function() {
  2082. s.emit("observerUpdate", e[0])
  2083. };
  2084. t.requestAnimationFrame ? t.requestAnimationFrame(i) : t.setTimeout(i, 0)
  2085. } else s.emit("observerUpdate", e[0])
  2086. }));
  2087. a.observe(e, {
  2088. attributes: void 0 === i.attributes || i.attributes,
  2089. childList: void 0 === i.childList || i.childList,
  2090. characterData: void 0 === i.characterData || i.characterData
  2091. }), s.observer.observers.push(a)
  2092. },
  2093. init: function() {
  2094. if (o.observer && this.params.observer) {
  2095. if (this.params.observeParents)
  2096. for (var e = this.$el.parents(), t = 0; t < e.length; t += 1) this.observer.attach(e[t]);
  2097. this.observer.attach(this.$el[0], {
  2098. childList: this.params.observeSlideChildren
  2099. }), this.observer.attach(this.$wrapperEl[0], {
  2100. attributes: !1
  2101. })
  2102. }
  2103. },
  2104. destroy: function() {
  2105. this.observer.observers.forEach((function(e) {
  2106. e.disconnect()
  2107. })), this.observer.observers = []
  2108. }
  2109. },
  2110. Z = {
  2111. name: "observer",
  2112. params: {
  2113. observer: !1,
  2114. observeParents: !1,
  2115. observeSlideChildren: !1
  2116. },
  2117. create: function() {
  2118. n.extend(this, {
  2119. observer: {
  2120. init: _.init.bind(this),
  2121. attach: _.attach.bind(this),
  2122. destroy: _.destroy.bind(this),
  2123. observers: []
  2124. }
  2125. })
  2126. },
  2127. on: {
  2128. init: function() {
  2129. this.observer.init()
  2130. },
  2131. destroy: function() {
  2132. this.observer.destroy()
  2133. }
  2134. }
  2135. },
  2136. Q = {
  2137. update: function(e) {
  2138. var t = this,
  2139. i = t.params,
  2140. s = i.slidesPerView,
  2141. a = i.slidesPerGroup,
  2142. r = i.centeredSlides,
  2143. o = t.params.virtual,
  2144. l = o.addSlidesBefore,
  2145. d = o.addSlidesAfter,
  2146. h = t.virtual,
  2147. p = h.from,
  2148. c = h.to,
  2149. u = h.slides,
  2150. v = h.slidesGrid,
  2151. f = h.renderSlide,
  2152. m = h.offset;
  2153. t.updateActiveIndex();
  2154. var g, b, w, y = t.activeIndex || 0;
  2155. g = t.rtlTranslate ? "right" : t.isHorizontal() ? "left" : "top", r ? (b = Math.floor(s / 2) + a + l, w = Math.floor(
  2156. s / 2) + a + d) : (b = s + (a - 1) + l, w = a + d);
  2157. var x = Math.max((y || 0) - w, 0),
  2158. T = Math.min((y || 0) + b, u.length - 1),
  2159. E = (t.slidesGrid[x] || 0) - (t.slidesGrid[0] || 0);
  2160. function C() {
  2161. t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.lazy && t.params.lazy.enabled && t.lazy.load()
  2162. }
  2163. if (n.extend(t.virtual, {
  2164. from: x,
  2165. to: T,
  2166. offset: E,
  2167. slidesGrid: t.slidesGrid
  2168. }), p === x && c === T && !e) return t.slidesGrid !== v && E !== m && t.slides.css(g, E + "px"), void t.updateProgress();
  2169. if (t.params.virtual.renderExternal) return t.params.virtual.renderExternal.call(t, {
  2170. offset: E,
  2171. from: x,
  2172. to: T,
  2173. slides: function() {
  2174. for (var e = [], t = x; t <= T; t += 1) e.push(u[t]);
  2175. return e
  2176. }()
  2177. }), void C();
  2178. var S = [],
  2179. M = [];
  2180. if (e) t.$wrapperEl.find("." + t.params.slideClass).remove();
  2181. else
  2182. for (var P = p; P <= c; P += 1)(P < x || P > T) && t.$wrapperEl.find("." + t.params.slideClass +
  2183. '[data-swiper-slide-index="' + P + '"]').remove();
  2184. for (var z = 0; z < u.length; z += 1) z >= x && z <= T && (void 0 === c || e ? M.push(z) : (z > c && M.push(z),
  2185. z < p && S.push(z)));
  2186. M.forEach((function(e) {
  2187. t.$wrapperEl.append(f(u[e], e))
  2188. })), S.sort((function(e, t) {
  2189. return t - e
  2190. })).forEach((function(e) {
  2191. t.$wrapperEl.prepend(f(u[e], e))
  2192. })), t.$wrapperEl.children(".swiper-slide").css(g, E + "px"), C()
  2193. },
  2194. renderSlide: function(e, t) {
  2195. var i = this.params.virtual;
  2196. if (i.cache && this.virtual.cache[t]) return this.virtual.cache[t];
  2197. var a = i.renderSlide ? s(i.renderSlide.call(this, e, t)) : s('<div class="' + this.params.slideClass +
  2198. '" data-swiper-slide-index="' + t + '">' + e + "</div>");
  2199. return a.attr("data-swiper-slide-index") || a.attr("data-swiper-slide-index", t), i.cache && (this.virtual.cache[
  2200. t] = a), a
  2201. },
  2202. appendSlide: function(e) {
  2203. if ("object" == typeof e && "length" in e)
  2204. for (var t = 0; t < e.length; t += 1) e[t] && this.virtual.slides.push(e[t]);
  2205. else this.virtual.slides.push(e);
  2206. this.virtual.update(!0)
  2207. },
  2208. prependSlide: function(e) {
  2209. var t = this.activeIndex,
  2210. i = t + 1,
  2211. s = 1;
  2212. if (Array.isArray(e)) {
  2213. for (var a = 0; a < e.length; a += 1) e[a] && this.virtual.slides.unshift(e[a]);
  2214. i = t + e.length, s = e.length
  2215. } else this.virtual.slides.unshift(e);
  2216. if (this.params.virtual.cache) {
  2217. var r = this.virtual.cache,
  2218. n = {};
  2219. Object.keys(r).forEach((function(e) {
  2220. var t = r[e],
  2221. i = t.attr("data-swiper-slide-index");
  2222. i && t.attr("data-swiper-slide-index", parseInt(i, 10) + 1), n[parseInt(e, 10) + s] = t
  2223. })), this.virtual.cache = n
  2224. }
  2225. this.virtual.update(!0), this.slideTo(i, 0)
  2226. },
  2227. removeSlide: function(e) {
  2228. if (null != e) {
  2229. var t = this.activeIndex;
  2230. if (Array.isArray(e))
  2231. for (var i = e.length - 1; i >= 0; i -= 1) this.virtual.slides.splice(e[i], 1), this.params.virtual.cache &&
  2232. delete this.virtual.cache[e[i]], e[i] < t && (t -= 1), t = Math.max(t, 0);
  2233. else this.virtual.slides.splice(e, 1), this.params.virtual.cache && delete this.virtual.cache[e], e < t && (t -=
  2234. 1), t = Math.max(t, 0);
  2235. this.virtual.update(!0), this.slideTo(t, 0)
  2236. }
  2237. },
  2238. removeAllSlides: function() {
  2239. this.virtual.slides = [], this.params.virtual.cache && (this.virtual.cache = {}), this.virtual.update(!0), this.slideTo(
  2240. 0, 0)
  2241. }
  2242. },
  2243. J = {
  2244. name: "virtual",
  2245. params: {
  2246. virtual: {
  2247. enabled: !1,
  2248. slides: [],
  2249. cache: !0,
  2250. renderSlide: null,
  2251. renderExternal: null,
  2252. addSlidesBefore: 0,
  2253. addSlidesAfter: 0
  2254. }
  2255. },
  2256. create: function() {
  2257. n.extend(this, {
  2258. virtual: {
  2259. update: Q.update.bind(this),
  2260. appendSlide: Q.appendSlide.bind(this),
  2261. prependSlide: Q.prependSlide.bind(this),
  2262. removeSlide: Q.removeSlide.bind(this),
  2263. removeAllSlides: Q.removeAllSlides.bind(this),
  2264. renderSlide: Q.renderSlide.bind(this),
  2265. slides: this.params.virtual.slides,
  2266. cache: {}
  2267. }
  2268. })
  2269. },
  2270. on: {
  2271. beforeInit: function() {
  2272. if (this.params.virtual.enabled) {
  2273. this.classNames.push(this.params.containerModifierClass + "virtual");
  2274. var e = {
  2275. watchSlidesProgress: !0
  2276. };
  2277. n.extend(this.params, e), n.extend(this.originalParams, e), this.params.initialSlide || this.virtual.update()
  2278. }
  2279. },
  2280. setTranslate: function() {
  2281. this.params.virtual.enabled && this.virtual.update()
  2282. }
  2283. }
  2284. },
  2285. ee = {
  2286. handle: function(i) {
  2287. var s = this.rtlTranslate,
  2288. a = i;
  2289. a.originalEvent && (a = a.originalEvent);
  2290. var r = a.keyCode || a.charCode;
  2291. if (!this.allowSlideNext && (this.isHorizontal() && 39 === r || this.isVertical() && 40 === r || 34 === r))
  2292. return !1;
  2293. if (!this.allowSlidePrev && (this.isHorizontal() && 37 === r || this.isVertical() && 38 === r || 33 === r))
  2294. return !1;
  2295. if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || e.activeElement && e.activeElement.nodeName && (
  2296. "input" === e.activeElement.nodeName.toLowerCase() || "textarea" === e.activeElement.nodeName.toLowerCase()))) {
  2297. if (this.params.keyboard.onlyInViewport && (33 === r || 34 === r || 37 === r || 39 === r || 38 === r || 40 ===
  2298. r)) {
  2299. var n = !1;
  2300. if (this.$el.parents("." + this.params.slideClass).length > 0 && 0 === this.$el.parents("." + this.params.slideActiveClass)
  2301. .length) return;
  2302. var o = t.innerWidth,
  2303. l = t.innerHeight,
  2304. d = this.$el.offset();
  2305. s && (d.left -= this.$el[0].scrollLeft);
  2306. for (var h = [
  2307. [d.left, d.top],
  2308. [d.left + this.width, d.top],
  2309. [d.left, d.top + this.height],
  2310. [d.left + this.width, d.top + this.height]
  2311. ], p = 0; p < h.length; p += 1) {
  2312. var c = h[p];
  2313. c[0] >= 0 && c[0] <= o && c[1] >= 0 && c[1] <= l && (n = !0)
  2314. }
  2315. if (!n) return
  2316. }
  2317. this.isHorizontal() ? (33 !== r && 34 !== r && 37 !== r && 39 !== r || (a.preventDefault ? a.preventDefault() :
  2318. a.returnValue = !1), (34 !== r && 39 !== r || s) && (33 !== r && 37 !== r || !s) || this.slideNext(), (33 !==
  2319. r && 37 !== r || s) && (34 !== r && 39 !== r || !s) || this.slidePrev()) : (33 !== r && 34 !== r && 38 !== r &&
  2320. 40 !== r || (a.preventDefault ? a.preventDefault() : a.returnValue = !1), 34 !== r && 40 !== r || this.slideNext(),
  2321. 33 !== r && 38 !== r || this.slidePrev()), this.emit("keyPress", r)
  2322. }
  2323. },
  2324. enable: function() {
  2325. this.keyboard.enabled || (s(e).on("keydown", this.keyboard.handle), this.keyboard.enabled = !0)
  2326. },
  2327. disable: function() {
  2328. this.keyboard.enabled && (s(e).off("keydown", this.keyboard.handle), this.keyboard.enabled = !1)
  2329. }
  2330. },
  2331. te = {
  2332. name: "keyboard",
  2333. params: {
  2334. keyboard: {
  2335. enabled: !1,
  2336. onlyInViewport: !0
  2337. }
  2338. },
  2339. create: function() {
  2340. n.extend(this, {
  2341. keyboard: {
  2342. enabled: !1,
  2343. enable: ee.enable.bind(this),
  2344. disable: ee.disable.bind(this),
  2345. handle: ee.handle.bind(this)
  2346. }
  2347. })
  2348. },
  2349. on: {
  2350. init: function() {
  2351. this.params.keyboard.enabled && this.keyboard.enable()
  2352. },
  2353. destroy: function() {
  2354. this.keyboard.enabled && this.keyboard.disable()
  2355. }
  2356. }
  2357. };
  2358. var ie = {
  2359. lastScrollTime: n.now(),
  2360. lastEventBeforeSnap: void 0,
  2361. recentWheelEvents: [],
  2362. event: function() {
  2363. return t.navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function() {
  2364. var t = "onwheel" in e;
  2365. if (!t) {
  2366. var i = e.createElement("div");
  2367. i.setAttribute("onwheel", "return;"), t = "function" == typeof i.onwheel
  2368. }
  2369. return !t && e.implementation && e.implementation.hasFeature && !0 !== e.implementation.hasFeature("", "") &&
  2370. (t = e.implementation.hasFeature("Events.wheel", "3.0")), t
  2371. }() ? "wheel" : "mousewheel"
  2372. },
  2373. normalize: function(e) {
  2374. var t = 0,
  2375. i = 0,
  2376. s = 0,
  2377. a = 0;
  2378. return "detail" in e && (i = e.detail), "wheelDelta" in e && (i = -e.wheelDelta / 120), "wheelDeltaY" in e && (i = -
  2379. e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS &&
  2380. (t = i, i = 0), s = 10 * t, a = 10 * i, "deltaY" in e && (a = e.deltaY), "deltaX" in e && (s = e.deltaX), e.shiftKey &&
  2381. !s && (s = a, a = 0), (s || a) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, a *= 40) : (s *= 800, a *= 800)),
  2382. s && !t && (t = s < 1 ? -1 : 1), a && !i && (i = a < 1 ? -1 : 1), {
  2383. spinX: t,
  2384. spinY: i,
  2385. pixelX: s,
  2386. pixelY: a
  2387. }
  2388. },
  2389. handleMouseEnter: function() {
  2390. this.mouseEntered = !0
  2391. },
  2392. handleMouseLeave: function() {
  2393. this.mouseEntered = !1
  2394. },
  2395. handle: function(e) {
  2396. var i = e,
  2397. s = this,
  2398. a = s.params.mousewheel;
  2399. if (s.params.cssMode && i.preventDefault(), !s.mouseEntered && !a.releaseOnEdges) return !0;
  2400. i.originalEvent && (i = i.originalEvent);
  2401. var r = 0,
  2402. o = s.rtlTranslate ? -1 : 1,
  2403. l = ie.normalize(i);
  2404. if (a.forceToAxis)
  2405. if (s.isHorizontal()) {
  2406. if (!(Math.abs(l.pixelX) > Math.abs(l.pixelY))) return !0;
  2407. r = l.pixelX * o
  2408. } else {
  2409. if (!(Math.abs(l.pixelY) > Math.abs(l.pixelX))) return !0;
  2410. r = l.pixelY
  2411. }
  2412. else r = Math.abs(l.pixelX) > Math.abs(l.pixelY) ? -l.pixelX * o : -l.pixelY;
  2413. if (0 === r) return !0;
  2414. if (a.invert && (r = -r), s.params.freeMode) {
  2415. var d = {
  2416. time: n.now(),
  2417. delta: Math.abs(r),
  2418. direction: Math.sign(r)
  2419. },
  2420. h = s.mousewheel.lastEventBeforeSnap,
  2421. p = h && d.time < h.time + 500 && d.delta <= h.delta && d.direction === h.direction;
  2422. if (!p) {
  2423. s.mousewheel.lastEventBeforeSnap = void 0, s.params.loop && s.loopFix();
  2424. var c = s.getTranslate() + r * a.sensitivity,
  2425. u = s.isBeginning,
  2426. v = s.isEnd;
  2427. if (c >= s.minTranslate() && (c = s.minTranslate()), c <= s.maxTranslate() && (c = s.maxTranslate()), s.setTransition(
  2428. 0), s.setTranslate(c), s.updateProgress(), s.updateActiveIndex(), s.updateSlidesClasses(), (!u && s.isBeginning ||
  2429. !v && s.isEnd) && s.updateSlidesClasses(), s.params.freeModeSticky) {
  2430. clearTimeout(s.mousewheel.timeout), s.mousewheel.timeout = void 0;
  2431. var f = s.mousewheel.recentWheelEvents;
  2432. f.length >= 15 && f.shift();
  2433. var m = f.length ? f[f.length - 1] : void 0,
  2434. g = f[0];
  2435. if (f.push(d), m && (d.delta > m.delta || d.direction !== m.direction)) f.splice(0);
  2436. else if (f.length >= 15 && d.time - g.time < 500 && g.delta - d.delta >= 1 && d.delta <= 6) {
  2437. var b = r > 0 ? .8 : .2;
  2438. s.mousewheel.lastEventBeforeSnap = d, f.splice(0), s.mousewheel.timeout = n.nextTick((function() {
  2439. s.slideToClosest(s.params.speed, !0, void 0, b)
  2440. }), 0)
  2441. }
  2442. s.mousewheel.timeout || (s.mousewheel.timeout = n.nextTick((function() {
  2443. s.mousewheel.lastEventBeforeSnap = d, f.splice(0), s.slideToClosest(s.params.speed, !0, void 0, .5)
  2444. }), 500))
  2445. }
  2446. if (p || s.emit("scroll", i), s.params.autoplay && s.params.autoplayDisableOnInteraction && s.autoplay.stop(),
  2447. c === s.minTranslate() || c === s.maxTranslate()) return !0
  2448. }
  2449. } else {
  2450. if (n.now() - s.mousewheel.lastScrollTime > 60)
  2451. if (r < 0)
  2452. if (s.isEnd && !s.params.loop || s.animating) {
  2453. if (a.releaseOnEdges) return !0
  2454. } else s.slideNext(), s.emit("scroll", i);
  2455. else if (s.isBeginning && !s.params.loop || s.animating) {
  2456. if (a.releaseOnEdges) return !0
  2457. } else s.slidePrev(), s.emit("scroll", i);
  2458. s.mousewheel.lastScrollTime = (new t.Date).getTime()
  2459. }
  2460. return i.preventDefault ? i.preventDefault() : i.returnValue = !1, !1
  2461. },
  2462. enable: function() {
  2463. var e = ie.event();
  2464. if (this.params.cssMode) return this.wrapperEl.removeEventListener(e, this.mousewheel.handle), !0;
  2465. if (!e) return !1;
  2466. if (this.mousewheel.enabled) return !1;
  2467. var t = this.$el;
  2468. return "container" !== this.params.mousewheel.eventsTarged && (t = s(this.params.mousewheel.eventsTarged)), t.on(
  2469. "mouseenter", this.mousewheel.handleMouseEnter), t.on("mouseleave", this.mousewheel.handleMouseLeave), t.on(e,
  2470. this.mousewheel.handle), this.mousewheel.enabled = !0, !0
  2471. },
  2472. disable: function() {
  2473. var e = ie.event();
  2474. if (this.params.cssMode) return this.wrapperEl.addEventListener(e, this.mousewheel.handle), !0;
  2475. if (!e) return !1;
  2476. if (!this.mousewheel.enabled) return !1;
  2477. var t = this.$el;
  2478. return "container" !== this.params.mousewheel.eventsTarged && (t = s(this.params.mousewheel.eventsTarged)), t.off(
  2479. e, this.mousewheel.handle), this.mousewheel.enabled = !1, !0
  2480. }
  2481. },
  2482. se = {
  2483. update: function() {
  2484. var e = this.params.navigation;
  2485. if (!this.params.loop) {
  2486. var t = this.navigation,
  2487. i = t.$nextEl,
  2488. s = t.$prevEl;
  2489. s && s.length > 0 && (this.isBeginning ? s.addClass(e.disabledClass) : s.removeClass(e.disabledClass), s[this.params
  2490. .watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)), i && i.length > 0 && (this.isEnd ?
  2491. i.addClass(e.disabledClass) : i.removeClass(e.disabledClass), i[this.params.watchOverflow && this.isLocked ?
  2492. "addClass" : "removeClass"](e.lockClass))
  2493. }
  2494. },
  2495. onPrevClick: function(e) {
  2496. e.preventDefault(), this.isBeginning && !this.params.loop || this.slidePrev()
  2497. },
  2498. onNextClick: function(e) {
  2499. e.preventDefault(), this.isEnd && !this.params.loop || this.slideNext()
  2500. },
  2501. init: function() {
  2502. var e, t, i = this.params.navigation;
  2503. (i.nextEl || i.prevEl) && (i.nextEl && (e = s(i.nextEl), this.params.uniqueNavElements && "string" == typeof i.nextEl &&
  2504. e.length > 1 && 1 === this.$el.find(i.nextEl).length && (e = this.$el.find(i.nextEl))), i.prevEl && (t = s(i.prevEl),
  2505. this.params.uniqueNavElements && "string" == typeof i.prevEl && t.length > 1 && 1 === this.$el.find(i.prevEl).length &&
  2506. (t = this.$el.find(i.prevEl))), e && e.length > 0 && e.on("click", this.navigation.onNextClick), t && t.length >
  2507. 0 && t.on("click", this.navigation.onPrevClick), n.extend(this.navigation, {
  2508. $nextEl: e,
  2509. nextEl: e && e[0],
  2510. $prevEl: t,
  2511. prevEl: t && t[0]
  2512. }))
  2513. },
  2514. destroy: function() {
  2515. var e = this.navigation,
  2516. t = e.$nextEl,
  2517. i = e.$prevEl;
  2518. t && t.length && (t.off("click", this.navigation.onNextClick), t.removeClass(this.params.navigation.disabledClass)),
  2519. i && i.length && (i.off("click", this.navigation.onPrevClick), i.removeClass(this.params.navigation.disabledClass))
  2520. }
  2521. },
  2522. ae = {
  2523. update: function() {
  2524. var e = this.rtl,
  2525. t = this.params.pagination;
  2526. if (t.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
  2527. var i, a = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length,
  2528. r = this.pagination.$el,
  2529. n = this.params.loop ? Math.ceil((a - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length;
  2530. if (this.params.loop ? ((i = Math.ceil((this.activeIndex - this.loopedSlides) / this.params.slidesPerGroup)) >
  2531. a - 1 - 2 * this.loopedSlides && (i -= a - 2 * this.loopedSlides), i > n - 1 && (i -= n), i < 0 && "bullets" !==
  2532. this.params.paginationType && (i = n + i)) : i = void 0 !== this.snapIndex ? this.snapIndex : this.activeIndex ||
  2533. 0, "bullets" === t.type && this.pagination.bullets && this.pagination.bullets.length > 0) {
  2534. var o, l, d, h = this.pagination.bullets;
  2535. if (t.dynamicBullets && (this.pagination.bulletSize = h.eq(0)[this.isHorizontal() ? "outerWidth" :
  2536. "outerHeight"](!0), r.css(this.isHorizontal() ? "width" : "height", this.pagination.bulletSize * (t.dynamicMainBullets +
  2537. 4) + "px"), t.dynamicMainBullets > 1 && void 0 !== this.previousIndex && (this.pagination.dynamicBulletIndex +=
  2538. i - this.previousIndex, this.pagination.dynamicBulletIndex > t.dynamicMainBullets - 1 ? this.pagination.dynamicBulletIndex =
  2539. t.dynamicMainBullets - 1 : this.pagination.dynamicBulletIndex < 0 && (this.pagination.dynamicBulletIndex =
  2540. 0)), o = i - this.pagination.dynamicBulletIndex, d = ((l = o + (Math.min(h.length, t.dynamicMainBullets) -
  2541. 1)) + o) / 2), h.removeClass(t.bulletActiveClass + " " + t.bulletActiveClass + "-next " + t.bulletActiveClass +
  2542. "-next-next " + t.bulletActiveClass + "-prev " + t.bulletActiveClass + "-prev-prev " + t.bulletActiveClass +
  2543. "-main"), r.length > 1) h.each((function(e, a) {
  2544. var r = s(a),
  2545. n = r.index();
  2546. n === i && r.addClass(t.bulletActiveClass), t.dynamicBullets && (n >= o && n <= l && r.addClass(t.bulletActiveClass +
  2547. "-main"), n === o && r.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass +
  2548. "-prev-prev"), n === l && r.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass +
  2549. "-next-next"))
  2550. }));
  2551. else {
  2552. var p = h.eq(i),
  2553. c = p.index();
  2554. if (p.addClass(t.bulletActiveClass), t.dynamicBullets) {
  2555. for (var u = h.eq(o), v = h.eq(l), f = o; f <= l; f += 1) h.eq(f).addClass(t.bulletActiveClass + "-main");
  2556. if (this.params.loop)
  2557. if (c >= h.length - t.dynamicMainBullets) {
  2558. for (var m = t.dynamicMainBullets; m >= 0; m -= 1) h.eq(h.length - m).addClass(t.bulletActiveClass +
  2559. "-main");
  2560. h.eq(h.length - t.dynamicMainBullets - 1).addClass(t.bulletActiveClass + "-prev")
  2561. } else u.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"),
  2562. v.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next");
  2563. else u.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), v
  2564. .next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next")
  2565. }
  2566. }
  2567. if (t.dynamicBullets) {
  2568. var g = Math.min(h.length, t.dynamicMainBullets + 4),
  2569. b = (this.pagination.bulletSize * g - this.pagination.bulletSize) / 2 - d * this.pagination.bulletSize,
  2570. w = e ? "right" : "left";
  2571. h.css(this.isHorizontal() ? w : "top", b + "px")
  2572. }
  2573. }
  2574. if ("fraction" === t.type && (r.find("." + t.currentClass).text(t.formatFractionCurrent(i + 1)), r.find("." + t
  2575. .totalClass).text(t.formatFractionTotal(n))), "progressbar" === t.type) {
  2576. var y;
  2577. y = t.progressbarOpposite ? this.isHorizontal() ? "vertical" : "horizontal" : this.isHorizontal() ?
  2578. "horizontal" : "vertical";
  2579. var x = (i + 1) / n,
  2580. T = 1,
  2581. E = 1;
  2582. "horizontal" === y ? T = x : E = x, r.find("." + t.progressbarFillClass).transform(
  2583. "translate3d(0,0,0) scaleX(" + T + ") scaleY(" + E + ")").transition(this.params.speed)
  2584. }
  2585. "custom" === t.type && t.renderCustom ? (r.html(t.renderCustom(this, i + 1, n)), this.emit("paginationRender",
  2586. this, r[0])) : this.emit("paginationUpdate", this, r[0]), r[this.params.watchOverflow && this.isLocked ?
  2587. "addClass" : "removeClass"](t.lockClass)
  2588. }
  2589. },
  2590. render: function() {
  2591. var e = this.params.pagination;
  2592. if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
  2593. var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length,
  2594. i = this.pagination.$el,
  2595. s = "";
  2596. if ("bullets" === e.type) {
  2597. for (var a = this.params.loop ? Math.ceil((t - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid
  2598. .length, r = 0; r < a; r += 1) e.renderBullet ? s += e.renderBullet.call(this, r, e.bulletClass) : s += "<" +
  2599. e.bulletElement + ' class="' + e.bulletClass + '"></' + e.bulletElement + ">";
  2600. i.html(s), this.pagination.bullets = i.find("." + e.bulletClass)
  2601. }
  2602. "fraction" === e.type && (s = e.renderFraction ? e.renderFraction.call(this, e.currentClass, e.totalClass) :
  2603. '<span class="' + e.currentClass + '"></span> / <span class="' + e.totalClass + '"></span>', i.html(s)),
  2604. "progressbar" === e.type && (s = e.renderProgressbar ? e.renderProgressbar.call(this, e.progressbarFillClass) :
  2605. '<span class="' + e.progressbarFillClass + '"></span>', i.html(s)), "custom" !== e.type && this.emit(
  2606. "paginationRender", this.pagination.$el[0])
  2607. }
  2608. },
  2609. init: function() {
  2610. var e = this,
  2611. t = e.params.pagination;
  2612. if (t.el) {
  2613. var i = s(t.el);
  2614. 0 !== i.length && (e.params.uniqueNavElements && "string" == typeof t.el && i.length > 1 && 1 === e.$el.find(t.el)
  2615. .length && (i = e.$el.find(t.el)), "bullets" === t.type && t.clickable && i.addClass(t.clickableClass), i.addClass(
  2616. t.modifierClass + t.type), "bullets" === t.type && t.dynamicBullets && (i.addClass("" + t.modifierClass + t.type +
  2617. "-dynamic"), e.pagination.dynamicBulletIndex = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)),
  2618. "progressbar" === t.type && t.progressbarOpposite && i.addClass(t.progressbarOppositeClass), t.clickable && i
  2619. .on("click", "." + t.bulletClass, (function(t) {
  2620. t.preventDefault();
  2621. var i = s(this).index() * e.params.slidesPerGroup;
  2622. e.params.loop && (i += e.loopedSlides), e.slideTo(i)
  2623. })), n.extend(e.pagination, {
  2624. $el: i,
  2625. el: i[0]
  2626. }))
  2627. }
  2628. },
  2629. destroy: function() {
  2630. var e = this.params.pagination;
  2631. if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) {
  2632. var t = this.pagination.$el;
  2633. t.removeClass(e.hiddenClass), t.removeClass(e.modifierClass + e.type), this.pagination.bullets && this.pagination
  2634. .bullets.removeClass(e.bulletActiveClass), e.clickable && t.off("click", "." + e.bulletClass)
  2635. }
  2636. }
  2637. },
  2638. re = {
  2639. setTranslate: function() {
  2640. if (this.params.scrollbar.el && this.scrollbar.el) {
  2641. var e = this.scrollbar,
  2642. t = this.rtlTranslate,
  2643. i = this.progress,
  2644. s = e.dragSize,
  2645. a = e.trackSize,
  2646. r = e.$dragEl,
  2647. n = e.$el,
  2648. o = this.params.scrollbar,
  2649. l = s,
  2650. d = (a - s) * i;
  2651. t ? (d = -d) > 0 ? (l = s - d, d = 0) : -d + s > a && (l = a + d) : d < 0 ? (l = s + d, d = 0) : d + s > a && (
  2652. l = a - d), this.isHorizontal() ? (r.transform("translate3d(" + d + "px, 0, 0)"), r[0].style.width = l + "px") :
  2653. (r.transform("translate3d(0px, " + d + "px, 0)"), r[0].style.height = l + "px"), o.hide && (clearTimeout(this.scrollbar
  2654. .timeout), n[0].style.opacity = 1, this.scrollbar.timeout = setTimeout((function() {
  2655. n[0].style.opacity = 0, n.transition(400)
  2656. }), 1e3))
  2657. }
  2658. },
  2659. setTransition: function(e) {
  2660. this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragEl.transition(e)
  2661. },
  2662. updateSize: function() {
  2663. if (this.params.scrollbar.el && this.scrollbar.el) {
  2664. var e = this.scrollbar,
  2665. t = e.$dragEl,
  2666. i = e.$el;
  2667. t[0].style.width = "", t[0].style.height = "";
  2668. var s, a = this.isHorizontal() ? i[0].offsetWidth : i[0].offsetHeight,
  2669. r = this.size / this.virtualSize,
  2670. o = r * (a / this.size);
  2671. s = "auto" === this.params.scrollbar.dragSize ? a * r : parseInt(this.params.scrollbar.dragSize, 10), this.isHorizontal() ?
  2672. t[0].style.width = s + "px" : t[0].style.height = s + "px", i[0].style.display = r >= 1 ? "none" : "", this.params
  2673. .scrollbar.hide && (i[0].style.opacity = 0), n.extend(e, {
  2674. trackSize: a,
  2675. divider: r,
  2676. moveDivider: o,
  2677. dragSize: s
  2678. }), e.$el[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](this.params.scrollbar.lockClass)
  2679. }
  2680. },
  2681. getPointerPosition: function(e) {
  2682. return this.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientX : e.clientX :
  2683. "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientY : e.clientY
  2684. },
  2685. setDragPosition: function(e) {
  2686. var t, i = this.scrollbar,
  2687. s = this.rtlTranslate,
  2688. a = i.$el,
  2689. r = i.dragSize,
  2690. n = i.trackSize,
  2691. o = i.dragStartPos;
  2692. t = (i.getPointerPosition(e) - a.offset()[this.isHorizontal() ? "left" : "top"] - (null !== o ? o : r / 2)) / (n -
  2693. r), t = Math.max(Math.min(t, 1), 0), s && (t = 1 - t);
  2694. var l = this.minTranslate() + (this.maxTranslate() - this.minTranslate()) * t;
  2695. this.updateProgress(l), this.setTranslate(l), this.updateActiveIndex(), this.updateSlidesClasses()
  2696. },
  2697. onDragStart: function(e) {
  2698. var t = this.params.scrollbar,
  2699. i = this.scrollbar,
  2700. s = this.$wrapperEl,
  2701. a = i.$el,
  2702. r = i.$dragEl;
  2703. this.scrollbar.isTouched = !0, this.scrollbar.dragStartPos = e.target === r[0] || e.target === r ? i.getPointerPosition(
  2704. e) - e.target.getBoundingClientRect()[this.isHorizontal() ? "left" : "top"] : null, e.preventDefault(), e.stopPropagation(),
  2705. s.transition(100), r.transition(100), i.setDragPosition(e), clearTimeout(this.scrollbar.dragTimeout), a.transition(
  2706. 0), t.hide && a.css("opacity", 1), this.params.cssMode && this.$wrapperEl.css("scroll-snap-type", "none"),
  2707. this.emit("scrollbarDragStart", e)
  2708. },
  2709. onDragMove: function(e) {
  2710. var t = this.scrollbar,
  2711. i = this.$wrapperEl,
  2712. s = t.$el,
  2713. a = t.$dragEl;
  2714. this.scrollbar.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, t.setDragPosition(e), i
  2715. .transition(0), s.transition(0), a.transition(0), this.emit("scrollbarDragMove", e))
  2716. },
  2717. onDragEnd: function(e) {
  2718. var t = this.params.scrollbar,
  2719. i = this.scrollbar,
  2720. s = this.$wrapperEl,
  2721. a = i.$el;
  2722. this.scrollbar.isTouched && (this.scrollbar.isTouched = !1, this.params.cssMode && (this.$wrapperEl.css(
  2723. "scroll-snap-type", ""), s.transition("")), t.hide && (clearTimeout(this.scrollbar.dragTimeout), this.scrollbar
  2724. .dragTimeout = n.nextTick((function() {
  2725. a.css("opacity", 0), a.transition(400)
  2726. }), 1e3)), this.emit("scrollbarDragEnd", e), t.snapOnRelease && this.slideToClosest())
  2727. },
  2728. enableDraggable: function() {
  2729. if (this.params.scrollbar.el) {
  2730. var t = this.scrollbar,
  2731. i = this.touchEventsTouch,
  2732. s = this.touchEventsDesktop,
  2733. a = this.params,
  2734. r = t.$el[0],
  2735. n = !(!o.passiveListener || !a.passiveListeners) && {
  2736. passive: !1,
  2737. capture: !1
  2738. },
  2739. l = !(!o.passiveListener || !a.passiveListeners) && {
  2740. passive: !0,
  2741. capture: !1
  2742. };
  2743. o.touch ? (r.addEventListener(i.start, this.scrollbar.onDragStart, n), r.addEventListener(i.move, this.scrollbar
  2744. .onDragMove, n), r.addEventListener(i.end, this.scrollbar.onDragEnd, l)) : (r.addEventListener(s.start, this.scrollbar
  2745. .onDragStart, n), e.addEventListener(s.move, this.scrollbar.onDragMove, n), e.addEventListener(s.end, this.scrollbar
  2746. .onDragEnd, l))
  2747. }
  2748. },
  2749. disableDraggable: function() {
  2750. if (this.params.scrollbar.el) {
  2751. var t = this.scrollbar,
  2752. i = this.touchEventsTouch,
  2753. s = this.touchEventsDesktop,
  2754. a = this.params,
  2755. r = t.$el[0],
  2756. n = !(!o.passiveListener || !a.passiveListeners) && {
  2757. passive: !1,
  2758. capture: !1
  2759. },
  2760. l = !(!o.passiveListener || !a.passiveListeners) && {
  2761. passive: !0,
  2762. capture: !1
  2763. };
  2764. o.touch ? (r.removeEventListener(i.start, this.scrollbar.onDragStart, n), r.removeEventListener(i.move, this.scrollbar
  2765. .onDragMove, n), r.removeEventListener(i.end, this.scrollbar.onDragEnd, l)) : (r.removeEventListener(s.start,
  2766. this.scrollbar.onDragStart, n), e.removeEventListener(s.move, this.scrollbar.onDragMove, n), e.removeEventListener(
  2767. s.end, this.scrollbar.onDragEnd, l))
  2768. }
  2769. },
  2770. init: function() {
  2771. if (this.params.scrollbar.el) {
  2772. var e = this.scrollbar,
  2773. t = this.$el,
  2774. i = this.params.scrollbar,
  2775. a = s(i.el);
  2776. this.params.uniqueNavElements && "string" == typeof i.el && a.length > 1 && 1 === t.find(i.el).length && (a = t
  2777. .find(i.el));
  2778. var r = a.find("." + this.params.scrollbar.dragClass);
  2779. 0 === r.length && (r = s('<div class="' + this.params.scrollbar.dragClass + '"></div>'), a.append(r)), n.extend(
  2780. e, {
  2781. $el: a,
  2782. el: a[0],
  2783. $dragEl: r,
  2784. dragEl: r[0]
  2785. }), i.draggable && e.enableDraggable()
  2786. }
  2787. },
  2788. destroy: function() {
  2789. this.scrollbar.disableDraggable()
  2790. }
  2791. },
  2792. ne = {
  2793. setTransform: function(e, t) {
  2794. var i = this.rtl,
  2795. a = s(e),
  2796. r = i ? -1 : 1,
  2797. n = a.attr("data-swiper-parallax") || "0",
  2798. o = a.attr("data-swiper-parallax-x"),
  2799. l = a.attr("data-swiper-parallax-y"),
  2800. d = a.attr("data-swiper-parallax-scale"),
  2801. h = a.attr("data-swiper-parallax-opacity");
  2802. if (o || l ? (o = o || "0", l = l || "0") : this.isHorizontal() ? (o = n, l = "0") : (l = n, o = "0"), o = o.indexOf(
  2803. "%") >= 0 ? parseInt(o, 10) * t * r + "%" : o * t * r + "px", l = l.indexOf("%") >= 0 ? parseInt(l, 10) * t +
  2804. "%" : l * t + "px", null != h) {
  2805. var p = h - (h - 1) * (1 - Math.abs(t));
  2806. a[0].style.opacity = p
  2807. }
  2808. if (null == d) a.transform("translate3d(" + o + ", " + l + ", 0px)");
  2809. else {
  2810. var c = d - (d - 1) * (1 - Math.abs(t));
  2811. a.transform("translate3d(" + o + ", " + l + ", 0px) scale(" + c + ")")
  2812. }
  2813. },
  2814. setTranslate: function() {
  2815. var e = this,
  2816. t = e.$el,
  2817. i = e.slides,
  2818. a = e.progress,
  2819. r = e.snapGrid;
  2820. t.children(
  2821. "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]"
  2822. ).each((function(t, i) {
  2823. e.parallax.setTransform(i, a)
  2824. })), i.each((function(t, i) {
  2825. var n = i.progress;
  2826. e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (n += Math.ceil(t / 2) - a * (r.length -
  2827. 1)), n = Math.min(Math.max(n, -1), 1), s(i).find(
  2828. "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]"
  2829. ).each((function(t, i) {
  2830. e.parallax.setTransform(i, n)
  2831. }))
  2832. }))
  2833. },
  2834. setTransition: function(e) {
  2835. void 0 === e && (e = this.params.speed);
  2836. this.$el.find(
  2837. "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]"
  2838. ).each((function(t, i) {
  2839. var a = s(i),
  2840. r = parseInt(a.attr("data-swiper-parallax-duration"), 10) || e;
  2841. 0 === e && (r = 0), a.transition(r)
  2842. }))
  2843. }
  2844. },
  2845. oe = {
  2846. getDistanceBetweenTouches: function(e) {
  2847. if (e.targetTouches.length < 2) return 1;
  2848. var t = e.targetTouches[0].pageX,
  2849. i = e.targetTouches[0].pageY,
  2850. s = e.targetTouches[1].pageX,
  2851. a = e.targetTouches[1].pageY;
  2852. return Math.sqrt(Math.pow(s - t, 2) + Math.pow(a - i, 2))
  2853. },
  2854. onGestureStart: function(e) {
  2855. var t = this.params.zoom,
  2856. i = this.zoom,
  2857. a = i.gesture;
  2858. if (i.fakeGestureTouched = !1, i.fakeGestureMoved = !1, !o.gestures) {
  2859. if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2) return;
  2860. i.fakeGestureTouched = !0, a.scaleStart = oe.getDistanceBetweenTouches(e)
  2861. }
  2862. a.$slideEl && a.$slideEl.length || (a.$slideEl = s(e.target).closest(".swiper-slide"), 0 === a.$slideEl.length &&
  2863. (a.$slideEl = this.slides.eq(this.activeIndex)), a.$imageEl = a.$slideEl.find("img, svg, canvas"), a.$imageWrapEl =
  2864. a.$imageEl.parent("." + t.containerClass), a.maxRatio = a.$imageWrapEl.attr("data-swiper-zoom") || t.maxRatio,
  2865. 0 !== a.$imageWrapEl.length) ? (a.$imageEl.transition(0), this.zoom.isScaling = !0) : a.$imageEl = void 0
  2866. },
  2867. onGestureChange: function(e) {
  2868. var t = this.params.zoom,
  2869. i = this.zoom,
  2870. s = i.gesture;
  2871. if (!o.gestures) {
  2872. if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return;
  2873. i.fakeGestureMoved = !0, s.scaleMove = oe.getDistanceBetweenTouches(e)
  2874. }
  2875. s.$imageEl && 0 !== s.$imageEl.length && (o.gestures ? i.scale = e.scale * i.currentScale : i.scale = s.scaleMove /
  2876. s.scaleStart * i.currentScale, i.scale > s.maxRatio && (i.scale = s.maxRatio - 1 + Math.pow(i.scale - s.maxRatio +
  2877. 1, .5)), i.scale < t.minRatio && (i.scale = t.minRatio + 1 - Math.pow(t.minRatio - i.scale + 1, .5)), s.$imageEl
  2878. .transform("translate3d(0,0,0) scale(" + i.scale + ")"))
  2879. },
  2880. onGestureEnd: function(e) {
  2881. var t = this.params.zoom,
  2882. i = this.zoom,
  2883. s = i.gesture;
  2884. if (!o.gestures) {
  2885. if (!i.fakeGestureTouched || !i.fakeGestureMoved) return;
  2886. if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !I.android) return;
  2887. i.fakeGestureTouched = !1, i.fakeGestureMoved = !1
  2888. }
  2889. s.$imageEl && 0 !== s.$imageEl.length && (i.scale = Math.max(Math.min(i.scale, s.maxRatio), t.minRatio), s.$imageEl
  2890. .transition(this.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"), i.currentScale = i.scale,
  2891. i.isScaling = !1, 1 === i.scale && (s.$slideEl = void 0))
  2892. },
  2893. onTouchStart: function(e) {
  2894. var t = this.zoom,
  2895. i = t.gesture,
  2896. s = t.image;
  2897. i.$imageEl && 0 !== i.$imageEl.length && (s.isTouched || (I.android && e.preventDefault(), s.isTouched = !0, s.touchesStart
  2898. .x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, s.touchesStart.y = "touchstart" === e.type ?
  2899. e.targetTouches[0].pageY : e.pageY))
  2900. },
  2901. onTouchMove: function(e) {
  2902. var t = this.zoom,
  2903. i = t.gesture,
  2904. s = t.image,
  2905. a = t.velocity;
  2906. if (i.$imageEl && 0 !== i.$imageEl.length && (this.allowClick = !1, s.isTouched && i.$slideEl)) {
  2907. s.isMoved || (s.width = i.$imageEl[0].offsetWidth, s.height = i.$imageEl[0].offsetHeight, s.startX = n.getTranslate(
  2908. i.$imageWrapEl[0], "x") || 0, s.startY = n.getTranslate(i.$imageWrapEl[0], "y") || 0, i.slideWidth = i.$slideEl[
  2909. 0].offsetWidth, i.slideHeight = i.$slideEl[0].offsetHeight, i.$imageWrapEl.transition(0), this.rtl && (s.startX = -
  2910. s.startX, s.startY = -s.startY));
  2911. var r = s.width * t.scale,
  2912. o = s.height * t.scale;
  2913. if (!(r < i.slideWidth && o < i.slideHeight)) {
  2914. if (s.minX = Math.min(i.slideWidth / 2 - r / 2, 0), s.maxX = -s.minX, s.minY = Math.min(i.slideHeight / 2 - o /
  2915. 2, 0), s.maxY = -s.minY, s.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, s
  2916. .touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !s.isMoved && !t.isScaling) {
  2917. if (this.isHorizontal() && (Math.floor(s.minX) === Math.floor(s.startX) && s.touchesCurrent.x < s.touchesStart
  2918. .x || Math.floor(s.maxX) === Math.floor(s.startX) && s.touchesCurrent.x > s.touchesStart.x)) return void(s.isTouched = !
  2919. 1);
  2920. if (!this.isHorizontal() && (Math.floor(s.minY) === Math.floor(s.startY) && s.touchesCurrent.y < s.touchesStart
  2921. .y || Math.floor(s.maxY) === Math.floor(s.startY) && s.touchesCurrent.y > s.touchesStart.y)) return void(s.isTouched = !
  2922. 1)
  2923. }
  2924. e.preventDefault(), e.stopPropagation(), s.isMoved = !0, s.currentX = s.touchesCurrent.x - s.touchesStart.x +
  2925. s.startX, s.currentY = s.touchesCurrent.y - s.touchesStart.y + s.startY, s.currentX < s.minX && (s.currentX =
  2926. s.minX + 1 - Math.pow(s.minX - s.currentX + 1, .8)), s.currentX > s.maxX && (s.currentX = s.maxX - 1 + Math.pow(
  2927. s.currentX - s.maxX + 1, .8)), s.currentY < s.minY && (s.currentY = s.minY + 1 - Math.pow(s.minY - s.currentY +
  2928. 1, .8)), s.currentY > s.maxY && (s.currentY = s.maxY - 1 + Math.pow(s.currentY - s.maxY + 1, .8)), a.prevPositionX ||
  2929. (a.prevPositionX = s.touchesCurrent.x), a.prevPositionY || (a.prevPositionY = s.touchesCurrent.y), a.prevTime ||
  2930. (a.prevTime = Date.now()), a.x = (s.touchesCurrent.x - a.prevPositionX) / (Date.now() - a.prevTime) / 2, a.y =
  2931. (s.touchesCurrent.y - a.prevPositionY) / (Date.now() - a.prevTime) / 2, Math.abs(s.touchesCurrent.x - a.prevPositionX) <
  2932. 2 && (a.x = 0), Math.abs(s.touchesCurrent.y - a.prevPositionY) < 2 && (a.y = 0), a.prevPositionX = s.touchesCurrent
  2933. .x, a.prevPositionY = s.touchesCurrent.y, a.prevTime = Date.now(), i.$imageWrapEl.transform("translate3d(" +
  2934. s.currentX + "px, " + s.currentY + "px,0)")
  2935. }
  2936. }
  2937. },
  2938. onTouchEnd: function() {
  2939. var e = this.zoom,
  2940. t = e.gesture,
  2941. i = e.image,
  2942. s = e.velocity;
  2943. if (t.$imageEl && 0 !== t.$imageEl.length) {
  2944. if (!i.isTouched || !i.isMoved) return i.isTouched = !1, void(i.isMoved = !1);
  2945. i.isTouched = !1, i.isMoved = !1;
  2946. var a = 300,
  2947. r = 300,
  2948. n = s.x * a,
  2949. o = i.currentX + n,
  2950. l = s.y * r,
  2951. d = i.currentY + l;
  2952. 0 !== s.x && (a = Math.abs((o - i.currentX) / s.x)), 0 !== s.y && (r = Math.abs((d - i.currentY) / s.y));
  2953. var h = Math.max(a, r);
  2954. i.currentX = o, i.currentY = d;
  2955. var p = i.width * e.scale,
  2956. c = i.height * e.scale;
  2957. i.minX = Math.min(t.slideWidth / 2 - p / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - c / 2,
  2958. 0), i.maxY = -i.minY, i.currentX = Math.max(Math.min(i.currentX, i.maxX), i.minX), i.currentY = Math.max(Math
  2959. .min(i.currentY, i.maxY), i.minY), t.$imageWrapEl.transition(h).transform("translate3d(" + i.currentX +
  2960. "px, " + i.currentY + "px,0)")
  2961. }
  2962. },
  2963. onTransitionEnd: function() {
  2964. var e = this.zoom,
  2965. t = e.gesture;
  2966. t.$slideEl && this.previousIndex !== this.activeIndex && (t.$imageEl.transform("translate3d(0,0,0) scale(1)"), t
  2967. .$imageWrapEl.transform("translate3d(0,0,0)"), e.scale = 1, e.currentScale = 1, t.$slideEl = void 0, t.$imageEl =
  2968. void 0, t.$imageWrapEl = void 0)
  2969. },
  2970. toggle: function(e) {
  2971. var t = this.zoom;
  2972. t.scale && 1 !== t.scale ? t.out() : t.in(e)
  2973. },
  2974. in: function(e) {
  2975. var t, i, a, r, n, o, l, d, h, p, c, u, v, f, m, g, b = this.zoom,
  2976. w = this.params.zoom,
  2977. y = b.gesture,
  2978. x = b.image;
  2979. (y.$slideEl || (y.$slideEl = this.clickedSlide ? s(this.clickedSlide) : this.slides.eq(this.activeIndex), y.$imageEl =
  2980. y.$slideEl.find("img, svg, canvas"), y.$imageWrapEl = y.$imageEl.parent("." + w.containerClass)), y.$imageEl &&
  2981. 0 !== y.$imageEl.length) && (y.$slideEl.addClass("" + w.zoomedSlideClass), void 0 === x.touchesStart.x && e ? (
  2982. t = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX, i = "touchend" === e.type ? e.changedTouches[
  2983. 0].pageY : e.pageY) : (t = x.touchesStart.x, i = x.touchesStart.y), b.scale = y.$imageWrapEl.attr(
  2984. "data-swiper-zoom") || w.maxRatio, b.currentScale = y.$imageWrapEl.attr("data-swiper-zoom") || w.maxRatio, e ?
  2985. (m = y.$slideEl[0].offsetWidth, g = y.$slideEl[0].offsetHeight, a = y.$slideEl.offset().left + m / 2 - t, r = y
  2986. .$slideEl.offset().top + g / 2 - i, l = y.$imageEl[0].offsetWidth, d = y.$imageEl[0].offsetHeight, h = l * b.scale,
  2987. p = d * b.scale, v = -(c = Math.min(m / 2 - h / 2, 0)), f = -(u = Math.min(g / 2 - p / 2, 0)), (n = a * b.scale) <
  2988. c && (n = c), n > v && (n = v), (o = r * b.scale) < u && (o = u), o > f && (o = f)) : (n = 0, o = 0), y.$imageWrapEl
  2989. .transition(300).transform("translate3d(" + n + "px, " + o + "px,0)"), y.$imageEl.transition(300).transform(
  2990. "translate3d(0,0,0) scale(" + b.scale + ")"))
  2991. },
  2992. out: function() {
  2993. var e = this.zoom,
  2994. t = this.params.zoom,
  2995. i = e.gesture;
  2996. i.$slideEl || (i.$slideEl = this.clickedSlide ? s(this.clickedSlide) : this.slides.eq(this.activeIndex), i.$imageEl =
  2997. i.$slideEl.find("img, svg, canvas"), i.$imageWrapEl = i.$imageEl.parent("." + t.containerClass)), i.$imageEl &&
  2998. 0 !== i.$imageEl.length && (e.scale = 1, e.currentScale = 1, i.$imageWrapEl.transition(300).transform(
  2999. "translate3d(0,0,0)"), i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), i.$slideEl.removeClass(
  3000. "" + t.zoomedSlideClass), i.$slideEl = void 0)
  3001. },
  3002. enable: function() {
  3003. var e = this.zoom;
  3004. if (!e.enabled) {
  3005. e.enabled = !0;
  3006. var t = !("touchstart" !== this.touchEvents.start || !o.passiveListener || !this.params.passiveListeners) && {
  3007. passive: !0,
  3008. capture: !1
  3009. },
  3010. i = !o.passiveListener || {
  3011. passive: !1,
  3012. capture: !0
  3013. };
  3014. o.gestures ? (this.$wrapperEl.on("gesturestart", ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.on(
  3015. "gesturechange", ".swiper-slide", e.onGestureChange, t), this.$wrapperEl.on("gestureend", ".swiper-slide", e
  3016. .onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.on(this.touchEvents.start,
  3017. ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.on(this.touchEvents.move, ".swiper-slide", e.onGestureChange,
  3018. i), this.$wrapperEl.on(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t), this.touchEvents.cancel &&
  3019. this.$wrapperEl.on(this.touchEvents.cancel, ".swiper-slide", e.onGestureEnd, t)), this.$wrapperEl.on(this.touchEvents
  3020. .move, "." + this.params.zoom.containerClass, e.onTouchMove, i)
  3021. }
  3022. },
  3023. disable: function() {
  3024. var e = this.zoom;
  3025. if (e.enabled) {
  3026. this.zoom.enabled = !1;
  3027. var t = !("touchstart" !== this.touchEvents.start || !o.passiveListener || !this.params.passiveListeners) && {
  3028. passive: !0,
  3029. capture: !1
  3030. },
  3031. i = !o.passiveListener || {
  3032. passive: !1,
  3033. capture: !0
  3034. };
  3035. o.gestures ? (this.$wrapperEl.off("gesturestart", ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.off(
  3036. "gesturechange", ".swiper-slide", e.onGestureChange, t), this.$wrapperEl.off("gestureend", ".swiper-slide",
  3037. e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.off(this.touchEvents.start,
  3038. ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.off(this.touchEvents.move, ".swiper-slide", e.onGestureChange,
  3039. i), this.$wrapperEl.off(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t), this.touchEvents.cancel &&
  3040. this.$wrapperEl.off(this.touchEvents.cancel, ".swiper-slide", e.onGestureEnd, t)), this.$wrapperEl.off(this.touchEvents
  3041. .move, "." + this.params.zoom.containerClass, e.onTouchMove, i)
  3042. }
  3043. }
  3044. },
  3045. le = {
  3046. loadInSlide: function(e, t) {
  3047. void 0 === t && (t = !0);
  3048. var i = this,
  3049. a = i.params.lazy;
  3050. if (void 0 !== e && 0 !== i.slides.length) {
  3051. var r = i.virtual && i.params.virtual.enabled ? i.$wrapperEl.children("." + i.params.slideClass +
  3052. '[data-swiper-slide-index="' + e + '"]') : i.slides.eq(e),
  3053. n = r.find("." + a.elementClass + ":not(." + a.loadedClass + "):not(." + a.loadingClass + ")");
  3054. !r.hasClass(a.elementClass) || r.hasClass(a.loadedClass) || r.hasClass(a.loadingClass) || (n = n.add(r[0])), 0 !==
  3055. n.length && n.each((function(e, n) {
  3056. var o = s(n);
  3057. o.addClass(a.loadingClass);
  3058. var l = o.attr("data-background"),
  3059. d = o.attr("data-src"),
  3060. h = o.attr("data-srcset"),
  3061. p = o.attr("data-sizes");
  3062. i.loadImage(o[0], d || l, h, p, !1, (function() {
  3063. if (null != i && i && (!i || i.params) && !i.destroyed) {
  3064. if (l ? (o.css("background-image", 'url("' + l + '")'), o.removeAttr("data-background")) : (h && (o.attr(
  3065. "srcset", h), o.removeAttr("data-srcset")), p && (o.attr("sizes", p), o.removeAttr("data-sizes")),
  3066. d && (o.attr("src", d), o.removeAttr("data-src"))), o.addClass(a.loadedClass).removeClass(a.loadingClass),
  3067. r.find("." + a.preloaderClass).remove(), i.params.loop && t) {
  3068. var e = r.attr("data-swiper-slide-index");
  3069. if (r.hasClass(i.params.slideDuplicateClass)) {
  3070. var s = i.$wrapperEl.children('[data-swiper-slide-index="' + e + '"]:not(.' + i.params.slideDuplicateClass +
  3071. ")");
  3072. i.lazy.loadInSlide(s.index(), !1)
  3073. } else {
  3074. var n = i.$wrapperEl.children("." + i.params.slideDuplicateClass + '[data-swiper-slide-index="' + e +
  3075. '"]');
  3076. i.lazy.loadInSlide(n.index(), !1)
  3077. }
  3078. }
  3079. i.emit("lazyImageReady", r[0], o[0])
  3080. }
  3081. })), i.emit("lazyImageLoad", r[0], o[0])
  3082. }))
  3083. }
  3084. },
  3085. load: function() {
  3086. var e = this,
  3087. t = e.$wrapperEl,
  3088. i = e.params,
  3089. a = e.slides,
  3090. r = e.activeIndex,
  3091. n = e.virtual && i.virtual.enabled,
  3092. o = i.lazy,
  3093. l = i.slidesPerView;
  3094. function d(e) {
  3095. if (n) {
  3096. if (t.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]').length) return !0
  3097. } else if (a[e]) return !0;
  3098. return !1
  3099. }
  3100. function h(e) {
  3101. return n ? s(e).attr("data-swiper-slide-index") : s(e).index()
  3102. }
  3103. if ("auto" === l && (l = 0), e.lazy.initialImageLoaded || (e.lazy.initialImageLoaded = !0), e.params.watchSlidesVisibility)
  3104. t.children("." + i.slideVisibleClass).each((function(t, i) {
  3105. var a = n ? s(i).attr("data-swiper-slide-index") : s(i).index();
  3106. e.lazy.loadInSlide(a)
  3107. }));
  3108. else if (l > 1)
  3109. for (var p = r; p < r + l; p += 1) d(p) && e.lazy.loadInSlide(p);
  3110. else e.lazy.loadInSlide(r);
  3111. if (o.loadPrevNext)
  3112. if (l > 1 || o.loadPrevNextAmount && o.loadPrevNextAmount > 1) {
  3113. for (var c = o.loadPrevNextAmount, u = l, v = Math.min(r + u + Math.max(c, u), a.length), f = Math.max(r -
  3114. Math.max(u, c), 0), m = r + l; m < v; m += 1) d(m) && e.lazy.loadInSlide(m);
  3115. for (var g = f; g < r; g += 1) d(g) && e.lazy.loadInSlide(g)
  3116. } else {
  3117. var b = t.children("." + i.slideNextClass);
  3118. b.length > 0 && e.lazy.loadInSlide(h(b));
  3119. var w = t.children("." + i.slidePrevClass);
  3120. w.length > 0 && e.lazy.loadInSlide(h(w))
  3121. }
  3122. }
  3123. },
  3124. de = {
  3125. LinearSpline: function(e, t) {
  3126. var i, s, a, r, n, o = function(e, t) {
  3127. for (s = -1, i = e.length; i - s > 1;) e[a = i + s >> 1] <= t ? s = a : i = a;
  3128. return i
  3129. };
  3130. return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function(e) {
  3131. return e ? (n = o(this.x, e), r = n - 1, (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) +
  3132. this.y[r]) : 0
  3133. }, this
  3134. },
  3135. getInterpolateFunction: function(e) {
  3136. this.controller.spline || (this.controller.spline = this.params.loop ? new de.LinearSpline(this.slidesGrid, e.slidesGrid) :
  3137. new de.LinearSpline(this.snapGrid, e.snapGrid))
  3138. },
  3139. setTranslate: function(e, t) {
  3140. var i, s, a = this,
  3141. r = a.controller.control;
  3142. function n(e) {
  3143. var t = a.rtlTranslate ? -a.translate : a.translate;
  3144. "slide" === a.params.controller.by && (a.controller.getInterpolateFunction(e), s = -a.controller.spline.interpolate(
  3145. -t)), s && "container" !== a.params.controller.by || (i = (e.maxTranslate() - e.minTranslate()) / (a.maxTranslate() -
  3146. a.minTranslate()), s = (t - a.minTranslate()) * i + e.minTranslate()), a.params.controller.inverse && (s = e.maxTranslate() -
  3147. s), e.updateProgress(s), e.setTranslate(s, a), e.updateActiveIndex(), e.updateSlidesClasses()
  3148. }
  3149. if (Array.isArray(r))
  3150. for (var o = 0; o < r.length; o += 1) r[o] !== t && r[o] instanceof W && n(r[o]);
  3151. else r instanceof W && t !== r && n(r)
  3152. },
  3153. setTransition: function(e, t) {
  3154. var i, s = this,
  3155. a = s.controller.control;
  3156. function r(t) {
  3157. t.setTransition(e, s), 0 !== e && (t.transitionStart(), t.params.autoHeight && n.nextTick((function() {
  3158. t.updateAutoHeight()
  3159. })), t.$wrapperEl.transitionEnd((function() {
  3160. a && (t.params.loop && "slide" === s.params.controller.by && t.loopFix(), t.transitionEnd())
  3161. })))
  3162. }
  3163. if (Array.isArray(a))
  3164. for (i = 0; i < a.length; i += 1) a[i] !== t && a[i] instanceof W && r(a[i]);
  3165. else a instanceof W && t !== a && r(a)
  3166. }
  3167. },
  3168. he = {
  3169. makeElFocusable: function(e) {
  3170. return e.attr("tabIndex", "0"), e
  3171. },
  3172. addElRole: function(e, t) {
  3173. return e.attr("role", t), e
  3174. },
  3175. addElLabel: function(e, t) {
  3176. return e.attr("aria-label", t), e
  3177. },
  3178. disableEl: function(e) {
  3179. return e.attr("aria-disabled", !0), e
  3180. },
  3181. enableEl: function(e) {
  3182. return e.attr("aria-disabled", !1), e
  3183. },
  3184. onEnterKey: function(e) {
  3185. var t = this.params.a11y;
  3186. if (13 === e.keyCode) {
  3187. var i = s(e.target);
  3188. this.navigation && this.navigation.$nextEl && i.is(this.navigation.$nextEl) && (this.isEnd && !this.params.loop ||
  3189. this.slideNext(), this.isEnd ? this.a11y.notify(t.lastSlideMessage) : this.a11y.notify(t.nextSlideMessage)),
  3190. this.navigation && this.navigation.$prevEl && i.is(this.navigation.$prevEl) && (this.isBeginning && !this.params
  3191. .loop || this.slidePrev(), this.isBeginning ? this.a11y.notify(t.firstSlideMessage) : this.a11y.notify(t.prevSlideMessage)
  3192. ), this.pagination && i.is("." + this.params.pagination.bulletClass) && i[0].click()
  3193. }
  3194. },
  3195. notify: function(e) {
  3196. var t = this.a11y.liveRegion;
  3197. 0 !== t.length && (t.html(""), t.html(e))
  3198. },
  3199. updateNavigation: function() {
  3200. if (!this.params.loop) {
  3201. var e = this.navigation,
  3202. t = e.$nextEl,
  3203. i = e.$prevEl;
  3204. i && i.length > 0 && (this.isBeginning ? this.a11y.disableEl(i) : this.a11y.enableEl(i)), t && t.length > 0 &&
  3205. (this.isEnd ? this.a11y.disableEl(t) : this.a11y.enableEl(t))
  3206. }
  3207. },
  3208. updatePagination: function() {
  3209. var e = this,
  3210. t = e.params.a11y;
  3211. e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination
  3212. .bullets.each((function(i, a) {
  3213. var r = s(a);
  3214. e.a11y.makeElFocusable(r), e.a11y.addElRole(r, "button"), e.a11y.addElLabel(r, t.paginationBulletMessage.replace(
  3215. /{{index}}/, r.index() + 1))
  3216. }))
  3217. },
  3218. init: function() {
  3219. this.$el.append(this.a11y.liveRegion);
  3220. var e, t, i = this.params.a11y;
  3221. this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl &&
  3222. (t = this.navigation.$prevEl), e && (this.a11y.makeElFocusable(e), this.a11y.addElRole(e, "button"), this.a11y.addElLabel(
  3223. e, i.nextSlideMessage), e.on("keydown", this.a11y.onEnterKey)), t && (this.a11y.makeElFocusable(t), this.a11y.addElRole(
  3224. t, "button"), this.a11y.addElLabel(t, i.prevSlideMessage), t.on("keydown", this.a11y.onEnterKey)), this.pagination &&
  3225. this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination
  3226. .$el.on("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey)
  3227. },
  3228. destroy: function() {
  3229. var e, t;
  3230. this.a11y.liveRegion && this.a11y.liveRegion.length > 0 && this.a11y.liveRegion.remove(), this.navigation &&
  3231. this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t =
  3232. this.navigation.$prevEl), e && e.off("keydown", this.a11y.onEnterKey), t && t.off("keydown", this.a11y.onEnterKey),
  3233. this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length &&
  3234. this.pagination.$el.off("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey)
  3235. }
  3236. },
  3237. pe = {
  3238. init: function() {
  3239. if (this.params.history) {
  3240. if (!t.history || !t.history.pushState) return this.params.history.enabled = !1, void(this.params.hashNavigation
  3241. .enabled = !0);
  3242. var e = this.history;
  3243. e.initialized = !0, e.paths = pe.getPathValues(), (e.paths.key || e.paths.value) && (e.scrollToSlide(0, e.paths
  3244. .value, this.params.runCallbacksOnInit), this.params.history.replaceState || t.addEventListener("popstate",
  3245. this.history.setHistoryPopState))
  3246. }
  3247. },
  3248. destroy: function() {
  3249. this.params.history.replaceState || t.removeEventListener("popstate", this.history.setHistoryPopState)
  3250. },
  3251. setHistoryPopState: function() {
  3252. this.history.paths = pe.getPathValues(), this.history.scrollToSlide(this.params.speed, this.history.paths.value,
  3253. !1)
  3254. },
  3255. getPathValues: function() {
  3256. var e = t.location.pathname.slice(1).split("/").filter((function(e) {
  3257. return "" !== e
  3258. })),
  3259. i = e.length;
  3260. return {
  3261. key: e[i - 2],
  3262. value: e[i - 1]
  3263. }
  3264. },
  3265. setHistory: function(e, i) {
  3266. if (this.history.initialized && this.params.history.enabled) {
  3267. var s = this.slides.eq(i),
  3268. a = pe.slugify(s.attr("data-history"));
  3269. t.location.pathname.includes(e) || (a = e + "/" + a);
  3270. var r = t.history.state;
  3271. r && r.value === a || (this.params.history.replaceState ? t.history.replaceState({
  3272. value: a
  3273. }, null, a) : t.history.pushState({
  3274. value: a
  3275. }, null, a))
  3276. }
  3277. },
  3278. slugify: function(e) {
  3279. return e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(
  3280. /-+$/, "")
  3281. },
  3282. scrollToSlide: function(e, t, i) {
  3283. if (t)
  3284. for (var s = 0, a = this.slides.length; s < a; s += 1) {
  3285. var r = this.slides.eq(s);
  3286. if (pe.slugify(r.attr("data-history")) === t && !r.hasClass(this.params.slideDuplicateClass)) {
  3287. var n = r.index();
  3288. this.slideTo(n, e, i)
  3289. }
  3290. } else this.slideTo(0, e, i)
  3291. }
  3292. },
  3293. ce = {
  3294. onHashCange: function() {
  3295. var t = e.location.hash.replace("#", "");
  3296. if (t !== this.slides.eq(this.activeIndex).attr("data-hash")) {
  3297. var i = this.$wrapperEl.children("." + this.params.slideClass + '[data-hash="' + t + '"]').index();
  3298. if (void 0 === i) return;
  3299. this.slideTo(i)
  3300. }
  3301. },
  3302. setHash: function() {
  3303. if (this.hashNavigation.initialized && this.params.hashNavigation.enabled)
  3304. if (this.params.hashNavigation.replaceState && t.history && t.history.replaceState) t.history.replaceState(null,
  3305. null, "#" + this.slides.eq(this.activeIndex).attr("data-hash") || "");
  3306. else {
  3307. var i = this.slides.eq(this.activeIndex),
  3308. s = i.attr("data-hash") || i.attr("data-history");
  3309. e.location.hash = s || ""
  3310. }
  3311. },
  3312. init: function() {
  3313. if (!(!this.params.hashNavigation.enabled || this.params.history && this.params.history.enabled)) {
  3314. this.hashNavigation.initialized = !0;
  3315. var i = e.location.hash.replace("#", "");
  3316. if (i)
  3317. for (var a = 0, r = this.slides.length; a < r; a += 1) {
  3318. var n = this.slides.eq(a);
  3319. if ((n.attr("data-hash") || n.attr("data-history")) === i && !n.hasClass(this.params.slideDuplicateClass)) {
  3320. var o = n.index();
  3321. this.slideTo(o, 0, this.params.runCallbacksOnInit, !0)
  3322. }
  3323. }
  3324. this.params.hashNavigation.watchState && s(t).on("hashchange", this.hashNavigation.onHashCange)
  3325. }
  3326. },
  3327. destroy: function() {
  3328. this.params.hashNavigation.watchState && s(t).off("hashchange", this.hashNavigation.onHashCange)
  3329. }
  3330. },
  3331. ue = {
  3332. run: function() {
  3333. var e = this,
  3334. t = e.slides.eq(e.activeIndex),
  3335. i = e.params.autoplay.delay;
  3336. t.attr("data-swiper-autoplay") && (i = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), clearTimeout(
  3337. e.autoplay.timeout), e.autoplay.timeout = n.nextTick((function() {
  3338. e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(), e.slidePrev(e.params.speed, !0, !0), e.emit(
  3339. "autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(e.slides
  3340. .length - 1, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slidePrev(e.params.speed, !0, !0), e.emit(
  3341. "autoplay")) : e.params.loop ? (e.loopFix(), e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isEnd ?
  3342. e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(0, e.params.speed, !0, !0), e.emit(
  3343. "autoplay")) : (e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")), e.params.cssMode && e.autoplay.running &&
  3344. e.autoplay.run()
  3345. }), i)
  3346. },
  3347. start: function() {
  3348. return void 0 === this.autoplay.timeout && (!this.autoplay.running && (this.autoplay.running = !0, this.emit(
  3349. "autoplayStart"), this.autoplay.run(), !0))
  3350. },
  3351. stop: function() {
  3352. return !!this.autoplay.running && (void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (clearTimeout(
  3353. this.autoplay.timeout), this.autoplay.timeout = void 0), this.autoplay.running = !1, this.emit(
  3354. "autoplayStop"), !0))
  3355. },
  3356. pause: function(e) {
  3357. this.autoplay.running && (this.autoplay.paused || (this.autoplay.timeout && clearTimeout(this.autoplay.timeout),
  3358. this.autoplay.paused = !0, 0 !== e && this.params.autoplay.waitForTransition ? (this.$wrapperEl[0].addEventListener(
  3359. "transitionend", this.autoplay.onTransitionEnd), this.$wrapperEl[0].addEventListener("webkitTransitionEnd",
  3360. this.autoplay.onTransitionEnd)) : (this.autoplay.paused = !1, this.autoplay.run())))
  3361. }
  3362. },
  3363. ve = {
  3364. setTranslate: function() {
  3365. for (var e = this.slides, t = 0; t < e.length; t += 1) {
  3366. var i = this.slides.eq(t),
  3367. s = -i[0].swiperSlideOffset;
  3368. this.params.virtualTranslate || (s -= this.translate);
  3369. var a = 0;
  3370. this.isHorizontal() || (a = s, s = 0);
  3371. var r = this.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(i[0].progress), 0) : 1 + Math.min(Math.max(i[0]
  3372. .progress, -1), 0);
  3373. i.css({
  3374. opacity: r
  3375. }).transform("translate3d(" + s + "px, " + a + "px, 0px)")
  3376. }
  3377. },
  3378. setTransition: function(e) {
  3379. var t = this,
  3380. i = t.slides,
  3381. s = t.$wrapperEl;
  3382. if (i.transition(e), t.params.virtualTranslate && 0 !== e) {
  3383. var a = !1;
  3384. i.transitionEnd((function() {
  3385. if (!a && t && !t.destroyed) {
  3386. a = !0, t.animating = !1;
  3387. for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1) s.trigger(e[i])
  3388. }
  3389. }))
  3390. }
  3391. }
  3392. },
  3393. fe = {
  3394. setTranslate: function() {
  3395. var e, t = this.$el,
  3396. i = this.$wrapperEl,
  3397. a = this.slides,
  3398. r = this.width,
  3399. n = this.height,
  3400. o = this.rtlTranslate,
  3401. l = this.size,
  3402. d = this.params.cubeEffect,
  3403. h = this.isHorizontal(),
  3404. p = this.virtual && this.params.virtual.enabled,
  3405. c = 0;
  3406. d.shadow && (h ? (0 === (e = i.find(".swiper-cube-shadow")).length && (e = s(
  3407. '<div class="swiper-cube-shadow"></div>'), i.append(e)), e.css({
  3408. height: r + "px"
  3409. })) : 0 === (e = t.find(".swiper-cube-shadow")).length && (e = s('<div class="swiper-cube-shadow"></div>'), t.append(
  3410. e)));
  3411. for (var u = 0; u < a.length; u += 1) {
  3412. var v = a.eq(u),
  3413. f = u;
  3414. p && (f = parseInt(v.attr("data-swiper-slide-index"), 10));
  3415. var m = 90 * f,
  3416. g = Math.floor(m / 360);
  3417. o && (m = -m, g = Math.floor(-m / 360));
  3418. var b = Math.max(Math.min(v[0].progress, 1), -1),
  3419. w = 0,
  3420. y = 0,
  3421. x = 0;
  3422. f % 4 == 0 ? (w = 4 * -g * l, x = 0) : (f - 1) % 4 == 0 ? (w = 0, x = 4 * -g * l) : (f - 2) % 4 == 0 ? (w = l +
  3423. 4 * g * l, x = l) : (f - 3) % 4 == 0 && (w = -l, x = 3 * l + 4 * l * g), o && (w = -w), h || (y = w, w = 0);
  3424. var T = "rotateX(" + (h ? 0 : -m) + "deg) rotateY(" + (h ? m : 0) + "deg) translate3d(" + w + "px, " + y +
  3425. "px, " + x + "px)";
  3426. if (b <= 1 && b > -1 && (c = 90 * f + 90 * b, o && (c = 90 * -f - 90 * b)), v.transform(T), d.slideShadows) {
  3427. var E = h ? v.find(".swiper-slide-shadow-left") : v.find(".swiper-slide-shadow-top"),
  3428. C = h ? v.find(".swiper-slide-shadow-right") : v.find(".swiper-slide-shadow-bottom");
  3429. 0 === E.length && (E = s('<div class="swiper-slide-shadow-' + (h ? "left" : "top") + '"></div>'), v.append(E)),
  3430. 0 === C.length && (C = s('<div class="swiper-slide-shadow-' + (h ? "right" : "bottom") + '"></div>'), v.append(
  3431. C)), E.length && (E[0].style.opacity = Math.max(-b, 0)), C.length && (C[0].style.opacity = Math.max(b, 0))
  3432. }
  3433. }
  3434. if (i.css({
  3435. "-webkit-transform-origin": "50% 50% -" + l / 2 + "px",
  3436. "-moz-transform-origin": "50% 50% -" + l / 2 + "px",
  3437. "-ms-transform-origin": "50% 50% -" + l / 2 + "px",
  3438. "transform-origin": "50% 50% -" + l / 2 + "px"
  3439. }), d.shadow)
  3440. if (h) e.transform("translate3d(0px, " + (r / 2 + d.shadowOffset) + "px, " + -r / 2 +
  3441. "px) rotateX(90deg) rotateZ(0deg) scale(" + d.shadowScale + ")");
  3442. else {
  3443. var S = Math.abs(c) - 90 * Math.floor(Math.abs(c) / 90),
  3444. M = 1.5 - (Math.sin(2 * S * Math.PI / 360) / 2 + Math.cos(2 * S * Math.PI / 360) / 2),
  3445. P = d.shadowScale,
  3446. z = d.shadowScale / M,
  3447. k = d.shadowOffset;
  3448. e.transform("scale3d(" + P + ", 1, " + z + ") translate3d(0px, " + (n / 2 + k) + "px, " + -n / 2 / z +
  3449. "px) rotateX(-90deg)")
  3450. } var $ = j.isSafari || j.isUiWebView ? -l / 2 : 0;
  3451. i.transform("translate3d(0px,0," + $ + "px) rotateX(" + (this.isHorizontal() ? 0 : c) + "deg) rotateY(" + (this.isHorizontal() ?
  3452. -c : 0) + "deg)")
  3453. },
  3454. setTransition: function(e) {
  3455. var t = this.$el;
  3456. this.slides.transition(e).find(
  3457. ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
  3458. ).transition(e), this.params.cubeEffect.shadow && !this.isHorizontal() && t.find(".swiper-cube-shadow").transition(
  3459. e)
  3460. }
  3461. },
  3462. me = {
  3463. setTranslate: function() {
  3464. for (var e = this.slides, t = this.rtlTranslate, i = 0; i < e.length; i += 1) {
  3465. var a = e.eq(i),
  3466. r = a[0].progress;
  3467. this.params.flipEffect.limitRotation && (r = Math.max(Math.min(a[0].progress, 1), -1));
  3468. var n = -180 * r,
  3469. o = 0,
  3470. l = -a[0].swiperSlideOffset,
  3471. d = 0;
  3472. if (this.isHorizontal() ? t && (n = -n) : (d = l, l = 0, o = -n, n = 0), a[0].style.zIndex = -Math.abs(Math.round(
  3473. r)) + e.length, this.params.flipEffect.slideShadows) {
  3474. var h = this.isHorizontal() ? a.find(".swiper-slide-shadow-left") : a.find(".swiper-slide-shadow-top"),
  3475. p = this.isHorizontal() ? a.find(".swiper-slide-shadow-right") : a.find(".swiper-slide-shadow-bottom");
  3476. 0 === h.length && (h = s('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "left" : "top") +
  3477. '"></div>'), a.append(h)), 0 === p.length && (p = s('<div class="swiper-slide-shadow-' + (this.isHorizontal() ?
  3478. "right" : "bottom") + '"></div>'), a.append(p)), h.length && (h[0].style.opacity = Math.max(-r, 0)), p.length &&
  3479. (p[0].style.opacity = Math.max(r, 0))
  3480. }
  3481. a.transform("translate3d(" + l + "px, " + d + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)")
  3482. }
  3483. },
  3484. setTransition: function(e) {
  3485. var t = this,
  3486. i = t.slides,
  3487. s = t.activeIndex,
  3488. a = t.$wrapperEl;
  3489. if (i.transition(e).find(
  3490. ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
  3491. ).transition(e), t.params.virtualTranslate && 0 !== e) {
  3492. var r = !1;
  3493. i.eq(s).transitionEnd((function() {
  3494. if (!r && t && !t.destroyed) {
  3495. r = !0, t.animating = !1;
  3496. for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1) a.trigger(e[i])
  3497. }
  3498. }))
  3499. }
  3500. }
  3501. },
  3502. ge = {
  3503. setTranslate: function() {
  3504. for (var e = this.width, t = this.height, i = this.slides, a = this.$wrapperEl, r = this.slidesSizesGrid, n =
  3505. this.params.coverflowEffect, l = this.isHorizontal(), d = this.translate, h = l ? e / 2 - d : t / 2 - d, p = l ?
  3506. n.rotate : -n.rotate, c = n.depth, u = 0, v = i.length; u < v; u += 1) {
  3507. var f = i.eq(u),
  3508. m = r[u],
  3509. g = (h - f[0].swiperSlideOffset - m / 2) / m * n.modifier,
  3510. b = l ? p * g : 0,
  3511. w = l ? 0 : p * g,
  3512. y = -c * Math.abs(g),
  3513. x = l ? 0 : n.stretch * g,
  3514. T = l ? n.stretch * g : 0;
  3515. Math.abs(T) < .001 && (T = 0), Math.abs(x) < .001 && (x = 0), Math.abs(y) < .001 && (y = 0), Math.abs(b) < .001 &&
  3516. (b = 0), Math.abs(w) < .001 && (w = 0);
  3517. var E = "translate3d(" + T + "px," + x + "px," + y + "px) rotateX(" + w + "deg) rotateY(" + b + "deg)";
  3518. if (f.transform(E), f[0].style.zIndex = 1 - Math.abs(Math.round(g)), n.slideShadows) {
  3519. var C = l ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"),
  3520. S = l ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom");
  3521. 0 === C.length && (C = s('<div class="swiper-slide-shadow-' + (l ? "left" : "top") + '"></div>'), f.append(C)),
  3522. 0 === S.length && (S = s('<div class="swiper-slide-shadow-' + (l ? "right" : "bottom") + '"></div>'), f.append(
  3523. S)), C.length && (C[0].style.opacity = g > 0 ? g : 0), S.length && (S[0].style.opacity = -g > 0 ? -g : 0)
  3524. }
  3525. }(o.pointerEvents || o.prefixedPointerEvents) && (a[0].style.perspectiveOrigin = h + "px 50%")
  3526. },
  3527. setTransition: function(e) {
  3528. this.slides.transition(e).find(
  3529. ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
  3530. ).transition(e)
  3531. }
  3532. },
  3533. be = {
  3534. init: function() {
  3535. var e = this.params.thumbs,
  3536. t = this.constructor;
  3537. e.swiper instanceof t ? (this.thumbs.swiper = e.swiper, n.extend(this.thumbs.swiper.originalParams, {
  3538. watchSlidesProgress: !0,
  3539. slideToClickedSlide: !1
  3540. }), n.extend(this.thumbs.swiper.params, {
  3541. watchSlidesProgress: !0,
  3542. slideToClickedSlide: !1
  3543. })) : n.isObject(e.swiper) && (this.thumbs.swiper = new t(n.extend({}, e.swiper, {
  3544. watchSlidesVisibility: !0,
  3545. watchSlidesProgress: !0,
  3546. slideToClickedSlide: !1
  3547. })), this.thumbs.swiperCreated = !0), this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),
  3548. this.thumbs.swiper.on("tap", this.thumbs.onThumbClick)
  3549. },
  3550. onThumbClick: function() {
  3551. var e = this.thumbs.swiper;
  3552. if (e) {
  3553. var t = e.clickedIndex,
  3554. i = e.clickedSlide;
  3555. if (!(i && s(i).hasClass(this.params.thumbs.slideThumbActiveClass) || null == t)) {
  3556. var a;
  3557. if (a = e.params.loop ? parseInt(s(e.clickedSlide).attr("data-swiper-slide-index"), 10) : t, this.params.loop) {
  3558. var r = this.activeIndex;
  3559. this.slides.eq(r).hasClass(this.params.slideDuplicateClass) && (this.loopFix(), this._clientLeft = this.$wrapperEl[
  3560. 0].clientLeft, r = this.activeIndex);
  3561. var n = this.slides.eq(r).prevAll('[data-swiper-slide-index="' + a + '"]').eq(0).index(),
  3562. o = this.slides.eq(r).nextAll('[data-swiper-slide-index="' + a + '"]').eq(0).index();
  3563. a = void 0 === n ? o : void 0 === o ? n : o - r < r - n ? o : n
  3564. }
  3565. this.slideTo(a)
  3566. }
  3567. }
  3568. },
  3569. update: function(e) {
  3570. var t = this.thumbs.swiper;
  3571. if (t) {
  3572. var i = "auto" === t.params.slidesPerView ? t.slidesPerViewDynamic() : t.params.slidesPerView;
  3573. if (this.realIndex !== t.realIndex) {
  3574. var s, a = t.activeIndex;
  3575. if (t.params.loop) {
  3576. t.slides.eq(a).hasClass(t.params.slideDuplicateClass) && (t.loopFix(), t._clientLeft = t.$wrapperEl[0].clientLeft,
  3577. a = t.activeIndex);
  3578. var r = t.slides.eq(a).prevAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(),
  3579. n = t.slides.eq(a).nextAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index();
  3580. s = void 0 === r ? n : void 0 === n ? r : n - a == a - r ? a : n - a < a - r ? n : r
  3581. } else s = this.realIndex;
  3582. t.visibleSlidesIndexes && t.visibleSlidesIndexes.indexOf(s) < 0 && (t.params.centeredSlides ? s = s > a ? s -
  3583. Math.floor(i / 2) + 1 : s + Math.floor(i / 2) - 1 : s > a && (s = s - i + 1), t.slideTo(s, e ? 0 : void 0))
  3584. }
  3585. var o = 1,
  3586. l = this.params.thumbs.slideThumbActiveClass;
  3587. if (this.params.slidesPerView > 1 && !this.params.centeredSlides && (o = this.params.slidesPerView), t.slides.removeClass(
  3588. l), t.params.loop || t.params.virtual && t.params.virtual.enabled)
  3589. for (var d = 0; d < o; d += 1) t.$wrapperEl.children('[data-swiper-slide-index="' + (this.realIndex + d) +
  3590. '"]').addClass(l);
  3591. else
  3592. for (var h = 0; h < o; h += 1) t.slides.eq(this.realIndex + h).addClass(l)
  3593. }
  3594. }
  3595. },
  3596. we = [R, q, K, U, Z, J, te, {
  3597. name: "mousewheel",
  3598. params: {
  3599. mousewheel: {
  3600. enabled: !1,
  3601. releaseOnEdges: !1,
  3602. invert: !1,
  3603. forceToAxis: !1,
  3604. sensitivity: 1,
  3605. eventsTarged: "container"
  3606. }
  3607. },
  3608. create: function() {
  3609. n.extend(this, {
  3610. mousewheel: {
  3611. enabled: !1,
  3612. enable: ie.enable.bind(this),
  3613. disable: ie.disable.bind(this),
  3614. handle: ie.handle.bind(this),
  3615. handleMouseEnter: ie.handleMouseEnter.bind(this),
  3616. handleMouseLeave: ie.handleMouseLeave.bind(this),
  3617. lastScrollTime: n.now(),
  3618. lastEventBeforeSnap: void 0,
  3619. recentWheelEvents: []
  3620. }
  3621. })
  3622. },
  3623. on: {
  3624. init: function() {
  3625. !this.params.mousewheel.enabled && this.params.cssMode && this.mousewheel.disable(), this.params.mousewheel.enabled &&
  3626. this.mousewheel.enable()
  3627. },
  3628. destroy: function() {
  3629. this.params.cssMode && this.mousewheel.enable(), this.mousewheel.enabled && this.mousewheel.disable()
  3630. }
  3631. }
  3632. }, {
  3633. name: "navigation",
  3634. params: {
  3635. navigation: {
  3636. nextEl: null,
  3637. prevEl: null,
  3638. hideOnClick: !1,
  3639. disabledClass: "swiper-button-disabled",
  3640. hiddenClass: "swiper-button-hidden",
  3641. lockClass: "swiper-button-lock"
  3642. }
  3643. },
  3644. create: function() {
  3645. n.extend(this, {
  3646. navigation: {
  3647. init: se.init.bind(this),
  3648. update: se.update.bind(this),
  3649. destroy: se.destroy.bind(this),
  3650. onNextClick: se.onNextClick.bind(this),
  3651. onPrevClick: se.onPrevClick.bind(this)
  3652. }
  3653. })
  3654. },
  3655. on: {
  3656. init: function() {
  3657. this.navigation.init(), this.navigation.update()
  3658. },
  3659. toEdge: function() {
  3660. this.navigation.update()
  3661. },
  3662. fromEdge: function() {
  3663. this.navigation.update()
  3664. },
  3665. destroy: function() {
  3666. this.navigation.destroy()
  3667. },
  3668. click: function(e) {
  3669. var t, i = this.navigation,
  3670. a = i.$nextEl,
  3671. r = i.$prevEl;
  3672. !this.params.navigation.hideOnClick || s(e.target).is(r) || s(e.target).is(a) || (a ? t = a.hasClass(this.params
  3673. .navigation.hiddenClass) : r && (t = r.hasClass(this.params.navigation.hiddenClass)), !0 === t ? this.emit(
  3674. "navigationShow", this) : this.emit("navigationHide", this), a && a.toggleClass(this.params.navigation.hiddenClass),
  3675. r && r.toggleClass(this.params.navigation.hiddenClass))
  3676. }
  3677. }
  3678. }, {
  3679. name: "pagination",
  3680. params: {
  3681. pagination: {
  3682. el: null,
  3683. bulletElement: "span",
  3684. clickable: !1,
  3685. hideOnClick: !1,
  3686. renderBullet: null,
  3687. renderProgressbar: null,
  3688. renderFraction: null,
  3689. renderCustom: null,
  3690. progressbarOpposite: !1,
  3691. type: "bullets",
  3692. dynamicBullets: !1,
  3693. dynamicMainBullets: 1,
  3694. formatFractionCurrent: function(e) {
  3695. return e
  3696. },
  3697. formatFractionTotal: function(e) {
  3698. return e
  3699. },
  3700. bulletClass: "swiper-pagination-bullet",
  3701. bulletActiveClass: "swiper-pagination-bullet-active",
  3702. modifierClass: "swiper-pagination-",
  3703. currentClass: "swiper-pagination-current",
  3704. totalClass: "swiper-pagination-total",
  3705. hiddenClass: "swiper-pagination-hidden",
  3706. progressbarFillClass: "swiper-pagination-progressbar-fill",
  3707. progressbarOppositeClass: "swiper-pagination-progressbar-opposite",
  3708. clickableClass: "swiper-pagination-clickable",
  3709. lockClass: "swiper-pagination-lock"
  3710. }
  3711. },
  3712. create: function() {
  3713. n.extend(this, {
  3714. pagination: {
  3715. init: ae.init.bind(this),
  3716. render: ae.render.bind(this),
  3717. update: ae.update.bind(this),
  3718. destroy: ae.destroy.bind(this),
  3719. dynamicBulletIndex: 0
  3720. }
  3721. })
  3722. },
  3723. on: {
  3724. init: function() {
  3725. this.pagination.init(), this.pagination.render(), this.pagination.update()
  3726. },
  3727. activeIndexChange: function() {
  3728. this.params.loop ? this.pagination.update() : void 0 === this.snapIndex && this.pagination.update()
  3729. },
  3730. snapIndexChange: function() {
  3731. this.params.loop || this.pagination.update()
  3732. },
  3733. slidesLengthChange: function() {
  3734. this.params.loop && (this.pagination.render(), this.pagination.update())
  3735. },
  3736. snapGridLengthChange: function() {
  3737. this.params.loop || (this.pagination.render(), this.pagination.update())
  3738. },
  3739. destroy: function() {
  3740. this.pagination.destroy()
  3741. },
  3742. click: function(e) {
  3743. this.params.pagination.el && this.params.pagination.hideOnClick && this.pagination.$el.length > 0 && !s(e.target)
  3744. .hasClass(this.params.pagination.bulletClass) && (!0 === this.pagination.$el.hasClass(this.params.pagination.hiddenClass) ?
  3745. this.emit("paginationShow", this) : this.emit("paginationHide", this), this.pagination.$el.toggleClass(this.params
  3746. .pagination.hiddenClass))
  3747. }
  3748. }
  3749. }, {
  3750. name: "scrollbar",
  3751. params: {
  3752. scrollbar: {
  3753. el: null,
  3754. dragSize: "auto",
  3755. hide: !1,
  3756. draggable: !1,
  3757. snapOnRelease: !0,
  3758. lockClass: "swiper-scrollbar-lock",
  3759. dragClass: "swiper-scrollbar-drag"
  3760. }
  3761. },
  3762. create: function() {
  3763. n.extend(this, {
  3764. scrollbar: {
  3765. init: re.init.bind(this),
  3766. destroy: re.destroy.bind(this),
  3767. updateSize: re.updateSize.bind(this),
  3768. setTranslate: re.setTranslate.bind(this),
  3769. setTransition: re.setTransition.bind(this),
  3770. enableDraggable: re.enableDraggable.bind(this),
  3771. disableDraggable: re.disableDraggable.bind(this),
  3772. setDragPosition: re.setDragPosition.bind(this),
  3773. getPointerPosition: re.getPointerPosition.bind(this),
  3774. onDragStart: re.onDragStart.bind(this),
  3775. onDragMove: re.onDragMove.bind(this),
  3776. onDragEnd: re.onDragEnd.bind(this),
  3777. isTouched: !1,
  3778. timeout: null,
  3779. dragTimeout: null
  3780. }
  3781. })
  3782. },
  3783. on: {
  3784. init: function() {
  3785. this.scrollbar.init(), this.scrollbar.updateSize(), this.scrollbar.setTranslate()
  3786. },
  3787. update: function() {
  3788. this.scrollbar.updateSize()
  3789. },
  3790. resize: function() {
  3791. this.scrollbar.updateSize()
  3792. },
  3793. observerUpdate: function() {
  3794. this.scrollbar.updateSize()
  3795. },
  3796. setTranslate: function() {
  3797. this.scrollbar.setTranslate()
  3798. },
  3799. setTransition: function(e) {
  3800. this.scrollbar.setTransition(e)
  3801. },
  3802. destroy: function() {
  3803. this.scrollbar.destroy()
  3804. }
  3805. }
  3806. }, {
  3807. name: "parallax",
  3808. params: {
  3809. parallax: {
  3810. enabled: !1
  3811. }
  3812. },
  3813. create: function() {
  3814. n.extend(this, {
  3815. parallax: {
  3816. setTransform: ne.setTransform.bind(this),
  3817. setTranslate: ne.setTranslate.bind(this),
  3818. setTransition: ne.setTransition.bind(this)
  3819. }
  3820. })
  3821. },
  3822. on: {
  3823. beforeInit: function() {
  3824. this.params.parallax.enabled && (this.params.watchSlidesProgress = !0, this.originalParams.watchSlidesProgress = !
  3825. 0)
  3826. },
  3827. init: function() {
  3828. this.params.parallax.enabled && this.parallax.setTranslate()
  3829. },
  3830. setTranslate: function() {
  3831. this.params.parallax.enabled && this.parallax.setTranslate()
  3832. },
  3833. setTransition: function(e) {
  3834. this.params.parallax.enabled && this.parallax.setTransition(e)
  3835. }
  3836. }
  3837. }, {
  3838. name: "zoom",
  3839. params: {
  3840. zoom: {
  3841. enabled: !1,
  3842. maxRatio: 3,
  3843. minRatio: 1,
  3844. toggle: !0,
  3845. containerClass: "swiper-zoom-container",
  3846. zoomedSlideClass: "swiper-slide-zoomed"
  3847. }
  3848. },
  3849. create: function() {
  3850. var e = this,
  3851. t = {
  3852. enabled: !1,
  3853. scale: 1,
  3854. currentScale: 1,
  3855. isScaling: !1,
  3856. gesture: {
  3857. $slideEl: void 0,
  3858. slideWidth: void 0,
  3859. slideHeight: void 0,
  3860. $imageEl: void 0,
  3861. $imageWrapEl: void 0,
  3862. maxRatio: 3
  3863. },
  3864. image: {
  3865. isTouched: void 0,
  3866. isMoved: void 0,
  3867. currentX: void 0,
  3868. currentY: void 0,
  3869. minX: void 0,
  3870. minY: void 0,
  3871. maxX: void 0,
  3872. maxY: void 0,
  3873. width: void 0,
  3874. height: void 0,
  3875. startX: void 0,
  3876. startY: void 0,
  3877. touchesStart: {},
  3878. touchesCurrent: {}
  3879. },
  3880. velocity: {
  3881. x: void 0,
  3882. y: void 0,
  3883. prevPositionX: void 0,
  3884. prevPositionY: void 0,
  3885. prevTime: void 0
  3886. }
  3887. };
  3888. "onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out"
  3889. .split(" ").forEach((function(i) {
  3890. t[i] = oe[i].bind(e)
  3891. })), n.extend(e, {
  3892. zoom: t
  3893. });
  3894. var i = 1;
  3895. Object.defineProperty(e.zoom, "scale", {
  3896. get: function() {
  3897. return i
  3898. },
  3899. set: function(t) {
  3900. if (i !== t) {
  3901. var s = e.zoom.gesture.$imageEl ? e.zoom.gesture.$imageEl[0] : void 0,
  3902. a = e.zoom.gesture.$slideEl ? e.zoom.gesture.$slideEl[0] : void 0;
  3903. e.emit("zoomChange", t, s, a)
  3904. }
  3905. i = t
  3906. }
  3907. })
  3908. },
  3909. on: {
  3910. init: function() {
  3911. this.params.zoom.enabled && this.zoom.enable()
  3912. },
  3913. destroy: function() {
  3914. this.zoom.disable()
  3915. },
  3916. touchStart: function(e) {
  3917. this.zoom.enabled && this.zoom.onTouchStart(e)
  3918. },
  3919. touchEnd: function(e) {
  3920. this.zoom.enabled && this.zoom.onTouchEnd(e)
  3921. },
  3922. doubleTap: function(e) {
  3923. this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e)
  3924. },
  3925. transitionEnd: function() {
  3926. this.zoom.enabled && this.params.zoom.enabled && this.zoom.onTransitionEnd()
  3927. },
  3928. slideChange: function() {
  3929. this.zoom.enabled && this.params.zoom.enabled && this.params.cssMode && this.zoom.onTransitionEnd()
  3930. }
  3931. }
  3932. }, {
  3933. name: "lazy",
  3934. params: {
  3935. lazy: {
  3936. enabled: !1,
  3937. loadPrevNext: !1,
  3938. loadPrevNextAmount: 1,
  3939. loadOnTransitionStart: !1,
  3940. elementClass: "swiper-lazy",
  3941. loadingClass: "swiper-lazy-loading",
  3942. loadedClass: "swiper-lazy-loaded",
  3943. preloaderClass: "swiper-lazy-preloader"
  3944. }
  3945. },
  3946. create: function() {
  3947. n.extend(this, {
  3948. lazy: {
  3949. initialImageLoaded: !1,
  3950. load: le.load.bind(this),
  3951. loadInSlide: le.loadInSlide.bind(this)
  3952. }
  3953. })
  3954. },
  3955. on: {
  3956. beforeInit: function() {
  3957. this.params.lazy.enabled && this.params.preloadImages && (this.params.preloadImages = !1)
  3958. },
  3959. init: function() {
  3960. this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialSlide && this.lazy.load()
  3961. },
  3962. scroll: function() {
  3963. this.params.freeMode && !this.params.freeModeSticky && this.lazy.load()
  3964. },
  3965. resize: function() {
  3966. this.params.lazy.enabled && this.lazy.load()
  3967. },
  3968. scrollbarDragMove: function() {
  3969. this.params.lazy.enabled && this.lazy.load()
  3970. },
  3971. transitionStart: function() {
  3972. this.params.lazy.enabled && (this.params.lazy.loadOnTransitionStart || !this.params.lazy.loadOnTransitionStart &&
  3973. !this.lazy.initialImageLoaded) && this.lazy.load()
  3974. },
  3975. transitionEnd: function() {
  3976. this.params.lazy.enabled && !this.params.lazy.loadOnTransitionStart && this.lazy.load()
  3977. },
  3978. slideChange: function() {
  3979. this.params.lazy.enabled && this.params.cssMode && this.lazy.load()
  3980. }
  3981. }
  3982. }, {
  3983. name: "controller",
  3984. params: {
  3985. controller: {
  3986. control: void 0,
  3987. inverse: !1,
  3988. by: "slide"
  3989. }
  3990. },
  3991. create: function() {
  3992. n.extend(this, {
  3993. controller: {
  3994. control: this.params.controller.control,
  3995. getInterpolateFunction: de.getInterpolateFunction.bind(this),
  3996. setTranslate: de.setTranslate.bind(this),
  3997. setTransition: de.setTransition.bind(this)
  3998. }
  3999. })
  4000. },
  4001. on: {
  4002. update: function() {
  4003. this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline)
  4004. },
  4005. resize: function() {
  4006. this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline)
  4007. },
  4008. observerUpdate: function() {
  4009. this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline)
  4010. },
  4011. setTranslate: function(e, t) {
  4012. this.controller.control && this.controller.setTranslate(e, t)
  4013. },
  4014. setTransition: function(e, t) {
  4015. this.controller.control && this.controller.setTransition(e, t)
  4016. }
  4017. }
  4018. }, {
  4019. name: "a11y",
  4020. params: {
  4021. a11y: {
  4022. enabled: !0,
  4023. notificationClass: "swiper-notification",
  4024. prevSlideMessage: "Previous slide",
  4025. nextSlideMessage: "Next slide",
  4026. firstSlideMessage: "This is the first slide",
  4027. lastSlideMessage: "This is the last slide",
  4028. paginationBulletMessage: "Go to slide {{index}}"
  4029. }
  4030. },
  4031. create: function() {
  4032. var e = this;
  4033. n.extend(e, {
  4034. a11y: {
  4035. liveRegion: s('<span class="' + e.params.a11y.notificationClass +
  4036. '" aria-live="assertive" aria-atomic="true"></span>')
  4037. }
  4038. }), Object.keys(he).forEach((function(t) {
  4039. e.a11y[t] = he[t].bind(e)
  4040. }))
  4041. },
  4042. on: {
  4043. init: function() {
  4044. this.params.a11y.enabled && (this.a11y.init(), this.a11y.updateNavigation())
  4045. },
  4046. toEdge: function() {
  4047. this.params.a11y.enabled && this.a11y.updateNavigation()
  4048. },
  4049. fromEdge: function() {
  4050. this.params.a11y.enabled && this.a11y.updateNavigation()
  4051. },
  4052. paginationUpdate: function() {
  4053. this.params.a11y.enabled && this.a11y.updatePagination()
  4054. },
  4055. destroy: function() {
  4056. this.params.a11y.enabled && this.a11y.destroy()
  4057. }
  4058. }
  4059. }, {
  4060. name: "history",
  4061. params: {
  4062. history: {
  4063. enabled: !1,
  4064. replaceState: !1,
  4065. key: "slides"
  4066. }
  4067. },
  4068. create: function() {
  4069. n.extend(this, {
  4070. history: {
  4071. init: pe.init.bind(this),
  4072. setHistory: pe.setHistory.bind(this),
  4073. setHistoryPopState: pe.setHistoryPopState.bind(this),
  4074. scrollToSlide: pe.scrollToSlide.bind(this),
  4075. destroy: pe.destroy.bind(this)
  4076. }
  4077. })
  4078. },
  4079. on: {
  4080. init: function() {
  4081. this.params.history.enabled && this.history.init()
  4082. },
  4083. destroy: function() {
  4084. this.params.history.enabled && this.history.destroy()
  4085. },
  4086. transitionEnd: function() {
  4087. this.history.initialized && this.history.setHistory(this.params.history.key, this.activeIndex)
  4088. },
  4089. slideChange: function() {
  4090. this.history.initialized && this.params.cssMode && this.history.setHistory(this.params.history.key, this.activeIndex)
  4091. }
  4092. }
  4093. }, {
  4094. name: "hash-navigation",
  4095. params: {
  4096. hashNavigation: {
  4097. enabled: !1,
  4098. replaceState: !1,
  4099. watchState: !1
  4100. }
  4101. },
  4102. create: function() {
  4103. n.extend(this, {
  4104. hashNavigation: {
  4105. initialized: !1,
  4106. init: ce.init.bind(this),
  4107. destroy: ce.destroy.bind(this),
  4108. setHash: ce.setHash.bind(this),
  4109. onHashCange: ce.onHashCange.bind(this)
  4110. }
  4111. })
  4112. },
  4113. on: {
  4114. init: function() {
  4115. this.params.hashNavigation.enabled && this.hashNavigation.init()
  4116. },
  4117. destroy: function() {
  4118. this.params.hashNavigation.enabled && this.hashNavigation.destroy()
  4119. },
  4120. transitionEnd: function() {
  4121. this.hashNavigation.initialized && this.hashNavigation.setHash()
  4122. },
  4123. slideChange: function() {
  4124. this.hashNavigation.initialized && this.params.cssMode && this.hashNavigation.setHash()
  4125. }
  4126. }
  4127. }, {
  4128. name: "autoplay",
  4129. params: {
  4130. autoplay: {
  4131. enabled: !1,
  4132. delay: 3e3,
  4133. waitForTransition: !0,
  4134. disableOnInteraction: !0,
  4135. stopOnLastSlide: !1,
  4136. reverseDirection: !1
  4137. }
  4138. },
  4139. create: function() {
  4140. var e = this;
  4141. n.extend(e, {
  4142. autoplay: {
  4143. running: !1,
  4144. paused: !1,
  4145. run: ue.run.bind(e),
  4146. start: ue.start.bind(e),
  4147. stop: ue.stop.bind(e),
  4148. pause: ue.pause.bind(e),
  4149. onVisibilityChange: function() {
  4150. "hidden" === document.visibilityState && e.autoplay.running && e.autoplay.pause(), "visible" === document
  4151. .visibilityState && e.autoplay.paused && (e.autoplay.run(), e.autoplay.paused = !1)
  4152. },
  4153. onTransitionEnd: function(t) {
  4154. e && !e.destroyed && e.$wrapperEl && t.target === this && (e.$wrapperEl[0].removeEventListener(
  4155. "transitionend", e.autoplay.onTransitionEnd), e.$wrapperEl[0].removeEventListener(
  4156. "webkitTransitionEnd", e.autoplay.onTransitionEnd), e.autoplay.paused = !1, e.autoplay.running ? e.autoplay
  4157. .run() : e.autoplay.stop())
  4158. }
  4159. }
  4160. })
  4161. },
  4162. on: {
  4163. init: function() {
  4164. this.params.autoplay.enabled && (this.autoplay.start(), document.addEventListener("visibilitychange", this.autoplay
  4165. .onVisibilityChange))
  4166. },
  4167. beforeTransitionStart: function(e, t) {
  4168. this.autoplay.running && (t || !this.params.autoplay.disableOnInteraction ? this.autoplay.pause(e) : this.autoplay
  4169. .stop())
  4170. },
  4171. sliderFirstMove: function() {
  4172. this.autoplay.running && (this.params.autoplay.disableOnInteraction ? this.autoplay.stop() : this.autoplay.pause())
  4173. },
  4174. touchEnd: function() {
  4175. this.params.cssMode && this.autoplay.paused && !this.params.autoplay.disableOnInteraction && this.autoplay.run()
  4176. },
  4177. destroy: function() {
  4178. this.autoplay.running && this.autoplay.stop(), document.removeEventListener("visibilitychange", this.autoplay.onVisibilityChange)
  4179. }
  4180. }
  4181. }, {
  4182. name: "effect-fade",
  4183. params: {
  4184. fadeEffect: {
  4185. crossFade: !1
  4186. }
  4187. },
  4188. create: function() {
  4189. n.extend(this, {
  4190. fadeEffect: {
  4191. setTranslate: ve.setTranslate.bind(this),
  4192. setTransition: ve.setTransition.bind(this)
  4193. }
  4194. })
  4195. },
  4196. on: {
  4197. beforeInit: function() {
  4198. if ("fade" === this.params.effect) {
  4199. this.classNames.push(this.params.containerModifierClass + "fade");
  4200. var e = {
  4201. slidesPerView: 1,
  4202. slidesPerColumn: 1,
  4203. slidesPerGroup: 1,
  4204. watchSlidesProgress: !0,
  4205. spaceBetween: 0,
  4206. virtualTranslate: !0
  4207. };
  4208. n.extend(this.params, e), n.extend(this.originalParams, e)
  4209. }
  4210. },
  4211. setTranslate: function() {
  4212. "fade" === this.params.effect && this.fadeEffect.setTranslate()
  4213. },
  4214. setTransition: function(e) {
  4215. "fade" === this.params.effect && this.fadeEffect.setTransition(e)
  4216. }
  4217. }
  4218. }, {
  4219. name: "effect-cube",
  4220. params: {
  4221. cubeEffect: {
  4222. slideShadows: !0,
  4223. shadow: !0,
  4224. shadowOffset: 20,
  4225. shadowScale: .94
  4226. }
  4227. },
  4228. create: function() {
  4229. n.extend(this, {
  4230. cubeEffect: {
  4231. setTranslate: fe.setTranslate.bind(this),
  4232. setTransition: fe.setTransition.bind(this)
  4233. }
  4234. })
  4235. },
  4236. on: {
  4237. beforeInit: function() {
  4238. if ("cube" === this.params.effect) {
  4239. this.classNames.push(this.params.containerModifierClass + "cube"), this.classNames.push(this.params.containerModifierClass +
  4240. "3d");
  4241. var e = {
  4242. slidesPerView: 1,
  4243. slidesPerColumn: 1,
  4244. slidesPerGroup: 1,
  4245. watchSlidesProgress: !0,
  4246. resistanceRatio: 0,
  4247. spaceBetween: 0,
  4248. centeredSlides: !1,
  4249. virtualTranslate: !0
  4250. };
  4251. n.extend(this.params, e), n.extend(this.originalParams, e)
  4252. }
  4253. },
  4254. setTranslate: function() {
  4255. "cube" === this.params.effect && this.cubeEffect.setTranslate()
  4256. },
  4257. setTransition: function(e) {
  4258. "cube" === this.params.effect && this.cubeEffect.setTransition(e)
  4259. }
  4260. }
  4261. }, {
  4262. name: "effect-flip",
  4263. params: {
  4264. flipEffect: {
  4265. slideShadows: !0,
  4266. limitRotation: !0
  4267. }
  4268. },
  4269. create: function() {
  4270. n.extend(this, {
  4271. flipEffect: {
  4272. setTranslate: me.setTranslate.bind(this),
  4273. setTransition: me.setTransition.bind(this)
  4274. }
  4275. })
  4276. },
  4277. on: {
  4278. beforeInit: function() {
  4279. if ("flip" === this.params.effect) {
  4280. this.classNames.push(this.params.containerModifierClass + "flip"), this.classNames.push(this.params.containerModifierClass +
  4281. "3d");
  4282. var e = {
  4283. slidesPerView: 1,
  4284. slidesPerColumn: 1,
  4285. slidesPerGroup: 1,
  4286. watchSlidesProgress: !0,
  4287. spaceBetween: 0,
  4288. virtualTranslate: !0
  4289. };
  4290. n.extend(this.params, e), n.extend(this.originalParams, e)
  4291. }
  4292. },
  4293. setTranslate: function() {
  4294. "flip" === this.params.effect && this.flipEffect.setTranslate()
  4295. },
  4296. setTransition: function(e) {
  4297. "flip" === this.params.effect && this.flipEffect.setTransition(e)
  4298. }
  4299. }
  4300. }, {
  4301. name: "effect-coverflow",
  4302. params: {
  4303. coverflowEffect: {
  4304. rotate: 50,
  4305. stretch: 0,
  4306. depth: 100,
  4307. modifier: 1,
  4308. slideShadows: !0
  4309. }
  4310. },
  4311. create: function() {
  4312. n.extend(this, {
  4313. coverflowEffect: {
  4314. setTranslate: ge.setTranslate.bind(this),
  4315. setTransition: ge.setTransition.bind(this)
  4316. }
  4317. })
  4318. },
  4319. on: {
  4320. beforeInit: function() {
  4321. "coverflow" === this.params.effect && (this.classNames.push(this.params.containerModifierClass + "coverflow"),
  4322. this.classNames.push(this.params.containerModifierClass + "3d"), this.params.watchSlidesProgress = !0, this.originalParams
  4323. .watchSlidesProgress = !0)
  4324. },
  4325. setTranslate: function() {
  4326. "coverflow" === this.params.effect && this.coverflowEffect.setTranslate()
  4327. },
  4328. setTransition: function(e) {
  4329. "coverflow" === this.params.effect && this.coverflowEffect.setTransition(e)
  4330. }
  4331. }
  4332. }, {
  4333. name: "thumbs",
  4334. params: {
  4335. thumbs: {
  4336. swiper: null,
  4337. slideThumbActiveClass: "swiper-slide-thumb-active",
  4338. thumbsContainerClass: "swiper-container-thumbs"
  4339. }
  4340. },
  4341. create: function() {
  4342. n.extend(this, {
  4343. thumbs: {
  4344. swiper: null,
  4345. init: be.init.bind(this),
  4346. update: be.update.bind(this),
  4347. onThumbClick: be.onThumbClick.bind(this)
  4348. }
  4349. })
  4350. },
  4351. on: {
  4352. beforeInit: function() {
  4353. var e = this.params.thumbs;
  4354. e && e.swiper && (this.thumbs.init(), this.thumbs.update(!0))
  4355. },
  4356. slideChange: function() {
  4357. this.thumbs.swiper && this.thumbs.update()
  4358. },
  4359. update: function() {
  4360. this.thumbs.swiper && this.thumbs.update()
  4361. },
  4362. resize: function() {
  4363. this.thumbs.swiper && this.thumbs.update()
  4364. },
  4365. observerUpdate: function() {
  4366. this.thumbs.swiper && this.thumbs.update()
  4367. },
  4368. setTransition: function(e) {
  4369. var t = this.thumbs.swiper;
  4370. t && t.setTransition(e)
  4371. },
  4372. beforeDestroy: function() {
  4373. var e = this.thumbs.swiper;
  4374. e && this.thumbs.swiperCreated && e && e.destroy()
  4375. }
  4376. }
  4377. }];
  4378. return void 0 === W.use && (W.use = W.Class.use, W.installModule = W.Class.installModule), W.use(we), W
  4379. }));
  4380. //# sourceMappingURL=swiper.min.js