linaro-jekyll-theme 0.2.0 → 0.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -19
  3. data/_data/authors.yml +7 -0
  4. data/_data/company.yml +29 -0
  5. data/_data/footer.yml +1 -0
  6. data/_data/members_db.yaml +115 -0
  7. data/_data/nav.yml +62 -0
  8. data/_data/news.yaml +230 -0
  9. data/_data/sub-nav-stacked.yml +67 -0
  10. data/_data/sub-nav.yml +61 -0
  11. data/_includes/_theme-includes/_blog/pagination.html +1 -1
  12. data/_includes/_theme-includes/_footer/footer.html +56 -27
  13. data/_includes/_theme-includes/_head/head.html +15 -7
  14. data/_includes/_theme-includes/_navigation/nav.html +62 -16
  15. data/_includes/_theme-includes/_navigation/stacked-nav.html +20 -0
  16. data/_includes/_theme-includes/_navigation/tabbed-nav.html +35 -0
  17. data/_includes/_theme-includes/_page-structure/breadcrumb.html +77 -27
  18. data/_includes/_theme-includes/_page-structure/home-hero-shape.html +34 -0
  19. data/_includes/_theme-includes/_page-structure/home-hero.html +23 -0
  20. data/_includes/_theme-includes/_page-structure/shape-divider.html +12 -0
  21. data/_includes/_theme-includes/_script-includes/css.html +40 -3
  22. data/_includes/_theme-includes/_script-includes/google-analytics/script.html +10 -0
  23. data/_includes/_theme-includes/_script-includes/gtm/gtm-noscript.html +2 -1
  24. data/_includes/_theme-includes/_script-includes/gtm/gtm-script.html +9 -7
  25. data/_includes/_theme-includes/_script-includes/javascript.html +50 -2
  26. data/_includes/_theme-includes/_third-party/disqus.html +1 -1
  27. data/_includes/_theme-includes/_third-party/mailchimp-homepage.html +1 -6
  28. data/_includes/_theme-includes/members.html +3 -3
  29. data/_includes/image.html +6 -1
  30. data/_includes/media.html +9 -1
  31. data/_includes/youtube.html +7 -0
  32. data/{assets/vendor.js → _layouts/about.html} +0 -0
  33. data/_layouts/accessory-display-page.html +88 -0
  34. data/_layouts/blog-breadcrumbless.html +49 -0
  35. data/_layouts/blog.html +56 -0
  36. data/_layouts/contact.html +10 -0
  37. data/_layouts/default-empty.html +11 -0
  38. data/_layouts/default-no-sub-nav.html +15 -0
  39. data/_layouts/default-plain.html +16 -0
  40. data/_layouts/default-stacked-breadcrumb.html +23 -0
  41. data/_layouts/default-stacked.html +22 -0
  42. data/_layouts/default.html +20 -0
  43. data/_layouts/empty.html +10 -0
  44. data/_layouts/{plain-page.html → fluid-no-sub-nav.html} +2 -2
  45. data/_layouts/fluid.html +15 -0
  46. data/_layouts/home-shape.html +18 -0
  47. data/_layouts/home.html +18 -0
  48. data/_layouts/post.html +146 -0
  49. data/_layouts/product-display-page.html +262 -0
  50. data/_layouts/project-display-page.html +28 -0
  51. data/_sass/bootstrap/_variables.scss +28 -5
  52. data/_sass/core/blog.scss +36 -25
  53. data/_sass/core/breadcrumb.scss +20 -1
  54. data/_sass/core/carousel-styles.scss +3 -0
  55. data/_sass/core/cookieconsent.scss +31 -2
  56. data/_sass/core/custom.scss +3 -0
  57. data/_sass/core/fa.scss +7 -2
  58. data/_sass/core/footer.scss +55 -13
  59. data/_sass/core/homepage.scss +25 -1
  60. data/_sass/core/nav.scss +136 -15
  61. data/_sass/core/owl.carousel.min.scss +1 -1
  62. data/_sass/core/products.scss +1 -1
  63. data/_sass/core/tables.scss +38 -0
  64. data/_sass/core/theme.scss +310 -16
  65. data/_sass/custom.scss +0 -0
  66. data/assets/css/main-blog.scss +19 -0
  67. data/assets/css/main-home.scss +16 -0
  68. data/{_sass/main.scss → assets/css/main-lightbox.scss} +5 -0
  69. data/assets/css/main-openhours.scss +19 -0
  70. data/assets/css/main-products.scss +20 -0
  71. data/assets/css/main-projects.scss +20 -0
  72. data/assets/css/main.scss +3 -0
  73. data/assets/fonts/fontawesome-webfont.eot +0 -0
  74. data/assets/fonts/fontawesome-webfont.svg +2671 -0
  75. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  76. data/assets/fonts/fontawesome-webfont.woff +0 -0
  77. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  78. data/assets/fonts/fontello.eot +0 -0
  79. data/assets/fonts/fontello.svg +44 -0
  80. data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  81. data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  82. data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  83. data/assets/fonts/lato-regular/LICENSE.txt +93 -0
  84. data/assets/fonts/lato-regular/Lato-regular.eot +0 -0
  85. data/assets/fonts/lato-regular/Lato-regular.svg +435 -0
  86. data/assets/fonts/lato-regular/Lato-regular.ttf +0 -0
  87. data/assets/fonts/lato-regular/Lato-regular.woff +0 -0
  88. data/assets/fonts/lato-regular/Lato-regular.woff2 +0 -0
  89. data/assets/images/avatar-placeholder.png +0 -0
  90. data/assets/images/background-image.jpg +0 -0
  91. data/assets/images/banner.jpg +0 -0
  92. data/assets/images/close.png +0 -0
  93. data/assets/images/css3.png +0 -0
  94. data/assets/images/favicon.ico +0 -0
  95. data/assets/images/favicon.png +0 -0
  96. data/assets/images/html5.png +0 -0
  97. data/assets/images/jekyll.svg +1 -0
  98. data/assets/images/js.jpeg +0 -0
  99. data/assets/images/loading.gif +0 -0
  100. data/assets/images/next.png +0 -0
  101. data/assets/images/owl.video.play.png +0 -0
  102. data/assets/images/placeholder.png +0 -0
  103. data/assets/images/prev.png +0 -0
  104. data/assets/images/social-media-image.png +0 -0
  105. data/assets/js/app/{96boards.js → main.js} +5 -29
  106. data/assets/js/app/{search-page.js → search.js} +1 -1
  107. data/assets/js/app/{sticky-navbar.js → sticky.js} +0 -0
  108. data/assets/js/app/tables.js +8 -0
  109. data/assets/js/vendor/cognito-forms.js +150 -0
  110. data/assets/js/vendor/cookieconsent.min.js +2 -9
  111. data/assets/js/vendor/flipclock.min.js +33 -0
  112. data/assets/js/vendor/lightbox.min.js +14 -0
  113. data/robots.txt +9 -0
  114. metadata +144 -171
  115. data/_includes/_theme-includes/_footer/backup.html +0 -71
  116. data/_includes/_theme-includes/_head/ascii-art.html +0 -11
  117. data/_includes/_theme-includes/_navigation/_sub-navigation/tabbed-nav.html +0 -150
  118. data/_includes/_theme-includes/_page-structure/old-breadcrumb.html +0 -139
  119. data/_includes/_theme-includes/_third-party/mailchimp-sub-footer.html +0 -40
  120. data/_layouts/empty-container-page.html +0 -10
  121. data/_sass/blog-pages.scss +0 -5
  122. data/_sass/core/critical.scss +0 -991
  123. data/_sass/core/members-sprite.scss +0 -425
  124. data/_sass/documentation-pages.scss +0 -3
  125. data/_sass/home-page.scss +0 -3
  126. data/_sass/openhours-page.scss +0 -4
  127. data/_sass/products-pages.scss +0 -5
  128. data/_sass/projects-pages.scss +0 -5
  129. data/assets/css/_bootstrap-compass.scss +0 -9
  130. data/assets/css/_bootstrap-mincer.scss +0 -19
  131. data/assets/css/_bootstrap-sprockets.scss +0 -9
  132. data/assets/css/_bootstrap.scss +0 -56
  133. data/assets/css/blog-pages.scss +0 -5
  134. data/assets/css/bootstrap/_alerts.scss +0 -73
  135. data/assets/css/bootstrap/_badges.scss +0 -68
  136. data/assets/css/bootstrap/_breadcrumbs.scss +0 -28
  137. data/assets/css/bootstrap/_button-groups.scss +0 -244
  138. data/assets/css/bootstrap/_buttons.scss +0 -168
  139. data/assets/css/bootstrap/_carousel.scss +0 -270
  140. data/assets/css/bootstrap/_close.scss +0 -36
  141. data/assets/css/bootstrap/_code.scss +0 -69
  142. data/assets/css/bootstrap/_component-animations.scss +0 -37
  143. data/assets/css/bootstrap/_dropdowns.scss +0 -216
  144. data/assets/css/bootstrap/_forms.scss +0 -617
  145. data/assets/css/bootstrap/_glyphicons.scss +0 -307
  146. data/assets/css/bootstrap/_grid.scss +0 -84
  147. data/assets/css/bootstrap/_input-groups.scss +0 -171
  148. data/assets/css/bootstrap/_jumbotron.scss +0 -54
  149. data/assets/css/bootstrap/_labels.scss +0 -66
  150. data/assets/css/bootstrap/_list-group.scss +0 -130
  151. data/assets/css/bootstrap/_media.scss +0 -66
  152. data/assets/css/bootstrap/_mixins.scss +0 -40
  153. data/assets/css/bootstrap/_modals.scss +0 -150
  154. data/assets/css/bootstrap/_navbar.scss +0 -662
  155. data/assets/css/bootstrap/_navs.scss +0 -242
  156. data/assets/css/bootstrap/_normalize.scss +0 -424
  157. data/assets/css/bootstrap/_pager.scss +0 -54
  158. data/assets/css/bootstrap/_pagination.scss +0 -89
  159. data/assets/css/bootstrap/_panels.scss +0 -271
  160. data/assets/css/bootstrap/_popovers.scss +0 -131
  161. data/assets/css/bootstrap/_print.scss +0 -101
  162. data/assets/css/bootstrap/_progress-bars.scss +0 -87
  163. data/assets/css/bootstrap/_responsive-embed.scss +0 -35
  164. data/assets/css/bootstrap/_responsive-utilities.scss +0 -179
  165. data/assets/css/bootstrap/_scaffolding.scss +0 -161
  166. data/assets/css/bootstrap/_tables.scss +0 -234
  167. data/assets/css/bootstrap/_theme.scss +0 -291
  168. data/assets/css/bootstrap/_thumbnails.scss +0 -38
  169. data/assets/css/bootstrap/_tooltip.scss +0 -101
  170. data/assets/css/bootstrap/_type.scss +0 -298
  171. data/assets/css/bootstrap/_utilities.scss +0 -55
  172. data/assets/css/bootstrap/_variables.scss +0 -874
  173. data/assets/css/bootstrap/_wells.scss +0 -29
  174. data/assets/css/bootstrap/mixins/_alerts.scss +0 -14
  175. data/assets/css/bootstrap/mixins/_background-variant.scss +0 -12
  176. data/assets/css/bootstrap/mixins/_border-radius.scss +0 -18
  177. data/assets/css/bootstrap/mixins/_buttons.scss +0 -65
  178. data/assets/css/bootstrap/mixins/_center-block.scss +0 -7
  179. data/assets/css/bootstrap/mixins/_clearfix.scss +0 -22
  180. data/assets/css/bootstrap/mixins/_forms.scss +0 -88
  181. data/assets/css/bootstrap/mixins/_gradients.scss +0 -58
  182. data/assets/css/bootstrap/mixins/_grid-framework.scss +0 -81
  183. data/assets/css/bootstrap/mixins/_grid.scss +0 -122
  184. data/assets/css/bootstrap/mixins/_hide-text.scss +0 -21
  185. data/assets/css/bootstrap/mixins/_image.scss +0 -33
  186. data/assets/css/bootstrap/mixins/_labels.scss +0 -12
  187. data/assets/css/bootstrap/mixins/_list-group.scss +0 -32
  188. data/assets/css/bootstrap/mixins/_nav-divider.scss +0 -10
  189. data/assets/css/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  190. data/assets/css/bootstrap/mixins/_opacity.scss +0 -8
  191. data/assets/css/bootstrap/mixins/_pagination.scss +0 -24
  192. data/assets/css/bootstrap/mixins/_panels.scss +0 -24
  193. data/assets/css/bootstrap/mixins/_progress-bar.scss +0 -10
  194. data/assets/css/bootstrap/mixins/_reset-filter.scss +0 -8
  195. data/assets/css/bootstrap/mixins/_reset-text.scss +0 -18
  196. data/assets/css/bootstrap/mixins/_resize.scss +0 -6
  197. data/assets/css/bootstrap/mixins/_responsive-visibility.scss +0 -21
  198. data/assets/css/bootstrap/mixins/_size.scss +0 -10
  199. data/assets/css/bootstrap/mixins/_tab-focus.scss +0 -9
  200. data/assets/css/bootstrap/mixins/_table-row.scss +0 -28
  201. data/assets/css/bootstrap/mixins/_text-emphasis.scss +0 -12
  202. data/assets/css/bootstrap/mixins/_text-overflow.scss +0 -8
  203. data/assets/css/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  204. data/assets/css/core/animations.scss +0 -125
  205. data/assets/css/core/blog.scss +0 -206
  206. data/assets/css/core/breadcrumb.scss +0 -48
  207. data/assets/css/core/carousel.scss +0 -136
  208. data/assets/css/core/cookieconsent.scss +0 -13
  209. data/assets/css/core/critical.scss +0 -991
  210. data/assets/css/core/fa.scss +0 -2331
  211. data/assets/css/core/flipclock.scss +0 -435
  212. data/assets/css/core/font-awesome.min.scss +0 -4
  213. data/assets/css/core/fonts.scss +0 -7
  214. data/assets/css/core/footer.scss +0 -79
  215. data/assets/css/core/homepage.scss +0 -16
  216. data/assets/css/core/lightbox.scss +0 -213
  217. data/assets/css/core/members-sprite.scss +0 -425
  218. data/assets/css/core/nav.scss +0 -536
  219. data/assets/css/core/openhours.scss +0 -51
  220. data/assets/css/core/owl.carousel.min.scss +0 -6
  221. data/assets/css/core/owl.theme.default.min.scss +0 -6
  222. data/assets/css/core/products.scss +0 -221
  223. data/assets/css/core/projects.scss +0 -32
  224. data/assets/css/core/social-media-icons.scss +0 -71
  225. data/assets/css/core/syntax.scss +0 -65
  226. data/assets/css/core/tables.scss +0 -87
  227. data/assets/css/core/theme.scss +0 -244
  228. data/assets/css/documentation-pages.scss +0 -3
  229. data/assets/css/home-page.scss +0 -3
  230. data/assets/css/openhours-page.scss +0 -4
  231. data/assets/css/products-pages.scss +0 -5
  232. data/assets/css/projects-pages.scss +0 -5
  233. data/assets/js/app.js +0 -2
  234. data/assets/js/app/app.js +0 -5
  235. data/assets/js/app/mixitup.js +0 -23
  236. data/assets/js/sticky-navbar.js +0 -65
  237. data/assets/js/vendor.js +0 -7
  238. data/assets/js/vendor/filtrify.js +0 -11
  239. data/assets/js/vendor/lightbox.js +0 -519
  240. data/assets/js/vendor/loadCSS.js +0 -35
  241. data/assets/js/vendor/loadCSS.min.js +0 -2
  242. data/assets/js/vendor/picturefill.min.js +0 -5
  243. data/assets/js/vendor/shuffle.js +0 -2004
  244. data/assets/js/vendor/vendor.js +0 -6
data/assets/js/vendor.js DELETED
@@ -1,7 +0,0 @@
1
- !function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e){e=e||it;var i=e.createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}function n(t){var e=!!t&&"length"in t&&t.length,i=gt.type(t);return"function"!==i&&!gt.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function o(t,e,i){return gt.isFunction(e)?gt.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?gt.grep(t,function(t){return t===e!==i}):"string"!=typeof e?gt.grep(t,function(t){return at.call(e,t)>-1!==i}):_t.test(e)?gt.filter(e,t,i):(e=gt.filter(e,t),gt.grep(t,function(t){return at.call(e,t)>-1!==i&&1===t.nodeType}))}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return gt.each(t.match(Lt)||[],function(t,i){e[i]=!0}),e}function l(t){return t}function c(t){throw t}function u(t,e,i,n){var s;try{t&&gt.isFunction(s=t.promise)?s.call(t).done(e).fail(i):t&&gt.isFunction(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}function h(){it.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),gt.ready()}function p(){this.expando=gt.expando+p.uid++}function d(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Mt.test(t)?JSON.parse(t):t)}function f(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Pt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=d(i)}catch(t){}It.set(t,e,i)}else i=void 0;return i}function g(t,e,i,n){var s,o=1,r=20,a=n?function(){return n.cur()}:function(){return gt.css(t,e,"")},l=a(),c=i&&i[3]||(gt.cssNumber[e]?"":"px"),u=(gt.cssNumber[e]||"px"!==c&&+l)&&zt.exec(gt.css(t,e));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+l||1;do{o=o||".5",u/=o,gt.style(t,e,u+c)}while(o!==(o=a()/l)&&1!==o&&--r)}return i&&(u=+u||+l||0,s=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=s)),s}function m(t){var e,i=t.ownerDocument,n=t.nodeName,s=Wt[n];return s||(e=i.body.appendChild(i.createElement(n)),s=gt.css(e,"display"),e.parentNode.removeChild(e),"none"===s&&(s="block"),Wt[n]=s,s)}function v(t,e){for(var i,n,s=[],o=0,r=t.length;o<r;o++)n=t[o],n.style&&(i=n.style.display,e?("none"===i&&(s[o]=Ot.get(n,"display")||null,s[o]||(n.style.display="")),""===n.style.display&&Bt(n)&&(s[o]=m(n))):"none"!==i&&(s[o]="none",Ot.set(n,"display",i)));for(o=0;o<r;o++)null!=s[o]&&(t[o].style.display=s[o]);return t}function y(t,e){var i;return i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&s(t,e)?gt.merge([t],i):i}function b(t,e){for(var i=0,n=t.length;i<n;i++)Ot.set(t[i],"globalEval",!e||Ot.get(e[i],"globalEval"))}function w(t,e,i,n,s){for(var o,r,a,l,c,u,h=e.createDocumentFragment(),p=[],d=0,f=t.length;d<f;d++)if((o=t[d])||0===o)if("object"===gt.type(o))gt.merge(p,o.nodeType?[o]:o);else if(Gt.test(o)){for(r=r||h.appendChild(e.createElement("div")),a=(Qt.exec(o)||["",""])[1].toLowerCase(),l=Xt[a]||Xt._default,r.innerHTML=l[1]+gt.htmlPrefilter(o)+l[2],u=l[0];u--;)r=r.lastChild;gt.merge(p,r.childNodes),r=h.firstChild,r.textContent=""}else p.push(e.createTextNode(o));for(h.textContent="",d=0;o=p[d++];)if(n&&gt.inArray(o,n)>-1)s&&s.push(o);else if(c=gt.contains(o.ownerDocument,o),r=y(h.appendChild(o),"script"),c&&b(r),i)for(u=0;o=r[u++];)Vt.test(o.type||"")&&i.push(o);return h}function x(){return!0}function C(){return!1}function k(){try{return it.activeElement}catch(t){}}function T(t,e,i,n,s,o){var r,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)T(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=C;else if(!s)return t;return 1===o&&(r=s,s=function(t){return gt().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=gt.guid++)),t.each(function(){gt.event.add(this,e,s,n,i)})}function _(t,e){return s(t,"table")&&s(11!==e.nodeType?e:e.firstChild,"tr")?gt(">tbody",t)[0]||t:t}function S(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function E(t){var e=ne.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function $(t,e){var i,n,s,o,r,a,l,c;if(1===e.nodeType){if(Ot.hasData(t)&&(o=Ot.access(t),r=Ot.set(e,o),c=o.events)){delete r.handle,r.events={};for(s in c)for(i=0,n=c[s].length;i<n;i++)gt.event.add(e,s,c[s][i])}It.hasData(t)&&(a=It.access(t),l=gt.extend({},a),It.set(e,l))}}function D(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Ut.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function L(t,e,n,s){e=ot.apply([],e);var o,r,a,l,c,u,h=0,p=t.length,d=p-1,f=e[0],g=gt.isFunction(f);if(g||p>1&&"string"==typeof f&&!dt.checkClone&&ie.test(f))return t.each(function(i){var o=t.eq(i);g&&(e[0]=f.call(this,i,o.html())),L(o,e,n,s)});if(p&&(o=w(e,t[0].ownerDocument,!1,t,s),r=o.firstChild,1===o.childNodes.length&&(o=r),r||s)){for(a=gt.map(y(o,"script"),S),l=a.length;h<p;h++)c=o,h!==d&&(c=gt.clone(c,!0,!0),l&&gt.merge(a,y(c,"script"))),n.call(t[h],c,h);if(l)for(u=a[a.length-1].ownerDocument,gt.map(a,E),h=0;h<l;h++)c=a[h],Vt.test(c.type||"")&&!Ot.access(c,"globalEval")&&gt.contains(u,c)&&(c.src?gt._evalUrl&&gt._evalUrl(c.src):i(c.textContent.replace(se,""),u))}return t}function A(t,e,i){for(var n,s=e?gt.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||gt.cleanData(y(n)),n.parentNode&&(i&&gt.contains(n.ownerDocument,n)&&b(y(n,"script")),n.parentNode.removeChild(n));return t}function F(t,e,i){var n,s,o,r,a=t.style;return i=i||ae(t),i&&(r=i.getPropertyValue(e)||i[e],""!==r||gt.contains(t.ownerDocument,t)||(r=gt.style(t,e)),!dt.pixelMarginRight()&&re.test(r)&&oe.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function j(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function N(t){if(t in de)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=pe.length;i--;)if((t=pe[i]+e)in de)return t}function O(t){var e=gt.cssProps[t];return e||(e=gt.cssProps[t]=N(t)||t),e}function I(t,e,i){var n=zt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function M(t,e,i,n,s){var o,r=0;for(o=i===(n?"border":"content")?4:"width"===e?1:0;o<4;o+=2)"margin"===i&&(r+=gt.css(t,i+Ht[o],!0,s)),n?("content"===i&&(r-=gt.css(t,"padding"+Ht[o],!0,s)),"margin"!==i&&(r-=gt.css(t,"border"+Ht[o]+"Width",!0,s))):(r+=gt.css(t,"padding"+Ht[o],!0,s),"padding"!==i&&(r+=gt.css(t,"border"+Ht[o]+"Width",!0,s)));return r}function P(t,e,i){var n,s=ae(t),o=F(t,e,s),r="border-box"===gt.css(t,"boxSizing",!1,s);return re.test(o)?o:(n=r&&(dt.boxSizingReliable()||o===t.style[e]),"auto"===o&&(o=t["offset"+e[0].toUpperCase()+e.slice(1)]),(o=parseFloat(o)||0)+M(t,e,i||(r?"border":"content"),n,s)+"px")}function R(t,e,i,n,s){return new R.prototype.init(t,e,i,n,s)}function z(){ge&&(!1===it.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(z):t.setTimeout(z,gt.fx.interval),gt.fx.tick())}function H(){return t.setTimeout(function(){fe=void 0}),fe=gt.now()}function B(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)i=Ht[n],s["margin"+i]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function q(t,e,i){for(var n,s=(Q.tweeners[e]||[]).concat(Q.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function W(t,e,i){var n,s,o,r,a,l,c,u,h="width"in e||"height"in e,p=this,d={},f=t.style,g=t.nodeType&&Bt(t),m=Ot.get(t,"fxshow");i.queue||(r=gt._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,p.always(function(){p.always(function(){r.unqueued--,gt.queue(t,"fx").length||r.empty.fire()})}));for(n in e)if(s=e[n],me.test(s)){if(delete e[n],o=o||"toggle"===s,s===(g?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;g=!0}d[n]=m&&m[n]||gt.style(t,n)}if((l=!gt.isEmptyObject(e))||!gt.isEmptyObject(d)){h&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],c=m&&m.display,null==c&&(c=Ot.get(t,"display")),u=gt.css(t,"display"),"none"===u&&(c?u=c:(v([t],!0),c=t.style.display||c,u=gt.css(t,"display"),v([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===gt.css(t,"float")&&(l||(p.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1;for(n in d)l||(m?"hidden"in m&&(g=m.hidden):m=Ot.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&v([t],!0),p.done(function(){g||v([t]),Ot.remove(t,"fxshow");for(n in d)gt.style(t,n,d[n])})),l=q(g?m[n]:0,n,p),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}}function U(t,e){var i,n,s,o,r;for(i in t)if(n=gt.camelCase(i),s=e[n],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=gt.cssHooks[n])&&"expand"in r){o=r.expand(o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=s)}else e[n]=s}function Q(t,e,i){var n,s,o=0,r=Q.prefilters.length,a=gt.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=fe||H(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,o=1-n,r=0,l=c.tweens.length;r<l;r++)c.tweens[r].run(o);return a.notifyWith(t,[c,o,i]),o<1&&l?i:(l||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:gt.extend({},e),opts:gt.extend(!0,{specialEasing:{},easing:gt.easing._default},i),originalProperties:e,originalOptions:i,startTime:fe||H(),duration:i.duration,tweens:[],createTween:function(e,i){var n=gt.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(U(u,c.opts.specialEasing);o<r;o++)if(n=Q.prefilters[o].call(c,t,u,c.opts))return gt.isFunction(n.stop)&&(gt._queueHooks(c.elem,c.opts.queue).stop=gt.proxy(n.stop,n)),n;return gt.map(u,q,c),gt.isFunction(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),gt.fx.timer(gt.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}function V(t){return(t.match(Lt)||[]).join(" ")}function X(t){return t.getAttribute&&t.getAttribute("class")||""}function G(t,e,i,n){var s;if(Array.isArray(e))gt.each(e,function(e,s){i||Ee.test(t)?n(t,s):G(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)});else if(i||"object"!==gt.type(e))n(t,e);else for(s in e)G(t+"["+s+"]",e[s],i,n)}function J(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(Lt)||[];if(gt.isFunction(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Y(t,e,i,n){function s(a){var l;return o[a]=!0,gt.each(t[a]||[],function(t,a){var c=a(e,i,n);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}var o={},r=t===Re;return s(e.dataTypes[0])||!o["*"]&&s("*")}function K(t,e){var i,n,s=gt.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&gt.extend(!0,t,n),t}function Z(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}function tt(t,e,i,n){var s,o,r,a,l,c={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=u.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if(a=s.split(" "),a[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}var et=[],it=t.document,nt=Object.getPrototypeOf,st=et.slice,ot=et.concat,rt=et.push,at=et.indexOf,lt={},ct=lt.toString,ut=lt.hasOwnProperty,ht=ut.toString,pt=ht.call(Object),dt={},ft="3.2.1",gt=function(t,e){return new gt.fn.init(t,e)},mt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,vt=/^-ms-/,yt=/-([a-z])/g,bt=function(t,e){return e.toUpperCase()};gt.fn=gt.prototype={jquery:ft,constructor:gt,length:0,toArray:function(){return st.call(this)},get:function(t){return null==t?st.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=gt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return gt.each(this,t)},map:function(t){return this.pushStack(gt.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(st.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:rt,sort:et.sort,splice:et.splice},gt.extend=gt.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||gt.isFunction(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],n=t[e],r!==n&&(c&&n&&(gt.isPlainObject(n)||(s=Array.isArray(n)))?(s?(s=!1,o=i&&Array.isArray(i)?i:[]):o=i&&gt.isPlainObject(i)?i:{},r[e]=gt.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},gt.extend({expando:"jQuery"+(ft+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===gt.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=gt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==ct.call(t)||(e=nt(t))&&("function"!=typeof(i=ut.call(e,"constructor")&&e.constructor)||ht.call(i)!==pt))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?lt[ct.call(t)]||"object":typeof t},globalEval:function(t){i(t)},camelCase:function(t){return t.replace(vt,"ms-").replace(yt,bt)},each:function(t,e){var i,s=0;if(n(t))for(i=t.length;s<i&&!1!==e.call(t[s],s,t[s]);s++);else for(s in t)if(!1===e.call(t[s],s,t[s]))break;return t},trim:function(t){return null==t?"":(t+"").replace(mt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?gt.merge(i,"string"==typeof t?[t]:t):rt.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:at.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var s,o,r=0,a=[];if(n(t))for(s=t.length;r<s;r++)null!=(o=e(t[r],r,i))&&a.push(o);else for(r in t)null!=(o=e(t[r],r,i))&&a.push(o);return ot.apply([],a)},guid:1,proxy:function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),gt.isFunction(t))return n=st.call(arguments,2),s=function(){return t.apply(e||this,n.concat(st.call(arguments)))},s.guid=t.guid=t.guid||gt.guid++,s},now:Date.now,support:dt}),"function"==typeof Symbol&&(gt.fn[Symbol.iterator]=et[Symbol.iterator]),gt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){lt["[object "+e+"]"]=e.toLowerCase()});var wt=function(t){function e(t,e,i,n){var s,o,r,a,l,c,u,p=e&&e.ownerDocument,f=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return i;if(!n&&((e?e.ownerDocument||e:H)!==j&&F(e),e=e||j,O)){if(11!==f&&(l=vt.exec(t)))if(s=l[1]){if(9===f){if(!(r=e.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(p&&(r=p.getElementById(s))&&R(e,r)&&r.id===s)return i.push(r),i}else{if(l[2])return K.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&C.getElementsByClassName&&e.getElementsByClassName)return K.apply(i,e.getElementsByClassName(s)),i}if(C.qsa&&!Q[t+" "]&&(!I||!I.test(t))){if(1!==f)p=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(xt,Ct):e.setAttribute("id",a=z),c=S(t),o=c.length;o--;)c[o]="#"+a+" "+d(c[o]);u=c.join(","),p=yt.test(t)&&h(e.parentNode)||e}if(u)try{return K.apply(i,p.querySelectorAll(u)),i}catch(t){}finally{a===z&&e.removeAttribute("id")}}}return $(t.replace(at,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>k.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[z]=!0,t}function s(t){var e=j.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=i.length;n--;)k.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function c(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Tt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function h(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function p(){}function d(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,s=e.next,o=s||n,r=i&&"parentNode"===o,a=q++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,s);return!1}:function(e,i,l){var c,u,h,p=[B,a];if(l){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(h=e[z]||(e[z]={}),u=h[e.uniqueID]||(h[e.uniqueID]={}),s&&s===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=u[o])&&c[0]===B&&c[1]===a)return p[2]=c[2];if(u[o]=p,p[2]=t(e,i,l))return!0}return!1}}function g(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var s=0,o=i.length;s<o;s++)e(t,i[s],n);return n}function v(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),c&&e.push(a)));return r}function y(t,e,i,s,o,r){return s&&!s[z]&&(s=y(s)),o&&!o[z]&&(o=y(o,r)),n(function(n,r,a,l){var c,u,h,p=[],d=[],f=r.length,g=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?g:v(g,p,t,a,l),b=i?o||(n?t:f||s)?[]:r:y;if(i&&i(y,b,a,l),s)for(c=v(b,d),s(c,[],a,l),u=c.length;u--;)(h=c[u])&&(b[d[u]]=!(y[d[u]]=h));if(n){if(o||t){if(o){for(c=[],u=b.length;u--;)(h=b[u])&&c.push(y[u]=h);o(null,b=[],c,l)}for(u=b.length;u--;)(h=b[u])&&(c=o?tt(n,h):p[u])>-1&&(n[c]=!(r[c]=h))}}else b=v(b===r?b.splice(f,b.length):b),o?o(null,r,b,l):K.apply(r,b)})}function b(t){for(var e,i,n,s=t.length,o=k.relative[t[0].type],r=o||k.relative[" "],a=o?1:0,l=f(function(t){return t===e},r,!0),c=f(function(t){return tt(e,t)>-1},r,!0),u=[function(t,i,n){var s=!o&&(n||i!==D)||((e=i).nodeType?l(t,i,n):c(t,i,n));return e=null,s}];a<s;a++)if(i=k.relative[t[a].type])u=[f(g(u),i)];else{if(i=k.filter[t[a].type].apply(null,t[a].matches),i[z]){for(n=++a;n<s&&!k.relative[t[n].type];n++);return y(a>1&&g(u),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),i,a<n&&b(t.slice(a,n)),n<s&&b(t=t.slice(n)),n<s&&d(t))}u.push(i)}return g(u)}function w(t,i){var s=i.length>0,o=t.length>0,r=function(n,r,a,l,c){var u,h,p,d=0,f="0",g=n&&[],m=[],y=D,b=n||o&&k.find.TAG("*",c),w=B+=null==y?1:Math.random()||.1,x=b.length;for(c&&(D=r===j||r||c);f!==x&&null!=(u=b[f]);f++){if(o&&u){for(h=0,r||u.ownerDocument===j||(F(u),a=!O);p=t[h++];)if(p(u,r||j,a)){l.push(u);break}c&&(B=w)}s&&((u=!p&&u)&&d--,n&&g.push(u))}if(d+=f,s&&f!==d){for(h=0;p=i[h++];)p(g,m,r,a);if(n){if(d>0)for(;f--;)g[f]||m[f]||(m[f]=J.call(l));m=v(m)}K.apply(l,m),c&&!n&&m.length>0&&d+i.length>1&&e.uniqueSort(l)}return c&&(B=w,D=y),g};return s?n(r):r}var x,C,k,T,_,S,E,$,D,L,A,F,j,N,O,I,M,P,R,z="sizzle"+1*new Date,H=t.document,B=0,q=0,W=i(),U=i(),Q=i(),V=function(t,e){return t===e&&(A=!0),0},X={}.hasOwnProperty,G=[],J=G.pop,Y=G.push,K=G.push,Z=G.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",st="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",rt=new RegExp(it+"+","g"),at=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ut=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(ot),pt=new RegExp("^"+nt+"$"),dt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),wt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ct=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},kt=function(){F()},Tt=f(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{K.apply(G=Z.call(H.childNodes),H.childNodes),G[H.childNodes.length].nodeType}catch(t){K={apply:G.length?function(t,e){Y.apply(t,Z.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}C=e.support={},_=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},F=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:H;return n!==j&&9===n.nodeType&&n.documentElement?(j=n,N=j.documentElement,O=!_(j),H!==j&&(i=j.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",kt,!1):i.attachEvent&&i.attachEvent("onunload",kt)),C.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),C.getElementsByTagName=s(function(t){return t.appendChild(j.createComment("")),!t.getElementsByTagName("*").length}),C.getElementsByClassName=mt.test(j.getElementsByClassName),C.getById=s(function(t){return N.appendChild(t).id=z,!j.getElementsByName||!j.getElementsByName(z).length}),C.getById?(k.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}},k.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var i=e.getElementById(t);return i?[i]:[]}}):(k.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},k.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),k.find.TAG=C.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):C.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},k.find.CLASS=C.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&O)return e.getElementsByClassName(t)},M=[],I=[],(C.qsa=mt.test(j.querySelectorAll))&&(s(function(t){N.appendChild(t).innerHTML="<a id='"+z+"'></a><select id='"+z+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||I.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+z+"-]").length||I.push("~="),t.querySelectorAll(":checked").length||I.push(":checked"),t.querySelectorAll("a#"+z+"+*").length||I.push(".#.+[+~]")}),s(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=j.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&I.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&I.push(":enabled",":disabled"),N.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&I.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),I.push(",.*:")})),(C.matchesSelector=mt.test(P=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&s(function(t){C.disconnectedMatch=P.call(t,"*"),P.call(t,"[s!='']:x"),M.push("!=",ot)}),I=I.length&&new RegExp(I.join("|")),M=M.length&&new RegExp(M.join("|")),e=mt.test(N.compareDocumentPosition),R=e||mt.test(N.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return A=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!C.sortDetached&&e.compareDocumentPosition(t)===i?t===j||t.ownerDocument===H&&R(H,t)?-1:e===j||e.ownerDocument===H&&R(H,e)?1:L?tt(L,t)-tt(L,e):0:4&i?-1:1)}:function(t,e){if(t===e)return A=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!s||!o)return t===j?-1:e===j?1:s?-1:o?1:L?tt(L,t)-tt(L,e):0;if(s===o)return r(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?r(a[n],l[n]):a[n]===H?-1:l[n]===H?1:0},j):j},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==j&&F(t),i=i.replace(ut,"='$1']"),C.matchesSelector&&O&&!Q[i+" "]&&(!M||!M.test(i))&&(!I||!I.test(i)))try{var n=P.call(t,i);if(n||C.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,j,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==j&&F(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==j&&F(t);var i=k.attrHandle[e.toLowerCase()],n=i&&X.call(k.attrHandle,e.toLowerCase())?i(t,e,!O):void 0;return void 0!==n?n:C.attributes||!O?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.escape=function(t){return(t+"").replace(xt,Ct)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(A=!C.detectDuplicates,L=!C.sortStable&&t.slice(0),t.sort(V),A){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return L=null,t},T=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=T(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=T(e);return i},k=e.selectors={cacheLength:50,createPseudo:n,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=S(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var o=e.attr(s,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(rt," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,u,h,p,d,f,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(p=e;p=p[g];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&y){for(p=m,h=p[z]||(p[z]={}),u=h[p.uniqueID]||(h[p.uniqueID]={}),c=u[t]||[],d=c[0]===B&&c[1],b=d&&c[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(b=d=0)||f.pop();)if(1===p.nodeType&&++b&&p===e){u[t]=[B,d,b];break}}else if(y&&(p=e,h=p[z]||(p[z]={}),u=h[p.uniqueID]||(h[p.uniqueID]={}),c=u[t]||[],d=c[0]===B&&c[1],b=d),!1===b)for(;(p=++d&&p&&p[g]||(b=d=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&(h=p[z]||(p[z]={}),u=h[p.uniqueID]||(h[p.uniqueID]={}),u[t]=[B,b]),p!==e)););return(b-=s)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,i){var s,o=k.pseudos[t]||k.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[z]?o(i):o.length>1?(s=[t,t,"",i],k.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=o(t,i),r=s.length;r--;)n=tt(t,s[r]),t[n]=!(e[n]=s[r])}):function(t){return o(t,0,s)}):o}},pseudos:{not:n(function(t){var e=[],i=[],s=E(t.replace(at,"$1"));return s[z]?n(function(t,e,i,n){for(var o,r=s(t,null,n,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,s(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:n(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var i;do{if(i=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!k.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},
2
- text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[i<0?i+e:i]}),even:u(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},k.pseudos.nth=k.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[x]=a(x);for(x in{submit:!0,reset:!0})k.pseudos[x]=l(x);return p.prototype=k.filters=k.pseudos,k.setFilters=new p,S=e.tokenize=function(t,i){var n,s,o,r,a,l,c,u=U[t+" "];if(u)return i?0:u.slice(0);for(a=t,l=[],c=k.preFilter;a;){n&&!(s=lt.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),n=!1,(s=ct.exec(a))&&(n=s.shift(),o.push({value:n,type:s[0].replace(at," ")}),a=a.slice(n.length));for(r in k.filter)!(s=dt[r].exec(a))||c[r]&&!(s=c[r](s))||(n=s.shift(),o.push({value:n,type:r,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):U(t,l).slice(0)},E=e.compile=function(t,e){var i,n=[],s=[],o=Q[t+" "];if(!o){for(e||(e=S(t)),i=e.length;i--;)o=b(e[i]),o[z]?n.push(o):s.push(o);o=Q(t,w(s,n)),o.selector=t}return o},$=e.select=function(t,e,i,n){var s,o,r,a,l,c="function"==typeof t&&t,u=!n&&S(t=c.selector||t);if(i=i||[],1===u.length){if(o=u[0]=u[0].slice(0),o.length>2&&"ID"===(r=o[0]).type&&9===e.nodeType&&O&&k.relative[o[1].type]){if(!(e=(k.find.ID(r.matches[0].replace(bt,wt),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=dt.needsContext.test(t)?0:o.length;s--&&(r=o[s],!k.relative[a=r.type]);)if((l=k.find[a])&&(n=l(r.matches[0].replace(bt,wt),yt.test(o[0].type)&&h(e.parentNode)||e))){if(o.splice(s,1),!(t=n.length&&d(o)))return K.apply(i,n),i;break}}return(c||E(t,u))(n,e,!O,i,!e||yt.test(t)&&h(e.parentNode)||e),i},C.sortStable=z.split("").sort(V).join("")===z,C.detectDuplicates=!!A,F(),C.sortDetached=s(function(t){return 1&t.compareDocumentPosition(j.createElement("fieldset"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),C.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);gt.find=wt,gt.expr=wt.selectors,gt.expr[":"]=gt.expr.pseudos,gt.uniqueSort=gt.unique=wt.uniqueSort,gt.text=wt.getText,gt.isXMLDoc=wt.isXML,gt.contains=wt.contains,gt.escapeSelector=wt.escape;var xt=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&gt(t).is(i))break;n.push(t)}return n},Ct=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},kt=gt.expr.match.needsContext,Tt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,_t=/^.[^:#\[\.,]*$/;gt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?gt.find.matchesSelector(n,t)?[n]:[]:gt.find.matches(t,gt.grep(e,function(t){return 1===t.nodeType}))},gt.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(gt(t).filter(function(){for(e=0;e<n;e++)if(gt.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)gt.find(t,s[e],i);return n>1?gt.uniqueSort(i):i},filter:function(t){return this.pushStack(o(this,t||[],!1))},not:function(t){return this.pushStack(o(this,t||[],!0))},is:function(t){return!!o(this,"string"==typeof t&&kt.test(t)?gt(t):t||[],!1).length}});var St,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(gt.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||St,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Et.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof gt?e[0]:e,gt.merge(this,gt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:it,!0)),Tt.test(n[1])&&gt.isPlainObject(e))for(n in e)gt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return s=it.getElementById(n[2]),s&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):gt.isFunction(t)?void 0!==i.ready?i.ready(t):t(gt):gt.makeArray(t,this)}).prototype=gt.fn,St=gt(it);var $t=/^(?:parents|prev(?:Until|All))/,Dt={children:!0,contents:!0,next:!0,prev:!0};gt.fn.extend({has:function(t){var e=gt(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(gt.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,o=[],r="string"!=typeof t&&gt(t);if(!kt.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&gt.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?gt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?at.call(gt(t),this[0]):at.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(gt.uniqueSort(gt.merge(this.get(),gt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),gt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return xt(t,"parentNode")},parentsUntil:function(t,e,i){return xt(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return xt(t,"nextSibling")},prevAll:function(t){return xt(t,"previousSibling")},nextUntil:function(t,e,i){return xt(t,"nextSibling",i)},prevUntil:function(t,e,i){return xt(t,"previousSibling",i)},siblings:function(t){return Ct((t.parentNode||{}).firstChild,t)},children:function(t){return Ct(t.firstChild)},contents:function(t){return s(t,"iframe")?t.contentDocument:(s(t,"template")&&(t=t.content||t),gt.merge([],t.childNodes))}},function(t,e){gt.fn[t]=function(i,n){var s=gt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=gt.filter(n,s)),this.length>1&&(Dt[t]||gt.uniqueSort(s),$t.test(t)&&s.reverse()),this.pushStack(s)}});var Lt=/[^\x20\t\r\n\f]+/g;gt.Callbacks=function(t){t="string"==typeof t?a(t):gt.extend({},t);var e,i,n,s,o=[],r=[],l=-1,c=function(){for(s=s||t.once,n=e=!0;r.length;l=-1)for(i=r.shift();++l<o.length;)!1===o[l].apply(i[0],i[1])&&t.stopOnFalse&&(l=o.length,i=!1);t.memory||(i=!1),e=!1,s&&(o=i?[]:"")},u={add:function(){return o&&(i&&!e&&(l=o.length-1,r.push(i)),function e(i){gt.each(i,function(i,n){gt.isFunction(n)?t.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==gt.type(n)&&e(n)})}(arguments),i&&!e&&c()),this},remove:function(){return gt.each(arguments,function(t,e){for(var i;(i=gt.inArray(e,o,i))>-1;)o.splice(i,1),i<=l&&l--}),this},has:function(t){return t?gt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||e||(o=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=i||[],i=[t,i.slice?i.slice():i],r.push(i),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},gt.extend({Deferred:function(e){var i=[["notify","progress",gt.Callbacks("memory"),gt.Callbacks("memory"),2],["resolve","done",gt.Callbacks("once memory"),gt.Callbacks("once memory"),0,"resolved"],["reject","fail",gt.Callbacks("once memory"),gt.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(t){return s.then(null,t)},pipe:function(){var t=arguments;return gt.Deferred(function(e){gt.each(i,function(i,n){var s=gt.isFunction(t[n[4]])&&t[n[4]];o[n[1]](function(){var t=s&&s.apply(this,arguments);t&&gt.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,s?[t]:arguments)})}),t=null}).promise()},then:function(e,n,s){function o(e,i,n,s){return function(){var a=this,u=arguments,h=function(){var t,h;if(!(e<r)){if((t=n.apply(a,u))===i.promise())throw new TypeError("Thenable self-resolution");h=t&&("object"==typeof t||"function"==typeof t)&&t.then,gt.isFunction(h)?s?h.call(t,o(r,i,l,s),o(r,i,c,s)):(r++,h.call(t,o(r,i,l,s),o(r,i,c,s),o(r,i,l,i.notifyWith))):(n!==l&&(a=void 0,u=[t]),(s||i.resolveWith)(a,u))}},p=s?h:function(){try{h()}catch(t){gt.Deferred.exceptionHook&&gt.Deferred.exceptionHook(t,p.stackTrace),e+1>=r&&(n!==c&&(a=void 0,u=[t]),i.rejectWith(a,u))}};e?p():(gt.Deferred.getStackHook&&(p.stackTrace=gt.Deferred.getStackHook()),t.setTimeout(p))}}var r=0;return gt.Deferred(function(t){i[0][3].add(o(0,t,gt.isFunction(s)?s:l,t.notifyWith)),i[1][3].add(o(0,t,gt.isFunction(e)?e:l)),i[2][3].add(o(0,t,gt.isFunction(n)?n:c))}).promise()},promise:function(t){return null!=t?gt.extend(t,s):s}},o={};return gt.each(i,function(t,e){var r=e[2],a=e[5];s[e[1]]=r.add,a&&r.add(function(){n=a},i[3-t][2].disable,i[0][2].lock),r.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=r.fireWith}),s.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),s=st.call(arguments),o=gt.Deferred(),r=function(t){return function(i){n[t]=this,s[t]=arguments.length>1?st.call(arguments):i,--e||o.resolveWith(n,s)}};if(e<=1&&(u(t,o.done(r(i)).resolve,o.reject,!e),"pending"===o.state()||gt.isFunction(s[i]&&s[i].then)))return o.then();for(;i--;)u(s[i],r(i),o.reject);return o.promise()}});var At=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;gt.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&At.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},gt.readyException=function(e){t.setTimeout(function(){throw e})};var Ft=gt.Deferred();gt.fn.ready=function(t){return Ft.then(t)["catch"](function(t){gt.readyException(t)}),this},gt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--gt.readyWait:gt.isReady)||(gt.isReady=!0,!0!==t&&--gt.readyWait>0||Ft.resolveWith(it,[gt]))}}),gt.ready.then=Ft.then,"complete"===it.readyState||"loading"!==it.readyState&&!it.documentElement.doScroll?t.setTimeout(gt.ready):(it.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h));var jt=function(t,e,i,n,s,o,r){var a=0,l=t.length,c=null==i;if("object"===gt.type(i)){s=!0;for(a in i)jt(t,e,a,i[a],!0,o,r)}else if(void 0!==n&&(s=!0,gt.isFunction(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(gt(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:c?e.call(t):l?e(t[0],i):o},Nt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};p.uid=1,p.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Nt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[gt.camelCase(e)]=i;else for(n in e)s[gt.camelCase(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][gt.camelCase(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){Array.isArray(e)?e=e.map(gt.camelCase):(e=gt.camelCase(e),e=e in n?[e]:e.match(Lt)||[]),i=e.length;for(;i--;)delete n[e[i]]}(void 0===e||gt.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!gt.isEmptyObject(e)}};var Ot=new p,It=new p,Mt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Pt=/[A-Z]/g;gt.extend({hasData:function(t){return It.hasData(t)||Ot.hasData(t)},data:function(t,e,i){return It.access(t,e,i)},removeData:function(t,e){It.remove(t,e)},_data:function(t,e,i){return Ot.access(t,e,i)},_removeData:function(t,e){Ot.remove(t,e)}}),gt.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=It.get(o),1===o.nodeType&&!Ot.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=gt.camelCase(n.slice(5)),f(o,n,s[n])));Ot.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){It.set(this,t)}):jt(this,function(e){var i;if(o&&void 0===e){if(void 0!==(i=It.get(o,t)))return i;if(void 0!==(i=f(o,t)))return i}else this.each(function(){It.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){It.remove(this,t)})}}),gt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Ot.get(t,e),i&&(!n||Array.isArray(i)?n=Ot.access(t,e,gt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=gt.queue(t,e),n=i.length,s=i.shift(),o=gt._queueHooks(t,e),r=function(){gt.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,r,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Ot.get(t,i)||Ot.access(t,i,{empty:gt.Callbacks("once memory").add(function(){Ot.remove(t,[e+"queue",i])})})}}),gt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?gt.queue(this[0],t):void 0===e?this:this.each(function(){var i=gt.queue(this,t,e);gt._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&gt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){gt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=gt.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=Ot.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var Rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,zt=new RegExp("^(?:([+-])=|)("+Rt+")([a-z%]*)$","i"),Ht=["Top","Right","Bottom","Left"],Bt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&gt.contains(t.ownerDocument,t)&&"none"===gt.css(t,"display")},qt=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];s=i.apply(t,n||[]);for(o in e)t.style[o]=r[o];return s},Wt={};gt.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Bt(this)?gt(this).show():gt(this).hide()})}});var Ut=/^(?:checkbox|radio)$/i,Qt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Vt=/^$|\/(?:java|ecma)script/i,Xt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Xt.optgroup=Xt.option,Xt.tbody=Xt.tfoot=Xt.colgroup=Xt.caption=Xt.thead,Xt.th=Xt.td;var Gt=/<|&#?\w+;/;!function(){var t=it.createDocumentFragment(),e=t.appendChild(it.createElement("div")),i=it.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),dt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",dt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Jt=it.documentElement,Yt=/^key/,Kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zt=/^([^.]*)(?:\.(.+)|)/;gt.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,c,u,h,p,d,f,g,m=Ot.get(t);if(m)for(i.handler&&(o=i,i=o.handler,s=o.selector),s&&gt.find.matchesSelector(Jt,s),i.guid||(i.guid=gt.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(e){return void 0!==gt&&gt.event.triggered!==e.type?gt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Lt)||[""],c=e.length;c--;)a=Zt.exec(e[c])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d&&(h=gt.event.special[d]||{},d=(s?h.delegateType:h.bindType)||d,h=gt.event.special[d]||{},u=gt.extend({type:d,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&gt.expr.match.needsContext.test(s),namespace:f.join(".")},o),(p=l[d])||(p=l[d]=[],p.delegateCount=0,h.setup&&!1!==h.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(d,r)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?p.splice(p.delegateCount++,0,u):p.push(u),gt.event.global[d]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,u,h,p,d,f,g,m=Ot.hasData(t)&&Ot.get(t);if(m&&(l=m.events)){for(e=(e||"").match(Lt)||[""],c=e.length;c--;)if(a=Zt.exec(e[c])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d){for(h=gt.event.special[d]||{},d=(n?h.delegateType:h.bindType)||d,p=l[d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=p.length;o--;)u=p[o],!s&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(t,u));r&&!p.length&&(h.teardown&&!1!==h.teardown.call(t,f,m.handle)||gt.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)gt.event.remove(t,d+e[c],i,n,!0);gt.isEmptyObject(l)&&Ot.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r,a=gt.event.fix(t),l=new Array(arguments.length),c=(Ot.get(this,"events")||{})[a.type]||[],u=gt.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(r=gt.event.handlers.call(this,a,c),e=0;(s=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(n=((gt.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,s,o,r,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)n=e[i],s=n.selector+" ",void 0===r[s]&&(r[s]=n.needsContext?gt(s,this).index(c)>-1:gt.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(gt.Event.prototype,t,{enumerable:!0,configurable:!0,get:gt.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[gt.expando]?t:new gt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==k()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===k()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&s(this,"input"))return this.click(),!1},_default:function(t){return s(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},gt.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},gt.Event=function(t,e){return this instanceof gt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?x:C,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&gt.extend(this,e),this.timeStamp=t&&t.timeStamp||gt.now(),void(this[gt.expando]=!0)):new gt.Event(t,e)},gt.Event.prototype={constructor:gt.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=x,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=x,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=x,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},gt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Yt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Kt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},gt.event.addProp),gt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){gt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,o=t.handleObj;return s&&(s===n||gt.contains(n,s))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),gt.fn.extend({on:function(t,e,i,n){return T(this,t,e,i,n)},one:function(t,e,i,n){return T(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,gt(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=C),this.each(function(){gt.event.remove(this,t,i,e)})}});var te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ee=/<script|<style|<link/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,ne=/^true\/(.*)/,se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;gt.extend({htmlPrefilter:function(t){return t.replace(te,"<$1></$2>")},clone:function(t,e,i){var n,s,o,r,a=t.cloneNode(!0),l=gt.contains(t.ownerDocument,t);if(!(dt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||gt.isXMLDoc(t)))for(r=y(a),o=y(t),n=0,s=o.length;n<s;n++)D(o[n],r[n]);if(e)if(i)for(o=o||y(t),r=r||y(a),n=0,s=o.length;n<s;n++)$(o[n],r[n]);else $(t,a);return r=y(a,"script"),r.length>0&&b(r,!l&&y(t,"script")),a},cleanData:function(t){for(var e,i,n,s=gt.event.special,o=0;void 0!==(i=t[o]);o++)if(Nt(i)){if(e=i[Ot.expando]){if(e.events)for(n in e.events)s[n]?gt.event.remove(i,n):gt.removeEvent(i,n,e.handle);i[Ot.expando]=void 0}i[It.expando]&&(i[It.expando]=void 0)}}}),gt.fn.extend({detach:function(t){return A(this,t,!0)},remove:function(t){return A(this,t)},text:function(t){return jt(this,function(t){return void 0===t?gt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return L(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){_(this,t).appendChild(t)}})},prepend:function(){return L(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return L(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return L(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(gt.cleanData(y(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return gt.clone(this,t,e)})},html:function(t){return jt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ee.test(t)&&!Xt[(Qt.exec(t)||["",""])[1].toLowerCase()]){t=gt.htmlPrefilter(t);try{for(;i<n;i++)e=this[i]||{},1===e.nodeType&&(gt.cleanData(y(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return L(this,arguments,function(e){var i=this.parentNode;gt.inArray(this,t)<0&&(gt.cleanData(y(this)),i&&i.replaceChild(e,this))},t)}}),gt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){gt.fn[t]=function(t){for(var i,n=[],s=gt(t),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),gt(s[r])[e](i),rt.apply(n,i.get());return this.pushStack(n)}});var oe=/^margin/,re=new RegExp("^("+Rt+")(?!px)[a-z%]+$","i"),ae=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)};!function(){function e(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Jt.appendChild(r);var e=t.getComputedStyle(a);i="1%"!==e.top,o="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",s="4px"===e.marginRight,Jt.removeChild(r),a=null}}var i,n,s,o,r=it.createElement("div"),a=it.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",dt.clearCloneStyle="content-box"===a.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(a),gt.extend(dt,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return e(),n},pixelMarginRight:function(){return e(),s},reliableMarginLeft:function(){return e(),o}}))}();var le=/^(none|table(?!-c[ea]).+)/,ce=/^--/,ue={position:"absolute",visibility:"hidden",display:"block"},he={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","Moz","ms"],de=it.createElement("div").style;gt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=F(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=gt.camelCase(e),l=ce.test(e),c=t.style;return l||(e=O(a)),r=gt.cssHooks[e]||gt.cssHooks[a],void 0===i?r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:c[e]:(o=typeof i,"string"===o&&(s=zt.exec(i))&&s[1]&&(i=g(t,e,s),o="number"),void(null!=i&&i===i&&("number"===o&&(i+=s&&s[3]||(gt.cssNumber[a]?"":"px")),dt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))))}},css:function(t,e,i,n){var s,o,r,a=gt.camelCase(e);return ce.test(e)||(e=O(a)),r=gt.cssHooks[e]||gt.cssHooks[a],r&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=F(t,e,n)),"normal"===s&&e in he&&(s=he[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),gt.each(["height","width"],function(t,e){gt.cssHooks[e]={get:function(t,i,n){if(i)return!le.test(gt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?P(t,e,n):qt(t,ue,function(){return P(t,e,n)})},set:function(t,i,n){var s,o=n&&ae(t),r=n&&M(t,e,n,"border-box"===gt.css(t,"boxSizing",!1,o),o);return r&&(s=zt.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=gt.css(t,e)),I(t,i,r)}}}),gt.cssHooks.marginLeft=j(dt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(F(t,"marginLeft"))||t.getBoundingClientRect().left-qt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),gt.each({margin:"",padding:"",border:"Width"},function(t,e){gt.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+Ht[n]+e]=o[n]||o[n-2]||o[0];return s}},oe.test(t)||(gt.cssHooks[t+e].set=I)}),gt.fn.extend({css:function(t,e){return jt(this,function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=ae(t),s=e.length;r<s;r++)o[e[r]]=gt.css(t,e[r],!1,n);return o}return void 0!==i?gt.style(t,e,i):gt.css(t,e)},t,e,arguments.length>1)}}),gt.Tween=R,R.prototype={constructor:R,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||gt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(gt.cssNumber[i]?"":"px")},cur:function(){var t=R.propHooks[this.prop];return t&&t.get?t.get(this):R.propHooks._default.get(this)},run:function(t){var e,i=R.propHooks[this.prop];return this.options.duration?this.pos=e=gt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=gt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){gt.fx.step[t.prop]?gt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[gt.cssProps[t.prop]]&&!gt.cssHooks[t.prop]?t.elem[t.prop]=t.now:gt.style(t.elem,t.prop,t.now+t.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},gt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},gt.fx=R.prototype.init,gt.fx.step={};var fe,ge,me=/^(?:toggle|show|hide)$/,ve=/queueHooks$/;gt.Animation=gt.extend(Q,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return g(i.elem,t,zt.exec(e),i),i}]},tweener:function(t,e){gt.isFunction(t)?(e=t,t=["*"]):t=t.match(Lt);for(var i,n=0,s=t.length;n<s;n++)i=t[n],Q.tweeners[i]=Q.tweeners[i]||[],Q.tweeners[i].unshift(e)},prefilters:[W],prefilter:function(t,e){e?Q.prefilters.unshift(t):Q.prefilters.push(t)}}),gt.speed=function(t,e,i){var n=t&&"object"==typeof t?gt.extend({},t):{complete:i||!i&&e||gt.isFunction(t)&&t,duration:t,easing:i&&e||e&&!gt.isFunction(e)&&e};return gt.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in gt.fx.speeds?n.duration=gt.fx.speeds[n.duration]:n.duration=gt.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){gt.isFunction(n.old)&&n.old.call(this),n.queue&&gt.dequeue(this,n.queue)},n},gt.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Bt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=gt.isEmptyObject(t),o=gt.speed(e,i,n),r=function(){var e=Q(this,gt.extend({},t),o);(s||Ot.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",o=gt.timers,r=Ot.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&ve.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||gt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=Ot.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=gt.timers,r=n?n.length:0;for(i.finish=!0,gt.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),gt.each(["toggle","show","hide"],function(t,e){var i=gt.fn[e];gt.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(B(e,!0),t,n,s)}}),gt.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){gt.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),gt.timers=[],gt.fx.tick=function(){var t,e=0,i=gt.timers;for(fe=gt.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||gt.fx.stop(),fe=void 0},gt.fx.timer=function(t){gt.timers.push(t),gt.fx.start()},gt.fx.interval=13,gt.fx.start=function(){ge||(ge=!0,z())},gt.fx.stop=function(){ge=null},gt.fx.speeds={slow:600,fast:200,_default:400},gt.fn.delay=function(e,i){return e=gt.fx?gt.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(i,n){var s=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(s)}})},function(){
3
- var t=it.createElement("input"),e=it.createElement("select"),i=e.appendChild(it.createElement("option"));t.type="checkbox",dt.checkOn=""!==t.value,dt.optSelected=i.selected,t=it.createElement("input"),t.value="t",t.type="radio",dt.radioValue="t"===t.value}();var ye,be=gt.expr.attrHandle;gt.fn.extend({attr:function(t,e){return jt(this,gt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){gt.removeAttr(this,t)})}}),gt.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?gt.prop(t,e,i):(1===o&&gt.isXMLDoc(t)||(s=gt.attrHooks[e.toLowerCase()]||(gt.expr.match.bool.test(e)?ye:void 0)),void 0!==i?null===i?void gt.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:(n=gt.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!dt.radioValue&&"radio"===e&&s(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(Lt);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),ye={set:function(t,e,i){return!1===e?gt.removeAttr(t,i):t.setAttribute(i,i),i}},gt.each(gt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=be[e]||gt.find.attr;be[e]=function(t,e,n){var s,o,r=e.toLowerCase();return n||(o=be[r],be[r]=s,s=null!=i(t,e,n)?r:null,be[r]=o),s}});var we=/^(?:input|select|textarea|button)$/i,xe=/^(?:a|area)$/i;gt.fn.extend({prop:function(t,e){return jt(this,gt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[gt.propFix[t]||t]})}}),gt.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&gt.isXMLDoc(t)||(e=gt.propFix[e]||e,s=gt.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=gt.find.attr(t,"tabindex");return e?parseInt(e,10):we.test(t.nodeName)||xe.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),dt.optSelected||(gt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),gt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){gt.propFix[this.toLowerCase()]=this}),gt.fn.extend({addClass:function(t){var e,i,n,s,o,r,a,l=0;if(gt.isFunction(t))return this.each(function(e){gt(this).addClass(t.call(this,e,X(this)))});if("string"==typeof t&&t)for(e=t.match(Lt)||[];i=this[l++];)if(s=X(i),n=1===i.nodeType&&" "+V(s)+" "){for(r=0;o=e[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=V(n),s!==a&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,s,o,r,a,l=0;if(gt.isFunction(t))return this.each(function(e){gt(this).removeClass(t.call(this,e,X(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Lt)||[];i=this[l++];)if(s=X(i),n=1===i.nodeType&&" "+V(s)+" "){for(r=0;o=e[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=V(n),s!==a&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):gt.isFunction(t)?this.each(function(i){gt(this).toggleClass(t.call(this,i,X(this),e),e)}):this.each(function(){var e,n,s,o;if("string"===i)for(n=0,s=gt(this),o=t.match(Lt)||[];e=o[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==i||(e=X(this),e&&Ot.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Ot.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+V(X(i))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;gt.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=gt.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(s=n?t.call(this,i,gt(this).val()):t,null==s?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=gt.map(s,function(t){return null==t?"":t+""})),(e=gt.valHooks[this.type]||gt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=gt.valHooks[s.type]||gt.valHooks[s.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(Ce,""):null==i?"":i)):void 0}}),gt.extend({valHooks:{option:{get:function(t){var e=gt.find.attr(t,"value");return null!=e?e:V(gt.text(t))}},select:{get:function(t){var e,i,n,o=t.options,r=t.selectedIndex,a="select-one"===t.type,l=a?null:[],c=a?r+1:o.length;for(n=r<0?c:a?r:0;n<c;n++)if(i=o[n],(i.selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!s(i.parentNode,"optgroup"))){if(e=gt(i).val(),a)return e;l.push(e)}return l},set:function(t,e){for(var i,n,s=t.options,o=gt.makeArray(e),r=s.length;r--;)n=s[r],(n.selected=gt.inArray(gt.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),gt.each(["radio","checkbox"],function(){gt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=gt.inArray(gt(t).val(),e)>-1}},dt.checkOn||(gt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke=/^(?:focusinfocus|focusoutblur)$/;gt.extend(gt.event,{trigger:function(e,i,n,s){var o,r,a,l,c,u,h,p=[n||it],d=ut.call(e,"type")?e.type:e,f=ut.call(e,"namespace")?e.namespace.split("."):[];if(r=a=n=n||it,3!==n.nodeType&&8!==n.nodeType&&!ke.test(d+gt.event.triggered)&&(d.indexOf(".")>-1&&(f=d.split("."),d=f.shift(),f.sort()),c=d.indexOf(":")<0&&"on"+d,e=e[gt.expando]?e:new gt.Event(d,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:gt.makeArray(i,[e]),h=gt.event.special[d]||{},s||!h.trigger||!1!==h.trigger.apply(n,i))){if(!s&&!h.noBubble&&!gt.isWindow(n)){for(l=h.delegateType||d,ke.test(l+d)||(r=r.parentNode);r;r=r.parentNode)p.push(r),a=r;a===(n.ownerDocument||it)&&p.push(a.defaultView||a.parentWindow||t)}for(o=0;(r=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:h.bindType||d,u=(Ot.get(r,"events")||{})[e.type]&&Ot.get(r,"handle"),u&&u.apply(r,i),(u=c&&r[c])&&u.apply&&Nt(r)&&(e.result=u.apply(r,i),!1===e.result&&e.preventDefault());return e.type=d,s||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),i)||!Nt(n)||c&&gt.isFunction(n[d])&&!gt.isWindow(n)&&(a=n[c],a&&(n[c]=null),gt.event.triggered=d,n[d](),gt.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(t,e,i){var n=gt.extend(new gt.Event,i,{type:t,isSimulated:!0});gt.event.trigger(n,null,e)}}),gt.fn.extend({trigger:function(t,e){return this.each(function(){gt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return gt.event.trigger(t,e,i,!0)}}),gt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){gt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),gt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),dt.focusin="onfocusin"in t,dt.focusin||gt.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){gt.event.simulate(e,t.target,gt.event.fix(t))};gt.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=Ot.access(n,e);s||n.addEventListener(t,i,!0),Ot.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=Ot.access(n,e)-1;s?Ot.access(n,e,s):(n.removeEventListener(t,i,!0),Ot.remove(n,e))}}});var Te=t.location,_e=gt.now(),Se=/\?/;gt.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||gt.error("Invalid XML: "+e),i};var Ee=/\[\]$/,$e=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;gt.param=function(t,e){var i,n=[],s=function(t,e){var i=gt.isFunction(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!gt.isPlainObject(t))gt.each(t,function(){s(this.name,this.value)});else for(i in t)G(i,t[i],e,s);return n.join("&")},gt.fn.extend({serialize:function(){return gt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=gt.prop(this,"elements");return t?gt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!gt(this).is(":disabled")&&Le.test(this.nodeName)&&!De.test(t)&&(this.checked||!Ut.test(t))}).map(function(t,e){var i=gt(this).val();return null==i?null:Array.isArray(i)?gt.map(i,function(t){return{name:e.name,value:t.replace($e,"\r\n")}}):{name:e.name,value:i.replace($e,"\r\n")}}).get()}});var Ae=/%20/g,Fe=/#.*$/,je=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Oe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ie=/^(?:GET|HEAD)$/,Me=/^\/\//,Pe={},Re={},ze="*/".concat("*"),He=it.createElement("a");He.href=Te.href,gt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:Oe.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":gt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?K(K(t,gt.ajaxSettings),e):K(gt.ajaxSettings,t)},ajaxPrefilter:J(Pe),ajaxTransport:J(Re),ajax:function(e,i){function n(e,i,n,a){var c,p,d,w,x,C=i;u||(u=!0,l&&t.clearTimeout(l),s=void 0,r=a||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(w=Z(f,k,n)),w=tt(f,w,k,c),c?(f.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(gt.lastModified[o]=x),(x=k.getResponseHeader("etag"))&&(gt.etag[o]=x)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=w.state,p=w.data,d=w.error,c=!d)):(d=C,!e&&C||(C="error",e<0&&(e=0))),k.status=e,k.statusText=(i||C)+"",c?v.resolveWith(g,[p,C,k]):v.rejectWith(g,[k,C,d]),k.statusCode(b),b=void 0,h&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,f,c?p:d]),y.fireWith(g,[k,C]),h&&(m.trigger("ajaxComplete",[k,f]),--gt.active||gt.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var s,o,r,a,l,c,u,h,p,d,f=gt.ajaxSetup({},i),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?gt(g):gt.event,v=gt.Deferred(),y=gt.Callbacks("once memory"),b=f.statusCode||{},w={},x={},C="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Ne.exec(r);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||C;return s&&s.abort(e),n(0,e),this}};if(v.promise(k),f.url=((e||f.url||Te.href)+"").replace(Me,Te.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Lt)||[""],null==f.crossDomain){c=it.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=He.protocol+"//"+He.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=gt.param(f.data,f.traditional)),Y(Pe,f,i,k),u)return k;h=gt.event&&f.global,h&&0==gt.active++&&gt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ie.test(f.type),o=f.url.replace(Fe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ae,"+")):(d=f.url.slice(o.length),f.data&&(o+=(Se.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(je,"$1"),d=(Se.test(o)?"&":"?")+"_="+_e+++d),f.url=o+d),f.ifModified&&(gt.lastModified[o]&&k.setRequestHeader("If-Modified-Since",gt.lastModified[o]),gt.etag[o]&&k.setRequestHeader("If-None-Match",gt.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+ze+"; q=0.01":""):f.accepts["*"]);for(p in f.headers)k.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(g,k,f)||u))return k.abort();if(C="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),s=Y(Re,f,i,k)){if(k.readyState=1,h&&m.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(l=t.setTimeout(function(){k.abort("timeout")},f.timeout));try{u=!1,s.send(w,n)}catch(t){if(u)throw t;n(-1,t)}}else n(-1,"No Transport");return k},getJSON:function(t,e,i){return gt.get(t,e,i,"json")},getScript:function(t,e){return gt.get(t,void 0,e,"script")}}),gt.each(["get","post"],function(t,e){gt[e]=function(t,i,n,s){return gt.isFunction(i)&&(s=s||n,n=i,i=void 0),gt.ajax(gt.extend({url:t,type:e,dataType:s,data:i,success:n},gt.isPlainObject(t)&&t))}}),gt._evalUrl=function(t){return gt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},gt.fn.extend({wrapAll:function(t){var e;return this[0]&&(gt.isFunction(t)&&(t=t.call(this[0])),e=gt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return gt.isFunction(t)?this.each(function(e){gt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=gt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=gt.isFunction(t);return this.each(function(i){gt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){gt(this).replaceWith(this.childNodes)}),this}}),gt.expr.pseudos.hidden=function(t){return!gt.expr.pseudos.visible(t)},gt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},gt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Be={0:200,1223:204},qe=gt.ajaxSettings.xhr();dt.cors=!!qe&&"withCredentials"in qe,dt.ajax=qe=!!qe,gt.ajaxTransport(function(e){var i,n;if(dt.cors||qe&&!e.crossDomain)return{send:function(s,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");for(r in s)a.setRequestHeader(r,s[r]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Be[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}}),gt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),gt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return gt.globalEval(t),t}}}),gt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),gt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,s){e=gt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),it.head.appendChild(e[0])},abort:function(){i&&i()}}}});var We=[],Ue=/(=)\?(?=&|$)|\?\?/;gt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||gt.expando+"_"+_e++;return this[t]=!0,t}}),gt.ajaxPrefilter("json jsonp",function(e,i,n){var s,o,r,a=!1!==e.jsonp&&(Ue.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ue.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=gt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ue,"$1"+s):!1!==e.jsonp&&(e.url+=(Se.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||gt.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=t[s],t[s]=function(){r=arguments},n.always(function(){void 0===o?gt(t).removeProp(s):t[s]=o,e[s]&&(e.jsonpCallback=i.jsonpCallback,We.push(s)),r&&gt.isFunction(o)&&o(r[0]),r=o=void 0}),"script"}),dt.createHTMLDocument=function(){var t=it.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),gt.parseHTML=function(t,e,i){if("string"!=typeof t)return[];"boolean"==typeof e&&(i=e,e=!1);var n,s,o;return e||(dt.createHTMLDocument?(e=it.implementation.createHTMLDocument(""),n=e.createElement("base"),n.href=it.location.href,e.head.appendChild(n)):e=it),s=Tt.exec(t),o=!i&&[],s?[e.createElement(s[1])]:(s=w([t],e,o),o&&o.length&&gt(o).remove(),gt.merge([],s.childNodes))},gt.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return a>-1&&(n=V(t.slice(a)),t=t.slice(0,a)),gt.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&gt.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?gt("<div>").append(gt.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},gt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){gt.fn[e]=function(t){return this.on(e,t)}}),gt.expr.pseudos.animated=function(t){return gt.grep(gt.timers,function(e){return t===e.elem}).length},gt.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c,u=gt.css(t,"position"),h=gt(t),p={};"static"===u&&(t.style.position="relative"),a=h.offset(),o=gt.css(t,"top"),l=gt.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,c?(n=h.position(),r=n.top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),gt.isFunction(e)&&(e=e.call(t,i,gt.extend({},a))),null!=e.top&&(p.top=e.top-a.top+r),null!=e.left&&(p.left=e.left-a.left+s),"using"in e?e.using.call(t,p):h.css(p)}},gt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){gt.offset.setOffset(this,t,e)});var e,i,n,s,o=this[0];return o?o.getClientRects().length?(n=o.getBoundingClientRect(),e=o.ownerDocument,i=e.documentElement,s=e.defaultView,{top:n.top+s.pageYOffset-i.clientTop,left:n.left+s.pageXOffset-i.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===gt.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),s(t[0],"html")||(n=t.offset()),n={top:n.top+gt.css(t[0],"borderTopWidth",!0),left:n.left+gt.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-gt.css(i,"marginTop",!0),left:e.left-n.left-gt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===gt.css(t,"position");)t=t.offsetParent;return t||Jt})}}),gt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;gt.fn[t]=function(n){return jt(this,function(t,n,s){var o;return gt.isWindow(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===s?o?o[e]:t[n]:void(o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):t[n]=s)},t,n,arguments.length)}}),gt.each(["top","left"],function(t,e){gt.cssHooks[e]=j(dt.pixelPosition,function(t,i){if(i)return i=F(t,e),re.test(i)?gt(t).position()[e]+"px":i})}),gt.each({Height:"height",Width:"width"},function(t,e){gt.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){gt.fn[n]=function(s,o){var r=arguments.length&&(i||"boolean"!=typeof s),a=i||(!0===s||!0===o?"margin":"border");return jt(this,function(e,i,s){var o;return gt.isWindow(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===s?gt.css(e,i,a):gt.style(e,i,s,a)},e,r?s:void 0,r)}})}),gt.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),gt.holdReady=function(t){t?gt.readyWait++:gt.ready(!0)},gt.isArray=Array.isArray,gt.parseJSON=JSON.parse,gt.nodeName=s,"function"==typeof define&&define.amd&&define("jquery",[],function(){return gt});var Qe=t.jQuery,Ve=t.$;return gt.noConflict=function(e){return t.$===gt&&(t.$=Ve),e&&t.jQuery===gt&&(t.jQuery=Qe),gt},e||(t.jQuery=t.$=gt),gt});var Base=function(){};Base.extend=function(t,e){"use strict";var i=Base.prototype.extend;Base._prototyping=!0;var n=new this;i.call(n,t),n.base=function(){},delete Base._prototyping;var s=n.constructor,o=n.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==o)this._constructing=!0,s.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||i).call(arguments[0],n)};return o.ancestor=this,o.extend=this.extend,o.forEach=this.forEach,o.implement=this.implement,o.prototype=n,o.toString=this.toString,o.valueOf=function(t){return"object"==t?o:s.valueOf()},i.call(o,e),"function"==typeof o.init&&o.init(),o},Base.prototype={extend:function(t,e){if(arguments.length>1){var i=this[t];if(i&&"function"==typeof e&&(!i.valueOf||i.valueOf()!=e.valueOf())&&/\bbase\b/.test(e)){var n=e.valueOf();e=function(){var t=this.base||Base.prototype.base;this.base=i;var e=n.apply(this,arguments);return this.base=t,e},e.valueOf=function(t){return"object"==t?e:n},e.toString=Base.toString}this[t]=e}else if(t){var s=Base.prototype.extend;Base._prototyping||"function"==typeof this||(s=this.extend||s);for(var o={toSource:null},r=["constructor","toString","valueOf"],a=Base._prototyping?0:1;l=r[a++];)t[l]!=o[l]&&s.call(this,l,t[l]);for(var l in t)o[l]||s.call(this,l,t[l])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,i){for(var n in t)void 0===this.prototype[n]&&e.call(i,t[n],n,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}});var FlipClock;if(function(t){"use strict";FlipClock=function(t,e,i){return e instanceof Object&&e instanceof Date==0&&(i=e,e=0),new FlipClock.Factory(t,e,i)},FlipClock.Lang={},FlipClock.Base=Base.extend({buildDate:"2014-12-12",version:"0.7.7",constructor:function(e,i){"object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),this.setOptions(t.extend(!0,{},e,i))},callback:function(t){if("function"==typeof t){for(var e=[],i=1;i<=arguments.length;i++)arguments[i]&&e.push(arguments[i]);t.apply(this,e)}},log:function(t){window.console&&console.log&&console.log(t)},getOption:function(t){return!!this[t]&&this[t]},getOptions:function(){return this},setOption:function(t,e){this[t]=e},setOptions:function(t){for(var e in t)"undefined"!=typeof t[e]&&this.setOption(e,t[e])}})}(jQuery),function(t){"use strict";FlipClock.Face=FlipClock.Base.extend({autoStart:!0,dividers:[],factory:!1,lists:[],constructor:function(t,e){this.dividers=[],this.lists=[],this.base(e),this.factory=t},build:function(){this.autoStart&&this.start()},createDivider:function(e,i,n){"boolean"!=typeof i&&i||(n=i,i=e);var s=['<span class="'+this.factory.classes.dot+' top"></span>','<span class="'+this.factory.classes.dot+' bottom"></span>'].join("");n&&(s=""),e=this.factory.localize(e);var o=['<span class="'+this.factory.classes.divider+" "+(i||"").toLowerCase()+'">','<span class="'+this.factory.classes.label+'">'+(e||"")+"</span>",s,"</span>"],r=t(o.join(""));return this.dividers.push(r),r},createList:function(t,e){"object"==typeof t&&(e=t,t=0);var i=new FlipClock.List(this.factory,t,e);return this.lists.push(i),i},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(t){t.$el.append(!1)},addDigit:function(t){var e=this.createList(t,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(e)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(e,i){var n=this;t.each(e,function(t,e){var s=n.lists[t];s?(i||e==s.digit||s.play(),s.select(e)):n.addDigit(e)})}})}(jQuery),function(t){"use strict";FlipClock.Factory=FlipClock.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(e,i,n){n||(n={}),this.lists=[],this.running=!1,this.base(n),this.$el=t(e).addClass(this.classes.wrapper),this.$wrapper=this.$el,this.original=i instanceof Date?i:i?Math.round(i):0,this.time=new FlipClock.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new FlipClock.Timer(this,n),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,n),this.autoStart&&this.start()},loadClockFace:function(t,e){var i,n="Face",s=!1;return t=t.ucfirst()+n,this.face.stop&&(this.stop(),s=!0),this.$el.html(""),this.time.minimumDigits=this.minimumDigits,i=FlipClock[t]?new FlipClock[t](this,e):new FlipClock[this.defaultClockFace+n](this,e),i.build(),this.face=i,s&&this.start(),this.face},loadLanguage:function(t){var e;return e=FlipClock.Lang[t.ucfirst()]?FlipClock.Lang[t.ucfirst()]:FlipClock.Lang[t]?FlipClock.Lang[t]:FlipClock.Lang[this.defaultLanguage],this.lang=e},localize:function(t,e){var i=this.lang;if(!t)return null;var n=t.toLowerCase();return"object"==typeof e&&(i=e),i&&i[n]?i[n]:t},start:function(t){var e=this;e.running||e.countdown&&!(e.countdown&&e.time.time>0)?e.log("Trying to start timer when countdown already at 0"):(e.face.start(e.time),e.timer.start(function(){e.flip(),"function"==typeof t&&t()}))},stop:function(t){this.face.stop(),this.timer.stop(t);for(var e in this.lists)this.lists.hasOwnProperty(e)&&this.lists[e].stop()},reset:function(t){this.timer.reset(t),this.face.reset()},setTime:function(t){this.time.time=t,this.flip(!0)},getTime:function(){return this.time},setCountdown:function(t){var e=this.running;this.countdown=!!t,e&&(this.stop(),this.start())},flip:function(t){this.face.flip(!1,t)}})}(jQuery),function(t){"use strict";FlipClock.List=FlipClock.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(t,e){this.factory=t,this.digit=e,this.lastDigit=e,this.$el=this.createList(),this.$obj=this.$el,e>0&&this.select(e),this.factory.$el.append(this.$el)},select:function(t){if(void 0===t?t=this.digit:this.digit=t,this.digit!=this.lastDigit){var e=this.$el.find("."+this.classes.before).removeClass(this.classes.before);this.$el.find("."+this.classes.active).removeClass(this.classes.active).addClass(this.classes.before),this.appendListItem(this.classes.active,this.digit),e.remove(),this.lastDigit=this.digit}},play:function(){this.$el.addClass(this.factory.classes.play)},stop:function(){var t=this;setTimeout(function(){t.$el.removeClass(t.factory.classes.play)},this.factory.timer.interval)},createListItem:function(t,e){return['<li class="'+(t||"")+'">','<a href="#">','<div class="up">','<div class="shadow"></div>','<div class="inn">'+(e||"")+"</div>","</div>",'<div class="down">','<div class="shadow"></div>','<div class="inn">'+(e||"")+"</div>","</div>","</a>","</li>"].join("")},appendListItem:function(t,e){var i=this.createListItem(t,e);this.$el.append(i)},createList:function(){var e=this.getPrevDigit()?this.getPrevDigit():this.digit;return t(['<ul class="'+this.classes.flip+" "+(this.factory.running?this.factory.classes.play:"")+'">',this.createListItem(this.classes.before,e),this.createListItem(this.classes.active,this.digit),"</ul>"].join(""))},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}})}(jQuery),function(t){"use strict";String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},t.fn.FlipClock=function(e,i){return new FlipClock(t(this),e,i)},t.fn.flipClock=function(e,i){return t.fn.FlipClock(e,i)}}(jQuery),function(t){"use strict";FlipClock.Time=FlipClock.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(t,e,i){"object"!=typeof i&&(i={}),i.minimumDigits||(i.minimumDigits=t.minimumDigits),this.base(i),this.factory=t,e&&(this.time=e)},convertDigitsToArray:function(t){var e=[];t=t.toString();for(var i=0;i<t.length;i++)t[i].match(/^\d*$/g)&&e.push(t[i]);return e},digit:function(t){var e=this.toString(),i=e.length;return!!e[i-t]&&e[i-t]},digitize:function(e){var i=[];if(t.each(e,function(t,e){e=e.toString(),1==e.length&&(e="0"+e);for(var n=0;n<e.length;n++)i.push(e.charAt(n))}),i.length>this.minimumDigits&&(this.minimumDigits=i.length),this.minimumDigits>i.length)for(var n=i.length;n<this.minimumDigits;n++)i.unshift("0");return i},getDateObject:function(){return this.time instanceof Date?this.time:new Date((new Date).getTime()+1e3*this.getTimeSeconds())},getDayCounter:function(t){var e=[this.getDays(),this.getHours(!0),this.getMinutes(!0)];return t&&e.push(this.getSeconds(!0)),this.digitize(e)},getDays:function(t){var e=this.getTimeSeconds()/60/60/24;return t&&(e%=7),Math.floor(e)},getHourCounter:function(){return this.digitize([this.getHours(),this.getMinutes(!0),this.getSeconds(!0)])},getHourly:function(){return this.getHourCounter()},getHours:function(t){var e=this.getTimeSeconds()/60/60;return t&&(e%=24),Math.floor(e)},getMilitaryTime:function(t,e){void 0===e&&(e=!0),t||(t=this.getDateObject());var i=[t.getHours(),t.getMinutes()];return!0===e&&i.push(t.getSeconds()),this.digitize(i)},getMinutes:function(t){var e=this.getTimeSeconds()/60;return t&&(e%=60),Math.floor(e)},getMinuteCounter:function(){return this.digitize([this.getMinutes(),this.getSeconds(!0)])},getTimeSeconds:function(t){return t||(t=new Date),this.time instanceof Date?this.factory.countdown?Math.max(this.time.getTime()/1e3-t.getTime()/1e3,0):t.getTime()/1e3-this.time.getTime()/1e3:this.time},getTime:function(t,e){void 0===e&&(e=!0),t||(t=this.getDateObject()),console.log(t);var i=t.getHours(),n=[i>12?i-12:0===i?12:i,t.getMinutes()];return!0===e&&n.push(t.getSeconds()),this.digitize(n)},getSeconds:function(t){var e=this.getTimeSeconds();return t&&(60==e?e=0:e%=60),Math.ceil(e)},getWeeks:function(t){var e=this.getTimeSeconds()/60/60/24/7;return t&&(e%=52),Math.floor(e)},removeLeadingZeros:function(e,i){var n=0,s=[];return t.each(i,function(t){e>t?n+=parseInt(i[t],10):s.push(i[t])}),0===n?s:i},addSeconds:function(t){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+t):this.time+=t},addSecond:function(){this.addSeconds(1)},subSeconds:function(t){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-t):this.time-=t},subSecond:function(){this.subSeconds(1)},
4
- toString:function(){return this.getTimeSeconds().toString()}})}(jQuery),function(){"use strict";FlipClock.Timer=FlipClock.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(t,e){this.base(e),this.factory=t,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(t){clearInterval(this.timer),this.count=0,this._setInterval(t),this.callback(this.callbacks.reset)},start:function(t){this.factory.running=!0,this._createTimer(t),this.callback(this.callbacks.start)},stop:function(t){this.factory.running=!1,this._clearInterval(t),this.callback(this.callbacks.stop),this.callback(t)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(t){this._setInterval(t)},_destroyTimer:function(t){this._clearInterval(),this.timer=!1,this.callback(t),this.callback(this.callbacks.destroy)},_interval:function(t){this.callback(this.callbacks.interval),this.callback(t),this.count++},_setInterval:function(t){var e=this;e._interval(t),e.timer=setInterval(function(){e._interval(t)},this.interval)}})}(jQuery),function(t){FlipClock.TwentyFourHourClockFace=FlipClock.Face.extend({constructor:function(t,e){this.base(t,e)},build:function(e){var i=this,n=this.factory.$el.find("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new FlipClock.Time(this.factory,this.factory.original));var e=e||this.factory.time.getMilitaryTime(!1,this.showSeconds);e.length>n.length&&t.each(e,function(t,e){i.createList(e)}),this.createDivider(),this.createDivider(),t(this.dividers[0]).insertBefore(this.lists[this.lists.length-2].$el),t(this.dividers[1]).insertBefore(this.lists[this.lists.length-4].$el),this.base()},flip:function(t,e){this.autoIncrement(),t=t||this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(t,e)}})}(jQuery),function(t){FlipClock.CounterFace=FlipClock.Face.extend({shouldAutoIncrement:!1,constructor:function(t,e){"object"!=typeof e&&(e={}),t.autoStart=!!e.autoStart,e.autoStart&&(this.shouldAutoIncrement=!0),t.increment=function(){t.countdown=!1,t.setTime(t.getTime().getTimeSeconds()+1)},t.decrement=function(){t.countdown=!0;var e=t.getTime().getTimeSeconds();e>0&&t.setTime(e-1)},t.setValue=function(e){t.setTime(e)},t.setCounter=function(e){t.setTime(e)},this.base(t,e)},build:function(){var e=this,i=this.factory.$el.find("ul"),n=this.factory.getTime().digitize([this.factory.getTime().time]);n.length>i.length&&t.each(n,function(t,i){e.createList(i).select(i)}),t.each(this.lists,function(t,e){e.play()}),this.base()},flip:function(t,e){this.shouldAutoIncrement&&this.autoIncrement(),t||(t=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(t,e)},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}})}(jQuery),function(t){FlipClock.DailyCounterFace=FlipClock.Face.extend({showSeconds:!0,constructor:function(t,e){this.base(t,e)},build:function(e){var i=this,n=this.factory.$el.find("ul"),s=0;e=e||this.factory.time.getDayCounter(this.showSeconds),e.length>n.length&&t.each(e,function(t,e){i.createList(e)}),this.showSeconds?t(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el):s=2,t(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4+s].$el),t(this.createDivider("Hours")).insertBefore(this.lists[this.lists.length-6+s].$el),t(this.createDivider("Days",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(t,e){t||(t=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(t,e)}})}(jQuery),function(t){FlipClock.HourlyCounterFace=FlipClock.Face.extend({constructor:function(t,e){this.base(t,e)},build:function(e,i){var n=this,s=this.factory.$el.find("ul");i=i||this.factory.time.getHourCounter(),i.length>s.length&&t.each(i,function(t,e){n.createList(e)}),t(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el),t(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4].$el),e||t(this.createDivider("Hours",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(t,e){t||(t=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(t,e)},appendDigitToClock:function(t){this.base(t),this.dividers[0].insertAfter(this.dividers[0].next())}})}(jQuery),function(){FlipClock.MinuteCounterFace=FlipClock.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(t,e){this.base(t,e)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(t,e){t||(t=this.factory.time.getMinuteCounter()),this.base(t,e)}})}(jQuery),function(t){FlipClock.TwelveHourClockFace=FlipClock.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var e=this.factory.time.getTime(!1,this.showSeconds);this.base(e),this.meridiumText=this.getMeridium(),this.meridium=t(['<ul class="flip-clock-meridium">',"<li>",'<a href="#">'+this.meridiumText+"</a>","</li>","</ul>"].join("")),this.meridium.insertAfter(this.lists[this.lists.length-1].$el)},flip:function(t,e){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),e)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()},isAM:function(){return"AM"==this.getMeridium()}})}(jQuery),function(){FlipClock.Lang.Arabic={years:"\u0633\u0646\u0648\u0627\u062a",months:"\u0634\u0647\u0648\u0631",days:"\u0623\u064a\u0627\u0645",hours:"\u0633\u0627\u0639\u0627\u062a",minutes:"\u062f\u0642\u0627\u0626\u0642",seconds:"\u062b\u0648\u0627\u0646\u064a"},FlipClock.Lang.ar=FlipClock.Lang.Arabic,FlipClock.Lang["ar-ar"]=FlipClock.Lang.Arabic,FlipClock.Lang.arabic=FlipClock.Lang.Arabic}(jQuery),function(){FlipClock.Lang.Danish={years:"\xc5r",months:"M\xe5neder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.da=FlipClock.Lang.Danish,FlipClock.Lang["da-dk"]=FlipClock.Lang.Danish,FlipClock.Lang.danish=FlipClock.Lang.Danish}(jQuery),function(){FlipClock.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},FlipClock.Lang.de=FlipClock.Lang.German,FlipClock.Lang["de-de"]=FlipClock.Lang.German,FlipClock.Lang.german=FlipClock.Lang.German}(jQuery),function(){FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}(jQuery),function(){FlipClock.Lang.Spanish={years:"A\xf1os",months:"Meses",days:"D\xedas",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.es=FlipClock.Lang.Spanish,FlipClock.Lang["es-es"]=FlipClock.Lang.Spanish,FlipClock.Lang.spanish=FlipClock.Lang.Spanish}(jQuery),function(){FlipClock.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"P\xe4iv\xe4\xe4",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},FlipClock.Lang.fi=FlipClock.Lang.Finnish,FlipClock.Lang["fi-fi"]=FlipClock.Lang.Finnish,FlipClock.Lang.finnish=FlipClock.Lang.Finnish}(jQuery),function(){FlipClock.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},FlipClock.Lang.fr=FlipClock.Lang.French,FlipClock.Lang["fr-ca"]=FlipClock.Lang.French,FlipClock.Lang.french=FlipClock.Lang.French}(jQuery),function(){FlipClock.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},FlipClock.Lang.it=FlipClock.Lang.Italian,FlipClock.Lang["it-it"]=FlipClock.Lang.Italian,FlipClock.Lang.italian=FlipClock.Lang.Italian}(jQuery),function(){FlipClock.Lang.Latvian={years:"Gadi",months:"M\u0113ne\u0161i",days:"Dienas",hours:"Stundas",minutes:"Min\u016btes",seconds:"Sekundes"},FlipClock.Lang.lv=FlipClock.Lang.Latvian,FlipClock.Lang["lv-lv"]=FlipClock.Lang.Latvian,FlipClock.Lang.latvian=FlipClock.Lang.Latvian}(jQuery),function(){FlipClock.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},FlipClock.Lang.nl=FlipClock.Lang.Dutch,FlipClock.Lang["nl-be"]=FlipClock.Lang.Dutch,FlipClock.Lang.dutch=FlipClock.Lang.Dutch}(jQuery),function(){FlipClock.Lang.Norwegian={years:"\xc5r",months:"M\xe5neder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.no=FlipClock.Lang.Norwegian,FlipClock.Lang.nb=FlipClock.Lang.Norwegian,FlipClock.Lang["no-nb"]=FlipClock.Lang.Norwegian,FlipClock.Lang.norwegian=FlipClock.Lang.Norwegian}(jQuery),function(){FlipClock.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.pt=FlipClock.Lang.Portuguese,FlipClock.Lang["pt-br"]=FlipClock.Lang.Portuguese,FlipClock.Lang.portuguese=FlipClock.Lang.Portuguese}(jQuery),function(){FlipClock.Lang.Russian={years:"\u043b\u0435\u0442",months:"\u043c\u0435\u0441\u044f\u0446\u0435\u0432",days:"\u0434\u043d\u0435\u0439",hours:"\u0447\u0430\u0441\u043e\u0432",minutes:"\u043c\u0438\u043d\u0443\u0442",seconds:"\u0441\u0435\u043a\u0443\u043d\u0434"},FlipClock.Lang.ru=FlipClock.Lang.Russian,FlipClock.Lang["ru-ru"]=FlipClock.Lang.Russian,FlipClock.Lang.russian=FlipClock.Lang.Russian}(jQuery),function(){FlipClock.Lang.Swedish={years:"\xc5r",months:"M\xe5nader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},FlipClock.Lang.sv=FlipClock.Lang.Swedish,FlipClock.Lang["sv-se"]=FlipClock.Lang.Swedish,FlipClock.Lang.swedish=FlipClock.Lang.Swedish}(jQuery),function(){FlipClock.Lang.Chinese={years:"\u5e74",months:"\u6708",days:"\u65e5",hours:"\u65f6",minutes:"\u5206",seconds:"\u79d2"},FlipClock.Lang.zh=FlipClock.Lang.Chinese,FlipClock.Lang["zh-cn"]=FlipClock.Lang.Chinese,FlipClock.Lang.chinese=FlipClock.Lang.Chinese}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var s=t(this),o=s.attr("data-target");o||(o=s.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var r=t("#"===o?[]:o);e&&e.preventDefault(),r.length||(r=s.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,o)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target).closest(".btn");e.call(n,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;s||n.data("bs.carousel",s=new i(this,o)),"number"==typeof e?s.to(e):r?s[r]():o.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n="prev"==t?-1:1,s=(i+n)%this.$items.length;return this.$items.eq(s)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,s),r=this.interval,a="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,s.addClass(a),o.addClass(a),s.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var r=t.extend({},o.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(o,r),a&&o.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),s||i.data("bs.collapse",s=new n(this,o)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[r](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var o=e(s),r=o.data("bs.collapse"),a=r?"toggle":s.data();i.call(o,a)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(s).remove(),t(o).each(function(){var n=t(this),s=e(n),o={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s[0],i.target)||(s.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.7",r.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var o=e(s),r=o.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=e(n),r=s.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&s.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",l=s.find(".dropdown-menu"+a);if(l.length){var c=l.index(i.target);38==i.which&&c>0&&c--,40==i.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),o=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);o||s.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](n):r.show&&o.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});s?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),o=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},o.data(),n.data());n.is("a")&&i.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(o,r,this)})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.tooltip",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type)
5
- ;if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),h=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var d=a,f=this.getPosition(this.$viewport);a="bottom"==a&&u.bottom+p>f.bottom?"top":"top"==a&&u.top-p<f.top?"bottom":"right"==a&&u.right+h>f.width?"left":"left"==a&&u.left-h<f.left?"right":a,o.removeClass(d).addClass(a)}var g=this.getCalculatedOffset(a,u,h,p);this.applyPlacement(g,a);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,c=n[0].offsetHeight;"top"==i&&c!=o&&(e.top=e.top+o-c);var u=this.getViewportAdjustedDelta(i,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var h=/top|bottom/.test(i),p=h?2*u.left-s+l:2*u.top-o+c,d=h?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(p,n[0][d],h)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function n(){"in"!=s.hoverState&&o.detach(),s.$element&&s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,o=t(this.$tip),r=t.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),this.hoverState=null,this},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var o=window.SVGElement&&i instanceof window.SVGElement,r=n?{top:0,left:0}:o?null:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,a,l,r)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+n;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var c=e.left-o,u=e.left+o+i;c<r.left?s.left=r.left-c:u>r.right&&(s.left=r.left+r.width-u)}return s},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.popover",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.7",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,n,s){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var r=n.find("> .active"),a=s&&t.support.transition&&(r.length&&r.hasClass("fade")||!!n.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(s+r<=t-n)&&"bottom";var a=null==this.affixed,l=a?s:o.top,c=a?r:e;return null!=i&&s<=i?"top":null!=n&&l+c>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(r,e,s,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t){if(!t.hasInitialised){var e={escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(t,e){var i=" ";return 1===t.nodeType&&(i+t.className+i).replace(/[\n\t]/g,i).indexOf(i+e+i)>=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var i=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(i,"")},interpolateString:function(t,e){var i=/{{([a-z][a-z0-9\-_]*)}}/gi;return t.replace(i,function(){return e(arguments[1])||""})},getCookie:function(t){var e="; "+document.cookie,i=e.split("; "+t+"=");return 2!=i.length?void 0:i.pop().split(";").shift()},setCookie:function(t,e,i,n,s){var o=new Date;o.setDate(o.getDate()+(i||365));var r=[t+"="+e,"expires="+o.toUTCString(),"path="+(s||"/")];n&&r.push("domain="+n),document.cookie=r.join(";")},deepExtend:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(i in t&&this.isPlainObject(t[i])&&this.isPlainObject(e[i])?this.deepExtend(t[i],e[i]):t[i]=e[i]);return t},throttle:function(t,e){var i=!1;return function(){i||(t.apply(this,arguments),i=!0,setTimeout(function(){i=!1},e))}},hash:function(t){var e,i,n,s=0;if(0===t.length)return s;for(e=0,n=t.length;e<n;++e)i=t.charCodeAt(e),s=(s<<5)-s+i,s|=0;return s},normaliseHex:function(t){return"#"==t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t},getContrast:function(t){return t=this.normaliseHex(t),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),i=38,n=(e>>16)+i,s=(e>>8&255)+i,o=(255&e)+i;return"#"+(16777216+65536*(n<255?n<1?0:n:255)+256*(s<255?s<1?0:s:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in e)if(e.hasOwnProperty(i)&&"undefined"!=typeof t.style[i+"ransition"])return e[i];return""}(),t.hasTransition=!!t.transitionEnd;var i=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){function n(){this.initialise.apply(this,arguments)}function s(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function o(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function r(){var e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(t.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return e(t.status.allow),!0;var i=Object.keys(t.status),n=this.getStatus(),s=i.indexOf(n)>=0;return s&&e(n),s}function a(){var t=this.options.position.split("-"),e=[];return t.forEach(function(t){e.push("cc-"+t)}),e}function l(){var t=this.options,i="top"==t.position||"bottom"==t.position?"banner":"floating";e.isMobile()&&(i="floating");var n=["cc-"+i,"cc-type-"+t.type,"cc-theme-"+t.theme];return t["static"]&&n.push("cc-static"),n.push.apply(n,a.call(this)),p.call(this,this.options.palette),this.customStyleSelector&&n.push(this.customStyleSelector),n}function c(){var t={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message),Object.keys(i.elements).forEach(function(n){t[n]=e.interpolateString(i.elements[n],function(t){var e=i.content[t];return t&&"string"==typeof e&&e.length?e:""})});var n=i.compliance[i.type];n||(n=i.compliance.info),t.compliance=e.interpolateString(n,function(e){return t[e]});var s=i.layouts[i.layout];return s||(s=i.layouts.basic),e.interpolateString(s,function(e){return t[e]})}function u(i){var n=this.options,s=document.createElement("div"),o=n.container&&1===n.container.nodeType?n.container:document.body;s.innerHTML=i;var r=s.children[0];return r.style.display="none",e.hasClass(r,"cc-window")&&t.hasTransition&&e.addClass(r,"cc-invisible"),this.onButtonClick=h.bind(this),r.addEventListener("click",this.onButtonClick),n.autoAttach&&(o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r)),r}function h(n){var s=n.target;if(e.hasClass(s,"cc-btn")){var o=s.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),r=o&&o[1]||!1;r&&(this.setStatus(r),this.close(!0))}e.hasClass(s,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(s,"cc-revoke")&&this.revokeChoice()}function p(t){var i=e.hash(JSON.stringify(t)),n="cc-color-override-"+i,s=e.isPlainObject(t);return this.customStyleSelector=s?n:null,s&&d(i,t,"."+n),s}function d(i,n,s){if(t.customStyles[i])return void++t.customStyles[i].references;var o={},r=n.popup,a=n.button,l=n.highlight;r&&(r.text=r.text?r.text:e.getContrast(r.background),r.link=r.link?r.link:r.text,o[s+".cc-window"]=["color: "+r.text,"background-color: "+r.background],o[s+".cc-revoke"]=["color: "+r.text,"background-color: "+r.background],o[s+" .cc-link,"+s+" .cc-link:active,"+s+" .cc-link:visited"]=["color: "+r.link],a&&(a.text=a.text?a.text:e.getContrast(a.background),a.border=a.border?a.border:"transparent",o[s+" .cc-btn"]=["color: "+a.text,"border-color: "+a.border,"background-color: "+a.background],"transparent"!=a.background&&(o[s+" .cc-btn:hover, "+s+" .cc-btn:focus"]=["background-color: "+f(a.background)]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",o[s+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):o[s+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text]));var c=document.createElement("style");document.head.appendChild(c),t.customStyles[i]={references:1,element:c.sheet};var u=-1;for(var h in o)o.hasOwnProperty(h)&&c.sheet.insertRule(h+"{"+o[h].join(";")+"}",++u)}function f(t){return t=e.normaliseHex(t),"000000"==t?"#222":e.getLuminance(t)}function g(i){if(e.isPlainObject(i)){var n=e.hash(JSON.stringify(i)),s=t.customStyles[n];if(s&&!--s.references){var o=s.element.ownerNode;o&&o.parentNode&&o.parentNode.removeChild(o),t.customStyles[n]=null}}}function m(t,e){for(var i=0,n=t.length;i<n;++i){var s=t[i];if(s instanceof RegExp&&s.test(e)||"string"==typeof s&&s.length&&s===e)return!0}return!1}function v(){var e=this.setStatus.bind(this),i=this.options.dismissOnTimeout;"number"==typeof i&&i>=0&&(this.dismissTimeout=window.setTimeout(function(){e(t.status.dismiss)},Math.floor(i)));var n=this.options.dismissOnScroll;if("number"==typeof n&&n>=0){var s=function(){window.pageYOffset>Math.floor(n)&&(e(t.status.dismiss),window.removeEventListener("scroll",s),this.onWindowScroll=null)};this.onWindowScroll=s,window.addEventListener("scroll",s)}}function y(){if("info"!=this.options.type&&(this.options.revokable=!0),e.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var t=a.call(this);this.options.animateRevokable&&t.push("cc-animate"),this.customStyleSelector&&t.push(this.customStyleSelector);var i=this.options.revokeBtn.replace("{{classes}}",t.join(" "));this.revokeBtn=u.call(this,i);var n=this.revokeBtn;if(this.options.animateRevokable){var s=e.throttle(function(t){var i=!1,s=window.innerHeight-20;e.hasClass(n,"cc-top")&&t.clientY<20&&(i=!0),e.hasClass(n,"cc-bottom")&&t.clientY>s&&(i=!0),i?e.hasClass(n,"cc-active")||e.addClass(n,"cc-active"):e.hasClass(n,"cc-active")&&e.removeClass(n,"cc-active")},200);this.onMouseMove=s,window.addEventListener("mousemove",s)}}}var b={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(){},onStatusChange:function(){},onRevokeChoice:function(){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"http://cookiesandyou.com",close:"&#x274c;"},elements:{header:'<span class="cc-header">{{header}}</span>&nbsp;',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" target="_blank">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" target="_blank">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}"><!--googleoff: all-->{{children}}<!--googleon: all--></div>',revokeBtn:'<div class="cc-revoke {{classes}}">Cookie Policy</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{dismiss}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{dismiss}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block","static":!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};return n.prototype.initialise=function(t){this.options&&this.destroy(),e.deepExtend(this.options={},b),e.isPlainObject(t)&&e.deepExtend(this.options,t),r.call(this)&&(this.options.enabled=!1),m(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),m(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var i=this.options.window.replace("{{classes}}",l.call(this).join(" ")).replace("{{children}}",c.call(this)),n=this.options.overrideHTML;if("string"==typeof n&&n.length&&(i=n),this.options["static"]){var s=u.call(this,'<div class="cc-grower">'+i+"</div>");s.style.display="",this.element=s.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=u.call(this,i);v.call(this),y.call(this),this.options.autoOpen&&this.autoOpen()},n.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,g(this.options.palette),this.options=null},n.prototype.open=function(){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},n.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},n.prototype.fadeIn=function(){var i=this.element;if(t.hasTransition&&i&&(this.afterTransition&&o.call(this,i),e.hasClass(i,"cc-invisible"))){if(i.style.display="",this.options["static"]){var n=this.element.clientHeight;this.element.parentNode.style.maxHeight=n+"px"}this.openingTimeout=setTimeout(s.bind(this,i),20)}},n.prototype.fadeOut=function(){var i=this.element;t.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),s.bind(this,i)),e.hasClass(i,"cc-invisible")||(this.options["static"]&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=o.bind(this,i),i.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(i,"cc-invisible")))},n.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},n.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},n.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},n.prototype.hasAnswered=function(){return Object.keys(t.status).indexOf(this.getStatus())>=0},n.prototype.hasConsented=function(){var e=this.getStatus();return e==t.status.allow||e==t.status.dismiss},n.prototype.autoOpen=function(){!this.hasAnswered()&&this.options.enabled&&this.open()},n.prototype.setStatus=function(i){var n=this.options.cookie,s=e.getCookie(n.name),o=Object.keys(t.status).indexOf(s)>=0;Object.keys(t.status).indexOf(i)>=0?(e.setCookie(n.name,i,n.expiryDays,n.domain,n.path),this.options.onStatusChange.call(this,i,o)):this.clearStatus()},n.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},n.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},n}(),t.Location=function(){function t(t){e.deepExtend(this.options={},o),e.isPlainObject(t)&&e.deepExtend(this.options,t),this.currentServiceIndex=-1}function i(t,e,i){var n,s=document.createElement("script");s.type="text/"+(t.type||"javascript"),s.src=t.src||t,s.async=!1,s.onreadystatechange=s.onload=function(){var t=s.readyState;clearTimeout(n),e.done||t&&!/loaded|complete/.test(t)||(e.done=!0,e(),s.onreadystatechange=s.onload=null)},document.body.appendChild(s),n=setTimeout(function(){e.done=!0,e(),s.onreadystatechange=s.onload=null},i)}function n(t,e,i,n,s){var o=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(o.open(n?"POST":"GET",t,1),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(s))for(var r=0,a=s.length;r<a;++r){var l=s[r].split(":",2);o.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof e&&(o.onreadystatechange=function(){o.readyState>3&&e(o)}),o.send(n)}function s(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}var o={timeout:5e3,services:["freegeoip","ipinfo","maxmind"],serviceDefinitions:{freegeoip:function(){return{url:"//freegeoip.net/json/?callback={callback}",isScript:!0,callback:function(t,e){try{var i=JSON.parse(e);return i.error?s(i):{code:i.country_code}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var i=JSON.parse(e);return i.error?s(i):{code:i.country}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var i=JSON.parse(e);return"ERROR"==i.statusCode?s({error:i.statusMessage}):{code:i.countryCode}}catch(t){return s({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){return window.geoip2?void geoip2.country(function(e){try{t({code:e.country.iso_code})}catch(e){t(s(e))}},function(e){t(s(e))}):void t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};return t.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!t);return t},t.prototype.getServiceByIdx=function(t){var i=this.options.services[t];if("function"==typeof i){var n=i();return n.name&&e.deepExtend(n,this.options.serviceDefinitions[n.name](n)),n}return"string"==typeof i?this.options.serviceDefinitions[i]():e.isPlainObject(i)?this.options.serviceDefinitions[i.name](i):null},t.prototype.locate=function(t,e){var i=this.getNextService();return i?(this.callbackComplete=t,this.callbackError=e,void this.runService(i,this.runNextServiceOnError.bind(this))):void e(new Error("No services to run"))},t.prototype.setupUrl=function(t){var e=this.getCurrentServiceOpts();return t.url.replace(/\{(.*?)\}/g,function(i,n){if("callback"===n){var s="callback"+Date.now();return window[s]=function(e){t.__JSONP_DATA=JSON.stringify(e)},s}if(n in e.interpolateUrl)return e.interpolateUrl[n]})},t.prototype.runService=function(t,e){var s=this;if(t&&t.url&&t.callback){(t.isScript?i:n)(this.setupUrl(t),function(i){var n=i?i.responseText:"";t.__JSONP_DATA&&(n=t.__JSONP_DATA,delete t.__JSONP_DATA),s.runServiceCallback.call(s,e,t,n)},this.options.timeout,t.data,t.headers)}},t.prototype.runServiceCallback=function(t,e,i){var n=this,s=function(e){o||n.onServiceResult.call(n,t,e)},o=e.callback(s,i);o&&this.onServiceResult.call(this,t,o)},t.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},t.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var i=this.getNextService();i?this.runService(i,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},t.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},t.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},t.prototype.logError=function(t){var e=this.currentServiceIndex,i=this.getServiceByIdx(e);console.error("The service["+e+"] ("+i.url+") responded with the following error",t)},t}(),t.Law=function(){function t(){this.initialise.apply(this,arguments)}var i={regionalLaw:!0,
6
- hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","SI","ES","SE","GB","UK"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};return t.prototype.initialise=function(t){e.deepExtend(this.options={},i),e.isPlainObject(t)&&e.deepExtend(this.options,t)},t.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},t.prototype.applyLaw=function(t,e){var i=this.get(e);return i.hasLaw||(t.enabled=!1),this.options.regionalLaw&&(i.revokable&&(t.revokable=!0),i.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},t}(),t.initialise=function(e,i,n){var s=new t.Law(e.law);i||(i=function(){}),n||(n=function(){}),t.getCountryCode(e,function(n){delete e.law,delete e.location,n.code&&(e=s.applyLaw(e,n.code)),i(new t.Popup(e))},function(i){delete e.law,delete e.location,n(i,new t.Popup(e))})},t.getCountryCode=function(e,i,n){if(e.law&&e.law.countryCode)return void i({code:e.law.countryCode});if(e.location){return void new t.Location(e.location).locate(function(t){i(t||{})},n)}i({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{}),window.addEventListener("load",function(){window.cookieconsent.initialise({palette:{popup:{background:"#000000",text:"#ffdf84"},button:{background:"#19947b",text:"#ffffff"}},position:"bottom-left"})}),function(t,e,i,n){function s(e,i){this.settings=null,this.options=t.extend({},s.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(s.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(s.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}s.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},s.Width={Default:"default",Inner:"inner",Outer:"outer"},s.Type={Event:"event",State:"state"},s.Plugins={},s.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[n]=s?e*i:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,n=this.settings,s=Math.max(2*n.items,4),o=2*Math.ceil(i.length/2),r=n.loop&&i.length?n.rewind?s:Math.max(s,o):0,a="",l="";for(r/=2;r--;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,s=0,o=[];++i<e;)n=o[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,o.push(n+s*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],s.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var e,i,s;e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,s=this.$element.children(i).width(),e.length&&s<=0&&this.preloadAutoWidthImages(e)}this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},s.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,s=null;i?(t.each(i,function(t){t<=e&&t>n&&(n=Number(t))}),s=t.extend({},this.options,i[n]),"function"==typeof s.stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):s=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=n,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},s.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},s.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy(function(t){return this[t]},this._invalidated),s={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(s),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},s.prototype.width=function(t){switch(t=t||s.Width.Default){case s.Width.Inner:case s.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},s.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},s.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},s.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},s.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},s.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),n={x:n[16===n.length?12:4],y:n[16===n.length?13:5]}):(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},s.prototype.onDragMove=function(t){var e=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,o.x=Math.max(Math.min(o.x,e+n),i+n)),this._drag.stage.current=o,this.animate(o.x))},s.prototype.onDragEnd=function(e){var n=this.difference(this._drag.pointer,this.pointer(e)),s=this._drag.stage.current,o=n.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(s.x,0!==n.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},s.prototype.closest=function(e,i){var n=-1,s=30,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy(function(t,a){return"left"===i&&e>a-s&&e<a+s?n=t:"right"===i&&e>a-o-s&&e<a-o+s?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]||a-o)&&(n="left"===i?t+1:t),-1===n},this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},s.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},s.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},s.prototype.current=function(t){if(t===n)return this._current;if(0===this._items.length)return n;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},s.prototype.reset=function(t){(t=this.normalize(t))!==n&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},s.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=n:(t<0||t>=i+s)&&(t=((t-s/2)%i+i)%i+s/2),t},s.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},s.prototype.maximum=function(t){var e,i,n,s=this.settings,o=this._coordinates.length;if(s.loop)o=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){for(e=this._items.length,i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},s.prototype.minimum=function(t){return t?0:this._clones.length/2},s.prototype.items=function(t){return t===n?this._items.slice():(t=this.normalize(t,!0),this._items[t])},s.prototype.mergers=function(t){return t===n?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},s.prototype.clones=function(e){var i=this._clones.length/2,s=i+this._items.length,o=function(t){return t%2==0?s+t/2:i-(t+1)/2};return e===n?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},s.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},s.prototype.coordinates=function(e){var i,s=1,o=e-1;return e===n?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(s=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*s):i=this._coordinates[o]||0,i=Math.ceil(i))},s.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(s>0)-(s<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*o*r),t=i+s,(n=((t-a)%r+r)%r+a)!==t&&n-s<=l&&n-s>0&&(i=n-s,t=n,this.reset(i))):this.settings.rewind?(l+=1,t=(t%l+l)%l):t=Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.$element.is(":visible")&&this.update()},s.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},s.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},s.prototype.onTransitionEnd=function(t){if(t!==n&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},s.prototype.viewport=function(){var n;return this.options.responsiveBaseElement!==e?n=t(this.options.responsiveBaseElement).width():e.innerWidth?n=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?n=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),n},s.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},s.prototype.add=function(e,i){var s=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[s]&&this.reset(this._items[s].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},s.prototype.remove=function(t){(t=this.normalize(t,!0))!==n&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},s.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},s.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize));for(var n in this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},s.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:t<i;case">":return n?t<i:t>i;case">=":return n?t<=i:t>=i;case"<=":return n?t>=i:t<=i}},s.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},s.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},s.prototype.trigger=function(e,i,n){var o={item:{count:this._items.length,index:this.current()}},r=t.camelCase(t.grep(["on",e,n],function(t){return t}).join("-").toLowerCase()),a=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},o,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:s.Type.Event,name:e}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},s.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===n&&(this._states.current[e]=0),this._states.current[e]++},this))},s.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},s.prototype.register=function(e){if(e.type===s.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===s.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,n){return t.inArray(i,this._states.tags[e.name])===n},this)))},s.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},s.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},s.prototype.pointer=function(t){var i={x:null,y:null};return t=t.originalEvent||t||e.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},s.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},s.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=t(this),o=n.data("owl.carousel");o||(o=new s(this,"object"==typeof e&&e),n.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){o.register({type:s.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},o))})),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)})},t.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},i.prototype.destroy=function(){var t,i;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,o=i.center&&-1*s||0,r=(e.property&&e.property.value!==n?e.property.value:this._core.current())+o,a=this._core.clones().length,l=t.proxy(function(t,e){this.load(e)},this);o++<s;)this.load(a/2+this._core.relative(r)),a&&t.each(this._core.clones(this._core.relative(r)),l),r++},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={lazyLoad:!1},s.prototype.load=function(i){var n=this._core.$stage.children().eq(i),s=n&&n.find(".owl-lazy");!s||t.inArray(n.get(0),this._loaded)>-1||(s.each(t.proxy(function(i,n){var s,o=t(n),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):(s=new Image,s.onload=t.proxy(function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),s.src=r)},this)),this._loaded.push(n.get(0)))},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=s}(window.Zepto||window.jQuery,window,document),function(t){var e=function(i){this._core=i,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,n=this._core.$stage.children().toArray().slice(e,i),s=[],o=0;t.each(n,function(e,i){s.push(t(i).height())}),o=Math.max.apply(null,s),this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=function(){return t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube"}(),n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var n,s,o,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),l="src",c="",u=this._core.settings,h=function(t){s='<div class="owl-video-play-icon"></div>',n=u.lazyLoad?'<div class="owl-video-tn '+c+'" '+l+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(n),e.after(s)};if(e.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),a.length)return h(a.attr(l)),a.remove(),!1;"youtube"===i.type?(o="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",h(o)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,h(o)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t.framegrab_url,h(o)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,n=t(e.target),s=n.closest("."+this._core.settings.itemClass),o=this._videos[s.attr("data-video")],r=o.width||"100%",a=o.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),"youtube"===o.type?i='<iframe width="'+r+'" height="'+a+'" src="//www.youtube.com/embed/'+o.id+"?autoplay=1&rel=0&v="+o.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===o.type?i='<iframe src="//player.vimeo.com/video/'+o.id+'?autoplay=1" width="'+r+'" height="'+a+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===o.type&&(i='<iframe frameborder="0"height="'+a+'"width="'+r+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+o.id+'/player?autoplay=true"></iframe>'),t('<div class="owl-video-frame">'+i+"</div>").insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut
7
- ;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&s.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},s.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype.play=function(){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},n.prototype._getNextTimeout=function(n,s){return this._timeout&&e.clearTimeout(this._timeout),e.setTimeout(t.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},this),n||this._core.settings.autoplayTimeout)},n.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},n.prototype.stop=function(){this._core.is("rotating")&&(e.clearTimeout(this._timeout),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},n.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var e,i=this._core.settings;this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t("<div>").addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",t.proxy(function(e){var n=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,i.dotsSpeed)},this));for(e in this._overrides)this._core[e]=t.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,n=this._core.clones().length/2,s=n+this._core.items().length,o=this._core.maximum(!0),r=this._core.settings,a=r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items;if("page"!==r.slideBy&&(r.slideBy=Math.min(r.slideBy,r.items)),r.dots||"page"==r.slideBy)for(this._pages=[],t=n,e=0,i=0;t<s;t++){if(e>=a||0===e){if(this._pages.push({start:Math.min(o,t-n),end:t-n+a-1}),Math.min(o,t-n)===o)break;e=0,++i}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var e,i=this._core.settings,n=this._core.items().length<=i.items,s=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t){return t.start<=e&&t.end>=e},this)).pop()},e.prototype.getPosition=function(e){var i,n,s=this._core.settings;return"page"==s.slideBy?(i=t.inArray(this.current(),this._pages),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,e?i+=s.slideBy:i-=s.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,n){var s;!n&&this._pages.length?(s=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%s+s)%s].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var s=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),s=t.map(this._hashes,function(t,e){return t===n?e:null}).join();if(!s||e.location.hash.slice(1)===s)return;e.location.hash=s}},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[t]&&i.index(this._hashes[t]);s!==n&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};s.Defaults={URLhashListener:!1},s.prototype.destroy=function(){var i,n;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){function s(e,i){var s=!1,o=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+a.join(o+" ")+o).split(" "),function(t,e){if(r[e]!==n)return s=!i||e,!1}),s}function o(t){return s(t,!0)}var r=t("<support>").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c={csstransforms:function(){return!!s("transform")},csstransforms3d:function(){return!!s("perspective")},csstransitions:function(){return!!s("transition")},cssanimations:function(){return!!s("animation")}};c.csstransitions()&&(t.support.transition=new String(o("transition")),t.support.transition.end=l.transition.end[t.support.transition]),c.cssanimations()&&(t.support.animation=new String(o("animation")),t.support.animation.end=l.animation.end[t.support.animation]),c.csstransforms()&&(t.support.transform=new String(o("transform")),t.support.transform3d=c.csstransforms3d())}(window.Zepto||window.jQuery,window,document),$(".owl-carousel").owlCarousel({loop:!0,margin:10,nav:!1,lazyLoad:!0,autoplay:!0,autoplayTimeout:3e3,responsive:{0:{items:1},600:{items:1},1e3:{items:1}}}),function(t,e){var i=e(t,t.document);t.lazySizes=i,"object"==typeof module&&module.exports&&(module.exports=i)}(window,function(t,e){"use strict";if(e.getElementsByClassName){var i,n,s=e.documentElement,o=t.Date,r=t.HTMLPictureElement,a="addEventListener",l="getAttribute",c=t[a],u=t.setTimeout,h=t.requestAnimationFrame||u,p=t.requestIdleCallback,d=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],g={},m=Array.prototype.forEach,v=function(t,e){return g[e]||(g[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),g[e].test(t[l]("class")||"")&&g[e]},y=function(t,e){v(t,e)||t.setAttribute("class",(t[l]("class")||"").trim()+" "+e)},b=function(t,e){var i;(i=v(t,e))&&t.setAttribute("class",(t[l]("class")||"").replace(i," "))},w=function(t,e,i){var n=i?a:"removeEventListener";i&&w(t,e),f.forEach(function(i){t[n](i,e)})},x=function(t,n,s,o,r){var a=e.createEvent("CustomEvent");return s||(s={}),s.instance=i,a.initCustomEvent(n,!o,!r,s),t.dispatchEvent(a),a},C=function(e,i){var s;!r&&(s=t.picturefill||n.pf)?s({reevaluate:!0,elements:[e]}):i&&i.src&&(e.src=i.src)},k=function(t,e){return(getComputedStyle(t,null)||{})[e]},T=function(t,e,i){for(i=i||t.offsetWidth;i<n.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},_=function(){var t,i,n=[],s=[],o=n,r=function(){var e=o;for(o=n.length?s:n,t=!0,i=!1;e.length;)e.shift()();t=!1},a=function(n,s){t&&!s?n.apply(this,arguments):(o.push(n),i||(i=!0,(e.hidden?u:h)(r)))};return a._lsFlush=r,a}(),S=function(t,e){return e?function(){_(t)}:function(){var e=this,i=arguments;_(function(){t.apply(e,i)})}},E=function(t){var e,i=0,n=666,s=n,r=function(){e=!1,i=o.now(),t()},a=p?function(){p(r,{timeout:s}),s!==n&&(s=n)}:S(function(){u(r)},!0);return function(t){var n;(t=!0===t)&&(s=44),e||(e=!0,n=125-(o.now()-i),0>n&&(n=0),t||9>n&&p?a():u(a,n))}},$=function(t){var e,i,n=99,s=function(){e=null,t()},r=function(){var t=o.now()-i;n>t?u(r,n-t):(p||s)(s)};return function(){i=o.now(),e||(e=u(r,n))}},D=function(){var i,r,h,p,f,g,T,D,A,F,j,N,O,I,M,P=/^img$/i,R=/^iframe$/i,z="onscroll"in t&&!/glebot/.test(navigator.userAgent),H=0,B=0,q=0,W=-1,U=function(t){q--,t&&t.target&&w(t.target,U),(!t||0>q||!t.target)&&(q=0)},Q=function(t,i){var n,o=t,r="hidden"==k(e.body,"visibility")||"hidden"!=k(t,"visibility");for(A-=i,N+=i,F-=i,j+=i;r&&(o=o.offsetParent)&&o!=e.body&&o!=s;)(r=(k(o,"opacity")||1)>0)&&"visible"!=k(o,"overflow")&&(n=o.getBoundingClientRect(),r=j>n.left&&F<n.right&&N>n.top-1&&A<n.bottom+1);return r},V=function(){var t,o,a,c,u,p,d,g,m;if((f=n.loadMode)&&8>q&&(t=i.length)){o=0,W++,null==I&&("expand"in n||(n.expand=s.clientHeight>500&&s.clientWidth>500?500:370),O=n.expand,I=O*n.expFactor),I>B&&1>q&&W>2&&f>2&&!e.hidden?(B=I,W=0):B=f>1&&W>1&&6>q?O:H;for(;t>o;o++)if(i[o]&&!i[o]._lazyRace)if(z)if((g=i[o][l]("data-expand"))&&(p=1*g)||(p=B),m!==p&&(T=innerWidth+p*M,D=innerHeight+p,d=-1*p,m=p),a=i[o].getBoundingClientRect(),(N=a.bottom)>=d&&(A=a.top)<=D&&(j=a.right)>=d*M&&(F=a.left)<=T&&(N||j||F||A)&&(n.loadHidden||"hidden"!=k(i[o],"visibility"))&&(h&&3>q&&!g&&(3>f||4>W)||Q(i[o],p))){if(et(i[o]),u=!0,q>9)break}else!u&&h&&!c&&4>q&&4>W&&f>2&&(r[0]||n.preloadAfterLoad)&&(r[0]||!g&&(N||j||F||A||"auto"!=i[o][l](n.sizesAttr)))&&(c=r[0]||i[o]);else et(i[o]);c&&!u&&et(c)}},X=E(V),G=function(t){y(t.target,n.loadedClass),b(t.target,n.loadingClass),w(t.target,Y),x(t.target,"lazyloaded")},J=S(G),Y=function(t){J({target:t.target})},K=function(t,e){try{t.contentWindow.location.replace(e)}catch(i){t.src=e}},Z=function(t){var e,i=t[l](n.srcsetAttr);(e=n.customMedia[t[l]("data-media")||t[l]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)},tt=S(function(t,e,i,s,o){var r,a,c,h,f,g;(f=x(t,"lazybeforeunveil",e)).defaultPrevented||(s&&(i?y(t,n.autosizesClass):t.setAttribute("sizes",s)),a=t[l](n.srcsetAttr),r=t[l](n.srcAttr),o&&(c=t.parentNode,h=c&&d.test(c.nodeName||"")),g=e.firesLoad||"src"in t&&(a||r||h),f={target:t},g&&(w(t,U,!0),clearTimeout(p),p=u(U,2500),y(t,n.loadingClass),w(t,Y,!0)),h&&m.call(c.getElementsByTagName("source"),Z),a?t.setAttribute("srcset",a):r&&!h&&(R.test(t.nodeName)?K(t,r):t.src=r),o&&(a||h)&&C(t,{src:r})),t._lazyRace&&delete t._lazyRace,b(t,n.lazyClass),_(function(){(!g||t.complete&&t.naturalWidth>1)&&(g?U(f):q--,G(f))},!0)}),et=function(t){var e,i=P.test(t.nodeName),s=i&&(t[l](n.sizesAttr)||t[l]("sizes")),o="auto"==s;(!o&&h||!i||!t[l]("src")&&!t.srcset||t.complete||v(t,n.errorClass))&&(e=x(t,"lazyunveilread").detail,o&&L.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,q++,tt(t,e,o,s,i))},it=function(){if(!h){if(o.now()-g<999)return void u(it,999);var t=$(function(){n.loadMode=3,X()});h=!0,n.loadMode=3,X(),c("scroll",function(){3==n.loadMode&&(n.loadMode=2),t()},!0)}};return{_:function(){g=o.now(),i=e.getElementsByClassName(n.lazyClass),r=e.getElementsByClassName(n.lazyClass+" "+n.preloadClass),M=n.hFac,c("scroll",X,!0),c("resize",X,!0),t.MutationObserver?new MutationObserver(X).observe(s,{childList:!0,subtree:!0,attributes:!0}):(s[a]("DOMNodeInserted",X,!0),s[a]("DOMAttrModified",X,!0),setInterval(X,999)),c("hashchange",X,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(t){e[a](t,X,!0)}),/d$|^c/.test(e.readyState)?it():(c("load",it),e[a]("DOMContentLoaded",X),u(it,2e4)),i.length?(V(),_._lsFlush()):X()},checkElems:X,unveil:et}}(),L=function(){var t,i=S(function(t,e,i,n){var s,o,r;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),d.test(e.nodeName||""))for(s=e.getElementsByTagName("source"),o=0,r=s.length;r>o;o++)s[o].setAttribute("sizes",n);i.detail.dataAttr||C(t,i.detail)}),s=function(t,e,n){var s,o=t.parentNode;o&&(n=T(t,o,n),s=x(t,"lazybeforesizes",{width:n,dataAttr:!!e}),s.defaultPrevented||(n=s.detail.width)&&n!==t._lazysizesWidth&&i(t,o,s,n))},o=function(){var e,i=t.length;if(i)for(e=0;i>e;e++)s(t[e])},r=$(o);return{_:function(){t=e.getElementsByClassName(n.autosizesClass),c("resize",r)},checkElems:r,updateElem:s}}(),A=function(){A.i||(A.i=!0,L._(),D._())};return function(){var e,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0};n=t.lazySizesConfig||t.lazysizesConfig||{};for(e in i)e in n||(n[e]=i[e]);t.lazySizesConfig=n,u(function(){n.init&&A()})}(),i={cfg:n,autoSizer:L,loader:D,init:A,uP:C,aC:y,rC:b,hC:v,fire:x,gW:T,rAF:_}}});
@@ -1,11 +0,0 @@
1
- /**
2
- * jQuery Filtrify v0.2
3
- * Beautiful advanced tag filtering with HTML5 and jQuery
4
- * http://luis-almeida.github.com/filtrify
5
- *
6
- * Licensed under the MIT license.
7
- * Copyright 2012 Luís Almeida
8
- * https://github.com/luis-almeida
9
- */
10
-
11
- ;(function($,window,document,undefined){var defaults={noresults:"No results match",hide:true,block:[],close:false,query:undefined,callback:undefined};function Filtrify(containerID,placeholderID,options){this.options=$.extend({},defaults,options);this._container=$("#"+containerID);this._holder=$("#"+placeholderID);this._items=this._container.children();this._matrix=[];this._fields={};this._order=[];this._menu={};this._query={};this._match=[];this._mismatch=[];this._z=9999;this._bind=function(fn,me){return function(){return fn.apply(me,arguments);};};this.init();};Filtrify.prototype.init=function(){this.load();this.set();if(this.options.query!==undefined){this.trigger(this.options.query);};};Filtrify.prototype.load=function(){var attr,i,name,field,tags,data,t;this._items.each(this._bind(function(index,element){attr=element.attributes;data={};for(i=0;i<attr.length;i++){name=attr[i].name;if(name.indexOf("data-")===0&&$.inArray(name,this.options.block)===-1){field=name.replace(/data-/gi,"").replace(/-/gi," ");tags=element.getAttribute(name).split(", ");data[field]=tags;if(this._fields[field]===undefined){this._order.push(field);this._fields[field]={};};for(t=0;t<tags.length;t++){if(tags[t].length){tags[t]=tags[t].replace(/\\/g,"");this._fields[field][tags[t]]=this._fields[field][tags[t]]===undefined?1:this._fields[field][tags[t]]+1;};};};};this._matrix.push(data);},this));};Filtrify.prototype.set=function(){var f=0,field,browser=$.browser;this._menu.list=$("<ul class='ft-menu' />");for(f;f<this._order.length;f++){field=browser.webkit||browser.opera?this._order[f]:this._order[this._order.length-f-1];this._menu[field]={};this.build(field);this.cache(field);this.events(field);this.append(field);this.query(field);};this._holder.html(this._menu.list);};Filtrify.prototype.build=function(f){var html,t,tag,tags=[];html="<li class='ft-field'>"+"<span class='ft-label'>"+f+"</span>"+"<div class='ft-panel ft-hidden'>"+"<ul class='ft-selected' style='display:none;'></ul>"+"<fieldset class='ft-search'><input type='text' placeholder='Search' /></fieldset>"+"<ul class='ft-tags'>";for(tag in this._fields[f]){tags.push(tag);};tags.sort();for(t=0;t<tags.length;t++){tag=tags[t];html+="<li data-count='"+this._fields[f][tag]+"' >"+tag+"</li>";};html+="</ul><div class='ft-mismatch ft-hidden'></div></div></li>";this._menu[f].item=$(html);};Filtrify.prototype.cache=function(f){this._menu[f].label=this._menu[f].item.find("span.ft-label");this._menu[f].panel=this._menu[f].item.find("div.ft-panel");this._menu[f].selected=this._menu[f].item.find("ul.ft-selected");this._menu[f].search=this._menu[f].item.find("fieldset.ft-search");this._menu[f].tags=this._menu[f].item.find("ul.ft-tags");this._menu[f].mismatch=this._menu[f].item.find("div.ft-mismatch");this._menu[f].highlight=$([]);this._menu[f].active=$([]);};Filtrify.prototype.append=function(f){this._menu.list.append(this._menu[f].item);};Filtrify.prototype.query=function(f){this._query[f]=[];};Filtrify.prototype.events=function(f){$(document).on("click",this._bind(function(){this.closePanel(f);},this));this._menu[f].panel.on("click",this._bind(function(event){event.stopPropagation();},this));this._menu[f].panel.on("mouseenter",this._bind(function(){this.bringToFront(f);},this));this._menu[f].label.on("click",this._bind(function(event){this.openPanel(f);this.bringToFront(f);event.stopPropagation();},this));this._menu[f].search.on("keyup","input",this._bind(function(event){if(event.which===38||event.which===40){return false;}else if(event.which===13){if(this._menu[f].highlight.length){this.select(f);this.filter();};}else{this.search(f,event.target.value);};},this));this._menu[f].search.on("keydown","input",this._bind(function(event){if(event.which===40){this.moveHighlight(f,"down");event.preventDefault();}else if(event.which===38){this.moveHighlight(f,"up");event.preventDefault();};},this));this._menu[f].tags.on("mouseenter","li",this._bind(function(event){this.highlight(f,$(event.target));},this));this._menu[f].tags.on("mouseleave","li",this._bind(function(){this.clearHighlight(f);},this));this._menu[f].tags.on("click","li",this._bind(function(){this.select(f);this.filter();},this));this._menu[f].selected.on("click","li",this._bind(function(event){this.unselect(f,$(event.target).text());this.filter();},this));};Filtrify.prototype.bringToFront=function(f){this._z=this._z+1;this._menu[f].panel.css("z-index",this._z);this._menu[f].search.find("input").focus();};Filtrify.prototype.openPanel=function(f){this._menu[f].label.toggleClass("ft-opened");this._menu[f].panel.toggleClass("ft-hidden");this._menu[f].search.find("input").focus();};Filtrify.prototype.closePanel=function(f){this.resetSearch(f);this._menu[f].panel.addClass("ft-hidden");this._menu[f].label.removeClass("ft-opened");};Filtrify.prototype.preventOverflow=function(f){var high_bottom,high_top,maxHeight,visible_bottom,visible_top;maxHeight=parseInt(this._menu[f].tags.css("maxHeight"),10);visible_top=this._menu[f].tags.scrollTop();visible_bottom=maxHeight+visible_top;high_top=this._menu[f].highlight.position().top+this._menu[f].tags.scrollTop();high_bottom=high_top+this._menu[f].highlight.outerHeight();if(high_bottom>=visible_bottom){return this._menu[f].tags.scrollTop((high_bottom-maxHeight)>0?high_bottom-maxHeight:0);}else if(high_top<visible_top){return this._menu[f].tags.scrollTop(high_top);}};Filtrify.prototype.moveHighlight=function(f,direction){if(this._menu[f].highlight.length){var method=direction==="down"?"nextAll":"prevAll",next=this._menu[f].highlight[method](":visible:first");if(next.length){this.clearHighlight(f);this.highlight(f,next);this.preventOverflow(f);};}else{this.highlight(f,this._menu[f].tags.children(":visible:first"));this.preventOverflow(f);};};Filtrify.prototype.highlight=function(f,elem){this._menu[f].highlight=elem;this._menu[f].highlight.addClass("ft-highlight");};Filtrify.prototype.removeHighlight=function(f){this._menu[f].highlight.removeClass("ft-highlight");};Filtrify.prototype.hideHighlight=function(f){this._menu[f].highlight.addClass("ft-hidden");};Filtrify.prototype.resetHighlight=function(f){this._menu[f].highlight=$([]);};Filtrify.prototype.clearHighlight=function(f){this.removeHighlight(f);this.resetHighlight(f);};Filtrify.prototype.showMismatch=function(f,txt){this._menu[f].mismatch.html(this.options.noresults+" \"<b>"+txt+"</b>\"").removeClass("ft-hidden");};Filtrify.prototype.hideMismatch=function(f){this._menu[f].mismatch.addClass("ft-hidden");};Filtrify.prototype.search=function(f,txt){this.clearHighlight(f);this.showResults(f,txt);this.highlight(f,this._menu[f].tags.children(":visible:first"));};Filtrify.prototype.resetSearch=function(f){this._menu[f].search.find("input").val("");this._menu[f].tags.children().not(this._menu[f].active).removeClass("ft-hidden");this.hideMismatch(f);};Filtrify.prototype.showResults=function(f,txt){var results=0;this.hideMismatch(f);this._menu[f].tags.children().not(this._menu[f].active).each(function(){if((this.textContent||this.innerText).toUpperCase().indexOf(txt.toUpperCase())>=0){$(this).removeClass("ft-hidden");results=results+1;}else{$(this).addClass("ft-hidden");};});if(!results){this.showMismatch(f,txt);};};Filtrify.prototype.select=function(f){this.updateQueryTags(f,this._menu[f].highlight.text());this.updateActiveClass(f);this.removeHighlight(f);this.appendToSelected(f);this.addToActive(f);this.hideHighlight(f);this.resetHighlight(f);this.resetSearch(f);if(this.options.close){this.closePanel(f);};};Filtrify.prototype.updateQueryTags=function(f,tag){var index=$.inArray(tag,this._query[f]);if(index===-1){this._query[f].push(tag);}else{this._query[f].splice(index,1);};};Filtrify.prototype.updateActiveClass=function(f){if(this._query[f].length){this._menu[f].label.addClass("ft-active");}else{this._menu[f].label.removeClass("ft-active");};};Filtrify.prototype.appendToSelected=function(f){this._menu[f].selected.append(this._menu[f].highlight.clone());this.slideSelected(f);};Filtrify.prototype.addToActive=function(f){this._menu[f].active=this._menu[f].active.add(this._menu[f].highlight);};Filtrify.prototype.unselect=function(f,tag){this.updateQueryTags(f,tag);this.removeFromSelected(f,tag);this.removeFromActive(f,tag);this.updateActiveClass(f);this.resetSearch(f);};Filtrify.prototype.removeFromSelected=function(f,tag){this._menu[f].selected.children().filter(function(){return(this.textContent||this.innerText)===tag;}).remove();this.slideSelected(f);};Filtrify.prototype.removeFromActive=function(f,tag){this._menu[f].active=this._menu[f].active.filter(function(){return(this.textContent||this.innerText)!==tag;});};Filtrify.prototype.slideSelected=function(f){if(this._menu[f].selected.children().length){this._menu[f].selected.slideDown("fast");}else{this._menu[f].selected.slideUp("fast");};};Filtrify.prototype.filter=function(){var f,r,t,c,m;this.resetCachedMatch();for(r=this._matrix.length-1;r>=0;r--){m=true;for(f in this._query){c=0;for(t=this._query[f].length-1;t>=0;t--){if($.inArray(this._query[f][t],this._matrix[r][f])!==-1){c=c+1;};};if(!this._query[f].length||c>=this._query[f].length){}else{m=false;};};this.updateFields(r,m);this.cacheMatch(r,m);this.showMatch(r,m);};this.rewriteFields();this.callback();};Filtrify.prototype.updateFields=function(row,match){var field,tags,t;for(field in this._fields){if(row===this._matrix.length-1){this._fields[field]={};};tags=this._matrix[row][field];if(match&&tags){for(t=0;t<tags.length;t++){if(tags[t].length){this._fields[field][tags[t]]=this._fields[field][tags[t]]===undefined?1:this._fields[field][tags[t]]+1;};};};};};Filtrify.prototype.rewriteFields=function(){var field;for(field in this._fields){this._menu[field].tags.children().each(this._bind(function(index,element){var tag=(element.textContent||element.innerText),count=this._fields[field][tag]===undefined?0:this._fields[field][tag];element.setAttribute("data-count",count);},this));};};Filtrify.prototype.resetCachedMatch=function(){this._match=[];this._mismatch=[];};Filtrify.prototype.cacheMatch=function(row,match){if(match){this._match.unshift(this._items[row]);}else{this._mismatch.unshift(this._items[row]);};};Filtrify.prototype.showMatch=function(row,match){if(this.options.hide){var hidden=this._items[row].className.indexOf("ft-hidden")!==-1;if(match){if(hidden)this._items[row].className=this._items[row].className.replace(/ft-hidden/g,"");}else{if(!hidden)this._items[row].className=this._items[row].className+" ft-hidden";};};};Filtrify.prototype.callback=function(){if(this.options.callback!==undefined&&$.isFunction(this.options.callback)){this.options.callback(this._query,this._match,this._mismatch);};};Filtrify.prototype.trigger=function(query){var f;for(f in this._fields){this.clearSearch(f);this.updateQueryField(f,query);this.updateActiveClass(f);this.updatePanel(f);this.toggleSelected(f);};this.filter();};Filtrify.prototype.clearSearch=function(f){this.clearHighlight(f);this.resetSearch(f);this.clearSelected(f);};Filtrify.prototype.clearSelected=function(f){this._menu[f].selected.empty();this._menu[f].active=$([]);};Filtrify.prototype.updateQueryField=function(f,query){this._query[f]=query[f]!==undefined?query[f]:[];};Filtrify.prototype.updatePanel=function(f){var t=0,tag,tags=this._menu[f].tags.children().removeClass("ft-hidden");for(t;t<this._query[f].length;t++){tag=tags.filter(this._bind(function(index){return(tags[index].textContent||tags[index].innerText)===this._query[f][t];},this));this._menu[f].selected.append(tag.clone());this._menu[f].active=this._menu[f].active.add(tag);tag.addClass("ft-hidden");};};Filtrify.prototype.toggleSelected=function(f){if(this._menu[f].selected.children().length){this._menu[f].selected.show();}else{this._menu[f].selected.hide();};};Filtrify.prototype.reset=function(){this.trigger({});};$.filtrify=function(containerID,placeholderID,options){return new Filtrify(containerID,placeholderID,options);};})(jQuery,window,document);
@@ -1,519 +0,0 @@
1
- /*!
2
- * Lightbox v2.9.0
3
- * by Lokesh Dhakar
4
- *
5
- * More info:
6
- * http://lokeshdhakar.com/projects/lightbox2/
7
- *
8
- * Copyright 2007, 2015 Lokesh Dhakar
9
- * Released under the MIT license
10
- * https://github.com/lokesh/lightbox2/blob/master/LICENSE
11
- *
12
- * @preserve
13
- */
14
-
15
- // Uses Node, AMD or browser globals to create a module.
16
- (function (root, factory) {
17
- if (typeof define === 'function' && define.amd) {
18
- // AMD. Register as an anonymous module.
19
- define(['jquery'], factory);
20
- } else if (typeof exports === 'object') {
21
- // Node. Does not work with strict CommonJS, but
22
- // only CommonJS-like environments that support module.exports,
23
- // like Node.
24
- module.exports = factory(require('jquery'));
25
- } else {
26
- // Browser globals (root is window)
27
- root.lightbox = factory(root.jQuery);
28
- }
29
- }(this, function ($) {
30
-
31
- function Lightbox(options) {
32
- this.album = [];
33
- this.currentImageIndex = void 0;
34
- this.init();
35
-
36
- // options
37
- this.options = $.extend({}, this.constructor.defaults);
38
- this.option(options);
39
- }
40
-
41
- // Descriptions of all options available on the demo site:
42
- // http://lokeshdhakar.com/projects/lightbox2/index.html#options
43
- Lightbox.defaults = {
44
- albumLabel: 'Image %1 of %2',
45
- alwaysShowNavOnTouchDevices: false,
46
- fadeDuration: 600,
47
- fitImagesInViewport: true,
48
- imageFadeDuration: 600,
49
- // maxWidth: 800,
50
- // maxHeight: 600,
51
- positionFromTop: 50,
52
- resizeDuration: 700,
53
- showImageNumberLabel: true,
54
- wrapAround: false,
55
- disableScrolling: false,
56
- /*
57
- Sanitize Title
58
- If the caption data is trusted, for example you are hardcoding it in, then leave this to false.
59
- This will free you to add html tags, such as links, in the caption.
60
-
61
- If the caption data is user submitted or from some other untrusted source, then set this to true
62
- to prevent xss and other injection attacks.
63
- */
64
- sanitizeTitle: false
65
- };
66
-
67
- Lightbox.prototype.option = function(options) {
68
- $.extend(this.options, options);
69
- };
70
-
71
- Lightbox.prototype.imageCountLabel = function(currentImageNum, totalImages) {
72
- return this.options.albumLabel.replace(/%1/g, currentImageNum).replace(/%2/g, totalImages);
73
- };
74
-
75
- Lightbox.prototype.init = function() {
76
- var self = this;
77
- // Both enable and build methods require the body tag to be in the DOM.
78
- $(document).ready(function() {
79
- self.enable();
80
- self.build();
81
- });
82
- };
83
-
84
- // Loop through anchors and areamaps looking for either data-lightbox attributes or rel attributes
85
- // that contain 'lightbox'. When these are clicked, start lightbox.
86
- Lightbox.prototype.enable = function() {
87
- var self = this;
88
- $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]', function(event) {
89
- self.start($(event.currentTarget));
90
- return false;
91
- });
92
- };
93
-
94
- // Build html for the lightbox and the overlay.
95
- // Attach event handlers to the new DOM elements. click click click
96
- Lightbox.prototype.build = function() {
97
- var self = this;
98
- $('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo($('body'));
99
-
100
- // Cache jQuery objects
101
- this.$lightbox = $('#lightbox');
102
- this.$overlay = $('#lightboxOverlay');
103
- this.$outerContainer = this.$lightbox.find('.lb-outerContainer');
104
- this.$container = this.$lightbox.find('.lb-container');
105
- this.$image = this.$lightbox.find('.lb-image');
106
- this.$nav = this.$lightbox.find('.lb-nav');
107
-
108
- // Store css values for future lookup
109
- this.containerPadding = {
110
- top: parseInt(this.$container.css('padding-top'), 10),
111
- right: parseInt(this.$container.css('padding-right'), 10),
112
- bottom: parseInt(this.$container.css('padding-bottom'), 10),
113
- left: parseInt(this.$container.css('padding-left'), 10)
114
- };
115
-
116
- this.imageBorderWidth = {
117
- top: parseInt(this.$image.css('border-top-width'), 10),
118
- right: parseInt(this.$image.css('border-right-width'), 10),
119
- bottom: parseInt(this.$image.css('border-bottom-width'), 10),
120
- left: parseInt(this.$image.css('border-left-width'), 10)
121
- };
122
-
123
- // Attach event handlers to the newly minted DOM elements
124
- this.$overlay.hide().on('click', function() {
125
- self.end();
126
- return false;
127
- });
128
-
129
- this.$lightbox.hide().on('click', function(event) {
130
- if ($(event.target).attr('id') === 'lightbox') {
131
- self.end();
132
- }
133
- return false;
134
- });
135
-
136
- this.$outerContainer.on('click', function(event) {
137
- if ($(event.target).attr('id') === 'lightbox') {
138
- self.end();
139
- }
140
- return false;
141
- });
142
-
143
- this.$lightbox.find('.lb-prev').on('click', function() {
144
- if (self.currentImageIndex === 0) {
145
- self.changeImage(self.album.length - 1);
146
- } else {
147
- self.changeImage(self.currentImageIndex - 1);
148
- }
149
- return false;
150
- });
151
-
152
- this.$lightbox.find('.lb-next').on('click', function() {
153
- if (self.currentImageIndex === self.album.length - 1) {
154
- self.changeImage(0);
155
- } else {
156
- self.changeImage(self.currentImageIndex + 1);
157
- }
158
- return false;
159
- });
160
-
161
- /*
162
- Show context menu for image on right-click
163
-
164
- There is a div containing the navigation that spans the entire image and lives above of it. If
165
- you right-click, you are right clicking this div and not the image. This prevents users from
166
- saving the image or using other context menu actions with the image.
167
-
168
- To fix this, when we detect the right mouse button is pressed down, but not yet clicked, we
169
- set pointer-events to none on the nav div. This is so that the upcoming right-click event on
170
- the next mouseup will bubble down to the image. Once the right-click/contextmenu event occurs
171
- we set the pointer events back to auto for the nav div so it can capture hover and left-click
172
- events as usual.
173
- */
174
- this.$nav.on('mousedown', function(event) {
175
- if (event.which === 3) {
176
- self.$nav.css('pointer-events', 'none');
177
-
178
- self.$lightbox.one('contextmenu', function() {
179
- setTimeout(function() {
180
- this.$nav.css('pointer-events', 'auto');
181
- }.bind(self), 0);
182
- });
183
- }
184
- });
185
-
186
-
187
- this.$lightbox.find('.lb-loader, .lb-close').on('click', function() {
188
- self.end();
189
- return false;
190
- });
191
- };
192
-
193
- // Show overlay and lightbox. If the image is part of a set, add siblings to album array.
194
- Lightbox.prototype.start = function($link) {
195
- var self = this;
196
- var $window = $(window);
197
-
198
- $window.on('resize', $.proxy(this.sizeOverlay, this));
199
-
200
- $('select, object, embed').css({
201
- visibility: 'hidden'
202
- });
203
-
204
- this.sizeOverlay();
205
-
206
- this.album = [];
207
- var imageNumber = 0;
208
-
209
- function addToAlbum($link) {
210
- self.album.push({
211
- link: $link.attr('href'),
212
- title: $link.attr('data-title') || $link.attr('title')
213
- });
214
- }
215
-
216
- // Support both data-lightbox attribute and rel attribute implementations
217
- var dataLightboxValue = $link.attr('data-lightbox');
218
- var $links;
219
-
220
- if (dataLightboxValue) {
221
- $links = $($link.prop('tagName') + '[data-lightbox="' + dataLightboxValue + '"]');
222
- for (var i = 0; i < $links.length; i = ++i) {
223
- addToAlbum($($links[i]));
224
- if ($links[i] === $link[0]) {
225
- imageNumber = i;
226
- }
227
- }
228
- } else {
229
- if ($link.attr('rel') === 'lightbox') {
230
- // If image is not part of a set
231
- addToAlbum($link);
232
- } else {
233
- // If image is part of a set
234
- $links = $($link.prop('tagName') + '[rel="' + $link.attr('rel') + '"]');
235
- for (var j = 0; j < $links.length; j = ++j) {
236
- addToAlbum($($links[j]));
237
- if ($links[j] === $link[0]) {
238
- imageNumber = j;
239
- }
240
- }
241
- }
242
- }
243
-
244
- // Position Lightbox
245
- var top = $window.scrollTop() + this.options.positionFromTop;
246
- var left = $window.scrollLeft();
247
- this.$lightbox.css({
248
- top: top + 'px',
249
- left: left + 'px'
250
- }).fadeIn(this.options.fadeDuration);
251
-
252
- // Disable scrolling of the page while open
253
- if (this.options.disableScrolling) {
254
- $('body').addClass('lb-disable-scrolling');
255
- }
256
-
257
- this.changeImage(imageNumber);
258
- };
259
-
260
- // Hide most UI elements in preparation for the animated resizing of the lightbox.
261
- Lightbox.prototype.changeImage = function(imageNumber) {
262
- var self = this;
263
-
264
- this.disableKeyboardNav();
265
- var $image = this.$lightbox.find('.lb-image');
266
-
267
- this.$overlay.fadeIn(this.options.fadeDuration);
268
-
269
- $('.lb-loader').fadeIn('slow');
270
- this.$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide();
271
-
272
- this.$outerContainer.addClass('animating');
273
-
274
- // When image to show is preloaded, we send the width and height to sizeContainer()
275
- var preloader = new Image();
276
- preloader.onload = function() {
277
- var $preloader;
278
- var imageHeight;
279
- var imageWidth;
280
- var maxImageHeight;
281
- var maxImageWidth;
282
- var windowHeight;
283
- var windowWidth;
284
-
285
- $image.attr('src', self.album[imageNumber].link);
286
-
287
- $preloader = $(preloader);
288
-
289
- $image.width(preloader.width);
290
- $image.height(preloader.height);
291
-
292
- if (self.options.fitImagesInViewport) {
293
- // Fit image inside the viewport.
294
- // Take into account the border around the image and an additional 10px gutter on each side.
295
-
296
- windowWidth = $(window).width();
297
- windowHeight = $(window).height();
298
- maxImageWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.imageBorderWidth.left - self.imageBorderWidth.right - 20;
299
- maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - 120;
300
-
301
- // Check if image size is larger then maxWidth|maxHeight in settings
302
- if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
303
- maxImageWidth = self.options.maxWidth;
304
- }
305
- if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
306
- maxImageHeight = self.options.maxHeight;
307
- }
308
-
309
- // Is the current image's width or height is greater than the maxImageWidth or maxImageHeight
310
- // option than we need to size down while maintaining the aspect ratio.
311
- if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) {
312
- if ((preloader.width / maxImageWidth) > (preloader.height / maxImageHeight)) {
313
- imageWidth = maxImageWidth;
314
- imageHeight = parseInt(preloader.height / (preloader.width / imageWidth), 10);
315
- $image.width(imageWidth);
316
- $image.height(imageHeight);
317
- } else {
318
- imageHeight = maxImageHeight;
319
- imageWidth = parseInt(preloader.width / (preloader.height / imageHeight), 10);
320
- $image.width(imageWidth);
321
- $image.height(imageHeight);
322
- }
323
- }
324
- }
325
- self.sizeContainer($image.width(), $image.height());
326
- };
327
-
328
- preloader.src = this.album[imageNumber].link;
329
- this.currentImageIndex = imageNumber;
330
- };
331
-
332
- // Stretch overlay to fit the viewport
333
- Lightbox.prototype.sizeOverlay = function() {
334
- this.$overlay
335
- .width($(document).width())
336
- .height($(document).height());
337
- };
338
-
339
- // Animate the size of the lightbox to fit the image we are showing
340
- Lightbox.prototype.sizeContainer = function(imageWidth, imageHeight) {
341
- var self = this;
342
-
343
- var oldWidth = this.$outerContainer.outerWidth();
344
- var oldHeight = this.$outerContainer.outerHeight();
345
- var newWidth = imageWidth + this.containerPadding.left + this.containerPadding.right + this.imageBorderWidth.left + this.imageBorderWidth.right;
346
- var newHeight = imageHeight + this.containerPadding.top + this.containerPadding.bottom + this.imageBorderWidth.top + this.imageBorderWidth.bottom;
347
-
348
- function postResize() {
349
- self.$lightbox.find('.lb-dataContainer').width(newWidth);
350
- self.$lightbox.find('.lb-prevLink').height(newHeight);
351
- self.$lightbox.find('.lb-nextLink').height(newHeight);
352
- self.showImage();
353
- }
354
-
355
- if (oldWidth !== newWidth || oldHeight !== newHeight) {
356
- this.$outerContainer.animate({
357
- width: newWidth,
358
- height: newHeight
359
- }, this.options.resizeDuration, 'swing', function() {
360
- postResize();
361
- });
362
- } else {
363
- postResize();
364
- }
365
- };
366
-
367
- // Display the image and its details and begin preload neighboring images.
368
- Lightbox.prototype.showImage = function() {
369
- this.$lightbox.find('.lb-loader').stop(true).hide();
370
- this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration);
371
-
372
- this.updateNav();
373
- this.updateDetails();
374
- this.preloadNeighboringImages();
375
- this.enableKeyboardNav();
376
- };
377
-
378
- // Display previous and next navigation if appropriate.
379
- Lightbox.prototype.updateNav = function() {
380
- // Check to see if the browser supports touch events. If so, we take the conservative approach
381
- // and assume that mouse hover events are not supported and always show prev/next navigation
382
- // arrows in image sets.
383
- var alwaysShowNav = false;
384
- try {
385
- document.createEvent('TouchEvent');
386
- alwaysShowNav = (this.options.alwaysShowNavOnTouchDevices) ? true : false;
387
- } catch (e) {}
388
-
389
- this.$lightbox.find('.lb-nav').show();
390
-
391
- if (this.album.length > 1) {
392
- if (this.options.wrapAround) {
393
- if (alwaysShowNav) {
394
- this.$lightbox.find('.lb-prev, .lb-next').css('opacity', '1');
395
- }
396
- this.$lightbox.find('.lb-prev, .lb-next').show();
397
- } else {
398
- if (this.currentImageIndex > 0) {
399
- this.$lightbox.find('.lb-prev').show();
400
- if (alwaysShowNav) {
401
- this.$lightbox.find('.lb-prev').css('opacity', '1');
402
- }
403
- }
404
- if (this.currentImageIndex < this.album.length - 1) {
405
- this.$lightbox.find('.lb-next').show();
406
- if (alwaysShowNav) {
407
- this.$lightbox.find('.lb-next').css('opacity', '1');
408
- }
409
- }
410
- }
411
- }
412
- };
413
-
414
- // Display caption, image number, and closing button.
415
- Lightbox.prototype.updateDetails = function() {
416
- var self = this;
417
-
418
- // Enable anchor clicks in the injected caption html.
419
- // Thanks Nate Wright for the fix. @https://github.com/NateWr
420
- if (typeof this.album[this.currentImageIndex].title !== 'undefined' &&
421
- this.album[this.currentImageIndex].title !== '') {
422
- var $caption = this.$lightbox.find('.lb-caption');
423
- if (this.options.sanitizeTitle) {
424
- $caption.text(this.album[this.currentImageIndex].title);
425
- } else {
426
- $caption.html(this.album[this.currentImageIndex].title);
427
- }
428
- $caption.fadeIn('fast')
429
- .find('a').on('click', function(event) {
430
- if ($(this).attr('target') !== undefined) {
431
- window.open($(this).attr('href'), $(this).attr('target'));
432
- } else {
433
- location.href = $(this).attr('href');
434
- }
435
- });
436
- }
437
-
438
- if (this.album.length > 1 && this.options.showImageNumberLabel) {
439
- var labelText = this.imageCountLabel(this.currentImageIndex + 1, this.album.length);
440
- this.$lightbox.find('.lb-number').text(labelText).fadeIn('fast');
441
- } else {
442
- this.$lightbox.find('.lb-number').hide();
443
- }
444
-
445
- this.$outerContainer.removeClass('animating');
446
-
447
- this.$lightbox.find('.lb-dataContainer').fadeIn(this.options.resizeDuration, function() {
448
- return self.sizeOverlay();
449
- });
450
- };
451
-
452
- // Preload previous and next images in set.
453
- Lightbox.prototype.preloadNeighboringImages = function() {
454
- if (this.album.length > this.currentImageIndex + 1) {
455
- var preloadNext = new Image();
456
- preloadNext.src = this.album[this.currentImageIndex + 1].link;
457
- }
458
- if (this.currentImageIndex > 0) {
459
- var preloadPrev = new Image();
460
- preloadPrev.src = this.album[this.currentImageIndex - 1].link;
461
- }
462
- };
463
-
464
- Lightbox.prototype.enableKeyboardNav = function() {
465
- $(document).on('keyup.keyboard', $.proxy(this.keyboardAction, this));
466
- };
467
-
468
- Lightbox.prototype.disableKeyboardNav = function() {
469
- $(document).off('.keyboard');
470
- };
471
-
472
- Lightbox.prototype.keyboardAction = function(event) {
473
- var KEYCODE_ESC = 27;
474
- var KEYCODE_LEFTARROW = 37;
475
- var KEYCODE_RIGHTARROW = 39;
476
-
477
- var keycode = event.keyCode;
478
- var key = String.fromCharCode(keycode).toLowerCase();
479
- if (keycode === KEYCODE_ESC || key.match(/x|o|c/)) {
480
- this.end();
481
- } else if (key === 'p' || keycode === KEYCODE_LEFTARROW) {
482
- if (this.currentImageIndex !== 0) {
483
- this.changeImage(this.currentImageIndex - 1);
484
- } else if (this.options.wrapAround && this.album.length > 1) {
485
- this.changeImage(this.album.length - 1);
486
- }
487
- } else if (key === 'n' || keycode === KEYCODE_RIGHTARROW) {
488
- if (this.currentImageIndex !== this.album.length - 1) {
489
- this.changeImage(this.currentImageIndex + 1);
490
- } else if (this.options.wrapAround && this.album.length > 1) {
491
- this.changeImage(0);
492
- }
493
- }
494
- };
495
-
496
- // Closing time. :-(
497
- Lightbox.prototype.end = function() {
498
- this.disableKeyboardNav();
499
- $(window).off('resize', this.sizeOverlay);
500
- this.$lightbox.fadeOut(this.options.fadeDuration);
501
- this.$overlay.fadeOut(this.options.fadeDuration);
502
- $('select, object, embed').css({
503
- visibility: 'visible'
504
- });
505
- if (this.options.disableScrolling) {
506
- $('body').removeClass('lb-disable-scrolling');
507
- }
508
- };
509
-
510
- return new Lightbox();
511
- }));
512
-
513
-
514
- $(document).ready(function(){
515
- lightbox.option({
516
- 'disableScrolling': true,
517
- 'albumLabel': ''
518
- })
519
- });