").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using" in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length){return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)})}var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f){return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d}},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position")){a=a.offsetParent}return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void (f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.jQuery=ed),m},typeof b===K&&(a.jQuery=a.$=m),m});
!function(A){"function"==typeof define&&define.amd?define(["jquery"],A):A(jQuery)}(function(C){C.extend(C.fn,{validate:function(D){if(!this.length){return void (D&&D.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."))}var E=C.data(this[0],"validator");return E?E:(this.attr("novalidate","novalidate"),E=new C.validator(D,this[0]),C.data(this[0],"validator",E),E.settings.onsubmit&&(this.validateDelegate(":submit","click",function(F){E.settings.submitHandler&&(E.submitButton=F.target),C(F.target).hasClass("cancel")&&(E.cancelSubmit=!0),void 0!==C(F.target).attr("formnovalidate")&&(E.cancelSubmit=!0)}),this.submit(function(G){function F(){var H;return E.settings.submitHandler?(E.submitButton&&(H=C("
").attr("name",E.submitButton.name).val(C(E.submitButton).val()).appendTo(E.currentForm)),E.settings.submitHandler.call(E,E.currentForm,G),E.submitButton&&H.remove(),!1):!0}return E.settings.debug&&G.preventDefault(),E.cancelSubmit?(E.cancelSubmit=!1,F()):E.form()?E.pendingRequest?(E.formSubmitted=!0,!1):F():(E.focusInvalid(),!1)})),E)},valid:function(){var D,E;return C(this[0]).is("form")?D=this.validate().form():(D=!0,E=C(this[0].form).validate(),this.each(function(){D=E.element(this)&&D})),D},removeAttrs:function(E){var F={},D=this;return C.each(E.split(/\s/),function(H,G){F[G]=D.attr(G),D.removeAttr(G)}),F},rules:function(H,I){var L,D,J,K,F,G,E=this[0];if(H){switch(L=C.data(E.form,"validator").settings,D=L.rules,J=C.validator.staticRules(E),H){case"add":C.extend(J,C.validator.normalizeRule(I)),delete J.messages,D[E.name]=J,I.messages&&(L.messages[E.name]=C.extend(L.messages[E.name],I.messages));break;case"remove":return I?(G={},C.each(I.split(/\s/),function(M,N){G[N]=J[N],delete J[N],"required"===N&&C(E).removeAttr("aria-required")}),G):(delete D[E.name],J)}}return K=C.validator.normalizeRules(C.extend({},C.validator.classRules(E),C.validator.attributeRules(E),C.validator.dataRules(E),C.validator.staticRules(E)),E),K.required&&(F=K.required,delete K.required,K=C.extend({required:F},K),C(E).attr("aria-required","true")),K.remote&&(F=K.remote,delete K.remote,K=C.extend(K,{remote:F})),K}}),C.extend(C.expr[":"],{blank:function(D){return !C.trim(""+C(D).val())},filled:function(D){return !!C.trim(""+C(D).val())},unchecked:function(D){return !C(D).prop("checked")}}),C.validator=function(D,E){this.settings=C.extend(!0,{},C.validator.defaults,D),this.currentForm=E,this.init()},C.validator.format=function(D,E){return 1===arguments.length?function(){var F=C.makeArray(arguments);return F.unshift(D),C.validator.format.apply(this,F)}:(arguments.length>2&&E.constructor!==Array&&(E=C.makeArray(arguments).slice(1)),E.constructor!==Array&&(E=[E]),C.each(E,function(G,F){D=D.replace(new RegExp("\\{"+G+"\\}","g"),function(){return F})}),D)},C.extend(C.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:C([]),errorLabelContainer:C([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(D){this.lastActive=D,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,D,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(D)))},onfocusout:function(D){this.checkable(D)||!(D.name in this.submitted)&&this.optional(D)||this.element(D)},onkeyup:function(E,D){(9!==D.which||""!==this.elementValue(E))&&(E.name in this.submitted||E===this.lastElement)&&this.element(E)},onclick:function(D){D.name in this.submitted?this.element(D):D.parentNode.name in this.submitted&&this.element(D.parentNode)},highlight:function(E,F,D){"radio"===E.type?this.findByName(E.name).addClass(F).removeClass(D):C(E).addClass(F).removeClass(D)},unhighlight:function(E,F,D){"radio"===E.type?this.findByName(E.name).removeClass(F).addClass(D):C(E).removeClass(F).addClass(D)}},setDefaults:function(D){C.extend(C.validator.defaults,D)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:C.validator.format("请输入少于 {0} 个字符."),minlength:C.validator.format("Please enter at least {0} characters."),rangelength:C.validator.format("Please enter a value between {0} and {1} characters long."),range:C.validator.format("Please enter a value between {0} and {1}."),max:C.validator.format("Please enter a value less than or equal to {0}."),min:C.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function E(I){var J=C.data(this[0].form,"validator"),G="on"+I.type.replace(/^validate/,""),H=J.settings;H[G]&&!this.is(H.ignore)&&H[G].call(J,this[0],I)}this.labelContainer=C(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||C(this.currentForm),this.containers=C(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var F,D=this.groups={};C.each(this.settings.groups,function(G,H){"string"==typeof H&&(H=H.split(/\s/)),C.each(H,function(J,I){D[I]=G})}),F=this.settings.rules,C.each(F,function(H,G){F[H]=C.validator.normalizeRule(G)}),C(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",E).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",E),this.settings.invalidHandler&&C(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),C(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),C.extend(this.submitted,this.errorMap),this.invalid=C.extend({},this.errorMap),this.valid()||C(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var E=0,D=this.currentElements=this.elements();D[E];E++){this.check(D[E])}return this.valid()},element:function(F){var G=this.clean(F),D=this.validationTargetFor(G),E=!0;return this.lastElement=D,void 0===D?delete this.invalid[G.name]:(this.prepareElement(D),this.currentElements=C(D),E=this.check(D)!==!1,E?delete this.invalid[D.name]:this.invalid[D.name]=!0),C(F).attr("aria-invalid",!E),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),E},showErrors:function(D){if(D){C.extend(this.errorMap,D),this.errorList=[];for(var E in D){this.errorList.push({message:D[E],element:this.findByName(E)[0]})}this.successList=C.grep(this.successList,function(F){return !(F.name in D)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){C.fn.resetForm&&C(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(F){var D,E=0;for(D in F){E++}return E},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(D){D.not(this.containers).text(""),this.addWrapper(D).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{C(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(D){}}},findLastActive:function(){var D=this.lastActive;return D&&1===C.grep(this.errorList,function(E){return E.element.name===D.name}).length&&D},elements:function(){var D=this,E={};return C(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return !this.name&&D.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in E||!D.objectLength(C(this).rules())?!1:(E[this.name]=!0,!0)})},clean:function(D){return C(D)[0]},errors:function(){var D=this.settings.errorClass.split(" ").join(".");return C(this.settings.errorElement+"."+D,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=C([]),this.toHide=C([]),this.currentElements=C([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(D){this.reset(),this.toHide=this.errorsFor(D)},elementValue:function(F){var G,D=C(F),E=F.type;return"radio"===E||"checkbox"===E?C("input[name='"+F.name+"']:checked").val():"number"===E&&"undefined"!=typeof F.validity?F.validity.badInput?!1:D.val():(G=D.val(),"string"==typeof G?G.replace(/\r/g,""):G)},check:function(H){H=this.validationTargetFor(this.clean(H));var I,L,D,J=C(H).rules(),K=C.map(J,function(N,M){return M}).length,F=!1,G=this.elementValue(H);for(L in J){D={method:L,parameters:J[L]};try{if(I=C.validator.methods[L].call(this,G,H,D.parameters),"dependency-mismatch"===I&&1===K){F=!0;continue}if(F=!1,"pending"===I){return void (this.toHide=this.toHide.not(this.errorsFor(H)))}if(!I){return this.formatAndAdd(H,D),!1}}catch(E){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+H.id+", check the '"+D.method+"' method.",E),E}}if(!F){return this.objectLength(J)&&this.successList.push(H),!0}},customDataMessage:function(D,E){return C(D).data("msg"+E.charAt(0).toUpperCase()+E.substring(1).toLowerCase())||C(D).data("msg")},customMessage:function(F,D){var E=this.settings.messages[F];return E&&(E.constructor===String?E:E[D])},findDefined:function(){for(var D=0;D
Warning: No message defined for "+D.name+"")},formatAndAdd:function(F,G){var D=this.defaultMessage(F,G.method),E=/\$?\{(\d+)\}/g;"function"==typeof D?D=D.call(this,G.parameters,F):E.test(D)&&(D=C.validator.format(D.replace(E,"{$1}"),G.parameters)),this.errorList.push({message:D,element:F,method:G.method}),this.errorMap[F.name]=D,this.submitted[F.name]=D},addWrapper:function(D){return this.settings.wrapper&&(D=D.add(D.parent(this.settings.wrapper))),D},defaultShowErrors:function(){var F,D,E;for(F=0;this.errorList[F];F++){E=this.errorList[F],this.settings.highlight&&this.settings.highlight.call(this,E.element,this.settings.errorClass,this.settings.validClass),this.showLabel(E.element,E.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success){for(F=0;this.successList[F];F++){this.showLabel(this.successList[F])}}if(this.settings.unhighlight){for(F=0,D=this.validElements();D[F];F++){this.settings.unhighlight.call(this,D[F],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return C(this.errorList).map(function(){return this.element})},showLabel:function(G,H){var K,D,I,J=this.errorsFor(G),E=this.idOrName(G),F=C(G).attr("aria-describedby");J.length?(J.removeClass(this.settings.validClass).addClass(this.settings.errorClass),J.html(H)):(J=C("<"+this.settings.errorElement+">").attr("id",E+"-error").addClass(this.settings.errorClass).html(H||""),K=J,this.settings.wrapper&&(K=J.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(K):this.settings.errorPlacement?this.settings.errorPlacement(K,C(G)):K.insertAfter(G),J.is("label")?J.attr("for",E):0===J.parents("label[for='"+E+"']").length&&(I=J.attr("id"),F?F.match(new RegExp("\b"+I+"\b"))||(F+=" "+I):F=I,C(G).attr("aria-describedby",F),D=this.groups[G.name],D&&C.each(this.groups,function(L,M){M===D&&C("[name='"+L+"']",this.currentForm).attr("aria-describedby",J.attr("id"))}))),!H&&this.settings.success&&(J.text(""),"string"==typeof this.settings.success?J.addClass(this.settings.success):this.settings.success(J,G)),this.toShow=this.toShow.add(J)},errorsFor:function(F){var G=this.idOrName(F),D=C(F).attr("aria-describedby"),E="label[for='"+G+"'], label[for='"+G+"'] *";return D&&(E=E+", #"+D.replace(/\s+/g,", #")),this.errors().filter(E)},idOrName:function(D){return this.groups[D.name]||(this.checkable(D)?D.name:D.id||D.name)},validationTargetFor:function(D){return this.checkable(D)&&(D=this.findByName(D.name).not(this.settings.ignore)[0]),D},checkable:function(D){return/radio|checkbox/i.test(D.type)},findByName:function(D){return C(this.currentForm).find("[name='"+D+"']")},getLength:function(D,E){switch(E.nodeName.toLowerCase()){case"select":return C("option:selected",E).length;case"input":if(this.checkable(E)){return this.findByName(E.name).filter(":checked").length}}return D.length},depend:function(E,D){return this.dependTypes[typeof E]?this.dependTypes[typeof E](E,D):!0},dependTypes:{"boolean":function(D){return D},string:function(D,E){return !!C(D,E.form).length},"function":function(E,D){return E(D)}},optional:function(D){var E=this.elementValue(D);return !C.validator.methods.required.call(this,E,D)&&"dependency-mismatch"},startRequest:function(D){this.pending[D.name]||(this.pendingRequest++,this.pending[D.name]=!0)},stopRequest:function(D,E){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[D.name],E&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(C(this.currentForm).submit(),this.formSubmitted=!1):!E&&0===this.pendingRequest&&this.formSubmitted&&(C(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(D){return C.data(D,"previousValue")||C.data(D,"previousValue",{old:null,valid:!0,message:this.defaultMessage(D,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(D,E){D.constructor===String?this.classRuleSettings[D]=E:C.extend(this.classRuleSettings,D)},classRules:function(E){var F={},D=C(E).attr("class");return D&&C.each(D.split(" "),function(){this in C.validator.classRuleSettings&&C.extend(F,C.validator.classRuleSettings[this])}),F},attributeRules:function(G){var H,E,F={},I=C(G),D=G.getAttribute("type");for(H in C.validator.methods){"required"===H?(E=G.getAttribute(H),""===E&&(E=!0),E=!!E):E=I.attr(H),/min|max/.test(H)&&(null===D||/number|range|text/.test(D))&&(E=Number(E)),E||0===E?F[H]=E:D===H&&"range"!==D&&(F[H]=!0)}return F.maxlength&&/-1|2147483647|524288/.test(F.maxlength)&&delete F.maxlength,F},dataRules:function(F){var G,D,E={},H=C(F);for(G in C.validator.methods){D=H.data("rule"+G.charAt(0).toUpperCase()+G.substring(1).toLowerCase()),void 0!==D&&(E[G]=D)}return E},staticRules:function(E){var F={},D=C.data(E.form,"validator");return D.settings.rules&&(F=C.validator.normalizeRule(D.settings.rules[E.name])||{}),F},normalizeRules:function(D,E){return C.each(D,function(F,G){if(G===!1){return void delete D[F]}if(G.param||G.depends){var H=!0;switch(typeof G.depends){case"string":H=!!C(G.depends,E.form).length;break;case"function":H=G.depends.call(E,E)}H?D[F]=void 0!==G.param?G.param:!0:delete D[F]}}),C.each(D,function(F,G){D[F]=C.isFunction(G)?G(E):G}),C.each(["minlength","maxlength"],function(){D[this]&&(D[this]=Number(D[this]))}),C.each(["rangelength","range"],function(){var F;D[this]&&(C.isArray(D[this])?D[this]=[Number(D[this][0]),Number(D[this][1])]:"string"==typeof D[this]&&(F=D[this].replace(/[\[\]]/g,"").split(/[\s,]+/),D[this]=[Number(F[0]),Number(F[1])]))}),C.validator.autoCreateRanges&&(D.min&&D.max&&(D.range=[D.min,D.max],delete D.min,delete D.max),D.minlength&&D.maxlength&&(D.rangelength=[D.minlength,D.maxlength],delete D.minlength,delete D.maxlength)),D},normalizeRule:function(D){if("string"==typeof D){var E={};C.each(D.split(/\s/),function(){E[this]=!0}),D=E}return D},addMethod:function(E,F,D){C.validator.methods[E]=F,C.validator.messages[E]=void 0!==D?D:C.validator.messages[E],F.length<3&&C.validator.addClassRules(E,C.validator.normalizeRule(E))},methods:{required:function(F,G,D){if(!this.depend(D,G)){return"dependency-mismatch"}if("select"===G.nodeName.toLowerCase()){var E=C(G).val();return E&&E.length>0}return this.checkable(G)?this.getLength(F,G)>0:C.trim(F).length>0},email:function(E,D){return this.optional(D)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(E)},url:function(E,D){return this.optional(D)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(E)},date:function(E,D){return this.optional(D)||!/Invalid|NaN/.test(new Date(E).toString())},dateISO:function(E,D){return this.optional(D)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(E)},number:function(E,D){return this.optional(D)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(E)},digits:function(E,D){return this.optional(D)||/^\d+$/.test(E)},creditcard:function(I,G){if(this.optional(G)){return"dependency-mismatch"}if(/[^0-9 \-]+/.test(I)){return !1}var H,E,F=0,J=0,D=!1;if(I=I.replace(/\D/g,""),I.length<13||I.length>19){return !1}for(H=I.length-1;H>=0;H--){E=I.charAt(H),J=parseInt(E,10),D&&(J*=2)>9&&(J-=9),F+=J,D=!D}return F%10===0},minlength:function(F,G,D){var E=C.isArray(F)?F.length:this.getLength(C.trim(F),G);return this.optional(G)||E>=D},maxlength:function(F,G,D){var E=C.isArray(F)?F.length:this.getLength(C.trim(F),G);return this.optional(G)||D>=E},rangelength:function(F,G,D){var E=C.isArray(F)?F.length:this.getLength(C.trim(F),G);return this.optional(G)||E>=D[0]&&E<=D[1]},min:function(F,D,E){return this.optional(D)||F>=E},max:function(F,D,E){return this.optional(D)||E>=F},range:function(F,D,E){return this.optional(D)||F>=E[0]&&F<=E[1]},equalTo:function(F,G,D){var E=C(D);return this.settings.onfocusout&&E.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){C(G).valid()}),F===E.val()},remote:function(G,H,E){if(this.optional(H)){return"dependency-mismatch"}var F,I,D=this.previousValue(H);return this.settings.messages[H.name]||(this.settings.messages[H.name]={}),D.originalMessage=this.settings.messages[H.name].remote,this.settings.messages[H.name].remote=D.message,E="string"==typeof E&&{url:E}||E,D.old===G?D.valid:(D.old=G,F=this,this.startRequest(H),I={},I[H.name]=G,C.ajax(C.extend(!0,{url:E,mode:"abort",port:"validate"+H.name,dataType:"json",data:I,context:F.currentForm,success:function(K){var N,J,L,M=K===!0||"true"===K;F.settings.messages[H.name].remote=D.originalMessage,M?(L=F.formSubmitted,F.prepareElement(H),F.formSubmitted=L,F.successList.push(H),delete F.invalid[H.name],F.showErrors()):(N={},J=K||F.defaultMessage(H,"remote"),N[H.name]=D.message=C.isFunction(J)?J(G):J,F.invalid[H.name]=!0,F.showErrors(N)),D.valid=M,F.stopRequest(H,M)}},E)),"pending")}}});var A,B={};C.ajaxPrefilter?C.ajaxPrefilter(function(G,F,D){var E=G.port;"abort"===G.mode&&(B[E]&&B[E].abort(),B[E]=D)}):(A=C.ajax,C.ajax=function(D){var E=("mode" in D?D:C.ajaxSettings).mode,F=("port" in D?D:C.ajaxSettings).port;return"abort"===E?(B[F]&&B[F].abort(),B[F]=A.apply(this,arguments),B[F]):A.apply(this,arguments)}),C.extend(C.fn,{validateDelegate:function(E,F,D){return this.bind(F,function(H){var G=C(H.target);return G.is(E)?D.apply(G,arguments):void 0})}})});(function(K){var N=K.validator,I,A="unobtrusivevalsidation";function J(Q,O,P){Q.rules[O]=P;if(Q.message){Q.messages[O]=Q.message}}function B(O){return O.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function L(O){return O.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function D(O){return O.substr(0,O.lastIndexOf(".")+1)}function M(P,O){if(P.indexOf("*.")===0){P=P.replace("*.",O)}return P}function H(S,Q){var R=K(this).find("[data-valmsg-for='"+L(Q[0].name)+"']"),P=R.attr("data-valmsg-replace"),O=P?K.parseJSON(P)!==false:null;R.removeClass("field-validation-valid").addClass("field-validation-error");S.data("unobtrusiveContainer",R);if(O){R.empty();S.removeClass("input-validation-error").appendTo(R)}else{S.hide()}}function G(P,O){var R=K(this).find("[data-valmsg-summary=true]"),Q=R.find("ul");if(Q&&Q.length&&O.errorList.length){Q.empty();R.addClass("validation-summary-errors").removeClass("validation-summary-valid");K.each(O.errorList,function(){K("").html(this.message).appendTo(Q)})}}function C(O){var Q=O.data("unobtrusiveContainer"),R=Q.attr("data-valmsg-replace"),P=R?K.parseJSON(R):null;if(Q){Q.addClass("field-validation-valid").removeClass("field-validation-error");O.removeData("unobtrusiveContainer");P&&Q.empty()}}function F(){var O=K(this);O.data("validator").resetForm();O.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");O.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function E(R){var S=K(R),T=S.data(A),P=K.proxy(F,R),O=N.unobtrusive.options||{},Q=function(V,U){var W=O[V];W&&K.isFunction(W)&&W.apply(R,U)};if(!T){T={options:{errorClass:O.errorClass||"input-validation-error",errorElement:O.errorElement||"span",errorPlacement:function(){H.apply(R,arguments);Q("errorPlacement",arguments)},invalidHandler:function(){G.apply(R,arguments);Q("invalidHandler",arguments)},messages:{},rules:{},success:function(){C.apply(R,arguments);Q("success",arguments)}},attachValidation:function(){S.off("reset."+A,P).on("reset."+A,P).validate(this.options)},validate:function(){S.validate();return S.valid()}};S.data(A,T)}return T}N.unobtrusive={adapters:[],parseElement:function(S,O){var P=K(S),U=P.parents("form")[0],T,Q,R;if(!U){return}T=E(U);T.options.rules[S.name]=Q={};T.options.messages[S.name]=R={};K.each(this.adapters,function(){var X="data-val-"+this.name,W=P.attr(X),V={};if(W!==undefined){X+="-";K.each(this.params,function(){V[this]=P.attr(X+this)});this.adapt({element:S,form:U,message:W,params:V,rules:Q,messages:R})}});K.extend(Q,{__dummy__:true});!O&&T.attachValidation()},parse:function(Q){var P=K(Q),O=P.parents().addBack().filter("form").add(P.find("form")).has("[data-val=true]");P.find("[data-val=true]").each(function(){N.unobtrusive.parseElement(this,true)});O.each(function(){var R=E(this);R&&R.attachValidation()})}};I=N.unobtrusive.adapters;I.add=function(P,Q,O){if(!O){O=Q;Q=[]}this.push({name:P,params:Q,adapt:O});return this};I.addBool=function(P,O){return this.add(P,function(Q){J(Q,O||P,true)})};I.addMinMax=function(Q,O,T,S,P,R){return this.add(Q,[P||"min",R||"max"],function(W){var V=W.params.min,U=W.params.max;if(V&&U){J(W,S,[V,U])}else{if(V){J(W,O,V)}else{U&&J(W,T,U)}}})};I.addSinglevals=function(Q,P,O){return this.add(Q,[P||"val"],function(R){J(R,O||Q,R.params[P])})};N.addMethod("__dummy__",function(){return true});N.addMethod("regex",function(P,Q,O){var R;if(this.optional(Q)){return true}R=(new RegExp(O)).exec(P);return R&&R.index===0&&R[0].length===P.length});N.addMethod("nonalphamin",function(Q,O,P){var R;if(P){R=Q.match(/\W/g);R=R&&R.length>=P}return R});if(N.methods.extension){I.addSinglevals("accept","mimtype");I.addSinglevals("extension","extension")}else{I.addSinglevals("extension","extension","accept")}I.addSinglevals("regex","pattern");I.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");I.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");I.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");I.add("equalto",["other"],function(R){var O=D(R.element.name),S=R.params.other,Q=M(S,O),P=K(R.form).find(":input").filter("[name='"+L(Q)+"']")[0];J(R,"equalTo",P)});I.add("required",function(O){(O.element.tagName.toUpperCase()!=="INPUT"||O.element.type.toUpperCase()!=="CHECKBOX")&&J(O,"required",true)});I.add("remote",["url","type","additionalfields"],function(Q){var O={url:Q.params.url,type:Q.params.type||"GET",data:{}},P=D(Q.element.name);K.each(B(Q.params.additionalfields||Q.element.name),function(S,R){var T=M(R,P);O.data[T]=function(){return K(Q.form).find(":input").filter("[name='"+L(T)+"']").val()}});J(Q,"remote",O)});I.add("password",["min","nonalphamin","regex"],function(O){O.params.min&&J(O,"minlength",O.params.min);O.params.nonalphamin&&J(O,"nonalphamin",O.params.nonalphamin);O.params.regex&&J(O,"regex",O.params.regex)});K(function(){N.unobtrusive.parse(document)})})(jQuery);(function(G){var E="unobtrusiveAjaxClick",J="unobtrusiveAjaxClickTarget",C="unobtrusivevalsidation";function F(K,L){var N=window,M=(K||"").split(".");while(N&&M.length){N=N[M.shift()]}if(typeof N==="function"){return N}L.push(K);return Function.constructor.apply(null,L)}function A(K){return K==="GET"||K==="POST"}function I(K,L){!A(L)&&K.setRequestHeader("X-HTTP-Method-Override",L)}function D(N,M,L){var K;if(L.indexOf("application/x-javascript")!==-1){return}K=(N.getAttribute("data-ajax-mode")||"").toUpperCase();G(N.getAttribute("data-ajax-update")).each(function(Q,P){var O;switch(K){case"BEFORE":O=P.firstChild;G("").html(M).contents().each(function(){P.insertBefore(this,O)});break;case"AFTER":G("").html(M).contents().each(function(){P.appendChild(this)});break;case"REPLACE-WITH":G(P).replaceWith(M);break;default:G(P).html(M)}})}function H(N,L){var O,P,M,K;O=N.getAttribute("data-ajax-confirm");if(O&&!window.confirm(O)){return}P=G(N.getAttribute("data-ajax-loading"));K=parseInt(N.getAttribute("data-ajax-loading-duration"),10)||0;G.extend(L,{type:N.getAttribute("data-ajax-method")||undefined,url:N.getAttribute("data-ajax-url")||undefined,cache:!!N.getAttribute("data-ajax-cache"),beforeSend:function(Q){var R;I(Q,M);R=F(N.getAttribute("data-ajax-begin"),["xhr"]).apply(N,arguments);R!==false&&P.show(K);return R},complete:function(){P.hide(K);F(N.getAttribute("data-ajax-complete"),["xhr","status"]).apply(N,arguments)},success:function(S,R,Q){D(N,S,Q.getResponseHeader("Content-Type")||"text/html");F(N.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(N,arguments)},error:function(){F(N.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(N,arguments)}});L.data.push({name:"X-Requested-With",value:"XMLHttpRequest"});M=L.type.toUpperCase();if(!A(M)){L.type="POST";L.data.push({name:"X-HTTP-Method-Override",value:M})}G.ajax(L)}function B(L){var K=G(L).data(C);return !K||!K.validate||K.validate()}G(document).on("click","a[data-ajax=true]",function(K){K.preventDefault();H(this,{url:this.href,type:"GET",data:[]})});G(document).on("click","form[data-ajax=true] input[type=image]",function(N){var K=N.target.name,M=G(N.target),O=G(M.parents("form")[0]),L=M.offset();O.data(E,[{name:K+".x",value:Math.round(N.pageX-L.left)},{name:K+".y",value:Math.round(N.pageY-L.top)}]);setTimeout(function(){O.removeData(E)},0)});G(document).on("click","form[data-ajax=true] :submit",function(L){var K=L.currentTarget.name,N=G(L.target),M=G(N.parents("form")[0]);M.data(E,K?[{name:K,value:L.currentTarget.value}]:[]);M.data(J,N);setTimeout(function(){M.removeData(E);M.removeData(J)},0)});G(document).on("submit","form[data-ajax=true]",function(K){var L=G(this).data(E)||[],N=G(this).data(J),M=N&&N.hasClass("cancel");K.preventDefault();if(!M&&!B(this)){return}H(this,{url:this.action,type:this.method||"GET",data:L.concat(G(this).serializeArray())})})})(jQuery);
function getViewSizeWithoutScrollbar(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}function getViewSizeWithScrollbar(){if(window.innerWidth){return{width:window.innerWidth,height:window.innerHeight}}else{if(document.documentElement.offsetWidth==document.documentElement.clientWidth){return{width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight}}else{return{width:document.documentElement.clientWidth+getScrollWith(),height:document.documentElement.clientHeight+getScrollWith()}}}}function getScrollWith(){var A=setAttributes(document.createElement("div"),{style:{width:"200px",height:"200px",overflow:"auto",position:"absolute",visibility:"hidden"}});var C=setAttributes(document.createElement("div"),{style:{width:"100px",height:"2000px"}});document.body.appendChild(A);A.appendChild(C);var B=A.offsetWidth-A.clientWidth;document.body.removeChild(A);A=null;C=null;return B}function setAttributes(C,B){for(var A in B){if(typeof B[A]=="string"){C[A]=B[A]}else{if(!C[A]){C[A]={}}setAttributes(C[A],B[A])}}return C}function getEvent(){if(window.event){return window.event}var A=getEvent.caller;while(A!=null){var B=A.arguments[0];if(B){if((B.constructor==Event||B.constructor==MouseEvent)||(typeof(B)=="object"&&B.preventDefault&&B.stopPropagation)){return B}}A=A.caller}return null}function getElement(A){if(A){return A.target||A.srcElement}throw"Event is undefined!"}function stopPropagation(A){if(A&&A.stopPropagation){A.stopPropagation()}else{window.event.cancelBubble=true}}function preventDefault(A){if(A&&A.preventDefault){A.preventDefault()}else{window.event.returnValue=false}return false}function requestFullScreen(){var A=document.documentElement;if(A.requestFullscreen){A.requestFullscreen()}else{if(A.mozRequestFullScreen){A.mozRequestFullScreen()}else{if(A.webkitRequestFullScreen){A.webkitRequestFullScreen()}}}}function cancelFullscreen(){var A=document;if(A.exitFullscreen){A.exitFullscreen()}else{if(A.mozCancelFullScreen){A.mozCancelFullScreen()}else{if(A.webkitCancelFullScreen){A.webkitCancelFullScreen()}}}};
$(function(){$("a[id^=changeskin]").on("click",function(B){var C=$(this);B.preventDefault();B.stopPropagation();var E=C.attr("id");var D=E.match(/\d+/)[0];$.post("/PageSetting/set_pageskin_cookie",{skinNum:D},function(F){top.document.locations.reload()}).error(function(F){alert(F)})});var A=new RegExp("^/|([a-z]+:)|#","i");$("a").each(function(B){if($(this).attr("href")&&!A.test($(this).attr("href"))){if(window.console&&window.console.log){console.log($(this).get(0))}}})});
(function (A) { A.extend({ format: function (G) { if (arguments.length > 1) { var D = arguments[0]; if (arguments.length == 2 && typeof arguments[0] == "string" && typeof arguments[1] == "object") { var F = arguments[1]; for (var B in F) { if (F[B] != undefined) { var E = new RegExp("({\x20*" + B + "\x20*})", "g"); D = D.replace(E, F[B]) } } } else { for (var C = 1; C < arguments.length; C++) { if (arguments[C] != undefined) { var E = new RegExp("({\x20*[" + (C - 1) + "]\x20*})", "g"); D = D.replace(E, arguments[C]) } } } return D } return G }, startWith: function (C) { C = C.replace(/([\(\)\[\]\{\}\.\+\*\^\$])/g, "\\$1"); var B = new RegExp("^" + C); return B.test(this) }, genaralGuid: function () { var B = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"; return B.replace(/[xy]/gi, function (E) { var C = Math.random() * 16 | 0, D = E == "x" ? C : C & 3 | 8; return D.toString(16) }) }, convertGB2312ToUnicode: { toUnicode: function (B) { return escape(B).toLocaleLowerCase().replace(/%u/gi, "\\u") }, toGB2312: function (B) { return unescape(B.replace(/\\u/gi, "%u")) } } }); A.fn.newGuid = function () { var B = A.genaralGuid(); if (arguments[0]) { B = B.toUpperCase() } this.val(B); return this }; A.fn.goTop = function () { var C = this; var B = function () { if ((document.documentElement.scrollTop || document.body.scrollTop) > 0) { A(".g-hd").css("opacity", ".95"); C.show() } else { A(".g-hd").css("opacity", "1"); C.hide() } }; if (this) { window.onscroll = function () { B() }; window.onresize = function () { B() } } this.click(function (D) { D.preventDefault(); var E = document.body.scrollTop || 300; if (E > 300) { E = 300 } A("body,html").animate({ scrollTop: 0 }, 2 * E) }); return this } }(jQuery)); (function (A) { A.fn.helptips = function () { return this.each(function () { if ($(this).find("img").length == 0) { $(this).append($('')) } if ($(this).find(".tips-cinfo-show").length == 0) { $(this).append($('')) } var G = $(this).find("img").get(0); var H = $(this).find(".tips-cinfo-show"); H.html($(this).attr("title")); $(this).removeAttr("title"); var D = G.getBoundingClientRect(); if (typeof ($(this).attr("width")) != "undefined") { H.css("width", parseInt($(this).attr("width")) + "px"); $(this).removeAttr("width") } var E = parseInt(H.css("width")), F = parseInt(H.css("left")); var B = document.documentElement.clientWidth, C = document.documentElement.clientHeight; $(this).find(".tips-cinfo-show").css("text-align", "left"); $(this).find(".tips-cinfo-show").css("z-index", "9999"); if (D.right + E > B) { $(this).find(".tips-cinfo-show").css("left", (B - (D.right + E + F) - 17) + "px") } if (D.bottom + H.get(0).scrollHeight > C) { $(this).find(".tips-cinfo-show").css("top", (0 - H.get(0).scrollHeight - 4) + "px") } }) } })(jQuery), $(function () { $(".tips-cinfo").helptips() });
var getParamArr = function (id) { var script = $("#" + id); var src = script && script.attr("data"); var requestParam = new Object(); var strs = src && src.split("&"); if (strs) { for (var i = 0; i < strs.length; i++) { requestParam[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); } } return requestParam; }
function obj$(A){return document.getElementById(A)}function val$(B){var A=document.getElementById(B);if(A!==null){return A.value}return null}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s*/g,"")};String.prototype.rtrim=function(){return this.replace(/\s*$/,"")};String.prototype.isEmpty=function(){if(this!=null&&this.length>0){return true}return false};String.prototype.equals=function(A){if(this==A){return true}return false};String.prototype.equalsIgnoreCase=function(A){if(this==A||this.toUpperCase()==A.toUpperCase()){return true}return false};String.prototype.isChinese=function(){var A=this.trim();if(!(/^[\u4E00-\uFA29]*$/.test(A))){return false}return true};String.prototype.isEmail=function(){if(/^[\w-_]+(\.[\w-_]+)*@[\w-_]+(\.[\w-_]+)+$/.test(this)){return true}return false};String.prototype.isImg=function(){var A=new RegExp("[.]+(jpg|jpeg|swf|gif)$","gi");if(A.test(this)){return true}return false};String.prototype.isInteger=function(){if(/^-?\d+$/.test(this)){return true}return false};String.prototype.isFloat=function(){if(/^(-?\d+)(\.\d+)?$/.test(this)){return true}return false};String.prototype.isPost=function(){if(/^\d{1,6}$/.test(this)){return true}return false};String.prototype.ismobiles=function(){if(/^1[34578]\d{9}/.test(this)){return true}return false};String.prototype.isphones=function(){if(/^(0[1-9]\d{1,2}-)\d{7,8}(-\d{1,8})?/.test(this)){return true}return false};String.prototype.isQQ=function(){if(/^\d{5,12}$/.test(this)){return true}return false};String.prototype.isIPv4=function(){var A=/^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$/;if(A.test(this)){return true}return false};String.prototype.isDate=function(){var A=/^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/;if(A.test(this)){return true}return false};String.prototype.isIdCardNo=function(){var A=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1);var E=new Array();var F=0;var D;if((idNumber.length!=15)&&(idNumber.length!=18)){return false}for(i=0;i"9")&&(i!=17)){return false}else{if(i<17){E[i]=E[i]*A[i]}}}if(idNumber.length==18){var B=idNumber.substring(6,14);if(checkDate(B)==false){return false}for(i=0;i<17;i++){F=F+E[i]}D=12-F%11;switch(D){case 10:D="X";break;case 11:D=0;break;case 12:D=1;break}if(E[17].toUpperCase()!=D){return false}}else{var C=idNumber.substring(6,12);if(checkDate(C)==false){return false}}return true};String.prototype.ToCharArray=function(){return this.split("")};String.prototype.Reverse=function(){return this.split("").reverse().join("")};String.prototype.IsContains=function(A){return(this.indexOf(A)>-1)};String.prototype.IsEmpty=function(){return this==""};String.prototype.IsNumeric=function(){var A=parseFloat(this);if(isNaN(A)){return false}var B=this.length-A.toString().length;return A+"0".GetSame(B)==this};String.prototype.IsInt=function(){if(this=="NaN"){return false}return this==parseInt(this).toString()};String.prototype.resetBlank=function(){return this.replace(/\s+/g,"")};String.prototype.getNum=function(){return this.replace(/[^\d]/g,"")};String.prototype.getEn=function(){return this.replace(/[^A-Za-z]/g,"")};String.prototype.getCn=function(){return this.replace(/[^\u4e00-\u9fa5\uf900-\ufa2d]/g,"")};String.prototype.ByteLength=function(){return this.replace(/[^\x00-\xff]/g,"aa").length};String.prototype.left=function(A){return this.slice(0,A)};String.prototype.right=function(A){return this.slice(this.length-A)};String.prototype.HTMLEncode=function(){var A=this;var C=[/\x26/g,/\x3C/g,/\x3E/g,/\x20/g];var D=["&","<",">"," "];for(var B=0;B=AU?0!=A2%AT?A2%AT:AT:0,Al="left"==a||"top"==a?!0:!1,Am=function(){A.isFunction(A3.startFun)&&A3.startFun(AP,AW,A6,A(A3.titCell,A6),A1,A0,A4,A5)},Ar=function(){A.isFunction(A3.endFun)&&A3.endFun(AP,AW,A6,A(A3.titCell,A6),A1,A0,A4,A5)},As=function(){AV.removeClass(Au),AD&&AV.eq(Ax).addClass(Au)};if("menu"==A3.type){return AD&&AV.removeClass(Au).eq(AP).addClass(Au),AV.hover(function(){Ao=A(this).find(A3.targetCell);var C=AV.index(A(this));Aw=setTimeout(function(){switch(AP=C,AV.removeClass(Au).eq(AP).addClass(Au),Am(),a){case"fade":Ao.stop(!0,!0).animate({opacity:"show"},AQ,AF,Ar);break;case"slideDown":Ao.stop(!0,!0).animate({height:"show"},AQ,AF,Ar)}},A3.triggerTime)},function(){switch(clearTimeout(Aw),a){case"fade":Ao.animate({opacity:"hide"},AQ,AF);break;case"slideDown":Ao.animate({height:"hide"},AQ,AF)}}),AB&&A6.hover(function(){clearTimeout(At)},function(){At=setTimeout(As,AQ)}),void 0}if(0==AW&&(AW=A2),Al&&(AW=2),AJ){if(A2>=AU){if("leftLoop"==a||"topLoop"==a){AW=0!=A2%AT?(0^A2/AT)+1:A2/AT}else{var Ap=A2-AU;AW=1+parseInt(0!=Ap%AT?Ap/AT+1:Ap/AT),0>=AW&&(AW=1)}}else{AW=1}AV.html("");var Aq="";if(1==A3.autoPage||"true"==A3.autoPage){for(var Ai=0;AW>Ai;Ai++){Aq+=""+(Ai+1)+""}}else{for(var Ai=0;AW>Ai;Ai++){Aq+=A3.autoPage.replace("$",Ai+1)}}AV.html(Aq);var AV=AV.children()}if(A2>=AU){A1.children().each(function(){A(this).width()>AH&&(AH=A(this).width(),AG=A(this).outerWidth(!0)),A(this).height()>AE&&(AE=A(this).height(),AC=A(this).outerHeight(!0))});var Aj=A1.children(),Ah=function(){for(var C=0;AU>C;C++){Aj.eq(C).clone().addClass("clone").appendTo(A1)}for(var C=0;An>C;C++){Aj.eq(A2-C-1).clone().addClass("clone").prependTo(A1)}};switch(a){case"fold":A1.css({position:"relative",width:AG,height:AC}).children().css({position:"absolute",width:AH,left:0,top:0,display:"none"});break;case"top":A1.wrap('').css({top:-(AP*AT)*AC,position:"relative",padding:"0",margin:"0"}).children().css({height:AE});break;case"left":A1.wrap('').css({width:A2*AG,left:-(AP*AT)*AG,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:AH});break;case"leftLoop":case"left":Ah(),A1.wrap('').css({width:(A2+AU+An)*AG,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(An+AP*AT)*AG}).children().css({"float":"left",width:AH});break;case"topLoop":case"top":Ah(),A1.wrap('').css({height:(A2+AU+An)*AC,position:"relative",padding:"0",margin:"0",top:-(An+AP*AT)*AC}).children().css({height:AE})}}var s=function(D){var C=D*AT;return D==AW?C=A2:-1==D&&0!=A2%AT&&(C=-A2%AT),C},Ak=function(F){var G=function(J){for(var I=J;AU+J>I;I++){F.eq(I).find("img["+AZ+"]").each(function(){var L=A(this);if(L.attr("src",L.attr(AZ)).removeAttr(AZ),A1.find(".clone")[0]){for(var M=A1.children(),K=0;K=1?AP=1:0>=AP&&(AP=0):(Ay=AP,AP>=AW?AP=0:0>AP&&(AP=AW-1)),Am(),null!=AZ&&Ak(A1.children()),A0[0]&&(Ao=A0.eq(AP),null!=AZ&&Ak(A0),"slideDown"==a?(A0.not(Ao).stop(!0,!0).slideUp(AQ),Ao.slideDown(AQ,AF,function(){A1[0]||Ar()})):(A0.not(Ao).stop(!0,!0).hide(),Ao.animate({opacity:"show"},AQ,function(){A1[0]||Ar()}))),A2>=AU){switch(a){case"fade":A1.children().stop(!0,!0).eq(AP).animate({opacity:"show"},AQ,AF,function(){Ar()}).siblings().hide();break;case"fold":A1.children().stop(!0,!0).eq(AP).animate({opacity:"show"},AQ,AF,function(){Ar()}).siblings().animate({opacity:"hide"},AQ,AF);break;case"top":A1.stop(!0,!1).animate({top:-AP*AT*AC},AQ,AF,function(){Ar()});break;case"left":A1.stop(!0,!1).animate({left:-AP*AT*AG},AQ,AF,function(){Ar()});break;case"leftLoop":var D=Ay;A1.stop(!0,!0).animate({left:-(s(Ay)+An)*AG},AQ,AF,function(){-1>=D?A1.css("left",-(An+(AW-1)*AT)*AG):D>=AW&&A1.css("left",-An*AG),Ar()});break;case"topLoop":var D=Ay;A1.stop(!0,!0).animate({top:-(s(Ay)+An)*AC},AQ,AF,function(){-1>=D?A1.css("top",-(An+(AW-1)*AT)*AC):D>=AW&&A1.css("top",-An*AC),Ar()});break;case"left":var E=A1.css("left").replace("px","");0==AP?A1.animate({left:++E},0,function(){A1.css("left").replace("px","")>=0&&A1.css("left",-A2*AG)}):A1.animate({left:--E},0,function(){A1.css("left").replace("px","")<=-(A2+An)*AG&&A1.css("left",-An*AG)});break;case"top":var C=A1.css("top").replace("px","");0==AP?A1.animate({top:++C},0,function(){A1.css("top").replace("px","")>=0&&A1.css("top",-A2*AC)}):A1.animate({top:--C},0,function(){A1.css("top").replace("px","")<=-(A2+An)*AC&&A1.css("top",-An*AC)})}}AV.removeClass(Au).eq(AP).addClass(Au),AA=AP,AK||(A5.removeClass("nextStop"),A4.removeClass("prevStop"),0==AP&&A4.addClass("prevStop"),AP==AW-1&&A5.addClass("nextStop")),AX.html(""+(AP+1)+"/"+AW)}};AD&&Ac(!0),AB&&A6.hover(function(){clearTimeout(At)},function(){At=setTimeout(function(){AP=Ax,AD?Ac():"slideDown"==a?Ao.slideUp(AQ,As):Ao.animate({opacity:"hide"},AQ,As),AA=AP},300)});var Aa=function(C){Av=setInterval(function(){AS?AP--:AP++,Ac()},C?C:AN)},Ab=function(C){Av=setInterval(Ac,C?C:AN)},Af=function(){AI||(clearInterval(Av),Aa())},Ag=function(){(AK||AP!=AW-1)&&(AP++,Ac(),Al||Af())},Ad=function(){(AK||0!=AP)&&(AP--,Ac(),Al||Af())},Ae=function(){clearInterval(Av),Al?Ab():Aa(),AY.removeClass("pauseState")},b=function(){clearInterval(Av),AY.addClass("pauseState")};if(AR?Al?(AS?AP--:AP++,Ab(),AI&&A1.hover(b,Ae)):(Aa(),AI&&A6.hover(b,Ae)):(Al&&(AS?AP--:AP++),AY.addClass("pauseState")),AY.click(function(){AY.hasClass("pauseState")?Ae():b()}),"mouseover"==A3.trigger?AV.hover(function(){var C=AV.index(this);Aw=setTimeout(function(){AP=C,Ac(),Af()},A3.triggerTime)},function(){clearTimeout(Aw)}):AV.click(function(){AP=AV.index(this),Ac(),Af()}),Al){if(A5.mousedown(Ag),A4.mousedown(Ad),AK){var AO,AL=function(){AO=setTimeout(function(){clearInterval(Av),Ab(0^AN/10)},150)},AM=function(){clearTimeout(AO),clearInterval(Av),Ab()};A5.mousedown(AL),A5.mouseup(AM),A4.mousedown(AL),A4.mouseup(AM)}"mouseover"==A3.trigger&&(A5.hover(Ag,function(){}),A4.hover(Ad,function(){}))}else{A5.click(Ag),A4.click(Ad)}})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(E,C,D,A,B){return jQuery.easing[jQuery.easing.def](E,C,D,A,B)},easeInQuad:function(E,C,D,A,B){return A*(C/=B)*C+D},easeOutQuad:function(E,C,D,A,B){return -A*(C/=B)*(C-2)+D},easeInOutQuad:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C+D:-A/2*(--C*(C-2)-1)+D},easeInCubic:function(E,C,D,A,B){return A*(C/=B)*C*C+D},easeOutCubic:function(E,C,D,A,B){return A*((C=C/B-1)*C*C+1)+D},easeInOutCubic:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C+D:A/2*((C-=2)*C*C+2)+D},easeInQuart:function(E,C,D,A,B){return A*(C/=B)*C*C*C+D},easeOutQuart:function(E,C,D,A,B){return -A*((C=C/B-1)*C*C*C-1)+D},easeInOutQuart:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C*C+D:-A/2*((C-=2)*C*C*C-2)+D},easeInQuint:function(E,C,D,A,B){return A*(C/=B)*C*C*C*C+D},easeOutQuint:function(E,C,D,A,B){return A*((C=C/B-1)*C*C*C*C+1)+D},easeInOutQuint:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C*C*C+D:A/2*((C-=2)*C*C*C*C+2)+D},easeInSine:function(E,C,D,A,B){return -A*Math.cos(C/B*(Math.PI/2))+A+D},easeOutSine:function(E,C,D,A,B){return A*Math.sin(C/B*(Math.PI/2))+D},easeInOutSine:function(E,C,D,A,B){return -A/2*(Math.cos(Math.PI*C/B)-1)+D},easeInExpo:function(E,C,D,A,B){return 0==C?D:A*Math.pow(2,10*(C/B-1))+D},easeOutExpo:function(E,C,D,A,B){return C==B?D+A:A*(-Math.pow(2,-10*C/B)+1)+D},easeInOutExpo:function(E,C,D,A,B){return 0==C?D:C==B?D+A:(C/=B/2)<1?A/2*Math.pow(2,10*(C-1))+D:A/2*(-Math.pow(2,-10*--C)+2)+D},easeInCirc:function(E,C,D,A,B){return -A*(Math.sqrt(1-(C/=B)*C)-1)+D},easeOutCirc:function(E,C,D,A,B){return A*Math.sqrt(1-(C=C/B-1)*C)+D},easeInOutCirc:function(E,C,D,A,B){return(C/=B/2)<1?-A/2*(Math.sqrt(1-C*C)-1)+D:A/2*(Math.sqrt(1-(C-=2)*C)+1)+D},easeInElastic:function(E,C,D,H,A){var F=1.70158,G=0,B=H;if(0==C){return D}if(1==(C/=A)){return D+H}if(G||(G=0.3*A),BC?-0.5*B*Math.pow(2,10*(C-=1))*Math.sin((C*A-F)*2*Math.PI/G)+D:0.5*B*Math.pow(2,-10*(C-=1))*Math.sin((C*A-F)*2*Math.PI/G)+H+D},easeInBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),A*(C/=B)*C*((F+1)*C-F)+D},easeOutBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),A*((C=C/B-1)*C*((F+1)*C+F)+1)+D},easeInOutBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),(C/=B/2)<1?A/2*C*C*(((F*=1.525)+1)*C-F)+D:A/2*((C-=2)*C*(((F*=1.525)+1)*C+F)+2)+D},easeInBounce:function(E,C,D,A,B){return A-jQuery.easing.easeOutBounce(E,B-C,0,A,B)+D},easeOutBounce:function(E,C,D,A,B){return(C/=B)<1/2.75?A*7.5625*C*C+D:2/2.75>C?A*(7.5625*(C-=1.5/2.75)*C+0.75)+D:2.5/2.75>C?A*(7.5625*(C-=2.25/2.75)*C+0.9375)+D:A*(7.5625*(C-=2.625/2.75)*C+0.984375)+D},easeInOutBounce:function(E,C,D,A,B){return B/2>C?0.5*jQuery.easing.easeInBounce(E,2*C,0,A,B)+D:0.5*jQuery.easing.easeOutBounce(E,2*C-B,0,A,B)+0.5*A+D}});
(function(A){A.fn.kxbd=function(C){var B=A.extend({},A.fn.kxbd.defaults,C);return this.each(function(){var N=A(this);var M=N.get(0);var D=N.width();var J=N.height();var E=N.children();var H=E.children();var G=0;var P=(B.direction=="left"||B.direction=="right")?1:0;E.css(P?"width":"height",10000);if(B.isEqual){G=H[P?"outerWidth":"outerHeight"]()*H.length}else{H.each(function(){G+=A(this)[P?"outerWidth":"outerHeight"]()})}if(G<(P?D:J)){return}E.append(H.clone()).css(P?"width":"height",G*2+1);var F=G==10000;if(F){var K=0;if(P){A("li",N).each(function(Q,S){var R=parseInt(A("a",A(S)).css("paddingLeft"))+parseInt(A("a",A(S)).css("paddingRight"));K+=A(S).width()+R})}else{A("li",N).each(function(Q,S){var R=parseInt(A("a",A(S)).css("paddingTop"))+parseInt(A("a",A(S)).css("paddingBottom"));K+=A(S).height()+R})}}var O=0;function I(){var Q=(B.direction=="left"||B.direction=="right")?"scrollLeft":"scrollTop";if(B.loop>0){O+=B.scrollAmount;if(O>G*B.loop){M[Q]=0;return clearInterval(L)}}if(B.direction=="left"||B.direction=="up"){var R=M[Q]+B.scrollAmount;if(!F&&R>=G){R-=G}if(F&&R>=K){R-=K}M[Q]=R}else{var R=M[Q]-B.scrollAmount;if(R<=0){if(!F){R+=G}else{R+=K}}M[Q]=R}}var L=setInterval(I,B.scrollDelay);N.hover(function(){clearInterval(L)},function(){clearInterval(L);L=setInterval(I,B.scrollDelay)});if(B.controlBtn){A.each(B.controlBtn,function(Q,R){A(R).bind(B.eventA,function(){B.direction=Q;B.oldAmount=B.scrollAmount;B.scrollAmount=B.newAmount}).bind(B.eventB,function(){B.scrollAmount=B.oldAmount})})}})};A.fn.kxbd.defaults={isEqual:true,loop:0,direction:"left",scrollAmount:1,scrollDelay:20,newAmount:3,eventA:"mousedown",eventB:"mouseup"};A.fn.kxbd.setDefaults=function(B){A.extend(A.fn.kxbd.defaults,B)}})(jQuery);
(function(A){A.fn.kxbdSuper=function(C){var B=A.extend({},A.fn.kxbdSuper.defaults,C);return this.each(function(){var V=A(this);var a=V.get(0);var Z=V.width();var K=V.height();var L=V.children();var X=L.children();var J=0;var f=(B.direction=="left"||B.direction=="right")?1:0;var o,M,P,h;var F,N,O,S,T;var g,R;var H,Q;var U=[];var G=0;var D=0;var l=0;L.css(f?"width":"height",10000);var Y="";if(B.isEqual){g=X[f?"outerWidth":"outerHeight"]();R=X.length;J=g*R;for(var j=0;j"+(j+1)+""}}else{X.each(function(b){U.push(J);J+=A(this)[f?"outerWidth":"outerHeight"]();Y+="- "+(b+1)+"
"})}Y+="
";if(J<(f?Z:K)){return}L.append(X.clone()).css(f?"width":"height",J*2);if(B.navId){H=A(B.navId).append(Y).hover(k,n);Q=A("li",H);Q.each(function(b){A(this).bind(B.eventNav,function(){if(P){return}if(G==b){return}m(U[b]);Q.eq(G).removeClass("navOn");G=b;A(this).addClass("navOn")})});Q.eq(G).addClass("navOn")}if(B.direction=="right"||B.direction=="down"){a[f?"scrollLeft":"scrollTop"]=J}else{a[f?"scrollLeft":"scrollTop"]=0}if(B.is){h=setTimeout(I,B.scrollDelay);V.hover(function(){clearInterval(h)},function(){clearInterval(h);h=setTimeout(I,B.scrollDelay)});if(B.controlBtn){A.each(B.controlBtn,function(b,c){A(c).bind(B.eventA,function(){B.direction=b;B.oldAmount=B.scrollAmount;B.scrollAmount=B.newAmount}).bind(B.eventB,function(){B.scrollAmount=B.oldAmount})})}}else{if(B.isAuto){n();V.hover(k,n)}if(B.btnGo){A.each(B.btnGo,function(b,c){A(c).bind(B.eventGo,function(){if(P==true){return}B.direction=b;m();if(B.isAuto){k();n()}})})}}function I(){var b=(B.direction=="left"||B.direction=="right")?"scrollLeft":"scrollTop";if(B.is){if(B.loop>0){l+=B.scrollAmount;if(l>J*B.loop){a[b]=0;return clearInterval(h)}}var c=a[b]+(B.direction=="left"||B.direction=="up"?1:-1)*B.scrollAmount}else{if(B.duration){if(F++=J){c-=J}}else{if(c<=0){c+=J}}a[b]=c;if(B.is){h=setTimeout(I,B.scrollDelay)}else{if(F=R){G=0}else{if(G<0){G=R-1}}Q.eq(G).addClass("navOn");D=G}var e=D<0?J:0;F=0;N=a[b];T=(d!=undefined)?d:e+(B.distance*D)%J;if(c==1){if(T>N){O=T-N}else{O=T+J-N}}else{if(T>N){O=T-J-N}else{O=T-N}}S=B.duration;if(o){clearTimeout(o)}o=setTimeout(I,B.scrollDelay)}function n(){M=setInterval(function(){m()},B.time*1000)}function k(){clearInterval(M)}function W(p,i,q,e){return -q*(p/=e)*(p-2)+i}function E(p,i,q,e){return q*((p=p/e-1)*p*p*p*p+1)+i}})};A.fn.kxbdSuper.defaults={is:false,isEqual:true,loop:0,newAmount:3,eventA:"mousedown",eventB:"mouseup",isAuto:true,time:5,duration:50,eventGo:"click",direction:"left",scrollAmount:1,scrollDelay:10,eventNav:"click"};A.fn.kxbdSuper.setDefaults=function(B){A.extend(A.fn.kxbdSuper.defaults,B)}})(jQuery);
var timespan=navigator.userAgent.indexOf("Firefox")>0?15:10;var AdConfig=false;function addEvent(F,E,D){if(F.addEventListener){F.addEventListener(E,D,false)}else{if(F.attachEvent){F.attachEvent("on"+E,D)}}}function AdConfigInit(){AdConfig=new Object();AdConfig.Left=0;AdConfig.Top=0;AdConfig.Width=0;AdConfig.Height=0;AdConfig.Scroll=function(){if(document.documentElement&&document.documentElement.scrollLeft){AdConfig.Left=document.documentElement.scrollLeft}else{if(document.body){AdConfig.Left=document.body.scrollLeft}}if(document.documentElement&&document.documentElement.scrollTop){AdConfig.Top=document.documentElement.scrollTop}else{if(document.body){AdConfig.Top=document.body.scrollTop}}};AdConfig.Resize=function(){if(document.documentElement&&document.documentElement.clientHeight&&document.body&&document.body.clientHeight){AdConfig.Width=(document.documentElement.clientWidth>document.body.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth;AdConfig.Height=(document.documentElement.clientHeight>document.body.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight}else{if(document.documentElement&&document.documentElement.clientHeight){AdConfig.Width=document.documentElement.clientWidth;AdConfig.Height=document.documentElement.clientHeight}else{if(document.body){AdConfig.Width=document.body.clientWidth;AdConfig.Height=document.body.clientHeight}}}};AdConfig.Scroll();AdConfig.Resize();addEvent(window,"scroll",AdConfig.Scroll);addEvent(window,"resize",AdConfig.Resize)}function AdPopup(R,O,K,M,L,Q,J,P){var N=window.open("","win"+R,"width="+M+", height="+L+", top="+Q+", left="+J);N.document.write("");N.document.write(O);N.document.write("
");N.document.write(K);N.document.write("'),u.append(S)),C.length&&(C[0].style.opacity=f>0?f:0),S.length&&(S[0].style.opacity=-f>0?-f:0)}}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},pe={init:function(){var e=this.params.thumbs;if(this.thumbs.initialized)return!1;this.thumbs.initialized=!0;var t=this.constructor;return e.swiper instanceof t?(this.thumbs.swiper=e.swiper,S(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),S(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):C(e.swiper)&&(this.thumbs.swiper=new t(S({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick),!0},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,i=e.clickedSlide;if(!(i&&m(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var s;if(s=e.params.loop?parseInt(m(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var a=this.activeIndex;this.slides.eq(a).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,a=this.activeIndex);var r=this.slides.eq(a).prevalsl('[data-swiper-slide-index="'+s+'"]').eq(0).index(),n=this.slides.eq(a).nextAll('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===r?n:void 0===n?r:n-athis.previousIndex?"next":"prev"}else n=(r=this.realIndex)>this.previousIndex?"next":"prev";a&&(r+="next"===n?s:-1*s),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(r)<0&&(t.params.centeredSlides?r=r>l?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>l&&(r=r-i+1),t.slideTo(r,e?0:void 0))}var h=1,p=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(h=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(h=1),h=Math.floor(h),t.slides.removeClass(p),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var u=0;u0&&!m(t.target).hasClass(e.params.pagination.bulletClass)&&(!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow"):e.emit("paginationHide"),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){M(this,{scrollbar:t({isTouched:!1,timeout:null,dragTimeout:null},J)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(e){e.scrollbar.updateSize()},resize:function(e){e.scrollbar.updateSize()},observerUpdate:function(e){e.scrollbar.updateSize()},setTranslate:function(e){e.scrollbar.setTranslate()},setTransition:function(e,t){e.scrollbar.setTransition(t)},destroy:function(e){e.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){M(this,{parallax:t({},Q)})},on:{beforeInit:function(e){e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e,t){e.params.parallax.enabled&&e.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this;M(e,{zoom:t({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},ee)});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,a=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,a)}i=t}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchStart:function(e,t){e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd:function(e,t){e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap:function(e,t){e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){M(this,{lazy:t({initialImageLoaded:!1},te)})},on:{beforeInit:function(e){e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(e){e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(e){e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(e){e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(e){e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange:function(e){e.params.lazy.enabled&&e.params.cssMode&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){M(this,{controller:t({control:this.params.controller.control},ie)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t,i){e.controller.control&&e.controller.setTranslate(t,i)},setTransition:function(e,t,i){e.controller.control&&e.controller.setTransition(t,i)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null}},create:function(){M(this,{a11y:t(t({},se),{},{liveRegion:m('')})})},on:{afterInit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(e){e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){M(this,{history:t({},ae)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},transitionEnd:function(e){e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange:function(e){e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){M(this,{hashNavigation:t({initialized:!1},re)})},on:{init:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(e){e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange:function(e){e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){M(this,{autoplay:t(t({},ne),{},{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),r().addEventListener("visibilitychange",e.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t,i){e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderFirstMove:function(e){e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(e){e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.running&&e.autoplay.stop(),r().removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){M(this,{fadeEffect:t({},le)})},on:{beforeInit:function(e){if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};S(e.params,t),S(e.originalParams,t)}},setTranslate:function(e){"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e,t){"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){M(this,{cubeEffect:t({},oe)})},on:{beforeInit:function(e){if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};S(e.params,t),S(e.originalParams,t)}},setTranslate:function(e){"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e,t){"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){M(this,{flipEffect:t({},de)})},on:{beforeInit:function(e){if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};S(e.params,t),S(e.originalParams,t)}},setTranslate:function(e){"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e,t){"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){M(this,{coverflowEffect:t({},he)})},on:{beforeInit:function(e){"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(e){"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e,t){"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){M(this,{thumbs:t({swiper:null,initialized:!1},pe)})},on:{beforeInit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(e){e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e,t){var i=e.thumbs.swiper;i&&i.setTransition(t)},beforeDestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}}];return R.use(ue),R}));
Validator={Require:/.+/,Email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,phones:/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/,mobiles:/^1[3457869]\d{9}$/,Url:/^https:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,IdCard:"this.IsIdCard(value)",Currency:/^\d+(\.\d+)?$/,Number:/^\d+$/,Zip:/^\d{6}$/,QQ:/^[1-9]\d{4,11}$/,Integer:/^[-\+]?\d+$/,Double:/^[-\+]?\d+(\.\d+)?$/,English:/^[A-Za-z]+$/,Chinese:/^[\u0391-\uFFE5]+$/,Username:/^[a-z]\w{3,}$/i,UnSafe:/^(([A-Z]*|[a-z]*|\d*|[-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/,IsSafe:function(A){return !this.UnSafe.test(A)},SafeString:"this.IsSafe(value)",Filter:"this.DoFilter(value, getAttribute('accept'))",Limit:"this.limit(value.length,getAttribute('min'), getAttribute('max'))",LimitB:"this.limit(this.LenB(value), getAttribute('min'), getAttribute('max'))",Date:"this.IsDate(value, getAttribute('min'), getAttribute('format'))",Repeat:"value == document.getElementsByName(getAttribute('to'))[0].value",Range:"getAttribute('min') < (value|0) && (value|0) < getAttribute('max')",Compare:"this.compare(value,getAttribute('operator'),getAttribute('to'))",Custom:"this.Exec(value, getAttribute('regexp'))",Group:"this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",ErrorItem:[document.forms[0]],ErrorMessage:[T("以下原因导致提交失败")+":\t\t\t\t"],Validate:function(theForm,mode){var obj=theForm||event.srcElement;var count=obj.elements.length;this.ErrorMessage.length=1;this.ErrorItem.length=1;this.ErrorItem[0]=obj;for(var i=0;i(((\n)|(.))*)$/)).test(value)){this.AddError(i,getAttribute("msgHtml"));this.ClearState(obj.elements[i])}else{var _dataType=getAttribute("dataType");if(typeof(_dataType)=="object"||typeof(this[_dataType])=="undefined"){continue}this.ClearState(obj.elements[i]);if(getAttribute("require")=="false"&&value==""){continue}switch(_dataType){case"IdCard":case"Date":case"Repeat":case"Range":case"Compare":case"Custom":case"Group":case"Limit":case"LimitB":case"SafeString":case"Filter":if(!evals(this[_dataType])){this.AddError(i,getAttribute("msg"))}break;default:if(!this[_dataType].test(value)){this.AddError(i,getAttribute("msg"))}else{if(getAttribute("allowHtml")=="1"&&(new RegExp(/^(((\n)|(.))*)<(((\n)|(.))*)>(((\n)|(.))*)$/)).test(value)){this.AddError(i,getAttribute("msgHtml"))}}break}}}}if(this.ErrorMessage.length>1){mode=mode||1;var errCount=this.ErrorItem.length;switch(mode){case 2:for(var i=1;iB);case"GreaterThanEqual":return(A>=B);case"LessThan":return(A=0;B--){if(C[B].checked){E++}}return A<=E&&E<=F},DoFilter:function(A,B){return new RegExp("^.+.(?=EXT)(EXT)$".replace(/EXT/g,B.split(/\s*,\s*/).join("|")),"gi").test(A)},IsIdCard:function(A){var I,D;var H="10x98765432";var G=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];var C=["","","","","","","","","","","","北京","天津","河北","山西","内蒙古","","","","","","辽宁","吉林","黑龙江","","","","","","","","上海","江苏","浙江","安微","福建","江西","山东","","","","河南","湖北","湖南","广东","广西","海南","","","","重庆","四川","贵州","云南","西藏","","","","","","","陕西","甘肃","青海","宁夏","新疆","","","","","","台湾","","","","","","","","","","香港","澳门","","","","","","","","","国外"];var B=A.match(/^(\d{2})\d{4}(((\d{2})(\d{2})(\d{2})(\d{3}))|((\d{4})(\d{2})(\d{2})(\d{3}[x\d])))$/i);if(B==null){return false}if(B[1]>=C.length||C[B[1]]==""){return false}if(B[2].length==12){D=A.substr(0,17);I=[B[9],B[10],B[11]].join("-")}else{D=A.substr(0,6)+"19"+A.substr(6);I=["19"+B[4],B[5],B[6]].join("-")}if(!this.IsDate(I,"ymd")){return false}var E=0;for(var F=0;F<=16;F++){E+=D.charAt(F)*G[F]}D+=H.charAt(E%11);return(A.length==15||A.length==18&&A==D)},IsDate:function(G,F){F=F||"ymd";var E,D,A,B;switch(F){case"ymd":E=G.match(new RegExp("^((\\d{4})|(\\d{2}))([-./])(\\d{1,2})\\4(\\d{1,2})$"));if(E==null){return false}B=E[6];A=E[5]*1;D=(E[2].length==4)?E[2]:C(parseInt(E[3],10));break;case"dmy":E=G.match(new RegExp("^(\\d{1,2})([-./])(\\d{1,2})\\2((\\d{4})|(\\d{2}))$"));if(E==null){return false}B=E[1];A=E[3]*1;D=(E[5].length==4)?E[5]:C(parseInt(E[6],10));break;default:break}if(!parseInt(A)){return false}A=A==0?12:A;var H=new Date(D,A-1,B);return(typeof(H)=="object"&&D==H.getFullYear()&&A==(H.getMonth()+1)&&B==H.getDate());function C(I){return((I<30?"20":"19")+I)|0}}};