/* Copyright (c) 2013-Now http://jeesite.com All rights reserved. No deletion without permission, or be held responsible to law. The JS file, without author permission, shall not be copied, published and spread, can not be used for commercial purposes @author Think Gem, Email: ThinkGem at 163.COM @version 2020-4-26 */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(a,f,k){if(null==a)throw new TypeError("The 'this' value for String.prototype."+k+" must not be null or undefined");if(f instanceof RegExp)throw new TypeError("First argument to String.prototype."+k+" must not be a regular expression");return a+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; $jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,k){a!=Array.prototype&&a!=Object.prototype&&(a[f]=k.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];for(var f=0;f=d}},"es6","es3"); $jscomp.polyfill("String.prototype.endsWith",function(a){return a?a:function(a,k){var c=$jscomp.checkStringArgs(this,a,"endsWith");a+="";void 0===k&&(k=c.length);k=Math.max(0,Math.min(k|0,c.length));for(var b=a.length;0=b}},"es6","es3");$jscomp.findInternal=function(a,f,k){a instanceof String&&(a=String(a));for(var c=a.length,b=0;bparseInt(e/4)||0=e&&e+h>=c-1?d||(b.addClass("display"),d=!0):d&&(b.removeClass("display"),d=!1)}).triggerHandler("scroll.btnScrollTop");b.on("click",function(){a("html,body").animate({scrollTop:0}, 500);return!1})}},1E3)});var c={iCheck:function(b){if(b!=k&&a.fn.iCheck!=k)return a(b).each(function(){return a(this).iCheck(a.extend({checkboxClass:"icheckbox_"+(a(this).data("style")||"minimal-grey"),radioClass:"iradio_"+(a(this).data("style")||"minimal-grey")},a(this).data())).on("ifChanged",function(){try{a(this).resetValid()}catch(d){}})})},select2:function(b){if(b!=k&&a.fn.select2!=k)return a(b).each(function(){return a(this).select2(a.extend({minimumResultsForSearch:10,templateResult:function(b, h){var d=a(b.element),c=a(h);h=d.attr("data-icon");var g=d.attr("style");d=d.attr("class");g&&""!=g&&c.attr("style",g);d&&""!=d&&c.addClass(d);d="";h&&""!=h&&(d=-1!=h.indexOf("://")?'':0==h.indexOf("/")?'':' ');return a(""+d+b.text+"")}},a(this).data())).on("change",function(){try{a(this).resetValid()}catch(d){}})})},laydate:function(b){if(b!=k&&f.laydate!=k)return a(b).each(function(){var b= a(this).data(),h={};if(b.options&&""!=b.options){var e=b.options;h=eval("opts="+e);delete b.options}b.ready&&""!=b.ready&&(e=b.ready,b.ready=function(b){return c.startWith(e,"function")?eval("fun="+e)(b):eval(e)});b.done&&""!=b.done&&(e=b.done,b.done=function(b,a,d){var h=e.indexOf(".click()");if(-1!=h){var n=e.substring(0,h);if(/^[a-zA-Z0-9_]*$/.test(n))return n="$('#"+n+"')"+e.substring(h),eval(n)}return c.startWith(e,"function")?eval("fun="+e)(b,a,d):eval(e)});b.change&&""!=b.change&&(e=b.change, b.change=function(b,a,d){return c.startWith(e,"function")?eval("fun="+e)(b,a,d):eval(e)});return laydate.render(a.extend({elem:this},b,h))})},log:function(b){if("undefined"!==typeof console)if(console.log.apply)console.log.apply(console,arguments);else for(var a in arguments)console.log(arguments[a])},error:function(b){if("undefined"!==typeof console)if(console.error.apply)console.error.apply(console,arguments);else for(var a in arguments)console.error(arguments[a])},encodeUrl:function(b){return encodeURIComponent(b)}, decodeUrl:function(b){return decodeURIComponent(b)},ie:function(){var b=navigator.userAgent.toLowerCase();return f.ActiveXObject||"ActiveXObject"in f?(b.match(/msie\s(\d+)/)||[])[1]||(b.match(/Trident/i)&&b.match(/rv:(\d+)/)||[])[1]||!1:!1}(),val:function(b,a){if(b===k)return"";if(a===k||""==a)return"string"===typeof b?b:"";var d=b[a],e=[],c;if(d===k)try{if("string"===typeof a&&(e=a.split(".")),c=e.length)for(d=b;d&&c--;){var g=e.shift();d=d[g]}}catch(l){}return d===k?"":d},hashCode:function(b,a){1!= a&&(b=b.toLowerCase());a=1315423911;var d;for(d=b.length-1;0<=d;d--){var e=b.charCodeAt(d);a^=(a<<5)+e+(a>>2)}return a&2147483647},loadFile:function(b,d,h){d=d||function(){};h=h||function(b){c.showMessage(b)};b="string"==typeof b?[b]:b;var e=document.getElementsByTagName("head")[0],n=0,g=b.length,l,m=null;for(l=0;l"+l.dictLabel+"")):b.push(l.dictLabel)}}return 0\u00d7',0==a("#page-loading").length?a("body").append('
'+b+"
"):1!=d&&a("#page-loading").html(b)): 2==c.pageLoadingStyle&&0==a("#page-loading-top").length&&(a("body").append('
'),a("#page-loading-top").animate({width:"65%"},2E3,function(){a(this).animate({width:"85%"},8E3)}));c.pageLoadingNum++},0)}},closeLoading:function(b,d){try{top.loadingFlag=!0;var h=top.js||parent.parent.js||parent.js}catch(e){}"undefined"==typeof loadingFlag&&h&&"function"==typeof h.closeLoading?h.closeLoading(b,d):setTimeout(function(){c.pageLoadingNum||(c.pageLoadingNum= 0);c.pageLoadingNum--;if(d||0>=c.pageLoadingNum)1==c.pageLoadingStyle?a("#page-loading").remove():2==c.pageLoadingStyle&&a("#page-loading-top").stop().animate({width:"100%"},200,function(){a(this).fadeOut(300,function(){a(this).remove()})}),c.pageLoadingNum=0},b==k?0:b)},window:function(){try{if(top.window&&top.window.jeesite)return top.window}catch(b){}try{if(parent.parent.window&&parent.parent.window.jeesite)return parent.parent.window}catch(b){}try{if(parent.window&&parent.window.jeesite)return parent.window}catch(b){}return f}(), layer:function(){try{if(top.layer&&top.layer.window)return top.layer}catch(b){}try{if(parent.parent.layer&&parent.parent.layer.window)return parent.parent.layer}catch(b){}try{if(parent.layer&&parent.layer.window)return parent.layer}catch(b){}return f.layer?layer:null}(),toastrInit:function(){try{if(top.toastr)return top.toastr}catch(b){}try{if(parent.parent.toastr)return parent.parent.toastr}catch(b){}try{if(parent.toastr)return parent.toastr}catch(b){}return null},showMessage:function(a,d,h,e){a= String(a);var b=function(a,b){if(b){b=b.split(",");for(var e=0;ea.length)return"";for(var b=0,e=0,c=!1,g=!1,l,f=0;f=g||65376<=g&&65439>=g?(b++,g=!1):(b+=2,e++,g=!0),b>d&&f<=a.length-1){1==g&&1==c&&(l=a.substring(0,f-2)+"...");0==g&&0==c&&(l=a.substring(0,f-3)+"...");1==g&&0==c&&(l=a.substring(0,f-2)+"...");1==c&&(l=a.substring(0,f-2)+"...");break}return b<=d?a:l},formatNumber:function(a,d,c,e){if("undefined"==typeof a||null==a||""===a)return e||"";a=String(a).replace(/\$|,/g,"");isNaN(a)&&(a="0");e=a==(a=Math.abs(a));a=Math.floor(a*Math.pow(10,d)+.50000000001); var b=a%Math.pow(10,d);a=Math.floor(a/Math.pow(10,d)).toString();for(b=b.toString();b.length=d?d:2;a=parseFloat((a+"").replace(/[^\d\.-]/g,"")).toFixed(d)+"";d=a.split(".")[0].split("").reverse();a=a.split(".")[1];var b,e="";for(b=0;bg&&(l=0),2g&&(l=3),5g&&(l=6),8)/g,"");d=d||[];return"function"==typeof c?(laytpl(b).render(d||[],function(a){c(a)}),null):laytpl(b).render(d||[])},cookie:function(a,d,c){if("undefined"!=typeof d){c=c||{};null===d&&(d="",c.expires=-1);var b="";c.expires&&("number"==typeof c.expires||c.expires.toUTCString)&&("number"==typeof c.expires?(b=new Date,b.setTime(b.getTime()+864E5*c.expires)):b=c.expires,b="; expires="+b.toUTCString());var h="; path="+(c.path?c.path:"/"),f=c.domain?"; domain="+ c.domain:"";c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(d),b,h,f,c].join("")}else{d=null;if(document.cookie&&""!=document.cookie)for(c=document.cookie.split(";"),b=c.length-1;0<=b;b--)if(h=jQuery.trim(c[b]),h.substring(0,a.length+1)==a+"="){d=decodeURIComponent(h.substring(a.length+1));break}return d}},tabPage:function(){if(f.tabPage)return tabPage;try{if(parent.tabPage)return parent.tabPage}catch(b){}try{if(parent.parent.tabPage)return parent.parent.tabPage}catch(b){}try{if(top.tabPage)return top.tabPage}catch(b){}return null}(), initTabPage:function(a,d){return f.tabPage.initTabPage(a,d)},addTabPage:function(b,d,h,e,f){var g=c.tabPage;if(!g||"function"!=typeof g.addTabPage||"true"==c.cookie("formLayerModel")&&b&&0!=b.data("layer")&&(b.hasClass("btnTool")||b.hasClass("btnList"))||b&&1==b.data("layer"))if(c.layer){if(b){var l=b.data("layerWidth");var m=b.data("layerHeight");var n=b.data("layerLeft");var r=b.data("layerTop");var p=b.data("shadeClose");var t=b.data("autoHeight")}if(null==l||""==l)l=a(c.window).width(),l=null!= n&&""!=n?l-2*parseInt(n):800>l?l-30:l-200;null==m||""==m?(m=a(c.window).height(),m=null!=r&&""!=r?m-2*parseInt(r):500>m?m-30:m-50):m+=5;c.layer.open({type:2,maxmin:!0,shadeClose:p==k||1==p,title:"false"!=String(d)?d:!1,area:[l+"px",m+"px"],content:h,contentFormData:{__layer:!0,__layer_title:"false"!=String(d)},success:function(d,e){a(c.layer.window).width()c.minHeight){if(c.maxHeight&&this.scrollHeight>c.maxHeight){var d=c.maxHeight;a.overflowY="scroll"}else d=this.scrollHeight,a.overflowY="hidden";a.height=d+"px"}}).trigger("blur")})}})(jQuery); (function(a){a.fn.position1x=function(){if(this[0]){var a={top:0,left:0},k=this[0];if("fixed"===jQuery.css(k,"position"))var c=k.getBoundingClientRect();else{var b=this.offsetParent();c=this.offset();jQuery.nodeName(b[0],"html")||(a=b.offset());a.top+=jQuery.css(b[0],"borderTopWidth",!0);a.left+=jQuery.css(b[0],"borderLeftWidth",!0)}return{top:c.top-a.top-jQuery.css(k,"marginTop",!0),left:c.left-a.left-jQuery.css(k,"marginLeft",!0)}}}})(jQuery); (function(a){a.fn.iframeWindow=function(){var f=a(this).find("iframe");return 0I&&(I=-50);C(this);return p.each(function(){var e=a(this);b(e);var d=this,h=d.id,C=-I+"%",p=100+2*I+"%";p={position:"absolute",top:C,left:C,display:"block",width:p,height:p,margin:0,padding:0,background:"#fff",border:0,opacity:0};C=A?{position:"absolute",visibility:"hidden"}:I?p:{position:"absolute",opacity:0};var y="checkbox"== d[u]?v.checkboxClass||"icheckbox":v.radioClass||"i"+l,t=a(K+'[for="'+h+'"]').add(e.closest(K)),M=!!v.aria,Q=n+"-"+Math.random().toString(36).replace("0.",""),z='
")[G]("ifCreated").parent().append(v.insert);p=a('').css(p).appendTo(z);e.data(n,{o:v,s:e.attr("style")}).css(C);v.inheritClass&&z[x](d.className||"");v.inheritID&& h&&z.attr("id",n+"-"+h);"static"==z.css("position")&&z.css("position","relative");f(e,!0,w);if(t.length)t.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(b){var c=b[u],l=a(this);if(!d[r]){if("click"==c||"touchend"==c){if(a(b.target).is("a"))return;f(e,!1,!0)}else N&&(/ut|nd/.test(c)?(z[D](H),l[D](L)):(z[x](H),l[x](L)));if(A)b.stopPropagation();else return!1}});e.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(a){var b=a[u];a=a.keyCode;if("click"==b)return!1; if("keydown"==b&&32==a)return d[u]==l&&d[m]||(d[m]?c(e,m):k(e,m)),!1;if("keyup"==b&&d[u]==l)!d[m]&&k(e,m);else if(/us|ur/.test(b))z["blur"==b?D:x](S)});p.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(a){var b=a[u],c=/wn|up/.test(b)?q:H;if(!d[r]){if("click"==b)f(e,!1,!0);else{if(/wn|er|in/.test(b))z[x](c);else z[D](c+" "+q);if(t.length&&N&&c==H)t[/ut|nd/.test(b)?D:x](L)}if(A)a.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(a){function f(b){var e=b.data;b.isDefaultPrevented()||(b.preventDefault(),a(b.target).ajaxSubmit(e))}function k(b){var e=b.target,c=a(e);if(!c.is("[type=submit],[type=image]")){e=c.closest("[type=submit]");if(0===e.length)return;e=e[0]}var d=this;if(d.clk=e,"image"==e.type)void 0!==b.offsetX?(d.clk_x=b.offsetX,d.clk_y=b.offsetY):"function"==typeof a.fn.offset?(c=c.offset(), d.clk_x=b.pageX-c.left,d.clk_y=b.pageY-c.top):(d.clk_x=b.pageX-e.offsetLeft,d.clk_y=b.pageY-e.offsetTop);setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},100)}function c(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}var b=void 0!==a("").get(0).files;var d=void 0!==window.FormData;var h=!!a.fn.prop;a.fn.attr2=function(){if(!h)return this.attr.apply(this, arguments);var a=this.prop.apply(this,arguments);return a&&a.jquery||"string"==typeof a?a:this.attr.apply(this,arguments)};a.fn.ajaxSubmit=function(e){function f(b){var c=a.param(b,e.traditional).split("&"),d=c.length,f=[];for(b=0;d>b;b++){c[b]=c[b].replace(/\+/g," ");var h=c[b].split("=");f.push([decodeURIComponent(h[0]),decodeURIComponent(h[1])])}return f}function k(b){for(var c=new FormData,d=0;d').val(g.extraData[n].value).appendTo(E)[0]:a('').val(g.extraData[n]).appendTo(E)[0]);g.iframeTarget||p.appendTo("body");t.attachEvent?t.attachEvent("onload",k):t.addEventListener("load",k,!1);setTimeout(b,15);try{E.submit()}catch(W){document.createElement("form").submit.apply(E)}}finally{E.setAttribute("action",f),E.setAttribute("enctype", h),e?E.setAttribute("target",e):m.removeAttr("target"),a(l).remove()}}function k(b){if(!q.aborted&&!K){if(B=d(t),B||(c("cannot access response document"),b=D),b===F&&q)return q.abort("timeout"),void J.reject(q,"timeout");if(b==D&&q)return q.abort("server abort"),void J.reject(q,"error","server abort");if(B&&B.location.href!=g.iframeSrc||x){t.detachEvent?t.detachEvent("onload",k):t.removeEventListener("load",k,!1);var e;b="success";try{if(x)throw"timeout";var f="xml"==g.dataType||B.XMLDocument||a.isXMLDoc(B); if(c("isXml="+f),!f&&window.opera&&(null===B.body||!B.body.innerHTML)&&--T)return c("requeing onLoad callback, DOM not available"),void setTimeout(k,250);var h=B.body?B.body:B.documentElement;q.responseText=h?h.innerHTML:null;q.responseXML=B.XMLDocument?B.XMLDocument:B;f&&(g.dataType="xml");q.getResponseHeader=function(a){return{"content-type":g.dataType}[a.toLowerCase()]};h&&(q.status=Number(h.getAttribute("status"))||q.status,q.statusText=h.getAttribute("statusText")||q.statusText);var l=(g.dataType|| "").toLowerCase(),m=/(json|script|text)/.test(l);if(m||g.textarea){var r=B.getElementsByTagName("textarea")[0];if(r)q.responseText=r.value,q.status=Number(r.getAttribute("status"))||q.status,q.statusText=r.getAttribute("statusText")||q.statusText;else if(m){var v=B.getElementsByTagName("pre")[0],u=B.getElementsByTagName("body")[0];v?q.responseText=v.textContent?v.textContent:v.innerText:u&&(q.responseText=u.textContent?u.textContent:u.innerText)}}else"xml"==l&&!q.responseXML&&q.responseText&&(q.responseXML= U(q.responseText));try{G=V(q,l,g)}catch(P){b="parsererror",q.error=e=P||b}}catch(P){c("error caught: ",P),b="error",q.error=e=P||b}q.aborted&&(c("upload aborted"),b=null);q.status&&(b=200<=q.status&&300>q.status||304===q.status?"success":"error");"success"===b?(g.success&&g.success.call(g.context,G,"success",q),J.resolve(q.responseText,"success",q),n&&a.event.trigger("ajaxSuccess",[q,g])):b&&(void 0===e&&(e=q.statusText),g.error&&g.error.call(g.context,q,b,e),J.reject(q,"error",e),n&&a.event.trigger("ajaxError", [q,g,e]));n&&a.event.trigger("ajaxComplete",[q,g]);n&&!--a.active&&a.event.trigger("ajaxStop");g.complete&&g.complete.call(g.context,q,b);K=!0;g.timeout&&clearTimeout(A);setTimeout(function(){g.iframeTarget?p.attr("src",g.iframeSrc):p.remove();q.responseXML=null},100)}}}var l,g,n,r,p,t,q,u,x,A,E=m[0],J=a.Deferred();if(J.abort=function(a){q.abort(a)},b)for(l=0;l'),p.css({position:"absolute",top:"-1000px",left:"-1000px"})),t=p[0],q={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(b){var e="timeout"===b?"timeout":"aborted";c("aborting upload... "+e);this.aborted=1;try{t.contentWindow.document.execCommand&& t.contentWindow.document.execCommand("Stop")}catch(O){}p.attr("src",g.iframeSrc);q.error=e;g.error&&g.error.call(g.context,q,e,b);n&&a.event.trigger("ajaxError",[q,g,e]);g.complete&&g.complete.call(g.context,q,e)}},n=g.global,n&&0===a.active++&&a.event.trigger("ajaxStart"),n&&a.event.trigger("ajaxSend",[q,g]),g.beforeSend&&!1===g.beforeSend.call(g.context,q,g))return g.global&&a.active--,J.reject(),J;if(q.aborted)return J.reject(),J;(b=E.clk)&&(u=b.name,u&&!b.disabled&&(g.extraData=g.extraData||{}, g.extraData[u]=b.value,"image"==b.type&&(g.extraData[u+".x"]=E.clk_x,g.extraData[u+".y"]=E.clk_y)));var F=1,D=2;u=a("meta[name=csrf-token]").attr("content");(b=a("meta[name=csrf-param]").attr("content"))&&u&&(g.extraData=g.extraData||{},g.extraData[b]=u);g.forceSync?f():setTimeout(f,10);var G,B,K,T=50,U=a.parseXML||function(a,b){return window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml"),b&&b.documentElement&&"parsererror"!= b.documentElement.nodeName?b:null},z=a.parseJSON||function(a){return window.eval("("+a+")")},V=function(b,e,c){var d=b.getResponseHeader("content-type")||"",f="xml"===e||!e&&0<=d.indexOf("xml");b=f?b.responseXML:b.responseText;return f&&"parsererror"===b.documentElement.nodeName&&a.error&&a.error("parsererror"),c&&c.dataFilter&&(b=c.dataFilter(b,e)),"string"==typeof b&&("json"===e||!e&&0<=d.indexOf("json")?b=z(b):("script"===e||!e&&0<=d.indexOf("javascript"))&&a.globalEval(b)),b};return J}if(!this.length)return c("ajaxSubmit: skipping submit process - no element selected"), this;var m=this;"function"==typeof e?e={success:e}:void 0===e&&(e={});var v=e.type||this.attr2("method");var r=e.url||this.attr2("action");(r=(r="string"==typeof r?a.trim(r):"")||window.location.href||"")&&(r=(r.match(/^([^#]+)/)||[])[1]);e=a.extend(!0,{url:r,success:a.ajaxSettings.success,type:v||a.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);r={};if(this.trigger("form-pre-serialize",[this,e,r]),r.veto)return c("ajaxSubmit: submit vetoed via form-pre-serialize trigger"), this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return c("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var p=e.traditional;void 0===p&&(p=a.ajaxSettings.traditional);var t,w=[],u=this.formToArray(e.semantic,w);if(e.data&&(e.extraData=e.data,t=a.param(e.data,p)),e.beforeSubmit&&!1===e.beforeSubmit(u,this,e))return c("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[u,this,e,r]),r.veto)return c("ajaxSubmit: submit vetoed via form-submit-validate trigger"), this;r=a.param(u,p);t&&(r=r?r+"&"+t:t);"GET"==e.type.toUpperCase()?(e.url+=(0<=e.url.indexOf("?")?"&":"?")+r,e.data=null):e.data=r;var x=[];if(e.resetForm&&x.push(function(){m.resetForm()}),e.clearForm&&x.push(function(){m.clearForm(e.includeHidden)}),!e.dataType&&e.target){var D=e.success||function(){};x.push(function(b){var c=e.replaceTarget?"replaceWith":"html";a(e.target)[c](b).each(D,arguments)})}else e.success&&x.push(e.success);if(e.success=function(a,b,c){for(var d=e.context||this,f=0,g=x.length;g> f;f++)x[f].apply(d,[a,b,c||m,m])},e.error){var G=e.error;e.error=function(a,b,c){G.apply(e.context||this,[a,b,c,m])}}if(e.complete){var K=e.complete;e.complete=function(a,b){K.apply(e.context||this,[a,b,m])}}t=0f;f++)if(w=n[f],p=w.name,p&&!w.disabled)if(e&&h.clk&&"image"==w.type)h.clk==w&&(d.push({name:p,value:a(w).val(),type:w.type}),d.push({name:p+".x",value:h.clk_x},{name:p+".y",value:h.clk_y}));else if(t=a.fieldValue(w,!0),t&&t.constructor==Array)for(c&&c.push(w),k=0,x=t.length;x>k;k++)d.push({name:p, value:t[k]});else if(b&&"file"==w.type)if(c&&c.push(w),x=w.files,x.length)for(k=0;kf;f++)c.push({name:d,value:e[f]});else null!==e&&"undefined"!=typeof e&&c.push({name:this.name,value:e})}}),a.param(c)};a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;e>d;d++){var f=a.fieldValue(this[d],b);null===f||"undefined"==typeof f||f.constructor==Array&&!f.length||(f.constructor==Array?a.merge(c,f):c.push(f))}return c}; a.fieldValue=function(b,c){var d=b.name,e=b.type,f=b.tagName.toLowerCase();if(void 0===c&&(c=!0),c&&(!d||b.disabled||"reset"==e||"button"==e||("checkbox"==e||"radio"==e)&&!b.checked||("submit"==e||"image"==e)&&b.form&&b.form.clk!=b||"select"==f&&-1==b.selectedIndex))return null;if("select"==f){f=b.selectedIndex;if(0>f)return null;c=[];b=b.options;d=(e="select-one"==e)?f+1:b.length;for(f=e?f:0;d>f;f++){var h=b[f];if(h.selected){var k=h.value;if(k||(k=h.attributes&&h.attributes.value&&!h.attributes.value.specified? h.text:h.value),e)return k;c.push(k)}}return c}return a(b).val()};a.fn.clearForm=function(b){return this.each(function(){a("input,select,textarea",this).clearFields(b)})};a.fn.clearFields=a.fn.clearInputs=function(b){var c=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var d=this.type,e=this.tagName.toLowerCase();c.test(d)||"textarea"==e?this.value="":"checkbox"==d||"radio"==d?this.checked=!1:"select"==e?this.selectedIndex= -1:"file"==d?/MSIE/.test(navigator.userAgent)?a(this).replaceWith(a(this).clone(!0)):a(this).val(""):b&&(!0===b&&/hidden/.test(d)||"string"==typeof b&&a(this).is(b))&&(this.value="")})};a.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){return void 0===a&&(a=!0),this.each(function(){this.disabled=!a})};a.fn.selected=function(b){return void 0===b&&(b=!0),this.each(function(){var c= this.type;"checkbox"==c||"radio"==c?this.checked=b:"option"==this.tagName.toLowerCase()&&(c=a(this).parent("select"),b&&c[0]&&"select-one"==c[0].type&&c.find("option").selected(!1),this.selected=b)})};a.fn.ajaxSubmit.debug=!1}); !function(a,f){var k=a();a.fn.dropdownHover=function(c){return"ontouchstart"in document?this:(k=k.add(this.parent()),this.each(function(){function b(){e.parents(".navbar").find(".navbar-toggle").is(":visible")||(f.clearTimeout(d),f.clearTimeout(h),h=f.setTimeout(function(){k.find(":focus").blur();!0===m.instantlyCloseOthers&&k.removeClass("open");f.clearTimeout(h);e.attr("aria-expanded","true");n.addClass("open");e.trigger(l)},m.hoverDelay))}var d,h,e=a(this),n=e.parent(),g={delay:a(this).data("delay"), hoverDelay:a(this).data("hover-delay"),instantlyCloseOthers:a(this).data("close-others")},l="show.bs.dropdown",m=a.extend(!0,{},{delay:500,hoverDelay:0,instantlyCloseOthers:!0},c,g);n.hover(function(a){return n.hasClass("open")||e.is(a.target)?void b(a):!0},function(){f.clearTimeout(h);d=f.setTimeout(function(){e.attr("aria-expanded","false");n.removeClass("open");e.trigger("hide.bs.dropdown")},m.delay)});e.hover(function(a){return n.hasClass("open")||n.is(a.target)?void b(a):!0});n.find(".dropdown-submenu").each(function(){var b, c=a(this);c.hover(function(){f.clearTimeout(b);c.children(".dropdown-menu").show();c.siblings().children(".dropdown-menu").hide()},function(){var a=c.children(".dropdown-menu");b=f.setTimeout(function(){a.hide()},m.delay)})})}))};a(document).ready(function(){a('[data-hover="dropdown"]').dropdownHover()})}(jQuery,window); !function(){var a={open:"{{",close:"}}"},f={exp:function(a){return new RegExp(a,"g")},query:function(b,c,e){return k((c||"")+a.open+["#([\\s\\S])+?","([^{#}])*?"][b||0]+a.close+(e||""))},escape:function(a){return String(a||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(a,b){return"object"==typeof console&&console.error("Laytpl Error\uff1a"+a+"\n"+(b||"")),"Laytpl Error\uff1a"+a}},k=f.exp,c=function(a){this.tpl= a};c.pt=c.prototype;window.errors=0;c.pt.parse=function(b,c){var d=b,h=k("^"+a.open+"#",""),g=k(a.close+"$","");b=b.replace(/\s+|\r|\t|\n/g," ").replace(k(a.open+"#"),a.open+"# ").replace(k(a.close+"}"),"} "+a.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(f.query(),function(a){return a=a.replace(h,"").replace(g,""),'";'+a.replace(/\\/g,"")+';view+="'}).replace(f.query(1),function(b){var c='"+(';return b.replace(/\s/g,"")===a.open+a.close?"":(b=b.replace(k(a.open+"|"+a.close),""),/^=/.test(b)&& (b=b.replace(/^=/,""),c='"+_escape_('),c+b.replace(/\\/g,"")+')+"')});b='"use strict";var view = "'+b+'";return view;';try{return this.cache=b=new Function("d, _escape_",b),b(c,f.escape)}catch(l){return delete this.cache,f.error(l,d)}};c.pt.render=function(a,b){var c;return a?(c=this.cache?this.cache(a,f.escape):this.parse(this.tpl,a),b?void b(c):c):f.error("no data")};var b=function(a){return"string"!=typeof a?f.error("Template not found"):new c(a)};b.config=function(b){b=b||{};for(var c in b)a[c]= b[c]};b.v="1.2";"function"==typeof define?define(function(){return b}):"undefined"!=typeof exports?module.exports=b:window.laytpl=b}(); (function(){this.Base64=new function(){_keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(a){var f="";if(!a||""==a)return f;var k=0;for(a=_utf8_encode(a);k>2;c=(c&3)<<4|b>>4;var e=(b&15)<<2|d>>6;var n=d&63;isNaN(b)?e=n=64:isNaN(d)&&(n=64);f=f+_keyStr.charAt(h)+_keyStr.charAt(c)+_keyStr.charAt(e)+_keyStr.charAt(n)}return f};this.decode=function(a){var f="";if(!a|| ""==a)return f;var k=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");k>4;b=(b&15)<<4|d>>2;var e=(d&3)<<6|h;f+=String.fromCharCode(c);64!=d&&(f+=String.fromCharCode(b));64!=h&&(f+=String.fromCharCode(e))}return f=_utf8_decode(f)};_utf8_encode=function(a){a=a.replace(/\r\n/g,"\n");for(var f="",k=0;k c?f+=String.fromCharCode(c):(127c?f+=String.fromCharCode(c>>6|192):(f+=String.fromCharCode(c>>12|224),f+=String.fromCharCode(c>>6&63|128)),f+=String.fromCharCode(c&63|128))}return f};_utf8_decode=function(a){var f="",k=0;for(c1=c2=0;kc?(f+=String.fromCharCode(c),k++):191c?(c2=a.charCodeAt(k+1),f+=String.fromCharCode((c&31)<<6|c2&63),k+=2):(c2=a.charCodeAt(k+1),c3=a.charCodeAt(k+2),f+=String.fromCharCode((c&15)<<12|(c2&63)<<6|c3&63),k+=3)}return f}}})();