diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..86c445f --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015", "react"] +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2b6d1dc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + + +# Matches multiple files with brace expansion notation +# Set default charset +[*.{js,jsx,html,sass}] +charset = utf-8 +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e759cd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git +node_modules + +# Ignore build files +node_modules diff --git a/README.md b/README.md new file mode 100644 index 0000000..c60aa81 --- /dev/null +++ b/README.md @@ -0,0 +1,68 @@ +# React-Demo + +### 基于Reactjs && Node 通讯的简单演示 + +* Reactjs && ES6 && webpack构建移动端京东首页 +* 基于文件系统的Node.js服务端 + +![Mou icon](./jd.png) + +## 安装与运行程序 + +克隆项目 + +``` +> $ git clone https://github.com/CanFoo/react.git +``` + +分别进入react目录和server目录下安装依赖包 + +``` +> $ npm install +``` + +在server目录下启动后台服务 + +``` +> $ npm run start +``` + +在react目录下启动webpack服务 + +``` +> $ npm run dev +``` + +发布项目文件命令 + +``` +> $ npm run build +``` + +执行完`npm run dev`命令后,打开浏览器 `http://localhost:8080/`运行项目,后台服务端口为 `3000` + +## 后台接口(jsonp请求) +轮播图模块 +``` +http://localhost:3000/data/swiper +``` + +更多服务功能 +``` +http://localhost:3000/data/otherapp +``` + +秒杀折扣 +``` +http://localhost:3000/data/spike +``` + +更多种类选择 +``` +http://localhost:3000/data/more +``` + +猜你喜欢 +``` +http://localhost:3000/data/like +``` diff --git a/app/components/header.css b/app/components/header.css new file mode 100644 index 0000000..05884d7 --- /dev/null +++ b/app/components/header.css @@ -0,0 +1,16 @@ + +#header .swiper-pagination-bullet { + width: 6px; + height: 6px; + border: 1px solid #fff; + background-color: transparent; + opacity: 1; +} + +#header .swiper-pagination-bullet-active { + background-color: #fff; +} + +.img { + width: 100% +} \ No newline at end of file diff --git a/app/components/header.jsx b/app/components/header.jsx new file mode 100644 index 0000000..33989fc --- /dev/null +++ b/app/components/header.jsx @@ -0,0 +1,61 @@ + +require("./header.css"); +require('../lib/swiper.min.css'); +let Swiper = require('../lib/swiper.min.js'); +let jsonp = require('../util/jsonp.js'); + +import React from 'react'; + +let Header = React.createClass({ + getInitialState: function() { + return { + imgUrls: [], + }; + }, + componentDidMount: function() { + jsonp(this.props.source, "", "callback", (data) => { + if(data.status) { + //如果组件渲染到了 DOM 中,isMounted() 返回 true。 + //可以使用该方法保证 setState() 和 forceUpdate() + //在异步场景下的调用不会出错。 + if(this.isMounted()) { + this.setState({ + imgUrls: data.data, + }) + new Swiper ('#header .swiper-container', { + loop: true, + pagination: '.swiper-pagination', + paginationClickable: true, + autoplay : 3000, + autoplayDisableOnInteraction : false, + }) + } + }else { + alert(data.msg); + } + }); + }, + + render: function () { + let countId = 0; + return ( + + ); + } +}) + +module.exports = Header; + diff --git a/app/components/like.css b/app/components/like.css new file mode 100644 index 0000000..554ecc0 --- /dev/null +++ b/app/components/like.css @@ -0,0 +1,71 @@ + +#like { + background-color: #fff; + font-size: 0; + -webkit-text-size-adjust:none; + padding-top: 3px; +} + +#like p { + font-size: 14px; + color: #7f7f7f; + padding-left: 5px; +} + +.like_content { + display: inline-block; + width: 50%; + text-align: center; +} + +.like_link, .like_desc, .like_price{ + width: 95%; + display: inline-block; + +} + +.like_desc { + overflow: hidden; + font-size: 12px; + text-align: left; + line-height: 14px; + color: #333; + padding-bottom: 5px; + border-bottom: 1px solid #E5E6E6; +} + +.like_desc span { + display: -webkit-box; + height: 28px; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; +} + +.like_price { + margin: 4px 0 16px 0; +} + +.like_price span { + font-size: 14px; + color: #f15353; + display: table-cell; + vertical-align: middle; + float: left; +} + +.like_price a { + color: #999; +} + +.like_price div { + border: 1px solid #999; + border-radius: 3px; + display: inline-block; + font-size: 12px; + color: #999; + padding: 2px 6px; + float: right; +} + + diff --git a/app/components/like.jsx b/app/components/like.jsx new file mode 100644 index 0000000..d20c172 --- /dev/null +++ b/app/components/like.jsx @@ -0,0 +1,58 @@ + +require('./like.css'); +let jsonp = require('../util/jsonp.js'); +import React from 'react'; + +let Like = React.createClass({ + getInitialState: function() { + return { + stores: [], + } + }, + + componentDidMount: function() { + jsonp(this.props.source, "", "callback", (data) => { + if(data.status) { + if(this.isMounted()) { + this.setState({ + stores: data.data, + }); + } + }else { + alert(data.msg); + reject("get data error!") + } + }) + }, + + render: function() { + let countId = 0; + return ( +
+

猜你喜欢

+ { + this.state.stores.map((item) => { + return
+
+ + + +
+
+ + { item.desc } + +
+
+ ¥{ item.price } +
看相似
+
+
+ }) + } +
+ ); + } +}) + +module.exports = Like; \ No newline at end of file diff --git a/app/components/more.css b/app/components/more.css new file mode 100644 index 0000000..eadbd66 --- /dev/null +++ b/app/components/more.css @@ -0,0 +1,52 @@ + +img { + width: 100%; +} + +#more { + background-color: #fff; +} + +.more_link { + width: 33%; + border-width: 1px 1px 1px 0; + border-style: solid; + border-color: #f3f5f7; + float: left; +} + +.more_link:last-child { + border-right: 0px; +} + +.more_top:after, .more_middle:after, .more_bottom:after{ + content: ""; + display: block; + clear: both; +} + +.more_style { + width: 49.8%; + float: left; +} + +.more_middle div:first-child { + border-right: 1px solid #f3f5f7; +} + +#more .swiper-pagination-bullet { + width: 6px; + height: 6px; + border: 1px solid #fff; + background-color: transparent; + opacity: 1; +} + +#more .swiper-pagination-bullet-active { + background-color: #fff; +} + +.more_bottom { + padding: 8px; + background-color: #f3f5f7; +} \ No newline at end of file diff --git a/app/components/more.jsx b/app/components/more.jsx new file mode 100644 index 0000000..ed75f5a --- /dev/null +++ b/app/components/more.jsx @@ -0,0 +1,89 @@ + +require('./more.css'); +require('../lib/swiper.min.css'); +let Swiper = require('../lib/swiper.min.js'); +let jsonp = require('../util/jsonp.js'); +import React from 'react'; + +var More = React.createClass({ + getInitialState: function() { + return { + more1: [], + more2: [], + more3: [], + }; + }, + + componentDidMount: function() { + jsonp(this.props.source, "", "callback", (data) => { + if(data.status) { + + if(this.isMounted()) { + this.setState({ + more1: data.data.slice(0,3), + more2: data.data.slice(3,5), + more3: data.data.slice(5,7), + }) + new Swiper ('.more_bottom .swiper-container', { + loop: true, + pagination: '.swiper-pagination', + paginationClickable: true, + autoplay : 2000, + autoplayDisableOnInteraction : false, + }) + } + }else { + alert(data.msg); + } + }); + }, + + render: function() { + + let countId = 0; + return ( +
+
+ { + this.state.more1.map((item) => { + return
+ + + +
+ }) + } +
+
+ { + this.state.more2.map((item) => { + return
+ + + +
+ }) + } +
+
+
+
+ { + this.state.more3.map((item) => { + return
+ + + +
+ }) + } +
+
+
+
+
+ ); + } +}) + +module.exports = More; \ No newline at end of file diff --git a/app/components/otherapp.css b/app/components/otherapp.css new file mode 100644 index 0000000..314918e --- /dev/null +++ b/app/components/otherapp.css @@ -0,0 +1,29 @@ +.oapp { + height: 165px; + background-color: #fff; +} + +.oapp li { + font-size: 12px; + color: #666; + text-align: center; + width: 25%; + float: left; + margin-top: 12px; +} + +.oapp li:last-child:after { + content: ""; + display: block; + clear: both; +} + +.oapp a { + color: #666; +} + +.app_icon { + width: 40px; + height: 40px; + margin: 0 auto 4px auto; +} \ No newline at end of file diff --git a/app/components/otherapp.jsx b/app/components/otherapp.jsx new file mode 100644 index 0000000..26e5052 --- /dev/null +++ b/app/components/otherapp.jsx @@ -0,0 +1,51 @@ + +require('./otherapp.css'); +let jsonp = require('../util/jsonp.js'); + +import React from 'react'; + +let Otherapp = React.createClass({ + getInitialState: function() { + return { + apps: [], + }; + }, + + componentDidMount: function() { + jsonp(this.props.source, "", "callback", (data) => { + if(data.status) { + if(this.isMounted()) { + this.setState({ + apps: data.data, + }) + } + }else { + alert(data.msg); + } + }); + }, + + render: function() { + let countId = 0; + return ( +
+ +
+ ); + } +}) + +module.exports = Otherapp; \ No newline at end of file diff --git a/app/components/search.css b/app/components/search.css new file mode 100644 index 0000000..addac03 --- /dev/null +++ b/app/components/search.css @@ -0,0 +1,82 @@ +#search { + min-width: 320px; + max-width: 640px; + width: 100%; + height: 45px; + box-sizing: border-box; + padding: 5px 20px; + z-index: 10; + // background-color: rgba(234, 44, 44, 0.81); + background-color: rgba(234, 44, 44, 0); + opacity: 1; +} + +.search { + margin: 0 auto; + width: 100%; + height: 100%; + text-align: center; + top: 0; +} + +.sl { + left: 0; + height: 100%; + margin-top: 5px; +} + +.sl i { + width: 56px; + height: 21px; + display: inline-block; + background: url('../images/jd-sprites.png') no-repeat; + background-size: 200px 200px; + background-position: 0 -109px; +} + +.frc { + margin-left: 66px; + margin-right: 40px; + background-color: #fff; + border: 1px solid #fff; + height: 30px; + border-radius: 30px; + margin-top: 3px; + box-sizing: border-box; +} + +.searchicon { + left: 7px; + top: 3px; + display: inline-block; + width: 20px; + height: 20px; + background: url('../images/jd-sprites.png') no-repeat; + background-position: -60px -109px; + background-size: 200px 200px; +} + +.frc form { + height: 100%; +} + +.frc input { + border: 0; + width: 98%; + height: 100%; + color: #333; + text-indent: 30px; + font-size: 18px; + border-radius: 30px; +} + +.sub { + top: 0; + right: 0; + width: 30px; + height: 100%; + line-height: 40px; + font-size: 15px; + color: #fff; + margin-top: -5px; +} \ No newline at end of file diff --git a/app/components/search.jsx b/app/components/search.jsx new file mode 100644 index 0000000..3882a32 --- /dev/null +++ b/app/components/search.jsx @@ -0,0 +1,46 @@ + +require('./search.css'); +import React from 'react'; + +let Search = React.createClass({ + getInitialState: function() { + return { + bg: "transparent", + } + }, + componentDidMount: function() { + + window.onscroll = (event) => { + let realHeight = document.documentElement.scrollTop || document.body.scrollTop; + let optatic = 0.8 * (realHeight/142); + if(optatic <= 0.8 ) { + this.setState({ + bg: `rgba(234, 44, 44, ${optatic})`, + }) + } + } + }, + render: function() { + let bColor = this.state.bg ? this.state.bg : 'transprent'; + return ( + + ); + } +}) + +module.exports = Search; \ No newline at end of file diff --git a/app/components/spike.css b/app/components/spike.css new file mode 100644 index 0000000..994096f --- /dev/null +++ b/app/components/spike.css @@ -0,0 +1,114 @@ + +#spike { + background-color: #fff; + margin-top: 5px; + padding: 5px; +} + +.spike_header>i { + display: inline-block; + margin-left: 10px; + margin-top: 4px; + width: 18px; + height: 22px; + float: left; + margin-top: 8px; + background: url("../images/jd-sprites.png") -84px -109px no-repeat; + background-size: 200px 200px; +} + +.spike_title { + white-space: nowrap; + display: inline-block; + float: left; + font-size: 15px; + color: #ca1327; + margin: 10px 6px 0 5px; +} + +.spike_time { + display: inline-block; + font-size: 13px; + float: left; + margin-top: 10px; +} + +.spike_time span { + display: inline-block; + width: 18px; + height: 18px; + padding: auto; + text-align: center; + color: #fff; + background: #3d3d3d; + border-radius: 2px; + padding-right: 2px; + margin: 0 2px; +} + +.spike_more { + font-size: 12px; + margin-top: 10px; +} + +.spike_more span { + color: #666; +} + +.spike_more i { + display: inline-block; + width: 7px; + height: 12px; + margin: 2px 0 0 2px; + background: url("../images/jd-sprites.png") -186px -51px no-repeat; + background-size: 200px 200px; +} + +.spike_more:after { + content: ""; + display: block; + clear: both; +} + +.spike_content { + margin-top: 10px; + height: 150px; +} + +.spike_content li { + width: 33%; + text-align: center; + float: left; +} + +.spike_content div { + width: 100px; + display: inline-block; + border-right: 1px solid #f3f5f7; +} + +.last_store { + border: 0; +} + +.spike_content img { + width: 100%; +} + +.spike_content p { + margin-top: 8px; + color: #ed5657; + font-size: 14px; + line-height: 14px; +} + +.spike_content .real-price { + color: #888; + font-size: 10px; + margin: 5px 0 12px 0; + text-align: center; + text-decoration: line-through; +} + + + diff --git a/app/components/spike.jsx b/app/components/spike.jsx new file mode 100644 index 0000000..b82ad91 --- /dev/null +++ b/app/components/spike.jsx @@ -0,0 +1,132 @@ + +require('./spike.css'); +let jsonp = require('../util/jsonp.js'); +import React from 'react'; + +let Spike = React.createClass({ + getInitialState: function() { + return { + hour: "00", + minutes: "00", + second: "00", + stores: [], + more: "" + } + }, + + formatTime: function(times=0) { + times = +times; + let hour = 0, + minutes = 0, + second = 0, + regTwo = /^\d{2}$/, + regInteger = /^(\d{1,2})\.?\d*$/; + if(times/3600 >= 1) { + hour = times/3600; + hour = +regInteger.exec(hour.toString())[1] + times -= hour*3600; + hour = regTwo.test(hour.toString()) ? hour.toString() : `0${hour}`; + } + if(times/60 >= 1) { + minutes = times/60; + minutes = +regInteger.exec(minutes.toString())[1] + times -= minutes*60; + minutes = regTwo.test(minutes.toString()) ? minutes.toString() : `0${minutes}`; + } + second = times; + second = regTwo.test(second.toString()) ? second.toString() : `0${second}`; + return { + hour: hour, + minutes: minutes, + second: second, + } + }, + + componentDidMount: function() { + let getData = () => { + let promise = new Promise((resolve, reject) => { + jsonp(this.props.source, "", "callback", (data) => { + if(data.status) { + if(this.isMounted()) { + this.setState({ + stores: data.data, + more: data.more, + }); + resolve(data.times); + } + }else { + alert(data.msg); + reject("get data error!") + } + }) + }) + return promise; + } + + getData().then((times) => { + times = +times; + let timer = window.setInterval(() => { + let {hour, minutes, second} = this.formatTime(times--); + if(times == -1) { + clearInterval(timer); + timer = null; + } + this.setState({ + hour: hour, + minutes: minutes, + second: second, + }); + }, 1000); + }, (err) => { + alert(err); + }); + + }, + + render: function() { + let countId = 0; + return ( +
+
+ + 掌上时间 +
+ { + (() => { + return
+ {this.state.hour}:{this.state.minutes}:{this.state.second} +
+ + })() + } +
+
+ + + 更多秒杀 + + +
+
+
+ +
+ ); + } +}) + +module.exports = Spike; \ No newline at end of file diff --git a/app/images/jd-sprites.png b/app/images/jd-sprites.png new file mode 100644 index 0000000..797aeb4 Binary files /dev/null and b/app/images/jd-sprites.png differ diff --git a/app/lib/common.css b/app/lib/common.css new file mode 100644 index 0000000..3ef8027 --- /dev/null +++ b/app/lib/common.css @@ -0,0 +1,95 @@ +html, +body { + position: relative; + height: 100%; + width: 100%; +} + +html, +body { + font-family: "Microsoft YaHei", arial, sans-serif; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + margin: 0; + padding: 0; + color: #333; + width: 100%; + background: #fff; +} + +input, +ul, +li, +p, +img, +h1, +h2, +h3 { + margin: 0; + padding: 0; +} + +img { + width: 100%; + height: 100%; +} + + +* { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + -webkit-touch-callout: none; +} +a, +input, +textarea, +select { + outline: 0; +} +a { + text-decoration: none; + color: #099cd6; +} + +p { + margin: 0; + overflow: hidden; + padding: 0; +} + +div { + word-break:break-all; +} + +i { + font-style:normal; +} + +ul, li, dl, dt, dd { + list-style-type: none; + padding: 0; + margin: 0; +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.fc { + clear: both; +} + +.pr { + position: relative; +} + +.pa { + position: absolute; +} + +.pf { + position: fixed; +} \ No newline at end of file diff --git a/app/lib/swiper.min.css b/app/lib/swiper.min.css new file mode 100644 index 0000000..db279f4 --- /dev/null +++ b/app/lib/swiper.min.css @@ -0,0 +1,15 @@ +/** + * Swiper 3.3.1 + * Most modern mobile touch slider and framework with hardware accelerated transitions + * + * http://www.idangero.us/swiper/ + * + * Copyright 2016, Vladimir Kharlampidi + * The iDangero.us + * http://www.idangero.us/ + * + * Licensed under MIT + * + * Released on: February 7, 2016 + */ +.swiper-container{margin:0 auto;position:relative;overflow:hidden;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-o-transform:translate(0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.swiper-container-multirow>.swiper-wrapper{-webkit-box-lines:multiple;-moz-box-lines:multiple;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-ms-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex:0 0 auto;flex-shrink:0;width:100%;height:100%;position:relative}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-transition-property:-webkit-transform,height;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform,height}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-wp8-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;-moz-background-size:27px 44px;-webkit-background-size:27px 44px;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");left:10px;right:auto}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");right:10px;left:auto}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s;-moz-transition:.3s;-o-transition:.3s;transition:.3s;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-moz-appearance:none;-ms-appearance:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-white .swiper-pagination-bullet{background:#fff}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-o-transform:translate(0,-50%);-ms-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:5px 0;display:block}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 5px}.swiper-pagination-progress{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progress .swiper-pagination-progressbar{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progress .swiper-pagination-progressbar{-webkit-transform-origin:right top;-moz-transform-origin:right top;-ms-transform-origin:right top;-o-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progress{width:100%;height:4px;left:0;top:0}.swiper-container-vertical>.swiper-pagination-progress{width:4px;height:100%;left:0;top:0}.swiper-pagination-progress.swiper-pagination-white{background:rgba(255,255,255,.5)}.swiper-pagination-progress.swiper-pagination-white .swiper-pagination-progressbar{background:#fff}.swiper-pagination-progress.swiper-pagination-black .swiper-pagination-progressbar{background:#000}.swiper-container-3d{-webkit-perspective:1200px;-moz-perspective:1200px;-o-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-coverflow .swiper-wrapper,.swiper-container-flip .swiper-wrapper{-ms-perspective:1200px}.swiper-container-cube,.swiper-container-flip{overflow:visible}.swiper-container-cube .swiper-slide,.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-cube .swiper-slide .swiper-slide,.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active,.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top,.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-slide{visibility:hidden;-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-ms-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-moz-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-moz-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12,end) infinite;-moz-animation:swiper-preloader-spin 1s steps(12,end) infinite;animation:swiper-preloader-spin 1s steps(12,end) infinite}.swiper-lazy-preloader:after{display:block;content:"";width:100%;height:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:50%;-webkit-background-size:100%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}@-webkit-keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes swiper-preloader-spin{100%{transform:rotate(360deg)}} \ No newline at end of file diff --git a/app/lib/swiper.min.js b/app/lib/swiper.min.js new file mode 100644 index 0000000..678fba4 --- /dev/null +++ b/app/lib/swiper.min.js @@ -0,0 +1,18 @@ +/** + * Swiper 3.3.1 + * Most modern mobile touch slider and framework with hardware accelerated transitions + * + * http://www.idangero.us/swiper/ + * + * Copyright 2016, Vladimir Kharlampidi + * The iDangero.us + * http://www.idangero.us/ + * + * Licensed under MIT + * + * Released on: February 7, 2016 + */ +!function(){"use strict";function e(e){e.fn.swiper=function(a){var r;return e(this).each(function(){var e=new t(this,a);r||(r=e)}),r}}var a,t=function(e,i){function s(e){return Math.floor(e)}function n(){b.autoplayTimeoutId=setTimeout(function(){b.params.loop?(b.fixLoop(),b._slideNext(),b.emit("onAutoplay",b)):b.isEnd?i.autoplayStopOnLast?b.stopAutoplay():(b._slideTo(0),b.emit("onAutoplay",b)):(b._slideNext(),b.emit("onAutoplay",b))},b.params.autoplay)}function o(e,t){var r=a(e.target);if(!r.is(t))if("string"==typeof t)r=r.parents(t);else if(t.nodeType){var i;return r.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==r.length)return r[0]}function l(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,r=new t(function(e){e.forEach(function(e){b.onResize(!0),b.emit("onObserverUpdate",b,e)})});r.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),b.observers.push(r)}function p(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;if(!b.params.allowSwipeToNext&&(b.isHorizontal()&&39===a||!b.isHorizontal()&&40===a))return!1;if(!b.params.allowSwipeToPrev&&(b.isHorizontal()&&37===a||!b.isHorizontal()&&38===a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(b.container.parents(".swiper-slide").length>0&&0===b.container.parents(".swiper-slide-active").length)return;var r={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,s=window.innerHeight,n=b.container.offset();b.rtl&&(n.left=n.left-b.container[0].scrollLeft);for(var o=[[n.left,n.top],[n.left+b.width,n.top],[n.left,n.top+b.height],[n.left+b.width,n.top+b.height]],l=0;l=r.left&&p[0]<=r.left+i&&p[1]>=r.top&&p[1]<=r.top+s&&(t=!0)}if(!t)return}b.isHorizontal()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!b.rtl||37===a&&b.rtl)&&b.slideNext(),(37===a&&!b.rtl||39===a&&b.rtl)&&b.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&b.slideNext(),38===a&&b.slidePrev())}}function d(e){e.originalEvent&&(e=e.originalEvent);var a=b.mousewheel.event,t=0,r=b.rtl?-1:1;if("mousewheel"===a)if(b.params.mousewheelForceToAxis)if(b.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;t=e.wheelDeltaX*r}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;t=e.wheelDeltaY}else t=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*r:-e.wheelDeltaY;else if("DOMMouseScroll"===a)t=-e.detail;else if("wheel"===a)if(b.params.mousewheelForceToAxis)if(b.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;t=-e.deltaX*r}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;t=-e.deltaY}else t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*r:-e.deltaY;if(0!==t){if(b.params.mousewheelInvert&&(t=-t),b.params.freeMode){var i=b.getWrapperTranslate()+t*b.params.mousewheelSensitivity,s=b.isBeginning,n=b.isEnd;if(i>=b.minTranslate()&&(i=b.minTranslate()),i<=b.maxTranslate()&&(i=b.maxTranslate()),b.setWrapperTransition(0),b.setWrapperTranslate(i),b.updateProgress(),b.updateActiveIndex(),(!s&&b.isBeginning||!n&&b.isEnd)&&b.updateClasses(),b.params.freeModeSticky?(clearTimeout(b.mousewheel.timeout),b.mousewheel.timeout=setTimeout(function(){b.slideReset()},300)):b.params.lazyLoading&&b.lazy&&b.lazy.load(),0===i||i===b.maxTranslate())return}else{if((new window.Date).getTime()-b.mousewheel.lastScrollTime>60)if(0>t)if(b.isEnd&&!b.params.loop||b.animating){if(b.params.mousewheelReleaseOnEdges)return!0}else b.slideNext();else if(b.isBeginning&&!b.params.loop||b.animating){if(b.params.mousewheelReleaseOnEdges)return!0}else b.slidePrev();b.mousewheel.lastScrollTime=(new window.Date).getTime()}return b.params.autoplay&&b.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function u(e,t){e=a(e);var r,i,s,n=b.rtl?-1:1;r=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),s=e.attr("data-swiper-parallax-y"),i||s?(i=i||"0",s=s||"0"):b.isHorizontal()?(i=r,s="0"):(s=r,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t*n+"%":i*t*n+"px",s=s.indexOf("%")>=0?parseInt(s,10)*t+"%":s*t+"px",e.transform("translate3d("+i+", "+s+",0px)")}function c(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,i);var m={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},h=i&&i.virtualTranslate;i=i||{};var f={};for(var g in i)if("object"!=typeof i[g]||null===i[g]||(i[g].nodeType||i[g]===window||i[g]===document||"undefined"!=typeof r&&i[g]instanceof r||"undefined"!=typeof jQuery&&i[g]instanceof jQuery))f[g]=i[g];else{f[g]={};for(var v in i[g])f[g][v]=i[g][v]}for(var w in m)if("undefined"==typeof i[w])i[w]=m[w];else if("object"==typeof i[w])for(var y in m[w])"undefined"==typeof i[w][y]&&(i[w][y]=m[w][y]);var b=this;if(b.params=i,b.originalParams=f,b.classNames=[],"undefined"!=typeof a&&"undefined"!=typeof r&&(a=r),("undefined"!=typeof a||(a="undefined"==typeof r?window.Dom7||window.Zepto||window.jQuery:r))&&(b.$=a,b.currentBreakpoint=void 0,b.getActiveBreakpoint=function(){if(!b.params.breakpoints)return!1;var e,a=!1,t=[];for(e in b.params.breakpoints)b.params.breakpoints.hasOwnProperty(e)&&t.push(e);t.sort(function(e,a){return parseInt(e,10)>parseInt(a,10)});for(var r=0;r=window.innerWidth&&!a&&(a=e);return a||"max"},b.setBreakpoint=function(){var e=b.getActiveBreakpoint();if(e&&b.currentBreakpoint!==e){var a=e in b.params.breakpoints?b.params.breakpoints[e]:b.originalParams,t=b.params.loop&&a.slidesPerView!==b.params.slidesPerView;for(var r in a)b.params[r]=a[r];b.currentBreakpoint=e,t&&b.destroyLoop&&b.reLoop(!0)}},b.params.breakpoints&&b.setBreakpoint(),b.container=a(e),0!==b.container.length)){if(b.container.length>1){var x=[];return b.container.each(function(){x.push(new t(this,i))}),x}b.container[0].swiper=b,b.container.data("swiper",b),b.classNames.push("swiper-container-"+b.params.direction),b.params.freeMode&&b.classNames.push("swiper-container-free-mode"),b.support.flexbox||(b.classNames.push("swiper-container-no-flexbox"),b.params.slidesPerColumn=1),b.params.autoHeight&&b.classNames.push("swiper-container-autoheight"),(b.params.parallax||b.params.watchSlidesVisibility)&&(b.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(b.params.effect)>=0&&(b.support.transforms3d?(b.params.watchSlidesProgress=!0,b.classNames.push("swiper-container-3d")):b.params.effect="slide"),"slide"!==b.params.effect&&b.classNames.push("swiper-container-"+b.params.effect),"cube"===b.params.effect&&(b.params.resistanceRatio=0,b.params.slidesPerView=1,b.params.slidesPerColumn=1,b.params.slidesPerGroup=1,b.params.centeredSlides=!1,b.params.spaceBetween=0,b.params.virtualTranslate=!0,b.params.setWrapperSize=!1),("fade"===b.params.effect||"flip"===b.params.effect)&&(b.params.slidesPerView=1,b.params.slidesPerColumn=1,b.params.slidesPerGroup=1,b.params.watchSlidesProgress=!0,b.params.spaceBetween=0,b.params.setWrapperSize=!1,"undefined"==typeof h&&(b.params.virtualTranslate=!0)),b.params.grabCursor&&b.support.touch&&(b.params.grabCursor=!1),b.wrapper=b.container.children("."+b.params.wrapperClass),b.params.pagination&&(b.paginationContainer=a(b.params.pagination),b.params.uniqueNavElements&&"string"==typeof b.params.pagination&&b.paginationContainer.length>1&&1===b.container.find(b.params.pagination).length&&(b.paginationContainer=b.container.find(b.params.pagination)),"bullets"===b.params.paginationType&&b.params.paginationClickable?b.paginationContainer.addClass("swiper-pagination-clickable"):b.params.paginationClickable=!1,b.paginationContainer.addClass("swiper-pagination-"+b.params.paginationType)),(b.params.nextButton||b.params.prevButton)&&(b.params.nextButton&&(b.nextButton=a(b.params.nextButton),b.params.uniqueNavElements&&"string"==typeof b.params.nextButton&&b.nextButton.length>1&&1===b.container.find(b.params.nextButton).length&&(b.nextButton=b.container.find(b.params.nextButton))),b.params.prevButton&&(b.prevButton=a(b.params.prevButton),b.params.uniqueNavElements&&"string"==typeof b.params.prevButton&&b.prevButton.length>1&&1===b.container.find(b.params.prevButton).length&&(b.prevButton=b.container.find(b.params.prevButton)))),b.isHorizontal=function(){return"horizontal"===b.params.direction},b.rtl=b.isHorizontal()&&("rtl"===b.container[0].dir.toLowerCase()||"rtl"===b.container.css("direction")),b.rtl&&b.classNames.push("swiper-container-rtl"),b.rtl&&(b.wrongRTL="-webkit-box"===b.wrapper.css("display")),b.params.slidesPerColumn>1&&b.classNames.push("swiper-container-multirow"),b.device.android&&b.classNames.push("swiper-container-android"),b.container.addClass(b.classNames.join(" ")),b.translate=0,b.progress=0,b.velocity=0,b.lockSwipeToNext=function(){b.params.allowSwipeToNext=!1},b.lockSwipeToPrev=function(){b.params.allowSwipeToPrev=!1},b.lockSwipes=function(){b.params.allowSwipeToNext=b.params.allowSwipeToPrev=!1},b.unlockSwipeToNext=function(){b.params.allowSwipeToNext=!0},b.unlockSwipeToPrev=function(){b.params.allowSwipeToPrev=!0},b.unlockSwipes=function(){b.params.allowSwipeToNext=b.params.allowSwipeToPrev=!0},b.params.grabCursor&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grab",b.container[0].style.cursor="-moz-grab",b.container[0].style.cursor="grab"),b.imagesToLoad=[],b.imagesLoaded=0,b.loadImage=function(e,a,t,r,i){function s(){i&&i()}var n;e.complete&&r?s():a?(n=new window.Image,n.onload=s,n.onerror=s,t&&(n.srcset=t),a&&(n.src=a)):s()},b.preloadImages=function(){function e(){"undefined"!=typeof b&&null!==b&&(void 0!==b.imagesLoaded&&b.imagesLoaded++,b.imagesLoaded===b.imagesToLoad.length&&(b.params.updateOnImagesReady&&b.update(),b.emit("onImagesReady",b)))}b.imagesToLoad=b.container.find("img");for(var a=0;a=0&&(a=parseFloat(a.replace("%",""))/100*b.size),b.virtualSize=-a,b.rtl?b.slides.css({marginLeft:"",marginTop:""}):b.slides.css({marginRight:"",marginBottom:""});var n;b.params.slidesPerColumn>1&&(n=Math.floor(b.slides.length/b.params.slidesPerColumn)===b.slides.length/b.params.slidesPerColumn?b.slides.length:Math.ceil(b.slides.length/b.params.slidesPerColumn)*b.params.slidesPerColumn,"auto"!==b.params.slidesPerView&&"row"===b.params.slidesPerColumnFill&&(n=Math.max(n,b.params.slidesPerView*b.params.slidesPerColumn)));var o,l=b.params.slidesPerColumn,p=n/l,d=p-(b.params.slidesPerColumn*p-b.slides.length);for(e=0;e1){var c,m,h;"column"===b.params.slidesPerColumnFill?(m=Math.floor(e/l),h=e-m*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),c=m+h*n/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(h=Math.floor(e/p),m=e-h*p),u.css({"margin-top":0!==h&&b.params.spaceBetween&&b.params.spaceBetween+"px"}).attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===b.params.slidesPerView?(o=b.isHorizontal()?u.outerWidth(!0):u.outerHeight(!0),b.params.roundLengths&&(o=s(o))):(o=(b.size-(b.params.slidesPerView-1)*a)/b.params.slidesPerView,b.params.roundLengths&&(o=s(o)),b.isHorizontal()?b.slides[e].style.width=o+"px":b.slides[e].style.height=o+"px"),b.slides[e].swiperSlideSize=o,b.slidesSizesGrid.push(o),b.params.centeredSlides?(t=t+o/2+r/2+a,0===e&&(t=t-b.size/2-a),Math.abs(t)<.001&&(t=0),i%b.params.slidesPerGroup===0&&b.snapGrid.push(t),b.slidesGrid.push(t)):(i%b.params.slidesPerGroup===0&&b.snapGrid.push(t),b.slidesGrid.push(t),t=t+o+a),b.virtualSize+=o+a,r=o,i++)}b.virtualSize=Math.max(b.virtualSize,b.size)+b.params.slidesOffsetAfter;var f;if(b.rtl&&b.wrongRTL&&("slide"===b.params.effect||"coverflow"===b.params.effect)&&b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}),(!b.support.flexbox||b.params.setWrapperSize)&&(b.isHorizontal()?b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}):b.wrapper.css({height:b.virtualSize+b.params.spaceBetween+"px"})),b.params.slidesPerColumn>1&&(b.virtualSize=(o+b.params.spaceBetween)*n,b.virtualSize=Math.ceil(b.virtualSize/b.params.slidesPerColumn)-b.params.spaceBetween,b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}),b.params.centeredSlides)){for(f=[],e=0;e1&&b.snapGrid.push(b.virtualSize-b.size)}0===b.snapGrid.length&&(b.snapGrid=[0]),0!==b.params.spaceBetween&&(b.isHorizontal()?b.rtl?b.slides.css({marginLeft:a+"px"}):b.slides.css({marginRight:a+"px"}):b.slides.css({marginBottom:a+"px"})),b.params.watchSlidesProgress&&b.updateSlidesOffset()}},b.updateSlidesOffset=function(){for(var e=0;e=0&&s0&&n<=b.size||0>=s&&n>=b.size;o&&b.slides.eq(t).addClass(b.params.slideVisibleClass)}r.progress=b.rtl?-i:i}}},b.updateProgress=function(e){"undefined"==typeof e&&(e=b.translate||0);var a=b.maxTranslate()-b.minTranslate(),t=b.isBeginning,r=b.isEnd;0===a?(b.progress=0,b.isBeginning=b.isEnd=!0):(b.progress=(e-b.minTranslate())/a,b.isBeginning=b.progress<=0,b.isEnd=b.progress>=1),b.isBeginning&&!t&&b.emit("onReachBeginning",b),b.isEnd&&!r&&b.emit("onReachEnd",b),b.params.watchSlidesProgress&&b.updateSlidesProgress(e),b.emit("onProgress",b,b.progress)},b.updateActiveIndex=function(){var e,a,t,r=b.rtl?b.translate:-b.translate;for(a=0;a=b.slidesGrid[a]&&r=b.slidesGrid[a]&&r=b.slidesGrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=Math.floor(e/b.params.slidesPerGroup),t>=b.snapGrid.length&&(t=b.snapGrid.length-1),e!==b.activeIndex&&(b.snapIndex=t,b.previousIndex=b.activeIndex,b.activeIndex=e,b.updateClasses())},b.updateClasses=function(){b.slides.removeClass(b.params.slideActiveClass+" "+b.params.slideNextClass+" "+b.params.slidePrevClass);var e=b.slides.eq(b.activeIndex);e.addClass(b.params.slideActiveClass);var t=e.next("."+b.params.slideClass).addClass(b.params.slideNextClass);b.params.loop&&0===t.length&&b.slides.eq(0).addClass(b.params.slideNextClass);var r=e.prev("."+b.params.slideClass).addClass(b.params.slidePrevClass);if(b.params.loop&&0===r.length&&b.slides.eq(-1).addClass(b.params.slidePrevClass),b.paginationContainer&&b.paginationContainer.length>0){var i,s=b.params.loop?Math.ceil((b.slides.length-2*b.loopedSlides)/b.params.slidesPerGroup):b.snapGrid.length;if(b.params.loop?(i=Math.ceil((b.activeIndex-b.loopedSlides)/b.params.slidesPerGroup),i>b.slides.length-1-2*b.loopedSlides&&(i-=b.slides.length-2*b.loopedSlides),i>s-1&&(i-=s),0>i&&"bullets"!==b.params.paginationType&&(i=s+i)):i="undefined"!=typeof b.snapIndex?b.snapIndex:b.activeIndex||0,"bullets"===b.params.paginationType&&b.bullets&&b.bullets.length>0&&(b.bullets.removeClass(b.params.bulletActiveClass),b.paginationContainer.length>1?b.bullets.each(function(){a(this).index()===i&&a(this).addClass(b.params.bulletActiveClass)}):b.bullets.eq(i).addClass(b.params.bulletActiveClass)),"fraction"===b.params.paginationType&&(b.paginationContainer.find("."+b.params.paginationCurrentClass).text(i+1),b.paginationContainer.find("."+b.params.paginationTotalClass).text(s)),"progress"===b.params.paginationType){var n=(i+1)/s,o=n,l=1;b.isHorizontal()||(l=n,o=1),b.paginationContainer.find("."+b.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+o+") scaleY("+l+")").transition(b.params.speed)}"custom"===b.params.paginationType&&b.params.paginationCustomRender&&(b.paginationContainer.html(b.params.paginationCustomRender(b,i+1,s)),b.emit("onPaginationRendered",b,b.paginationContainer[0]))}b.params.loop||(b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.isBeginning?(b.prevButton.addClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.disable(b.prevButton)):(b.prevButton.removeClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.enable(b.prevButton))),b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.isEnd?(b.nextButton.addClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.disable(b.nextButton)):(b.nextButton.removeClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.enable(b.nextButton))))},b.updatePagination=function(){if(b.params.pagination&&b.paginationContainer&&b.paginationContainer.length>0){var e="";if("bullets"===b.params.paginationType){for(var a=b.params.loop?Math.ceil((b.slides.length-2*b.loopedSlides)/b.params.slidesPerGroup):b.snapGrid.length,t=0;a>t;t++)e+=b.params.paginationBulletRender?b.params.paginationBulletRender(t,b.params.bulletClass):"<"+b.params.paginationElement+' class="'+b.params.bulletClass+'">";b.paginationContainer.html(e),b.bullets=b.paginationContainer.find("."+b.params.bulletClass),b.params.paginationClickable&&b.params.a11y&&b.a11y&&b.a11y.initPagination()}"fraction"===b.params.paginationType&&(e=b.params.paginationFractionRender?b.params.paginationFractionRender(b,b.params.paginationCurrentClass,b.params.paginationTotalClass):' / ',b.paginationContainer.html(e)),"progress"===b.params.paginationType&&(e=b.params.paginationProgressRender?b.params.paginationProgressRender(b,b.params.paginationProgressbarClass):'',b.paginationContainer.html(e)),"custom"!==b.params.paginationType&&b.emit("onPaginationRendered",b,b.paginationContainer[0])}},b.update=function(e){function a(){r=Math.min(Math.max(b.translate,b.maxTranslate()),b.minTranslate()),b.setWrapperTranslate(r),b.updateActiveIndex(),b.updateClasses()}if(b.updateContainerSize(),b.updateSlidesSize(),b.updateProgress(),b.updatePagination(),b.updateClasses(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),e){var t,r;b.controller&&b.controller.spline&&(b.controller.spline=void 0),b.params.freeMode?(a(),b.params.autoHeight&&b.updateAutoHeight()):(t=("auto"===b.params.slidesPerView||b.params.slidesPerView>1)&&b.isEnd&&!b.params.centeredSlides?b.slideTo(b.slides.length-1,0,!1,!0):b.slideTo(b.activeIndex,0,!1,!0),t||a())}else b.params.autoHeight&&b.updateAutoHeight()},b.onResize=function(e){b.params.breakpoints&&b.setBreakpoint();var a=b.params.allowSwipeToPrev,t=b.params.allowSwipeToNext;b.params.allowSwipeToPrev=b.params.allowSwipeToNext=!0,b.updateContainerSize(),b.updateSlidesSize(),("auto"===b.params.slidesPerView||b.params.freeMode||e)&&b.updatePagination(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),b.controller&&b.controller.spline&&(b.controller.spline=void 0);var r=!1;if(b.params.freeMode){var i=Math.min(Math.max(b.translate,b.maxTranslate()),b.minTranslate());b.setWrapperTranslate(i),b.updateActiveIndex(),b.updateClasses(),b.params.autoHeight&&b.updateAutoHeight()}else b.updateClasses(),r=("auto"===b.params.slidesPerView||b.params.slidesPerView>1)&&b.isEnd&&!b.params.centeredSlides?b.slideTo(b.slides.length-1,0,!1,!0):b.slideTo(b.activeIndex,0,!1,!0);b.params.lazyLoading&&!r&&b.lazy&&b.lazy.load(),b.params.allowSwipeToPrev=a,b.params.allowSwipeToNext=t};var T=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?T=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(T=["MSPointerDown","MSPointerMove","MSPointerUp"]),b.touchEvents={start:b.support.touch||!b.params.simulateTouch?"touchstart":T[0],move:b.support.touch||!b.params.simulateTouch?"touchmove":T[1],end:b.support.touch||!b.params.simulateTouch?"touchend":T[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===b.params.touchEventsTarget?b.container:b.wrapper).addClass("swiper-wp8-"+b.params.direction),b.initEvents=function(e){var a=e?"off":"on",t=e?"removeEventListener":"addEventListener",r="container"===b.params.touchEventsTarget?b.container[0]:b.wrapper[0],s=b.support.touch?r:document,n=b.params.nested?!0:!1;b.browser.ie?(r[t](b.touchEvents.start,b.onTouchStart,!1),s[t](b.touchEvents.move,b.onTouchMove,n),s[t](b.touchEvents.end,b.onTouchEnd,!1)):(b.support.touch&&(r[t](b.touchEvents.start,b.onTouchStart,!1),r[t](b.touchEvents.move,b.onTouchMove,n),r[t](b.touchEvents.end,b.onTouchEnd,!1)),!i.simulateTouch||b.device.ios||b.device.android||(r[t]("mousedown",b.onTouchStart,!1),document[t]("mousemove",b.onTouchMove,n),document[t]("mouseup",b.onTouchEnd,!1))),window[t]("resize",b.onResize),b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.nextButton[a]("click",b.onClickNext),b.params.a11y&&b.a11y&&b.nextButton[a]("keydown",b.a11y.onEnterKey)),b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.prevButton[a]("click",b.onClickPrev),b.params.a11y&&b.a11y&&b.prevButton[a]("keydown",b.a11y.onEnterKey)),b.params.pagination&&b.params.paginationClickable&&(b.paginationContainer[a]("click","."+b.params.bulletClass,b.onClickIndex),b.params.a11y&&b.a11y&&b.paginationContainer[a]("keydown","."+b.params.bulletClass,b.a11y.onEnterKey)),(b.params.preventClicks||b.params.preventClicksPropagation)&&r[t]("click",b.preventClicks,!0)},b.attachEvents=function(){b.initEvents()},b.detachEvents=function(){b.initEvents(!0)},b.allowClick=!0,b.preventClicks=function(e){b.allowClick||(b.params.preventClicks&&e.preventDefault(),b.params.preventClicksPropagation&&b.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},b.onClickNext=function(e){e.preventDefault(),(!b.isEnd||b.params.loop)&&b.slideNext()},b.onClickPrev=function(e){e.preventDefault(),(!b.isBeginning||b.params.loop)&&b.slidePrev()},b.onClickIndex=function(e){e.preventDefault();var t=a(this).index()*b.params.slidesPerGroup;b.params.loop&&(t+=b.loopedSlides),b.slideTo(t)},b.updateClickedSlide=function(e){var t=o(e,"."+b.params.slideClass),r=!1;if(t)for(var i=0;ib.slides.length-b.loopedSlides+b.params.slidesPerView/2?(b.fixLoop(),n=b.wrapper.children("."+b.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){b.slideTo(n)},0)):b.slideTo(n):n>b.slides.length-b.params.slidesPerView?(b.fixLoop(),n=b.wrapper.children("."+b.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){b.slideTo(n)},0)):b.slideTo(n)}else b.slideTo(n)}};var S,C,z,M,E,P,k,I,L,B,D="input, select, textarea, button",H=Date.now(),A=[];b.animating=!1,b.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var G,O;if(b.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),G="touchstart"===e.type,G||!("which"in e)||3!==e.which){if(b.params.noSwiping&&o(e,"."+b.params.noSwipingClass))return void(b.allowClick=!0);if(!b.params.swipeHandler||o(e,b.params.swipeHandler)){var t=b.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r=b.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(b.device.ios&&b.params.iOSEdgeSwipeDetection&&t<=b.params.iOSEdgeSwipeThreshold)){if(S=!0,C=!1,z=!0,E=void 0,O=void 0,b.touches.startX=t,b.touches.startY=r,M=Date.now(),b.allowClick=!0,b.updateContainerSize(),b.swipeDirection=void 0,b.params.threshold>0&&(I=!1),"touchstart"!==e.type){var i=!0;a(e.target).is(D)&&(i=!1),document.activeElement&&a(document.activeElement).is(D)&&document.activeElement.blur(),i&&e.preventDefault()}b.emit("onTouchStart",b,e)}}}},b.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!G||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return b.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(b.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(b.params.onlyExternal)return b.allowClick=!1,void(S&&(b.touches.startX=b.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,b.touches.startY=b.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,M=Date.now()));if(G&&document.activeElement&&e.target===document.activeElement&&a(e.target).is(D))return C=!0,void(b.allowClick=!1);if(z&&b.emit("onTouchMove",b,e),!(e.targetTouches&&e.targetTouches.length>1)){if(b.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,b.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof E){var t=180*Math.atan2(Math.abs(b.touches.currentY-b.touches.startY),Math.abs(b.touches.currentX-b.touches.startX))/Math.PI;E=b.isHorizontal()?t>b.params.touchAngle:90-t>b.params.touchAngle}if(E&&b.emit("onTouchMoveOpposite",b,e),"undefined"==typeof O&&b.browser.ieTouch&&(b.touches.currentX!==b.touches.startX||b.touches.currentY!==b.touches.startY)&&(O=!0),S){if(E)return void(S=!1);if(O||!b.browser.ieTouch){b.allowClick=!1,b.emit("onSliderMove",b,e),e.preventDefault(),b.params.touchMoveStopPropagation&&!b.params.nested&&e.stopPropagation(),C||(i.loop&&b.fixLoop(),k=b.getWrapperTranslate(),b.setWrapperTransition(0),b.animating&&b.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),b.params.autoplay&&b.autoplaying&&(b.params.autoplayDisableOnInteraction?b.stopAutoplay():b.pauseAutoplay()),B=!1,b.params.grabCursor&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grabbing",b.container[0].style.cursor="-moz-grabbin",b.container[0].style.cursor="grabbing")),C=!0;var r=b.touches.diff=b.isHorizontal()?b.touches.currentX-b.touches.startX:b.touches.currentY-b.touches.startY;r*=b.params.touchRatio,b.rtl&&(r=-r),b.swipeDirection=r>0?"prev":"next",P=r+k;var s=!0;if(r>0&&P>b.minTranslate()?(s=!1,b.params.resistance&&(P=b.minTranslate()-1+Math.pow(-b.minTranslate()+k+r,b.params.resistanceRatio))):0>r&&PP&&(P=k),!b.params.allowSwipeToPrev&&"prev"===b.swipeDirection&&P>k&&(P=k),b.params.followFinger){if(b.params.threshold>0){if(!(Math.abs(r)>b.params.threshold||I))return void(P=k);if(!I)return I=!0,b.touches.startX=b.touches.currentX,b.touches.startY=b.touches.currentY,P=k,void(b.touches.diff=b.isHorizontal()?b.touches.currentX-b.touches.startX:b.touches.currentY-b.touches.startY)}(b.params.freeMode||b.params.watchSlidesProgress)&&b.updateActiveIndex(),b.params.freeMode&&(0===A.length&&A.push({position:b.touches[b.isHorizontal()?"startX":"startY"],time:M}),A.push({position:b.touches[b.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),b.updateProgress(P),b.setWrapperTranslate(P)}}}}}},b.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),z&&b.emit("onTouchEnd",b,e),z=!1,S){b.params.grabCursor&&C&&S&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grab",b.container[0].style.cursor="-moz-grab",b.container[0].style.cursor="grab");var t=Date.now(),r=t-M;if(b.allowClick&&(b.updateClickedSlide(e),b.emit("onTap",b,e),300>r&&t-H>300&&(L&&clearTimeout(L),L=setTimeout(function(){b&&(b.params.paginationHide&&b.paginationContainer.length>0&&!a(e.target).hasClass(b.params.bulletClass)&&b.paginationContainer.toggleClass(b.params.paginationHiddenClass),b.emit("onClick",b,e))},300)),300>r&&300>t-H&&(L&&clearTimeout(L),b.emit("onDoubleTap",b,e))),H=Date.now(),setTimeout(function(){b&&(b.allowClick=!0)},0),!S||!C||!b.swipeDirection||0===b.touches.diff||P===k)return void(S=C=!1);S=C=!1;var i;if(i=b.params.followFinger?b.rtl?b.translate:-b.translate:-P,b.params.freeMode){if(i<-b.minTranslate())return void b.slideTo(b.activeIndex);if(i>-b.maxTranslate())return void(b.slides.length1){var s=A.pop(),n=A.pop(),o=s.position-n.position,l=s.time-n.time;b.velocity=o/l,b.velocity=b.velocity/2,Math.abs(b.velocity)150||(new window.Date).getTime()-s.time>300)&&(b.velocity=0)}else b.velocity=0;A.length=0;var p=1e3*b.params.freeModeMomentumRatio,d=b.velocity*p,u=b.translate+d;b.rtl&&(u=-u);var c,m=!1,h=20*Math.abs(b.velocity)*b.params.freeModeMomentumBounceRatio;if(ub.minTranslate())b.params.freeModeMomentumBounce?(u-b.minTranslate()>h&&(u=b.minTranslate()+h),c=b.minTranslate(),m=!0,B=!0):u=b.minTranslate();else if(b.params.freeModeSticky){var f,g=0;for(g=0;g-u){f=g;break}u=Math.abs(b.snapGrid[f]-u)=b.params.longSwipesMs)&&(b.updateProgress(),b.updateActiveIndex()))}var v,w=0,y=b.slidesSizesGrid[0];for(v=0;v=b.slidesGrid[v]&&i=b.slidesGrid[v]&&(w=v,y=b.slidesGrid[b.slidesGrid.length-1]-b.slidesGrid[b.slidesGrid.length-2]);var x=(i-b.slidesGrid[w])/y;if(r>b.params.longSwipesMs){if(!b.params.longSwipes)return void b.slideTo(b.activeIndex);"next"===b.swipeDirection&&(x>=b.params.longSwipesRatio?b.slideTo(w+b.params.slidesPerGroup):b.slideTo(w)),"prev"===b.swipeDirection&&(x>1-b.params.longSwipesRatio?b.slideTo(w+b.params.slidesPerGroup):b.slideTo(w))}else{if(!b.params.shortSwipes)return void b.slideTo(b.activeIndex);"next"===b.swipeDirection&&b.slideTo(w+b.params.slidesPerGroup),"prev"===b.swipeDirection&&b.slideTo(w)}}},b._slideTo=function(e,a){return b.slideTo(e,a,!0,!0)},b.slideTo=function(e,a,t,r){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),b.snapIndex=Math.floor(e/b.params.slidesPerGroup),b.snapIndex>=b.snapGrid.length&&(b.snapIndex=b.snapGrid.length-1);var i=-b.snapGrid[b.snapIndex];b.params.autoplay&&b.autoplaying&&(r||!b.params.autoplayDisableOnInteraction?b.pauseAutoplay(a):b.stopAutoplay()),b.updateProgress(i);for(var s=0;s=Math.floor(100*b.slidesGrid[s])&&(e=s);return!b.params.allowSwipeToNext&&ib.translate&&i>b.maxTranslate()&&(b.activeIndex||0)!==e?!1:("undefined"==typeof a&&(a=b.params.speed),b.previousIndex=b.activeIndex||0,b.activeIndex=e,b.rtl&&-i===b.translate||!b.rtl&&i===b.translate?(b.params.autoHeight&&b.updateAutoHeight(),b.updateClasses(),"slide"!==b.params.effect&&b.setWrapperTranslate(i),!1):(b.updateClasses(),b.onTransitionStart(t),0===a?(b.setWrapperTranslate(i),b.setWrapperTransition(0),b.onTransitionEnd(t)):(b.setWrapperTranslate(i),b.setWrapperTransition(a),b.animating||(b.animating=!0,b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd(t)}))),!0))},b.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),b.params.autoHeight&&b.updateAutoHeight(),b.lazy&&b.lazy.onTransitionStart(),e&&(b.emit("onTransitionStart",b),b.activeIndex!==b.previousIndex&&(b.emit("onSlideChangeStart",b),b.activeIndex>b.previousIndex?b.emit("onSlideNextStart",b):b.emit("onSlidePrevStart",b)))},b.onTransitionEnd=function(e){b.animating=!1,b.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),b.lazy&&b.lazy.onTransitionEnd(),e&&(b.emit("onTransitionEnd",b),b.activeIndex!==b.previousIndex&&(b.emit("onSlideChangeEnd",b),b.activeIndex>b.previousIndex?b.emit("onSlideNextEnd",b):b.emit("onSlidePrevEnd",b))),b.params.hashnav&&b.hashnav&&b.hashnav.setHash()},b.slideNext=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixLoop();b.container[0].clientLeft;return b.slideTo(b.activeIndex+b.params.slidesPerGroup,a,e,t)}return b.slideTo(b.activeIndex+b.params.slidesPerGroup,a,e,t)},b._slideNext=function(e){return b.slideNext(!0,e,!0)},b.slidePrev=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixLoop();b.container[0].clientLeft;return b.slideTo(b.activeIndex-1,a,e,t)}return b.slideTo(b.activeIndex-1,a,e,t)},b._slidePrev=function(e){return b.slidePrev(!0,e,!0)},b.slideReset=function(e,a,t){return b.slideTo(b.activeIndex,a,e)},b.setWrapperTransition=function(e,a){b.wrapper.transition(e),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].setTransition(e),b.params.parallax&&b.parallax&&b.parallax.setTransition(e),b.params.scrollbar&&b.scrollbar&&b.scrollbar.setTransition(e),b.params.control&&b.controller&&b.controller.setTransition(e,a),b.emit("onSetTransition",b,e)},b.setWrapperTranslate=function(e,a,t){var r=0,i=0,n=0;b.isHorizontal()?r=b.rtl?-e:e:i=e,b.params.roundLengths&&(r=s(r),i=s(i)),b.params.virtualTranslate||(b.support.transforms3d?b.wrapper.transform("translate3d("+r+"px, "+i+"px, "+n+"px)"):b.wrapper.transform("translate("+r+"px, "+i+"px)")),b.translate=b.isHorizontal()?r:i;var o,l=b.maxTranslate()-b.minTranslate();o=0===l?0:(e-b.minTranslate())/l,o!==b.progress&&b.updateProgress(e),a&&b.updateActiveIndex(),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].setTranslate(b.translate),b.params.parallax&&b.parallax&&b.parallax.setTranslate(b.translate),b.params.scrollbar&&b.scrollbar&&b.scrollbar.setTranslate(b.translate),b.params.control&&b.controller&&b.controller.setTranslate(b.translate,t),b.emit("onSetTranslate",b,b.translate)},b.getTranslate=function(e,a){var t,r,i,s;return"undefined"==typeof a&&(a="x"),b.params.virtualTranslate?b.rtl?-b.translate:b.translate:(i=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(r=i.transform||i.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new window.WebKitCSSMatrix("none"===r?"":r)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=s.toString().split(",")),"x"===a&&(r=window.WebKitCSSMatrix?s.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===a&&(r=window.WebKitCSSMatrix?s.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),b.rtl&&r&&(r=-r),r||0)},b.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=b.isHorizontal()?"x":"y"),b.getTranslate(b.wrapper[0],e)},b.observers=[],b.initObservers=function(){if(b.params.observeParents)for(var e=b.container.parents(),a=0;ae.length&&(b.loopedSlides=e.length);var t,r=[],i=[];for(e.each(function(t,s){var n=a(this);t=e.length-b.loopedSlides&&r.push(s),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)b.wrapper.prepend(a(r[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass))},b.destroyLoop=function(){b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass).remove(),b.slides.removeAttr("data-swiper-slide-index")},b.reLoop=function(e){var a=b.activeIndex-b.loopedSlides;b.destroyLoop(),b.createLoop(),b.updateSlidesSize(),e&&b.slideTo(a+b.loopedSlides,0,!1)},b.fixLoop=function(){var e;b.activeIndex=2*b.loopedSlides||b.activeIndex>b.slides.length-2*b.params.slidesPerView)&&(e=-b.slides.length+b.activeIndex+b.loopedSlides,e+=b.loopedSlides,b.slideTo(e,0,!1,!0))},b.appendSlide=function(e){if(b.params.loop&&b.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;aa&&t--;t=Math.max(t,0)}else a=e,b.slides[a]&&b.slides.eq(a).remove(),t>a&&t--,t=Math.max(t,0);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0),b.params.loop?b.slideTo(t+b.loopedSlides,0,!1):b.slideTo(t,0,!1)},b.removeAllSlides=function(){for(var e=[],a=0;a'),t.append(d)),0===u.length&&(u=a('
'),t.append(u)),d.length&&(d[0].style.opacity=Math.max(-r,0)),u.length&&(u[0].style.opacity=Math.max(r,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){if(b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.virtualTranslate&&0!==e){var t=!1;b.slides.eq(b.activeIndex).transitionEnd(function(){if(!t&&b&&a(this).hasClass(b.params.slideActiveClass)){t=!0,b.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=0;r'),b.wrapper.append(e)),e.css({height:b.width+"px"})):(e=b.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),b.container.append(e))));for(var r=0;r=o&&o>-1&&(t=90*r+90*o,b.rtl&&(t=90*-r-90*o)),i.transform(u),b.params.cube.slideShadows){var c=b.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=b.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('
'),i.append(c)),0===m.length&&(m=a('
'),i.append(m)),c.length&&(c[0].style.opacity=Math.max(-o,0)),m.length&&(m[0].style.opacity=Math.max(o,0))}}if(b.wrapper.css({"-webkit-transform-origin":"50% 50% -"+b.size/2+"px","-moz-transform-origin":"50% 50% -"+b.size/2+"px","-ms-transform-origin":"50% 50% -"+b.size/2+"px","transform-origin":"50% 50% -"+b.size/2+"px"}),b.params.cube.shadow)if(b.isHorizontal())e.transform("translate3d(0px, "+(b.width/2+b.params.cube.shadowOffset)+"px, "+-b.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+b.params.cube.shadowScale+")");else{var h=Math.abs(t)-90*Math.floor(Math.abs(t)/90),f=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),g=b.params.cube.shadowScale,v=b.params.cube.shadowScale/f,w=b.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(b.height/2+w)+"px, "+-b.height/2/v+"px) rotateX(-90deg)")}var y=b.isSafari||b.isUiWebView?-b.size/2:0;b.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(b.isHorizontal()?0:t)+"deg) rotateY("+(b.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.cube.shadow&&!b.isHorizontal()&&b.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=b.translate,t=b.isHorizontal()?-e+b.width/2:-e+b.height/2,r=b.isHorizontal()?b.params.coverflow.rotate:-b.params.coverflow.rotate,i=b.params.coverflow.depth,s=0,n=b.slides.length;n>s;s++){var o=b.slides.eq(s),l=b.slidesSizesGrid[s],p=o[0].swiperSlideOffset,d=(t-p-l/2)/l*b.params.coverflow.modifier,u=b.isHorizontal()?r*d:0,c=b.isHorizontal()?0:r*d,m=-i*Math.abs(d),h=b.isHorizontal()?0:b.params.coverflow.stretch*d,f=b.isHorizontal()?b.params.coverflow.stretch*d:0;Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var g="translate3d("+f+"px,"+h+"px,"+m+"px) rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(g),o[0].style.zIndex=-Math.abs(Math.round(d))+1,b.params.coverflow.slideShadows){var v=b.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),w=b.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===v.length&&(v=a('
'),o.append(v)),0===w.length&&(w=a('
'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(b.browser.ie){var y=b.wrapper[0].style;y.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},b.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==b.slides.length)){var r=b.slides.eq(e),i=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(i=i.add(r[0])),0!==i.length&&i.each(function(){var e=a(this);e.addClass("swiper-lazy-loading");var i=e.attr("data-background"),s=e.attr("data-src"),n=e.attr("data-srcset");b.loadImage(e[0],s||i,n,!1,function(){if(i?(e.css("background-image",'url("'+i+'")'),e.removeAttr("data-background")):(n&&(e.attr("srcset",n),e.removeAttr("data-srcset")),s&&(e.attr("src",s),e.removeAttr("data-src"))),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),b.params.loop&&t){var a=r.attr("data-swiper-slide-index");if(r.hasClass(b.params.slideDuplicateClass)){var o=b.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+b.params.slideDuplicateClass+")");b.lazy.loadImageInSlide(o.index(),!1)}else{var l=b.wrapper.children("."+b.params.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]');b.lazy.loadImageInSlide(l.index(),!1)}}b.emit("onLazyImageReady",b,r[0],e[0])}),b.emit("onLazyImageLoad",b,r[0],e[0])})}},load:function(){var e;if(b.params.watchSlidesVisibility)b.wrapper.children("."+b.params.slideVisibleClass).each(function(){b.lazy.loadImageInSlide(a(this).index())});else if(b.params.slidesPerView>1)for(e=b.activeIndex;e1||b.params.lazyLoadingInPrevNextAmount&&b.params.lazyLoadingInPrevNextAmount>1){var t=b.params.lazyLoadingInPrevNextAmount,r=b.params.slidesPerView,i=Math.min(b.activeIndex+r+Math.max(t,r),b.slides.length),s=Math.max(b.activeIndex-Math.max(r,t),0);for(e=b.activeIndex+b.params.slidesPerView;i>e;e++)b.slides[e]&&b.lazy.loadImageInSlide(e);for(e=s;e0&&b.lazy.loadImageInSlide(n.index());var o=b.wrapper.children("."+b.params.slidePrevClass);o.length>0&&b.lazy.loadImageInSlide(o.index())}},onTransitionStart:function(){b.params.lazyLoading&&(b.params.lazyLoadingOnTransitionStart||!b.params.lazyLoadingOnTransitionStart&&!b.lazy.initialImageLoaded)&&b.lazy.load()},onTransitionEnd:function(){b.params.lazyLoading&&!b.params.lazyLoadingOnTransitionStart&&b.lazy.load()}},b.scrollbar={isTouched:!1,setDragPosition:function(e){var a=b.scrollbar,t=b.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,r=t-a.track.offset()[b.isHorizontal()?"left":"top"]-a.dragSize/2,i=-b.minTranslate()*a.moveDivider,s=-b.maxTranslate()*a.moveDivider;i>r?r=i:r>s&&(r=s),r=-r/a.moveDivider,b.updateProgress(r),b.setWrapperTranslate(r,!0)},dragStart:function(e){var a=b.scrollbar;a.isTouched=!0,e.preventDefault(),e.stopPropagation(),a.setDragPosition(e),clearTimeout(a.dragTimeout),a.track.transition(0),b.params.scrollbarHide&&a.track.css("opacity",1),b.wrapper.transition(100),a.drag.transition(100),b.emit("onScrollbarDragStart",b)},dragMove:function(e){var a=b.scrollbar;a.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),b.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),b.emit("onScrollbarDragMove",b))},dragEnd:function(e){var a=b.scrollbar;a.isTouched&&(a.isTouched=!1,b.params.scrollbarHide&&(clearTimeout(a.dragTimeout),a.dragTimeout=setTimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),b.emit("onScrollbarDragEnd",b),b.params.scrollbarSnapOnRelease&&b.slideReset())},enableDraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).on(b.touchEvents.start,e.dragStart),a(t).on(b.touchEvents.move,e.dragMove),a(t).on(b.touchEvents.end,e.dragEnd)},disableDraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).off(b.touchEvents.start,e.dragStart),a(t).off(b.touchEvents.move,e.dragMove),a(t).off(b.touchEvents.end,e.dragEnd)},set:function(){if(b.params.scrollbar){var e=b.scrollbar;e.track=a(b.params.scrollbar),b.params.uniqueNavElements&&"string"==typeof b.params.scrollbar&&e.track.length>1&&1===b.container.find(b.params.scrollbar).length&&(e.track=b.container.find(b.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=b.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=b.size/b.virtualSize,e.moveDivider=e.divider*(e.trackSize/b.size),e.dragSize=e.trackSize*e.divider,b.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",b.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(b.params.scrollbar){var e,a=b.scrollbar,t=(b.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*b.progress,b.rtl&&b.isHorizontal()?(e=-e,e>0?(t=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(t=a.trackSize+e)):0>e?(t=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(t=a.trackSize-e),b.isHorizontal()?(b.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translateX("+e+"px)"),a.drag[0].style.width=t+"px"):(b.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translateY("+e+"px)"),a.drag[0].style.height=t+"px"),b.params.scrollbarHide&&(clearTimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=setTimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},setTransition:function(e){b.params.scrollbar&&b.scrollbar.drag.transition(e)}},b.controller={LinearSpline:function(e,a){this.x=e,this.y=a,this.lastIndex=e.length-1;var t,r;this.x.length;this.interpolate=function(e){return e?(r=i(this.x,e),t=r-1,(e-this.x[t])*(this.y[r]-this.y[t])/(this.x[r]-this.x[t])+this.y[t]):0};var i=function(){var e,a,t;return function(r,i){for(a=-1,e=r.length;e-a>1;)r[t=e+a>>1]<=i?a=t:e=t;return e}}()},getInterpolateFunction:function(e){b.controller.spline||(b.controller.spline=b.params.loop?new b.controller.LinearSpline(b.slidesGrid,e.slidesGrid):new b.controller.LinearSpline(b.snapGrid,e.snapGrid))},setTranslate:function(e,a){function r(a){e=a.rtl&&"horizontal"===a.params.direction?-b.translate:b.translate,"slide"===b.params.controlBy&&(b.controller.getInterpolateFunction(a),s=-b.controller.spline.interpolate(-e)),s&&"container"!==b.params.controlBy||(i=(a.maxTranslate()-a.minTranslate())/(b.maxTranslate()-b.minTranslate()),s=(e-b.minTranslate())*i+a.minTranslate()),b.params.controlInverse&&(s=a.maxTranslate()-s),a.updateProgress(s),a.setWrapperTranslate(s,!1,b),a.updateActiveIndex()}var i,s,n=b.params.control;if(b.isArray(n))for(var o=0;ot;t++){var i=b.slides.eq(t),s=i.attr("data-hash");if(s===e&&!i.hasClass(b.params.slideDuplicateClass)){var n=i.index();b.slideTo(n,a,b.params.runCallbacksOnInit,!0)}}}},setHash:function(){b.hashnav.initialized&&b.params.hashnav&&(document.location.hash=b.slides.eq(b.activeIndex).attr("data-hash")||"")}},b.disableKeyboardControl=function(){b.params.keyboardControl=!1,a(document).off("keydown",p)},b.enableKeyboardControl=function(){b.params.keyboardControl=!0,a(document).on("keydown",p)},b.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},b.params.mousewheelControl){try{new window.WheelEvent("wheel"),b.mousewheel.event="wheel"}catch(N){(window.WheelEvent||b.container[0]&&"wheel"in b.container[0])&&(b.mousewheel.event="wheel")}!b.mousewheel.event&&window.WheelEvent,b.mousewheel.event||void 0===document.onmousewheel||(b.mousewheel.event="mousewheel"),b.mousewheel.event||(b.mousewheel.event="DOMMouseScroll")}b.disableMousewheelControl=function(){return b.mousewheel.event?(b.container.off(b.mousewheel.event,d),!0):!1},b.enableMousewheelControl=function(){return b.mousewheel.event?(b.container.on(b.mousewheel.event,d),!0):!1},b.parallax={setTranslate:function(){b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){u(this,b.progress)}),b.slides.each(function(){var e=a(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);u(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=b.params.speed),b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),r=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),t.transition(r)})}},b._plugins=[];for(var R in b.plugins){var W=b.plugins[R](b,b.params[R]);W&&b._plugins.push(W)}return b.callPlugins=function(e){for(var a=0;a'),notify:function(e){var a=b.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},init:function(){b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.a11y.makeFocusable(b.nextButton),b.a11y.addRole(b.nextButton,"button"),b.a11y.addLabel(b.nextButton,b.params.nextSlideMessage)),b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.a11y.makeFocusable(b.prevButton),b.a11y.addRole(b.prevButton,"button"),b.a11y.addLabel(b.prevButton,b.params.prevSlideMessage)),a(b.container).append(b.a11y.liveRegion)},initPagination:function(){b.params.pagination&&b.params.paginationClickable&&b.bullets&&b.bullets.length&&b.bullets.each(function(){var e=a(this);b.a11y.makeFocusable(e),b.a11y.addRole(e,"button"),b.a11y.addLabel(e,b.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){b.a11y.liveRegion&&b.a11y.liveRegion.length>0&&b.a11y.liveRegion.remove()}},b.init=function(){b.params.loop&&b.createLoop(),b.updateContainerSize(),b.updateSlidesSize(),b.updatePagination(),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.set(),b.params.scrollbarDraggable&&b.scrollbar.enableDraggable()),"slide"!==b.params.effect&&b.effects[b.params.effect]&&(b.params.loop||b.updateProgress(),b.effects[b.params.effect].setTranslate()),b.params.loop?b.slideTo(b.params.initialSlide+b.loopedSlides,0,b.params.runCallbacksOnInit):(b.slideTo(b.params.initialSlide,0,b.params.runCallbacksOnInit),0===b.params.initialSlide&&(b.parallax&&b.params.parallax&&b.parallax.setTranslate(),b.lazy&&b.params.lazyLoading&&(b.lazy.load(),b.lazy.initialImageLoaded=!0))),b.attachEvents(),b.params.observer&&b.support.observer&&b.initObservers(),b.params.preloadImages&&!b.params.lazyLoading&&b.preloadImages(),b.params.autoplay&&b.startAutoplay(),b.params.keyboardControl&&b.enableKeyboardControl&&b.enableKeyboardControl(),b.params.mousewheelControl&&b.enableMousewheelControl&&b.enableMousewheelControl(), +b.params.hashnav&&b.hashnav&&b.hashnav.init(),b.params.a11y&&b.a11y&&b.a11y.init(),b.emit("onInit",b)},b.cleanupStyles=function(){b.container.removeClass(b.classNames.join(" ")).removeAttr("style"),b.wrapper.removeAttr("style"),b.slides&&b.slides.length&&b.slides.removeClass([b.params.slideVisibleClass,b.params.slideActiveClass,b.params.slideNextClass,b.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),b.paginationContainer&&b.paginationContainer.length&&b.paginationContainer.removeClass(b.params.paginationHiddenClass),b.bullets&&b.bullets.length&&b.bullets.removeClass(b.params.bulletActiveClass),b.params.prevButton&&a(b.params.prevButton).removeClass(b.params.buttonDisabledClass),b.params.nextButton&&a(b.params.nextButton).removeClass(b.params.buttonDisabledClass),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.track&&b.scrollbar.track.length&&b.scrollbar.track.removeAttr("style"),b.scrollbar.drag&&b.scrollbar.drag.length&&b.scrollbar.drag.removeAttr("style"))},b.destroy=function(e,a){b.detachEvents(),b.stopAutoplay(),b.params.scrollbar&&b.scrollbar&&b.params.scrollbarDraggable&&b.scrollbar.disableDraggable(),b.params.loop&&b.destroyLoop(),a&&b.cleanupStyles(),b.disconnectObservers(),b.params.keyboardControl&&b.disableKeyboardControl&&b.disableKeyboardControl(),b.params.mousewheelControl&&b.disableMousewheelControl&&b.disableMousewheelControl(),b.params.a11y&&b.a11y&&b.a11y.destroy(),b.emit("onDestroy"),e!==!1&&(b=null)},b.init(),b}};t.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),i=!t&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||i||r,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),t=0;t=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf(":~]/)?(t||document).querySelectorAll(a):[document.getElementById(a.split("#")[1])],i=0;i0&&a[0].nodeType)for(i=0;i0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getBoundingClientRect(),t=document.body,r=e.clientTop||t.clientTop||0,i=e.clientLeft||t.clientLeft||0,s=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:a.top+s-r,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;tr-1?new e([]):0>a?(t=r+a,new e(0>t?[]:[this[t]])):new e([this[a]])},append:function(a){var t,r;for(t=0;t=0;r--)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(a instanceof e)for(r=0;r1)for(var i=0;i1)for(var i=0;i0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],i=this[0];if(!i)return new e([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;t?a(s).is(t)&&r.push(s):r.push(s),i=s}return new e(r)},prev:function(t){return new e(this.length>0?t?this[0].previousElementSibling&&a(this[0].previousElementSibling).is(t)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(t){var r=[],i=this[0];if(!i)return new e([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;t?a(s).is(t)&&r.push(s):r.push(s),i=s}return new e(r)},parent:function(e){for(var t=[],r=0;r1){for(var f=Array(d),h=0;h1){for(var g=Array(m),v=0;v=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var n,r,a;if(t.singleton){var i=w++;n=v||(v=s(t)),r=p.bind(null,n,i,!1),a=p.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=d.bind(null,n),a=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=c.bind(null,n),a=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function p(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(a),i&&URL.revokeObjectURL(i)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,w=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=a(e);return r(n,t),function(e){for(var i=[],o=0;o-1?void 0:o(!1),!u.plugins[n]){t.extractEvents?void 0:o(!1),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)?void 0:o(!1)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?o(!1):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]?o(!1):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(1),s=null,l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?o(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];l.hasOwnProperty(n)&&l[n]===a||(l[n]?o(!1):void 0,l[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,g)||(e[g]=h++,d[e[g]]={}),d[e[g]]}var a,i=n(3),o=n(10),s=n(27),l=n(150),u=n(80),p=n(178),c=n(49),d={},f=!1,h=0,m={topAbort:"abort",topAnimationEnd:p("animationend")||"animationend",topAnimationIteration:p("animationiteration")||"animationiteration",topAnimationStart:p("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:p("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},g="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=s.registrationNameDependencies[e],l=o.topLevelTypes,u=0;u":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t,n){e.exports=n.p+"1c93a187f292ce38cc70b36f0b994b64.png"},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function a(e,t,n){p.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):v(e,t,n)}function o(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var a=t;;){var i=a.nextSibling;if(v(e,a,r),a===n)break;a=i}}function l(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,a=e.nextSibling;a===t?n&&v(r,document.createTextNode(n),a):n?(g(a,n),l(r,a,t)):l(r,e,t)}var p=n(19),c=n(122),d=n(73),f=n(6),h=n(44),m=n(50),g=n(87),v=h(function(e,t,n){e.insertBefore(t,n)}),w={dangerouslyReplaceNodeWithMarkup:c.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=a[e];return!!r&&!!n[r]}function r(e){return n}var a={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[a]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,a="@@iterator";e.exports=n},function(e,t,n){"use strict";/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */ +function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,i=n(5);i.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(5),a=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,o=n(44),s=o(function(e,t){e.innerHTML=t});if(r.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(s=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=s},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var a=typeof e,i=typeof t;return"string"===a||"number"===a?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";function r(e){return h[e]}function a(e,t){return e&&"object"==typeof e&&null!=e.key?o(e.key):t.toString(36)}function i(e){return(""+e).replace(m,r)}function o(e){return"$"+i(e)}function s(e,t,n,r){var i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||u.isValidElement(e))return n(r,e,""===t?d+a(e,0):t),1;var l,h,m=0,g=""===t?d:t+f;if(Array.isArray(e))for(var v=0;v":o.innerHTML="<"+e+">",s[e]=!o.firstChild),s[e]?d[e]:null}var a=n(5),i=n(1),o=a.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],u=[1,"","
"],p=[3,"","
"],c=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:p,th:p},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=c,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var o=0;o0&&0===x.container.parents(".swiper-slide-active").length)return;var r={left:window.pageXOffset,top:window.pageYOffset},a=window.innerWidth,i=window.innerHeight,o=x.container.offset();x.rtl&&(o.left=o.left-x.container[0].scrollLeft);for(var s=[[o.left,o.top],[o.left+x.width,o.top],[o.left,o.top+x.height],[o.left+x.width,o.top+x.height]],l=0;l=r.left&&u[0]<=r.left+a&&u[1]>=r.top&&u[1]<=r.top+i&&(n=!0)}if(!n)return}x.isHorizontal()?((37===t||39===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!x.rtl||37===t&&x.rtl)&&x.slideNext(),(37===t&&!x.rtl||39===t&&x.rtl)&&x.slidePrev()):((38===t||40===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&x.slideNext(),38===t&&x.slidePrev())}}function c(e){e.originalEvent&&(e=e.originalEvent);var t=x.mousewheel.event,n=0,r=x.rtl?-1:1;if("mousewheel"===t)if(x.params.mousewheelForceToAxis)if(x.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;n=e.wheelDeltaX*r}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;n=e.wheelDeltaY}else n=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*r:-e.wheelDeltaY;else if("DOMMouseScroll"===t)n=-e.detail;else if("wheel"===t)if(x.params.mousewheelForceToAxis)if(x.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;n=-e.deltaX*r}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;n=-e.deltaY}else n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*r:-e.deltaY;if(0!==n){if(x.params.mousewheelInvert&&(n=-n),x.params.freeMode){var a=x.getWrapperTranslate()+n*x.params.mousewheelSensitivity,i=x.isBeginning,o=x.isEnd;if(a>=x.minTranslate()&&(a=x.minTranslate()),a<=x.maxTranslate()&&(a=x.maxTranslate()),x.setWrapperTransition(0),x.setWrapperTranslate(a),x.updateProgress(),x.updateActiveIndex(),(!i&&x.isBeginning||!o&&x.isEnd)&&x.updateClasses(),x.params.freeModeSticky?(clearTimeout(x.mousewheel.timeout),x.mousewheel.timeout=setTimeout(function(){x.slideReset()},300)):x.params.lazyLoading&&x.lazy&&x.lazy.load(),0===a||a===x.maxTranslate())return}else{if((new window.Date).getTime()-x.mousewheel.lastScrollTime>60)if(0>n)if(x.isEnd&&!x.params.loop||x.animating){if(x.params.mousewheelReleaseOnEdges)return!0}else x.slideNext();else if(x.isBeginning&&!x.params.loop||x.animating){if(x.params.mousewheelReleaseOnEdges)return!0}else x.slidePrev();x.mousewheel.lastScrollTime=(new window.Date).getTime()}return x.params.autoplay&&x.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function d(e,t){e=n(e);var r,a,i,o=x.rtl?-1:1;r=e.attr("data-swiper-parallax")||"0",a=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),a||i?(a=a||"0",i=i||"0"):x.isHorizontal()?(a=r,i="0"):(i=r,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*t*o+"%":a*t*o+"px",i=i.indexOf("%")>=0?parseInt(i,10)*t+"%":i*t+"px",e.transform("translate3d("+a+", "+i+",0px)")}function f(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof l))return new l(e,r);var h={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},m=r&&r.virtualTranslate;r=r||{};var g={};for(var v in r)if("object"!=t(r[v])||null===r[v]||r[v].nodeType||r[v]===window||r[v]===document||"undefined"!=typeof a&&r[v]instanceof a||"undefined"!=typeof jQuery&&r[v]instanceof jQuery)g[v]=r[v];else{g[v]={};for(var w in r[v])g[v][w]=r[v][w]}for(var y in h)if("undefined"==typeof r[y])r[y]=h[y];else if("object"==t(r[y]))for(var b in h[y])"undefined"==typeof r[y][b]&&(r[y][b]=h[y][b]);var x=this;if(x.params=r,x.originalParams=g,x.classNames=[],"undefined"!=typeof n&&"undefined"!=typeof a&&(n=a),("undefined"!=typeof n||(n="undefined"==typeof a?window.Dom7||window.Zepto||window.jQuery:a))&&(x.$=n,x.currentBreakpoint=void 0,x.getActiveBreakpoint=function(){if(!x.params.breakpoints)return!1;var e,t=!1,n=[];for(e in x.params.breakpoints)x.params.breakpoints.hasOwnProperty(e)&&n.push(e);n.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var r=0;r=window.innerWidth&&!t&&(t=e);return t||"max"},x.setBreakpoint=function(){var e=x.getActiveBreakpoint();if(e&&x.currentBreakpoint!==e){var t=e in x.params.breakpoints?x.params.breakpoints[e]:x.originalParams,n=x.params.loop&&t.slidesPerView!==x.params.slidesPerView;for(var r in t)x.params[r]=t[r];x.currentBreakpoint=e,n&&x.destroyLoop&&x.reLoop(!0)}},x.params.breakpoints&&x.setBreakpoint(),x.container=n(e),0!==x.container.length)){if(x.container.length>1){var C=[];return x.container.each(function(){C.push(new l(this,r))}),C}x.container[0].swiper=x,x.container.data("swiper",x),x.classNames.push("swiper-container-"+x.params.direction),x.params.freeMode&&x.classNames.push("swiper-container-free-mode"),x.support.flexbox||(x.classNames.push("swiper-container-no-flexbox"),x.params.slidesPerColumn=1),x.params.autoHeight&&x.classNames.push("swiper-container-autoheight"),(x.params.parallax||x.params.watchSlidesVisibility)&&(x.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(x.params.effect)>=0&&(x.support.transforms3d?(x.params.watchSlidesProgress=!0,x.classNames.push("swiper-container-3d")):x.params.effect="slide"),"slide"!==x.params.effect&&x.classNames.push("swiper-container-"+x.params.effect),"cube"===x.params.effect&&(x.params.resistanceRatio=0,x.params.slidesPerView=1,x.params.slidesPerColumn=1,x.params.slidesPerGroup=1,x.params.centeredSlides=!1,x.params.spaceBetween=0,x.params.virtualTranslate=!0,x.params.setWrapperSize=!1),("fade"===x.params.effect||"flip"===x.params.effect)&&(x.params.slidesPerView=1,x.params.slidesPerColumn=1,x.params.slidesPerGroup=1,x.params.watchSlidesProgress=!0,x.params.spaceBetween=0,x.params.setWrapperSize=!1,"undefined"==typeof m&&(x.params.virtualTranslate=!0)),x.params.grabCursor&&x.support.touch&&(x.params.grabCursor=!1),x.wrapper=x.container.children("."+x.params.wrapperClass),x.params.pagination&&(x.paginationContainer=n(x.params.pagination),x.params.uniqueNavElements&&"string"==typeof x.params.pagination&&x.paginationContainer.length>1&&1===x.container.find(x.params.pagination).length&&(x.paginationContainer=x.container.find(x.params.pagination)),"bullets"===x.params.paginationType&&x.params.paginationClickable?x.paginationContainer.addClass("swiper-pagination-clickable"):x.params.paginationClickable=!1,x.paginationContainer.addClass("swiper-pagination-"+x.params.paginationType)),(x.params.nextButton||x.params.prevButton)&&(x.params.nextButton&&(x.nextButton=n(x.params.nextButton),x.params.uniqueNavElements&&"string"==typeof x.params.nextButton&&x.nextButton.length>1&&1===x.container.find(x.params.nextButton).length&&(x.nextButton=x.container.find(x.params.nextButton))),x.params.prevButton&&(x.prevButton=n(x.params.prevButton),x.params.uniqueNavElements&&"string"==typeof x.params.prevButton&&x.prevButton.length>1&&1===x.container.find(x.params.prevButton).length&&(x.prevButton=x.container.find(x.params.prevButton)))),x.isHorizontal=function(){return"horizontal"===x.params.direction},x.rtl=x.isHorizontal()&&("rtl"===x.container[0].dir.toLowerCase()||"rtl"===x.container.css("direction")),x.rtl&&x.classNames.push("swiper-container-rtl"),x.rtl&&(x.wrongRTL="-webkit-box"===x.wrapper.css("display")),x.params.slidesPerColumn>1&&x.classNames.push("swiper-container-multirow"),x.device.android&&x.classNames.push("swiper-container-android"),x.container.addClass(x.classNames.join(" ")),x.translate=0,x.progress=0,x.velocity=0,x.lockSwipeToNext=function(){x.params.allowSwipeToNext=!1},x.lockSwipeToPrev=function(){x.params.allowSwipeToPrev=!1},x.lockSwipes=function(){x.params.allowSwipeToNext=x.params.allowSwipeToPrev=!1},x.unlockSwipeToNext=function(){x.params.allowSwipeToNext=!0},x.unlockSwipeToPrev=function(){x.params.allowSwipeToPrev=!0},x.unlockSwipes=function(){x.params.allowSwipeToNext=x.params.allowSwipeToPrev=!0},x.params.grabCursor&&(x.container[0].style.cursor="move",x.container[0].style.cursor="-webkit-grab",x.container[0].style.cursor="-moz-grab",x.container[0].style.cursor="grab"),x.imagesToLoad=[],x.imagesLoaded=0,x.loadImage=function(e,t,n,r,a){function i(){a&&a()}var o;e.complete&&r?i():t?(o=new window.Image,o.onload=i,o.onerror=i,n&&(o.srcset=n),t&&(o.src=t)):i()},x.preloadImages=function(){function e(){"undefined"!=typeof x&&null!==x&&(void 0!==x.imagesLoaded&&x.imagesLoaded++,x.imagesLoaded===x.imagesToLoad.length&&(x.params.updateOnImagesReady&&x.update(),x.emit("onImagesReady",x)))}x.imagesToLoad=x.container.find("img");for(var t=0;t=0&&(t=parseFloat(t.replace("%",""))/100*x.size),x.virtualSize=-t,x.rtl?x.slides.css({marginLeft:"",marginTop:""}):x.slides.css({marginRight:"",marginBottom:""});var o;x.params.slidesPerColumn>1&&(o=Math.floor(x.slides.length/x.params.slidesPerColumn)===x.slides.length/x.params.slidesPerColumn?x.slides.length:Math.ceil(x.slides.length/x.params.slidesPerColumn)*x.params.slidesPerColumn,"auto"!==x.params.slidesPerView&&"row"===x.params.slidesPerColumnFill&&(o=Math.max(o,x.params.slidesPerView*x.params.slidesPerColumn)));var s,l=x.params.slidesPerColumn,u=o/l,p=u-(x.params.slidesPerColumn*u-x.slides.length);for(e=0;e1){var d,f,h;"column"===x.params.slidesPerColumnFill?(f=Math.floor(e/l),h=e-f*l,(f>p||f===p&&h===l-1)&&++h>=l&&(h=0,f++),d=f+h*o/l,c.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(h=Math.floor(e/u),f=e-h*u),c.css({"margin-top":0!==h&&x.params.spaceBetween&&x.params.spaceBetween+"px"}).attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==c.css("display")&&("auto"===x.params.slidesPerView?(s=x.isHorizontal()?c.outerWidth(!0):c.outerHeight(!0),x.params.roundLengths&&(s=i(s))):(s=(x.size-(x.params.slidesPerView-1)*t)/x.params.slidesPerView,x.params.roundLengths&&(s=i(s)),x.isHorizontal()?x.slides[e].style.width=s+"px":x.slides[e].style.height=s+"px"),x.slides[e].swiperSlideSize=s,x.slidesSizesGrid.push(s),x.params.centeredSlides?(n=n+s/2+r/2+t,0===e&&(n=n-x.size/2-t),Math.abs(n)<.001&&(n=0),a%x.params.slidesPerGroup===0&&x.snapGrid.push(n),x.slidesGrid.push(n)):(a%x.params.slidesPerGroup===0&&x.snapGrid.push(n),x.slidesGrid.push(n),n=n+s+t),x.virtualSize+=s+t,r=s,a++)}x.virtualSize=Math.max(x.virtualSize,x.size)+x.params.slidesOffsetAfter;var m;if(x.rtl&&x.wrongRTL&&("slide"===x.params.effect||"coverflow"===x.params.effect)&&x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}),(!x.support.flexbox||x.params.setWrapperSize)&&(x.isHorizontal()?x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}):x.wrapper.css({height:x.virtualSize+x.params.spaceBetween+"px"})),x.params.slidesPerColumn>1&&(x.virtualSize=(s+x.params.spaceBetween)*o,x.virtualSize=Math.ceil(x.virtualSize/x.params.slidesPerColumn)-x.params.spaceBetween,x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}),x.params.centeredSlides)){for(m=[],e=0;e1&&x.snapGrid.push(x.virtualSize-x.size)}0===x.snapGrid.length&&(x.snapGrid=[0]),0!==x.params.spaceBetween&&(x.isHorizontal()?x.rtl?x.slides.css({marginLeft:t+"px"}):x.slides.css({marginRight:t+"px"}):x.slides.css({marginBottom:t+"px"})),x.params.watchSlidesProgress&&x.updateSlidesOffset()}},x.updateSlidesOffset=function(){for(var e=0;e=0&&i0&&o<=x.size||0>=i&&o>=x.size;s&&x.slides.eq(n).addClass(x.params.slideVisibleClass)}r.progress=x.rtl?-a:a}}},x.updateProgress=function(e){"undefined"==typeof e&&(e=x.translate||0);var t=x.maxTranslate()-x.minTranslate(),n=x.isBeginning,r=x.isEnd;0===t?(x.progress=0,x.isBeginning=x.isEnd=!0):(x.progress=(e-x.minTranslate())/t,x.isBeginning=x.progress<=0,x.isEnd=x.progress>=1),x.isBeginning&&!n&&x.emit("onReachBeginning",x),x.isEnd&&!r&&x.emit("onReachEnd",x),x.params.watchSlidesProgress&&x.updateSlidesProgress(e),x.emit("onProgress",x,x.progress)},x.updateActiveIndex=function(){var e,t,n,r=x.rtl?x.translate:-x.translate;for(t=0;t=x.slidesGrid[t]&&r=x.slidesGrid[t]&&r=x.slidesGrid[t]&&(e=t);(0>e||"undefined"==typeof e)&&(e=0),n=Math.floor(e/x.params.slidesPerGroup),n>=x.snapGrid.length&&(n=x.snapGrid.length-1),e!==x.activeIndex&&(x.snapIndex=n,x.previousIndex=x.activeIndex,x.activeIndex=e,x.updateClasses())},x.updateClasses=function(){x.slides.removeClass(x.params.slideActiveClass+" "+x.params.slideNextClass+" "+x.params.slidePrevClass);var e=x.slides.eq(x.activeIndex);e.addClass(x.params.slideActiveClass);var t=e.next("."+x.params.slideClass).addClass(x.params.slideNextClass);x.params.loop&&0===t.length&&x.slides.eq(0).addClass(x.params.slideNextClass);var r=e.prev("."+x.params.slideClass).addClass(x.params.slidePrevClass);if(x.params.loop&&0===r.length&&x.slides.eq(-1).addClass(x.params.slidePrevClass),x.paginationContainer&&x.paginationContainer.length>0){var a,i=x.params.loop?Math.ceil((x.slides.length-2*x.loopedSlides)/x.params.slidesPerGroup):x.snapGrid.length;if(x.params.loop?(a=Math.ceil((x.activeIndex-x.loopedSlides)/x.params.slidesPerGroup),a>x.slides.length-1-2*x.loopedSlides&&(a-=x.slides.length-2*x.loopedSlides),a>i-1&&(a-=i),0>a&&"bullets"!==x.params.paginationType&&(a=i+a)):a="undefined"!=typeof x.snapIndex?x.snapIndex:x.activeIndex||0,"bullets"===x.params.paginationType&&x.bullets&&x.bullets.length>0&&(x.bullets.removeClass(x.params.bulletActiveClass),x.paginationContainer.length>1?x.bullets.each(function(){n(this).index()===a&&n(this).addClass(x.params.bulletActiveClass)}):x.bullets.eq(a).addClass(x.params.bulletActiveClass)),"fraction"===x.params.paginationType&&(x.paginationContainer.find("."+x.params.paginationCurrentClass).text(a+1),x.paginationContainer.find("."+x.params.paginationTotalClass).text(i)),"progress"===x.params.paginationType){var o=(a+1)/i,s=o,l=1;x.isHorizontal()||(l=o,s=1),x.paginationContainer.find("."+x.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+s+") scaleY("+l+")").transition(x.params.speed)}"custom"===x.params.paginationType&&x.params.paginationCustomRender&&(x.paginationContainer.html(x.params.paginationCustomRender(x,a+1,i)),x.emit("onPaginationRendered",x,x.paginationContainer[0]))}x.params.loop||(x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.isBeginning?(x.prevButton.addClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.disable(x.prevButton)):(x.prevButton.removeClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.enable(x.prevButton))),x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.isEnd?(x.nextButton.addClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.disable(x.nextButton)):(x.nextButton.removeClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.enable(x.nextButton))))},x.updatePagination=function(){if(x.params.pagination&&x.paginationContainer&&x.paginationContainer.length>0){var e="";if("bullets"===x.params.paginationType){for(var t=x.params.loop?Math.ceil((x.slides.length-2*x.loopedSlides)/x.params.slidesPerGroup):x.snapGrid.length,n=0;t>n;n++)e+=x.params.paginationBulletRender?x.params.paginationBulletRender(n,x.params.bulletClass):"<"+x.params.paginationElement+' class="'+x.params.bulletClass+'">";x.paginationContainer.html(e),x.bullets=x.paginationContainer.find("."+x.params.bulletClass),x.params.paginationClickable&&x.params.a11y&&x.a11y&&x.a11y.initPagination()}"fraction"===x.params.paginationType&&(e=x.params.paginationFractionRender?x.params.paginationFractionRender(x,x.params.paginationCurrentClass,x.params.paginationTotalClass):' / ',x.paginationContainer.html(e)),"progress"===x.params.paginationType&&(e=x.params.paginationProgressRender?x.params.paginationProgressRender(x,x.params.paginationProgressbarClass):'',x.paginationContainer.html(e)),"custom"!==x.params.paginationType&&x.emit("onPaginationRendered",x,x.paginationContainer[0])}},x.update=function(e){function t(){r=Math.min(Math.max(x.translate,x.maxTranslate()),x.minTranslate()),x.setWrapperTranslate(r),x.updateActiveIndex(),x.updateClasses()}if(x.updateContainerSize(),x.updateSlidesSize(),x.updateProgress(),x.updatePagination(),x.updateClasses(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set(),e){var n,r;x.controller&&x.controller.spline&&(x.controller.spline=void 0),x.params.freeMode?(t(),x.params.autoHeight&&x.updateAutoHeight()):(n=("auto"===x.params.slidesPerView||x.params.slidesPerView>1)&&x.isEnd&&!x.params.centeredSlides?x.slideTo(x.slides.length-1,0,!1,!0):x.slideTo(x.activeIndex,0,!1,!0),n||t())}else x.params.autoHeight&&x.updateAutoHeight()},x.onResize=function(e){x.params.breakpoints&&x.setBreakpoint();var t=x.params.allowSwipeToPrev,n=x.params.allowSwipeToNext;x.params.allowSwipeToPrev=x.params.allowSwipeToNext=!0,x.updateContainerSize(),x.updateSlidesSize(),("auto"===x.params.slidesPerView||x.params.freeMode||e)&&x.updatePagination(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set(),x.controller&&x.controller.spline&&(x.controller.spline=void 0);var r=!1;if(x.params.freeMode){var a=Math.min(Math.max(x.translate,x.maxTranslate()),x.minTranslate());x.setWrapperTranslate(a),x.updateActiveIndex(),x.updateClasses(),x.params.autoHeight&&x.updateAutoHeight()}else x.updateClasses(),r=("auto"===x.params.slidesPerView||x.params.slidesPerView>1)&&x.isEnd&&!x.params.centeredSlides?x.slideTo(x.slides.length-1,0,!1,!0):x.slideTo(x.activeIndex,0,!1,!0);x.params.lazyLoading&&!r&&x.lazy&&x.lazy.load(),x.params.allowSwipeToPrev=t,x.params.allowSwipeToNext=n};var E=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?E=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(E=["MSPointerDown","MSPointerMove","MSPointerUp"]),x.touchEvents={start:x.support.touch||!x.params.simulateTouch?"touchstart":E[0],move:x.support.touch||!x.params.simulateTouch?"touchmove":E[1],end:x.support.touch||!x.params.simulateTouch?"touchend":E[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===x.params.touchEventsTarget?x.container:x.wrapper).addClass("swiper-wp8-"+x.params.direction),x.initEvents=function(e){var t=e?"off":"on",n=e?"removeEventListener":"addEventListener",a="container"===x.params.touchEventsTarget?x.container[0]:x.wrapper[0],i=x.support.touch?a:document,o=!!x.params.nested;x.browser.ie?(a[n](x.touchEvents.start,x.onTouchStart,!1),i[n](x.touchEvents.move,x.onTouchMove,o),i[n](x.touchEvents.end,x.onTouchEnd,!1)):(x.support.touch&&(a[n](x.touchEvents.start,x.onTouchStart,!1),a[n](x.touchEvents.move,x.onTouchMove,o),a[n](x.touchEvents.end,x.onTouchEnd,!1)),!r.simulateTouch||x.device.ios||x.device.android||(a[n]("mousedown",x.onTouchStart,!1),document[n]("mousemove",x.onTouchMove,o),document[n]("mouseup",x.onTouchEnd,!1))),window[n]("resize",x.onResize),x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.nextButton[t]("click",x.onClickNext),x.params.a11y&&x.a11y&&x.nextButton[t]("keydown",x.a11y.onEnterKey)),x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.prevButton[t]("click",x.onClickPrev),x.params.a11y&&x.a11y&&x.prevButton[t]("keydown",x.a11y.onEnterKey)),x.params.pagination&&x.params.paginationClickable&&(x.paginationContainer[t]("click","."+x.params.bulletClass,x.onClickIndex),x.params.a11y&&x.a11y&&x.paginationContainer[t]("keydown","."+x.params.bulletClass,x.a11y.onEnterKey)),(x.params.preventClicks||x.params.preventClicksPropagation)&&a[n]("click",x.preventClicks,!0)},x.attachEvents=function(){x.initEvents()},x.detachEvents=function(){x.initEvents(!0)},x.allowClick=!0,x.preventClicks=function(e){x.allowClick||(x.params.preventClicks&&e.preventDefault(),x.params.preventClicksPropagation&&x.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},x.onClickNext=function(e){e.preventDefault(),(!x.isEnd||x.params.loop)&&x.slideNext()},x.onClickPrev=function(e){e.preventDefault(),(!x.isBeginning||x.params.loop)&&x.slidePrev()},x.onClickIndex=function(e){e.preventDefault();var t=n(this).index()*x.params.slidesPerGroup;x.params.loop&&(t+=x.loopedSlides), +x.slideTo(t)},x.updateClickedSlide=function(e){var t=s(e,"."+x.params.slideClass),r=!1;if(t)for(var a=0;ax.slides.length-x.loopedSlides+x.params.slidesPerView/2?(x.fixLoop(),o=x.wrapper.children("."+x.params.slideClass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){x.slideTo(o)},0)):x.slideTo(o):o>x.slides.length-x.params.slidesPerView?(x.fixLoop(),o=x.wrapper.children("."+x.params.slideClass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){x.slideTo(o)},0)):x.slideTo(o)}else x.slideTo(o)}};var T,k,S,_,M,P,N,I,D,R,A="input, select, textarea, button",O=Date.now(),L=[];x.animating=!1,x.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var z,B;if(x.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),z="touchstart"===e.type,z||!("which"in e)||3!==e.which){if(x.params.noSwiping&&s(e,"."+x.params.noSwipingClass))return void(x.allowClick=!0);if(!x.params.swipeHandler||s(e,x.params.swipeHandler)){var t=x.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r=x.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(x.device.ios&&x.params.iOSEdgeSwipeDetection&&t<=x.params.iOSEdgeSwipeThreshold)){if(T=!0,k=!1,S=!0,M=void 0,B=void 0,x.touches.startX=t,x.touches.startY=r,_=Date.now(),x.allowClick=!0,x.updateContainerSize(),x.swipeDirection=void 0,x.params.threshold>0&&(I=!1),"touchstart"!==e.type){var a=!0;n(e.target).is(A)&&(a=!1),document.activeElement&&n(document.activeElement).is(A)&&document.activeElement.blur(),a&&e.preventDefault()}x.emit("onTouchStart",x,e)}}}},x.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!z||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return x.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(x.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(x.params.onlyExternal)return x.allowClick=!1,void(T&&(x.touches.startX=x.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,x.touches.startY=x.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,_=Date.now()));if(z&&document.activeElement&&e.target===document.activeElement&&n(e.target).is(A))return k=!0,void(x.allowClick=!1);if(S&&x.emit("onTouchMove",x,e),!(e.targetTouches&&e.targetTouches.length>1)){if(x.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,x.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof M){var t=180*Math.atan2(Math.abs(x.touches.currentY-x.touches.startY),Math.abs(x.touches.currentX-x.touches.startX))/Math.PI;M=x.isHorizontal()?t>x.params.touchAngle:90-t>x.params.touchAngle}if(M&&x.emit("onTouchMoveOpposite",x,e),"undefined"==typeof B&&x.browser.ieTouch&&(x.touches.currentX!==x.touches.startX||x.touches.currentY!==x.touches.startY)&&(B=!0),T){if(M)return void(T=!1);if(B||!x.browser.ieTouch){x.allowClick=!1,x.emit("onSliderMove",x,e),e.preventDefault(),x.params.touchMoveStopPropagation&&!x.params.nested&&e.stopPropagation(),k||(r.loop&&x.fixLoop(),N=x.getWrapperTranslate(),x.setWrapperTransition(0),x.animating&&x.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),x.params.autoplay&&x.autoplaying&&(x.params.autoplayDisableOnInteraction?x.stopAutoplay():x.pauseAutoplay()),R=!1,x.params.grabCursor&&(x.container[0].style.cursor="move",x.container[0].style.cursor="-webkit-grabbing",x.container[0].style.cursor="-moz-grabbin",x.container[0].style.cursor="grabbing")),k=!0;var a=x.touches.diff=x.isHorizontal()?x.touches.currentX-x.touches.startX:x.touches.currentY-x.touches.startY;a*=x.params.touchRatio,x.rtl&&(a=-a),x.swipeDirection=a>0?"prev":"next",P=a+N;var i=!0;if(a>0&&P>x.minTranslate()?(i=!1,x.params.resistance&&(P=x.minTranslate()-1+Math.pow(-x.minTranslate()+N+a,x.params.resistanceRatio))):0>a&&PP&&(P=N),!x.params.allowSwipeToPrev&&"prev"===x.swipeDirection&&P>N&&(P=N),x.params.followFinger){if(x.params.threshold>0){if(!(Math.abs(a)>x.params.threshold||I))return void(P=N);if(!I)return I=!0,x.touches.startX=x.touches.currentX,x.touches.startY=x.touches.currentY,P=N,void(x.touches.diff=x.isHorizontal()?x.touches.currentX-x.touches.startX:x.touches.currentY-x.touches.startY)}(x.params.freeMode||x.params.watchSlidesProgress)&&x.updateActiveIndex(),x.params.freeMode&&(0===L.length&&L.push({position:x.touches[x.isHorizontal()?"startX":"startY"],time:_}),L.push({position:x.touches[x.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),x.updateProgress(P),x.setWrapperTranslate(P)}}}}}},x.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),S&&x.emit("onTouchEnd",x,e),S=!1,T){x.params.grabCursor&&k&&T&&(x.container[0].style.cursor="move",x.container[0].style.cursor="-webkit-grab",x.container[0].style.cursor="-moz-grab",x.container[0].style.cursor="grab");var t=Date.now(),r=t-_;if(x.allowClick&&(x.updateClickedSlide(e),x.emit("onTap",x,e),300>r&&t-O>300&&(D&&clearTimeout(D),D=setTimeout(function(){x&&(x.params.paginationHide&&x.paginationContainer.length>0&&!n(e.target).hasClass(x.params.bulletClass)&&x.paginationContainer.toggleClass(x.params.paginationHiddenClass),x.emit("onClick",x,e))},300)),300>r&&300>t-O&&(D&&clearTimeout(D),x.emit("onDoubleTap",x,e))),O=Date.now(),setTimeout(function(){x&&(x.allowClick=!0)},0),!T||!k||!x.swipeDirection||0===x.touches.diff||P===N)return void(T=k=!1);T=k=!1;var a;if(a=x.params.followFinger?x.rtl?x.translate:-x.translate:-P,x.params.freeMode){if(a<-x.minTranslate())return void x.slideTo(x.activeIndex);if(a>-x.maxTranslate())return void(x.slides.length1){var i=L.pop(),o=L.pop(),s=i.position-o.position,l=i.time-o.time;x.velocity=s/l,x.velocity=x.velocity/2,Math.abs(x.velocity)150||(new window.Date).getTime()-i.time>300)&&(x.velocity=0)}else x.velocity=0;L.length=0;var u=1e3*x.params.freeModeMomentumRatio,p=x.velocity*u,c=x.translate+p;x.rtl&&(c=-c);var d,f=!1,h=20*Math.abs(x.velocity)*x.params.freeModeMomentumBounceRatio;if(cx.minTranslate())x.params.freeModeMomentumBounce?(c-x.minTranslate()>h&&(c=x.minTranslate()+h),d=x.minTranslate(),f=!0,R=!0):c=x.minTranslate();else if(x.params.freeModeSticky){var m,g=0;for(g=0;g-c){m=g;break}c=Math.abs(x.snapGrid[m]-c)=x.params.longSwipesMs)&&(x.updateProgress(),x.updateActiveIndex()))}var v,w=0,y=x.slidesSizesGrid[0];for(v=0;v=x.slidesGrid[v]&&a=x.slidesGrid[v]&&(w=v,y=x.slidesGrid[x.slidesGrid.length-1]-x.slidesGrid[x.slidesGrid.length-2]);var b=(a-x.slidesGrid[w])/y;if(r>x.params.longSwipesMs){if(!x.params.longSwipes)return void x.slideTo(x.activeIndex);"next"===x.swipeDirection&&(b>=x.params.longSwipesRatio?x.slideTo(w+x.params.slidesPerGroup):x.slideTo(w)),"prev"===x.swipeDirection&&(b>1-x.params.longSwipesRatio?x.slideTo(w+x.params.slidesPerGroup):x.slideTo(w))}else{if(!x.params.shortSwipes)return void x.slideTo(x.activeIndex);"next"===x.swipeDirection&&x.slideTo(w+x.params.slidesPerGroup),"prev"===x.swipeDirection&&x.slideTo(w)}}},x._slideTo=function(e,t){return x.slideTo(e,t,!0,!0)},x.slideTo=function(e,t,n,r){"undefined"==typeof n&&(n=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),x.snapIndex=Math.floor(e/x.params.slidesPerGroup),x.snapIndex>=x.snapGrid.length&&(x.snapIndex=x.snapGrid.length-1);var a=-x.snapGrid[x.snapIndex];x.params.autoplay&&x.autoplaying&&(r||!x.params.autoplayDisableOnInteraction?x.pauseAutoplay(t):x.stopAutoplay()),x.updateProgress(a);for(var i=0;i=Math.floor(100*x.slidesGrid[i])&&(e=i);return!(!x.params.allowSwipeToNext&&ax.translate&&a>x.maxTranslate()&&(x.activeIndex||0)!==e)&&("undefined"==typeof t&&(t=x.params.speed),x.previousIndex=x.activeIndex||0,x.activeIndex=e,x.rtl&&-a===x.translate||!x.rtl&&a===x.translate?(x.params.autoHeight&&x.updateAutoHeight(),x.updateClasses(),"slide"!==x.params.effect&&x.setWrapperTranslate(a),!1):(x.updateClasses(),x.onTransitionStart(n),0===t?(x.setWrapperTranslate(a),x.setWrapperTransition(0),x.onTransitionEnd(n)):(x.setWrapperTranslate(a),x.setWrapperTransition(t),x.animating||(x.animating=!0,x.wrapper.transitionEnd(function(){x&&x.onTransitionEnd(n)}))),!0)))},x.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),x.params.autoHeight&&x.updateAutoHeight(),x.lazy&&x.lazy.onTransitionStart(),e&&(x.emit("onTransitionStart",x),x.activeIndex!==x.previousIndex&&(x.emit("onSlideChangeStart",x),x.activeIndex>x.previousIndex?x.emit("onSlideNextStart",x):x.emit("onSlidePrevStart",x)))},x.onTransitionEnd=function(e){x.animating=!1,x.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),x.lazy&&x.lazy.onTransitionEnd(),e&&(x.emit("onTransitionEnd",x),x.activeIndex!==x.previousIndex&&(x.emit("onSlideChangeEnd",x),x.activeIndex>x.previousIndex?x.emit("onSlideNextEnd",x):x.emit("onSlidePrevEnd",x))),x.params.hashnav&&x.hashnav&&x.hashnav.setHash()},x.slideNext=function(e,t,n){return x.params.loop?!x.animating&&(x.fixLoop(),x.container[0].clientLeft,x.slideTo(x.activeIndex+x.params.slidesPerGroup,t,e,n)):x.slideTo(x.activeIndex+x.params.slidesPerGroup,t,e,n)},x._slideNext=function(e){return x.slideNext(!0,e,!0)},x.slidePrev=function(e,t,n){return x.params.loop?!x.animating&&(x.fixLoop(),x.container[0].clientLeft,x.slideTo(x.activeIndex-1,t,e,n)):x.slideTo(x.activeIndex-1,t,e,n)},x._slidePrev=function(e){return x.slidePrev(!0,e,!0)},x.slideReset=function(e,t,n){return x.slideTo(x.activeIndex,t,e)},x.setWrapperTransition=function(e,t){x.wrapper.transition(e),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].setTransition(e),x.params.parallax&&x.parallax&&x.parallax.setTransition(e),x.params.scrollbar&&x.scrollbar&&x.scrollbar.setTransition(e),x.params.control&&x.controller&&x.controller.setTransition(e,t),x.emit("onSetTransition",x,e)},x.setWrapperTranslate=function(e,t,n){var r=0,a=0,o=0;x.isHorizontal()?r=x.rtl?-e:e:a=e,x.params.roundLengths&&(r=i(r),a=i(a)),x.params.virtualTranslate||(x.support.transforms3d?x.wrapper.transform("translate3d("+r+"px, "+a+"px, "+o+"px)"):x.wrapper.transform("translate("+r+"px, "+a+"px)")),x.translate=x.isHorizontal()?r:a;var s,l=x.maxTranslate()-x.minTranslate();s=0===l?0:(e-x.minTranslate())/l,s!==x.progress&&x.updateProgress(e),t&&x.updateActiveIndex(),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].setTranslate(x.translate),x.params.parallax&&x.parallax&&x.parallax.setTranslate(x.translate),x.params.scrollbar&&x.scrollbar&&x.scrollbar.setTranslate(x.translate),x.params.control&&x.controller&&x.controller.setTranslate(x.translate,n),x.emit("onSetTranslate",x,x.translate)},x.getTranslate=function(e,t){var n,r,a,i;return"undefined"==typeof t&&(t="x"),x.params.virtualTranslate?x.rtl?-x.translate:x.translate:(a=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===r?"":r)):(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),"x"===t&&(r=window.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=window.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),x.rtl&&r&&(r=-r),r||0)},x.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=x.isHorizontal()?"x":"y"),x.getTranslate(x.wrapper[0],e)},x.observers=[],x.initObservers=function(){if(x.params.observeParents)for(var e=x.container.parents(),t=0;te.length&&(x.loopedSlides=e.length);var t,r=[],a=[];for(e.each(function(t,i){var o=n(this);t=e.length-x.loopedSlides&&r.push(i),o.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)x.wrapper.prepend(n(r[t].cloneNode(!0)).addClass(x.params.slideDuplicateClass))},x.destroyLoop=function(){x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass).remove(),x.slides.removeAttr("data-swiper-slide-index")},x.reLoop=function(e){var t=x.activeIndex-x.loopedSlides;x.destroyLoop(),x.createLoop(),x.updateSlidesSize(),e&&x.slideTo(t+x.loopedSlides,0,!1)},x.fixLoop=function(){var e;x.activeIndex=2*x.loopedSlides||x.activeIndex>x.slides.length-2*x.params.slidesPerView)&&(e=-x.slides.length+x.activeIndex+x.loopedSlides,e+=x.loopedSlides,x.slideTo(e,0,!1,!0))},x.appendSlide=function(e){if(x.params.loop&&x.destroyLoop(),"object"==("undefined"==typeof e?"undefined":t(e))&&e.length)for(var n=0;nn&&r--;r=Math.max(r,0)}else n=e,x.slides[n]&&x.slides.eq(n).remove(),r>n&&r--,r=Math.max(r,0);x.params.loop&&x.createLoop(),x.params.observer&&x.support.observer||x.update(!0),x.params.loop?x.slideTo(r+x.loopedSlides,0,!1):x.slideTo(r,0,!1)},x.removeAllSlides=function(){for(var e=[],t=0;t'),t.append(p)),0===c.length&&(c=n('
'),t.append(c)),p.length&&(p[0].style.opacity=Math.max(-r,0)),c.length&&(c[0].style.opacity=Math.max(r,0))}t.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+s+"deg) rotateY("+o+"deg)")}},setTransition:function(e){if(x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.virtualTranslate&&0!==e){var t=!1;x.slides.eq(x.activeIndex).transitionEnd(function(){if(!t&&x&&n(this).hasClass(x.params.slideActiveClass)){t=!0,x.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=0;r'),x.wrapper.append(e)),e.css({height:x.width+"px"})):(e=x.container.find(".swiper-cube-shadow"),0===e.length&&(e=n('
'),x.container.append(e))));for(var r=0;r=s&&s>-1&&(t=90*r+90*s,x.rtl&&(t=90*-r-90*s)),a.transform(c),x.params.cube.slideShadows){var d=x.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=x.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===d.length&&(d=n('
'),a.append(d)),0===f.length&&(f=n('
'),a.append(f)),d.length&&(d[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}}if(x.wrapper.css({"-webkit-transform-origin":"50% 50% -"+x.size/2+"px","-moz-transform-origin":"50% 50% -"+x.size/2+"px","-ms-transform-origin":"50% 50% -"+x.size/2+"px","transform-origin":"50% 50% -"+x.size/2+"px"}),x.params.cube.shadow)if(x.isHorizontal())e.transform("translate3d(0px, "+(x.width/2+x.params.cube.shadowOffset)+"px, "+-x.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+x.params.cube.shadowScale+")");else{var h=Math.abs(t)-90*Math.floor(Math.abs(t)/90),m=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),g=x.params.cube.shadowScale,v=x.params.cube.shadowScale/m,w=x.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(x.height/2+w)+"px, "+-x.height/2/v+"px) rotateX(-90deg)")}var y=x.isSafari||x.isUiWebView?-x.size/2:0;x.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(x.isHorizontal()?0:t)+"deg) rotateY("+(x.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.cube.shadow&&!x.isHorizontal()&&x.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=x.translate,t=x.isHorizontal()?-e+x.width/2:-e+x.height/2,r=x.isHorizontal()?x.params.coverflow.rotate:-x.params.coverflow.rotate,a=x.params.coverflow.depth,i=0,o=x.slides.length;o>i;i++){var s=x.slides.eq(i),l=x.slidesSizesGrid[i],u=s[0].swiperSlideOffset,p=(t-u-l/2)/l*x.params.coverflow.modifier,c=x.isHorizontal()?r*p:0,d=x.isHorizontal()?0:r*p,f=-a*Math.abs(p),h=x.isHorizontal()?0:x.params.coverflow.stretch*p,m=x.isHorizontal()?x.params.coverflow.stretch*p:0;Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(c)<.001&&(c=0),Math.abs(d)<.001&&(d=0);var g="translate3d("+m+"px,"+h+"px,"+f+"px) rotateX("+d+"deg) rotateY("+c+"deg)";if(s.transform(g),s[0].style.zIndex=-Math.abs(Math.round(p))+1,x.params.coverflow.slideShadows){var v=x.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),w=x.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===v.length&&(v=n('
'),s.append(v)),0===w.length&&(w=n('
'),s.append(w)),v.length&&(v[0].style.opacity=p>0?p:0),w.length&&(w[0].style.opacity=-p>0?-p:0)}}if(x.browser.ie){var y=x.wrapper[0].style;y.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},x.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==x.slides.length)){var r=x.slides.eq(e),a=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(a=a.add(r[0])),0!==a.length&&a.each(function(){var e=n(this);e.addClass("swiper-lazy-loading");var a=e.attr("data-background"),i=e.attr("data-src"),o=e.attr("data-srcset");x.loadImage(e[0],i||a,o,!1,function(){if(a?(e.css("background-image",'url("'+a+'")'),e.removeAttr("data-background")):(o&&(e.attr("srcset",o),e.removeAttr("data-srcset")),i&&(e.attr("src",i),e.removeAttr("data-src"))),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),x.params.loop&&t){var n=r.attr("data-swiper-slide-index");if(r.hasClass(x.params.slideDuplicateClass)){var s=x.wrapper.children('[data-swiper-slide-index="'+n+'"]:not(.'+x.params.slideDuplicateClass+")");x.lazy.loadImageInSlide(s.index(),!1)}else{var l=x.wrapper.children("."+x.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]');x.lazy.loadImageInSlide(l.index(),!1)}}x.emit("onLazyImageReady",x,r[0],e[0])}),x.emit("onLazyImageLoad",x,r[0],e[0])})}},load:function(){var e;if(x.params.watchSlidesVisibility)x.wrapper.children("."+x.params.slideVisibleClass).each(function(){x.lazy.loadImageInSlide(n(this).index())});else if(x.params.slidesPerView>1)for(e=x.activeIndex;e1||x.params.lazyLoadingInPrevNextAmount&&x.params.lazyLoadingInPrevNextAmount>1){var t=x.params.lazyLoadingInPrevNextAmount,r=x.params.slidesPerView,a=Math.min(x.activeIndex+r+Math.max(t,r),x.slides.length),i=Math.max(x.activeIndex-Math.max(r,t),0);for(e=x.activeIndex+x.params.slidesPerView;a>e;e++)x.slides[e]&&x.lazy.loadImageInSlide(e);for(e=i;e0&&x.lazy.loadImageInSlide(o.index());var s=x.wrapper.children("."+x.params.slidePrevClass);s.length>0&&x.lazy.loadImageInSlide(s.index())}},onTransitionStart:function(){x.params.lazyLoading&&(x.params.lazyLoadingOnTransitionStart||!x.params.lazyLoadingOnTransitionStart&&!x.lazy.initialImageLoaded)&&x.lazy.load()},onTransitionEnd:function(){x.params.lazyLoading&&!x.params.lazyLoadingOnTransitionStart&&x.lazy.load()}},x.scrollbar={isTouched:!1,setDragPosition:function(e){var t=x.scrollbar,n=x.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,r=n-t.track.offset()[x.isHorizontal()?"left":"top"]-t.dragSize/2,a=-x.minTranslate()*t.moveDivider,i=-x.maxTranslate()*t.moveDivider;a>r?r=a:r>i&&(r=i),r=-r/t.moveDivider,x.updateProgress(r),x.setWrapperTranslate(r,!0)},dragStart:function(e){var t=x.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),x.params.scrollbarHide&&t.track.css("opacity",1),x.wrapper.transition(100),t.drag.transition(100),x.emit("onScrollbarDragStart",x)},dragMove:function(e){var t=x.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),x.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),x.emit("onScrollbarDragMove",x))},dragEnd:function(e){var t=x.scrollbar;t.isTouched&&(t.isTouched=!1,x.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),x.emit("onScrollbarDragEnd",x),x.params.scrollbarSnapOnRelease&&x.slideReset())},enableDraggable:function(){var e=x.scrollbar,t=x.support.touch?e.track:document;n(e.track).on(x.touchEvents.start,e.dragStart),n(t).on(x.touchEvents.move,e.dragMove),n(t).on(x.touchEvents.end,e.dragEnd)},disableDraggable:function(){var e=x.scrollbar,t=x.support.touch?e.track:document;n(e.track).off(x.touchEvents.start,e.dragStart),n(t).off(x.touchEvents.move,e.dragMove),n(t).off(x.touchEvents.end,e.dragEnd)},set:function(){if(x.params.scrollbar){var e=x.scrollbar;e.track=n(x.params.scrollbar),x.params.uniqueNavElements&&"string"==typeof x.params.scrollbar&&e.track.length>1&&1===x.container.find(x.params.scrollbar).length&&(e.track=x.container.find(x.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=n('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=x.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=x.size/x.virtualSize,e.moveDivider=e.divider*(e.trackSize/x.size),e.dragSize=e.trackSize*e.divider,x.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",x.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(x.params.scrollbar){var e,t=x.scrollbar,n=(x.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*x.progress,x.rtl&&x.isHorizontal()?(e=-e,e>0?(n=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(n=t.trackSize+e)):0>e?(n=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(n=t.trackSize-e),x.isHorizontal()?(x.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=n+"px"):(x.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=n+"px"),x.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){x.params.scrollbar&&x.scrollbar.drag.transition(e)}},x.controller={LinearSpline:function(e,t){this.x=e,this.y=t,this.lastIndex=e.length-1;var n,r;this.x.length,this.interpolate=function(e){return e?(r=a(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0};var a=function(){var e,t,n;return function(r,a){for(t=-1,e=r.length;e-t>1;)r[n=e+t>>1]<=a?t=n:e=n;return e}}()},getInterpolateFunction:function(e){x.controller.spline||(x.controller.spline=x.params.loop?new x.controller.LinearSpline(x.slidesGrid,e.slidesGrid):new x.controller.LinearSpline(x.snapGrid,e.snapGrid))},setTranslate:function(e,t){function n(t){e=t.rtl&&"horizontal"===t.params.direction?-x.translate:x.translate,"slide"===x.params.controlBy&&(x.controller.getInterpolateFunction(t),a=-x.controller.spline.interpolate(-e)),a&&"container"!==x.params.controlBy||(r=(t.maxTranslate()-t.minTranslate())/(x.maxTranslate()-x.minTranslate()),a=(e-x.minTranslate())*r+t.minTranslate()),x.params.controlInverse&&(a=t.maxTranslate()-a),t.updateProgress(a),t.setWrapperTranslate(a,!1,x),t.updateActiveIndex()}var r,a,i=x.params.control;if(x.isArray(i))for(var o=0;on;n++){var a=x.slides.eq(n),i=a.attr("data-hash");if(i===e&&!a.hasClass(x.params.slideDuplicateClass)){var o=a.index();x.slideTo(o,t,x.params.runCallbacksOnInit,!0)}}}},setHash:function(){x.hashnav.initialized&&x.params.hashnav&&(document.location.hash=x.slides.eq(x.activeIndex).attr("data-hash")||"")}},x.disableKeyboardControl=function(){x.params.keyboardControl=!1,n(document).off("keydown",p)},x.enableKeyboardControl=function(){x.params.keyboardControl=!0,n(document).on("keydown",p)},x.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},x.params.mousewheelControl){try{new window.WheelEvent("wheel"),x.mousewheel.event="wheel"}catch(U){(window.WheelEvent||x.container[0]&&"wheel"in x.container[0])&&(x.mousewheel.event="wheel")}!x.mousewheel.event&&window.WheelEvent,x.mousewheel.event||void 0===document.onmousewheel||(x.mousewheel.event="mousewheel"),x.mousewheel.event||(x.mousewheel.event="DOMMouseScroll")}x.disableMousewheelControl=function(){return!!x.mousewheel.event&&(x.container.off(x.mousewheel.event,c),!0)},x.enableMousewheelControl=function(){return!!x.mousewheel.event&&(x.container.on(x.mousewheel.event,c),!0)}, +x.parallax={setTranslate:function(){x.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){d(this,x.progress)}),x.slides.each(function(){var e=n(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);d(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=x.params.speed),x.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=n(this),r=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),t.transition(r)})}},x._plugins=[];for(var F in x.plugins){var V=x.plugins[F](x,x.params[F]);V&&x._plugins.push(V)}return x.callPlugins=function(e){for(var t=0;t'),notify:function(e){var t=x.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.a11y.makeFocusable(x.nextButton),x.a11y.addRole(x.nextButton,"button"),x.a11y.addLabel(x.nextButton,x.params.nextSlideMessage)),x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.a11y.makeFocusable(x.prevButton),x.a11y.addRole(x.prevButton,"button"),x.a11y.addLabel(x.prevButton,x.params.prevSlideMessage)),n(x.container).append(x.a11y.liveRegion)},initPagination:function(){x.params.pagination&&x.params.paginationClickable&&x.bullets&&x.bullets.length&&x.bullets.each(function(){var e=n(this);x.a11y.makeFocusable(e),x.a11y.addRole(e,"button"),x.a11y.addLabel(e,x.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){x.a11y.liveRegion&&x.a11y.liveRegion.length>0&&x.a11y.liveRegion.remove()}},x.init=function(){x.params.loop&&x.createLoop(),x.updateContainerSize(),x.updateSlidesSize(),x.updatePagination(),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.set(),x.params.scrollbarDraggable&&x.scrollbar.enableDraggable()),"slide"!==x.params.effect&&x.effects[x.params.effect]&&(x.params.loop||x.updateProgress(),x.effects[x.params.effect].setTranslate()),x.params.loop?x.slideTo(x.params.initialSlide+x.loopedSlides,0,x.params.runCallbacksOnInit):(x.slideTo(x.params.initialSlide,0,x.params.runCallbacksOnInit),0===x.params.initialSlide&&(x.parallax&&x.params.parallax&&x.parallax.setTranslate(),x.lazy&&x.params.lazyLoading&&(x.lazy.load(),x.lazy.initialImageLoaded=!0))),x.attachEvents(),x.params.observer&&x.support.observer&&x.initObservers(),x.params.preloadImages&&!x.params.lazyLoading&&x.preloadImages(),x.params.autoplay&&x.startAutoplay(),x.params.keyboardControl&&x.enableKeyboardControl&&x.enableKeyboardControl(),x.params.mousewheelControl&&x.enableMousewheelControl&&x.enableMousewheelControl(),x.params.hashnav&&x.hashnav&&x.hashnav.init(),x.params.a11y&&x.a11y&&x.a11y.init(),x.emit("onInit",x)},x.cleanupStyles=function(){x.container.removeClass(x.classNames.join(" ")).removeAttr("style"),x.wrapper.removeAttr("style"),x.slides&&x.slides.length&&x.slides.removeClass([x.params.slideVisibleClass,x.params.slideActiveClass,x.params.slideNextClass,x.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),x.paginationContainer&&x.paginationContainer.length&&x.paginationContainer.removeClass(x.params.paginationHiddenClass),x.bullets&&x.bullets.length&&x.bullets.removeClass(x.params.bulletActiveClass),x.params.prevButton&&n(x.params.prevButton).removeClass(x.params.buttonDisabledClass),x.params.nextButton&&n(x.params.nextButton).removeClass(x.params.buttonDisabledClass),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.track&&x.scrollbar.track.length&&x.scrollbar.track.removeAttr("style"),x.scrollbar.drag&&x.scrollbar.drag.length&&x.scrollbar.drag.removeAttr("style"))},x.destroy=function(e,t){x.detachEvents(),x.stopAutoplay(),x.params.scrollbar&&x.scrollbar&&x.params.scrollbarDraggable&&x.scrollbar.disableDraggable(),x.params.loop&&x.destroyLoop(),t&&x.cleanupStyles(),x.disconnectObservers(),x.params.keyboardControl&&x.disableKeyboardControl&&x.disableKeyboardControl(),x.params.mousewheelControl&&x.disableMousewheelControl&&x.disableMousewheelControl(),x.params.a11y&&x.a11y&&x.a11y.destroy(),x.emit("onDestroy"),e!==!1&&(x=null)},x.init(),x}};r.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),n=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),a=!n&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:n||a||r,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n=0&&s.indexOf(">")>=0){var l="div";for(0===s.indexOf(":~]/)?(n||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],a=0;a0&&t[0].nodeType)for(a=0;a0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=document.body,r=e.clientTop||n.clientTop||0,a=e.clientLeft||n.clientLeft||0,i=window.pageYOffset||e.scrollTop,o=window.pageXOffset||e.scrollLeft;return{top:t.top+i-r,left:t.left+o-a}}return null},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;nr-1?new e([]):0>t?(n=r+t,new e(0>n?[]:[this[n]])):new e([this[t]])},append:function(t){var n,r;for(n=0;n=0;r--)this[n].insertBefore(a.childNodes[r],this[n].childNodes[0])}else if(t instanceof e)for(r=0;r1)for(var a=0;a1)for(var a=0;a0?n?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(n)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(n){var r=[],a=this[0];if(!a)return new e([]);for(;a.nextElementSibling;){var i=a.nextElementSibling;n?t(i).is(n)&&r.push(i):r.push(i),a=i}return new e(r)},prev:function(n){return new e(this.length>0?n?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(n)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(n){var r=[],a=this[0];if(!a)return new e([]);for(;a.previousElementSibling;){var i=a.previousElementSibling;n?t(i).is(n)&&r.push(i):r.push(i),a=i}return new e(r)},parent:function(e){for(var n=[],r=0;r.")}var o=h[e]||(h[e]={});if(o[a])return null;o[a]=!0;var s={parentOrOwner:a,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==c.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function o(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n>",T={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:o(),arrayOf:s,element:l(),instanceOf:u,node:f(),objectOf:c,oneOf:p,oneOfType:d,shape:h};e.exports=T},function(e,t,n){"use strict";function r(e){o.enqueueUpdate(e)}function a(e,t){var n=i.get(e);return n?n:null}var i=(n(14),n(41)),o=n(8),s=n(1),l=(n(2),{isMounted:function(e){var t=i.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var i=a(e);return i?(i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],void r(i)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=a(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=a(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=a(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?s(!1):void 0}});e.exports=l},function(e,t){"use strict";e.exports="15.0.1"},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?a(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var a=n(1);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===a.COMPOSITE;)e=e._renderedComponent;return t===a.NATIVE?e._renderedComponent:t===a.EMPTY?null:void 0}var a=n(75);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&a.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var a=n(5),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function a(e){var t;if(null===e||e===!1)t=s.create(a);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?u(!1):void 0,t="string"==typeof n.type?l.createInternalComponent(n):r(n.type)?new n.type(n):new p(n)}else"string"==typeof e||"number"==typeof e?t=l.createInstanceForText(e):u(!1);return t._mountIndex=0,t._mountImage=null,t}var i=n(3),o=n(129),s=n(69),l=n(74),u=n(1),p=(n(2),function(e){this.construct(e)});i(p.prototype,o.Mixin,{_instantiateReactComponent:a}),e.exports=a},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var r=n(5),a=n(33),i=n(50),o=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(o=function(e,t){i(e,a(t))})),e.exports=o},function(e,t,n){var r=n(96);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,"#header .swiper-pagination-bullet{width:6px;height:6px;border:1px solid #fff;background-color:transparent;opacity:1}#header .swiper-pagination-bullet-active{background-color:#fff}.img{width:100%}",""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,"#like{background-color:#fff;font-size:0;-webkit-text-size-adjust:none;padding-top:3px}#like p{font-size:14px;color:#7f7f7f;padding-left:5px}.like_content{display:inline-block;width:50%;text-align:center}.like_desc,.like_link,.like_price{width:95%;display:inline-block}.like_desc{overflow:hidden;font-size:12px;text-align:left;line-height:14px;color:#333;padding-bottom:5px;border-bottom:1px solid #e5e6e6}.like_desc span{display:-webkit-box;height:28px;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.like_price{margin:4px 0 16px}.like_price span{font-size:14px;color:#f15353;display:table-cell;vertical-align:middle;float:left}.like_price a{color:#999}.like_price div{border:1px solid #999;border-radius:3px;display:inline-block;font-size:12px;color:#999;padding:2px 6px;float:right}",""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,'img{width:100%}#more{background-color:#fff}.more_link{width:33%;border-width:1px 1px 1px 0;border-style:solid;border-color:#f3f5f7;float:left}.more_link:last-child{border-right:0}.more_bottom:after,.more_middle:after,.more_top:after{content:"";display:block;clear:both}.more_style{width:49.8%;float:left}.more_middle div:first-child{border-right:1px solid #f3f5f7}#more .swiper-pagination-bullet{width:6px;height:6px;border:1px solid #fff;background-color:transparent;opacity:1}#more .swiper-pagination-bullet-active{background-color:#fff}.more_bottom{padding:8px;background-color:#f3f5f7}',""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,'.oapp{height:165px;background-color:#fff}.oapp li{font-size:12px;color:#666;text-align:center;width:25%;float:left;margin-top:12px}.oapp li:last-child:after{content:"";display:block;clear:both}.oapp a{color:#666}.app_icon{width:40px;height:40px;margin:0 auto 4px}',""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,"#search{min-width:320px;max-width:640px;width:100%;height:45px;box-sizing:border-box;padding:5px 20px;z-index:10;//:rgba(234,44,44,.81);background-color:rgba(234,44,44,0);opacity:1}.search{margin:0 auto;width:100%;height:100%;text-align:center;top:0}.sl{left:0;height:100%;margin-top:5px}.sl i{width:56px;height:21px;display:inline-block;background:url("+n(34)+") no-repeat;background-size:200px 200px;background-position:0 -109px}.frc{margin-left:66px;margin-right:40px;background-color:#fff;border:1px solid #fff;height:30px;border-radius:30px;margin-top:3px;box-sizing:border-box}.searchicon{left:7px;top:3px;display:inline-block;width:20px;height:20px;background:url("+n(34)+") no-repeat;background-position:-60px -109px;background-size:200px 200px}.frc form,.frc input{height:100%}.frc input{border:0;width:98%;color:#333;text-indent:30px;font-size:18px;border-radius:30px}.sub{top:0;right:0;width:30px;height:100%;line-height:40px;font-size:15px;color:#fff;margin-top:-5px}",""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,"#spike{background-color:#fff;margin-top:5px;padding:5px}.spike_header>i{margin-left:10px;margin-top:4px;width:18px;height:22px;margin-top:8px;background:url("+n(34)+") -84px -109px no-repeat;background-size:200px 200px}.spike_header>i,.spike_title{display:inline-block;float:left}.spike_title{white-space:nowrap;font-size:15px;color:#ca1327;margin:10px 6px 0 5px}.spike_time{display:inline-block;font-size:13px;float:left;margin-top:10px}.spike_time span{display:inline-block;width:18px;height:18px;padding:auto;text-align:center;color:#fff;background:#3d3d3d;border-radius:2px;padding-right:2px;margin:0 2px}.spike_more{font-size:12px;margin-top:10px}.spike_more span{color:#666}.spike_more i{display:inline-block;width:7px;height:12px;margin:2px 0 0 2px;background:url("+n(34)+') -186px -51px no-repeat;background-size:200px 200px}.spike_more:after{content:"";display:block;clear:both}.spike_content{margin-top:10px;height:150px}.spike_content li{width:33%;text-align:center;float:left}.spike_content div{width:100px;display:inline-block;border-right:1px solid #f3f5f7}.last_store{border:0}.spike_content img{width:100%}.spike_content p{margin-top:8px;color:#ed5657;font-size:14px;line-height:14px}.spike_content .real-price{color:#888;font-size:10px;margin:5px 0 12px;text-align:center;text-decoration:line-through}',""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,"body,html{position:relative;height:100%;width:100%;font-family:Microsoft YaHei,arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;background:#fff}body,h1,h2,h3,html,img,input,li,p,ul{margin:0;padding:0}img{width:100%;height:100%}*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none}a,input,select,textarea{outline:0}a{text-decoration:none;color:#099cd6}p{margin:0;overflow:hidden;padding:0}div{word-break:break-all}i{font-style:normal}dd,dl,dt,li,ul{list-style-type:none;padding:0;margin:0}.fl{float:left}.fr{float:right}.fc{clear:both}.pr{position:relative}.pa{position:absolute}.pf{position:fixed}",""])},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,".swiper-container{margin:0 auto;position:relative;overflow:hidden;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:transform;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translateZ(0);transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{-webkit-box-lines:multiple;-moz-box-lines:multiple;-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex:0 0 auto;flex-shrink:0;width:100%;height:100%;position:relative}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:-webkit-transform,height;transition-property:transform,height}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-wp8-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:50%;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23007aff'/%3E%3C/svg%3E\");left:10px;right:auto}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z'/%3E%3C/svg%3E\")}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23007aff'/%3E%3C/svg%3E\");right:10px;left:auto}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s;transition:.3s;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-moz-appearance:none;-ms-appearance:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-white .swiper-pagination-bullet{background:#fff}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:5px 0;display:block}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 5px}.swiper-pagination-progress{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progress .swiper-pagination-progressbar{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progress .swiper-pagination-progressbar{-webkit-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progress{width:100%;height:4px;left:0;top:0}.swiper-container-vertical>.swiper-pagination-progress{width:4px;height:100%;left:0;top:0}.swiper-pagination-progress.swiper-pagination-white{background:hsla(0,0%,100%,.5)}.swiper-pagination-progress.swiper-pagination-white .swiper-pagination-progressbar{background:#fff}.swiper-pagination-progress.swiper-pagination-black .swiper-pagination-progressbar{background:#000}.swiper-container-3d{-webkit-perspective:1200px;-o-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-container-coverflow .swiper-wrapper,.swiper-container-flip .swiper-wrapper{-ms-perspective:1200px}.swiper-container-cube,.swiper-container-flip{overflow:visible}.swiper-container-cube .swiper-slide,.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-cube .swiper-slide .swiper-slide,.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active,.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top,.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-slide{visibility:hidden;-webkit-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12) infinite;animation:swiper-preloader-spin 1s steps(12) infinite}.swiper-lazy-preloader:after{display:block;content:\"\";width:100%;height:100%;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%236c6c6c' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%23fff' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\")}@-webkit-keyframes swiper-preloader-spin{to{-webkit-transform:rotate(1turn)}}@keyframes swiper-preloader-spin{to{transform:rotate(1turn)}}",""])},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return a(e.replace(i,"ms-"))}var a=n(97),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!a(e)&&(a(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var a=n(106);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),"function"==typeof e.callee?o(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;a=1&&(t=e/3600,t=+i.exec(t.toString())[1],e-=3600*t,t=a.test(t.toString())?t.toString():"0"+t),e/60>=1&&(n=e/60,n=+i.exec(n.toString())[1],e-=60*n,n=a.test(n.toString())?n.toString():"0"+n),r=e,r=a.test(r.toString())?r.toString():"0"+r,{hour:t,minutes:n,second:r}},componentDidMount:function(){var e=this,t=function(){var t=new Promise(function(t,n){i(e.props.source,"","callback",function(r){r.status?e.isMounted()&&(e.setState({stores:r.data,more:r.more}),t(r.times)):(alert(r.msg),n("get data error!"))})});return t};t().then(function(t){t=+t;var n=window.setInterval(function(){var r=e.formatTime(t--),a=r.hour,i=r.minutes,o=r.second;t==-1&&(clearInterval(n),n=null),e.setState({hour:a,minutes:i,second:o})},1e3)},function(e){alert(e)})},render:function(){var e=this,t=0;return a["default"].createElement("div",{id:"spike"},a["default"].createElement("div",{className:"spike_header"},a["default"].createElement("i",null),a["default"].createElement("span",{className:"spike_title"},"掌上时间"),a["default"].createElement("div",{className:"spike_time"},function(){return a["default"].createElement("div",null,a["default"].createElement("span",null,e.state.hour),":",a["default"].createElement("span",null,e.state.minutes),":",a["default"].createElement("span",null,e.state.second))}()),a["default"].createElement("div",{className:"spike_more fr"},a["default"].createElement("i",{className:"fr"}),a["default"].createElement("a",{href:this.state.more},a["default"].createElement("span",null,"更多秒杀"))),a["default"].createElement("div",{style:{clear:"both"}})),a["default"].createElement("ul",{className:"spike_content"},this.state.stores.map(function(e){return a["default"].createElement("li",{key:"spike"+t++},a["default"].createElement("a",{href:e.url},a["default"].createElement("div",null,a["default"].createElement("img",{src:e.icon,alt:""})),a["default"].createElement("p",null,"¥",e.sprice),a["default"].createElement("p",{className:"real-price"},"¥",e.price)))})))}});e.exports=o}).call(this)}finally{}},function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}var t=n(18),r=e(t),a=n(109),i=e(a),o=n(114),s=e(o),l=n(110),u=e(l),p=n(113),c=e(p),d=n(115),f=e(d),h=n(112),m=e(h),g=n(111),v=e(g);n(188),i["default"].render(r["default"].createElement("div",null,r["default"].createElement(s["default"],null),r["default"].createElement(u["default"],{source:"http://localhost:3000/data/swiper"}),r["default"].createElement(c["default"],{source:"http://localhost:3000/data/otherapp"}),r["default"].createElement(f["default"],{source:"http://localhost:3000/data/spike"}),r["default"].createElement(m["default"],{source:"http://localhost:3000/data/more"}),r["default"].createElement(v["default"],{source:"http://localhost:3000/data/like"})),document.querySelector("#myApp"))}).call(this)}finally{}},function(e,t,n){"use strict";var r=n(4),a=n(55),i={focusDOMComponent:function(){a(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function a(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case M.topCompositionStart:return P.compositionStart;case M.topCompositionEnd:return P.compositionEnd;case M.topCompositionUpdate:return P.compositionUpdate}}function o(e,t){return e===M.topKeyDown&&t.keyCode===x}function s(e,t){switch(e){case M.topKeyUp:return b.indexOf(t.keyCode)!==-1;case M.topKeyDown:return t.keyCode!==x;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function l(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,r){var a,u;if(C?a=i(e):I?s(e,n)&&(a=P.compositionEnd):o(e,n)&&(a=P.compositionStart),!a)return null;k&&(I||a!==P.compositionStart?a===P.compositionEnd&&I&&(u=I.getData()):I=g.getPooled(r));var p=v.getPooled(a,t,n,r);if(u)p.data=u;else{var c=l(n);null!==c&&(p.data=c)}return h.accumulateTwoPhaseDispatches(p),p}function p(e,t){switch(e){case M.topCompositionEnd:return l(t);case M.topKeyPress:var n=t.which;return n!==S?null:(N=!0,_);case M.topTextInput:var r=t.data;return r===_&&N?null:r;default:return null}}function c(e,t){if(I){if(e===M.topCompositionEnd||s(e,t)){var n=I.getData();return g.release(I),I=null,n}return null}switch(e){case M.topPaste:return null;case M.topKeyPress:return t.which&&!a(t)?String.fromCharCode(t.which):null;case M.topCompositionEnd:return k?null:t.data;default:return null}}function d(e,t,n,r){var a;if(a=T?p(e,n):c(e,n),!a)return null;var i=w.getPooled(P.beforeInput,t,n,r);return i.data=a,h.accumulateTwoPhaseDispatches(i),i}var f=n(10),h=n(23),m=n(5),g=n(125),v=n(164),w=n(167),y=n(13),b=[9,13,27,32],x=229,C=m.canUseDOM&&"CompositionEvent"in window,E=null;m.canUseDOM&&"documentMode"in document&&(E=document.documentMode);var T=m.canUseDOM&&"TextEvent"in window&&!E&&!r(),k=m.canUseDOM&&(!C||E&&E>8&&E<=11),S=32,_=String.fromCharCode(S),M=f.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:y({onBeforeInput:null}),captured:y({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:y({onCompositionEnd:null}),captured:y({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:y({onCompositionStart:null}),captured:y({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:y({onCompositionUpdate:null}),captured:y({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},N=!1,I=null,D={eventTypes:P,extractEvents:function(e,t,n,r){return[u(e,t,n,r),d(e,t,n,r)]}};e.exports=D},function(e,t,n){"use strict";var r=n(60),a=n(5),i=n(6),o=(n(98),n(173)),s=n(104),l=n(108),u=(n(2),l(function(e){return s(e)})),p=!1,c="cssFloat";if(a.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(f){p=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var h={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];null!=a&&(n+=u(r)+":",n+=o(r,a,t)+";")}return n||null},setValueForStyles:function(e,t,n){var a=e.style;for(var i in t)if(t.hasOwnProperty(i)){var s=o(i,t[i],n);if("float"!==i&&"cssFloat"!==i||(i=c),s)a[i]=s;else{var l=p&&r.shorthandPropertyExpansions[i];if(l)for(var u in l)a[u]="";else a[i]=""}}}};i.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=h},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function a(e){var t=T.getPooled(N.change,D,e,k(e));b.accumulateTwoPhaseDispatches(t),E.batchedUpdates(i,t)}function i(e){y.enqueueEvents(e),y.processEventQueue(!1)}function o(e,t){I=e,D=t,I.attachEvent("onchange",a)}function s(){I&&(I.detachEvent("onchange",a),I=null,D=null)}function l(e,t){if(e===P.topChange)return t}function u(e,t,n){e===P.topFocus?(s(),o(t,n)):e===P.topBlur&&s()}function p(e,t){I=e,D=t,R=e.value,A=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(I,"value",z),I.attachEvent?I.attachEvent("onpropertychange",d):I.addEventListener("propertychange",d,!1)}function c(){I&&(delete I.value,I.detachEvent?I.detachEvent("onpropertychange",d):I.removeEventListener("propertychange",d,!1),I=null,D=null,R=null,A=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==R&&(R=t,a(e))}}function f(e,t){if(e===P.topInput)return t}function h(e,t,n){e===P.topFocus?(c(),p(t,n)):e===P.topBlur&&c()}function m(e,t){if((e===P.topSelectionChange||e===P.topKeyUp||e===P.topKeyDown)&&I&&I.value!==R)return R=I.value,D}function g(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function v(e,t){if(e===P.topClick)return t}var w=n(10),y=n(22),b=n(23),x=n(5),C=n(4),E=n(8),T=n(11),k=n(47),S=n(49),_=n(86),M=n(13),P=w.topLevelTypes,N={change:{phasedRegistrationNames:{bubbled:M({onChange:null}),captured:M({onChangeCapture:null})},dependencies:[P.topBlur,P.topChange,P.topClick,P.topFocus,P.topInput,P.topKeyDown,P.topKeyUp,P.topSelectionChange]}},I=null,D=null,R=null,A=null,O=!1;x.canUseDOM&&(O=S("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;x.canUseDOM&&(L=S("input")&&(!("documentMode"in document)||document.documentMode>11));var z={get:function(){return A.get.call(this)},set:function(e){R=""+e,A.set.call(this,e)}},B={eventTypes:N,extractEvents:function(e,t,n,a){var i,o,s=t?C.getNodeFromInstance(t):window;if(r(s)?O?i=l:o=u:_(s)?L?i=f:(i=m,o=h):g(s)&&(i=v),i){var p=i(e,t);if(p){var c=T.getPooled(N.change,p,n,a);return c.type="change",b.accumulateTwoPhaseDispatches(c),c}}o&&o(e,s,t)}};e.exports=B},function(e,t){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=n},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var a=n(19),i=n(5),o=n(101),s=n(9),l=n(57),u=n(1),p=/^(<[^ \/>]+)/,c="data-danger-index",d={dangerouslyRenderMarkup:function(e){i.canUseDOM?void 0:u(!1);for(var t,n={},a=0;a1?1-t:void 0;return this._fallbackText=a.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(16),a=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,o=r.injection.HAS_SIDE_EFFECTS,s=r.injection.HAS_NUMERIC_VALUE,l=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,p={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:a|i,cite:0,classID:0,className:0,cols:l,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,"default":i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:a|i,muted:a|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,rel:0,required:i,reversed:i,role:0,rows:l,rowSpan:s,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:a|i,shape:0,size:l,sizes:0,span:l,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:s,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:a|o,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,"typeof":0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=p},function(e,t,n){"use strict";var r=n(3),a=n(62),i=n(64),o=n(63),s=n(136),l=n(7),u=(n(68),n(77)),p=n(79),c=n(179),d=(n(2),l.createElement),f=l.createFactory,h=l.cloneElement,m=r,g={Children:{map:a.map,forEach:a.forEach,count:a.count,toArray:a.toArray,only:c},Component:i,createElement:d,cloneElement:h,isValidElement:l.isValidElement,PropTypes:u,createClass:o.createClass,createFactory:f,createMixin:function(e){return e},DOM:s,version:p,__spread:m};e.exports=g},function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t))}var a=n(20),i=n(85),o=n(51),s=n(52),l=(n(2),{instantiateChildren:function(e,t,n){if(null==e)return null;var a={};return s(e,r,a),a},updateChildren:function(e,t,n,r,s){if(t||e){var l,u;for(l in t)if(t.hasOwnProperty(l)){u=e&&e[l];var p=u&&u._currentElement,c=t[l];if(null!=u&&o(p,c))a.receiveComponent(u,c,r,s),t[l]=u;else{u&&(n[l]=a.getNativeNode(u),a.unmountComponent(u,!1));var d=i(c);t[l]=d}}for(l in e)!e.hasOwnProperty(l)||t&&t.hasOwnProperty(l)||(u=e[l],n[l]=a.getNativeNode(u),a.unmountComponent(u,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];a.unmountComponent(r,t)}}});e.exports=l},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function a(e){}function i(e,t){}var o=n(3),s=n(39),l=n(14),u=n(7),p=n(40),c=n(41),d=(n(29),n(75)),f=n(6),h=n(31),m=(n(30),n(20)),g=n(78),v=n(25),w=n(1),y=n(51);n(2);a.prototype.render=function(){var e=c.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return i(e,t),t};var b=1,x={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._nativeParent=null,this._nativeContainerInfo=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n,r){this._context=r,this._mountOrder=b++,this._nativeParent=t,this._nativeContainerInfo=n;var o,s,l=this._processProps(this._currentElement.props),p=this._processContext(r),d=this._currentElement.type;d.prototype&&d.prototype.isReactComponent?o=new d(l,p,g):(o=d(l,p,g),null!=o&&null!=o.render||(s=o,i(d,s),null===o||o===!1||u.isValidElement(o)?void 0:w(!1),o=new a(d)));o.props=l,o.context=p,o.refs=v,o.updater=g,this._instance=o,c.set(o,this);var f=o.state;void 0===f&&(o.state=f=null),"object"!=typeof f||Array.isArray(f)?w(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var h;return h=o.unstable_handleError?this.performInitialMountWithErrorHandling(s,t,n,e,r):this.performInitialMount(s,t,n,e,r),o.componentDidMount&&e.getReactMountReady().enqueue(o.componentDidMount,o),h},performInitialMountWithErrorHandling:function(e,t,n,r,a){var i,o=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,a)}catch(s){r.rollback(o),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),o=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(o),i=this.performInitialMount(e,t,n,r,a)}return i},performInitialMount:function(e,t,n,r,a){var i=this._instance;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent()),this._renderedNodeType=d.getType(e),this._renderedComponent=this._instantiateReactComponent(e);var o=m.mountComponent(this._renderedComponent,r,t,n,this._processChildContext(a));return o},getNativeNode:function(){return m.getNativeNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount)if(e){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,c.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var r={};for(var a in n)r[a]=e[a];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?w(!1):void 0;for(var a in r)a in t.childContextTypes?void 0:w(!1);return o({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var a=this.getName();for(var i in e)if(e.hasOwnProperty(i)){var o;try{"function"!=typeof e[i]?w(!1):void 0,o=e[i](t,i,a,n)}catch(s){o=s}if(o instanceof Error){r(this);n===h.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,a=this._context;this._pendingElement=null,this.updateComponent(t,r,e,a,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&m.receiveComponent(this,this._pendingElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,a){var i,o,s=this._instance,l=!1;this._context===a?i=s.context:(i=this._processContext(a),l=!0),t===n?o=n.props:(o=this._processProps(n.props),l=!0),l&&s.componentWillReceiveProps&&s.componentWillReceiveProps(o,i);var u=this._processPendingState(o,i),p=this._pendingForceUpdate||!s.shouldComponentUpdate||s.shouldComponentUpdate(o,u,i);p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,o,u,i,e,a)):(this._currentElement=n,this._context=a,s.props=o,s.state=u,s.context=i)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,a=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(a&&1===r.length)return r[0];for(var i=o({},a?r[0]:n.state),s=a?1:0;s=0||null!=t.is}function c(e){var t=e.type;u(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._nativeNode=null,this._nativeParent=null,this._rootNodeID=null,this._domID=null,this._nativeContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var d=n(3),f=n(117),h=n(119),m=n(19),g=n(121),v=n(16),w=n(36),y=n(10),b=n(22),x=n(27),C=n(28),E=n(65),T=n(131),k=n(66),S=n(4),_=n(139),M=n(141),P=n(67),N=n(144),I=n(155),D=n(6),R=n(33),A=n(1),O=(n(49),n(13)),L=(n(58),n(53),n(2),k),z=b.deleteListener,B=S.getNodeFromInstance,U=C.listenTo,F=x.registrationNameModules,V={string:!0,number:!0},H=O({style:null}),j=O({__html:null}),W={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},G={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Y=d({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Q={},$={}.hasOwnProperty,Z=1;c.displayName="ReactDOMComponent",c.Mixin={mountComponent:function(e,t,n,a){this._rootNodeID=Z++,this._domID=n._idCounter++,this._nativeParent=t,this._nativeContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"iframe":case"object":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(s,this);break;case"button":i=T.getNativeProps(this,i,t);break;case"input":_.mountWrapper(this,i,t),i=_.getNativeProps(this,i),e.getReactMountReady().enqueue(s,this);break;case"option":M.mountWrapper(this,i,t),i=M.getNativeProps(this,i);break;case"select":P.mountWrapper(this,i,t),i=P.getNativeProps(this,i),e.getReactMountReady().enqueue(s,this);break;case"textarea":N.mountWrapper(this,i,t),i=N.getNativeProps(this,i),e.getReactMountReady().enqueue(s,this)}r(this,i);var l,u;null!=t?(l=t._namespaceURI,u=t._tag):n._tag&&(l=n._namespaceURI,u=n._tag),(null==l||l===g.svg&&"foreignobject"===u)&&(l=g.html),l===g.html&&("svg"===this._tag?l=g.svg:"math"===this._tag&&(l=g.mathml)),this._namespaceURI=l;var p;if(e.useCreateElement){var c,d=n._ownerDocument;if(l===g.html)if("script"===this._tag){var h=d.createElement("div"),v=this._currentElement.type;h.innerHTML="<"+v+">",c=h.removeChild(h.firstChild)}else c=d.createElement(this._currentElement.type);else c=d.createElementNS(l,this._currentElement.type);S.precacheNode(this,c),this._flags|=L.hasCachedChildNodes,this._nativeParent||w.setAttributeForRoot(c),this._updateDOMProperties(null,i,e);var y=m(c);this._createInitialChildren(e,i,a,y),p=y}else{var b=this._createOpenTagMarkupAndPutListeners(e,i),x=this._createContentMarkup(e,i,a);p=!x&&q[this._tag]?b+"/>":b+">"+x+""}switch(this._tag){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.getReactMountReady().enqueue(f.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(o,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(F.hasOwnProperty(r))i&&a(this,r,i,e);else{r===H&&(i&&(i=this._previousStyleCopy=d({},t.style)),i=h.createMarkupForStyles(i,this));var o=null;null!=this._tag&&p(this._tag,t)?W.hasOwnProperty(r)||(o=w.createMarkupForCustomAttribute(r,i)):o=w.createMarkupForProperty(r,i),o&&(n+=" "+o)}}return e.renderToStaticMarkup?n:(this._nativeParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&(r=a.__html);else{var i=V[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)r=R(i);else if(null!=o){var s=this.mountChildren(o,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&m.queueHTML(r,a.__html);else{var i=V[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)m.queueText(r,i);else if(null!=o)for(var s=this.mountChildren(o,e,n),l=0;l"},receiveComponent:function(){},getNativeNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=o},function(e,t,n){"use strict";function r(e){return a.createFactory(e)}var a=n(7),i=(n(68),n(107)),o=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=o},function(e,t){"use strict";var n={useCreateElement:!0};e.exports=n},function(e,t,n){"use strict";var r=n(35),a=n(4),i=n(6),o={dangerouslyProcessChildrenUpdates:function(e,t){var n=a.getNodeFromInstance(e);r.processUpdates(n,t)}};i.measureMethods(o,"ReactDOMIDOperations",{dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=o},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);u.asap(r,this);var a=t.name;if("radio"===t.type&&null!=a){for(var i=l.getNodeFromInstance(this),o=i;o.parentNode;)o=o.parentNode;for(var c=o.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),d=0;dt.end?(n=t.end,r=t.start):(n=t.start,r=t.end),a.moveToElementText(e),a.moveStart("character",n),a.setEndPoint("EndToStart",a),a.moveEnd("character",r-n),a.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[p()].length,a=Math.min(t.start,r),i=void 0===t.end?a:Math.min(t.end,r);if(!n.extend&&a>i){var o=i;i=a,a=o}var s=u(e,a),l=u(e,i);if(s&&l){var c=document.createRange();c.setStart(s.node,s.offset),n.removeAllRanges(),a>i?(n.addRange(c),n.extend(l.node,l.offset)):(c.setEnd(l.node,l.offset),n.addRange(c))}}}var l=n(5),u=n(177),p=n(84),c=l.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:c?a:i,setOffsets:c?o:s};e.exports=d},function(e,t,n){"use strict";var r=n(3),a=n(35),i=n(19),o=n(4),s=n(6),l=n(33),u=n(1),p=(n(53),function(e){this._currentElement=e,this._stringText=""+e,this._nativeNode=null,this._nativeParent=null,this._domID=null,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(p.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++,s=" react-text: "+a+" ",u=" /react-text ";if(this._domID=a,this._nativeParent=t,e.useCreateElement){var p=n._ownerDocument,c=p.createComment(s),d=p.createComment(u),f=i(p.createDocumentFragment());return i.queueChild(f,i(c)),this._stringText&&i.queueChild(f,i(p.createTextNode(this._stringText))),i.queueChild(f,i(d)),o.precacheNode(this,c),this._closingComment=d,f}var h=l(this._stringText);return e.renderToStaticMarkup?h:""+h+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getNativeNode();a.replaceDelimitedText(r[0],r[1],n)}}},getNativeNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=o.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?u(!1):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._nativeNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,o.uncacheNode(this)}}),s.measureMethods(p.prototype,"ReactDOMTextComponent",{mountComponent:"mountComponent",receiveComponent:"receiveComponent"}),e.exports=p},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return u.asap(r,this),n}var i=n(3),o=n(36),s=n(38),l=n(4),u=n(8),p=n(1),c=(n(2),{getNativeProps:function(e,t){null!=t.dangerouslySetInnerHTML?p(!1):void 0;var n=i({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?p(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:p(!1),r=r[0]),n=""+r),null==n&&(n="");var i=s.getValue(t);e._wrapperState={initialValue:""+(null!=i?i:n),listeners:null,onChange:a.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getValue(t);null!=n&&o.setValueForProperty(l.getNodeFromInstance(e),"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function r(e,t){"_nativeNode"in e?void 0:l(!1),"_nativeNode"in t?void 0:l(!1);for(var n=0,r=e;r;r=r._nativeParent)n++;for(var a=0,i=t;i;i=i._nativeParent)a++;for(;n-a>0;)e=e._nativeParent,n--;for(;a-n>0;)t=t._nativeParent,a--;for(var o=n;o--;){if(e===t)return e;e=e._nativeParent,t=t._nativeParent}return null}function a(e,t){"_nativeNode"in e?void 0:l(!1),"_nativeNode"in t?void 0:l(!1);for(;t;){if(t===e)return!0;t=t._nativeParent}return!1}function i(e){return"_nativeNode"in e?void 0:l(!1),e._nativeParent}function o(e,t,n){for(var r=[];e;)r.push(e),e=e._nativeParent;var a;for(a=r.length;a-- >0;)t(r[a],!1,n);for(a=0;a0;)n(l[u],!1,i)}var l=n(1);e.exports={isAncestor:a,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:o,traverseEnterLeave:s}},function(e,t,n){"use strict";var r,a=(n(16),n(27),n(2),{onCreateMarkupForProperty:function(e,t){r(e)},onSetValueForProperty:function(e,t,n){r(t)},onDeleteValueForProperty:function(e,t){r(t)}});e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r,a,i){}var a=n(153),i=(n(2),[]),o={addDevtool:function(e){i.push(e)},removeDevtool:function(e){for(var t=0;t/,i=/^<\!\-\-/,o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(a," "+o.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var a=r(e);return a===n}};e.exports=o},function(e,t,n){"use strict";function r(e,t,n){return{type:c.INSERT_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function a(e,t,n){return{type:c.MOVE_EXISTING,content:null,fromIndex:e._mountIndex,fromNode:d.getNativeNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:c.REMOVE_NODE,content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function o(e){return{type:c.SET_MARKUP,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:c.TEXT_CONTENT,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){p.processChildrenUpdates(e,t)}var p=n(39),c=n(73),d=(n(14),n(20)),f=n(128),h=n(175),m=n(1),g={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,a){var i;return i=h(t),f.updateChildren(e,i,n,r,a),i},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var a=[],i=0;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],l=d.mountComponent(s,t,this,this._nativeContainerInfo,n);s._mountIndex=i++,a.push(l)}return a},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&m(!1);var r=[s(e)];u(this,r)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&m(!1);var r=[o(e)];u(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,a={},i=this._reconcilerUpdateChildren(r,e,a,t,n);if(i||r){var o,s=null,p=0,c=0,f=null;for(o in i)if(i.hasOwnProperty(o)){var h=r&&r[o],m=i[o];h===m?(s=l(s,this.moveChild(h,f,c,p)),p=Math.max(h._mountIndex,p),h._mountIndex=c):(h&&(p=Math.max(h._mountIndex,p)),s=l(s,this._mountChildAtIndex(m,f,c,t,n))),c++,f=d.getNativeNode(m)}for(o in a)a.hasOwnProperty(o)&&(s=l(s,this._unmountChild(r[o],a[o])));s&&u(this,s),this._renderedChildren=i}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex=t)return{node:a,offset:t-i};i=o}a=n(r(a))}}e.exports=a},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function a(e){if(s[e])return s[e];if(!o[e])return e;var t=o[e];for(var n in t)if(t.hasOwnProperty(n)&&n in l)return s[e]=t[n];return""}var i=n(5),o={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},l={};i.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete o.animationend.animation,delete o.animationiteration.animation,delete o.animationstart.animation),"TransitionEvent"in window||delete o.transitionend.transition),e.exports=a},function(e,t,n){"use strict";function r(e){return a.isValidElement(e)?void 0:i(!1),e}var a=n(7),i=n(1);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+a(e)+'"'}var a=n(33);e.exports=r},function(e,t,n){"use strict";var r=n(72);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){var r=n(89);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(90);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(91);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(92);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(93);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(94);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(95);"string"==typeof r&&(r=[[e.id,r,""]]);n(15)(r,{});r.locals&&(e.exports=r.locals)}]); \ No newline at end of file diff --git a/build/index.html b/build/index.html new file mode 100644 index 0000000..a3e22dc --- /dev/null +++ b/build/index.html @@ -0,0 +1,19 @@ + + + + + + JD_demo + + + +
+
+
+ + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..a3e22dc --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ + + + + + + JD_demo + + + +
+
+
+ + + diff --git a/index.jsx b/index.jsx new file mode 100644 index 0000000..0feba4e --- /dev/null +++ b/index.jsx @@ -0,0 +1,23 @@ + +require('./app/lib/common.css'); +import React from 'react'; +import ReactDOM from 'react-dom'; + +import Search from './app/components/search.jsx'; +import Header from './app/components/header.jsx'; +import Otherapp from './app/components/otherapp.jsx'; +import Spike from './app/components/spike.jsx'; +import More from './app/components/more.jsx'; +import Like from './app/components/like.jsx'; + +ReactDOM.render( +
+ +
+ + + + +
, + document.querySelector("#myApp") +); diff --git a/jd.png b/jd.png new file mode 100644 index 0000000..5e74172 Binary files /dev/null and b/jd.png differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..2624dd0 --- /dev/null +++ b/package.json @@ -0,0 +1,49 @@ +{ + "name": "react-webpack-babel", + "version": "0.0.2", + "description": "React Webpack Babel Starter Kit", + "main": "''", + "scripts": { + "build": "NODE_ENV=production webpack -p --config webpack.production.config.js --progress --profile --colors", + "dev": "webpack-dev-server --progress --profile --colors --hot" + }, + "repository": { + "type": "git", + "url": "https://github.com/alicoding/react-webpack-babel" + }, + "keywords": [ + "React", + "Webpack", + "Babel", + "Starter", + "template" + ], + "author": "Ali Al Dallal", + "license": "MIT", + "bugs": { + "url": "https://github.com/alicoding/react-webpack-babel/issues" + }, + "homepage": "https://github.com/alicoding/react-webpack-babel#readme", + "dependencies": { + "json-loader": "^0.5.4", + "json5-loader": "^0.6.0", + "jsx-loader": "^0.13.2", + "node-libs-browser": "1.0.0", + "react": "15.0.1", + "react-dom": "15.0.1" + }, + "devDependencies": { + "babel-core": "6.7.7", + "babel-loader": "6.2.4", + "babel-preset-es2015": "6.6.0", + "babel-preset-react": "6.5.0", + "copy-webpack-plugin": "^3.0.1", + "css-loader": "0.23.1", + "file-loader": "0.8.5", + "react-hot-loader": "1.3.0", + "style-loader": "0.13.1", + "url-loader": "0.5.7", + "webpack": "1.13.0", + "webpack-dev-server": "1.14.1" + } +} diff --git a/server/app.js b/server/app.js new file mode 100644 index 0000000..edf327f --- /dev/null +++ b/server/app.js @@ -0,0 +1,63 @@ +var express = require('express'); +var path = require('path'); +var favicon = require('serve-favicon'); +var logger = require('morgan'); +var cookieParser = require('cookie-parser'); +var bodyParser = require('body-parser'); + +var data = require('./routes/data'); + + +var app = express(); + +// view engine setup +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +// uncomment after placing your favicon in /public +//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); +app.use(logger('dev')); +app.use(bodyParser.json()); +app.use(bodyParser.urlencoded({ extended: false })); +app.use(cookieParser()); +app.use(express.static(path.join(__dirname, 'public'))); + +app.use("/data/swiper", data.swiper); +app.use("/data/otherapp", data.otherapp); +app.use("/data/spike", data.spike); +app.use("/data/more", data.more); +app.use("/data/like", data.like); + + +// catch 404 and forward to error handler +app.use(function(req, res, next) { + var err = new Error('Not Found'); + err.status = 404; + next(err); +}); + +// error handlers + +// development error handler +// will print stacktrace +if (app.get('env') === 'development') { + app.use(function(err, req, res, next) { + res.status(err.status || 500); + res.render('error', { + message: err.message, + error: err + }); + }); +} + +// production error handler +// no stacktraces leaked to user +app.use(function(err, req, res, next) { + res.status(err.status || 500); + res.render('error', { + message: err.message, + error: {} + }); +}); + +module.exports = app; diff --git a/server/bin/www b/server/bin/www new file mode 100644 index 0000000..08f61aa --- /dev/null +++ b/server/bin/www @@ -0,0 +1,91 @@ +#!/usr/bin/env node + +/** + * Module dependencies. + */ + +var app = require('../app'); +var debug = require('debug')('server:server'); +var http = require('http'); + +/** + * Get port from environment and store in Express. + */ + +var port = normalizePort(process.env.PORT || '3000'); +app.set('port', port); + +/** + * Create HTTP server. + */ + +var server = http.createServer(app); + +/** + * Listen on provided port, on all network interfaces. + */ + +server.listen(port); +server.on('error', onError); +server.on('listening', onListening); + +/** + * Normalize a port into a number, string, or false. + */ + +function normalizePort(val) { + var port = parseInt(val, 10); + + if (isNaN(port)) { + // named pipe + return val; + } + + if (port >= 0) { + // port number + return port; + } + + return false; +} + +/** + * Event listener for HTTP server "error" event. + */ + +function onError(error) { + if (error.syscall !== 'listen') { + throw error; + } + + var bind = typeof port === 'string' + ? 'Pipe ' + port + : 'Port ' + port; + + // handle specific listen errors with friendly messages + switch (error.code) { + case 'EACCES': + console.error(bind + ' requires elevated privileges'); + process.exit(1); + break; + case 'EADDRINUSE': + console.error(bind + ' is already in use'); + process.exit(1); + break; + default: + throw error; + } +} + +/** + * Event listener for HTTP server "listening" event. + */ + +function onListening() { + var addr = server.address(); + var bind = typeof addr === 'string' + ? 'pipe ' + addr + : 'port ' + addr.port; + debug('Listening on ' + bind); + console.log("server running on localhost:3000"); +} diff --git a/server/package.json b/server/package.json new file mode 100644 index 0000000..b7e5037 --- /dev/null +++ b/server/package.json @@ -0,0 +1,20 @@ +{ + "name": "server", + "version": "0.0.0", + "private": true, + "scripts": { + "start": "node --use-strict ./bin/www" + }, + "dependencies": { + "body-parser": "~1.15.1", + "cookie-parser": "~1.4.3", + "debug": "~2.2.0", + "ejs": "~2.4.1", + "express": "~4.13.4", + "morgan": "~1.7.0", + "serve-favicon": "~2.3.0" + }, + "devDependencies": { + "url": "^0.11.0" + } +} diff --git a/server/public/database/database.json b/server/public/database/database.json new file mode 100644 index 0000000..3f0d7dc --- /dev/null +++ b/server/public/database/database.json @@ -0,0 +1,128 @@ +{ + "otherapp": [ + { + "title": "京东超市", + "url": "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1" + }, + { + "title": "全球购", + "url": "http://jdw.jd.hk/?vs=m" + }, + { + "title": "充值中心", + "url": "http://newcz.m.jd.com" + }, + { + "title": "服装城", + "url": "http://h5.m.jd.com/active/3GTca2WsjgRdohGtJCUnWB3bDs8o/index.html" + }, + { + "title": "京东金融", + "url": "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1" + }, + { + "title": "领券", + "url": "http://coupon.m.jd.com/center/getCouponCenter.action" + }, + { + "title": "物流查询", + "url": "http://home.m.jd.com/user/userAllOrderList.action" + }, + { + "title": "京东超市", + "url": "http://home.m.jd.com/myJd/myFocus/focusWare.action" + } + + ], + "spike": { + "store": [ + { + "url": "http://ms.m.jd.com/seckill/seckillList?wareId=2537829", + "sprice": 299, + "price": 399 + }, + { + "url": "http://ms.m.jd.com/seckill/seckillList?wareId=2537829", + "sprice": 3999, + "price": 4999 + }, + { + "url": "http://ms.m.jd.com/seckill/seckillList?wareId=2537829", + "sprice": 1099, + "price": 1299 + } + ], + "times": 3680, + "more": "http://ms.m.jd.com/seckill/seckillList?wareId=2537829" + }, + "more": ["http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1", "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1", "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1", "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1", "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1", "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1", "http://h5.m.jd.com/active/2hqsQcyM5bEUVSStkN3BwrBHqVLd/index.html?has_native=1"], + "like": [ + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + }, + { + "url": "http://mercury.jd.com/log.gif?t=rec.621017&v=src=rec$action=1$reqsig=587d7faebebd1b39a72f6a4585dc53b4d2712232$enb=1$sku=0$p=621017$pin=$uuid=afc6b5fc22f06d60cf1d80dae754de38$csku=1962981185$index=1$st=0$adcli=$expid=104$im=&rid=5429717235485556179&ver=1&sig=d4e215d315c40777940a4df589e2c960670c396f", + "desc": "苹果原装数据线iPhone6s/6Plus/5SE/iPadpro/4 USB头线充电器 lighting数据线", + "price": 99.00, + "more": "http://m.jd.com/index/lookSimilar.action?wid=1962981185" + } + ] +} + + + + + + + diff --git a/server/public/images/like/like1.jpg b/server/public/images/like/like1.jpg new file mode 100644 index 0000000..d1cfc24 Binary files /dev/null and b/server/public/images/like/like1.jpg differ diff --git a/server/public/images/like/like10.jpg b/server/public/images/like/like10.jpg new file mode 100644 index 0000000..8092806 Binary files /dev/null and b/server/public/images/like/like10.jpg differ diff --git a/server/public/images/like/like2.jpg b/server/public/images/like/like2.jpg new file mode 100644 index 0000000..5421c6e Binary files /dev/null and b/server/public/images/like/like2.jpg differ diff --git a/server/public/images/like/like3.jpg b/server/public/images/like/like3.jpg new file mode 100644 index 0000000..953acd7 Binary files /dev/null and b/server/public/images/like/like3.jpg differ diff --git a/server/public/images/like/like4.jpg b/server/public/images/like/like4.jpg new file mode 100644 index 0000000..f5e858f Binary files /dev/null and b/server/public/images/like/like4.jpg differ diff --git a/server/public/images/like/like5.jpg b/server/public/images/like/like5.jpg new file mode 100644 index 0000000..d26998c Binary files /dev/null and b/server/public/images/like/like5.jpg differ diff --git a/server/public/images/like/like6.jpg b/server/public/images/like/like6.jpg new file mode 100644 index 0000000..6a5abe6 Binary files /dev/null and b/server/public/images/like/like6.jpg differ diff --git a/server/public/images/like/like7.jpg b/server/public/images/like/like7.jpg new file mode 100644 index 0000000..0a3889d Binary files /dev/null and b/server/public/images/like/like7.jpg differ diff --git a/server/public/images/like/like8.jpg b/server/public/images/like/like8.jpg new file mode 100644 index 0000000..d28834c Binary files /dev/null and b/server/public/images/like/like8.jpg differ diff --git a/server/public/images/like/like9.jpg b/server/public/images/like/like9.jpg new file mode 100644 index 0000000..e7b9e60 Binary files /dev/null and b/server/public/images/like/like9.jpg differ diff --git a/server/public/images/more/more1.jpg b/server/public/images/more/more1.jpg new file mode 100644 index 0000000..514c557 Binary files /dev/null and b/server/public/images/more/more1.jpg differ diff --git a/server/public/images/more/more2.jpg b/server/public/images/more/more2.jpg new file mode 100644 index 0000000..d1eb5de Binary files /dev/null and b/server/public/images/more/more2.jpg differ diff --git a/server/public/images/more/more3.jpg b/server/public/images/more/more3.jpg new file mode 100644 index 0000000..0d6105c Binary files /dev/null and b/server/public/images/more/more3.jpg differ diff --git a/server/public/images/more/more4.jpg b/server/public/images/more/more4.jpg new file mode 100644 index 0000000..472e128 Binary files /dev/null and b/server/public/images/more/more4.jpg differ diff --git a/server/public/images/more/more5.jpg b/server/public/images/more/more5.jpg new file mode 100644 index 0000000..d0e277a Binary files /dev/null and b/server/public/images/more/more5.jpg differ diff --git a/server/public/images/more/more6.jpg b/server/public/images/more/more6.jpg new file mode 100644 index 0000000..affe380 Binary files /dev/null and b/server/public/images/more/more6.jpg differ diff --git a/server/public/images/more/more7.jpg b/server/public/images/more/more7.jpg new file mode 100644 index 0000000..c2c1606 Binary files /dev/null and b/server/public/images/more/more7.jpg differ diff --git a/server/public/images/otherapp/app1.png b/server/public/images/otherapp/app1.png new file mode 100644 index 0000000..3b73f13 Binary files /dev/null and b/server/public/images/otherapp/app1.png differ diff --git a/server/public/images/otherapp/app2.png b/server/public/images/otherapp/app2.png new file mode 100644 index 0000000..542e889 Binary files /dev/null and b/server/public/images/otherapp/app2.png differ diff --git a/server/public/images/otherapp/app3.png b/server/public/images/otherapp/app3.png new file mode 100644 index 0000000..3e806ff Binary files /dev/null and b/server/public/images/otherapp/app3.png differ diff --git a/server/public/images/otherapp/app4.png b/server/public/images/otherapp/app4.png new file mode 100644 index 0000000..582007f Binary files /dev/null and b/server/public/images/otherapp/app4.png differ diff --git a/server/public/images/otherapp/app5.png b/server/public/images/otherapp/app5.png new file mode 100644 index 0000000..244ed5e Binary files /dev/null and b/server/public/images/otherapp/app5.png differ diff --git a/server/public/images/otherapp/app6.png b/server/public/images/otherapp/app6.png new file mode 100644 index 0000000..8c4554a Binary files /dev/null and b/server/public/images/otherapp/app6.png differ diff --git a/server/public/images/otherapp/app7.png b/server/public/images/otherapp/app7.png new file mode 100644 index 0000000..de8eaf8 Binary files /dev/null and b/server/public/images/otherapp/app7.png differ diff --git a/server/public/images/otherapp/app8.png b/server/public/images/otherapp/app8.png new file mode 100644 index 0000000..dd6b0e0 Binary files /dev/null and b/server/public/images/otherapp/app8.png differ diff --git a/server/public/images/spike/spike1.jpg b/server/public/images/spike/spike1.jpg new file mode 100644 index 0000000..9b40007 Binary files /dev/null and b/server/public/images/spike/spike1.jpg differ diff --git a/server/public/images/spike/spike2.jpg b/server/public/images/spike/spike2.jpg new file mode 100644 index 0000000..af61e3a Binary files /dev/null and b/server/public/images/spike/spike2.jpg differ diff --git a/server/public/images/spike/spike3.jpg b/server/public/images/spike/spike3.jpg new file mode 100644 index 0000000..9e32f61 Binary files /dev/null and b/server/public/images/spike/spike3.jpg differ diff --git a/server/public/images/swiper/1.jpg b/server/public/images/swiper/1.jpg new file mode 100644 index 0000000..dd7e927 Binary files /dev/null and b/server/public/images/swiper/1.jpg differ diff --git a/server/public/images/swiper/2.jpg b/server/public/images/swiper/2.jpg new file mode 100644 index 0000000..5511333 Binary files /dev/null and b/server/public/images/swiper/2.jpg differ diff --git a/server/public/images/swiper/3.jpg b/server/public/images/swiper/3.jpg new file mode 100644 index 0000000..20c418b Binary files /dev/null and b/server/public/images/swiper/3.jpg differ diff --git a/server/public/images/swiper/4.jpg b/server/public/images/swiper/4.jpg new file mode 100644 index 0000000..6c8ef52 Binary files /dev/null and b/server/public/images/swiper/4.jpg differ diff --git a/server/public/images/swiper/5.jpg b/server/public/images/swiper/5.jpg new file mode 100644 index 0000000..dda7573 Binary files /dev/null and b/server/public/images/swiper/5.jpg differ diff --git a/server/routes/data.js b/server/routes/data.js new file mode 100644 index 0000000..15647da --- /dev/null +++ b/server/routes/data.js @@ -0,0 +1,222 @@ + +let express = require('express'); +let router = express.Router(); +let fs = require('fs'); + + +let dataBase = null; + +/** + * 通过Promise读取存储的数据,确保有数据后再执行其他操作 + * @return {null} [无] + */ +let readFileData = () => { + let promise = new Promise((resolve, reject) => { + fs.readFile("./public/database/database.json", "utf-8", (err, data) => { + if(err) { + console.log(err); + reject("read filedata error!"); + }else { + data = JSON.parse(data); + dataBase = data; + resolve(); + } + }) + }); + return promise; +} + + +/** + * 通过Promise获取文件名 + * @param {String} path [文件的路径名] + * @param {String} fileClass [文件所属的种类,用于区别请求] + * @return {null} [无] + */ +let getFileName = (path, fileClass) => { + let promise = new Promise((resolve, reject) => { + fs.readdir(path, (err, files) => { + if (err) { + reject("read fileName err!") + } else { + files = files.map((file) => { + return "http://localhost:3000/images/" + fileClass + "/" + file; + }); + resolve(files); + } + }); + }); + return promise; +} + +let imgNames = []; +let appNames = []; +let spikeNames = []; +let moreNames = []; +let likeNames = []; + +readFileData().then(() => { + getFileName("./public/images/swiper", "swiper").then((files) => { + imgNames = files; + },() => { + console.log(err); + imgNames = false; + }); + + getFileName("./public/images/otherapp", "otherapp").then((files) => { + let obj = dataBase.otherapp; + appNames = files.map((file, index) => { + obj[index].icon = file; + return obj[index]; + }); + },() => { + console.log(err); + }); + + getFileName("./public/images/spike", "spike").then((files) => { + let obj = dataBase.spike.store; + spikeNames = files.map((file, index) => { + obj[index].icon = file; + return obj[index]; + }); + },() => { + console.log(err); + }) + + getFileName("./public/images/more", "more").then((files) => { + moreNames = files.map((file, index) => { + return { + icon: file, + url: dataBase.more[index], + } + }); + },() => { + console.log(err); + }) + + getFileName("./public/images/like", "like").then((files) => { + let obj = dataBase.like; + likeNames = files.map((file, index) => { + obj[index].icon = file; + return obj[index]; + }) + },() => { + console.log(err); + }) + + +}, (err) => { + console.log(err); +}) + + +exports.swiper = (req, res) => { + let reg = /\?callback=(.*)/; + let callback = reg.exec(req.url)[1]; + const sendData = { + status: 0, + msg: "", + data: "", + } + if(imgNames) { + sendData.status = 1; + sendData.msg = "success"; + sendData.data = imgNames; + }else { + sendData.msg = "error"; + } + let json = JSON.stringify(sendData); + res.send(callback + '(' + json + ')'); +}; + +exports.otherapp = (req, res) => { + let reg = /\?callback=(.*)/; + let callback = reg.exec(req.url)[1]; + const sendData = { + status: 0, + msg: "", + data: [], + } + + if(appNames) { + sendData.status = 1; + sendData.msg = "success"; + sendData.data = appNames; + + }else { + sendData.msg = "error"; + } + + let json = JSON.stringify(sendData); + res.send(callback + '(' + json + ')'); +}; + +exports.spike = (req, res) => { + let reg = /\?callback=(.*)/; + let callback = reg.exec(req.url)[1]; + const sendData = { + status: 0, + msg: "", + data: [], + times: "", + more: "", + } + + if(spikeNames) { + sendData.status = 1; + sendData.msg = "success"; + sendData.data = spikeNames; + sendData.times = dataBase.spike.times; + sendData.more = dataBase.spike.more; + }else { + sendData.msg = "error"; + } + + let json = JSON.stringify(sendData); + res.send(callback + '(' + json + ')'); +}; + +exports.more = (req, res) => { + let reg = /\?callback=(.*)/; + let callback = reg.exec(req.url)[1]; + const sendData = { + status: 0, + msg: "", + data: [], + } + + if(moreNames) { + sendData.status = 1; + sendData.msg = "success"; + sendData.data = moreNames; + }else { + sendData.msg = "error"; + } + + let json = JSON.stringify(sendData); + res.send(callback + '(' + json + ')'); +}; + +exports.like = (req, res) => { + let reg = /\?callback=(.*)/; + let callback = reg.exec(req.url)[1]; + const sendData = { + status: 0, + msg: "", + data: [], + } + + if(likeNames) { + sendData.status = 1; + sendData.msg = "success"; + sendData.data = likeNames; + }else { + sendData.msg = "error"; + } + + let json = JSON.stringify(sendData); + res.send(callback + '(' + json + ')'); +}; + + + diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..455b47c --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,40 @@ +var webpack = require('webpack'); +var path = require('path'); +var loaders = require('./webpack.loaders'); +var CopyWebpackPlugin = require('copy-webpack-plugin'); + +module.exports = { + entry: [ + 'webpack-dev-server/client?http://0.0.0.0:8080', // WebpackDevServer host and port + 'webpack/hot/only-dev-server', + './index.jsx' // Your appʼs entry point + ], + //生成的sourcemap的方式 + devtool: process.env.WEBPACK_DEVTOOL || 'source-map', + output: { + path: path.join(__dirname, 'build'), + filename: 'bundle.js' + }, + resolve: { + extensions: ['', '.js', '.jsx'] + }, + module: { + loaders: loaders + }, + devServer: { + contentBase: "./build", //静态资源的目录 + noInfo: true, // --no-info option + hot: true, //自动刷新 + inline: true + }, + plugins: [ + new webpack.DefinePlugin({ + 'process.env':{ + 'NODE_ENV': JSON.stringify('production') + } + }), + new CopyWebpackPlugin([ + {from: './index.html'} + ]) + ] +}; diff --git a/webpack.loaders.js b/webpack.loaders.js new file mode 100644 index 0000000..8fe11ce --- /dev/null +++ b/webpack.loaders.js @@ -0,0 +1,40 @@ +module.exports = [ + { + test: /\.jsx?$/, + exclude: /(node_modules|bower_components)/, + loaders: ['react-hot', 'babel'], + }, + + { + test: /\.css$/, + loader: 'style-loader!css-loader' + }, + { + test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, + loader: "file" + }, + { + test: /\.(woff|woff2)$/, + loader: "url?prefix=font/&limit=5000" + }, + { + test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, + loader: "url?limit=10000&mimetype=application/octet-stream" + }, + { + test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, + loader: "url?limit=10000&mimetype=image/svg+xml" + }, + { + test: /\.gif/, + loader: "url-loader?limit=10000&mimetype=image/gif" + }, + { + test: /\.jpg/, + loader: "url-loader?limit=10000&mimetype=image/jpg" + }, + { + test: /\.png/, + loader: "url-loader?limit=10000&mimetype=image/png" + } +]; diff --git a/webpack.production.config.js b/webpack.production.config.js new file mode 100644 index 0000000..7629a41 --- /dev/null +++ b/webpack.production.config.js @@ -0,0 +1,51 @@ +var webpack = require('webpack'); +var path = require('path'); +var loaders = require('./webpack.loaders'); +var CopyWebpackPlugin = require('copy-webpack-plugin'); + +//先清空build文件夹下的文件 +var fs = require('fs'); +var buildPath='./build/'; +var folder_exists = fs.existsSync(buildPath); +if(folder_exists == true) +{ + var dirList = fs.readdirSync(buildPath); + dirList.forEach(function(fileName) + { + fs.unlinkSync(buildPath + fileName); + }); + console.log("clearing " + buildPath); +}; + +module.exports = { + //入口文件配置 + entry: [ + './index.jsx' // Your appʼs entry point + ], + //输出文件配置 + output: { + path: path.join(__dirname, 'build'), + filename: 'bundle.js' + }, + //更多配置项 + resolve: { + extensions: ['', '.js', '.jsx'] //自动扩展文件后缀名,意味着我们require模块可以省略不写后缀名 + }, + //文件的加载配置 + module: { + loaders: loaders + }, + //插件配置 + plugins: [ + //Webpack提供了设置环境变量来优化代码的方案 + new webpack.DefinePlugin({ + 'process.env':{ + 'NODE_ENV': JSON.stringify('production') + } + }), + //复制文件到构建目录 + new CopyWebpackPlugin([ + {from: './index.html'} + ]) + ] +};