Merge branch 'develop/wap' of http://git.dev.yoho.cn/web/yohobuy into develop/wap
Showing
96 changed files
with
78 additions
and
8 deletions
@@ -43,7 +43,7 @@ gulp.task('default', ['postcss-dev', 'postcss-watch', 'spm-doc']); | @@ -43,7 +43,7 @@ gulp.task('default', ['postcss-dev', 'postcss-watch', 'spm-doc']); | ||
43 | function postcssEnvPlugin(env) { | 43 | function postcssEnvPlugin(env) { |
44 | var sprites = { | 44 | var sprites = { |
45 | spritesmith: { | 45 | spritesmith: { |
46 | - padding: 4 | 46 | + padding: 10 |
47 | }, | 47 | }, |
48 | groupBy: function(file) { | 48 | groupBy: function(file) { |
49 | 49 |
static/huodong/2016xinshili/1.0.7/js/home.js
0 → 100644
1 | +webpackJsonp([1,0],[function(e,t,n){"use strict";var r=n(1),i=n(3);n(2),r(function(){i.attach(document.body),r(".close").on("click",function(e){r(".tip").addClass("hide").parent().addClass("hide"),e.preventDefault()}),r(".share").on("click",function(){r(".mask").removeClass("hide")}),r(".mask").on("click",function(){return r(".mask").addClass("hide"),!1}),r.ajax({type:"GET",url:r("#getCouponUrl").val()||"/cuxiao/xinshili/sendCoupon",data:{random:r.now()},dataType:"json",success:function(e){201===e.code&&r(".tip.geted").removeClass("hide").parent().removeClass("hide"),201!==e.code&&200!==e.code&&r(".tip.fail").removeClass("hide").parent().removeClass("hide")}})})},function(e,t,n){var r,i;/*! | ||
2 | + * jQuery JavaScript Library v2.2.1 | ||
3 | + * http://jquery.com/ | ||
4 | + * | ||
5 | + * Includes Sizzle.js | ||
6 | + * http://sizzlejs.com/ | ||
7 | + * | ||
8 | + * Copyright jQuery Foundation and other contributors | ||
9 | + * Released under the MIT license | ||
10 | + * http://jquery.org/license | ||
11 | + * | ||
12 | + * Date: 2016-02-22T19:11Z | ||
13 | + */ | ||
14 | +!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){function s(e){var t=!!e&&"length"in e&&e.length,n=ce.type(e);return"function"===n||ce.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function a(e,t,n){if(ce.isFunction(t))return ce.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ce.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(xe.test(t))return ce.filter(t,e,n);t=ce.filter(t,e)}return ce.grep(e,function(e){return re.call(t,e)>-1!==n})}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var t={};return ce.each(e.match(Ee)||[],function(e,n){t[n]=!0}),t}function l(){Z.removeEventListener("DOMContentLoaded",l),n.removeEventListener("load",l),ce.ready()}function f(){this.expando=ce.expando+f.uid++}function p(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(qe,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:je.test(n)?ce.parseJSON(n):n}catch(i){}Le.set(e,t,n)}else n=void 0;return n}function d(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=a(),c=n&&n[3]||(ce.cssNumber[t]?"":"px"),l=(ce.cssNumber[t]||"px"!==c&&+u)&&Me.exec(ce.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do o=o||".5",l/=o,ce.style(e,t,l+c);while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function h(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&ce.nodeName(e,t)?ce.merge([e],n):n}function g(e,t){for(var n=0,r=e.length;r>n;n++)Ae.set(e[n],"globalEval",!t||Ae.get(t[n],"globalEval"))}function m(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),p=[],d=0,m=e.length;m>d;d++)if(o=e[d],o||0===o)if("object"===ce.type(o))ce.merge(p,o.nodeType?[o]:o);else if(Be.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Re.exec(o)||["",""])[1].toLowerCase(),u=We[a]||We._default,s.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;ce.merge(p,s.childNodes),s=f.firstChild,s.textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&ce.inArray(o,r)>-1)i&&i.push(o);else if(c=ce.contains(o.ownerDocument,o),s=h(f.appendChild(o),"script"),c&&g(s),n)for(l=0;o=s[l++];)Ie.test(o.type||"")&&n.push(o);return f}function v(){return!0}function y(){return!1}function x(){try{return Z.activeElement}catch(e){}}function b(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)b(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=y;else if(!i)return e;return 1===o&&(s=i,i=function(e){return ce().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function w(e,t){return ce.nodeName(e,"table")&&ce.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function T(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function C(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Ae.hasData(e)&&(o=Ae.access(e),s=Ae.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)ce.event.add(t,i,c[i][n])}Le.hasData(e)&&(a=Le.access(e),u=ce.extend({},a),Le.set(t,u))}}function E(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Fe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function S(e,t,n,r){t=te.apply([],t);var i,o,s,a,u,c,l=0,f=e.length,p=f-1,d=t[0],g=ce.isFunction(d);if(g||f>1&&"string"==typeof d&&!ae.checkClone&&Ye.test(d))return e.each(function(i){var o=e.eq(i);g&&(t[0]=d.call(this,i,o.html())),S(o,t,n,r)});if(f&&(i=m(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=ce.map(h(i,"script"),T),a=s.length;f>l;l++)u=i,l!==p&&(u=ce.clone(u,!0,!0),a&&ce.merge(s,h(u,"script"))),n.call(e[l],u,l);if(a)for(c=s[s.length-1].ownerDocument,ce.map(s,C),l=0;a>l;l++)u=s[l],Ie.test(u.type||"")&&!Ae.access(u,"globalEval")&&ce.contains(c,u)&&(u.src?ce._evalUrl&&ce._evalUrl(u.src):ce.globalEval(u.textContent.replace(Qe,"")))}return e}function N(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(h(r)),r.parentNode&&(n&&ce.contains(r.ownerDocument,r)&&g(h(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t){var n=ce(t.createElement(e)).appendTo(t.body),r=ce.css(n[0],"display");return n.detach(),r}function A(e){var t=Z,n=Je[e];return n||(n=D(e,t),"none"!==n&&n||(Ge=(Ge||ce("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Ge[0].contentDocument,t.write(),t.close(),n=D(e,t),Ge.detach()),Je[e]=n),n}function L(e,t,n){var r,i,o,s,a=e.style;return n=n||et(e),s=n?n.getPropertyValue(t)||n[t]:void 0,""!==s&&void 0!==s||ce.contains(e.ownerDocument,e)||(s=ce.style(e,t)),n&&!ae.pixelMarginRight()&&Ze.test(s)&&Ke.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0!==s?s+"":s}function j(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function q(e){if(e in at)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=st.length;n--;)if(e=st[n]+t,e in at)return e}function H(e,t,n){var r=Me.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function M(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=ce.css(e,n+Oe[o],!0,i)),r?("content"===n&&(s-=ce.css(e,"padding"+Oe[o],!0,i)),"margin"!==n&&(s-=ce.css(e,"border"+Oe[o]+"Width",!0,i))):(s+=ce.css(e,"padding"+Oe[o],!0,i),"padding"!==n&&(s+=ce.css(e,"border"+Oe[o]+"Width",!0,i)));return s}function O(e,t,r){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,s=et(e),a="border-box"===ce.css(e,"boxSizing",!1,s);if(Z.msFullscreenElement&&n.top!==n&&e.getClientRects().length&&(o=Math.round(100*e.getBoundingClientRect()[t])),0>=o||null==o){if(o=L(e,t,s),(0>o||null==o)&&(o=e.style[t]),Ze.test(o))return o;i=a&&(ae.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+M(e,t,r||(a?"border":"content"),i,s)+"px"}function P(e,t){for(var n,r,i,o=[],s=0,a=e.length;a>s;s++)r=e[s],r.style&&(o[s]=Ae.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Pe(r)&&(o[s]=Ae.access(r,"olddisplay",A(r.nodeName)))):(i=Pe(r),"none"===n&&i||Ae.set(r,"olddisplay",i?n:ce.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function F(e,t,n,r,i){return new F.prototype.init(e,t,n,r,i)}function R(){return n.setTimeout(function(){ut=void 0}),ut=ce.now()}function I(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=Oe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function W(e,t,n){for(var r,i=(_.tweeners[t]||[]).concat(_.tweeners["*"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,t,e))return r}function B(e,t,n){var r,i,o,s,a,u,c,l,f=this,p={},d=e.style,h=e.nodeType&&Pe(e),g=Ae.get(e,"fxshow");n.queue||(a=ce._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=ce.css(e,"display"),l="none"===c?Ae.get(e,"olddisplay")||A(e.nodeName):c,"inline"===l&&"none"===ce.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],lt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}p[r]=g&&g[r]||ce.style(e,r)}else c=void 0;if(ce.isEmptyObject(p))"inline"===("none"===c?A(e.nodeName):c)&&(d.display=c);else{g?"hidden"in g&&(h=g.hidden):g=Ae.access(e,"fxshow",{}),o&&(g.hidden=!h),h?ce(e).show():f.done(function(){ce(e).hide()}),f.done(function(){var t;Ae.remove(e,"fxshow");for(t in p)ce.style(e,t,p[t])});for(r in p)s=W(h?g[r]:0,r,f),r in g||(g[r]=s.start,h&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function $(e,t){var n,r,i,o,s;for(n in e)if(r=ce.camelCase(n),i=t[r],o=e[n],ce.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),s=ce.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function _(e,t,n){var r,i,o=0,s=_.prefilters.length,a=ce.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=ut||R(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;u>s;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),1>o&&u?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:ce.extend({},t),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||R(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ce.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for($(l,c.opts.specialEasing);s>o;o++)if(r=_.prefilters[o].call(c,e,l,c.opts))return ce.isFunction(r.stop)&&(ce._queueHooks(c.elem,c.opts.queue).stop=ce.proxy(r.stop,r)),r;return ce.map(l,W,c),ce.isFunction(c.opts.start)&&c.opts.start.call(e,c),ce.fx.timer(ce.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function X(e){return e.getAttribute&&e.getAttribute("class")||""}function z(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ee)||[];if(ce.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function V(e,t,n,r){function i(a){var u;return o[a]=!0,ce.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===At;return i(t.dataTypes[0])||!o["*"]&&i("*")}function Y(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}function U(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function Q(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=c[u+" "+o]||c["* "+o],!s)for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[i]:c[i]!==!0&&(o=a[0],l.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(f){return{state:"parsererror",error:s?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function G(e,t,n,r){var i;if(ce.isArray(t))ce.each(t,function(t,i){n||Ht.test(e)?r(e,i):G(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==ce.type(t))r(e,t);else for(i in t)G(e+"["+i+"]",t[i],n,r)}function J(e){return ce.isWindow(e)?e:9===e.nodeType&&e.defaultView}var K=[],Z=n.document,ee=K.slice,te=K.concat,ne=K.push,re=K.indexOf,ie={},oe=ie.toString,se=ie.hasOwnProperty,ae={},ue="2.2.1",ce=function(e,t){return new ce.fn.init(e,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,fe=/^-ms-/,pe=/-([\da-z])/gi,de=function(e,t){return t.toUpperCase()};ce.fn=ce.prototype={jquery:ue,constructor:ce,selector:"",length:0,toArray:function(){return ee.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:ee.call(this)},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return ce.each(this,e)},map:function(e){return this.pushStack(ce.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ne,sort:K.sort,splice:K.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ce.isFunction(s)||(s={}),a===u&&(s=this,a--);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(ce.isPlainObject(r)||(i=ce.isArray(r)))?(i?(i=!1,o=n&&ce.isArray(n)?n:[]):o=n&&ce.isPlainObject(n)?n:{},s[t]=ce.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},ce.extend({expando:"jQuery"+(ue+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ce.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!ce.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){return"object"!==ce.type(e)||e.nodeType||ce.isWindow(e)?!1:!e.constructor||se.call(e.constructor.prototype,"isPrototypeOf")},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[oe.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=ce.trim(e),e&&(1===e.indexOf("use strict")?(t=Z.createElement("script"),t.text=e,Z.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(fe,"ms-").replace(pe,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;n>r&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(le,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):ne.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:re.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,s=e.length,a=!n;s>o;o++)r=!t(e[o],o),r!==a&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,a=[];if(s(e))for(r=e.length;r>o;o++)i=t(e[o],o,n),null!=i&&a.push(i);else for(o in e)i=t(e[o],o,n),null!=i&&a.push(i);return te.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),ce.isFunction(e)?(r=ee.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ee.call(arguments)))},i.guid=e.guid=e.guid||ce.guid++,i):void 0},now:Date.now,support:ae}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=K[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ie["[object "+t+"]"]=t.toLowerCase()});var he=/*! | ||
15 | + * Sizzle CSS Selector Engine v2.2.1 | ||
16 | + * http://sizzlejs.com/ | ||
17 | + * | ||
18 | + * Copyright jQuery Foundation and other contributors | ||
19 | + * Released under the MIT license | ||
20 | + * http://jquery.org/license | ||
21 | + * | ||
22 | + * Date: 2015-10-17 | ||
23 | + */ | ||
24 | +function(e){function t(e,t,n,r){var i,o,s,a,u,c,f,d,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&((t?t.ownerDocument||t:W)!==q&&j(t),t=t||q,M)){if(11!==g&&(c=ve.exec(e)))if(i=c[1]){if(9===g){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(h&&(s=h.getElementById(i))&&R(t,s)&&s.id===i)return n.push(s),n}else{if(c[2])return K.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&w.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!z[e+" "]&&(!O||!O.test(e))){if(1!==g)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,"\\$&"):t.setAttribute("id",a=I),f=E(e),o=f.length,u=pe.test(a)?"#"+a:"[id='"+a+"']";o--;)f[o]=u+" "+p(f[o]);d=f.join(","),h=ye.test(e)&&l(t.parentNode)||t}if(d)try{return K.apply(n,h.querySelectorAll(d)),n}catch(m){}finally{a===I&&t.removeAttribute("id")}}}return N(e.replace(ae,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=q.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,s){var a,u,c,l=[B,o];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(c=t[I]||(t[I]={}),u=c[t.uniqueID]||(c[t.uniqueID]={}),(a=u[r])&&a[0]===B&&a[1]===o)return l[2]=a[2];if(u[r]=l,l[2]=e(t,n,s))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;o>i;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;u>a;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,p=[],d=[],h=s.length,v=r||g(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?v:m(v,p,e,a,u),x=n?o||(r?e:h||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=m(x,d),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[d[l]]=!(y[d[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?ee(r,f):p[l])>-1&&(r[c]=!(s[c]=f))}}else x=m(x===s?x.splice(h,x.length):x),o?o(null,s,x,u):K.apply(s,x)})}function y(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],s=o||T.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return ee(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==D)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];i>a;a++)if(n=T.relative[e[a].type])l=[d(h(l),n)];else{if(n=T.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;i>r&&!T.relative[e[r].type];r++);return v(a>1&&h(l),a>1&&p(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,r>a&&y(e.slice(a,r)),i>r&&y(e=e.slice(r)),i>r&&p(e))}l.push(n)}return h(l)}function x(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,p,d=0,h="0",g=r&&[],v=[],y=D,x=r||o&&T.find.TAG("*",c),b=B+=null==y?1:Math.random()||.1,w=x.length;for(c&&(D=s===q||s||c);h!==w&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===q||(j(l),a=!M);p=e[f++];)if(p(l,s||q,a)){u.push(l);break}c&&(B=b)}i&&((l=!p&&l)&&d--,r&&g.push(l))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];)p(g,v,s,a);if(r){if(d>0)for(;h--;)g[h]||v[h]||(v[h]=G.call(u));v=m(v)}K.apply(u,v),c&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(u)}return c&&(B=b,D=y),g};return i?r(s):s}var b,w,T,C,k,E,S,N,D,A,L,j,q,H,M,O,P,F,R,I="sizzle"+1*new Date,W=e.document,B=0,$=0,_=n(),X=n(),z=n(),V=function(e,t){return e===t&&(L=!0),0},Y=1<<31,U={}.hasOwnProperty,Q=[],G=Q.pop,J=Q.push,K=Q.push,Z=Q.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),ae=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),pe=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){j()};try{K.apply(Q=Z.call(W.childNodes),W.childNodes),Q[W.childNodes.length].nodeType}catch(Ce){K={apply:Q.length?function(e,t){J.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},j=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:W;return r!==q&&9===r.nodeType&&r.documentElement?(q=r,H=q.documentElement,M=!k(q),(n=q.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(q.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(q.getElementsByClassName),w.getById=i(function(e){return H.appendChild(e).id=I,!q.getElementsByName||!q.getElementsByName(I).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&M?t.getElementsByClassName(e):void 0},P=[],O=[],(w.qsa=me.test(q.querySelectorAll))&&(i(function(e){H.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+I+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||O.push(".#.+[+~]")}),i(function(e){var t=q.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=me.test(F=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&i(function(e){w.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),P.push("!=",oe)}),O=O.length&&new RegExp(O.join("|")),P=P.length&&new RegExp(P.join("|")),t=me.test(H.compareDocumentPosition),R=t||me.test(H.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return L=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===q||e.ownerDocument===W&&R(W,e)?-1:t===q||t.ownerDocument===W&&R(W,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===q?-1:t===q?1:i?-1:o?1:A?ee(A,e)-ee(A,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===W?-1:u[r]===W?1:0},q):q},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==q&&j(e),n=n.replace(le,"='$1']"),w.matchesSelector&&M&&!z[n+" "]&&(!P||!P.test(n))&&(!O||!O.test(n)))try{var r=F.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,q,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==q&&j(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==q&&j(e);var n=T.attrHandle[t.toLowerCase()],r=n&&U.call(T.attrHandle,t.toLowerCase())?n(e,t,!M):void 0;return void 0!==r?r:w.attributes||!M?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(L=!w.detectDuplicates,A=!w.sortStable&&e.slice(0),e.sort(V),L){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return A=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,d,h,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(p=m,f=p[I]||(p[I]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[e]||[],d=c[0]===B&&c[1],x=d&&c[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){l[e]=[B,d,x];break}}else if(y&&(p=t,f=p[I]||(p[I]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[e]||[],d=c[0]===B&&c[1],x=d),x===!1)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&(f=p[I]||(p[I]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),l[e]=[B,x]),p!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=ee(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=S(e.replace(ae,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===H},focus:function(e){return e===q.activeElement&&(!q.hasFocus||q.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})T.pseudos[b]=u(b);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=X[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=T.preFilter;a;){r&&!(i=ue.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ce.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ae," ")}),a=a.slice(r.length));for(s in T.filter)!(i=de[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):X(e,u).slice(0)},S=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[I]?r.push(o):i.push(o);o=z(e,x(i,r)),o.selector=e}return o},N=t.select=function(e,t,n,r){var i,o,s,a,u,c="function"==typeof e&&e,f=!r&&E(e=c.selector||e);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&w.getById&&9===t.nodeType&&M&&T.relative[o[1].type]){if(t=(T.find.ID(s.matches[0].replace(be,we),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(s=o[i],!T.relative[a=s.type]);)if((u=T.find[a])&&(r=u(s.matches[0].replace(be,we),ye.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&p(o),!e)return K.apply(n,r),n;break}}return(c||S(e,f))(r,t,!M,n,!t||ye.test(e)&&l(t.parentNode)||t),n},w.sortStable=I.split("").sort(V).join("")===I,w.detectDuplicates=!!L,j(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(q.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);ce.find=he,ce.expr=he.selectors,ce.expr[":"]=ce.expr.pseudos,ce.uniqueSort=ce.unique=he.uniqueSort,ce.text=he.getText,ce.isXMLDoc=he.isXML,ce.contains=he.contains;var ge=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},me=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ve=ce.expr.match.needsContext,ye=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xe=/^.[^:#\[\.,]*$/;ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;n>t;t++)if(ce.contains(i[t],this))return!0}));for(t=0;n>t;t++)ce.find(e,i[t],r);return r=this.pushStack(n>1?ce.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&ve.test(e)?ce(e):e||[],!1).length}});var be,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Te=ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||be,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:we.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Z,!0)),ye.test(r[1])&&ce.isPlainObject(t))for(r in t)ce.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=Z.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Z,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ce.isFunction(e)?void 0!==n.ready?n.ready(e):e(ce):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ce.makeArray(e,this))};Te.prototype=ce.fn,be=ce(Z);var Ce=/^(?:parents|prev(?:Until|All))/,ke={children:!0,contents:!0,next:!0,prev:!0};ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=ve.test(e)||"string"!=typeof e?ce(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?re.call(ce(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ge(e,"parentNode")},parentsUntil:function(e,t,n){return ge(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return ge(e,"nextSibling")},prevAll:function(e){return ge(e,"previousSibling")},nextUntil:function(e,t,n){return ge(e,"nextSibling",n)},prevUntil:function(e,t,n){return ge(e,"previousSibling",n)},siblings:function(e){return me((e.parentNode||{}).firstChild,e)},children:function(e){return me(e.firstChild)},contents:function(e){return e.contentDocument||ce.merge([],e.childNodes)}},function(e,t){ce.fn[e]=function(n,r){var i=ce.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ce.filter(r,i)),this.length>1&&(ke[e]||ce.uniqueSort(i),Ce.test(e)&&i.reverse()),this.pushStack(i)}});var Ee=/\S+/g;ce.Callbacks=function(e){e="string"==typeof e?c(e):ce.extend({},e);var t,n,r,i,o=[],s=[],a=-1,u=function(){for(i=e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)o[a].apply(n[0],n[1])===!1&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function r(t){ce.each(t,function(t,n){ce.isFunction(n)?e.unique&&l.has(n)||o.push(n):n&&n.length&&"string"!==ce.type(n)&&r(n)})}(arguments),n&&!t&&u()),this},remove:function(){return ce.each(arguments,function(e,t){for(var n;(n=ce.inArray(t,o,n))>-1;)o.splice(n,1),a>=n&&a--}),this},has:function(e){return e?ce.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},ce.extend({Deferred:function(e){var t=[["resolve","done",ce.Callbacks("once memory"),"resolved"],["reject","fail",ce.Callbacks("once memory"),"rejected"],["notify","progress",ce.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ce.Deferred(function(n){ce.each(t,function(t,o){var s=ce.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&ce.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ce.extend(e,r):r}},i={};return r.pipe=r.then,ce.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ee.call(arguments),s=o.length,a=1!==s||e&&ce.isFunction(e.promise)?s:0,u=1===a?e:ce.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ee.call(arguments):i,r===t?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&ce.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,t)).done(c(i,r,o)).fail(u.reject):--a;return a||u.resolveWith(r,o),u.promise()}});var Se;ce.fn.ready=function(e){return ce.ready.promise().done(e),this},ce.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ce.readyWait++:ce.ready(!0)},ready:function(e){(e===!0?--ce.readyWait:ce.isReady)||(ce.isReady=!0,e!==!0&&--ce.readyWait>0||(Se.resolveWith(Z,[ce]),ce.fn.triggerHandler&&(ce(Z).triggerHandler("ready"),ce(Z).off("ready"))))}}),ce.ready.promise=function(e){return Se||(Se=ce.Deferred(),"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?n.setTimeout(ce.ready):(Z.addEventListener("DOMContentLoaded",l),n.addEventListener("load",l))),Se.promise(e)},ce.ready.promise();var Ne=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===ce.type(n)){i=!0;for(a in n)Ne(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,ce.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(ce(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},De=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};f.uid=1,f.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!De(e))return{};var t=e[this.expando];return t||(t={},De(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,ce.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{ce.isArray(t)?r=t.concat(t.map(ce.camelCase)):(i=ce.camelCase(t),t in o?r=[t,i]:(r=i,r=r in o?[r]:r.match(Ee)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||ce.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var Ae=new f,Le=new f,je=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qe=/[A-Z]/g;ce.extend({hasData:function(e){return Le.hasData(e)||Ae.hasData(e)},data:function(e,t,n){return Le.access(e,t,n)},removeData:function(e,t){Le.remove(e,t)},_data:function(e,t,n){return Ae.access(e,t,n)},_removeData:function(e,t){Ae.remove(e,t)}}),ce.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Le.get(o),1===o.nodeType&&!Ae.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=ce.camelCase(r.slice(5)),p(o,r,i[r])));Ae.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Le.set(this,e)}):Ne(this,function(t){var n,r;if(o&&void 0===t){if(n=Le.get(o,e)||Le.get(o,e.replace(qe,"-$&").toLowerCase()),void 0!==n)return n;if(r=ce.camelCase(e),n=Le.get(o,r),void 0!==n)return n;if(n=p(o,r,void 0),void 0!==n)return n}else r=ce.camelCase(e),this.each(function(){var n=Le.get(this,r);Le.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&Le.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Le.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=Ae.get(e,t),n&&(!r||ce.isArray(n)?r=Ae.access(e,t,ce.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t),s=function(){ce.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ae.get(e,n)||Ae.access(e,n,{empty:ce.Callbacks("once memory").add(function(){Ae.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ce.queue(this[0],e):void 0===t?this:this.each(function(){var n=ce.queue(this,e,t);ce._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ce.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)n=Ae.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var He=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+He+")([a-z%]*)$","i"),Oe=["Top","Right","Bottom","Left"],Pe=function(e,t){return e=t||e,"none"===ce.css(e,"display")||!ce.contains(e.ownerDocument,e)},Fe=/^(?:checkbox|radio)$/i,Re=/<([\w:-]+)/,Ie=/^$|\/(?:java|ecma)script/i,We={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,"",""]};We.optgroup=We.option,We.tbody=We.tfoot=We.colgroup=We.caption=We.thead,We.th=We.td;var Be=/<|&#?\w+;/;!function(){var e=Z.createDocumentFragment(),t=e.appendChild(Z.createElement("div")),n=Z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ae.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ae.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $e=/^key/,_e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xe=/^([^.]*)(?:\.(.+)|)/;ce.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,p,d,h,g,m=Ae.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=ce.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(t){return"undefined"!=typeof ce&&ce.event.triggered!==t.type?ce.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ee)||[""],c=t.length;c--;)a=Xe.exec(t[c])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},l=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,s)!==!1||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,l):p.push(l),ce.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,p,d,h,g,m=Ae.hasData(e)&&Ae.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Ee)||[""],c=t.length;c--;)if(a=Xe.exec(t[c])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d){for(f=ce.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)l=p[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1), | ||
25 | +l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));s&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||ce.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[c],n,r,!0);ce.isEmptyObject(u)&&Ae.remove(e,"handle events")}},dispatch:function(e){e=ce.event.fix(e);var t,n,r,i,o,s=[],a=ee.call(arguments),u=(Ae.get(this,"events")||{})[e.type]||[],c=ce.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(s=ce.event.handlers.call(this,e,u),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ce(i,this).index(u)>-1:ce.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||Z,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[ce.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=_e.test(i)?this.mouseHooks:$e.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new ce.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=Z),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==x()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===x()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ce.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return ce.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){return this instanceof ce.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?v:y):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||ce.now(),void(this[ce.expando]=!0)):new ce.Event(e,t)},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ce.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||ce.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ce.fn.extend({on:function(e,t,n,r){return b(this,e,t,n,r)},one:function(e,t,n,r){return b(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=y),this.each(function(){ce.event.remove(this,e,n,t)})}});var ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ve=/<script|<style|<link/i,Ye=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^true\/(.*)/,Qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ce.extend({htmlPrefilter:function(e){return e.replace(ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=ce.contains(e.ownerDocument,e);if(!(ae.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(s=h(a),o=h(e),r=0,i=o.length;i>r;r++)E(o[r],s[r]);if(t)if(n)for(o=o||h(e),s=s||h(a),r=0,i=o.length;i>r;r++)k(o[r],s[r]);else k(e,a);return s=h(a,"script"),s.length>0&&g(s,!u&&h(e,"script")),a},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if(De(n)){if(t=n[Ae.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[Ae.expando]=void 0}n[Le.expando]&&(n[Le.expando]=void 0)}}}),ce.fn.extend({domManip:S,detach:function(e){return N(this,e,!0)},remove:function(e){return N(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=w(this,e);t.appendChild(e)}})},prepend:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=w(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(h(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ve.test(e)&&!We[(Re.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(ce.cleanData(h(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return S(this,arguments,function(t){var n=this.parentNode;ce.inArray(this,e)<0&&(ce.cleanData(h(this)),n&&n.replaceChild(t,this))},e)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ce.fn[e]=function(e){for(var n,r=[],i=ce(e),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),ce(i[s])[t](n),ne.apply(r,n.get());return this.pushStack(r)}});var Ge,Je={HTML:"block",BODY:"block"},Ke=/^margin/,Ze=new RegExp("^("+He+")(?!px)[a-z%]+$","i"),et=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},tt=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},nt=Z.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",nt.appendChild(s);var e=n.getComputedStyle(a);t="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,a.style.marginRight="50%",i="4px"===e.marginRight,nt.removeChild(s)}var t,r,i,o,s=Z.createElement("div"),a=Z.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ae.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ce.extend(ae,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==r&&e(),r},pixelMarginRight:function(){return null==r&&e(),i},reliableMarginLeft:function(){return null==r&&e(),o},reliableMarginRight:function(){var e,t=a.appendChild(Z.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",nt.appendChild(s),e=!parseFloat(n.getComputedStyle(t).marginRight),nt.removeChild(s),a.removeChild(t),e}}))}();var rt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"},st=["Webkit","O","Moz","ms"],at=Z.createElement("div").style;ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=L(e,"opacity");return""===n?"1":n}}}},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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=ce.camelCase(t),u=e.style;return t=ce.cssProps[a]||(ce.cssProps[a]=q(a)||a),s=ce.cssHooks[t]||ce.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t]:(o=typeof n,"string"===o&&(i=Me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ce.cssNumber[a]?"":"px")),ae.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,s,a=ce.camelCase(t);return t=ce.cssProps[a]||(ce.cssProps[a]=q(a)||a),s=ce.cssHooks[t]||ce.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=L(e,t,r)),"normal"===i&&t in ot&&(i=ot[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,t){ce.cssHooks[t]={get:function(e,n,r){return n?rt.test(ce.css(e,"display"))&&0===e.offsetWidth?tt(e,it,function(){return O(e,t,r)}):O(e,t,r):void 0},set:function(e,n,r){var i,o=r&&et(e),s=r&&M(e,t,r,"border-box"===ce.css(e,"boxSizing",!1,o),o);return s&&(i=Me.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=ce.css(e,t)),H(e,n,s)}}}),ce.cssHooks.marginLeft=j(ae.reliableMarginLeft,function(e,t){return t?(parseFloat(L(e,"marginLeft"))||e.getBoundingClientRect().left-tt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),ce.cssHooks.marginRight=j(ae.reliableMarginRight,function(e,t){return t?tt(e,{display:"inline-block"},L,[e,"marginRight"]):void 0}),ce.each({margin:"",padding:"",border:"Width"},function(e,t){ce.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Oe[r]+t]=o[r]||o[r-2]||o[0];return i}},Ke.test(e)||(ce.cssHooks[e+t].set=H)}),ce.fn.extend({css:function(e,t){return Ne(this,function(e,t,n){var r,i,o={},s=0;if(ce.isArray(t)){for(r=et(e),i=t.length;i>s;s++)o[t[s]]=ce.css(e,t[s],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,arguments.length>1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Pe(this)?ce(this).show():ce(this).hide()})}}),ce.Tween=F,F.prototype={constructor:F,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=F.propHooks[this.prop];return e&&e.get?e.get(this):F.propHooks._default.get(this)},run:function(e){var t,n=F.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):F.propHooks._default.set(this),this}},F.prototype.init.prototype=F.prototype,F.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ce.cssProps[e.prop]]&&!ce.cssHooks[e.prop]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}},F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=F.prototype.init,ce.fx.step={};var ut,ct,lt=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;ce.Animation=ce.extend(_,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){ce.isFunction(e)?(t=e,e=["*"]):e=e.match(Ee);for(var n,r=0,i=e.length;i>r;r++)n=e[r],_.tweeners[n]=_.tweeners[n]||[],_.tweeners[n].unshift(t)},prefilters:[B],prefilter:function(e,t){t?_.prefilters.unshift(e):_.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||ce.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ce.isFunction(t)&&t};return r.duration=ce.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ce.fx.speeds?ce.fx.speeds[r.duration]:ce.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ce.isFunction(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Pe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ce.isEmptyObject(e),o=ce.speed(t,n,r),s=function(){var t=_(this,ce.extend({},e),o);(i||Ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=ce.timers,s=Ae.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ft.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||ce.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Ae.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ce.timers,s=r?r.length:0;for(n.finish=!0,ce.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;s>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ce.each(["toggle","show","hide"],function(e,t){var n=ce.fn[t];ce.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(I(t,!0),e,r,i)}}),ce.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ce.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(ut=ce.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),ut=void 0},ce.fx.timer=function(e){ce.timers.push(e),e()?ce.fx.start():ce.timers.pop()},ce.fx.interval=13,ce.fx.start=function(){ct||(ct=n.setInterval(ce.fx.tick,ce.fx.interval))},ce.fx.stop=function(){n.clearInterval(ct),ct=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(e,t){return e=ce.fx?ce.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=Z.createElement("input"),t=Z.createElement("select"),n=t.appendChild(Z.createElement("option"));e.type="checkbox",ae.checkOn=""!==e.value,ae.optSelected=n.selected,t.disabled=!0,ae.optDisabled=!n.disabled,e=Z.createElement("input"),e.value="t",e.type="radio",ae.radioValue="t"===e.value}();var pt,dt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return Ne(this,ce.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(t=t.toLowerCase(),i=ce.attrHooks[t]||(ce.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=ce.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!ae.radioValue&&"radio"===t&&ce.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(Ee);if(o&&1===e.nodeType)for(;n=o[i++];)r=ce.propFix[n]||n,ce.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),pt={set:function(e,t,n){return t===!1?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||ce.find.attr;dt[t]=function(e,t,r){var i,o;return r||(o=dt[t],dt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,dt[t]=o),i}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;ce.fn.extend({prop:function(e,t){return Ne(this,ce.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ae.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this});var mt=/[\t\r\n\f]/g;ce.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(ce.isFunction(e))return this.each(function(t){ce(this).addClass(e.call(this,t,X(this)))});if("string"==typeof e&&e)for(t=e.match(Ee)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&(" "+i+" ").replace(mt," ")){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=ce.trim(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(ce.isFunction(e))return this.each(function(t){ce(this).removeClass(e.call(this,t,X(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ee)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&(" "+i+" ").replace(mt," ")){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=ce.trim(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ce.isFunction(e)?this.each(function(n){ce(this).toggleClass(e.call(this,n,X(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=ce(this),o=e.match(Ee)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=X(this),t&&Ae.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Ae.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+X(n)+" ").replace(mt," ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;ce.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ce.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ce(this).val()):e,null==i?i="":"number"==typeof i?i+="":ce.isArray(i)&&(i=ce.map(i,function(e){return null==e?"":e+""})),t=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ce.valHooks[i.type]||ce.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(vt,""):null==n?"":n)}}}),ce.extend({valHooks:{option:{get:function(e){return ce.trim(e.value)}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;a>u;u++)if(n=r[u],(n.selected||u===i)&&(ae.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ce.nodeName(n.parentNode,"optgroup"))){if(t=ce(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=ce.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=ce.inArray(ce.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){return ce.isArray(t)?e.checked=ce.inArray(ce(e).val(),t)>-1:void 0}},ae.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var yt=/^(?:focusinfocus|focusoutblur)$/;ce.extend(ce.event,{trigger:function(e,t,r,i){var o,s,a,u,c,l,f,p=[r||Z],d=se.call(e,"type")?e.type:e,h=se.call(e,"namespace")?e.namespace.split("."):[];if(s=a=r=r||Z,3!==r.nodeType&&8!==r.nodeType&&!yt.test(d+ce.event.triggered)&&(d.indexOf(".")>-1&&(h=d.split("."),d=h.shift(),h.sort()),c=d.indexOf(":")<0&&"on"+d,e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:ce.makeArray(t,[e]),f=ce.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,t)!==!1)){if(!i&&!f.noBubble&&!ce.isWindow(r)){for(u=f.delegateType||d,yt.test(u+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||Z)&&p.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||d,l=(Ae.get(s,"events")||{})[e.type]&&Ae.get(s,"handle"),l&&l.apply(s,t),l=c&&s[c],l&&l.apply&&De(s)&&(e.result=l.apply(s,t),e.result===!1&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),t)!==!1||!De(r)||c&&ce.isFunction(r[d])&&!ce.isWindow(r)&&(a=r[c],a&&(r[c]=null),ce.event.triggered=d,r[d](),ce.event.triggered=void 0,a&&(r[c]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t),r.isDefaultPrevented()&&n.preventDefault()}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ce.event.trigger(e,t,n,!0):void 0}}),ce.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ce.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ce.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ae.focusin="onfocusin"in n,ae.focusin||ce.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ce.event.simulate(t,e.target,ce.event.fix(e))};ce.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Ae.access(r,t);i||r.addEventListener(e,n,!0),Ae.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ae.access(r,t)-1;i?Ae.access(r,t,i):(r.removeEventListener(e,n,!0),Ae.remove(r,t))}}});var xt=n.location,bt=ce.now(),wt=/\?/;ce.parseJSON=function(e){return JSON.parse(e+"")},ce.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ce.error("Invalid XML: "+e),t};var Tt=/#.*$/,Ct=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Et=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,St=/^(?:GET|HEAD)$/,Nt=/^\/\//,Dt={},At={},Lt="*/".concat("*"),jt=Z.createElement("a");jt.href=xt.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:Et.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,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":ce.parseJSON,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Y(Y(e,ce.ajaxSettings),t):Y(ce.ajaxSettings,e)},ajaxPrefilter:z(Dt),ajaxTransport:z(At),ajax:function(e,t){function r(e,t,r,a){var c,f,y,x,w,C=t;2!==b&&(b=2,u&&n.clearTimeout(u),i=void 0,s=a||"",T.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(x=U(p,T,r)),x=Q(p,x,T,c),c?(p.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(ce.lastModified[o]=w),w=T.getResponseHeader("etag"),w&&(ce.etag[o]=w)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=x.state,f=x.data,y=x.error,c=!y)):(y=C,!e&&C||(C="error",0>e&&(e=0))),T.status=e,T.statusText=(t||C)+"",c?g.resolveWith(d,[f,C,T]):g.rejectWith(d,[T,C,y]),T.statusCode(v),v=void 0,l&&h.trigger(c?"ajaxSuccess":"ajaxError",[T,p,c?f:y]),m.fireWith(d,[T,C]),l&&(h.trigger("ajaxComplete",[T,p]),--ce.active||ce.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,s,a,u,c,l,f,p=ce.ajaxSetup({},t),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?ce(d):ce.event,g=ce.Deferred(),m=ce.Callbacks("once memory"),v=p.statusCode||{},y={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=kt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return i&&i.abort(t),r(0,t),this}};if(g.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,p.url=((e||p.url||xt.href)+"").replace(Tt,"").replace(Nt,xt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=ce.trim(p.dataType||"*").toLowerCase().match(Ee)||[""],null==p.crossDomain){c=Z.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=jt.protocol+"//"+jt.host!=c.protocol+"//"+c.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ce.param(p.data,p.traditional)),V(Dt,p,t,T),2===b)return T;l=ce.event&&p.global,l&&0===ce.active++&&ce.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!St.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(wt.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Ct.test(o)?o.replace(Ct,"$1_="+bt++):o+(wt.test(o)?"&":"?")+"_="+bt++)),p.ifModified&&(ce.lastModified[o]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[o]),ce.etag[o]&&T.setRequestHeader("If-None-Match",ce.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||t.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Lt+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)T.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(d,T,p)===!1||2===b))return T.abort();w="abort";for(f in{success:1,error:1,complete:1})T[f](p[f]);if(i=V(At,p,t,T)){if(T.readyState=1,l&&h.trigger("ajaxSend",[T,p]),2===b)return T;p.async&&p.timeout>0&&(u=n.setTimeout(function(){T.abort("timeout")},p.timeout));try{b=1,i.send(y,r)}catch(C){if(!(2>b))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,t){ce[t]=function(e,n,r,i){return ce.isFunction(n)&&(i=i||r,r=n,n=void 0),ce.ajax(ce.extend({url:e,type:t,dataType:i,data:n,success:r},ce.isPlainObject(e)&&e))}}),ce._evalUrl=function(e){return ce.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ce.fn.extend({wrapAll:function(e){var t;return ce.isFunction(e)?this.each(function(t){ce(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return ce.isFunction(e)?this.each(function(t){ce(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ce(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ce.isFunction(e);return this.each(function(n){ce(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ce.nodeName(this,"body")||ce(this).replaceWith(this.childNodes)}).end()}}),ce.expr.filters.hidden=function(e){return!ce.expr.filters.visible(e)},ce.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var qt=/%20/g,Ht=/\[\]$/,Mt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;ce.param=function(e,t){var n,r=[],i=function(e,t){t=ce.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ce.ajaxSettings&&ce.ajaxSettings.traditional),ce.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)G(n,e[n],t,i);return r.join("&").replace(qt,"+")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Pt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!Fe.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:ce.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}}),ce.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ft={0:200,1223:204},Rt=ce.ajaxSettings.xhr();ae.cors=!!Rt&&"withCredentials"in Rt,ae.ajax=Rt=!!Rt,ce.ajaxTransport(function(e){var t,r;return ae.cors||Rt&&!e.crossDomain?{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null, | ||
26 | +"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ft[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),r=a.onerror=t("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}:void 0}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ce("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),Z.head.appendChild(t[0])},abort:function(){n&&n()}}}});var It=[],Wt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=It.pop()||ce.expando+"_"+bt++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,s,a=e.jsonp!==!1&&(Wt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=ce.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Wt,"$1"+i):e.jsonp!==!1&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||ce.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){s=arguments},r.always(function(){void 0===o?ce(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,It.push(i)),s&&ce.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),ae.createHTMLDocument=function(){var e=Z.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ce.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||(ae.createHTMLDocument?Z.implementation.createHTMLDocument(""):Z);var r=ye.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=m([e],t,i),i&&i.length&&ce(i).remove(),ce.merge([],r.childNodes))};var Bt=ce.fn.load;ce.fn.load=function(e,t,n){if("string"!=typeof e&&Bt)return Bt.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=ce.trim(e.slice(a)),e=e.slice(0,a)),ce.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(s,o||[e.responseText,t,e])})}),this},ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.expr.filters.animated=function(e){return ce.grep(ce.timers,function(t){return e===t.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=ce.css(e,"position"),f=ce(e),p={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),ce.isFunction(t)&&(t=t.call(e,n,ce.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+i),"using"in t?t.using.call(e,p):f.css(p)}},ce.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ce.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return t=o.documentElement,ce.contains(t,r)?(i=r.getBoundingClientRect(),n=J(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ce.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ce.nodeName(e[0],"html")||(r=e.offset()),r.top+=ce.css(e[0],"borderTopWidth",!0),r.left+=ce.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-ce.css(n,"marginTop",!0),left:t.left-r.left-ce.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ce.css(e,"position");)e=e.offsetParent;return e||nt})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ce.fn[e]=function(r){return Ne(this,function(e,r,i){var o=J(e);return void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),ce.each(["top","left"],function(e,t){ce.cssHooks[t]=j(ae.pixelPosition,function(e,n){return n?(n=L(e,t),Ze.test(n)?ce(e).position()[t]+"px":n):void 0})}),ce.each({Height:"height",Width:"width"},function(e,t){ce.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ce.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return Ne(this,function(t,n,r){var i;return ce.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ce.css(t,n,s):ce.style(t,n,r,s)},t,o?r:void 0,o,null)}})}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),ce.fn.andSelf=ce.fn.addBack,r=[],i=function(){return ce}.apply(t,r),!(void 0!==i&&(e.exports=i));var $t=n.jQuery,_t=n.$;return ce.noConflict=function(e){return n.$===ce&&(n.$=_t),e&&n.jQuery===ce&&(n.jQuery=$t),ce},o||(n.jQuery=n.$=ce),ce})},function(e,t,n){"use strict";var r=n(1),i="http://www.yohoshow.com/api/wechat/getSignPackage",o=r("#shareTitle").val(),s=r("#shareImg").val(),a=r("#shareDesc").val(),u=r("#shareLink").val(),c=window.wx;"undefined"!=typeof c&&(r.getJSON(i+"?pageurl="+encodeURIComponent(location.href.split("#")[0])+"&callback=?",function(e){var t,n,r,i;void 0!==e&&""!==e&&(t=e.appId.toString(),n=e.timestamp,r=e.nonceStr.toString(),i=e.signature.toString(),c.config({debug:!1,appId:t,timestamp:n,nonceStr:r,signature:i,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}))}),c.ready(function(){var e={title:o,desc:a,imgUrl:s,link:u,success:function(){r(".mask").addClass("hide")},cancel:function(){r(".mask").addClass("hide")}};c.onMenuShareAppMessage(e),c.onMenuShareTimeline(e),c.onMenuShareQQ(e),c.onMenuShareWeibo(e)}))},function(e,t,n){var r;!function(){"use strict";/** | ||
27 | + * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. | ||
28 | + * | ||
29 | + * @codingstandard ftlabs-jsv2 | ||
30 | + * @copyright The Financial Times Limited [All Rights Reserved] | ||
31 | + * @license MIT License (see LICENSE.txt) | ||
32 | + */ | ||
33 | +function i(e,t){function n(e,t){return function(){return e.apply(t,arguments)}}var r;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!i.notNeeded(e)){for(var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,u=0,c=o.length;c>u;u++)a[o[u]]=n(a[o[u]],a);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,r){var i=Node.prototype.removeEventListener;"click"===t?i.call(e,t,n.hijacked||n,r):i.call(e,t,n,r)},e.addEventListener=function(t,n,r){var i=Node.prototype.addEventListener;"click"===t?i.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),r):i.call(e,t,n,r)}),"function"==typeof e.onclick&&(r=e.onclick,e.addEventListener("click",function(e){r(e)},!1),e.onclick=null)}}var o=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!o,a=/iP(ad|hone|od)/.test(navigator.userAgent)&&!o,u=a&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=a&&/OS [6-7]_\d/.test(navigator.userAgent),l=navigator.userAgent.indexOf("BB10")>0;i.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(a&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},i.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},i.prototype.sendClick=function(e,t){var n,r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),r=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},i.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},i.prototype.focus=function(e){var t;a&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},i.prototype.updateScrollParent=function(e){var t,n;if(t=e.fastClickScrollParent,!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},i.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},i.prototype.onTouchStart=function(e){var t,n,r;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],a){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!u){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},i.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},i.prototype.onTouchMove=function(e){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},i.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},i.prototype.onTouchEnd=function(e){var t,n,r,i,o,l=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(o=e.changedTouches[0],l=document.elementFromPoint(o.pageX-window.pageXOffset,o.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),r=l.tagName.toLowerCase(),"label"===r){if(t=this.findControl(l)){if(this.focus(l),s)return!1;l=t}}else if(this.needsFocus(l))return e.timeStamp-n>100||a&&window.top!==window&&"input"===r?(this.targetElement=null,!1):(this.focus(l),this.sendClick(l,e),a&&"select"===r||(this.targetElement=null,e.preventDefault()),!1);return a&&!u&&(i=l.fastClickScrollParent,i&&i.fastClickLastScrollTop!==i.scrollTop)?!0:(this.needsClick(l)||(e.preventDefault(),this.sendClick(l,e)),!1)},i.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},i.prototype.onMouse=function(e){return this.targetElement?e.forwardedTouchEvent?!0:e.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1):!0:!0},i.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail?!0:(t=this.onMouse(e),t||(this.targetElement=null),t)},i.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},i.notNeeded=function(e){var t,n,r,i;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(l&&(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),r[1]>=10&&r[2]>=3&&(t=document.querySelector("meta[name=viewport]")))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction?!0:(i=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],i>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===e.style.touchAction||"manipulation"===e.style.touchAction)},i.attach=function(e,t){return new i(e,t)},r=function(){return i}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()}]); |
static/huodong/2016xinshili/1.0.7/js/libs.js
0 → 100644
1 | +!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(a,p){for(var l,s,c=0,i=[];c<a.length;c++)s=a[c],o[s]&&i.push.apply(i,o[s]),o[s]=0;for(l in p)e[l]=p[l];for(n&&n(a,p);i.length;)i.shift().call(null,t);return p[0]?(r[0]=0,t(0)):void 0};var r={},o={0:0};t.e=function(e,n){if(0===o[e])return n.call(null,t);if(void 0!==o[e])o[e].push(n);else{o[e]=[n];var r=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.src=t.p+""+e+"."+({1:"home"}[e]||e)+".js",r.appendChild(a)}},t.m=e,t.c=r,t.p="/1.0.7/js"}([]); |
1 | +{"version":3,"sources":["_common.css","style.css"],"names":[],"mappings":"AAAA,iBAGI,sBAAuB,AACvB,SAAU,AACV,SAAW,CACd,AAED,UAEI,0CAA2C,AAC3C,iBAAmB,CACtB,AAED,KACI,gBAAgB,AAChB,+BAAoC,AACpC,eAAiB,CACpB,AAED,aAEI,YAAa,AACb,YAAc,CACjB,AAED,EACI,oBAAsB,CACzB,AAED,MACI,YAAc,CACjB,AAED,WACI,WAAY,AACZ,gBAAiB,AACjB,iBAAkB,AAClB,iBAAmB,CACtB,ACrCD,QACI,WAAY,AACZ,YAAc,AACd,+CAAsC,AACtC,oBAAsB,CACzB,AAED,QACI,cAAe,AACf,kBAAiB,AACjB,WAAY,AACZ,eAAc,AACd,+CAAqC,AACrC,oBAAsB,CACzB,AAED,OACI,mBAAkB,AAClB,YAAa,AACb,YAAa,AACb,kBAAgB,AAChB,iBAAkB,AAClB,WAAY,AACZ,mBAAoB,AACpB,iBAAmB,CAStB,AAPG,aACI,WAAY,AACZ,cAAe,AACf,WAAY,AACZ,cAAa,AACb,kBAAoB,CACvB,AAGL,OACI,qBAAsB,AACtB,cAAY,AACZ,aAAa,AACb,+CAAoC,AACpC,oBAAsB,CACzB,AAED,QACI,cAAe,AACf,mBAAkB,AAClB,YAAa,AACb,YAAc,AACd,eAAiB,CAMpB,AAJG,YACI,WAAY,AACZ,WAAa,CAChB,AAGL,UACI,mBAAkB,AAClB,gBAAgB,AAChB,oBAAkB,AAClB,iBAAmB,CAuBtB,AArBG,kBAEI,UAAa,CAIhB,AAED,iCAPI,qBAAsB,AAEtB,eAAa,AACb,WAAY,AACZ,eAAiB,CAUpB,AAPD,eAEI,kBAAkB,AAClB,YAAa,CAIhB,AAED,iBACI,eAAa,AACb,yBAA2B,CAC9B,AAGL,QACI,WAAY,AACZ,eAAc,AACd,6DAAoD,AACpD,sBAAuB,AACvB,gCAA4B,CAC/B,AAED,KACI,eAAgB,AAChB,SAAU,AACV,QAAS,AACT,cAAa,AACb,gBAAiB,AACjB,kBAAmB,AACnB,iBAAkB,AAClB,uCAAiC,AAAjC,8BAAiC,CAoCpC,AA1BG,YACI,kBAAkB,AAClB,eAAgB,AAChB,eAAkB,CACrB,AAED,gBACI,eAAgB,CACnB,AAED,WACI,gBAAgB,AAChB,UAAY,CACf,AAED,aACI,cAAe,AACf,mBAAkB,AAClB,cAAa,AACb,cAAa,AACb,iBAAgB,AAChB,mBAAkB,AAClB,kBAAmB,AACnB,WAAY,AACZ,eAAiB,CACpB,AAjCD,YACI,WAAY,AACZ,cAAe,AACf,WAAY,AACZ,eAAa,AACb,eAAiB,CACpB,AAwCL,gBATI,eAAgB,AAChB,WAAY,AACZ,YAAa,AACb,OAAQ,AACR,MAAO,AACP,0BAA4B,AAC5B,SAAW,CAuCd,AA3BG,mBACI,YAAa,AACb,kBAAiB,AACjB,oBAAmB,AACnB,cAAa,AACb,gBAAa,AACb,8DAAiE,AACjE,iCAA2B,CAC9B,AAED,aACI,YAAa,AACb,kBAAiB,AACjB,oBAAmB,AACnB,cAAa,AACb,eAAc,AACd,8DAA4D,AAC5D,8BAA6B,CAChC,AAED,QACI,WAAY,AACZ,iBAAgB,AAChB,gBAAiB,AACjB,kBAAmB,AACnB,UAAY,CACf","file":"style.css","sourcesContent":["*,\n*:before,\n*:after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nhtml,\nbody {\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n overflow-x: hidden;\n}\n\nbody {\n font-size: 12px;\n font-family: Helvetica, Arial, \"黑体\";\n background: #fff;/*f0eff1*/\n}\n\ninput,\nbutton {\n border: none;\n outline: none;\n}\n\na {\n text-decoration: none;\n}\n\n.hide {\n display: none;\n}\n\n.main-wrap {\n width: 100%;\n max-width: 640px;\n margin-left: auto;\n margin-right: auto;\n}\n","@import \"_common.css\";\n\n.header {\n width: 100%;\n height: 320px;\n background: url(\"../img/wuyifan.png\");\n background-size: 100%;\n}\n\n.coupon {\n display: block;\n margin-top: -8px;\n width: 100%;\n height: 420px;\n background: url(\"../img/coupon.jpg\");\n background-size: 100%;\n}\n\n.share {\n margin: 30px auto;\n width: 560px;\n height: 80px;\n font-size: 29px;\n line-height: 80px;\n color: #fff;\n background: #e0031e;\n text-align: center;\n\n &:after {\n content: '';\n display: block;\n width: 100%;\n height: 10px;\n background: #c61127;\n }\n}\n\n.arrow {\n display: inline-block;\n width: 11px;\n height: 20px;\n background: url(\"../img/arrow.png\");\n background-size: 100%;\n}\n\n.banner {\n display: block;\n margin: 30px auto;\n width: 560px;\n height: 240px;\n background: #fff;\n\n img {\n width: 100%;\n height: 100%;\n }\n}\n\n.download {\n margin: 30px auto;\n font-size: 24px;\n line-height: 70px;\n text-align: center;\n\n .weixin {\n display: inline-block;\n width: 240px;\n height: 70px;\n color: #fff;\n background: #000;\n }\n\n .app {\n display: inline-block;\n margin-left: 20px;\n width: 300px;\n height: 70px;\n color: #fff;\n background: #000;\n }\n\n .arrow {\n height: 11px;\n background-size: 100% 100%;\n }\n}\n\n.footer {\n width: 100%;\n height: 110px;\n background: url(\"../img/yoho.png\") center no-repeat;\n background-color: #000;\n background-size: 550px 33px;\n}\n\n.tip {\n position: fixed;\n left: 50%;\n top: 50%;\n width: 540px;\n background: #fff;\n text-align: center;\n line-height: 1.25;\n transform: translate(-50%, -50%);\n\n &:before {\n content: '';\n display: block;\n width: 100%;\n height: 54px;\n background: #000;\n }\n\n .title {\n margin: 20px auto;\n font-size: 40px;\n font-weight: bold;\n }\n\n .sub-title {\n font-size: 32px;\n }\n\n .desc {\n font-size: 24px;\n color: #444;\n }\n\n .button {\n display: block;\n margin: 30px auto;\n width: 270px;\n height: 56px;\n font-size: 26px;\n line-height: 56px;\n text-align: center;\n color: #fff;\n background: #000;\n }\n}\n\n.tip-wrap {\n position: fixed;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n background: rgba(0,0,0,0.6);\n z-index: 2;\n}\n\n.mask {\n position: fixed;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n background: rgba(0,0,0,0.6);\n z-index: 2;\n\n .pengyouquan {\n float: right;\n margin-top: 30px;\n margin-right: 30px;\n width: 580px;\n height: 87px;\n background: url(\"../img/pengyouquan.png\") right center no-repeat;\n background-size: 87px 87px;\n }\n\n .arrow {\n float: right;\n margin-top: 30px;\n margin-right: 60px;\n width: 580px;\n height: 246px;\n background: url(\"../img/arrow2.png\") right center no-repeat;\n background-size: 132px 246px;\n }\n\n p {\n width: 100%;\n font-size: 44px;\n line-height: 1.5;\n text-align: center;\n color: #fff;\n }\n}\n"],"sourceRoot":"/source/"} |
88.3 KB
59.3 KB
3.82 KB
306 Bytes
7.33 KB
2.4 KB
61 KB
static/huodong/2016yuanxiao/1.1.9/js/home.js
0 → 100644
1 | +webpackJsonp([5],[function(c,n,s){"use strict";s(1);s(2)}]); |
static/huodong/2016yuanxiao/1.1.9/js/info.js
0 → 100644
1 | +webpackJsonp([1],[function(e,t,a){(function(e){"use strict";var t=a(1),i=t(".gender"),n=t("#gender"),o=t(".mask"),s=t("form"),r=t(".birthday-div span");a(2),e.jQuery=t,e.$=t,a(4),a(5),t(function(){var e=t(".birthday-picker");n.val(i.find(".checked").data("gender")),i.on("click",".icon",function(){i.find(".check").removeClass("checked"),t(this).find(".check").addClass("checked"),n.val(i.find(".checked").data("gender"))}),o.on("click",".close",function(){o.addClass("hide")}),t(".submit").on("click",function(){return s.find('[name="nick"]').val()&&s.find('[name="birthday"]').val()?void s.submit():void o.removeClass("hide")}),t(".birthday-input").on("change",function(){r.html(t(this).val())}),e.AnyPicker({mode:"datetime",theme:"iOS",selectedDate:new Date(e.data("number")),dateTimeFormat:"yyyy年MM月dd日",lang:"zh-cn",minValue:new Date("1900-01-01"),maxValue:new Date("2015-12-31")})})}).call(t,function(){return this}())},,,,function(e,t,a){var i,n,o;!function(){"use strict";function s(e,t){var a=this;a.elem=e;var i=void 0!==t.lang||null!==t.lang?t.lang:$.CalenStyle.defaults.lang,n=$.extend(!0,{},$.AnyPicker.defaults.i18n,t.i18n,$.AnyPicker.i18n[i]),o=$.extend(!0,{},$.AnyPicker.defaults);n={i18n:n},o.i18n={},t.i18n={},a.setting=$.extend({},o,t,n),a.tmp=$.extend({},$.AnyPicker.tempDefaults),a.tmp.overlayClass="ap-overlay-"+a.setting.timestamp,a.tmp.overlaySelector="."+a.tmp.overlayClass,a.tmp.sOrientation=a._getDeviceOrientation(),$.CF.isValid(t.headerTitle)&&(a.tmp.headerTitleDefined=!0),$.CF.compareStrings(a.setting.theme,"Android")?($.CF.isValid(t.rowHeight)||(a.setting.rowHeight=50),$.CF.isValid(t.visibleRows)||(a.setting.visibleRows=3)):$.CF.compareStrings(a.setting.theme,"iOS")?($.CF.isValid(t.rowHeight)||(a.setting.rowHeight=36),$.CF.isValid(t.visibleRows)||(a.setting.visibleRows=5),$.CF.isValid(t.viewSections)||(a.setting.viewSections={header:["cancelButton","headerTitle","setButton"],contentTop:[],contentBottom:[],footer:[]}),$.AnyPicker.extra.bIsiPad&&(a.tmp.bIsiPad=!0),a.tmp.bIsiPad&&$.CF.compareStrings(a.setting.layout,"popup")&&(a.setting.layout="popover")):$.CF.compareStrings(a.setting.theme,"Windows")&&(a.setting.layout="popup",a.setting.visibleRows=5,a.setting.rowHeight=100,$.CF.isValid(t.viewSections)||(a.setting.viewSections={header:["headerTitle"],contentTop:[],contentBottom:[],footer:["setButton","cancelButton"]}),$.CF.isValid(t.setButton)&&(a.tmp.bModified.set=!0),$.CF.isValid(t.cancelButton)&&(a.tmp.bModified.cancel=!0),$.CF.isValid(t.nowButton)&&(a.tmp.bModified.now=!0),$.CF.isValid(t.clearButton)&&(a.tmp.bModified.clear=!0)),a.tmp.iExt=Math.floor(a.setting.visibleRows/2),a.tmp.sDir=a.setting.rtl?"rtl":"ltr",$.AnyPicker.extra.dToday=a._getCurrentDate(),null===a.tmp.selectedDate&&(a.tmp.selectedDate=$.AnyPicker.extra.dToday),0===a.setting.maxYear&&(a.setting.maxYear=$.AnyPicker.extra.dToday.getFullYear()),$.CF.isValid(a.setting.components)&&0===a.tmp.numOfComp&&(a.tmp.numOfComp=a.setting.components.length),$.AnyPicker.extra.sStartEv=$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bHasIE10Pointer?"MSPointerDown":"pointerdown":$.AnyPicker.extra.bIsTouchDevice?"touchstart":"mousedown touchstart",$.AnyPicker.extra.sMoveEv=$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bHasIE10Pointer?"MSPointerMove":"pointermove":$.AnyPicker.extra.bIsTouchDevice?"touchmove":"mousemove touchmove",$.AnyPicker.extra.sEndEv=$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bHasIE10Pointer?"MSPointerUp":"pointerup":$.AnyPicker.extra.bIsTouchDevice?"touchend":"mouseup touchend",$.AnyPicker.extra.sLeaveEv=$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bHasIE10Pointer?"MSPointerLeave":"pointerleave":$.AnyPicker.extra.bIsTouchDevice?null:"mouseleave",$.AnyPicker.extra.sCancelEv=$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bHasIE10Pointer?"MSPointerCancel":"pointercancel":null,$.AnyPicker.extra.sOutEv=$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bHasIE10Pointer?"MSPointerOut":"pointerout":null}$.CF={setPropertiesStyle:function(e,t){var a=window.getComputedStyle(document.documentElement,"");for(var i in t)if(void 0!==a[t[i]]){var n="";return-1!==t[i].search("Webkit")?n="-webkit-":-1!==t[i].search("Moz")?n="-moz-":-1!==t[i].search("O")?n="-o-":-1!==t[i].search("ms")&&(n="-ms-"),n+e}},testProperties:function(e,t,a){var i=window.getComputedStyle(document.documentElement,"");for(var n in t)if(void 0!==i[t[n]])return a?t[n]:!0;return a?"":!1},compareDataType:function(e,t){return typeof e===t.toLocaleLowerCase()?!0:!1},compareStrings:function(e,t){return null!==e&&void 0!==e&&null!==t&&void 0!==t?"string"==typeof e&&"string"==typeof t&&e.toLocaleLowerCase()===t.toLocaleLowerCase()?!0:!1:null===e&&null===t||void 0===e&&void 0===t?!0:!1},isValid:function(e){return void 0!==e&&null!==e&&""!==e?!0:!1}},$.AnyPicker=$.AnyPicker||{name:"AnyPicker",version:"1.0.0",i18n:{},defaults:{mode:"datetime",parent:"body",layout:"popup",hAlign:"left",vAlign:"bottom",relativeTo:null,inputElement:null,inputChangeEvent:"onSet",lang:"",rtl:!1,animationDuration:500,setButton:{markup:"<a id='ap-button-set' class='ap-button'>Set</a>",markupContentWindows:"<span class='ap-button-icon ap-icon-set'></span><span class='ap-button-text'>set</span>",type:"Button"},clearButton:{markup:"<a id='ap-button-clear' class='ap-button'>Clear</a>",markupContentWindows:"<span class='ap-button-icon ap-icon-clear'></span><span class='ap-button-text'>clear</span>",type:"Button"},nowButton:{markup:"<a id='ap-button-now' class='ap-button'>Now</a>",markupContentWindows:"<span class='ap-button-icon ap-icon-now'></span><span class='ap-button-text'>now</span>",type:"Button"},cancelButton:{markup:"<a id='ap-button-cancel' class='ap-button'>Cancel</a>",markupContentWindows:"<span class='ap-button-icon ap-icon-cancel'></span><span class='ap-button-text'>cancel</span>",type:"Button"},headerTitle:{markup:"<span class='ap-header__title'>Select</span>",type:"Text",contentBehaviour:"Static",format:""},viewSections:{header:["headerTitle"],contentTop:[],contentBottom:[],footer:["cancelButton","setButton"]},i18n:{headerTitle:"Select",setButton:"Set",clearButton:"Clear",nowButton:"Now",cancelButton:"Cancel",dateSwitch:"Date",timeSwitch:"Time"},theme:"Default",onInit:null,onBeforeShowPicker:null,onShowPicker:null,onBeforeHidePicker:null,onHidePicker:null,parseInput:null,formatOutput:null,setOutput:null,onSetOutput:null},tempDefaults:{sOrientation:"portrait",overlayClass:"",overlaySelector:"",iExt:2,dir:"ltr",sElemTag:"",oElemValid:{bIsInput:!1,bIsListItem:!1,bIsSelect:!1},sInputElemTag:"",oInputElemValid:{bIsInput:!1,bIsListItem:!1,bIsSelect:!1},prevActive:null,bFirst:!0,sDateTimeTab:"date",iCompDragStart:0,headerTitleDefined:!1,bIsiPad:!1,bModified:{set:!1,cancel:!1,clear:!1,now:!1},tabKey:!1},extra:{sArrModes:["select","datetime"],sArrLayout:["popup","relative","fixed","inline"],sArrHAlign:["left","center","right"],sArrVAlign:["top","middle","bottom"],sArrViewSections:["header","contentTop","contentBottom","footer"],oArrInputChangeEvent:["onChange","onSet"],sArrThemes:["Default","iOS","Android","Windows"],bIsTouchDevice:"ontouchstart"in document.documentElement,sClickHandler:("ontouchstart"in document.documentElement,"click"),sClickHandlerButtons:"ontouchstart"in document.documentElement?"touchstart":"click",bHasCSS3D:$.CF.testProperties("perspective",["WebkitPerspective","MozPerspective","OPerspective","msPerspective","perspective","perspectiveProperty"],!1),sCSSTransform:$.CF.testProperties("transform",["WebkitTransform","MozTransform","OTransform","msTransform","transform"],!0),sCSSTransformStyle:$.CF.setPropertiesStyle("transform",["WebkitTransform","MozTransform","OTransform","msTransform","transform"]),sCSSTransition:$.CF.testProperties("transition",["WebkitTransition","MozTransition","OTransition","msTransition","transition"],!0),bHasCSSAnimation:$.CF.testProperties("animation",["WebkitAnimation","MozAnimation","OAnimation","msAnimation","animation"],!1),sMouseWheel:"onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],bHasIE10Pointer:window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,bHasPointer:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,bIsiPad:null!==navigator.userAgent.match(/iPad/i)}},function(s){n=[a(1)],i=s,o="function"==typeof i?i.apply(t,n):i,!(void 0!==o&&(e.exports=o))}(function(e){e.fn.AnyPicker=function(t){var a,i,n=e(this).data(),o=Object.keys(n);if(null===t||void 0===t)if(o.length>0){for(a in o)if(i=o[a],-1!==i.search("plugin_AnyPicker_"))return n[i]}else console.log("No AnyPicker Object Defined For This Element");else{if("string"!=typeof t)return this.each(function(){var r=(new Date).getTime();if(e.data(this,"plugin_AnyPicker_"+r))if(o.length>0){for(a in o)if(i=o[a],-1!==i.search("plugin_AnyPicker_"))return n[i]}else console.log("No AnyPicker Object Defined For This Element");else t.timestamp=r,n=new s(this,t),e.data(this,"plugin_AnyPicker_"+r,n),n.init()});if(null!==n||void 0!==n)if(o.length>0){if("destroy"===t)if(o.length>0){for(a in o)if(i=o[a],-1!==i.search("plugin_AnyPicker_")){n=n[i],e(window).off("blur."+n.setting.timestamp);var r=e(n.setting.inputElement);e(r).off("focus."+n.setting.timestamp),e(r).off("blur."+n.setting.timestamp),e(".ap-overlay-"+i.replace("plugin_AnyPicker_","")).remove(),e(this).removeData(i);break}}else console.log("No AnyPicker Object Defined For This Element")}else console.log("No AnyPicker Object Defined For This Element")}}}),s.prototype={init:function(){var e=this;if($.CF.isValid(e.elem)&&(e.tmp.sElemTag=$(e.elem).prop("tagName").toLowerCase(),"input"===e.tmp.sElemTag?e.tmp.oElemValid.bIsInput=!0:"ul"===e.tmp.sElemTag||"ol"===e.tmp.sElemTag||"dl"===e.tmp.sElemTag?e.tmp.oElemValid.bIsListItem=!0:"select"===e.tmp.sElemTag&&(e.tmp.oElemValid.bIsSelect=!0)),$.CF.isValid(e.setting.inputElement)?(e.tmp.sInputElemTag=$(e.setting.inputElement).prop("tagName").toLowerCase(),"input"===e.tmp.sInputElemTag?e.tmp.oInputElemValid.bIsInput=!0:"ul"===e.tmp.sInputElemTag||"ol"===e.tmp.sInputElemTag||"dl"===e.tmp.sInputElemTag?e.tmp.oInputElemValid.bIsListItem=!0:"select"===e.tmp.sInputElemTag&&(e.tmp.oInputElemValid.bIsSelect=!0)):$.CF.isValid(e.elem)&&(e.setting.inputElement=e.elem,e.tmp.sInputElemTag=e.tmp.sElemTag,e.tmp.oInputElemValid=e.tmp.oElemValid),$.CF.compareStrings(e.setting.mode,"select")?e.__setComponentsOfSelect():$.CF.compareStrings(e.setting.mode,"datetime")&&e.__setComponentsOfDateTimePicker(),""!==e.tmp.sInputElemTag&&!e.tmp.oInputElemValid.bIsListItem&&!e.tmp.oInputElemValid.bIsSelect){var t=$(e.setting.inputElement);e.tmp.oInputElemValid.bIsInput?(t.off("focus."+e.setting.timestamp),t.on("focus."+e.setting.timestamp,{apo:e},e._inputElementClicked),t.on("blur."+e.setting.timestamp,function(t){$.AnyPicker.tempDefaults.tabKey&&e.showOrHidePicker(),e.tmp.prevActive=null}),t.on("keydown."+e.setting.timestamp,function(e){"9"===(e.keyCode?e.keyCode:e.which)&&($.AnyPicker.tempDefaults.tabKey=!0)})):(t.off("click."+e.setting.timestamp),t.on("click."+e.setting.timestamp,{apo:e},e._inputElementClicked))}$.CF.isValid(e.setting.onInit)&&e.setting.onInit.call(e)},_inputElementClicked:function(e){e.stopPropagation(),e.preventDefault();var t=e.data.apo;if(document.activeElement!==t.tmp.prevActive||document.activeElement!==t.setting.inputElement)if(t.tmp.prevActive=document.activeElement,""===t.tmp.sInputElemTag||t.tmp.oInputElemValid.bIsListItem||t.tmp.oInputElemValid.bIsSelect)console.log("No InputElement Specified");else{var a,i=$(t.setting.inputElement);if(t.tmp.oInputElemValid.bIsInput)a=i.val();else{var n=i.attr("data-val");a=$.CF.isValid(n)?n:i.text()}$.AnyPicker.tempDefaults.tabKey?($.AnyPicker.tempDefaults.tabKey=!1,setTimeout(function(){t.showOrHidePicker(a)},500)):t.showOrHidePicker(a)}},showOrHidePicker:function(e){var t,a,i,n=this,o=[],s=[];if(void 0!==e&&null!==e)if($.CF.isValid(n.setting.parseInput)){if($.CF.compareStrings(n.setting.mode,"datetime"))n.setting.selectedDate=n.setting.parseInput.call(n,e);else if($.CF.compareStrings(n.setting.mode,"select")){for(o=n.setting.parseInput.call(n,e),t=0;t<o.length;t++)a=o[t],i=n.__getDataSourceValueFromLabel(a,t,!0),s.push({component:t,val:i,label:a});n.tmp.selectedValues.values=s}}else if($.CF.compareStrings(n.setting.mode,"datetime"))n.setting.selectedDate=e;else if($.CF.compareStrings(n.setting.mode,"select")){if(""!==e)for(o=[],s=[],n.tmp.numOfComp>1?o=e.split(" "):o.push(e),t=0;t<o.length;t++)a=o[t],i=n.__getDataSourceValueFromLabel(a,t,!0),s.push({component:t,val:i,label:a});else for(t=0;t<n.tmp.numOfComp;t++){var r=n.setting.dataSource[t].data;a=r[0].label,i=r[0].val,s.push({component:t,val:i,label:a})}n.tmp.selectedValues.values=s}$(n.tmp.overlaySelector).length>0?n._hidePicker():n._showPicker()},_showPicker:function(){var e=this;e.tmp.sOrientation=e._getDeviceOrientation(),$.CF.isValid(e.setting.onBeforeShowPicker)&&e.setting.onBeforeShowPicker.call(e);var t="",a=($.CF.compareStrings(e.setting.layout,"popup")||$.CF.compareStrings(e.setting.layout,"popover"))&&e.setting.viewSections.header.length>0,i=($.CF.compareStrings(e.setting.layout,"popup")||$.CF.compareStrings(e.setting.layout,"popover"))&&e.setting.viewSections.footer.length>0,n=$.CF.compareStrings(e.setting.layout,"fixed")&&$.CF.compareStrings(e.setting.vAlign,"bottom")&&e.setting.viewSections.footer.length>0,o=$.CF.compareStrings(e.setting.layout,"fixed")&&$.CF.compareStrings(e.setting.vAlign,"top")&&e.setting.viewSections.footer.length>0,s=$.CF.compareStrings(e.setting.mode,"datetime")&&"datetime"===e.tmp.sDateTimeMode,r="ap-layout-"+e.setting.layout,l="ap-theme-"+e.setting.theme.toLowerCase(),m="ap-dir-"+e.tmp.sDir;if($.CF.compareStrings(e.setting.layout,"popover")){var p=$("body").scrollTop(),c=$(window).height(),d=p,u=p+c,g=$.CF.compareStrings(e.setting.rowsNavigation,"scroller")?300:350,f=$(e.setting.inputElement).offset().top-g,h=d>f?!1:!0,v=$(e.setting.inputElement).offset().top+$(e.setting.inputElement).height()+g,D=v>u?!1:!0;e.tmp.sTooltip=D?"bottom":h?"top":e.setting.rtl?"right":"left"}t+="<div class='ap-overlay "+r+" "+e.tmp.overlayClass+" "+l+" "+m+"'>",t+="<div class='ap-bg'>",t+="<div class='ap-cont' dir='"+e.tmp.sDir+"'>",$.CF.isValid(e.tmp.sTooltip)&&(t+="<span class='ap-tooltip ap-tooltip-"+e.tmp.sTooltip+"'></span>"),a&&(t+="<div class='ap-header'>",s&&$.CF.compareStrings(e.setting.theme,"Windows")&&(t+="<div class='ap-content-switch'>",e.setting.rtl?(t+="<span class='ap-content-switch-tab ap-content-switch-time'>"+e.setting.i18n.timeSwitch+"</span>",t+="<span class='ap-content-switch-tab ap-content-switch-date ap-content-switch-selected'>"+e.setting.i18n.dateSwitch+"</span>"):(t+="<span class='ap-content-switch-tab ap-content-switch-date ap-content-switch-selected'>"+e.setting.i18n.dateSwitch+"</span>",t+="<span class='ap-content-switch-tab ap-content-switch-time'>"+e.setting.i18n.timeSwitch+"</span>"),t+="</div>",e.tmp.sDateTimeTab="time"),t+="</div>"),n&&(t+="<div class='ap-footer ap-footer-top'>",$.CF.compareStrings(e.setting.theme,"Default")&&(t+="<div class='ap-button-cont'></div>"),t+="</div>"),t+="<div class='ap-content'>",e.setting.viewSections.contentTop.length>0&&(t+="<div class='ap-content-top'></div>"),s&&!$.CF.compareStrings(e.setting.theme,"Windows")&&(t+="<div class='ap-content-switch'>",e.setting.rtl?(t+="<span class='ap-content-switch-tab ap-content-switch-time'>"+e.setting.i18n.timeSwitch+"</span>",t+="<span class='ap-content-switch-tab ap-content-switch-date ap-content-switch-selected'>"+e.setting.i18n.dateSwitch+"</span>"):(t+="<span class='ap-content-switch-tab ap-content-switch-date ap-content-switch-selected'>"+e.setting.i18n.dateSwitch+"</span>",t+="<span class='ap-content-switch-tab ap-content-switch-time'>"+e.setting.i18n.timeSwitch+"</span>"),t+="</div>",e.tmp.sDateTimeTab="date"),t+="<div class='ap-content-middle'>",t+="<div class='ap-component-section'></div>",t+="</div>",e.setting.viewSections.contentBottom.length>0&&(t+="<div class='ap-content-bottom'></div>"),t+="</div>",(i||o)&&(t+="<div class='ap-footer ap-footer-bottom'>",$.CF.compareStrings(e.setting.theme,"Default")&&(t+="<div class='ap-button-cont'></div>"),t+="</div>"),t+="</div>",t+="</div>",t+="</div>",$(e.setting.parent).append(t),"popover"===e.setting.layout&&$("body").addClass("noscroll"),$.AnyPicker.extra.bHasCSSAnimation?($(e.tmp.overlaySelector).addClass("ap-show"),$(e.tmp.overlaySelector).css({display:"block"}),$.CF.compareStrings(e.setting.layout,"fixed")&&($.CF.compareStrings(e.setting.vAlign,"top")?$(e.tmp.overlaySelector).find(".ap-cont").addClass("ap-top-slide-down"):$.CF.compareStrings(e.setting.vAlign,"bottom")&&$(e.tmp.overlaySelector).find(".ap-cont").addClass("ap-bottom-slide-up")),setTimeout(function(){$(e.tmp.overlaySelector).css({opacity:1}),$(e.tmp.overlaySelector).removeClass("ap-show"),$.CF.compareStrings(e.setting.layout,"fixed")&&($.CF.compareStrings(e.setting.vAlign,"top")?($(e.tmp.overlaySelector).find(".ap-cont").removeClass("ap-top-slide-down"),$(e.tmp.overlaySelector+" .ap-cont").css({top:0})):$.CF.compareStrings(e.setting.vAlign,"bottom")&&($(e.tmp.overlaySelector).find(".ap-cont").removeClass("ap-bottom-slide-up"),$(e.tmp.overlaySelector+" .ap-cont").css({bottom:0})))},e.setting.animationDuration)):$(e.tmp.overlaySelector).show(0),$.CF.isValid(e.setting.onShowPicker)&&e.setting.onShowPicker.call(e),e._adjustPicker(),e._addViewSectionComponents(),e.__initComponents(),e._adjustPicker(),$.CF.compareStrings(e.setting.mode,"datetime")&&"datetime"===e.tmp.sDateTimeMode&&e._setDateTimeTabs(e.tmp.sDateTimeTab)},_hidePicker:function(){var e=this;$(e.tmp.overlaySelector).length>0&&($.CF.isValid(e.setting.onBeforeHidePicker)&&e.setting.onBeforeHidePicker.call(e),$.AnyPicker.extra.bHasCSSAnimation?($(e.tmp.overlaySelector).addClass("ap-hide"),$.CF.compareStrings(e.setting.layout,"fixed")&&($.CF.compareStrings(e.setting.vAlign,"top")?$(e.tmp.overlaySelector).find(".ap-cont").addClass("ap-top-slide-up"):$.CF.compareStrings(e.setting.vAlign,"bottom")&&$(e.tmp.overlaySelector).find(".ap-cont").addClass("ap-bottom-slide-down")),setTimeout(function(){$(e.tmp.overlaySelector).remove()},e.setting.animationDuration)):($(e.tmp.overlaySelector).hide(0),setTimeout(function(){$(e.tmp.overlaySelector).remove()},e.setting.animationDuration)),"popover"===e.setting.layout&&$("body").removeClass("noscroll"),e.tmp.prevActive=null,$.CF.isValid(e.setting.onHidePicker)&&e.setting.onHidePicker.call(e))},_adjustPicker:function(e){var t=this;if($.CF.compareStrings(t.setting.theme,"Windows")){e=$.CF.isValid(e)?parseInt(e):t.tmp.numOfComp;var a,i=$(window).height(),n=$(window).width(),o="portrait"===t._getDeviceOrientation(),s=10;o?t.setting.visibleRows=5:t.setting.visibleRows=3,t.setting.componentsCoverFullWidth||(o?(l=Math.floor(n/3),a=l*e,s=(n-a)/2):(l=Math.floor(i/3),a=l*e,a=i>a?a:i,s=(n-a)/2,n=i),$(t.tmp.overlaySelector).find(".ap-content-middle").css({"padding-left":s,"padding-right":s})),n-=16;var r=Math.floor(i/t.setting.visibleRows),l=Math.floor(n/3);t.setting.componentsCoverFullWidth?(r=Math.floor(i/t.setting.visibleRows),t.setting.rowHeight=r):t.setting.rowHeight=l;var m,p,c=t.setting.rowHeight*t.setting.visibleRows,d=(i-c)/2;$(t.tmp.overlaySelector).find(".ap-content").css({top:d}),d+=2,m=$(t.tmp.overlaySelector).find(".ap-header").height()-d,$(t.tmp.overlaySelector).find(".ap-content-top").css({top:m}),d-=2,p=$(t.tmp.overlaySelector).find(".ap-footer").height()+d,$(t.tmp.overlaySelector).find(".ap-content-bottom").css({bottom:p}),t.tmp.iExt=Math.floor(t.setting.visibleRows/2)}var u=$(null===t.setting.relativeTo?t.setting.inputElement:t.setting.relativeTo),g=u.offset().top,f=u.offset().left,h=u.outerWidth();if($.CF.compareStrings(t.setting.layout,"popover")){var v,D,S,y=$("body").scrollTop(),T=($(window).outerWidth(),$(window).outerHeight(),y),C=$(t.setting.inputElement).offset().top-y,b=$(t.setting.inputElement).outerHeight(),w=C+b,_=$(t.setting.inputElement).offset().left,F=$(t.setting.inputElement).outerWidth(),M=_+F,V=$(t.tmp.overlaySelector).find(".ap-cont").outerWidth(),A=$(t.tmp.overlaySelector).find(".ap-cont").outerHeight(),P=10,x=10;"top"===t.tmp.sTooltip?(v=C-A-P,S=0>v?5:v,D=_+5):"bottom"===t.tmp.sTooltip?(v=w+P,D=_+5,"rtl"===t.tmp.sDir&&(D=M-V)):"left"===t.tmp.sTooltip?(v=C-(A/2-b/2),v=T>v?5:v,D=_+F+5):"right"===t.tmp.sTooltip&&(v=C-(A/2-b/2),v=T>v?5:v,D=_-(V+x)),$(t.tmp.overlaySelector).find(".ap-cont").css({position:"absolute",left:D,top:v})}else if($.CF.compareStrings(t.setting.layout,"inline"))$(t.tmp.overlaySelector).find(".ap-cont").css({position:"absolute",width:h,left:f,top:g});else if($.CF.compareStrings(t.setting.layout,"relative")){u=$(null===t.setting.relativeTo?t.setting.inputElement:t.setting.relativeTo);var k=0,I=$(document).outerWidth(),O=$(".ap-cont").outerWidth(),H=h;h=H>O?O:H,g+=u.outerHeight(),$.CF.compareStrings(t.setting.hAlign,"center")?f=H>h?f+h/2:H===h?f:f-h/2:$.CF.compareStrings(t.setting.hAlign,"right")&&(f-=h),f=k>f?k+5:f;var E=f+h;E>I&&(f>k+5?(f-=E-(I+5),f=k>f?k+5:f,E=f+h,h=E>I?I-10:h):h=I-10),$(t.tmp.overlaySelector).find(".ap-cont").css({position:"absolute","min-width":h,left:f,top:g})}else $.CF.compareStrings(t.setting.layout,"fixed")&&($.CF.compareStrings(t.setting.vAlign,"top")?$(t.tmp.overlaySelector+" .ap-cont").css({top:-1e3}):$.CF.compareStrings(t.setting.vAlign,"bottom")&&$(t.tmp.overlaySelector+" .ap-cont").css({bottom:-1e3}))},_addViewSectionComponents:function(){var e,t,a=this,i=$.CF.compareStrings(a.setting.theme,"Windows");for(e=0;e<$.AnyPicker.extra.sArrViewSections.length;e++){var n=$.AnyPicker.extra.sArrViewSections[e],o=a.setting.viewSections[n];if(o.length>0)for(t=0;t<o.length;t++){var s=o[t],r=a.setting[s]||null,l=$(r.markup);if(i&&$.CF.isValid(r.markupContentWindows)&&l.html(r.markupContentWindows),void 0!==r&&null!==r&&""!==r){if($.CF.compareStrings(n,"header"))$(a.tmp.overlaySelector).find(".ap-header").append(l),$.CF.compareStrings(r.type,"Button")&&$.CF.compareDataType(r.action,"function")&&l.on("click."+a.setting.timestamp,{apo:a},r.action);else if($.CF.compareStrings(n,"contentTop"))$(a.tmp.overlaySelector).find(".ap-content-top").append(l),$.CF.compareStrings(r.type,"Button")&&$.CF.compareDataType(r.action,"function")&&l.on("click."+a.setting.timestamp,{apo:a},r.action);else if($.CF.compareStrings(n,"contentBottom"))$(a.tmp.overlaySelector).find(".ap-content-bottom").append(l),$.CF.compareStrings(r.type,"Button")&&$.CF.compareDataType(r.action,"function")&&l.on("click."+a.setting.timestamp,{apo:a},r.action);else if($.CF.compareStrings(n,"footer")){var m=$(a.tmp.overlaySelector).find(".ap-button-cont");m.length>0?m.append(l):$(a.tmp.overlaySelector).find(".ap-footer").append(l),$.CF.compareStrings(r.type,"Button")&&$.CF.compareDataType(r.action,"function")&&l.on("click."+a.setting.timestamp,{apo:a},r.action)}$.CF.compareStrings(s,"headerTitle")&&$.CF.compareStrings(r.contentBehaviour,"Static")&&$(a.tmp.overlaySelector).find(".ap-header__title").text(a.setting.i18n.headerTitle),$.CF.compareStrings(s,"setButton")?!i||i&&a.tmp.bModified.set?l.text(a.setting.i18n.setButton):i&&!a.tmp.bModified.set&&l.find(".ap-button-text").text(a.setting.i18n.setButton):$.CF.compareStrings(s,"clearButton")?!i||i&&a.tmp.bModified.clear?l.text(a.setting.i18n.clearButton):i&&!a.tmp.bModified.clear&&l.find(".ap-button-text").text(a.setting.i18n.clearButton):$.CF.compareStrings(s,"nowButton")?!i||i&&a.tmp.bModified.now?l.text(a.setting.i18n.nowButton):i&&!a.tmp.bModified.now&&l.find(".ap-button-text").text(a.setting.i18n.nowButton):$.CF.compareStrings(s,"cancelButton")&&(!i||i&&a.tmp.bModified.cancel?l.text(a.setting.i18n.cancelButton):i&&!a.tmp.bModified.cancel&&l.find(".ap-button-text").text(a.setting.i18n.cancelButton)),$.CF.compareStrings(r.type,"Button")&&($.CF.compareDataType(r.action,"function")||($.CF.compareStrings(s,"setButton")?l.on("click."+a.setting.timestamp,{apo:a},a._setButtonAction):$.CF.compareStrings(s,"clearButton")?l.on("click."+a.setting.timestamp,{apo:a},a._clearButtonAction):$.CF.compareStrings(s,"nowButton")?l.on("click."+a.setting.timestamp,{apo:a},a._nowButtonAction):$.CF.compareStrings(s,"cancelButton")&&l.on("click."+a.setting.timestamp,{apo:a},a._cancelButtonAction)))}}}i&&$(".ap-button-icon, .ap-button-text").click(function(e){$(this).closest(".ap-button").trigger("click")}),$(a.tmp.overlaySelector).find(".ap-button").on("mousedown touchstart",function(e){$(this).addClass("ap-button-active")}).on("mouseup touchend",function(e){$(this).removeClass("ap-button-active")}),$(window).on("blur."+a.setting.timestamp,function(e){a.tmp.prevActive=document.activeElement}),$(a.tmp.overlaySelector).off("click."+a.setting.timestamp),setTimeout(function(){$(a.tmp.overlaySelector).on("click."+a.setting.timestamp,function(e){var t=Date.now()-a.tmp.iCompDragStart;!a.setting.bIsTouched&&t>1e3&&a._hidePicker()})},300),$(a.tmp.overlaySelector).find(".ap-cont, .ap-cont *").on("click."+a.setting.timestamp,function(e){e.stopPropagation()}),$(a.tmp.overlaySelector).find(".ap-content-switch-date").click(function(e){e.stopPropagation(),a._setDateTimeTabs("date")}),$(a.tmp.overlaySelector).find(".ap-content-switch-time").click(function(e){e.stopPropagation(),a._setDateTimeTabs("time")}),$(window).resize(function(){a._adjustOnOrientationChange()})},_setDateTimeTabs:function(e){var t=this,a="date"===e?"time":"date";t.tmp.sDateTimeTab=e,$(t.tmp.overlaySelector).find(".ap-content-switch-tab").removeClass("ap-content-switch-selected"),$(t.tmp.overlaySelector).find(".ap-content-switch-"+e).addClass("ap-content-switch-selected");var i=$(t.tmp.overlaySelector).find("[data-type='"+a+"']"),n=$(t.tmp.overlaySelector).find("[data-type='"+e+"']");i.css("display","none"),n.css("display","table-cell"),$.CF.compareStrings(t.setting.theme,"Windows")&&t._adjustPicker(n.length)},_setOutput:function(){var e=this,t="";if($.CF.isValid(e.setting.formatOutput))t=e.setting.formatOutput.call(e,e.tmp.selectedValues);else if($.CF.compareStrings(e.setting.mode,"select"))for(var a=0;a<e.tmp.numOfComp;a++)0!==a&&(t+=" "),t+=e.tmp.selectedValues.values[a].label;else $.CF.compareStrings(e.setting.mode,"datetime")&&(t=e.formatOutputDates(e.tmp.selectedValues.date));if(e.tmp.oElemValid.bIsListItem||e.tmp.oElemValid.bIsSelect){var i,n;e.tmp.oElemValid.bIsListItem?i="li":e.tmp.oElemValid.bIsSelect&&(i="option"),$(e.elem).find(i).each(function(){n=$(this);var t=n.attr("value")||n.data("value")||n.text();e.tmp.selectedValues.values[0].val===t?e.tmp.oElemValid.bIsSelect?n.attr("selected",!0):e.tmp.oElemValid.bIsListItem&&n.attr("data-selected",!0):e.tmp.oElemValid.bIsSelect?n.attr("selected",!1):e.tmp.oElemValid.bIsListItem&&n.attr("data-selected",!1)})}if($.CF.isValid(e.setting.setOutput))e.setting.setOutput.call(e,t,e.tmp.selectedValues);else{if(null!==e.setting.inputElement){var o=$(e.setting.inputElement);e.tmp.oInputElemValid.bIsInput?o.val(t):o.text(t)}$.CF.isValid(e.setting.onSetOutput)&&e.setting.onSetOutput.call(e,t,e.tmp.selectedValues)}},_clearOutput:function(){var e=this,t=$(e.setting.inputElement);e.tmp.oInputElemValid.bIsInput?t.val(""):t.text("")},_setButtonAction:function(e){var t=e.data.apo;t._setOutput(),t.showOrHidePicker()},_clearButtonAction:function(e){var t=e.data.apo;if(t.tmp.selectedDate=$.AnyPicker.extra.dToday,""!==t.tmp.sInputElemTag&&!t.tmp.oInputElemValid.bIsListItem&&!t.tmp.oInputElemValid.bIsSelect){var a=$(t.setting.inputElement);t.tmp.oInputElemValid.bIsInput?a.val(""):a.text("")}t.showOrHidePicker()},_nowButtonAction:function(e){var t=e.data.apo;$.CF.compareStrings(t.setting.mode,"datetime")&&(t.tmp.selectedDate=t._getCurrentDate(),t._setSelectedAndInvalidValuesForRows())},_cancelButtonAction:function(e){var t=e.data.apo;t.showOrHidePicker()},_getDeviceOrientation:function(){var e=$(window);return e.width()>e.height()?"landscape":"portrait"},_adjustOnOrientationChange:function(){var e=this,t=e._getDeviceOrientation();t!==e.tmp.sOrientation&&($("body").prepend("<div class='ap-loading'>Loading</div>"),e.tmp.sOrientation=t,e._adjustPicker(),e.reloadAllComponents())}},$.AnyPicker=$.extend(!0,$.AnyPicker,{defaults:{components:null,dataSource:null,showComponentLabel:!1,componentsCoverFullWidth:!1,visibleRows:3,maxRows:0,rowHeight:50,rowsNavigation:"scroller",rowView:null,onChange:null},tempDefaults:{numOfComp:0,selectedValues:{},bIsManualDragging:!1,bIsTouched:!1,iTS:0,iPos:0,iPosPrev:0,iPosStop:0,iOffset:0,iOffsetPrev:0,iVelocity:0,iAmplitude:0,oVelocityTicker:null,oScrollTicker:null,iMinTopPos:0,iMaxTopPos:0,oScrollingComp:null,iScrollingComp:-1,iTmConst:100,bEnd:!1},extra:{sArrRowsNavigation:["scroller+buttons","scroller","buttons"]}}),s.prototype=$.extend(s.prototype,{__initComponents:function(){var e=this;e.tmp.bFirst?e.tmp.bFirst=!1:$.CF.compareStrings(e.setting.mode,"select")?e.__setComponentsOfSelect():$.CF.compareStrings(e.setting.mode,"datetime")&&e.__setComponentsOfDateTimePicker();var t=e.tmp.numOfComp||e.setting.components.length;t>0&&(e.setting.components.length>0?e.reloadAllComponents():console.log("For apo.setting.mode \n 1. Select - \n Please set apo.setting.components 2. DateTime - \n Please enter a valid outputDateTimeFormat "))},reloadAllComponents:function(){var e,t=this;for($(t.setting.parent).find(".ap-component-section").html(""),$("body").prepend("<div class='ap-loading'></div>"),e=0;e<t.tmp.numOfComp;e++)t.reloadComponent(e,!1);t.adjustComponents(),t.setSelectedAndInvalidValuesForRows(!0)},reloadComponent:function(e,t){var a,i,n=this,o="",s=n.setting.dataSource[e].data,r=!1,l="ap-component-"+e,m=$(n.setting.parent).find("#"+l),p=n.setting.components[e],c=$.CF.isValid(p.type)?p.type:p.label,d=$.CF.isValid(p.width)?"width: "+p.width:"",u=n.setting.rtl?$.CF.compareStrings(p.textAlign,"left")?"right":$.CF.compareStrings(p.textAlign,"right")?"left":"":p.textAlign,g=$.CF.isValid(u)?"text-align: "+u:"";for(0===m.length&&(o+="<div class='ap-component' id='"+l+"' data-type='"+c+"' "+(""!==d?"style='"+d+";'":"")+">"),$.CF.compareStrings(n.setting.theme,"Windows")||n.setting.showComponentLabel&&(o+="<div class='ap-component-label' "+(""!==g?"style='"+g+";'":"")+">"+p.label+"</div>"),($.CF.compareStrings(n.setting.rowsNavigation,"scroller+buttons")||$.CF.compareStrings(n.setting.rowsNavigation,"buttons"))&&(o+="<div class='ap-component-plus ap-icon-arrow-up-filled' "+(""!==g?"style='"+g+";'":"")+"></div>"),o+="<div class='ap-component-cont' tabindex='0'>",o+="<div class='ap-component-data' role='listbox' aria-label='"+p.label+"'>",a=0;a<n.tmp.iExt;a++)o+="<div class='ap-row ap-row-ext'></div>";for(a=0;a<s.length;a++)r=$.CF.isValid(s[a].selected)?s[a].selected:!1,i=r?"ap-row-selected":"",o+="<div class='ap-row "+i+"' id='ap-row-"+e+"-"+a+"' data-value='"+s[a].val+"' data-label='"+s[a].label+"' role='option' aria-selected='"+r+"' "+(""!==g?"style='"+g+";'":"")+">",$.CF.compareStrings(n.setting.theme,"Windows")&&(o+="<div class='ap-row-bg'>",$.CF.isValid(n.setting.rowView)||(o+="<div class='ap-row-content'>")),o+=$.CF.isValid(n.setting.rowView)?n.setting.rowView.call(n,e,a,s[a]):s[a].label,$.CF.compareStrings(n.setting.theme,"Windows")&&!$.CF.isValid(n.setting.rowView)&&(o+="</div>",o+="<div class='ap-row-label'>",n.setting.showComponentLabel&&(o+=p.label),o+="</div>"),$.CF.compareStrings(n.setting.theme,"Windows")&&(o+="</div>"),o+="</div>";for(a=0;a<n.tmp.iExt;a++)o+="<div class='ap-row ap-row-ext'></div>";o+="</div>",o+="<div class='ap-component-gradient'></div>",o+="<div class='ap-component-selector' id='ap-component-selector-"+e+"'></div>",o+="</div>",($.CF.compareStrings(n.setting.rowsNavigation,"scroller+buttons")||$.CF.compareStrings(n.setting.rowsNavigation,"buttons"))&&(o+="<div class='ap-component-minus ap-icon-arrow-down-filled' "+(""!==g?"style='"+g+";'":"")+"></div>"),0===m.length&&(o+="</div>"),m.length>0?m.html(o):$(n.setting.parent).find(".ap-component-section").append(o),n._bindEventsToComponent(e),(m.length>0||t)&&n.adjustComponents(),t&&n.setSelectedAndInvalidValuesForRows(!0)},_bindEventsToComponent:function(e){var t=this,a=$("#ap-component-"+e),i=a.find(".ap-component-cont"),n={ | ||
2 | +component:e,apo:t};if(($.CF.compareStrings(t.setting.rowsNavigation,"scroller+buttons")||$.CF.compareStrings(t.setting.rowsNavigation,"scroller"))&&(i.on($.AnyPicker.extra.sStartEv+"."+t.setting.timestamp,n,t._onStartDrag),i.on($.AnyPicker.extra.sMoveEv+"."+t.setting.timestamp,n,t._onDrag),$.CF.isValid($.AnyPicker.extra.sEndEv)&&i.on($.AnyPicker.extra.sEndEv+"."+t.setting.timestamp,n,t._onEndDrag),$.CF.isValid($.AnyPicker.extra.sOutEv)&&i.on($.AnyPicker.extra.sOutEv+"."+t.setting.timestamp,n,t._onEndDrag),$.AnyPicker.extra.sMouseWheel.length>0))for(var o=0;o<$.AnyPicker.extra.sMouseWheel.length;o++)i.on($.AnyPicker.extra.sMouseWheel[o]+"."+t.setting.timestamp,n,t._onMouseWheelScroll);($.CF.compareStrings(t.setting.rowsNavigation,"scroller+buttons")||$.CF.compareStrings(t.setting.rowsNavigation,"buttons"))&&(a.find(".ap-component-plus").on("click."+t.setting.timestamp,n,t._onClickButtonPlus),a.find(".ap-component-minus").on("click."+t.setting.timestamp,n,t._onClickButtonMinus)),i.on("keydown."+t.setting.timestamp,n,t._onKeyDown),i.on("keyup."+t.setting.timestamp,n,t._onKeyUp)},adjustComponents:function(){var e=this,t=$(e.tmp.overlaySelector);if(t.find(".ap-component-cont").css({height:e.setting.rowHeight*e.setting.visibleRows}),t.find(".ap-row, .ap-component-selector").css({height:e.setting.rowHeight,"line-height":e.setting.rowHeight+"px"}),t.find(".ap-row-bg").css({height:e.setting.rowHeight-8}),!$.CF.compareStrings(e.setting.theme,"Windows")){var a=$(".ap-cont").width(),i=$(".ap-cont").height(),n=$(window).width(),o=$(window).height(),s=n,r=o,l=!1,m=!1;if(a>n&&(l=!0,s=a+20),i>o&&(m=!0,r=i+20),(l||m)&&(t.css({position:"absolute",height:r,width:s}),$.CF.compareStrings(e.setting.layout,"fixed")&&$(".ap-cont").css({position:"absolute"})),$.CF.compareStrings(e.setting.layout,"relative")){var p=$(null===e.setting.relativeTo?e.setting.inputElement:e.setting.relativeTo),c=t.find(".ap-cont"),d=p.offset().top+c.height();$.CF.compareStrings(e.setting.vAlign,"top")&&c.css({top:d})}}setTimeout(function(){$(".ap-loading").remove()},0)},_onStartDrag:function(e){var t=e.data.apo;if(t.tmp.bIsManualDragging||(t.tmp.bIsManualDragging=!0),t.tmp.bIsTouched=!0,t.tmp.bEnd=!1,t.tmp.iPos=t._getTouchPosition(e),t.tmp.bFromTouchStart=!0,t._setScrollingData(e),$.CF.compareStrings(t.setting.theme,"Windows")){var a=$(t.tmp.overlaySelector).find("#ap-component-"+t.tmp.iScrollingComp);t.tmp.bIsManualDragging&&($(t.tmp.overlaySelector).find(".ap-component").removeClass("ap-component-modifying"),a.addClass("ap-component-modifying"))}return"mousedown"===e.type&&($(document).on("mousemove."+t.setting.timestamp,e.data,t._onDrag),$(document).on("mouseup."+t.setting.timestamp,e.data,t._onEndDrag)),e.preventDefault(),e.stopPropagation(),!1},_onDrag:function(e){var t,a,i,n,o,s,r=e.data.apo,l=Date.now();if(r._clearScrollTicker(),r.tmp.bIsTouched&&(!$.AnyPicker.extra.bHasPointer||$.AnyPicker.extra.bHasPointer&&(r.tmp.bFromTouchStart||!r.tmp.bFromTouchStart&&l-r.tmp.iTS>1e3))&&(t=r._getTouchPosition(e),l=Date.now(),a=r.tmp.iPos-t,o=a/Math.abs(a),a>2||-2>a)){if($.CF.compareStrings(r.setting.theme,"Windows")){var m=$(r.tmp.overlaySelector).find("#ap-component-"+r.tmp.iScrollingComp),p=m.find(".ap-row");p.attr("aria-selected","false"),p.removeClass("ap-row-selected")}r.tmp.iPosPrev=r.tmp.iPos,r.tmp.iPos=t,i=l-r.tmp.iTS,r.tmp.iTS=l,n=a/i,r.tmp.iTotalDS+=a,s=r.tmp.iPrevDSTS-n,$.AnyPicker.extra.bHasPointer?$.AnyPicker.extra.bIsTouchDevice?a>10||-10>a?$.CF.compareStrings(r.setting.theme,"iOS")?a=4*r.setting.visibleRows*n:Math.abs(r.tmp.iTotalDS)>100?a=n>.05?$.CF.compareStrings(r.setting.theme,"Windows")?a*i*5:a*i*2:1===o?o*r.setting.rowHeight/2:o*r.setting.rowHeight/1.2:n>.06&&Math.abs(s)>.08?a=$.CF.compareStrings(r.setting.theme,"Windows")?a*i*5:a*i*2:(a>50||-50>a)&&(a=$.CF.compareStrings(r.setting.theme,"Windows")?a*i*5:a*i*2):a=Math.abs(n)>.06&&Math.abs(s)>.08?$.CF.compareStrings(r.setting.theme,"Windows")?a*i*5:a*i*2:1===o?o*r.setting.rowHeight/2:o*r.setting.rowHeight/1.2:(2>a&&a>-2&&0!==a&&(a=5*o),a=a>5||-5>a?r.setting.visibleRows/10*320*n:o*r.setting.rowHeight):(a>10||-10>a)&&(a+=16*r.setting.visibleRows*n),r.tmp.iPrevDSTS=n,r._scrollToPosition("drag",r.tmp.iOffset+a,!1,"#ap-component-"+r.tmp.iScrollingComp+" .ap-component-data"),r.tmp.bFromTouchStart=!1}return e.preventDefault(),e.stopPropagation(),!1},_onEndDrag:function(e){var t=e.data.apo;return t.tmp.bEnd||(t.tmp.bEnd=!0,t.tmp.bIsTouched=!1,t._scrollToPosition("drag",t.tmp.iOffset,!0,"#ap-component-"+t.tmp.iScrollingComp+" .ap-component-data"),"mouseup"===e.type&&($(document).off("mousemove."+t.setting.timestamp,t._onDrag),$(document).off("mouseup."+t.setting.timestamp,t._onEndDrag))),e.preventDefault(),e.stopPropagation(),!1},_onMouseWheelScroll:function(e){var t,a=e.data.apo,i=e.data;return e=e||window.event,i.component!==a.tmp.iScrollingComp&&a._setScrollingData(e),a._clearScrollTicker(),t=e.wheelDelta?e.wheelDelta/3:e.originalEvent.wheelDelta?e.originalEvent.wheelDelta/3:e.detail?-e.detail/3:0,a._scrollToPosition("mouseWheel",a.tmp.iOffset-t,!0,"#ap-component-"+a.tmp.iScrollingComp+" .ap-component-data"),e.preventDefault(),e.stopPropagation(),!1},_onClickButtonPlus:function(e){var t=e.data.apo;e.preventDefault(),e.stopPropagation(),t._setScrollingData(e),t._clearScrollTicker(),t._scrollToPosition("button",t.tmp.iOffset+t.setting.rowHeight,!0,"#ap-component-"+t.tmp.iScrollingComp+" .ap-component-data")},_onClickButtonMinus:function(e){var t=e.data.apo;e.preventDefault(),e.stopPropagation(),t._setScrollingData(e),t._clearScrollTicker(),t._scrollToPosition("button",t.tmp.iOffset-t.setting.rowHeight,!0,"#ap-component-"+t.tmp.iScrollingComp+" .ap-component-data")},_onKeyDown:function(e){var t=e.data.apo;e.preventDefault(),e.stopPropagation(),t._setScrollingData(e),t._clearScrollTicker(),38===e.keyCode?t._scrollToPosition("key",t.tmp.iOffset+t.setting.rowHeight,!0,"#ap-component-"+t.tmp.iScrollingComp+" .ap-component-data"):40===e.keyCode&&t._scrollToPosition("key",t.tmp.iOffset-t.setting.rowHeight,!0,"#ap-component-"+t.tmp.iScrollingComp+" .ap-component-data")},_onKeyUp:function(e){var t=e.data.apo;e.preventDefault(),e.stopPropagation(),t._unsetScrollingData()},_getTouchPosition:function(e){e.data.apo;return e=e.originalEvent||e,e.changedTouches?e.changedTouches[0].pageY:e.pageY},_setScrollingData:function(e){var t=e.data.apo;t.tmp.iScrollingComp=parseInt(e.data.component),t.tmp.oScrollingComp=$("#ap-component-"+e.data.component).find(".ap-component-data"),t.tmp.iMinTopPos=0,t.tmp.iMaxTopPos=$(t.tmp.oScrollingComp).find(".ap-row").length*t.setting.rowHeight-$(t.tmp.oScrollingComp).parent().innerHeight(),t.tmp.iTS=Date.now(),t.tmp.iCompDragStart=t.tmp.iTS,t.tmp.iOffsetStart=Math.abs($(t.tmp.oScrollingComp).position().top),t.tmp.iOffset=t.tmp.iOffsetStart,t.tmp.iOffsetPrev=t.tmp.iOffsetStart,t.tmp.iTimeout=0,t.tmp.iDir=1,t.tmp.iTotalDS=0,t.tmp.iPrevDSTS=0,t._clearScrollTicker()},_unsetScrollingData:function(){var e=this;e.tmp.bIsTouched=!1,e.tmp.iPos=0,e.tmp.iTS=0,e.tmp.iOffset=0,e.tmp.iTimeout=0,e.tmp.iMinTopPos=0,e.tmp.iMaxTopPos=0,e.tmp.oScrollingComp=null,e.tmp.iScrollingComp=-1,e.tmp.iDir=0,e._clearScrollTicker(),$(document).off("mousemove."+e.setting.timestamp),$(document).off("mouseup."+e.setting.timestamp),$(document).off("touchend."+e.setting.timestamp)},_getScrollingData:function(){var e=this,t={};return t.iScrollingComp=e.tmp.iScrollingComp,t.oScrollingComp=e.tmp.oScrollingComp,t.iMinTopPos=e.tmp.iMinTopPos,t.iMaxTopPos=e.tmp.iMaxTopPos,t.iTS=e.tmp.iTS,t.iCompDragStart=e.tmp.iCompDragStart,t.iOffsetStart=e.tmp.iOffsetStart,t.iOffset=e.tmp.iOffset,t.iOffsetPrev=e.tmp.iOffsetPrev,t.iTimeout=e.tmp.iTimeout,t.iDir=e.tmp.iDir,t},_clearScrollTicker:function(){var e=this;clearTimeout(e.tmp.oScrollTicker),e.tmp.oScrollTicker=null},_scrollToPosition:function(e,t,a,i){var n=this,o=n.tmp.iScrollingComp,s=t<n.tmp.iOffset?1:t===n.tmp.iOffset?n.tmp.iDir:-1,r=t%n.setting.rowHeight,l=n.setting.rowHeight/4,m=n.tmp.iOffset,p=.1;n.tmp.iDir=s,a&&(t=0!==r?l>r?t-r:t+(n.setting.rowHeight-r):t);var c=n.tmp.iMinTopPos-n.setting.rowHeight,d=n.tmp.iMaxTopPos+n.setting.rowHeight;if(n.tmp.iOffset=t>n.tmp.iMaxTopPos?d:t<n.tmp.iMinTopPos?c:t,$.AnyPicker.extra.bHasCSS3D){var u=Math.abs(m-n.tmp.iOffset);"drag"===e?u<6*n.setting.rowHeight?p=u/(10*n.setting.rowHeight):(p=u/(10*n.setting.rowHeight),p=.2>=p?.2:p):p=.1,n._performTransition(o,i,n.tmp.iOffset,n.tmp.iTimeout/1e3,n.tmp.iMinTopPos,n.tmp.iMaxTopPos,s,c,d,e,a),n.tmp.iTimeout=n.tmp.iTimeout-(Date.now()-n.tmp.iTS)+1e3*p}else n._performTransition(o,i,n.tmp.iOffset,p,n.tmp.iMinTopPos,n.tmp.iMaxTopPos,s,c,d,e,a)},_performTransition:function(e,t,a,i,n,o,s,r,l,m,p){var c=this,d=$(c.tmp.overlaySelector).find(t).get(0),u=c._getOffset(d,!0),g=Math.abs(u-a),f=g/(10*c.setting.rowHeight);i=i>f?f:i,i=.1>i?.1:i,i=$.AnyPicker.extra.bHasPointer&&c.tmp.bIsTouched&&"auto"===m?0:i,$.AnyPicker.extra.bHasCSS3D?(d.style[$.AnyPicker.extra.sCSSTransition]=$.AnyPicker.extra.sCSSTransformStyle+" "+i+"s ease-out",d.style[$.AnyPicker.extra.sCSSTransform]="translate3d(0px, "+-a+"px, 0px)"):$(d).animate({top:-a},100),c.tmp.iOffset=a;var h=c._getScrollingData();c._performTransitionAfter(h,l,r,m,i,p),c._clearScrollTicker()},_performTransitionAfter:function(e,t,a,i,n,o){var s=this;setTimeout(function(){!o||"drag"!==i&&"mouseWheel"!==i||(s.tmp.oScrollTicker=1,s._scrollToRow(e.iDir,t,a,e.iMinTopPos,e.iMaxTopPos,i));var r=$(e.oScrollingComp).get(0),l="auto"===i?e.iOffset:-s._getOffset(r,!1),m=l<e.iMinTopPos,p=l>e.iMaxTopPos,c=Math.abs(l);m?l=e.iMinTopPos:p&&(l=e.iMaxTopPos),m||p?(n=Math.abs(c-l)/(10*s.setting.rowHeight),$.AnyPicker.extra.bHasCSS3D?(r.style[$.AnyPicker.extra.sCSSTransition]=$.AnyPicker.extra.sCSSTransformStyle+" "+n+"s ease-out",r.style[$.AnyPicker.extra.sCSSTransform]="translate3d(0px, "+-Math.abs(l)+"px, 0px)"):$(r).animate({top:-Math.abs(l)},100),e.iOffset=l,c=l,s._skipDisabledRowAfter(e,c,i,n,o)):(o||c===e.iMinTopPos||c===e.iMaxTopPos)&&s._skipDisabledRow(i,e.iScrollingComp,c,e.iDir)},1e3*n)},_skipDisabledRowAfter:function(e,t,a,i,n){var o=this;setTimeout(function(){var i="auto"===a?t:e.iOffset;(n||i===e.iMinTopPos||i===e.iMaxTopPos)&&o._skipDisabledRow(a,e.iScrollingComp,i,e.iDir)},1e3*i)},_getOffset:function(e,t){var a=$(e).hasClass("ap-component-data")?$(e).css("transform"):$(e).find(".ap-component-data").css("transform"),i=0;if($.CF.isValid(a))if("none"===a)i=0;else{a=a.replace("matrix(",""),a=a.replace(")","");var n=a.split(", ");i=n.length>6?parseInt(n[13]):parseInt(n[5])}return t?Math.abs(i):i},_scrollToRow:function(e,t,a,i,n,o){var s,r,l,m=this;if(null!==m.tmp.oScrollTicker){var p=$(m.tmp.oScrollingComp).get(0);r=m._getOffset(p,!1),s=r%m.setting.rowHeight,(0!==s||0===s&&(r>i||-n>r))&&(r=Math.abs(r),r=-1===e?r+(m.setting.rowHeight-Math.abs(s)):r+s,r=r>n?n:i>r?i:r,l=.4,$.AnyPicker.extra.bHasCSS3D?(p.style[$.AnyPicker.extra.sCSSTransition]=$.AnyPicker.extra.sCSSTransformStyle+" "+l+"s ease-out",p.style[$.AnyPicker.extra.sCSSTransform]="translate3d(0px, "+-Math.abs(r)+"px, 0px)"):$(p).animate({top:-Math.abs(r)},100),m.tmp.iOffset=r)}},__scrollToSelectedRow:function(){var e,t=this,a=0;for($.CF.compareStrings(t.setting.mode,"datetime")&&t.__setSelectedDateTimeInComponent(),e=0;e<t.tmp.numOfComp;e++){var i=$(t.tmp.overlaySelector).find("#ap-component-"+e+" .ap-row-selected"),n=i.length>0?i[0]:null;if(null!==n){var o=$(n).position().top,s=t.tmp.iExt*t.setting.rowHeight;o=0===o?o:o-s,t.callScrollToPosition(e,t,o,a),a+=200}}},callScrollToPosition:function(e,t,a,i){var n=this,o={};o.data={component:e,apo:t},n._setScrollingData(o),n._scrollToPosition("auto",a,!0,"#ap-component-"+e+" .ap-component-data")},setSelectedAndInvalidValuesForRows:function(e){var t=this;$.CF.compareStrings(t.setting.mode,"select")?t.__disableInvalidRowsOfSelect():$.CF.compareStrings(t.setting.mode,"datetime")&&(e&&t.__setSelectedDateTimeInComponent(),$(t.tmp.overlaySelector).find(".ap-row").removeClass("ap-row-disabled ap-row-invalid ap-row-hidden"),t.__disableInvalidRowsOfDateTimePicker(),t.__setDaysOfMonthInDatePicker()),e&&t.__scrollToSelectedRow()},__changeComponentValue:function(e,t){var a,i,n,o=this,s=(o.setting.components[e],o.setting.dataSource[e].data);for(a=0;a<s.length;a++)i="#ap-row-"+e+"-"+a,n=$(o.tmp.overlaySelector).find(i),s[a].val===t?(s[a].selected=!0,n.attr("aria-selected","true"),n.addClass("ap-row-selected")):(s[a].selected=!1,n.attr("aria-selected","false"),n.removeClass("ap-row-selected"))},_skipDisabledRow:function(e,t,a,i){var n=this,o="#ap-component-"+t+" .ap-component-data",s=$(n.tmp.overlaySelector).find(o).get(0),r=Math.floor(a/n.setting.rowHeight),l="#ap-row-"+t+"-",m=l+r,p=$(s).find(".ap-row").length-2*n.tmp.iExt,c=$(s).find(m).hasClass("ap-row-disabled"),d=-1,u=0,g={},f=!1;if($.CF.isValid(s)&&c){1===i&&(d=n._findRows(t,r,p,s,i),-1===d&&(i=-1,u=1)),-1===i&&(d=n._findRows(t,r,p,s,i),-1===d&&0===u&&(i=1,d=n._findRows(t,r,p,s,i)));var h=-1!==d?$(s).find(l+d).position().top-n.tmp.iExt*n.setting.rowHeight:-1;-1!==d&&a!==h?(f=!0,g.data={component:t,apo:n},n._setScrollingData(g),n._scrollToPosition("auto",h,!0,o)):setTimeout(function(){n._actionsOnComponentStop(e,t,r,a,i)},200)}else setTimeout(function(){n._actionsOnComponentStop(e,t,r,a,i)},200)},_actionsOnComponentStop:function(e,t,a,i,n){var o=this,s=!1,r="";if(o.__setAriaSelectedForRowElement(t,i,n),o._getSelectedValueInComponent(null),$.CF.compareStrings(o.setting.inputChangeEvent,"onChange")&&o._setOutput(),"DynamicFunction"===o.tmp.sHeaderTitleType)r=o.setting.headerTitle.format.call(o.tmp.selectedValues),$(o.tmp.overlaySelector).find(".ap-header__title").text(r);else if("DynamicString"===o.tmp.sHeaderTitleType){if($.CF.compareStrings(o.setting.mode,"select"))for(var l=0;l<o.tmp.numOfComp;l++)0!==l&&(r+=" "),r+=o.tmp.selectedValues.values[l].label;else $.CF.compareStrings(o.setting.mode,"datetime")&&(r=o.formatOutputDates(o.tmp.selectedValues.date,o.tmp.sArrHeaderTitleFormat));var m=!0;o.tmp.bIsManualDragging||(m=!1),m&&$(o.tmp.overlaySelector).find(".ap-header__title").text(r)}"auto"!==e&&$.CF.isValid(o.setting.onChange)&&o.setting.onChange.call(o,t,a,o.tmp.selectedValues,e),s||o.setSelectedAndInvalidValuesForRows(!1)},_findRows:function(e,t,a,i,n){var o;if(-1===n){for(o=t+1;a>o;o++)if(!$(i).find("#ap-row-"+e+"-"+o).hasClass("ap-row-disabled"))return o}else if(1===n)for(o=t-1;o>0;o--)if(!$(i).find("#ap-row-"+e+"-"+o).hasClass("ap-row-disabled"))return o;return-1},_validateSelectedValues:function(){var e=this;if($.CF.compareStrings(e.setting.mode,"datetime")){var t=e.__getSelectedDate(!1);e.__validateSelectedDate(t,!1)}},__setAriaSelectedForRowElement:function(e,t,a){var i,n=this,o=$(n.tmp.overlaySelector).find("#ap-component-"+e);0===t&&(t=n._getOffset(o,!0)),1===a?i=Math.floor(t/n.setting.rowHeight):-1===a&&(i=Math.ceil(t/n.setting.rowHeight));var s=o.find(".ap-row"),r=o.find("#ap-row-"+e+"-"+i);s.attr("aria-selected","false"),s.removeClass("ap-row-selected"),r.attr("aria-selected","true"),r.addClass("ap-row-selected")},_getSelectedValueInComponent:function(e){var t,a,i=this,n=[];if(i.tmp.selectedValues={},$.CF.isValid(e))a=$(i.tmp.overlaySelector).find("#ap-component-"+e+" .ap-row-selected"),n.push({component:e,val:a.data("value"),label:a.data("label")});else for(t=0;t<i.tmp.numOfComp;t++)a=$(i.tmp.overlaySelector).find("#ap-component-"+t+" .ap-row-selected"),n.push({component:t,val:a.data("value"),label:a.data("label")});i.tmp.selectedValues.values=n,$.CF.compareStrings(i.setting.mode,"datetime")&&(i.tmp.selectedValues.date=i.__getSelectedDate(!1),i.tmp.selectedDate=i.tmp.selectedValues.date)},__getDataSourceValueFromLabel:function(e,t,a){var i,n,o,s,r=this,l="";if($.CF.isValid(t))for(o=r.setting.dataSource[t].data,n=0;n<o.length;n++)s=o[n],$.CF.compareStrings(s.label,e)?(l=s.val,a&&(s.selected=!0)):a&&(s.selected=!1),r.setting.dataSource[t].data[n]=s;else for(i=0;i<r.tmp.numOfComp;i++)for(o=r.setting.dataSource[i].data,n=0;n<o.length;n++)s=o[n],$.CF.compareStrings(s.label,e)?(a&&(s.selected=!0),l=s.val):a&&(s.selected=!1);return l},__getValuesOfComponent:function(e,t){var a,i=this,n=null;if("component"===e)if(i.setting.components[t].component===t)n=i.setting.components[t];else for(a=0;a<i.tmp.numOfComp;a++)i.setting.components[a].component===t&&(n=i.setting.components[a]);else if("datasource"===e)if(i.setting.dataSource[t].component===t)n=i.setting.dataSource[t];else for(a=0;a<i.tmp.numOfComp;a++)i.setting.dataSource[a].component===t&&(n=i.setting.dataSource[a]);return n}}),s.prototype=$.extend(s.prototype,{__setComponentsOfSelect:function(){var e=this;if(null===e.setting.dataSource)if(e.tmp.oElemValid.bIsListItem||e.tmp.oElemValid.bIsSelect){var t,a;e.setting.components=[];var i={};i.component=1,i.name=$(e.elem).data("name"),i.label=$(e.elem).data("label"),e.setting.components.push(i);var n=[];e.tmp.oElemValid.bIsListItem?t="li":e.tmp.oElemValid.bIsSelect&&(t="option"),$(e.elem).find(t).each(function(){a=$(this);var t={val:a.attr("value")||a.data("value")||a.text(),label:a.text(),selected:function(){return a.attr("selected")||void 0!==a.attr("data-selected")&&"true"===a.attr("data-selected")?!0:!1},disabled:function(){return a.attr("disabled")||void 0!==a.data("disabled")&&"true"===a.data("disabled")?!0:!1}};t.disabled?t.selected=!1:t.selected&&(e.tmp.selected={val:t.val,displayVal:t.displayVal}),n.push(t)}),e.setting.dataSource=[];var o={};o.component=1,o.data=n,e.setting.dataSource.push(o),e.tmp.numOfComp=1,$.CF.compareStrings(e.setting.headerTitle.contentBehaviour,"Dynamic")&&$.CF.isValid(e.setting.headerTitle.format)&&("function"==typeof e.setting.headerTitle.format?e.tmp.sHeaderTitleType="DynamicFunction":"string"==typeof e.setting.headerTitle.format&&(e.tmp.sHeaderTitleType="DynamicString"))}else console.log("You will have to specify dataSource either as a JSON object or as <ul>, <ol>, <dl> or <select>")},__disableInvalidRowsOfSelect:function(){var e,t,a=this,i=a.setting.dataSource[0].data;for(e=0;e<i.length;e++)t=$.CF.isValid(i[e].disabled),t&&i[e].disabled===!0&&$(a.elem).find("#ap-row-0-"+e).addClass("ap-row-disabled")}}),$.AnyPicker=$.extend(!0,$.AnyPicker,{defaults:{selectedDate:null,i18n:{veryShortDays:["Su","Mo","Tu","We","Th","Fr","Sa"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fullDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],numbers:["0","1","2","3","4","5","6","7","8","9"],meridiem:{a:["a","p"],aa:["am","pm"],A:["A","P"],AA:["AM","PM"]}},inputDateTimeFormat:"",dateTimeFormat:"dd-MM-yyyy hh:mm AA",tzOffset:"",maxValue:null,minValue:null,maxYear:0,disableValues:{},intervals:{h:1,m:1,s:1},roundOff:!0},tempDefaults:{oMinMax:{},oArrPDisable:{},sDateTimeMode:"",sArrDateTimeFormat:[],sDateTimeRegex:"",diffDateTimeFormats:!1,sArrInputDateTimeFormat:[],sInputDateTimeRegex:"",sHeaderTitleType:"Static",sArrHeaderTitleFormat:[],dPrevDate:null},extra:{dToday:new Date,iMS:{m:6e4,h:36e5,d:864e5,w:6048e5},sFormatRegex:/(\[[^\[]*\])|(\\)?(MMMM|MMM|MM?|DDDD|DDD|DD|D|dd?|yyyy|YYYY|yy|YY|y|Y|aa?|AA?|hh?|HH?|mm?|ss?|x|X|zz?|ZZ?|.)/g,en:{veryShortDays:["Su","Mo","Tu","We","Th","Fr","Sa"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fullDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],numbers:["0","1","2","3","4","5","6","7","8","9"],meridiem:{a:["a","p"],aa:["am","pm"],A:["A","P"],AA:["PM","PM"]}},sArrDateComponents:["d","dd","DD","DDD","DDDD","M","MM","MMM","MMMM","y","yy","yyyy","Y","YY","YYYY","h","hh","H","HH","m","mm","s","ss","AA","A","aa","a"],sArrDateTimeModes:["date","time","datetime"]}}),s.prototype=$.extend(s.prototype,{_isSupportedFormat:function(e){return-1!==e.search($.AnyPicker.extra.sFormatRegex,"")},__setComponentsOfDateTimePicker:function(){var e,t,a=this;a.setting.components=[],a.tmp.numOfComp=0,a.setting.dataSource=[];var i=-1!==a.setting.dateTimeFormat.search(/D|d|M|y|Y/,""),n=-1!==a.setting.dateTimeFormat.search(/H|h|m|s|A|a/,"");a.tmp.sDateTimeMode=i&&n?"datetime":i?"date":n?"time":"",$.CF.isValid(a.setting.dateTimeFormat)&&($.CF.isValid(a.setting.inputDateTimeFormat)?a.tmp.diffDateTimeFormats=a.setting.dateTimeFormat!==a.setting.inputDateTimeFormat:(a.setting.inputDateTimeFormat=a.setting.dateTimeFormat,a.tmp.diffDateTimeFormats=!1)),a.tmp.sArrDateTimeFormat=a._setDateTimeFormatComponentsArray(a.setting.dateTimeFormat),a.tmp.diffDateTimeFormats&&(a.tmp.sArrInputDateTimeFormat=a._setDateTimeFormatComponentsArray(a.setting.inputDateTimeFormat)),a.tmp.sDateTimeRegex=a._createDateTimeRegex(a.tmp.sArrDateTimeFormat),a.tmp.diffDateTimeFormats&&(a.tmp.sInputDateTimeRegex=a._createDateTimeRegex(a.tmp.sArrInputDateTimeFormat)),a.parseDisableValues(),a.setSelectedDate(a.setting.selectedDate);var o=a.setting.dateTimeFormat.match(/(MMMM).*(dd|d).*(yyyy|YYYY)/);if(a.tmp.sArrDateTimeFormat.length>0)for(e=0;e<a.tmp.sArrDateTimeFormat.length;e++)t=a.tmp.sArrDateTimeFormat[e],-1!==t.search(/D|d|M|y|Y|H|h|m|s|A|a/,"g")&&a._setComponentAndDataSourceForFormat(t,{MMMMddYYYY:o});a.tmp.headerTitleDefined||!$.CF.compareStrings(a.setting.mode,"datetime")||$.CF.compareStrings(a.setting.theme,"iOS")||(a.setting.headerTitle.contentBehaviour="Dynamic","datetime"===a.tmp.sDateTimeMode?a._formatContains(a.tmp.sArrDateTimeFormat,["d","M","y|Y","h","m"],"and")&&a._formatContains(a.tmp.sArrDateTimeFormat,["a","A"],"or")?a.setting.headerTitle.format="dd.MM.yyyy, hh:mm "+a._getFormatForComponent("meridiem"):a._formatContains(a.tmp.sArrDateTimeFormat,["d","M","y|Y","H","m"],"and")?a.setting.headerTitle.format="dd.MM.yyyy, HH:mm":a.setting.headerTitle.format=a.setting.dateTimeFormat:"date"===a.tmp.sDateTimeMode?a._formatContains(a.tmp.sArrDateTimeFormat,["d","M","y|Y"],"and")?a.setting.headerTitle.format="DDD, MMM dd, yyyy":a.setting.headerTitle.format=a.setting.dateTimeFormat:"time"===a.tmp.sDateTimeMode&&(a._formatContains(a.tmp.sArrDateTimeFormat,["h","m"],"and")&&a._formatContains(a.tmp.sArrDateTimeFormat,["a","A"],"or")?a.setting.headerTitle.format="hh:mm "+a._getFormatForComponent("meridiem"):a._formatContains(a.tmp.sArrDateTimeFormat,["H","m"],"and")?a.setting.headerTitle.format="HH:mm":a.setting.headerTitle.format=a.setting.dateTimeFormat)),$.CF.compareStrings(a.setting.headerTitle.contentBehaviour,"Dynamic")&&$.CF.isValid(a.setting.headerTitle.format)&&("function"==typeof a.setting.headerTitle.format?a.tmp.sHeaderTitleType="DynamicFunction":"string"==typeof a.setting.headerTitle.format&&(a.tmp.sHeaderTitleType="DynamicString",a.tmp.sArrHeaderTitleFormat=a._matchRegex($.AnyPicker.extra.sFormatRegex,a.setting.headerTitle.format)))},setSelectedDate:function(e){var t=this;if($.CF.isValid(e)){if("string"==typeof e?t.tmp.selectedDate=t._parseInputDateTime(e):"[object Date]"===Object.prototype.toString.call(e)&&(t.setting.selectedDate=t.formatOutputDates(e),t.tmp.selectedDate=new Date(e)),null!==t.setting.inputElement){var a=$(t.setting.inputElement);t.tmp.oInputElemValid.bIsInput?a.val(t.setting.selectedDate):a.text(t.setting.selectedDate)}}else t.tmp.selectedDate=new Date($.AnyPicker.extra.dToday)},setMinimumDate:function(e){var t=this;t.setting.minValue=e,t.parseDisableValues()},setMaximumDate:function(e){var t=this;t.setting.maxValue=e,t.parseDisableValues()},_getFormatForComponent:function(e){for(var t=this,a=0;a<t.tmp.numOfComp;a++){var i=t.setting.components[a];if(i.name===e)return i.format}},_formatContains:function(e,t,a){var i,n,o,s=[];for(i=0;i<t.length;i++){var r=t[i],l=!1;for(n=0;n<e.length;n++){var m=e[n];if($.CF.isValid(m)&&$.CF.isValid(r)&&-1!==m.search(new RegExp(r),"")){l=!0;break}}s.push(l)}if("and"===a){for(o=!0,i=0;i<s.length;i++)if(s[i]!==!0){o=!1;break}}else if("or"===a)for(o=!1,i=0;i<s.length;i++)if(s[i]===!0){o=!0;break}return o},_setComponentAndDataSourceForFormat:function(e,t){var a=this,i={},n={},o=a._isSupportedFormat(e);o&&("d"===e||"dd"===e?(i.name="date",i.label="Date",i.type="date",$.CF.compareStrings(a.setting.theme,"iOS")&&t.MMMMddYYYY&&(i.width="24%",i.textAlign="right")):"DD"===e||"DDD"===e||"DDDD"===e?(i.name="day",i.label="Day",i.type="date"):"M"===e||"MM"===e||"MMM"===e||"MMMM"===e?(i.name="month",i.label="Month",i.type="date",$.CF.compareStrings(a.setting.theme,"iOS")&&t.MMMMddYYYY&&(i.width="46%",i.textAlign="left")):"y"===e||"Y"===e||"yyyy"===e||"Y"===e||"YYYY"===e?(i.name="year",i.label="Year",i.type="date",$.CF.compareStrings(a.setting.theme,"iOS")&&t.MMMMddYYYY&&(i.width="30%",i.textAlign="right")):"H"===e||"HH"===e||"h"===e||"hh"===e?(i.name="hours",i.label="Hours",i.type="time"):"m"===e||"mm"===e?(i.name="minutes",i.label="Minutes",i.type="time"):"s"===e||"ss"===e?(i.name="seconds",i.label="Seconds",i.type="time"):"aa"===e||"a"===e||"AA"===e||"A"===e?(i.name="meridiem",i.label="Meridiem",i.type="time"):console.log("Picker Component for "+e+" can noot be added because the format you specified as "+e+" cannot be parsed using this function. If you want to parse it, please add the condition in the _setComponentAndDataSourceForFormat function."),i.format=e,i.component=a.tmp.numOfComp,a.setting.components.push(i),n.component=i.component,n.data=a.__setDataSourceArrayForComponent(i.name,e),a.setting.dataSource.push(n),a.tmp.numOfComp++)},__setDataSourceArrayForComponent:function(e,t){var a,i,n,o,s,r,l,m=this,p=[],c=m.getDateObject(m.tmp.selectedDate),d=null,u=null;if($.CF.isValid(m.tmp.oMinMax.min)&&(d=m.getDateObject(m.tmp.oMinMax.min)),$.CF.isValid(m.tmp.oMinMax.max)&&(u=m.getDateObject(m.tmp.oMinMax.max)),"day"===e){if("DD"===t)for(i=0;i<$.AnyPicker.extra.en.veryShortDays.length;i++)p.push({val:i,label:m.setting.i18n.veryShortDays[i]});else if("DDD"===t)for(i=0;i<$.AnyPicker.extra.en.shortDays.length;i++)p.push({val:i,label:m.setting.i18n.shortDays[i]});else if("DDDD"===t)for(i=0;i<$.AnyPicker.extra.en.fullDays.length;i++)p.push({val:i,label:m.setting.i18n.fullDays[i]})}else if("date"===e)for(n=31,o=1,s=n,$.CF.isValid(d)&&$.CF.isValid(u)&&d.y===u.y&&d.M===u.M&&(o=d.d,s=u.d),i=o;s>=i;i++)"d"===t?a=0:"dd"===t&&(a=2),p.push({val:i,label:m.getNumberStringInFormat(i,a,!0)});else if("month"===e){if(o=1,s=12,$.CF.isValid(d)&&$.CF.isValid(u)&&d.y===u.y&&(o=d.M,s=u.M),"M"===t||"MM"===t)for("M"===t?a=0:"MM"===t&&(a=2),i=o;s>=i;i++)p.push({val:i-1,label:m.getNumberStringInFormat(i,a,!0)});else if("MMM"===t)for(i=o;s>=i;i++)p.push({val:i-1,label:m.setting.i18n.shortMonths[i-1]});else if("MMMM"===t)for(i=o;s>=i;i++)p.push({val:i-1,label:m.setting.i18n.fullMonths[i-1]})}else if("year"===e)for(r=0===m.setting.maxRows?50:m.setting.maxRows,l=Math.floor(r/2),o=$.CF.isValid(d)?d.y:r%2===0?c.y-l-1:c.y-l,s=$.CF.isValid(u)?u.y:c.y+l,i=o;s>=i;i++)p.push({val:i,label:m.getNumberStringInFormat(i,0,!0)});else if("hours"===e){var g=[],f=0;if(!m.setting.roundOff)for(f=c.H;f-m.setting.intervals.h>=0;)f-=m.setting.intervals.h;for("h"===t||"hh"===t?(g=[12,1,2,3,4,5,6,7,8,9,10,11],f%=12,f=0===f?12:f,o=g.indexOf(f),s=11):("H"===t||"HH"===t)&&(o=f,s=23),"h"===t||"H"===t?a=0:("hh"===t||"HH"===t)&&(a=2),i=o;s>=i;i+=m.setting.intervals.h)"h"===t||"hh"===t?p.push({val:g[i],label:m.getNumberStringInFormat(g[i],a,!0)}):("H"===t||"HH"===t)&&p.push({val:i,label:m.getNumberStringInFormat(i,a,!0)})}else if("minutes"===e){var h=0;if(!m.setting.roundOff)for(h=c.m;h-m.setting.intervals.m>=0;)h-=m.setting.intervals.m;for("m"===t?a=0:"mm"===t&&(a=2),i=h;60>i;i+=m.setting.intervals.m)p.push({val:i,label:m.getNumberStringInFormat(i,a,!0)})}else if("seconds"===e){var v=0;if(!m.setting.roundOff)for(v=c.s;v-m.setting.intervals.s>=0;)v-=m.setting.intervals.s;for("s"===t?a=0:"ss"===t&&(a=2),i=v;60>i;i+=m.setting.intervals.s)p.push({val:i,label:m.getNumberStringInFormat(i,a,!0)})}else if("meridiem"===e)for(i=0;2>i;i++)p.push({val:i,label:m.setting.i18n.meridiem[t][i]});return p},_setDateTimeFormatComponentsArray:function(e){var t,a=this,i=a._matchRegex($.AnyPicker.extra.sFormatRegex,e),n="",o=[];for(t=0;t<i.length;t++){var s=i[t];s.match(/[a-zA-Z0-9]/)?(""!==n&&(o.push(n),n=""),o.push(s)):n+=s}return""!==n&&(o.push(n),n=""),o},_createDateTimeRegex:function(e){var t,a,i,n=this,o="",s="(\\[[^\\[]*\\])|(\\\\)?",r="|.";for(o+=s,t=0;t<e.length;t++)a=e[t],o=n._getRegexComponentForFormat(o,a);return o+=r,i=new RegExp(o,"g")},_getRegexComponentForFormat:function(e,t){var a=this;return"d"===t||"dd"===t?e+="(\\d{1,2})":"DD"===t?(e+="(",e+=a.setting.i18n.veryShortDays.join("|"),e+=")"):"DDD"===t?(e+="(",e+=a.setting.i18n.shortDays.join("|"),e+=")"):"DDDD"===t?(e+="(",e+=a.setting.i18n.fullDays.join("|"),e+=")"):"M"===t||"MM"===t?e+="(\\d{1,2})":"MMM"===t?(e+="(",e+=a.setting.i18n.shortMonths.join("|"),e+=")"):"MMMM"===t?(e+="(",e+=a.setting.i18n.fullMonths.join("|"),e+=")"):$.CF.compareStrings(t,"y")||$.CF.compareStrings(t,"yyyy")?e+="(\\d{1,4})":$.CF.compareStrings(t,"yy")?e+="(\\d{2})":$.CF.compareStrings(t,"h")||$.CF.compareStrings(t,"hh")?e+="(\\d{1,2})":"m"===t||"mm"===t?e+="(\\d{1,2})":"s"===t||"ss"===t?e+="(\\d{1,2})":"a"===t||"aa"===t||"A"===t||"AA"===t?(e+="(","a"===t?e+=a.setting.i18n.meridiem.a.join("|"):"aa"===t?e+=a.setting.i18n.meridiem.aa.join("|"):"A"===t?e+=a.setting.i18n.meridiem.A.join("|"):"AA"===t&&(e+=a.setting.i18n.meridiem.AA.join("|")),e+=")"):e+="/"===t||"-"===t||"."===t||" "===t||":"===t||","===t?"(/|-|.| |:|,)":"("+t+")",e},_matchRegex:function(e,t){for(var a=[],i=[];null!==(i=e.exec(t));){for(var n=3;n<i.length;n++)a.push(i[n]);i.index===e.lastIndex&&e.lastIndex++}return a},_parseInputDateTime:function(e){var t,a,i,n,o,s,r=this,l=null,m={};if("string"==typeof e){for(s=r.tmp.diffDateTimeFormats?r.tmp.sArrInputDateTimeFormat:r.tmp.sArrDateTimeFormat,o=r.tmp.diffDateTimeFormats?r.tmp.sInputDateTimeRegex:r.tmp.sDateTimeRegex,n=r._matchRegex(o,e),t=0;t<s.length;t++)a=s[t],i=n[t],-1!==a.search(/D|d|M|y|Y|H|h|m|s|A|a/,"")&&(m=r._setInputDateTimeValue(a,i,m));$.CF.isValid(m.h)&&(($.CF.compareStrings(m.me,"AM")||$.CF.compareStrings(m.sm,"A"))&&12===m.h?m.H=0:($.CF.compareStrings(m.me,"PM")||$.CF.compareStrings(m.sm,"P"))&&m.h<12?m.H=m.h+12:m.H=m.h),l=r.setDateInFormat({iDate:m},"")}else"[object Date]"===Object.prototype.toString.call(e)&&(l=new Date(e));return l},_setInputDateTimeValue:function(e,t,a){var i=this;if(i._isSupportedFormat(e))if("d"===e||"dd"===e)a.d=parseInt(t);else if("M"===e||"MM"===e)a.M=parseInt(t)-1;else if("MMM"===e)a.M=i.setting.i18n.shortMonths.indexOf(t);else if("MMMM"===e)a.M=i.setting.i18n.fullMonths.indexOf(t);else if($.CF.compareStrings(e,"yy")){a.y=parseInt(t);var n=i.setting.maxYear/100,o=i.setting.maxYear%100;a.y>o?a.y=100*(n-1)+a.y:a.y=100*n+a.y}else $.CF.compareStrings(e,"y")||$.CF.compareStrings(e,"yyyy")?a.y=parseInt(t):"H"===e||"HH"===e?a.H=parseInt(t):"h"===e||"hh"===e?a.h=parseInt(t):"m"===e||"mm"===e?a.m=parseInt(t):"s"===e||"ss"===e?a.s=parseInt(t):"a"===e||"A"===e?$.CF.isValid(t)&&(-1!==t.search(/A/gi,"")?a.me="A":-1!==t.search(/P/gi,"")&&(a.me="P")):("aa"===e||"AA"===e)&&$.CF.isValid(t)&&(-1!==t.search(/AM/gi,"")?a.me="AM":-1!==t.search(/PM/gi,"")&&(a.me="PM"));return a},formatOutputDates:function(e,t){var a,i,n,o,s=this,r="";for(n=$.CF.isValid(t)?"string"==typeof t?s._setDateTimeFormatComponentsArray(t):t:s.tmp.diffDateTimeFormats?s.tmp.sArrInputDateTimeFormat:s.tmp.sArrDateTimeFormat,o=s.getDateObject(e),i=0;i<n.length;i++)if(a=n[i],"dd"===a)r+=s.getNumberStringInFormat(o.d,2,!0);else if("d"===a)r+=s.getNumberStringInFormat(o.d,0,!0);else if("DDDD"===a)r+=s.setting.i18n.fullDays[o.D];else if("DDD"===a)r+=s.setting.i18n.shortDays[o.D];else if("DD"===a)r+=s.setting.i18n.veryShortDays[o.D];else if("MMMM"===a)r+=s.setting.i18n.fullMonths[o.M];else if("MMM"===a)r+=s.setting.i18n.shortMonths[o.M];else if("MM"===a)r+=s.getNumberStringInFormat(o.M+1,2,!0);else if("M"===a)r+=s.getNumberStringInFormat(o.M+1,0,!0);else if($.CF.compareStrings(a,"yyyy"))r+=s.getNumberStringInFormat(o.y,4,!0);else if($.CF.compareStrings(a,"yy")){ | ||
3 | +var l=Math.floor(o.y/10)%10*10+o.y%10;r+=s.getNumberStringInFormat(l,2,!0)}else r+=$.CF.compareStrings(a,"y")?s.getNumberStringInFormat(o.y,4,!0):"hh"===a?s.getNumberStringInFormat(o.h,2,!0):"h"===a?s.getNumberStringInFormat(o.h,0,!0):"HH"===a?s.getNumberStringInFormat(o.H,2,!0):"H"===a?s.getNumberStringInFormat(o.H,0,!0):"mm"===a?s.getNumberStringInFormat(o.m,2,!0):"m"===a?s.getNumberStringInFormat(o.m,0,!0):"ss"===a?s.getNumberStringInFormat(o.s,2,!0):"s"===a?s.getNumberStringInFormat(o.s,0,!0):"aa"===a?o.me:"a"===a?o.sm:"AA"===a?o.me.toUpperCase():"A"===a?o.sm.toUpperCase():a;return r},parseDisableValues:function(){var e=this;e.tmp.oMinMax={min:null,max:null},e.tmp.oArrPDisable={day:[],date:[],time:[],datetime:[]};var t,a,i;if($.CF.isValid(e.setting.minValue)){var n=e._parseInputDateTime(e.setting.minValue);$.CF.isValid(n)&&(e.tmp.oMinMax.min=n)}if($.CF.isValid(e.setting.maxValue)){var o=e._parseInputDateTime(e.setting.maxValue);$.CF.isValid(o)&&(e.tmp.oMinMax.max=o)}if("date"===e.tmp.sDateTimeMode?e.tmp.oArrPDisable.date.push([e.tmp.oMinMax]):"time"===e.tmp.sDateTimeMode?e.tmp.oArrPDisable.time.push({day:[],val:[e.tmp.oMinMax]}):"datetime"===e.tmp.sDateTimeMode&&e.tmp.oArrPDisable.datetime.push(e.tmp.oMinMax),$.CF.isValid(e.setting.disableValues)){if($.CF.isValid(e.setting.disableValues.day)&&e.setting.disableValues.day.length>0)for(t=0;t<e.setting.disableValues.day.length;t++)e.setting.disableValues.day[t]>=0&&e.setting.disableValues.day[t]<=6&&e.tmp.oArrPDisable.day.push(e.setting.disableValues.day[t]);if($.CF.isValid(e.setting.disableValues.date)&&e.setting.disableValues.date.length>0)for(t=0;t<e.setting.disableValues.date.length;t++){var s=e.setting.disableValues.date[t],r=null;if($.CF.isValid(s.val)){var l=e._parseInputDateTime(s.val);$.CF.isValid(l)&&(null===r&&(r={}),r.val=l)}if($.CF.isValid(s.start)){var m=e._parseInputDateTime(s.start);$.CF.isValid(m)&&(null===r&&(r={}),r.start=m)}if($.CF.isValid(s.end)){var p=e._parseInputDateTime(s.end);$.CF.isValid(p)&&(null===r&&(r={}),r.end=p)}$.CF.isValid(r)&&e.tmp.oArrPDisable.date.push(r)}if($.CF.isValid(e.setting.disableValues.time)&&e.setting.disableValues.time.length>0)for(a=0;a<e.setting.disableValues.time.length;a++){var c=e.setting.disableValues.time[a],d=$.CF.isValid(c.day)&&c.day.length>0,u=$.CF.isValid(c.val)&&c.val.length>0;if(u){var g=[];for(i=0;i<c.val.length;i++){var f=c.val[i],h=null;if($.CF.isValid(f.val)){var v=e._parseInputDateTime(f.val);$.CF.isValid(v)&&(null===h&&(h={}),h.val=f)}if($.CF.isValid(f.start)){var D=e._parseInputDateTime(f.start);$.CF.isValid(D)&&(null===h&&(h={}),h.start=D)}if($.CF.isValid(f.end)){var S=e._parseInputDateTime(f.end);$.CF.isValid(S)&&(null===h&&(h={}),h.end=S)}$.CF.isValid(h)&&g.push(h)}g.length>0&&e.tmp.oArrPDisable.time.push({day:d?c.day:[],val:g})}}if($.CF.isValid(e.setting.disableValues.datetime)&&e.setting.disableValues.datetime.length>0)for(a=0;a<e.setting.disableValues.datetime.length;a++){var y=e.setting.disableValues.datetime[a],T=null;if($.CF.isValid(y.val)){var C=e._parseInputDateTime(y.val);$.CF.isValid(C)&&(null===T&&(T={}),T.val=C)}if($.CF.isValid(y.start)){var b=e._parseInputDateTime(y.start);$.CF.isValid(b)&&(null===T&&(T={}),T.start=b)}if($.CF.isValid(y.end)){var w=e._parseInputDateTime(y.end);$.CF.isValid(w)&&(null===T&&(T={}),T.end=w)}$.CF.isValid(T)&&e.tmp.oArrPDisable.datetime.push(T)}}else console.log("Invalid value for AnyPicker plugin option disableValues")},__setSelectedDateTimeInComponent:function(){var e,t,a=this,i="",n=a.getDateObject(a.tmp.selectedDate);for(e=0;e<a.tmp.numOfComp;e++)t=a.setting.components[e],"date"===t.name?i=n.d:"day"===t.name?i=n.D:"month"===t.name?i=n.M:"year"===t.name?i=n.y:"hours"===t.name?"h"===t.format||"hh"===t.format?i=n.h:("H"===t.format||"HH"===t.format)&&(i=n.H):"minutes"===t.name?i=n.m:"seconds"===t.name?i=n.s:"meridiem"===t.name&&("a"===n.sm?i=0:"p"===n.sm&&(i=1)),a.__changeComponentValue(e,i)},__disableInvalidRowsOfDateTimePicker:function(){var e,t,a,i,n,o,s,r,l,m=this;if(1===m.tmp.numOfComp){if(o=m.setting.components[0],s=o.name,r=o.format,l=m.setting.dataSource[0].data,"day"===s)for(e=0;e<l.length;e++)for(t=0;t<m.tmp.oArrPDisable.day.length;t++)m.tmp.oArrPDisable.day[t]===l[t].val&&$(m.elem).find("#ap-row-0-"+e).addClass("ap-row-disabled ap-row-invalid")}else for(n=m.__getSelectedDate(!0)[1],e=0;e<m.setting.dataSource.length;e++){var p=m.setting.dataSource[e];for(t=0;t<p.data.length;t++){var c={d:1,M:0,y:0,H:0,h:0,m:0,s:0,sm:0};for(a=0;a<m.tmp.numOfComp;a++)a===e?(i=p.data[t].val,o=m.setting.components[a],s=o.name,r=o.format):(i=n[a],o=m.setting.components[a],s=o.name,r=o.format),"date"===s?c.d=parseInt(i):"month"===s?c.M=parseInt(i):"year"===s?c.y=parseInt(i):"hours"===s?"h"===r||"hh"===r?(c.h=parseInt(i),c.H=-1):("H"===r||"HH"===r)&&(c.H=parseInt(i)):"minutes"===s?c.m=parseInt(i):"seconds"===s?c.s=parseInt(i):"meridiem"===s&&(c.sm=parseInt(i));-1===c.H&&(c.H=1===c.sm?12===c.h?12:c.h+12:12===c.h?0:c.h);var d=m.setDateInFormat({iDate:c},""),u=m.__validateSelectedDate(d,!0,!1);u||$("#ap-component-"+e).find("#ap-row-"+e+"-"+t).addClass("ap-row-disabled ap-row-invalid")}}},__getSelectedDate:function(e){var t,a,i,n,o,s=this,r=s.getDateObject(s.tmp.selectedDate),l={},m=0,p=[];for(t=0;t<s.tmp.numOfComp;t++)a=s.setting.components[t],i=$(s.tmp.overlaySelector).find("#ap-component-"+t+" .ap-row-selected"),n=i.length>0?i[0]:null,o=parseInt($(n).data("value")),p.push(o),"date"===a.name?r.d=isNaN(o)?r.d:o:"day"===a.name?r.D=isNaN(o)?r.D:o:"month"===a.name?r.M=isNaN(o)?r.M:o:"year"===a.name?r.y=isNaN(o)?r.y:o:"hours"===a.name?"h"===a.format||"hh"===a.format?(r.h=isNaN(o)?r.h:o,r.H=-1):r.H=isNaN(o)?r.H:o:"minutes"===a.name?r.m=isNaN(o)?r.m:o:"seconds"===a.name?r.s=isNaN(o)?r.s:o:"meridiem"===a.name&&(m=isNaN(o)?"a"===r.sm?0:1:o);-1===r.H&&(r.H=1===m?12===r.h?12:r.h+12:12===r.h?0:r.h);var c=s._getNumberOfDaysOfMonth(r.M,r.y);return r.d>c&&(r.d=c),l=s.setDateInFormat({iDate:r},""),e?[l,p]:l},__validateSelectedDate:function(e,t,a){var i=this,n=i.getDateObject(e);if($.CF.isValid(i.tmp.oArrPDisable)){var o,s,r,l,m,p,c,d="datetime"===i.tmp.sDateTimeMode||"date"===i.tmp.sDateTimeMode,u="datetime"===i.tmp.sDateTimeMode||"time"===i.tmp.sDateTimeMode,g=!1,f=!0;if(!g&&d&&i.tmp.oArrPDisable.day.length>0)for(o=0;o<i.tmp.oArrPDisable.day.length;o++)if(i.tmp.oArrPDisable.day[o]===n.D){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,e,"day"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}if(!g&&d&&i.tmp.oArrPDisable.date.length>0)for(o=0;o<i.tmp.oArrPDisable.date.length;o++)if(p=i.tmp.oArrPDisable.date[o],$.CF.isValid(p.val)){if(0===i.compareDates(e,p.val)){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,e,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.start)&&$.CF.isValid(p.end)){if(i.compareDates(e,p.start)>=0&&i.compareDates(e,p.end)<=0){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,p.start,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.start)){if(i.compareDates(e,p.start)>=0){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!0,p.start,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.end)){if(i.compareDates(e,p.end)<=0){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!1,p.end,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.min)&&$.CF.isValid(p.max)){if(r=i.compareDates(e,p.min)<0,l=i.compareDates(e,p.max)>0,m=r?!0:l?!1:!0,r||l){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(m,p.min,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.min)){if(i.compareDates(e,p.min)<0){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!1,p.min,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.max)&&i.compareDates(e,p.max)>0){0===i.compareDates(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!0,p.max,"date"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}if(!g&&u&&i.tmp.oArrPDisable.time.length>0)for(o=0;o<i.tmp.oArrPDisable.time.length;o++){var h=i.tmp.oArrPDisable.time[o],v=!1;if($.CF.isValid(h.day)&&h.day.length>0)for(s=0;s<h.day.length&&!(v=h.day[s]===n.D);s++);else v=!0;if(v)for(s=0;s<h.val.length;s++)if(c=h.val[s],$.CF.isValid(c.val)){if(0===i.compareTimes(e,c.val)){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,e,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(c.start)&&$.CF.isValid(c.end)){if(i.compareTimes(e,c.start)>=0&&i.compareTimes(e,c.end)<=0){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,c.start,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(c.start)){if(i.compareTimes(e,c.start)>=0){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!0,c.start,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(c.end)){if(i.compareTimes(e,c.end)<=0){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!1,c.end,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(c.min)&&$.CF.isValid(c.max)){if(r=i.compareTimes(e,c.min)<0,l=i.compareTimes(e,c.max)>0,m=r?!0:l?!1:!0,r||l){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(m,c.min,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(c.min)){if(i.compareTimes(e,c.min)<0){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!1,c.min,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(c.max)&&i.compareTimes(e,c.max)>0){0===i.compareTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!0,c.max,"time"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}if(!g&&u&&i.tmp.oArrPDisable.datetime.length>0)for(o=0;o<i.tmp.oArrPDisable.datetime.length;o++)if(p=i.tmp.oArrPDisable.datetime[o],$.CF.isValid(p.val)){if(0===i.compareDateTimes(e,p.val)){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,e,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.start)&&$.CF.isValid(p.end)){if(i.compareDateTimes(e,p.start)>=0&&i.compareDateTimes(e,p.end)<=0){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(a,p.start,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.start)){if(i.compareDateTimes(e,p.start)>=0){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!0,p.start,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.end)){if(i.compareDateTimes(e,p.end)<=0){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!1,p.end,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.min)&&$.CF.isValid(p.max)){if(r=i.compareDates(e,p.min)<0,l=i.compareDates(e,p.max)>0,m=r?!0:l?!1:!0,r||l){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(m,p.min,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.min)){if(i.compareDateTimes(e,p.min)<0){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!1,p.min,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}}else if($.CF.isValid(p.max)&&i.compareDateTimes(e,p.max)>0){0===i.compareDateTimes(e,i.tmp.selectedDate)?(g=!0,e=i._findValidSelectedDate(!0,p.max,"datetime"),i.tmp.selectedDate=new Date(e),i.__scrollToSelectedRow()):t?f=!1:i.__scrollToSelectedRow();break}if(t)return f}else if(t)return!0},_findValidSelectedDate:function(e,t,a){var i=this;if("day"===a||"date"===a){$.CF.isValid(i.setting.minValue)&&i.compareDates(i.setting.minValue,t)>=0&&(t=new Date(i.setting.minValue),e=!1),$.CF.isValid(i.setting.maxValue)&&i.compareDates(i.setting.maxValue,t)<=0&&(t=new Date(i.setting.maxValue),e=!0);do if(t=e?new Date(t.getTime()-$.AnyPicker.extra.iMS.d):new Date(t.getTime()+$.AnyPicker.extra.iMS.d),i.__validateSelectedDate(t,!0,!1)&&(!$.CF.isValid(i.setting.minValue)||$.CF.isValid(i.setting.minValue)&&i.compareDates(i.setting.minValue,t)<=0)&&(!$.CF.isValid(i.setting.maxValue)||$.CF.isValid(i.setting.maxValue)&&i.compareDates(i.setting.maxValue,t)>=0))return t;while((!$.CF.isValid(i.setting.minValue)||$.CF.isValid(i.setting.minValue)&&i.compareDates(i.setting.minValue,t)<=0)&&(!$.CF.isValid(i.setting.maxValue)||$.CF.isValid(i.setting.maxValue)&&i.compareDates(i.setting.maxValue,t)>=0))}else if("time"===a){$.CF.isValid(i.setting.minValue)&&i.compareTimes(i.setting.minValue,t)>=0&&(t=new Date(i.setting.minValue),e=!1),$.CF.isValid(i.setting.maxValue)&&i.compareTimes(i.setting.maxValue,t)<=0&&(t=new Date(i.setting.maxValue),e=!0);do if(t=e?new Date(t.getTime()-$.AnyPicker.extra.iMS.m*i.setting.intervals.m):new Date(t.getTime()+$.AnyPicker.extra.iMS.m*i.setting.intervals.m),i.__validateSelectedDate(t,!0,!1)&&(!$.CF.isValid(i.setting.minValue)||$.CF.isValid(i.setting.minValue)&&i.compareTimes(i.setting.minValue,t)<=0)&&(!$.CF.isValid(i.setting.maxValue)||$.CF.isValid(i.setting.maxValue)&&i.compareTimes(i.setting.maxValue,t)>=0))return t;while((!$.CF.isValid(i.setting.minValue)||$.CF.isValid(i.setting.minValue)&&i.compareTimes(i.setting.minValue,t)<=0)&&(!$.CF.isValid(i.setting.maxValue)||$.CF.isValid(i.setting.maxValue)&&i.compareTimes(i.setting.maxValue,t)>=0))}else if("datetime"===a){$.CF.isValid(i.setting.minValue)&&i.compareDateTimes(i.setting.minValue,t)>=0&&(t=new Date(i.setting.minValue),e=!1),$.CF.isValid(i.setting.maxValue)&&i.compareDateTimes(i.setting.maxValue,t)<=0&&(t=new Date(i.setting.maxValue),e=!0);do if(t=e?new Date(t.getTime()-$.AnyPicker.extra.iMS.m*i.setting.intervals.m):new Date(t.getTime()+$.AnyPicker.extra.iMS.m*i.setting.intervals.m),i.__validateSelectedDate(t,!0,!1)&&(!$.CF.isValid(i.setting.minValue)||$.CF.isValid(i.setting.minValue)&&i.compareDateTimes(i.setting.minValue,t)<=0)&&(!$.CF.isValid(i.setting.maxValue)||$.CF.isValid(i.setting.maxValue)&&i.compareDateTimes(i.setting.maxValue,t)>=0))return t;while((!$.CF.isValid(i.setting.minValue)||$.CF.isValid(i.setting.minValue)&&i.compareDateTimes(i.setting.minValue,t)<=0)&&(!$.CF.isValid(i.setting.maxValue)||$.CF.isValid(i.setting.maxValue)&&i.compareDateTimes(i.setting.maxValue,t)>=0))}return $.CF.isValid(i.setting.minValue)?i.setting.minValue:void 0},__setDaysOfMonthInDatePicker:function(){var e,t,a=this,i=null,n=null;for(e=0;e<a.tmp.numOfComp;e++)t=a.setting.components[e],"date"===t.name&&(i=t.component,n=t.format);if(null!==i){var o=a.getDateObject(a.tmp.selectedDate),s=a._getNumberOfDaysOfMonth(o.M,o.y),r=!1;for(e=s+1;31>=e;e++){var l=$("#ap-component-"+i).find("#ap-row-"+i+"-"+(e-1));l.addClass("ap-row-disabled ap-row-hidden"),r||(r="true"===l.attr("aria-selected")?!0:!1)}if(r){var m=new Date(o.y,o.M,s,o.H,o.m,o.s,o.ms);a.__validateSelectedDate(m,!1,!0),a.__scrollToSelectedRow()}}},setDateInFormat:function(e,t){var a=this;void 0===e.date&&void 0===e.iDate&&(e.date=a._getCurrentDate()),void 0===e.iDate?e.iDate={d:e.date.getDate(),M:e.date.getMonth(),y:e.date.getFullYear(),H:e.date.getHours(),m:e.date.getMinutes(),s:e.date.getSeconds(),ms:e.date.getMilliseconds()}:e.iDate={d:void 0!==e.iDate.d?e.iDate.d:1,M:void 0!==e.iDate.M?e.iDate.M:$.AnyPicker.extra.dToday.getMonth(),y:void 0!==e.iDate.y?e.iDate.y:$.AnyPicker.extra.dToday.getFullYear(),H:void 0!==e.iDate.H?e.iDate.H:0,m:void 0!==e.iDate.m?e.iDate.m:0,s:void 0!==e.iDate.s?e.iDate.s:0,ms:void 0!==e.iDate.ms?e.iDate.ms:0};var i;return $.CF.isValid(t)?"START"===t?i=new Date(e.iDate.y,e.iDate.M,e.iDate.d,0,0,0,0):"END"===t&&(i=new Date(e.iDate.y,e.iDate.M,e.iDate.d,23,59,59,999)):i=new Date(e.iDate.y,e.iDate.M,e.iDate.d,e.iDate.H,e.iDate.m,e.iDate.s,e.iDate.ms),i},_getCurrentDate:function(){var e=this,t=e.getDateByAddingOutputTZOffset(e.convertToUTC(new Date),e.setting.tzOffset);return t},convertToUTC:function(e,t){var a=this;return new Date(e.getTime()-(void 0===t||""===t||null===t?-(e.getTimezoneOffset()*$.AnyPicker.extra.iMS.m):a._getTZOffsetInMS(t)))},_getTZOffsetInMS:function(e){var t=this,a=0;if(void 0===e||""===e||null===e)a=-($.AnyPicker.extra.dToday.getTimezoneOffset()*$.AnyPicker.extra.iMS.m);else{var i=t._matchRegex(/^([+|-]{1})([0-1]{0,1}[0-9]{1}):([0-6]{0,1}[0-9]{1})$/,e);a=parseInt(i[2])*$.AnyPicker.extra.iMS.h+parseInt(i[3])*$.AnyPicker.extra.iMS.m,a="+"===i[1]?a:-a}return a},getDateByAddingOutputTZOffset:function(e,t){var a=this;return new Date(e.getTime()+a._getTZOffsetInMS(t))},normalizeDateTimeWithOffset:function(e,t,a){var i=this;return i.getDateByAddingOutputTZOffset(i.convertToUTC(e,t),a)},_getNumberOfDaysOfMonth:function(e,t){var a=[31,28,31,30,31,30,31,31,30,31,30,31],i=[31,29,31,30,31,30,31,31,30,31,30,31];return t%4===0?i[e]:a[e]},_normalizeDateTime:function(e,t,a){var i,n=this,o={d:e.getDate(),M:e.getMonth(),y:e.getFullYear(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()};switch(a){case"s":"START"===t?i=new Date(o.y,o.M,o.d,o.H,o.m,0,0):"END"===t&&(i=new Date(o.y,o.M,o.d,o.H,o.m,59,999));break;case"m":"START"===t?i=new Date(o.y,o.M,o.d,o.H,0,0,0):"END"===t&&(i=new Date(o.y,o.M,o.d,o.H,59,59,999));break;case"h":case"T":"START"===t?i=new Date(o.y,o.M,o.d,0,0,0,0):"END"===t&&(i=new Date(o.y,o.M,o.d,23,59,59,999));break;case"d":case"dE":"START"===t?i=new Date(o.y,o.M,1,0,0,0,0):"END"===t&&(i=new Date(o.y,o.M,n._getNumberOfDaysOfMonth(o.M,o.y),0,0,0,0));break;case"M":case"ME":case"y":case"yE":"START"===t?i=new Date(o.y,0,1,0,0,0,0):"END"===t&&(i=new Date(o.y,11,n._getNumberOfDaysOfMonth(11,o.y),0,0,0,0))}return("dE"===a||"ME"===a||"yE"===a)&&(i=n._normalizeDateTime(i,"END","T")),i},_getDifference:function(e,t,a){var i,n=t.getTime()-a.getTime();return"ms"===e?i=n:"s"===e?i=n/$.AnyPicker.extra.iMS.s:"m"===e?i=n/$.AnyPicker.extra.iMS.m:"h"===e?i=n/$.AnyPicker.extra.iMS.h:"d"===e?i=n/$.AnyPicker.extra.iMS.d:"M"===e?i=n/$.AnyPicker.extra.iMS.m:"y"===e&&(i=n/$.AnyPicker.extra.iMS.y),i},compareDates:function(e,t){var a=this;e=a._normalizeDateTime(e,"START","T"),t=a._normalizeDateTime(t,"START","T");var i=a._getDifference("d",e,t);return 0===i?i:i/Math.abs(i)},compareDateTimes:function(e,t){var a=this,i=a._getDifference("m",e,t);return 0===i?i:i/Math.abs(i)},compareTimes:function(e,t){var a=this,i=new Date($.AnyPicker.extra.dToday),n=new Date($.AnyPicker.extra.dToday);i.setHours(e.getHours()),i.setMinutes(e.getMinutes()),i.setSeconds(e.getSeconds()),n.setHours(t.getHours()),n.setMinutes(t.getMinutes()),n.setSeconds(t.getSeconds()),a.compareDateTimes(i,n)},getNumberStringInFormat:function(e,t,a){var i,n=this,o="",s=e.toString(),r=s.length;if(0!==t)for(i=0;t-r>i;i++)o+=a?n.setting.i18n.numbers[0]:"0";if(a)for(i=0;r>i;i++)o+=n.setting.i18n.numbers[parseInt(s.charAt(i))];else o+=s;return o},getDateObject:function(e){var t={D:e.getDay(),d:e.getDate(),M:e.getMonth(),y:e.getFullYear(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds(),ms:e.getMilliseconds()};return t.h=t.H>12?t.H-12:0===t.H?12:t.H,t.me=t.H<12?"am":"pm",t.sm=t.H<12?"a":"p",t}})}()},function(e,t){!function(e){e.AnyPicker.i18n["zh-cn"]=e.extend(e.AnyPicker.i18n["zh-cn"],{headerTitle:"选择",setButton:"确认",clearButton:"明确",nowButton:"现在",cancelButton:"取消",dateSwitch:"日期",timeSwitch:"时间",veryShortDays:"日_一_二_三_四_五_六".split("_"),shortDays:"周日_周一_周二_周三_周四_周五_周六".split("_"),fullDays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),shortMonths:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),fullMonths:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),numbers:"0_1_2_3_4_5_6_7_8_9".split("_"),meridiem:{a:["a","p"],aa:["am","pm"],A:["A","P"],AA:["AM","PM"]}})}(jQuery)}]); |
static/huodong/2016yuanxiao/1.1.9/js/libs.js
0 → 100644
1 | +!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,s){for(var a,u,l=0,c=[];l<o.length;l++)u=o[l],i[u]&&c.push.apply(c,i[u]),i[u]=0;for(a in s)e[a]=s[a];for(n&&n(o,s);c.length;)c.shift().call(null,t);return s[0]?(r[0]=0,t(0)):void 0};var r={},i={0:0};t.e=function(e,n){if(0===i[e])return n.call(null,t);if(void 0!==i[e])i[e].push(n);else{i[e]=[n];var r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.src=t.p+""+e+"."+({1:"info",2:"wait",3:"share",4:"result",5:"home"}[e]||e)+".js",r.appendChild(o)}},t.m=e,t.c=r,t.p="/1.1.9/js"}([,function(e,t,n){var r,i;/*! | ||
2 | + * jQuery JavaScript Library v2.2.0 | ||
3 | + * http://jquery.com/ | ||
4 | + * | ||
5 | + * Includes Sizzle.js | ||
6 | + * http://sizzlejs.com/ | ||
7 | + * | ||
8 | + * Copyright jQuery Foundation and other contributors | ||
9 | + * Released under the MIT license | ||
10 | + * http://jquery.org/license | ||
11 | + * | ||
12 | + * Date: 2016-01-08T20:02Z | ||
13 | + */ | ||
14 | +!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){function s(e){var t=!!e&&"length"in e&&e.length,n=le.type(e);return"function"===n||le.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function a(e,t,n){if(le.isFunction(t))return le.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return le.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(xe.test(t))return le.filter(t,e,n);t=le.filter(t,e)}return le.grep(e,function(e){return re.call(t,e)>-1!==n})}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return le.each(e.match(Se)||[],function(e,n){t[n]=!0}),t}function c(){Z.removeEventListener("DOMContentLoaded",c),n.removeEventListener("load",c),le.ready()}function f(){this.expando=le.expando+f.uid++}function p(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(qe,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Le.test(n)?le.parseJSON(n):n}catch(i){}Ae.set(e,t,n)}else n=void 0;return n}function d(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return le.css(e,t,"")},u=a(),l=n&&n[3]||(le.cssNumber[t]?"":"px"),c=(le.cssNumber[t]||"px"!==l&&+u)&&Me.exec(le.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,le.style(e,t,c+l);while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function h(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&le.nodeName(e,t)?le.merge([e],n):n}function g(e,t){for(var n=0,r=e.length;r>n;n++)je.set(e[n],"globalEval",!t||je.get(t[n],"globalEval"))}function m(e,t,n,r,i){for(var o,s,a,u,l,c,f=t.createDocumentFragment(),p=[],d=0,m=e.length;m>d;d++)if(o=e[d],o||0===o)if("object"===le.type(o))le.merge(p,o.nodeType?[o]:o);else if(Be.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Pe.exec(o)||["",""])[1].toLowerCase(),u=We[a]||We._default,s.innerHTML=u[1]+le.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;le.merge(p,s.childNodes),s=f.firstChild,s.textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&le.inArray(o,r)>-1)i&&i.push(o);else if(l=le.contains(o.ownerDocument,o),s=h(f.appendChild(o),"script"),l&&g(s),n)for(c=0;o=s[c++];)Ie.test(o.type||"")&&n.push(o);return f}function v(){return!0}function y(){return!1}function x(){try{return Z.activeElement}catch(e){}}function b(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)b(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=y;else if(!i)return this;return 1===o&&(s=i,i=function(e){return le().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=le.guid++)),e.each(function(){le.event.add(this,t,i,r,n)})}function w(e,t){return le.nodeName(e,"table")&&le.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function T(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function C(e){var t=Ye.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(je.hasData(e)&&(o=je.access(e),s=je.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)le.event.add(t,i,l[i][n])}Ae.hasData(e)&&(a=Ae.access(e),u=le.extend({},a),Ae.set(t,u))}}function S(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Re.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function E(e,t,n,r){t=te.apply([],t);var i,o,s,a,u,l,c=0,f=e.length,p=f-1,d=t[0],g=le.isFunction(d);if(g||f>1&&"string"==typeof d&&!ae.checkClone&&Ue.test(d))return e.each(function(i){var o=e.eq(i);g&&(t[0]=d.call(this,i,o.html())),E(o,t,n,r)});if(f&&(i=m(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=le.map(h(i,"script"),T),a=s.length;f>c;c++)u=i,c!==p&&(u=le.clone(u,!0,!0),a&&le.merge(s,h(u,"script"))),n.call(e[c],u,c);if(a)for(l=s[s.length-1].ownerDocument,le.map(s,C),c=0;a>c;c++)u=s[c],Ie.test(u.type||"")&&!je.access(u,"globalEval")&&le.contains(l,u)&&(u.src?le._evalUrl&&le._evalUrl(u.src):le.globalEval(u.textContent.replace(Qe,"")))}return e}function N(e,t,n){for(var r,i=t?le.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||le.cleanData(h(r)),r.parentNode&&(n&&le.contains(r.ownerDocument,r)&&g(h(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t){var n=le(t.createElement(e)).appendTo(t.body),r=le.css(n[0],"display");return n.detach(),r}function j(e){var t=Z,n=Je[e];return n||(n=D(e,t),"none"!==n&&n||(Ge=(Ge||le("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Ge[0].contentDocument,t.write(),t.close(),n=D(e,t),Ge.detach()),Je[e]=n),n}function A(e,t,n){var r,i,o,s,a=e.style;return n=n||et(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||le.contains(e.ownerDocument,e)||(s=le.style(e,t)),!ae.pixelMarginRight()&&Ze.test(s)&&Ke.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function q(e){if(e in at)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=st.length;n--;)if(e=st[n]+t,e in at)return e}function H(e,t,n){var r=Me.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function M(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=le.css(e,n+Oe[o],!0,i)),r?("content"===n&&(s-=le.css(e,"padding"+Oe[o],!0,i)),"margin"!==n&&(s-=le.css(e,"border"+Oe[o]+"Width",!0,i))):(s+=le.css(e,"padding"+Oe[o],!0,i),"padding"!==n&&(s+=le.css(e,"border"+Oe[o]+"Width",!0,i)));return s}function O(e,t,r){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,s=et(e),a="border-box"===le.css(e,"boxSizing",!1,s);if(Z.msFullscreenElement&&n.top!==n&&e.getClientRects().length&&(o=Math.round(100*e.getBoundingClientRect()[t])),0>=o||null==o){if(o=A(e,t,s),(0>o||null==o)&&(o=e.style[t]),Ze.test(o))return o;i=a&&(ae.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+M(e,t,r||(a?"border":"content"),i,s)+"px"}function F(e,t){for(var n,r,i,o=[],s=0,a=e.length;a>s;s++)r=e[s],r.style&&(o[s]=je.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Fe(r)&&(o[s]=je.access(r,"olddisplay",j(r.nodeName)))):(i=Fe(r),"none"===n&&i||je.set(r,"olddisplay",i?n:le.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function P(){return n.setTimeout(function(){ut=void 0}),ut=le.now()}function I(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=Oe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function W(e,t,n){for(var r,i=(_.tweeners[t]||[]).concat(_.tweeners["*"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,t,e))return r}function B(e,t,n){var r,i,o,s,a,u,l,c,f=this,p={},d=e.style,h=e.nodeType&&Fe(e),g=je.get(e,"fxshow");n.queue||(a=le._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,le.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=le.css(e,"display"),c="none"===l?je.get(e,"olddisplay")||j(e.nodeName):l,"inline"===c&&"none"===le.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],ct.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}p[r]=g&&g[r]||le.style(e,r)}else l=void 0;if(le.isEmptyObject(p))"inline"===("none"===l?j(e.nodeName):l)&&(d.display=l);else{g?"hidden"in g&&(h=g.hidden):g=je.access(e,"fxshow",{}),o&&(g.hidden=!h),h?le(e).show():f.done(function(){le(e).hide()}),f.done(function(){var t;je.remove(e,"fxshow");for(t in p)le.style(e,t,p[t])});for(r in p)s=W(h?g[r]:0,r,f),r in g||(g[r]=s.start,h&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function $(e,t){var n,r,i,o,s;for(n in e)if(r=le.camelCase(n),i=t[r],o=e[n],le.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),s=le.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function _(e,t,n){var r,i,o=0,s=_.prefilters.length,a=le.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=ut||P(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,s=0,u=l.tweens.length;u>s;s++)l.tweens[s].run(o);return a.notifyWith(e,[l,o,n]),1>o&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:le.extend({},t),opts:le.extend(!0,{specialEasing:{},easing:le.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||P(),duration:n.duration,tweens:[],createTween:function(t,n){var r=le.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for($(c,l.opts.specialEasing);s>o;o++)if(r=_.prefilters[o].call(l,e,c,l.opts))return le.isFunction(r.stop)&&(le._queueHooks(l.elem,l.opts.queue).stop=le.proxy(r.stop,r)),r;return le.map(c,W,l),le.isFunction(l.opts.start)&&l.opts.start.call(e,l),le.fx.timer(le.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function X(e){return e.getAttribute&&e.getAttribute("class")||""}function z(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Se)||[];if(le.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function V(e,t,n,r){function i(a){var u;return o[a]=!0,le.each(e[a]||[],function(e,a){var l=a(t,n,r);return"string"!=typeof l||s||o[l]?s?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},s=e===jt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function U(e,t){var n,r,i=le.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&le.extend(!0,e,r),e}function Y(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function Q(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=l[u+" "+o]||l["* "+o],!s)for(i in l)if(a=i.split(" "),a[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){s===!0?s=l[i]:l[i]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(f){return{state:"parsererror",error:s?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function G(e,t,n,r){var i;if(le.isArray(t))le.each(t,function(t,i){n||Ht.test(e)?r(e,i):G(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==le.type(t))r(e,t);else for(i in t)G(e+"["+i+"]",t[i],n,r)}function J(e){return le.isWindow(e)?e:9===e.nodeType&&e.defaultView}var K=[],Z=n.document,ee=K.slice,te=K.concat,ne=K.push,re=K.indexOf,ie={},oe=ie.toString,se=ie.hasOwnProperty,ae={},ue="2.2.0",le=function(e,t){return new le.fn.init(e,t)},ce=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,fe=/^-ms-/,pe=/-([\da-z])/gi,de=function(e,t){return t.toUpperCase()};le.fn=le.prototype={jquery:ue,constructor:le,selector:"",length:0,toArray:function(){return ee.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:ee.call(this)},pushStack:function(e){var t=le.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return le.each(this,e)},map:function(e){return this.pushStack(le.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ne,sort:K.sort,splice:K.splice},le.extend=le.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||le.isFunction(s)||(s={}),a===u&&(s=this,a--);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(le.isPlainObject(r)||(i=le.isArray(r)))?(i?(i=!1,o=n&&le.isArray(n)?n:[]):o=n&&le.isPlainObject(n)?n:{},s[t]=le.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},le.extend({expando:"jQuery"+(ue+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===le.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!le.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){return"object"!==le.type(e)||e.nodeType||le.isWindow(e)?!1:e.constructor&&!se.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[oe.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=le.trim(e),e&&(1===e.indexOf("use strict")?(t=Z.createElement("script"),t.text=e,Z.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(fe,"ms-").replace(pe,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;n>r&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ce,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?le.merge(n,"string"==typeof e?[e]:e):ne.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:re.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,s=e.length,a=!n;s>o;o++)r=!t(e[o],o),r!==a&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,a=[];if(s(e))for(r=e.length;r>o;o++)i=t(e[o],o,n),null!=i&&a.push(i);else for(o in e)i=t(e[o],o,n),null!=i&&a.push(i);return te.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),le.isFunction(e)?(r=ee.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ee.call(arguments)))},i.guid=e.guid=e.guid||le.guid++,i):void 0},now:Date.now,support:ae}),"function"==typeof Symbol&&(le.fn[Symbol.iterator]=K[Symbol.iterator]),le.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ie["[object "+t+"]"]=t.toLowerCase()});var he=/*! | ||
15 | + * Sizzle CSS Selector Engine v2.2.1 | ||
16 | + * http://sizzlejs.com/ | ||
17 | + * | ||
18 | + * Copyright jQuery Foundation and other contributors | ||
19 | + * Released under the MIT license | ||
20 | + * http://jquery.org/license | ||
21 | + * | ||
22 | + * Date: 2015-10-17 | ||
23 | + */ | ||
24 | +function(e){function t(e,t,n,r){var i,o,s,a,u,l,f,d,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&((t?t.ownerDocument||t:W)!==q&&L(t),t=t||q,M)){if(11!==g&&(l=ve.exec(e)))if(i=l[1]){if(9===g){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(h&&(s=h.getElementById(i))&&P(t,s)&&s.id===i)return n.push(s),n}else{if(l[2])return K.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!z[e+" "]&&(!O||!O.test(e))){if(1!==g)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,"\\$&"):t.setAttribute("id",a=I),f=S(e),o=f.length,u=pe.test(a)?"#"+a:"[id='"+a+"']";o--;)f[o]=u+" "+p(f[o]);d=f.join(","),h=ye.test(e)&&c(t.parentNode)||t}if(d)try{return K.apply(n,h.querySelectorAll(d)),n}catch(m){}finally{a===I&&t.removeAttribute("id")}}}return N(e.replace(ae,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=q.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||U)-(~e.sourceIndex||U);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,s){var a,u,l,c=[B,o];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[I]||(t[I]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(a=u[r])&&a[0]===B&&a[1]===o)return c[2]=a[2];if(u[r]=c,c[2]=e(t,n,s))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;o>i;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var l,c,f,p=[],d=[],h=s.length,v=r||g(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?v:m(v,p,e,a,u),x=n?o||(r?e:h||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(l=m(x,d),i(l,[],a,u),c=l.length;c--;)(f=l[c])&&(x[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(y[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?ee(r,f):p[c])>-1&&(r[l]=!(s[l]=f))}}else x=m(x===s?x.splice(h,x.length):x),o?o(null,s,x,u):K.apply(s,x)})}function y(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],s=o||T.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),l=d(function(e){return ee(t,e)>-1},s,!0),c=[function(e,n,r){var i=!o&&(r||n!==D)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];i>a;a++)if(n=T.relative[e[a].type])c=[d(h(c),n)];else{if(n=T.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;i>r&&!T.relative[e[r].type];r++);return v(a>1&&h(c),a>1&&p(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,r>a&&y(e.slice(a,r)),i>r&&y(e=e.slice(r)),i>r&&p(e))}c.push(n)}return h(c)}function x(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,l){var c,f,p,d=0,h="0",g=r&&[],v=[],y=D,x=r||o&&T.find.TAG("*",l),b=B+=null==y?1:Math.random()||.1,w=x.length;for(l&&(D=s===q||s||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,s||c.ownerDocument===q||(L(c),a=!M);p=e[f++];)if(p(c,s||q,a)){u.push(c);break}l&&(B=b)}i&&((c=!p&&c)&&d--,r&&g.push(c))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];)p(g,v,s,a);if(r){if(d>0)for(;h--;)g[h]||v[h]||(v[h]=G.call(u));v=m(v)}K.apply(u,v),l&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(B=b,D=y),g};return i?r(s):s}var b,w,T,C,k,S,E,N,D,j,A,L,q,H,M,O,F,R,P,I="sizzle"+1*new Date,W=e.document,B=0,$=0,_=n(),X=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},U=1<<31,Y={}.hasOwnProperty,Q=[],G=Q.pop,J=Q.push,K=Q.push,Z=Q.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),ae=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),pe=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{K.apply(Q=Z.call(W.childNodes),W.childNodes),Q[W.childNodes.length].nodeType}catch(Ce){K={apply:Q.length?function(e,t){J.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:W;return r!==q&&9===r.nodeType&&r.documentElement?(q=r,H=q.documentElement,M=!k(q),(n=q.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(q.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(q.getElementsByClassName),w.getById=i(function(e){return H.appendChild(e).id=I,!q.getElementsByName||!q.getElementsByName(I).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&M?t.getElementsByClassName(e):void 0},F=[],O=[],(w.qsa=me.test(q.querySelectorAll))&&(i(function(e){H.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+I+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||O.push(".#.+[+~]")}),i(function(e){var t=q.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=me.test(R=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&i(function(e){w.disconnectedMatch=R.call(e,"div"),R.call(e,"[s!='']:x"),F.push("!=",oe)}),O=O.length&&new RegExp(O.join("|")),F=F.length&&new RegExp(F.join("|")),t=me.test(H.compareDocumentPosition),P=t||me.test(H.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===q||e.ownerDocument===W&&P(W,e)?-1:t===q||t.ownerDocument===W&&P(W,t)?1:j?ee(j,e)-ee(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===q?-1:t===q?1:i?-1:o?1:j?ee(j,e)-ee(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===W?-1:u[r]===W?1:0},q):q},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==q&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&M&&!z[n+" "]&&(!F||!F.test(n))&&(!O||!O.test(n)))try{var r=R.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,q,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==q&&L(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==q&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!M):void 0;return void 0!==r?r:w.attributes||!M?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!w.detectDuplicates,j=!w.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(p=m,f=p[I]||(p[I]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d&&l[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[B,d,x];break}}else if(y&&(p=t,f=p[I]||(p[I]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d),x===!1)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&(f=p[I]||(p[I]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),c[e]=[B,x]),p!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=ee(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=E(e.replace(ae,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===H},focus:function(e){return e===q.activeElement&&(!q.hasFocus||q.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})T.pseudos[b]=u(b);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,S=t.tokenize=function(e,n){var r,i,o,s,a,u,l,c=X[e+" "];if(c)return n?0:c.slice(0);for(a=e,u=[],l=T.preFilter;a;){(!r||(i=ue.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=le.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ae," ")}),a=a.slice(r.length));for(s in T.filter)!(i=de[s].exec(a))||l[s]&&!(i=l[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):X(e,u).slice(0)},E=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=S(e)),n=t.length;n--;)o=y(t[n]),o[I]?r.push(o):i.push(o);o=z(e,x(i,r)),o.selector=e}return o},N=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,f=!r&&S(e=l.selector||e);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&w.getById&&9===t.nodeType&&M&&T.relative[o[1].type]){if(t=(T.find.ID(s.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(s=o[i],!T.relative[a=s.type]);)if((u=T.find[a])&&(r=u(s.matches[0].replace(be,we),ye.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&p(o),!e)return K.apply(n,r),n;break}}return(l||E(e,f))(r,t,!M,n,!t||ye.test(e)&&c(t.parentNode)||t),n},w.sortStable=I.split("").sort(V).join("")===I,w.detectDuplicates=!!A,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(q.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);le.find=he,le.expr=he.selectors,le.expr[":"]=le.expr.pseudos,le.uniqueSort=le.unique=he.uniqueSort,le.text=he.getText,le.isXMLDoc=he.isXML,le.contains=he.contains;var ge=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&le(e).is(n))break;r.push(e)}return r},me=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ve=le.expr.match.needsContext,ye=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xe=/^.[^:#\[\.,]*$/;le.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?le.find.matchesSelector(r,e)?[r]:[]:le.find.matches(e,le.grep(t,function(e){return 1===e.nodeType}))},le.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(le(e).filter(function(){for(t=0;n>t;t++)if(le.contains(i[t],this))return!0}));for(t=0;n>t;t++)le.find(e,i[t],r);return r=this.pushStack(n>1?le.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&ve.test(e)?le(e):e||[],!1).length}});var be,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Te=le.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||be,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:we.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof le?t[0]:t,le.merge(this,le.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Z,!0)),ye.test(r[1])&&le.isPlainObject(t))for(r in t)le.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=Z.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Z,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):le.isFunction(e)?void 0!==n.ready?n.ready(e):e(le):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),le.makeArray(e,this))};Te.prototype=le.fn,be=le(Z);var Ce=/^(?:parents|prev(?:Until|All))/,ke={children:!0,contents:!0,next:!0,prev:!0};le.fn.extend({has:function(e){var t=le(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(le.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=ve.test(e)||"string"!=typeof e?le(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&le.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?le.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?re.call(le(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(le.uniqueSort(le.merge(this.get(),le(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),le.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ge(e,"parentNode")},parentsUntil:function(e,t,n){return ge(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return ge(e,"nextSibling")},prevAll:function(e){return ge(e,"previousSibling")},nextUntil:function(e,t,n){return ge(e,"nextSibling",n)},prevUntil:function(e,t,n){return ge(e,"previousSibling",n)},siblings:function(e){return me((e.parentNode||{}).firstChild,e)},children:function(e){return me(e.firstChild)},contents:function(e){return e.contentDocument||le.merge([],e.childNodes)}},function(e,t){le.fn[e]=function(n,r){var i=le.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=le.filter(r,i)),this.length>1&&(ke[e]||le.uniqueSort(i),Ce.test(e)&&i.reverse()),this.pushStack(i)}});var Se=/\S+/g;le.Callbacks=function(e){e="string"==typeof e?l(e):le.extend({},e);var t,n,r,i,o=[],s=[],a=-1,u=function(){for(i=e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)o[a].apply(n[0],n[1])===!1&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function r(t){le.each(t,function(t,n){le.isFunction(n)?e.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==le.type(n)&&r(n)})}(arguments),n&&!t&&u()),this},remove:function(){return le.each(arguments,function(e,t){for(var n;(n=le.inArray(t,o,n))>-1;)o.splice(n,1),a>=n&&a--}),this},has:function(e){return e?le.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},le.extend({Deferred:function(e){var t=[["resolve","done",le.Callbacks("once memory"),"resolved"],["reject","fail",le.Callbacks("once memory"),"rejected"],["notify","progress",le.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return le.Deferred(function(n){le.each(t,function(t,o){var s=le.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&le.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?le.extend(e,r):r}},i={};return r.pipe=r.then,le.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ee.call(arguments),s=o.length,a=1!==s||e&&le.isFunction(e.promise)?s:0,u=1===a?e:le.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ee.call(arguments):i,r===t?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&le.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,t)).done(l(i,r,o)).fail(u.reject):--a;return a||u.resolveWith(r,o),u.promise()}});var Ee;le.fn.ready=function(e){return le.ready.promise().done(e),this},le.extend({isReady:!1,readyWait:1,holdReady:function(e){e?le.readyWait++:le.ready(!0)},ready:function(e){(e===!0?--le.readyWait:le.isReady)||(le.isReady=!0,e!==!0&&--le.readyWait>0||(Ee.resolveWith(Z,[le]),le.fn.triggerHandler&&(le(Z).triggerHandler("ready"),le(Z).off("ready"))))}}),le.ready.promise=function(e){return Ee||(Ee=le.Deferred(),"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?n.setTimeout(le.ready):(Z.addEventListener("DOMContentLoaded",c),n.addEventListener("load",c))),Ee.promise(e)},le.ready.promise();var Ne=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===le.type(n)){i=!0;for(a in n)Ne(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,le.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(le(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},De=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};f.uid=1,f.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!De(e))return{};var t=e[this.expando];return t||(t={},De(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,le.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{le.isArray(t)?r=t.concat(t.map(le.camelCase)):(i=le.camelCase(t),t in o?r=[t,i]:(r=i,r=r in o?[r]:r.match(Se)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||le.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!le.isEmptyObject(t)}};var je=new f,Ae=new f,Le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qe=/[A-Z]/g;le.extend({hasData:function(e){return Ae.hasData(e)||je.hasData(e)},data:function(e,t,n){return Ae.access(e,t,n)},removeData:function(e,t){Ae.remove(e,t)},_data:function(e,t,n){return je.access(e,t,n)},_removeData:function(e,t){je.remove(e,t)}}),le.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Ae.get(o),1===o.nodeType&&!je.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=le.camelCase(r.slice(5)),p(o,r,i[r])));je.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ae.set(this,e)}):Ne(this,function(t){var n,r;if(o&&void 0===t){if(n=Ae.get(o,e)||Ae.get(o,e.replace(qe,"-$&").toLowerCase()),void 0!==n)return n;if(r=le.camelCase(e),n=Ae.get(o,r),void 0!==n)return n;if(n=p(o,r,void 0),void 0!==n)return n}else r=le.camelCase(e),this.each(function(){var n=Ae.get(this,r);Ae.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&Ae.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ae.remove(this,e)})}}),le.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=je.get(e,t),n&&(!r||le.isArray(n)?r=je.access(e,t,le.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=le.queue(e,t),r=n.length,i=n.shift(),o=le._queueHooks(e,t),s=function(){le.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return je.get(e,n)||je.access(e,n,{empty:le.Callbacks("once memory").add(function(){je.remove(e,[t+"queue",n])})})}}),le.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?le.queue(this[0],e):void 0===t?this:this.each(function(){var n=le.queue(this,e,t);le._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&le.dequeue(this,e)})},dequeue:function(e){return this.each(function(){le.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=le.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)n=je.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var He=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+He+")([a-z%]*)$","i"),Oe=["Top","Right","Bottom","Left"],Fe=function(e,t){return e=t||e,"none"===le.css(e,"display")||!le.contains(e.ownerDocument,e)},Re=/^(?:checkbox|radio)$/i,Pe=/<([\w:-]+)/,Ie=/^$|\/(?:java|ecma)script/i,We={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,"",""]};We.optgroup=We.option,We.tbody=We.tfoot=We.colgroup=We.caption=We.thead,We.th=We.td;var Be=/<|&#?\w+;/;!function(){var e=Z.createDocumentFragment(),t=e.appendChild(Z.createElement("div")),n=Z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ae.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ae.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $e=/^key/,_e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xe=/^([^.]*)(?:\.(.+)|)/;le.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=je.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=le.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(t){return"undefined"!=typeof le&&le.event.triggered!==t.type?le.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Se)||[""],l=t.length;l--;)a=Xe.exec(t[l])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d&&(f=le.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=le.event.special[d]||{},c=le.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&le.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,s)!==!1||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),le.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=je.hasData(e)&&je.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Se)||[""],l=t.length;l--;)if(a=Xe.exec(t[l])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d){for(f=le.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1), | ||
25 | +c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||le.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)le.event.remove(e,d+t[l],n,r,!0);le.isEmptyObject(u)&&je.remove(e,"handle events")}},dispatch:function(e){e=le.event.fix(e);var t,n,r,i,o,s=[],a=ee.call(arguments),u=(je.get(this,"events")||{})[e.type]||[],l=le.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(s=le.event.handlers.call(this,e,u),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((le.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?le(i,this).index(u)>-1:le.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||Z,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[le.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=_e.test(i)?this.mouseHooks:$e.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new le.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=Z),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==x()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===x()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&le.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return le.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},le.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},le.Event=function(e,t){return this instanceof le.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?v:y):this.type=e,t&&le.extend(this,t),this.timeStamp=e&&e.timeStamp||le.now(),void(this[le.expando]=!0)):new le.Event(e,t)},le.Event.prototype={constructor:le.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&e.stopImmediatePropagation(),this.stopPropagation()}},le.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){le.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!le.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),le.fn.extend({on:function(e,t,n,r){return b(this,e,t,n,r)},one:function(e,t,n,r){return b(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,le(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=y),this.each(function(){le.event.remove(this,e,n,t)})}});var ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ve=/<script|<style|<link/i,Ue=/checked\s*(?:[^=]|=\s*.checked.)/i,Ye=/^true\/(.*)/,Qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;le.extend({htmlPrefilter:function(e){return e.replace(ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=le.contains(e.ownerDocument,e);if(!(ae.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||le.isXMLDoc(e)))for(s=h(a),o=h(e),r=0,i=o.length;i>r;r++)S(o[r],s[r]);if(t)if(n)for(o=o||h(e),s=s||h(a),r=0,i=o.length;i>r;r++)k(o[r],s[r]);else k(e,a);return s=h(a,"script"),s.length>0&&g(s,!u&&h(e,"script")),a},cleanData:function(e){for(var t,n,r,i=le.event.special,o=0;void 0!==(n=e[o]);o++)if(De(n)){if(t=n[je.expando]){if(t.events)for(r in t.events)i[r]?le.event.remove(n,r):le.removeEvent(n,r,t.handle);n[je.expando]=void 0}n[Ae.expando]&&(n[Ae.expando]=void 0)}}}),le.fn.extend({domManip:E,detach:function(e){return N(this,e,!0)},remove:function(e){return N(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?le.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return E(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=w(this,e);t.appendChild(e)}})},prepend:function(){return E(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=w(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(le.cleanData(h(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return le.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ve.test(e)&&!We[(Pe.exec(e)||["",""])[1].toLowerCase()]){e=le.htmlPrefilter(e);try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(le.cleanData(h(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return E(this,arguments,function(t){var n=this.parentNode;le.inArray(this,e)<0&&(le.cleanData(h(this)),n&&n.replaceChild(t,this))},e)}}),le.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){le.fn[e]=function(e){for(var n,r=[],i=le(e),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),le(i[s])[t](n),ne.apply(r,n.get());return this.pushStack(r)}});var Ge,Je={HTML:"block",BODY:"block"},Ke=/^margin/,Ze=new RegExp("^("+He+")(?!px)[a-z%]+$","i"),et=function(e){var t=e.ownerDocument.defaultView;return t.opener||(t=n),t.getComputedStyle(e)},tt=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},nt=Z.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",nt.appendChild(s);var e=n.getComputedStyle(a);t="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,a.style.marginRight="50%",i="4px"===e.marginRight,nt.removeChild(s)}var t,r,i,o,s=Z.createElement("div"),a=Z.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ae.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),le.extend(ae,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==r&&e(),r},pixelMarginRight:function(){return null==r&&e(),i},reliableMarginLeft:function(){return null==r&&e(),o},reliableMarginRight:function(){var e,t=a.appendChild(Z.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",nt.appendChild(s),e=!parseFloat(n.getComputedStyle(t).marginRight),nt.removeChild(s),a.removeChild(t),e}}))}();var rt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"},st=["Webkit","O","Moz","ms"],at=Z.createElement("div").style;le.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=A(e,"opacity");return""===n?"1":n}}}},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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=le.camelCase(t),u=e.style;return t=le.cssProps[a]||(le.cssProps[a]=q(a)||a),s=le.cssHooks[t]||le.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t]:(o=typeof n,"string"===o&&(i=Me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(le.cssNumber[a]?"":"px")),ae.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,s,a=le.camelCase(t);return t=le.cssProps[a]||(le.cssProps[a]=q(a)||a),s=le.cssHooks[t]||le.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=A(e,t,r)),"normal"===i&&t in ot&&(i=ot[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),le.each(["height","width"],function(e,t){le.cssHooks[t]={get:function(e,n,r){return n?rt.test(le.css(e,"display"))&&0===e.offsetWidth?tt(e,it,function(){return O(e,t,r)}):O(e,t,r):void 0},set:function(e,n,r){var i,o=r&&et(e),s=r&&M(e,t,r,"border-box"===le.css(e,"boxSizing",!1,o),o);return s&&(i=Me.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=le.css(e,t)),H(e,n,s)}}}),le.cssHooks.marginLeft=L(ae.reliableMarginLeft,function(e,t){return t?(parseFloat(A(e,"marginLeft"))||e.getBoundingClientRect().left-tt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),le.cssHooks.marginRight=L(ae.reliableMarginRight,function(e,t){return t?tt(e,{display:"inline-block"},A,[e,"marginRight"]):void 0}),le.each({margin:"",padding:"",border:"Width"},function(e,t){le.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Oe[r]+t]=o[r]||o[r-2]||o[0];return i}},Ke.test(e)||(le.cssHooks[e+t].set=H)}),le.fn.extend({css:function(e,t){return Ne(this,function(e,t,n){var r,i,o={},s=0;if(le.isArray(t)){for(r=et(e),i=t.length;i>s;s++)o[t[s]]=le.css(e,t[s],!1,r);return o}return void 0!==n?le.style(e,t,n):le.css(e,t)},e,t,arguments.length>1)},show:function(){return F(this,!0)},hide:function(){return F(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Fe(this)?le(this).show():le(this).hide()})}}),le.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||le.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(le.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=le.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=le.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){le.fx.step[e.prop]?le.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[le.cssProps[e.prop]]&&!le.cssHooks[e.prop]?e.elem[e.prop]=e.now:le.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},le.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},le.fx=R.prototype.init,le.fx.step={};var ut,lt,ct=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;le.Animation=le.extend(_,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){le.isFunction(e)?(t=e,e=["*"]):e=e.match(Se);for(var n,r=0,i=e.length;i>r;r++)n=e[r],_.tweeners[n]=_.tweeners[n]||[],_.tweeners[n].unshift(t)},prefilters:[B],prefilter:function(e,t){t?_.prefilters.unshift(e):_.prefilters.push(e)}}),le.speed=function(e,t,n){var r=e&&"object"==typeof e?le.extend({},e):{complete:n||!n&&t||le.isFunction(e)&&e,duration:e,easing:n&&t||t&&!le.isFunction(t)&&t};return r.duration=le.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in le.fx.speeds?le.fx.speeds[r.duration]:le.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){le.isFunction(r.old)&&r.old.call(this),r.queue&&le.dequeue(this,r.queue)},r},le.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Fe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=le.isEmptyObject(e),o=le.speed(t,n,r),s=function(){var t=_(this,le.extend({},e),o);(i||je.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=le.timers,s=je.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ft.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&le.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=je.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=le.timers,s=r?r.length:0;for(n.finish=!0,le.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;s>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),le.each(["toggle","show","hide"],function(e,t){var n=le.fn[t];le.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(I(t,!0),e,r,i)}}),le.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){le.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),le.timers=[],le.fx.tick=function(){var e,t=0,n=le.timers;for(ut=le.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||le.fx.stop(),ut=void 0},le.fx.timer=function(e){le.timers.push(e),e()?le.fx.start():le.timers.pop()},le.fx.interval=13,le.fx.start=function(){lt||(lt=n.setInterval(le.fx.tick,le.fx.interval))},le.fx.stop=function(){n.clearInterval(lt),lt=null},le.fx.speeds={slow:600,fast:200,_default:400},le.fn.delay=function(e,t){return e=le.fx?le.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=Z.createElement("input"),t=Z.createElement("select"),n=t.appendChild(Z.createElement("option"));e.type="checkbox",ae.checkOn=""!==e.value,ae.optSelected=n.selected,t.disabled=!0,ae.optDisabled=!n.disabled,e=Z.createElement("input"),e.value="t",e.type="radio",ae.radioValue="t"===e.value}();var pt,dt=le.expr.attrHandle;le.fn.extend({attr:function(e,t){return Ne(this,le.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){le.removeAttr(this,e)})}}),le.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?le.prop(e,t,n):(1===o&&le.isXMLDoc(e)||(t=t.toLowerCase(),i=le.attrHooks[t]||(le.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void le.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=le.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!ae.radioValue&&"radio"===t&&le.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(Se);if(o&&1===e.nodeType)for(;n=o[i++];)r=le.propFix[n]||n,le.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),pt={set:function(e,t,n){return t===!1?le.removeAttr(e,n):e.setAttribute(n,n),n}},le.each(le.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||le.find.attr;dt[t]=function(e,t,r){var i,o;return r||(o=dt[t],dt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,dt[t]=o),i}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;le.fn.extend({prop:function(e,t){return Ne(this,le.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[le.propFix[e]||e]})}}),le.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&le.isXMLDoc(e)||(t=le.propFix[t]||t,i=le.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=le.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ae.optSelected||(le.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),le.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){le.propFix[this.toLowerCase()]=this});var mt=/[\t\r\n\f]/g;le.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(le.isFunction(e))return this.each(function(t){le(this).addClass(e.call(this,t,X(this)))});if("string"==typeof e&&e)for(t=e.match(Se)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&(" "+i+" ").replace(mt," ")){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=le.trim(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(le.isFunction(e))return this.each(function(t){le(this).removeClass(e.call(this,t,X(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Se)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&(" "+i+" ").replace(mt," ")){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=le.trim(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):le.isFunction(e)?this.each(function(n){le(this).toggleClass(e.call(this,n,X(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=le(this),o=e.match(Se)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(void 0===e||"boolean"===n)&&(t=X(this),t&&je.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":je.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+X(n)+" ").replace(mt," ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;le.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=le.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,le(this).val()):e,null==i?i="":"number"==typeof i?i+="":le.isArray(i)&&(i=le.map(i,function(e){return null==e?"":e+""})),t=le.valHooks[this.type]||le.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=le.valHooks[i.type]||le.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(vt,""):null==n?"":n)}}}),le.extend({valHooks:{option:{get:function(e){return le.trim(e.value)}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;a>u;u++)if(n=r[u],(n.selected||u===i)&&(ae.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!le.nodeName(n.parentNode,"optgroup"))){if(t=le(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=le.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=le.inArray(le.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),le.each(["radio","checkbox"],function(){le.valHooks[this]={set:function(e,t){return le.isArray(t)?e.checked=le.inArray(le(e).val(),t)>-1:void 0}},ae.checkOn||(le.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var yt=/^(?:focusinfocus|focusoutblur)$/;le.extend(le.event,{trigger:function(e,t,r,i){var o,s,a,u,l,c,f,p=[r||Z],d=se.call(e,"type")?e.type:e,h=se.call(e,"namespace")?e.namespace.split("."):[];if(s=a=r=r||Z,3!==r.nodeType&&8!==r.nodeType&&!yt.test(d+le.event.triggered)&&(d.indexOf(".")>-1&&(h=d.split("."),d=h.shift(),h.sort()),l=d.indexOf(":")<0&&"on"+d,e=e[le.expando]?e:new le.Event(d,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:le.makeArray(t,[e]),f=le.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,t)!==!1)){if(!i&&!f.noBubble&&!le.isWindow(r)){for(u=f.delegateType||d,yt.test(u+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||Z)&&p.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||d,c=(je.get(s,"events")||{})[e.type]&&je.get(s,"handle"),c&&c.apply(s,t),c=l&&s[l],c&&c.apply&&De(s)&&(e.result=c.apply(s,t),e.result===!1&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),t)!==!1||!De(r)||l&&le.isFunction(r[d])&&!le.isWindow(r)&&(a=r[l],a&&(r[l]=null),le.event.triggered=d,r[d](),le.event.triggered=void 0,a&&(r[l]=a)),e.result}},simulate:function(e,t,n){var r=le.extend(new le.Event,n,{type:e,isSimulated:!0});le.event.trigger(r,null,t),r.isDefaultPrevented()&&n.preventDefault()}}),le.fn.extend({trigger:function(e,t){return this.each(function(){le.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?le.event.trigger(e,t,n,!0):void 0}}),le.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){le.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),le.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ae.focusin="onfocusin"in n,ae.focusin||le.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){le.event.simulate(t,e.target,le.event.fix(e))};le.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=je.access(r,t);i||r.addEventListener(e,n,!0),je.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=je.access(r,t)-1;i?je.access(r,t,i):(r.removeEventListener(e,n,!0),je.remove(r,t))}}});var xt=n.location,bt=le.now(),wt=/\?/;le.parseJSON=function(e){return JSON.parse(e+"")},le.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&le.error("Invalid XML: "+e),t};var Tt=/#.*$/,Ct=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Et=/^(?:GET|HEAD)$/,Nt=/^\/\//,Dt={},jt={},At="*/".concat("*"),Lt=Z.createElement("a");Lt.href=xt.href,le.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:St.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,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":le.parseJSON,"text xml":le.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?U(U(e,le.ajaxSettings),t):U(le.ajaxSettings,e)},ajaxPrefilter:z(Dt),ajaxTransport:z(jt),ajax:function(e,t){function r(e,t,r,a){var l,f,y,x,w,C=t;2!==b&&(b=2,u&&n.clearTimeout(u),i=void 0,s=a||"",T.readyState=e>0?4:0,l=e>=200&&300>e||304===e,r&&(x=Y(p,T,r)),x=Q(p,x,T,l),l?(p.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(le.lastModified[o]=w),w=T.getResponseHeader("etag"),w&&(le.etag[o]=w)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=x.state,f=x.data,y=x.error,l=!y)):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),T.status=e,T.statusText=(t||C)+"",l?g.resolveWith(d,[f,C,T]):g.rejectWith(d,[T,C,y]),T.statusCode(v),v=void 0,c&&h.trigger(l?"ajaxSuccess":"ajaxError",[T,p,l?f:y]),m.fireWith(d,[T,C]),c&&(h.trigger("ajaxComplete",[T,p]),--le.active||le.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,s,a,u,l,c,f,p=le.ajaxSetup({},t),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?le(d):le.event,g=le.Deferred(),m=le.Callbacks("once memory"),v=p.statusCode||{},y={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=kt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return i&&i.abort(t),r(0,t),this}};if(g.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,p.url=((e||p.url||xt.href)+"").replace(Tt,"").replace(Nt,xt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=le.trim(p.dataType||"*").toLowerCase().match(Se)||[""],null==p.crossDomain){l=Z.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Lt.protocol+"//"+Lt.host!=l.protocol+"//"+l.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=le.param(p.data,p.traditional)),V(Dt,p,t,T),2===b)return T;c=le.event&&p.global,c&&0===le.active++&&le.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Et.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(wt.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Ct.test(o)?o.replace(Ct,"$1_="+bt++):o+(wt.test(o)?"&":"?")+"_="+bt++)),p.ifModified&&(le.lastModified[o]&&T.setRequestHeader("If-Modified-Since",le.lastModified[o]),le.etag[o]&&T.setRequestHeader("If-None-Match",le.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||t.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+At+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)T.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(d,T,p)===!1||2===b))return T.abort();w="abort";for(f in{success:1,error:1,complete:1})T[f](p[f]);if(i=V(jt,p,t,T)){if(T.readyState=1,c&&h.trigger("ajaxSend",[T,p]),2===b)return T;p.async&&p.timeout>0&&(u=n.setTimeout(function(){T.abort("timeout")},p.timeout));try{b=1,i.send(y,r)}catch(C){if(!(2>b))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return le.get(e,t,n,"json")},getScript:function(e,t){return le.get(e,void 0,t,"script")}}),le.each(["get","post"],function(e,t){le[t]=function(e,n,r,i){return le.isFunction(n)&&(i=i||r,r=n,n=void 0),le.ajax(le.extend({url:e,type:t,dataType:i,data:n,success:r},le.isPlainObject(e)&&e))}}),le._evalUrl=function(e){return le.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},le.fn.extend({wrapAll:function(e){var t;return le.isFunction(e)?this.each(function(t){le(this).wrapAll(e.call(this,t))}):(this[0]&&(t=le(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return le.isFunction(e)?this.each(function(t){le(this).wrapInner(e.call(this,t))}):this.each(function(){var t=le(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=le.isFunction(e);return this.each(function(n){le(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){le.nodeName(this,"body")||le(this).replaceWith(this.childNodes)}).end()}}),le.expr.filters.hidden=function(e){return!le.expr.filters.visible(e)},le.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var qt=/%20/g,Ht=/\[\]$/,Mt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;le.param=function(e,t){var n,r=[],i=function(e,t){t=le.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=le.ajaxSettings&&le.ajaxSettings.traditional),le.isArray(e)||e.jquery&&!le.isPlainObject(e))le.each(e,function(){i(this.name,this.value)});else for(n in e)G(n,e[n],t,i);return r.join("&").replace(qt,"+")},le.fn.extend({serialize:function(){return le.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=le.prop(this,"elements");return e?le.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!le(this).is(":disabled")&&Ft.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!Re.test(e))}).map(function(e,t){var n=le(this).val();return null==n?null:le.isArray(n)?le.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}}),le.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Pt=le.ajaxSettings.xhr();ae.cors=!!Pt&&"withCredentials"in Pt,ae.ajax=Pt=!!Pt,le.ajaxTransport(function(e){var t,r;return ae.cors||Pt&&!e.crossDomain?{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null, | ||
26 | +"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Rt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),r=a.onerror=t("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}:void 0}),le.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return le.globalEval(e),e}}}),le.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),le.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=le("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),Z.head.appendChild(t[0])},abort:function(){n&&n()}}}});var It=[],Wt=/(=)\?(?=&|$)|\?\?/;le.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=It.pop()||le.expando+"_"+bt++;return this[e]=!0,e}}),le.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,s,a=e.jsonp!==!1&&(Wt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=le.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Wt,"$1"+i):e.jsonp!==!1&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||le.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){s=arguments},r.always(function(){void 0===o?le(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,It.push(i)),s&&le.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),ae.createHTMLDocument=function(){var e=Z.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),le.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||(ae.createHTMLDocument?Z.implementation.createHTMLDocument(""):Z);var r=ye.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=m([e],t,i),i&&i.length&&le(i).remove(),le.merge([],r.childNodes))};var Bt=le.fn.load;le.fn.load=function(e,t,n){if("string"!=typeof e&&Bt)return Bt.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=le.trim(e.slice(a)),e=e.slice(0,a)),le.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&le.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?le("<div>").append(le.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(s,o||[e.responseText,t,e])})}),this},le.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){le.fn[t]=function(e){return this.on(t,e)}}),le.expr.filters.animated=function(e){return le.grep(le.timers,function(t){return e===t.elem}).length},le.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l,c=le.css(e,"position"),f=le(e),p={};"static"===c&&(e.style.position="relative"),a=f.offset(),o=le.css(e,"top"),u=le.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),le.isFunction(t)&&(t=t.call(e,n,le.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+i),"using"in t?t.using.call(e,p):f.css(p)}},le.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){le.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return t=o.documentElement,le.contains(t,r)?(i=r.getBoundingClientRect(),n=J(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===le.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),le.nodeName(e[0],"html")||(r=e.offset()),r.top+=le.css(e[0],"borderTopWidth",!0)-e.scrollTop(),r.left+=le.css(e[0],"borderLeftWidth",!0)-e.scrollLeft()),{top:t.top-r.top-le.css(n,"marginTop",!0),left:t.left-r.left-le.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===le.css(e,"position");)e=e.offsetParent;return e||nt})}}),le.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;le.fn[e]=function(r){return Ne(this,function(e,r,i){var o=J(e);return void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),le.each(["top","left"],function(e,t){le.cssHooks[t]=L(ae.pixelPosition,function(e,n){return n?(n=A(e,t),Ze.test(n)?le(e).position()[t]+"px":n):void 0})}),le.each({Height:"height",Width:"width"},function(e,t){le.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){le.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return Ne(this,function(t,n,r){var i;return le.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?le.css(t,n,s):le.style(t,n,r,s)},t,o?r:void 0,o,null)}})}),le.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),le.fn.andSelf=le.fn.addBack,r=[],i=function(){return le}.apply(t,r),!(void 0!==i&&(e.exports=i));var $t=n.jQuery,_t=n.$;return le.noConflict=function(e){return n.$===le&&(n.$=_t),e&&n.jQuery===le&&(n.jQuery=$t),le},o||(n.jQuery=n.$=le),le})},function(e,t,n){"use strict";var r=n(1),i="http://www.yohoshow.com/api/wechat/getSignPackage",o=r("#shareTitle").val(),s=r("#shareImg").val(),a=r("#shareDesc").val(),u=r("#shareLink").val(),l=window.wx;"undefined"!=typeof l&&(r.getJSON(i+"?pageurl="+encodeURIComponent(location.href.split("#")[0])+"&callback=?",function(e){var t,n,r,i;void 0!==e&&""!==e&&(t=e.appId.toString(),n=e.timestamp,r=e.nonceStr.toString(),i=e.signature.toString(),l.config({debug:!1,appId:t,timestamp:n,nonceStr:r,signature:i,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}))}),l.ready(function(){var e={title:o,desc:a,imgUrl:s,link:u,success:function(){r(".mask").addClass("hide")},cancel:function(){r(".mask").addClass("hide")}};l.onMenuShareAppMessage(e),l.onMenuShareTimeline(e),l.onMenuShareQQ(e),l.onMenuShareWeibo(e)}))},function(e,t,n){"use strict";var r=n(1);r(function(){var e=r(".type");e.data("type")&&e.html(r("#"+e.data("type")).html()),r(".M1 .flyman").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){r(this).removeClass("flyIn").addClass("flyfly")})})}]); |
1 | +webpackJsonp([4],[function(c,n,s){"use strict";var i=s(1),a=i(".mask");s(3),s(2),i(".share").on("click",function(){a.removeClass("hide")}),a.on("click",function(){a.addClass("hide")})}]); |
1 | +webpackJsonp([3],[function(c,n,s){"use strict";s(1);s(3),s(2)}]); |
static/huodong/2016yuanxiao/1.1.9/js/wait.js
0 → 100644
1 | +webpackJsonp([2],[function(c,n,s){"use strict";s(2)}]); |
static/huodong/2016yuanxiao/img/300.png
0 → 100644
13.7 KB
9.53 KB
static/huodong/2016yuanxiao/img/arrow.png
0 → 100644
8.88 KB
static/huodong/2016yuanxiao/img/bag.png
0 → 100644
17.5 KB
static/huodong/2016yuanxiao/img/bg-bamei.png
0 → 100644
4.48 KB
static/huodong/2016yuanxiao/img/bg-bige.png
0 → 100644
5.08 KB
static/huodong/2016yuanxiao/img/bg-bra.png
0 → 100644
15.2 KB
static/huodong/2016yuanxiao/img/bg-car.png
0 → 100644
49.2 KB
4.41 KB
1.63 KB
static/huodong/2016yuanxiao/img/bg-guang.png
0 → 100644
30.9 KB
33.5 KB
static/huodong/2016yuanxiao/img/bg-hezi1.png
0 → 100644
4.23 KB
static/huodong/2016yuanxiao/img/bg-hezi2.png
0 → 100644
14.2 KB
static/huodong/2016yuanxiao/img/bg-hezi3.png
0 → 100644
4.49 KB
static/huodong/2016yuanxiao/img/bg-love1.png
0 → 100644
4.37 KB
static/huodong/2016yuanxiao/img/bg-love2.png
0 → 100644
2.57 KB
static/huodong/2016yuanxiao/img/bg-majia.png
0 → 100644
4.24 KB
3.93 KB
static/huodong/2016yuanxiao/img/bg-ren.png
0 → 100644
35.6 KB
18.4 KB
9.54 KB
24.3 KB
static/huodong/2016yuanxiao/img/bg-yifei.png
0 → 100644
16.9 KB
static/huodong/2016yuanxiao/img/bg-yuan.png
0 → 100644
10.7 KB
static/huodong/2016yuanxiao/img/bg.jpg
0 → 100644
5.02 KB
static/huodong/2016yuanxiao/img/bidong.png
0 → 100644
5.64 KB
static/huodong/2016yuanxiao/img/boy.png
0 → 100644
3.33 KB
static/huodong/2016yuanxiao/img/boy2.png
0 → 100644
23.6 KB
static/huodong/2016yuanxiao/img/chaoren.png
0 → 100644
6.32 KB
static/huodong/2016yuanxiao/img/check.png
0 → 100644
605 Bytes
static/huodong/2016yuanxiao/img/checked.png
0 → 100644
871 Bytes
static/huodong/2016yuanxiao/img/close.png
0 → 100644
2.64 KB
static/huodong/2016yuanxiao/img/cloud2.png
0 → 100644
3.32 KB
static/huodong/2016yuanxiao/img/flower.png
0 → 100644
10.6 KB
static/huodong/2016yuanxiao/img/flyman.png
0 → 100644
38.9 KB
46.7 KB
static/huodong/2016yuanxiao/img/girl.png
0 → 100644
3.5 KB
static/huodong/2016yuanxiao/img/girl2.png
0 → 100644
11.6 KB
static/huodong/2016yuanxiao/img/glasses.png
0 → 100644
12.3 KB
static/huodong/2016yuanxiao/img/hands.png
0 → 100644
18.8 KB
static/huodong/2016yuanxiao/img/hat.png
0 → 100644
15.2 KB
static/huodong/2016yuanxiao/img/hr-2.png
0 → 100644
3.79 KB
static/huodong/2016yuanxiao/img/hr.png
0 → 100644
9.05 KB
175 KB
14.1 KB
static/huodong/2016yuanxiao/img/jin1.png
0 → 100644
7.99 KB
static/huodong/2016yuanxiao/img/jin2.png
0 → 100644
8.27 KB
static/huodong/2016yuanxiao/img/kuaidi.png
0 → 100644
8.9 KB
63.1 KB
static/huodong/2016yuanxiao/img/kuang.png
0 → 100644
3.74 KB
static/huodong/2016yuanxiao/img/loading.png
0 → 100644
15.6 KB
static/huodong/2016yuanxiao/img/meizi.png
0 → 100644
18.4 KB
static/huodong/2016yuanxiao/img/modal-bg.png
0 → 100644
208 KB
static/huodong/2016yuanxiao/img/ren.png
0 → 100644
61.6 KB
static/huodong/2016yuanxiao/img/ren2.png
0 → 100644
41.6 KB
static/huodong/2016yuanxiao/img/rensheng.png
0 → 100644
3.25 KB
static/huodong/2016yuanxiao/img/shan.png
0 → 100644
31.9 KB
static/huodong/2016yuanxiao/img/share.png
0 → 100644
28.3 KB
41.5 KB
static/huodong/2016yuanxiao/img/shoes.png
0 → 100644
47.4 KB
static/huodong/2016yuanxiao/img/shuaiqi.png
0 → 100644
4.83 KB
87.4 KB
static/huodong/2016yuanxiao/img/start.png
0 → 100644
54.2 KB
static/huodong/2016yuanxiao/img/style.png
0 → 100644
7.43 KB
static/huodong/2016yuanxiao/img/sun.png
0 → 100644
12.1 KB
static/huodong/2016yuanxiao/img/wanghong.png
0 → 100644
7.99 KB
static/huodong/2016yuanxiao/img/xiongda.png
0 → 100644
5.46 KB
static/huodong/2016yuanxiao/img/yanzhi.png
0 → 100644
3.01 KB
static/huodong/2016yuanxiao/img/yeezy.png
0 → 100644
5.86 KB
static/huodong/2016yuanxiao/img/yifu.png
0 → 100644
20.4 KB
static/huodong/2016yuanxiao/img/yohobuy.png
0 → 100644
8.46 KB
static/huodong/2016yuanxiao/img/yunqi.png
0 → 100644
19.1 KB
static/huodong/2016yuanxiao/img/yzbb.png
0 → 100644
5.51 KB
@@ -101,7 +101,7 @@ | @@ -101,7 +101,7 @@ | ||
101 | height: auto; | 101 | height: auto; |
102 | overflow: hidden; | 102 | overflow: hidden; |
103 | padding:20px 0 0; | 103 | padding:20px 0 0; |
104 | - font-size: 48px; | 104 | + font-size: 32px; |
105 | text-align: center; | 105 | text-align: center; |
106 | color: #444; | 106 | color: #444; |
107 | } | 107 | } |
@@ -109,7 +109,7 @@ | @@ -109,7 +109,7 @@ | ||
109 | width: 73.75%; | 109 | width: 73.75%; |
110 | height: 80px; | 110 | height: 80px; |
111 | overflow: hidden; | 111 | overflow: hidden; |
112 | - font-size: 56px; | 112 | + font-size: 36px; |
113 | line-height: 80px; | 113 | line-height: 80px; |
114 | display: block; | 114 | display: block; |
115 | background: #444444; | 115 | background: #444444; |
@@ -58,8 +58,9 @@ | @@ -58,8 +58,9 @@ | ||
58 | content: ''; | 58 | content: ''; |
59 | display: block; | 59 | display: block; |
60 | width: 188px; | 60 | width: 188px; |
61 | - height: 177px; | ||
62 | - background: url("/me/fav/fav-null.png"); | 61 | + height: 171px; |
62 | + background: resolve("me/fav/fav-null.png"); | ||
63 | + background-size: 100% 100%; | ||
63 | margin: 0 auto 45px auto; | 64 | margin: 0 auto 45px auto; |
64 | } | 65 | } |
65 | } | 66 | } |
@@ -15,7 +15,7 @@ use Plugin\Helpers; | @@ -15,7 +15,7 @@ use Plugin\Helpers; | ||
15 | class GirldayController extends HuodongAction | 15 | class GirldayController extends HuodongAction |
16 | { | 16 | { |
17 | // const STATIC_VERSION = 'http://localhost:2222/1.0.1'; | 17 | // const STATIC_VERSION = 'http://localhost:2222/1.0.1'; |
18 | - const STATIC_VERSION = 'http://cdn.yoho.cn/huodong/2016xinshili-2/1.0.1'; | 18 | + const STATIC_VERSION = 'http://cdn.yoho.cn/huodong/2016xinshili-web/1.0.6'; |
19 | 19 | ||
20 | /** | 20 | /** |
21 | * 检测登录状态 | 21 | * 检测登录状态 |
@@ -112,12 +112,12 @@ class GirldayController extends HuodongAction | @@ -112,12 +112,12 @@ class GirldayController extends HuodongAction | ||
112 | // 设置环境变量 | 112 | // 设置环境变量 |
113 | switch (APPLICATION_ENV) { | 113 | switch (APPLICATION_ENV) { |
114 | case 'production': // 生产 | 114 | case 'production': // 生产 |
115 | - return 506; | 115 | + return 528; |
116 | case 'preview': // 预览 | 116 | case 'preview': // 预览 |
117 | case 'testing': // 测试 | 117 | case 'testing': // 测试 |
118 | case 'develop': // 开发 | 118 | case 'develop': // 开发 |
119 | default: | 119 | default: |
120 | - return 488; | 120 | + return 90; |
121 | } | 121 | } |
122 | } | 122 | } |
123 | 123 |
-
Please register or login to post a comment