You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
215 KiB

!function(n){"use strict";var r=document,t={modules:{},status:{},timeout:10,event:{}},i=function(){this.v="2.1.5"},e=function(){var n=r.scripts,t=n[n.length-1].src;return t.substring(0,t.lastIndexOf("/")+1)}(),u=function(t){n.console&&console.error&&console.error("Layui hint: "+t)},o="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),f={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};i.prototype.cache=t;i.prototype.define=function(n,i){var r=this,f="function"==typeof n,u=function(){return"function"==typeof i&&i(function(n,i){layui[n]=i;t.status[n]=!0}),this};return f&&(i=n,n=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?u.call(r):(r.use(n,u),r)};i.prototype.use=function(n,i,s){function p(n,i){var r="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===n.type||r.test((n.currentTarget||n.srcElement).readyState))&&(t.modules[h]=i,b.removeChild(c),function f(){return++y>250*t.timeout?u(h+" is not a valid module"):void(t.status[h]?v():setTimeout(f,4))}())}function v(){s.push(layui[h]);n.length>1?l.use(n.slice(1),i,s):"function"==typeof i&&i.apply(layui,s)}var l=this,w=t.dir=t.dir?t.dir:e,b=r.getElementsByTagName("head")[0],h,y,c,a;return(n="string"==typeof n?[n]:n,window.jQuery&&jQuery.fn.on&&(l.each(n,function(t,i){"jquery"===i&&n.splice(t,1)}),layui.jquery=layui.$=jQuery),h=n[0],y=0,s=s||[],t.host=t.host||(w.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===n.length||layui["layui.all"]&&f[h]||!layui["layui.all"]&&layui["layui.mobile"]&&f[h])?(v(),l):(t.modules[h]?!function k(){return++y>250*t.timeout?u(h+" is not a valid module"):void("string"==typeof t.modules[h]&&t.status[h]?v():setTimeout(k,4))}():(c=r.createElement("script"),a=(f[h]?w+"lay/":t.base||"")+(l.modules[h]||h)+".js",c.async=!0,c.charset="utf-8",c.src=a+function(){var n=t.version===!0?t.v||(new Date).getTime():t.version||"";return n?"?v="+n:""}(),b.appendChild(c),!c.attachEvent||c.attachEvent.toString&&c.attachEvent.toString().indexOf("[native code")<0||o?c.addEventListener("load",function(n){p(n,a)},!1):c.attachEvent("onreadystatechange",function(n){p(n,a)}),t.modules[h]=a),l)};i.prototype.getStyle=function(t,i){var r=t.currentStyle?t.currentStyle:n.getComputedStyle(t,null);return r[r.getPropertyValue?"getPropertyValue":"getAttribute"](i)};i.prototype.link=function(n,i,f){var o=this,e=r.createElement("link"),h=r.getElementsByTagName("head")[0];"string"==typeof i&&(f=i);var c=(f||n).replace(/\.|\//g,""),s=e.id="layuicss-"+c,l=0;return e.rel="stylesheet",e.href=n+(t.debug?"?v="+(new Date).getTime():""),e.media="all",r.getElementById(s)||h.appendChild(e),"function"!=typeof i?o:(function a(){return++l>10*t.timeout?u(n+" timeout"):void(1989===parseInt(o.getStyle(r.getElementById(s),"width"))?function(){i()}():setTimeout(a,100))}(),o)};i.prototype.addcss=function(n,i,r){return layui.link(t.dir+"css/"+n,i,r)};i.prototype.img=function(n,t,i){var r=new Image;return r.src=n,r.complete?t(r):(r.onload=function(){r.onload=null;t(r)},void(r.onerror=function(n){r.onerror=null;i(n)}))};i.prototype.config=function(n){n=n||{};for(var i in n)t[i]=n[i];return this};i.prototype.modules=function(){var n={};for(var t in f)n[t]=f[t];return n}();i.prototype.extend=function(n){var i=this,t;n=n||{};for(t in n)i[t]||i.modules[t]?u("模块名 "+t+" 已被占用"):i.modules[t]=n[t];return i};i.prototype.router=function(n){var i=this,n=n||location.hash,t={path:[],search:{},hash:(n.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(n)?(n=n.replace(/^#\//,"").replace(/([^#])(#.*$)/,"$1").split("/")||[],i.each(n,function(n,i){/^\w+=/.test(i)?function(){i=i.split("=");t.search[i[0]]=i[1]}():t.path.push(i)}),t):t};i.prototype.data=function(t,i){var r;if(t=t||"layui",n.JSON&&n.JSON.parse){if(null===i)return delete localStorage[t];i="object"==typeof i?i:{key:i};try{r=JSON.parse(localStorage[t])}catch(u){r={}}return i.value&&(r[i.key]=i.value),i.remove&&delete r[i.key],localStorage[t]=JSON.stringify(r),i.key?r[i.key]:r}};i.prototype.device=function(t){var i=navigator.userAgent.toLowerCase(),u=function(n){var t=new RegExp(n+"/([^\\s\\_\\-]+)");return n=(i.match(t)||[])[1],n||!1},r={os:function(){return/windows/.test(i)?"windows":/linux/.test(i)?"linux":/iphone|ipod|ipad|ios/.test(i)?"ios":/mac/.test(i)?"mac":void 0}(),ie:function(){return!!(n.ActiveXObject||"ActiveXObject"in n)&&((i.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:u("micromessenger")};return t&&!r[t]&&(r[t]=u(t)),r.android=/android/.test(i),r.ios="ios"===r.os,r};i.prototype.hint=function(){return{error:u}};i.prototype.each=function(n,t){var i,r=this;if("function"!=typeof t)return r;if(n=n||[],n.constructor===Object){for(i in n)if(t.call(n[i],i,n[i]))break}else for(i=0;i<n.length&&!t.call(n[i],i,n[i]);i++);return r};i.prototype.sort=function(n,t,i){var r=JSON.parse(JSON.stringify(n));return t?(r.sort(function(n,i){var f=/^-?\d+$/,r=n[t],u=i[t];return f.test(r)&&(r=parseFloat(r)),f.test(u)&&(u=parseFloat(u)),r&&!u?1:!r&&u?-1:r>u?1:r<u?-1:0}),i&&r.reverse(),r):r};i.prototype.stope=function(t){t=t||n.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0};i.prototype.onevent=function(n,i,r){return"string"!=typeof n||"function"!=typeof r?this:(t.event[n+"."+i]=[r],this)};i.prototype.event=function(n,i,r){var o=this,u=null,f=i.match(/\(.*\)$/)||[],s=(i=n+"."+i).replace(f,""),e=function(n,t){var i=t&&t.call(o,r);i===!1&&null===u&&(u=!1)};return layui.each(t.event[s],e),f[0]&&layui.each(t.event[i],e),u};n.layui=new i}(window);layui.define(function(n){var t=layui.cache;layui.config({dir:t.dir.replace(/lay\/dest\/$/,"")});n("layui.all",layui.v)});layui.define(function(n){"use strict";var t={open:"{{",close:"}}"},i={exp:function(n){return new RegExp(n,"g")},query:function(n,i,u){var f=["#([\\s\\S])+?","([^{#}])*?"][n||0];return r((i||"")+t.open+f+t.close+(u||""))},escape:function(n){return String(n||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")},error:function(n,t){var i="Laytpl Error:";return"object"==typeof console&&console.error(i+n+"\n"+(t||"")),i+n}},r=i.exp,u=function(n){this.tpl=n},f;u.pt=u.prototype;window.errors=0;u.pt.parse=function(n,u){var f=this,e=n,o=r("^"+t.open+"#",""),s=r(t.close+"$","");n=n.replace(/\s+|\r|\t|\n/g," ").replace(r(t.open+"#"),t.open+"# ").replace(r(t.close+"}"),"} "+t.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(i.query(),function(n){return n=n.replace(o,"").replace(s,""),'";'+n.replace(/\\/g,"")+';view+="'}).replace(i.query(1),function(n){var i='"+(';return n.replace(/\s/g,"")===t.open+t.close?"":(n=n.replace(r(t.open+"|"+t.close),""),/^=/.test(n)&&(n=n.replace(/^=/,""),i='"+_escape_('),i+n.replace(/\\/g,"")+')+"')});n='"use strict";var view = "'+n+'";return view;';try{return f.cache=n=new Function("d, _escape_",n),n(u,i.escape)}catch(h){return delete f.cache,i.error(h,e)}};u.pt.render=function(n,t){var u,r=this;return n?(u=r.cache?r.cache(n,i.escape):r.parse(r.tpl,n),t?void t(u):u):i.error("no data")};f=function(n){return"string"!=typeof n?i.error("Template not found"):new u(n)};f.config=function(n){n=n||{};for(var i in n)t[i]=n[i]};f.v="1.2.0";n("laytpl",f)});layui.define(function(n){"use strict";var u=document,f="getElementById",r="getElementsByTagName",e="layui-disabled",i=function(n){var i=this;i.config=n||{};i.config.index=++t.index;i.render(!0)},t;i.prototype.type=function(){var n=this.config;if("object"==typeof n.elem)return void 0===n.elem.length?2:3};i.prototype.view=function(){var u=this,n=u.config,t=n.groups="groups"in n?0|n.groups:5,i,r;return n.layout="object"==typeof n.layout?n.layout:["prev","page","next"],n.count=0|n.count,n.curr=0|n.curr||1,n.limits="object"==typeof n.limits?n.limits:[10,20,30,40,50],n.limit=0|n.limit||10,n.pages=Math.ceil(n.count/n.limit)||1,n.curr>n.pages&&(n.curr=n.pages),t<0?t=1:t>n.pages&&(t=n.pages),n.prev="prev"in n?n.prev:"&#x4E0A;&#x4E00;&#x9875;",n.next="next"in n?n.next:"&#x4E0B;&#x4E00;&#x9875;",i=n.pages>t?Math.ceil((n.curr+(t>1?1:0))/(t>0?t:1)):1,r={prev:function(){return n.prev?'<a href="javascript:;" class="layui-laypage-prev'+(1==n.curr?" "+e:"")+'" data-page="'+(n.curr-1)+'">'+n.prev+"<\/a>":""}(),page:function(){var u=[];if(n.count<1)return"";i>1&&n.first!==!1&&0!==t&&u.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="&#x9996;&#x9875;">'+(n.first||1)+"<\/a>");var e=Math.floor((t-1)/2),r=i>1?n.curr-e:1,f=i>1?function(){var i=n.curr+(t-e-1);return i>n.pages?n.pages:i}():t;for(f-r<t-1&&(r=f-t+1),n.first!==!1&&r>2&&u.push('<span class="layui-laypage-spr">&#x2026;<\/span>');r<=f;r++)r===n.curr?u.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(n.theme)?'style="background-color:'+n.theme+';"':"")+"><\/em><em>"+r+"<\/em><\/span>"):u.push('<a href="javascript:;" data-page="'+r+'">'+r+"<\/a>");return n.pages>t&&n.pages>f&&n.last!==!1&&(f+1<n.pages&&u.push('<span class="layui-laypage-spr">&#x2026;<\/span>'),0!==t&&u.push('<a href="javascript:;" class="layui-laypage-last" title="&#x5C3E;&#x9875;" data-page="'+n.pages+'">'+(n.last||n.pages)+"<\/a>")),u.join("")}(),next:function(){return n.next?'<a href="javascript:;" class="layui-laypage-next'+(n.curr==n.pages?" "+e:"")+'" data-page="'+(n.curr+1)+'">'+n.next+"<\/a>":""}(),count:'<span class="layui-laypage-count">共 '+n.count+" 条<\/span>",limit:function(){var t=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(n.limits,function(i,r){t.push('<option value="'+r+'"'+(r===n.limit?"selected":"")+">"+r+" 条/页<\/option>")}),t.join("")+"<\/select><\/span>"}(),skip:function(){return['<span class="layui-laypage-skip">&#x5230;&#x7B2C;','<input type="text" min="1" value="'+n.curr+'" class="layui-input">','&#x9875;<button type="button" class="layui-laypage-btn">&#x786e;&#x5b9a;<\/button>',"<\/span>"].join("")}()},['<div class="layui-box layui-laypage layui-laypage-'+(n.theme?/^#/.test(n.theme)?"molv":n.theme:"default")+'" id="layui-laypage-'+n.index+'">',function(){var t=[];return layui.each(n.layout,function(n,i){r[i]&&t.push(r[i])}),t.join("")}(),"<\/div>"].join("")};i.prototype.jump=function(n,i){var f,l;if(n){var e=this,u=e.config,o=n.children,s=n[r]("button")[0],a=n[r]("input")[0],h=n[r]("select")[0],c=function(){var n=0|a.value.replace(/\s|\D/g,"");n&&(u.curr=n,e.render())};if(i)return c();for(f=0,l=o.length;f<l;f++)"a"===o[f].nodeName.toLowerCase()&&t.on(o[f],"click",function(){var n=0|this.getAttribute("data-page");n<1||n>u.pages||(u.curr=n,e.render())});h&&t.on(h,"change",function(){var n=this.value;u.curr*n>u.count&&(u.curr=Math.ceil(u.count/n));u.limit=n;e.render()});s&&t.on(s,"click",function(){c()})}};i.prototype.skip=function(n){if(n){var u=this,i=n[r]("input")[0];i&&t.on(i,"keyup",function(t){var i=this.value,r=t.keyCode;/^(37|38|39|40)$/.test(r)||(/\D/.test(i)&&(this.value=i.replace(/\D/,"")),13===r&&u.jump(n,!0))})}};i.prototype.render=function(n){var i=this,t=i.config,o=i.type(),r=i.view(),e;2===o?t.elem&&(t.elem.innerHTML=r):3===o?t.elem.html(r):u[f](t.elem)&&(u[f](t.elem).innerHTML=r);t.jump&&t.jump(t,n);e=u[f]("layui-laypage-"+t.index);i.jump(e);t.hash&&!n&&(location.hash="!"+t.hash+"="+t.curr);i.skip(e)};t={render:function(n){var t=new i(n);return t.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(n,t,i){return n.attachEvent?n.attachEvent("on"+t,function(t){i.call(n,t)}):n.addEventListener(t,i,!1),this}};n("laypage",t)});!function(){"use strict";var l=window.layui&&layui.define,h={getPath:function(){var n=document.scripts,t=n[n.length-1],i=t.src;if(!t.getAttribute("merge"))return i.substring(0,i.lastIndexOf("/")+1)}(),getStyle:function(n,t){var i=n.currentStyle?n.currentStyle:window.getComputedStyle(n,null);return i[i.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(n,t,i){var e,u;if(r.path){e=document.getElementsByTagName("head")[0];u=document.createElement("link");"string"==typeof t&&(i=t);var o=(i||n).replace(/\.|\//g,""),f="layuicss-"+o,s=0;u.rel="stylesheet";u.href=r.path+n;u.id=f;document.getElementById(f)||e.appendChild(u);"function"==typeof t&&!function c(){return++s>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(h.getStyle(document.getElementById(f),"width"))?t():setTimeout(c,100))}()}}},r={v:"5.0.7",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:h.getPath,set:function(n){var t=this;return t.config=h.extend({},t.config,n),t},ready:function(n){var t="laydate",i=(l?"modules/laydate/":"theme/")+"default/laydate.css?v="+r.v+"";return l?layui.addcss(i,n,t):h.link(i,n,t),this}},b=function(){var n=this;return{hint:function(t){n.hint.call(n,t)},config:n.config}},k="laydate",d=".layui-laydate",u="layui-this",f="laydate-disabled",s="开始日期超出了结束日期<br>建议重新选择",e=[100,2e5],p="layui-laydate-static",a="layui-laydate-list",c="laydate-selected",v="layui-laydate-hint",g="laydate-day-prev",nt="laydate-day-next",tt="layui-laydate-footer",o=".laydate-btns-confirm",y="laydate-time-text",w=".laydate-btns-time",t=function(t){var i=this;i.index=++r.index;i.config=n.extend({},i.config,r.config,t);r.ready(function(){i.init()})},n=function(n){return new i(n)},i=function(n){for(var t=0,i="object"==typeof n?[n]:(this.selector=n,document.querySelectorAll(n||null));t<i.length;t++)this.push(i[t])};i.prototype=[];i.prototype.constructor=i;n.extend=function(){var t=1,n=arguments,i=function(n,t){n=n||(t.constructor===Array?[]:{});for(var r in t)n[r]=t[r]&&t[r].constructor===Object?i(n[r],t[r]):t[r];return n};for(n[0]="object"==typeof n[0]?n[0]:{};t<n.length;t++)"object"==typeof n[t]&&i(n[0],n[t]);return n[0]};n.ie=function(){var n=navigator.userAgent.toLowerCase();return!!(window.ActiveXObject||"ActiveXObject"in window)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}();n.stope=function(n){n=n||win.event;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0};n.each=function(n,t){var i,r=this;if("function"!=typeof t)return r;if(n=n||[],n.constructor===Object){for(i in n)if(t.call(n[i],i,n[i]))break}else for(i=0;i<n.length&&!t.call(n[i],i,n[i]);i++);return r};n.digit=function(n,t){var r="",i;for(n=String(n),t=t||2,i=n.length;i<t;i++)r+="0";return n<Math.pow(10,t)?r+(0|n):n};n.elem=function(t,i){var r=document.createElement(t);return n.each(i||{},function(n,t){r.setAttribute(n,t)}),r};i.addStr=function(t,i){return t=t.replace(/\s+/," "),i=i.replace(/\s+/," ").split(" "),n.each(i,function(n,i){new RegExp("\\b"+i+"\\b").test(t)||(t=t+" "+i)}),t.replace(/^\s|\s$/,"")};i.removeStr=function(t,i){return t=t.replace(/\s+/," "),i=i.replace(/\s+/," ").split(" "),n.each(i,function(n,i){var r=new RegExp("\\b"+i+"\\b");r.test(t)&&(t=t.replace(r,""))}),t.replace(/\s+/," ").replace(/^\s|\s$/,"")};i.prototype.find=function(t){var i=this,r=0,u=[],f="object"==typeof t;return this.each(function(n,e){for(var o=f?[t]:e.querySelectorAll(t||null);r<o.length;r++)u.push(o[r]);i.shift()}),f||(i.selector=(i.selector?i.selector+" ":"")+t),n.each(u,function(n,t){i.push(t)}),i};i.prototype.each=function(t){return n.each.call(this,this,t)};i.prototype.addClass=function(n,t){return this.each(function(r,u){u.className=i[t?"removeStr":"addStr"](u.className,n)})};i.prototype.removeClass=function(n){return this.addClass(n,!0)};i.prototype.hasClass=function(n){var t=!1;return this.each(function(i,r){new RegExp("\\b"+n+"\\b").test(r.className)&&(t=!0)}),t};i.prototype.attr=function(n,t){var i=this;return void 0===t?function(){if(i.length>0)return i[0].getAttribute(n)}():i.each(function(i,r){r.setAttribute(n,t)})};i.prototype.removeAttr=function(n){return this.each(function(t,i){i.removeAttribute(n)})};i.prototype.html=function(n){return this.each(function(t,i){i.innerHTML=n})};i.prototype.val=function(n){return this.each(function(t,i){i.value=n})};i.prototype.append=function(n){return this.each(function(t,i){"object"==typeof n?i.appendChild(n):i.innerHTML=i.innerHTML+n})};i.prototype.remove=function(n){return this.each(function(t,i){n?i.removeChild(n):i.parentNode.removeChild(i)})};i.prototype.on=function(n,t){return this.each(function(i,r){r.attachEvent?r.attachEvent("on"+n,function(n){n.target=n.srcElement;t.call(r,n)}):r.addEventListener(n,t,!1)})};i.prototype.off=function(n,t){return this.each(function(i,r){r.detachEvent?r.detachEvent("on"+n,t):r.removeEventListener(n,t,!1)})};t.isLeapYear=function(n){return n%4==0&&n%100!=0||n%400==0};t.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null};t.prototype.lang=function(){var t=this,i=t.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[i.lang]||n.cn};t.prototype.init=function(){var i=this,t=i.config,r="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",u="static"===t.position,f={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=n(t.elem);t.eventElem=n(t.eventElem);t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===f.date&&(t.format=f[t.type]),i.format=t.format.match(new RegExp(r+"|.","g"))||[],i.EXP_IF="",i.EXP_SPLIT="",n.each(i.format,function(n,t){var u=new RegExp(r).test(t)?"\\d{"+function(){return new RegExp(r).test(i.format[0===n?n+1:n-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2"}()+"}":"\\"+t;i.EXP_IF=i.EXP_IF+u;i.EXP_SPLIT=i.EXP_SPLIT+"("+u+")"}),i.EXP_IF=new RegExp("^"+(t.range?i.EXP_IF+"\\s\\"+t.range+"\\s"+i.EXP_IF:i.EXP_IF)+"$"),i.EXP_SPLIT=new RegExp("^"+i.EXP_SPLIT+"$",""),i.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",i.index),t.eventElem.attr("lay-key",i.index)),t.mark=n.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),n.each(["min","max"],function(n,i){var r=[],f=[];if("number"==typeof t[i]){var e=t[i],s=(new Date).getTime(),o=864e5,u=new Date(e?e<o?s+e*o:e:s);r=[u.getFullYear(),u.getMonth()+1,u.getDate()];e<o||(f=[u.getHours(),u.getMinutes(),u.getSeconds()])}else r=(t[i].match(/\d+-\d+-\d+/)||[""])[0].split("-"),f=(t[i].match(/\d+:\d+:\d+/)||[""])[0].split(":");t[i]={year:0|r[0]||(new Date).getFullYear(),month:r[1]?(0|r[1])-1:(new Date).getMonth(),date:0|r[2]||(new Date).getDate(),hours:0|f[0],minutes:0|f[1],seconds:0|f[2]}}),i.elemID="layui-laydate"+t.elem.attr("lay-key"),(t.show||u)&&i.render(),u||i.events(),t.value&&(t.value.constructor===Date?i.setValue(i.parse(0,i.systemDate(t.value))):i.setValue(t.value)))};t.prototype.render=function(){var r=this,i=r.config,o=r.lang(),s="static"===i.position,u=r.elem=n.elem("div",{id:r.elemID,"class":["layui-laydate",i.range?" layui-laydate-range":"",s?" "+p:"",i.theme&&"default"!==i.theme&&!/^#/.test(i.theme)?" laydate-theme-"+i.theme:""].join("")}),e=r.elemMain=[],l=r.elemHeader=[],a=r.elemCont=[],v=r.table=[],c=r.footer=n.elem("div",{"class":tt}),f,h;(i.zIndex&&(u.style.zIndex=i.zIndex),n.each(new Array(2),function(t){if(!i.range&&t>0)return!0;var f=n.elem("div",{"class":"layui-laydate-header"}),s=[function(){var t=n.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return t.innerHTML="&#xe65a;",t}(),function(){var t=n.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return t.innerHTML="&#xe603;",t}(),function(){var t=n.elem("div",{"class":"laydate-set-ym"}),i=n.elem("span"),r=n.elem("span");return t.appendChild(i),t.appendChild(r),t}(),function(){var t=n.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return t.innerHTML="&#xe602;",t}(),function(){var t=n.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return t.innerHTML="&#xe65b;",t}()],u=n.elem("div",{"class":"layui-laydate-content"}),r=n.elem("table"),h=n.elem("thead"),c=n.elem("tr");n.each(s,function(n,t){f.appendChild(t)});h.appendChild(c);n.each(new Array(6),function(t){var i=r.insertRow(0);n.each(new Array(7),function(r){if(0===t){var u=n.elem("th");u.innerHTML=o.weeks[r];c.appendChild(u)}i.insertCell(r)})});r.insertBefore(h,r.children[0]);u.appendChild(r);e[t]=n.elem("div",{"class":"layui-laydate-main laydate-main-list-"+t});e[t].appendChild(f);e[t].appendChild(u);l.push(s);a.push(u);v.push(r)}),n(c).html(function(){var t=[],r=[];return"datetime"===i.type&&t.push('<span lay-type="datetime" class="laydate-btns-time">'+o.timeTips+"<\/span>"),n.each(i.btns,function(n,t){var u=o.tools[t]||"btn";i.range&&"now"===t||(s&&"clear"===t&&(u="cn"===i.lang?"重置":"Reset"),r.push('<span lay-type="'+t+'" class="laydate-btns-'+t+'">'+u+"<\/span>"))}),t.push('<div class="laydate-footer-btns">'+r.join("")+"<\/div>"),t.join("")}()),n.each(e,function(n,t){u.appendChild(t)}),i.showBottom&&u.appendChild(c),/^#/.test(i.theme))&&(f=n.elem("style"),h="#{{id}} .layui-laydate-header{background-color:{{theme}};}#{{id}} .layui-this{background-color:{{theme}} !important;}".replace(/{{id}}/g,r.elemID).replace(/{{theme}}/g,i.theme),"styleSheet"in f?(f.setAttribute("type","text/css"),f.styleSheet.cssText=h):f.innerHTML=h,n(u).addClass("laydate-theme-molv"),u.appendChild(f));r.remove(t.thisElem);s?i.elem.append(u):(document.body.appendChild(u),r.position());r.checkDate().calendar();r.changeEvent();t.thisElem=r.elemID;"function"==typeof i.ready&&i.ready(n.extend({},i.dateTime,{month:i.dateTime.month+1}))};t.prototype.remove=function(t){var i=this,r=(i.config,n("#"+(t||i.elemID)));return r[0]&&!r.hasClass(p)&&i.checkDate(function(){r.remove()}),i};t.prototype.position=function(){var n=this,t=n.config,c=n.bindElem||t.elem[0],i=c.getBoundingClientRect(),s=n.elem.offsetWidth,r=n.elem.offsetHeight,h=function(n){return n=n?"scrollLeft":"scrollTop",document.body[n]|document.documentElement[n]},u=function(n){return document.documentElement[n?"clientWidth":"clientHeight"]},f=5,o=i.left,e=i.bottom;o+s+f>u("width")&&(o=u("width")-s-f);e+r+f>u()&&(e=i.top>r?i.top-r:u()-r,e-=2*f);t.position&&(n.elem.style.position=t.position);n.elem.style.left=o+("fixed"===t.position?0:h(1))+"px";n.elem.style.top=e+("fixed"===t.position?0:h())+"px"};t.prototype.hint=function(t){var i=this,r=(i.config,n.elem("div",{"class":v}));r.innerHTML=t||"";n(i.elem).find("."+v).remove();i.elem.appendChild(r);clearTimeout(i.hinTimer);i.hinTimer=setTimeout(function(){n(i.elem).find("."+v).remove()},3e3)};t.prototype.getAsYM=function(n,t,i){return i?t--:t++,t<0&&(t=11,n--),t>11&&(t=0,n++),[n,t]};t.prototype.systemDate=function(n){var t=n||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:n?n.getHours():0,minutes:n?n.getMinutes():0,seconds:n?n.getSeconds():0}};t.prototype.checkDate=function(t){var h,o,i=this,u=(new Date,i.config),c=u.dateTime=u.dateTime||i.systemDate(),s=i.bindElem||u.elem[0],f=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===u.position?"":s.innerHTML),l=function(n){n.year>e[1]&&(n.year=e[1],o=!0);n.month>11&&(n.month=11,o=!0);n.hours>23&&(n.hours=0,o=!0);n.minutes>59&&(n.minutes=0,n.hours++,o=!0);n.seconds>59&&(n.seconds=0,n.minutes++,o=!0);h=r.getEndDate(n.month+1,n.year);n.date>h&&(n.date=h,o=!0)},a=function(t,r,f){var s=["startTime","endTime"];r=(r.match(i.EXP_SPLIT)||[]).slice(1);f=f||0;u.range&&(i[s[f]]=i[s[f]]||{});n.each(i.format,function(n,h){var c=parseFloat(r[n]);r[n].length<h.length&&(o=!0);/yyyy|y/.test(h)?(c<e[0]&&(c=e[0],o=!0),t.year=c):/MM|M/.test(h)?(c<1&&(c=1,o=!0),t.month=c-1):/dd|d/.test(h)?(c<1&&(c=1,o=!0),t.date=c):/HH|H/.test(h)?(c<1&&(c=0,o=!0),t.hours=c,u.range&&(i[s[f]].hours=c)):/mm|m/.test(h)?(c<1&&(c=0,o=!0),t.minutes=c,u.range&&(i[s[f]].minutes=c)):/ss|s/.test(h)&&(c<1&&(c=0,o=!0),t.seconds=c,u.range&&(i[s[f]].seconds=c))});l(t)};return"limit"===t?(l(c),i):(f=f||u.value,"string"==typeof f&&(f=f.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),i.startState&&!i.endState&&(delete i.startState,i.endState=!0),"string"==typeof f&&f?i.EXP_IF.test(f)?u.range?(f=f.split(" "+u.range+" "),i.startDate=i.startDate||i.systemDate(),i.endDate=i.endDate||i.systemDate(),u.dateTime=n.extend({},i.startDate),n.each([i.startDate,i.endDate],function(n,t){a(t,f[n],n)})):a(c,f):(i.hint("日期格式不合法<br>必须遵循下述格式:<br>"+(u.range?u.format+" "+u.range+" "+u.format:u.format)+"<br>已为你重置"),o=!0):f&&f.constructor===Date?u.dateTime=i.systemDate(f):(u.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),l(c),o&&f&&i.setValue(u.range?i.endDate?i.parse():"":i.parse()),t&&t(),i)};t.prototype.mark=function(t,i){var r,u=this,f=u.config;return n.each(f.mark,function(n,t){var u=n.split("-");u[0]!=i[0]&&0!=u[0]||u[1]!=i[1]&&0!=u[1]||u[2]!=i[2]||(r=t||i[2])}),r&&t.html('<span class="laydate-day-mark">'+r+"<\/span>"),u};t.prototype.limit=function(t,i,r,u){var o,h=this,s=h.config,e={},c=s[r>41?"endDate":"dateTime"],l=n.extend({},c,i||{});return n.each({now:l,min:s.min,max:s.max},function(t,i){e[t]=h.newDate(n.extend({year:i.year,month:i.month,date:i.date},function(){var t={};return n.each(u,function(n,r){t[r]=i[r]}),t}())).getTime()}),o=e.now<e.min||e.now>e.max,t&&t[o?"addClass":"removeClass"](f),o};t.prototype.calendar=function(t){var h,v,l,i=this,s=i.config,f=t||s.dateTime,y=new Date,b=i.lang(),p="date"!==s.type&&"datetime"!==s.type,w=t?1:0,k=n(i.table[w]).find("td"),c=n(i.elemHeader[w][2]).find("span"),a;return(f.year<e[0]&&(f.year=e[0],i.hint("最低只能支持到公元"+e[0]+"年")),f.year>e[1]&&(f.year=e[1],i.hint("最高只能支持到公元"+e[1]+"年")),i.firstDate||(i.firstDate=n.extend({},f)),y.setFullYear(f.year,f.month,1),h=y.getDay(),v=r.getEndDate(f.month,f.year),l=r.getEndDate(f.month+1,f.year),n.each(k,function(t,r){var e=[f.year,f.month],o=0;r=n(r);r.removeAttr("class");t<h?(o=v-h+t,r.addClass("laydate-day-prev"),e=i.getAsYM(f.year,f.month,"sub")):t>=h&&t<l+h?(o=t-h,s.range||o+1===f.date&&r.addClass(u)):(o=t-l-h,r.addClass("laydate-day-next"),e=i.getAsYM(f.year,f.month));e[1]++;e[2]=o+1;r.attr("lay-ymd",e.join("-")).html(e[2]);i.mark(r,e).limit(r,{year:e[0],month:e[1]-1,date:e[2]},t)}),n(c[0]).attr("lay-ym",f.year+"-"+(f.month+1)),n(c[1]).attr("lay-ym",f.year+"-"+(f.month+1)),"cn"===s.lang?(n(c[0]).attr("lay-type","year").html(f.year+"年"),n(c[1]).attr("lay-type","month").html(f.month+1+"月")):(n(c[0]).attr("lay-type","month").html(b.month[f.month]),n(c[1]).attr("lay-type","year").html(f.year)),p&&(s.range&&(t?i.endDate=i.endDate||{year:f.year+("year"===s.type?1:0),month:f.month+("month"===s.type?0:-1)}:i.startDate=i.startDate||{year:f.year,month:f.month},t&&(i.listYM=[[i.startDate.year,i.startDate.month+1],[i.endDate.year,i.endDate.month+1]],i.list(s.type,0).list(s.type,1),"time"===s.type?i.setBtnStatus("时间",n.extend({},i.systemDate(),i.startTime),n.extend({},i.systemDate(),i.endTime)):i.setBtnStatus(!0))),s.range||(i.listYM=[[f.year,f.month+1]],i.list(s.type,0))),s.range&&!t)&&(a=i.getAsYM(f.year,f.month),i.calendar(n.extend({},f,{year:a[0],month:a[1]}))),s.range||i.limit(n(i.footer).find(o),null,0,["hours","minutes","seconds"]),s.range&&t&&!p&&i.stampRange(),i};t.prototype.list=function(t,i){var r=this,e=r.config,p=e.dateTime,v=r.lang(),nt=e.range&&"date"!==e.type&&"datetime"!==e.type,l=n.elem("ul",{"class":a+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[t]}),tt=r.elemHeader[i],ut=n(tt[2]).find("span"),it=r.elemCont[i||0],ft=n(it).find("."+a)[0],b="cn"===e.lang,k=b?"年":"",s=r.listYM[i]||{},d=["hours","minutes","seconds"],c=["startTime","endTime"][i],h,g,rt;if((s[0]<1&&(s[0]=1),"year"===t)?(g=h=s[0]-7,g<1&&(g=h=1),n.each(new Array(15),function(){var f=n.elem("li",{"lay-ym":h}),t={year:h};h==s[0]&&n(f).addClass(u);f.innerHTML=h+k;l.appendChild(f);h<r.firstDate.year?(t.month=e.min.month,t.date=e.min.date):h>=r.firstDate.year&&(t.month=e.max.month,t.date=e.max.date);r.limit(n(f),t,i);h++}),n(ut[b?0:1]).attr("lay-ym",h-8+"-"+s[1]).html(g+k+" - "+(h-1+k))):"month"===t?(n.each(new Array(12),function(t){var f=n.elem("li",{"lay-ym":t}),o={year:s[0],month:t};t+1==s[1]&&n(f).addClass(u);f.innerHTML=v.month[t]+(b?"月":"");l.appendChild(f);s[0]<r.firstDate.year?o.date=e.min.date:s[0]>=r.firstDate.year&&(o.date=e.max.date);r.limit(n(f),o,i)}),n(ut[b?0:1]).attr("lay-ym",s[0]+"-"+s[1]).html(s[0]+k)):"time"===t&&(rt=function(){n(l).find("ol").each(function(t,u){n(u).find("li").each(function(u,f){r.limit(n(f),[{hours:u},{hours:r[c].hours,minutes:u},{hours:r[c].hours,minutes:r[c].minutes,seconds:u}][t],i,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][t])})});e.range||r.limit(n(r.footer).find(o),r[c],0,["hours","minutes","seconds"])},e.range?r[c]||(r[c]={hours:0,minutes:0,seconds:0}):r[c]=p,n.each([24,60,60],function(t,i){var f=n.elem("li"),e=["<p>"+v.time[t]+"<\/p><ol>"];n.each(new Array(i),function(i){e.push("<li"+(r[c][d[t]]===i?' class="'+u+'"':"")+">"+n.digit(i,2)+"<\/li>")});f.innerHTML=e.join("")+"<\/ol>";l.appendChild(f)}),rt()),ft&&it.removeChild(ft),it.appendChild(l),"year"===t||"month"===t)n(r.elemMain[i]).addClass("laydate-ym-show"),n(l).find("li").on("click",function(){var h=0|n(this).attr("lay-ym"),c;n(this).hasClass(f)||(0===i?(p[t]=h,nt&&(r.startDate[t]=h),r.limit(n(r.footer).find(o),null,0)):nt?r.endDate[t]=h:(c="year"===t?r.getAsYM(h,s[1]-1,"sub"):r.getAsYM(s[0],h,"sub"),n.extend(p,{year:c[0],month:c[1]})),"year"===e.type||"month"===e.type?(n(l).find("."+u).removeClass(u),n(this).addClass(u),"month"===e.type&&"year"===t&&(r.listYM[i][0]=h,nt&&(r[["startDate","endDate"][i]].year=h),r.list("month",i))):(r.checkDate("limit").calendar(),r.closeList()),r.setBtnStatus(),e.range||r.done(null,"change"),n(r.footer).find(w).removeClass(f))});else{var et=n.elem("span",{"class":y}),ot=function(){n(l).find("ol").each(function(t){var i=this,u=n(i).find("li");i.scrollTop=30*(r[c][d[t]]-2);i.scrollTop<=0&&u.each(function(t){if(!n(this).hasClass(f))return i.scrollTop=30*(t-2),!0})})},st=n(tt[2]).find("."+y);ot();et.innerHTML=e.range?[v.startTime,v.endTime][i]:v.timeTips;n(r.elemMain[i]).addClass("laydate-time-show");st[0]&&st.remove();tt[2].appendChild(et);n(l).find("ol").each(function(t){var i=this;n(i).find("li").on("click",function(){var o=0|this.innerHTML;n(this).hasClass(f)||(e.range?r[c][d[t]]=o:p[d[t]]=o,n(i).find("."+u).removeClass(u),n(this).addClass(u),rt(),ot(),(r.endDate||"time"===e.type)&&r.done(null,"change"),r.setBtnStatus())})})}return r};t.prototype.listYM=[];t.prototype.closeList=function(){var t=this;t.config;n.each(t.elemCont,function(i){n(this).find("."+a).remove();n(t.elemMain[i]).removeClass("laydate-ym-show laydate-time-show")});n(t.elem).find("."+y).remove()};t.prototype.setBtnStatus=function(t,i,r){var e,u=this,h=u.config,c=n(u.footer).find(o),l=h.range&&"date"!==h.type&&"time"!==h.type;l&&(i=i||u.startDate,r=r||u.endDate,e=u.newDate(i).getTime()>u.newDate(r).getTime(),u.limit(null,i)||u.limit(null,r)?c.addClass(f):c[e?"addClass":"removeClass"](f),t&&e&&u.hint("string"==typeof t?s.replace(/日期/g,t):s))};t.prototype.parse=function(t,i){var u=this,e=u.config,f=i||(t?n.extend({},u.endDate,u.endTime):e.range?n.extend({},u.startDate,u.startTime):e.dateTime),r=u.format.concat();return n.each(r,function(t,i){/yyyy|y/.test(i)?r[t]=n.digit(f.year,i.length):/MM|M/.test(i)?r[t]=n.digit(f.month+1,i.length):/dd|d/.test(i)?r[t]=n.digit(f.date,i.length):/HH|H/.test(i)?r[t]=n.digit(f.hours,i.length):/mm|m/.test(i)?r[t]=n.digit(f.minutes,i.length):/ss|s/.test(i)&&(r[t]=n.digit(f.seconds,i.length))}),e.range&&!t?r.join("")+" "+e.range+" "+u.parse(1):r.join("")};t.prototype.newDate=function(n){return new Date(n.year||1,n.month||0,n.date||1,n.hours||0,n.minutes||0,n.seconds||0)};t.prototype.setValue=function(t){var i=this,r=i.config,u=i.bindElem||r.elem[0],f=i.isInput(u)?"val":"html";return"static"===r.position||n(u)[f](t||""),this};t.prototype.stampRange=function(){var i,r,t=this,e=t.config,h=n(t.elem).find("td");if(e.range&&!t.endDate&&n(t.footer).find(o).addClass(f),t.endDate)return i=t.newDate({year:t.startDate.year,month:t.startDate.month,date:t.startDate.date}).getTime(),r=t.newDate({year:t.endDate.year,month:t.endDate.month,date:t.endDate.date}).getTime(),i>r?t.hint(s):void n.each(h,function(f,e){var s=n(e).attr("lay-ymd").split("-"),o=t.newDate({year:s[0],month:s[1]-1,date:s[2]}).getTime();n(e).removeClass(c+" "+u);o!==i&&o!==r||n(e).addClass(n(e).hasClass(g)||n(e).hasClass(nt)?c:u);o>i&&o<r&&n(e).addClass(c)})};t.prototype.done=function(t,i){var r=this,u=r.config,f=n.extend({},r.startDate?n.extend(r.startDate,r.startTime):u.dateTime),e=n.extend({},n.extend(r.endDate,r.endTime));return n.each([f,e],function(t,i){"month"in i&&n.extend(i,{month:i.month+1})}),t=t||[r.parse(),f,e],"function"==typeof u[i||"done"]&&u[i||"done"].apply(u,t),r};t.prototype.choose=function(t){var i=this,e=i.config,l=e.dateTime,a=n(i.elem).find("td"),r=t.attr("lay-ymd").split("-"),s=function(t){new Date;t&&n.extend(l,r);e.range&&(i.startDate?n.extend(i.startDate,r):i.startDate=n.extend({},r,i.startTime),i.startYMD=r)},h;(r={year:0|r[0],month:(0|r[1])-1,date:0|r[2]},t.hasClass(f))||(e.range?((n.each(["startTime","endTime"],function(n,t){i[t]=i[t]||{hours:0,minutes:0,seconds:0}}),i.endState)?(s(),delete i.endState,delete i.endDate,i.startState=!0,a.removeClass(u+" "+c),t.addClass(u)):i.startState?((t.addClass(u),i.endDate?n.extend(i.endDate,r):i.endDate=n.extend({},r,i.endTime),i.newDate(r).getTime()<i.newDate(i.startYMD).getTime())&&(h=n.extend({},i.endDate,{hours:i.startDate.hours,minutes:i.startDate.minutes,seconds:i.startDate.seconds}),n.extend(i.endDate,i.startDate,{hours:i.endDate.hours,minutes:i.endDate.minutes,seconds:i.endDate.seconds}),i.startDate=h),e.showBottom||i.done(),i.stampRange(),i.endState=!0,i.done(null,"change")):(t.addClass(u),s(),i.startState=!0),n(i.footer).find(o)[i.endDate?"removeClass":"addClass"](f)):"static"===e.position?(s(!0),i.calendar().done().done(null,"change")):"date"===e.type?(s(!0),i.setValue(i.parse()).remove().done()):"datetime"===e.type&&(s(!0),i.calendar().done(null,"change")))};t.prototype.tool=function(t,i){var r=this,u=r.config,e=u.dateTime,o="static"===u.position,h={datetime:function(){n(t).hasClass(f)||(r.list("time",0),u.range&&r.list("time",1),n(t).attr("lay-type","date").html(r.lang().dateTips))},date:function(){r.closeList();n(t).attr("lay-type","datetime").html(r.lang().timeTips)},clear:function(){r.setValue("").remove();o&&(n.extend(e,r.firstDate),r.calendar());u.range&&(delete r.startState,delete r.endState,delete r.endDate,delete r.startTime,delete r.endTime);r.done(["",{},{}])},now:function(){var t=new Date;n.extend(e,r.systemDate(),{hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()});r.setValue(r.parse()).remove();o&&r.calendar();r.done()},confirm:function(){if(u.range){if(!r.endDate)return r.hint("请先选择日期范围");if(n(t).hasClass(f))return r.hint("time"===u.type?s.replace(/日期/g,"时间"):s)}else if(n(t).hasClass(f))return r.hint("不在有效日期或时间范围内");r.done();r.setValue(r.parse()).remove()}};h[i]&&h[i]()};t.prototype.change=function(t){var i=this,r=i.config,u=r.dateTime,h=r.range&&("year"===r.type||"month"===r.type),e=i.elemCont[t||0],f=i.listYM[t],s=function(s){var a=["startDate","endDate"][t],c=n(e).find(".laydate-year-list")[0],l=n(e).find(".laydate-month-list")[0];return c&&(f[0]=s?f[0]-15:f[0]+15,i.list("year",t)),l&&(s?f[0]--:f[0]++,i.list("month",t)),(c||l)&&(n.extend(u,{year:f[0]}),h&&(i[a].year=f[0]),r.range||i.done(null,"change"),i.setBtnStatus(),r.range||i.limit(n(i.footer).find(o),{year:f[0]})),c||l};return{prevYear:function(){s("sub")||(u.year--,i.checkDate("limit").calendar(),r.range||i.done(null,"change"))},prevMonth:function(){var t=i.getAsYM(u.year,u.month,"sub");n.extend(u,{year:t[0],month:t[1]});i.checkDate("limit").calendar();r.range||i.done(null,"change")},nextMonth:function(){var t=i.getAsYM(u.year,u.month);n.extend(u,{year:t[0],month:t[1]});i.checkDate("limit").calendar();r.range||i.done(null,"change")},nextYear:function(){s()||(u.year++,i.checkDate("limit").calendar(),r.range||i.done(null,"change"))}}};t.prototype.changeEvent=function(){var t=this;t.config;n(t.elem).on("click",function(t){n.stope(t)});n.each(t.elemHeader,function(i,r){n(r[0]).on("click",function(){t.change(i).prevYear()});n(r[1]).on("click",function(){t.change(i).prevMonth()});n(r[2]).find("span").on("click",function(){var u=n(this),r=u.attr("lay-ym"),e=u.attr("lay-type");r&&(r=r.split("-"),t.listYM[i]=[0|r[0],0|r[1]],t.list(e,i),n(t.footer).find(w).addClass(f))});n(r[3]).on("click",function(){t.change(i).nextMonth()});n(r[4]).on("click",function(){t.change(i).nextYear()})});n.each(t.table,function(i,r){var u=n(r).find("td");u.on("click",function(){t.choose(n(this))})});n(t.footer).find("span").on("click",function(){var i=n(this).attr("lay-type");t.tool(this,i)})};t.prototype.isInput=function(n){return/input|textarea/.test(n.tagName.toLocaleLowerCase())};t.prototype.events=function(){var i=this,r=i.config,u=function(n,t){n.on(r.trigger,function(){t&&(i.bindElem=this);i.render()})};r.elem[0]&&!r.elem[0].eventHandler&&(u(r.elem,"bind"),u(r.eventElem),n(document).on("click",function(t){t.target!==r.elem[0]&&t.target!==r.eventElem[0]&&t.target!==n(r.closeStop)[0]&&i.remove()}).on("keydown",function(r){13===r.keyCode&&n("#"+i.elemID)[0]&&i.elemID===t.thisElem&&(r.preventDefault(),n(i.footer).find(o)[0].click())}),n(window).on("resize",function(){return!(!i.elem||!n(d)[0])&&void i.position()}),r.elem[0].eventHandler=!0)};r.render=function(n){var i=new t(n);return b.call(i)};r.getEndDate=function(n,t){var i=new Date;return i.setFullYear(t||i.getFullYear(),n||i.getMonth()+1,1),new Date(i.getTime()-864e5).getDate()};window.lay=window.lay||n;l?(r.ready(),layui.define(function(n){r.path=layui.cache.dir;n(k,r)})):"function"==typeof define&&define.amd?define(function(){return r}):function(){r.ready();window.laydate=r}()}();!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n){function ni(n){var i=!!n&&"length"in n&&n.length,r=t.type(n);return"function"!==r&&!t.isWindow(n)&&("array"===r||0===i||"number"==typeof i&&i>0&&i-1 in n)}function ti(n,i,r){if(t.isFunction(i))return t.grep(n,function(n,t){return!!i.call(n,t,n)!==r});if(i.nodeType)return t.grep(n,function(n){return n===i!==r});if("string"==typeof i){if(no.test(i))return t.filter(i,n,r);i=t.filter(i,n)}return t.grep(n,function(n){return t.inArray(n,i)>-1!==r})}function er(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function oe(n){var i={};return t.each(n.match(s)||[],function(n,t){i[t]=!0}),i}function or(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",l),n.removeEventListener("load",l)):(r.detachEvent("onreadystatechange",l),n.detachEvent("onload",l))}function l(){(r.addEventListener||"load"===n.event.type||"complete"===r.readyState)&&(or(),t.ready())}function sr(n,i,r){if(void 0===r&&1===n.nodeType){var u="data-"+i.replace(io,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:to.test(r)?t.parseJSON(r):r)}catch(f){}t.data(n,i,r)}else r=void 0}return r}function ii(n){for(var i in n)if(("data"!==i||!t.isEmptyObject(n[i]))&&"toJSON"!==i)return!1;return!0}function hr(n,i,r,u){if(et(n)){var s,e,c=t.expando,l=n.nodeType,o=l?t.cache:n,f=l?n[c]:n[c]&&c;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof i)return f||(f=l?n[c]=h.pop()||t.guid++:c),o[f]||(o[f]=l?{}:{toJSON:t.noop}),"object"!=typeof i&&"function"!=typeof i||(u?o[f]=t.extend(o[f],i):o[f].data=t.extend(o[f].data,i)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[t.camelCase(i)]=r),"string"==typeof i?(s=e[i],null==s&&(s=e[t.camelCase(i)])):s=e,s}}function cr(n,r,u){if(et(n)){var o,s,h=n.nodeType,f=h?t.cache:n,e=h?n[t.expando]:t.expando;if(f[e]){if(r&&(o=u?f[e]:f[e].data)){for(t.isArray(r)?r=r.concat(t.map(r,t.camelCase)):(r in o)?r=[r]:(r=t.camelCase(r),r=(r in o)?[r]:r.split(" ")),s=r.length;s--;)delete o[r[s]];if(u?!ii(o):!t.isEmptyObject(o))return}(u||(delete f[e].data,ii(f[e])))&&(h?t.cleanData([n],!0):i.deleteExpando||f!=f.window?delete f[e]:f[e]=void 0)}}}function lr(n,i,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return t.css(n,i,"")},s=c(),o=r&&r[3]||(t.cssNumber[i]?"":"px"),f=(t.cssNumber[i]||"px"!==o&&+s)&&ai.exec(t.css(n,i));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,t.style(n,i,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ar(n){var i=uf.split("|"),t=n.createDocumentFragment();if(t.createElement)for(;i.length;)t.createElement(i.pop());return t}function u(n,i){var e,f,o=0,r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(i||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(i||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(f=e[o]);o++)!i||t.nodeName(f,i)?r.push(f):t.merge(r,u(f,i));return void 0===i||i&&t.nodeName(n,i)?t.merge([n],r):r}function ri(n,i){for(var u,r=0;null!=(u=n[r]);r++)t._data(u,"globalEval",!i||t._data(i[r],"globalEval"))}function se(n){vi.test(n.type)&&(n.defaultChecked=n.checked)}function vr(n,r,f,o,s){for(var l,h,k,c,w,b,v,d=n.length,y=ar(r),a=[],p=0;p<d;p++)if(h=n[p],h||0===h)if("object"===t.type(h))t.merge(a,h.nodeType?[h]:h);else if(ff.test(h)){for(c=c||y.appendChild(r.createElement("div")),w=(tf.exec(h)||["",""])[1].toLowerCase(),v=e[w]||e._default,c.innerHTML=v[1]+t.htmlPrefilter(h)+v[2],l=v[0];l--;)c=c.lastChild;if(!i.leadingWhitespace&&yi.test(h)&&a.push(r.createTextNode(yi.exec(h)[0])),!i.tbody)for(h="table"!==w||pi.test(h)?"<table>"!==v[1]||pi.test(h)?0:c:c.firstChild,l=h&&h.childNodes.length;l--;)t.nodeName(b=h.childNodes[l],"tbody")&&!b.childNodes.length&&h.removeChild(b);for(t.merge(a,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=y.lastChild}else a.push(r.createTextNode(h));for(c&&y.removeChild(c),i.appendChecked||t.grep(u(a,"input"),se),p=0;h=a[p++];)if(o&&t.inArray(h,o)>-1)s&&s.push(h);else if(k=t.contains(h.ownerDocument,h),c=u(y.appendChild(h),"script"),k&&ri(c),f)for(l=0;h=c[l++];)rf.test(h.type||"")&&f.push(h);return c=null,y}function ct(){return!0}function nt(){return!1}function yr(){try{return r.activeElement}catch(n){}}function ui(n,i,r,u,f,e){var o,s;if("object"==typeof i){"string"!=typeof r&&(u=u||r,r=void 0);for(s in i)ui(n,s,r,u,i[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=nt;else if(!f)return n;return 1===e&&(o=f,f=function(n){return t().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=t.guid++)),n.each(function(){t.event.add(this,i,f,u,r)})}function pr(n,i){return t.nodeName(n,"table")&&t.nodeName(11!==i.nodeType?i:i.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function wr(n){return n.type=(null!==t.find.attr(n,"type"))+"/"+n.type,n}function br(n){var t=ho.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function kr(n,i){if(1===i.nodeType&&t.hasData(n)){var u,f,o,s=t._data(n),r=t._data(i,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)t.event.add(i,u,e[u][f])}r.data&&(r.data=t.extend({},r.data))}}function he(n,r){var u,e,f;if(1===r.nodeType){if(u=r.nodeName.toLowerCase(),!i.noCloneEvent&&r[t.expando]){f=t._data(r);for(e in f.events)t.removeEvent(r,e,f.handle);r.removeAttribute(t.expando)}"script"===u&&r.text!==n.text?(wr(r).text=n.text,br(r)):"object"===u?(r.parentNode&&(r.outerHTML=n.outerHTML),i.html5Clone&&n.innerHTML&&!t.trim(r.innerHTML)&&(r.innerHTML=n.innerHTML)):"input"===u&&vi.test(n.type)?(r.defaultChecked=r.checked=n.checked,r.value!==n.value&&(r.value=n.value)):"option"===u?r.defaultSelected=r.selected=n.defaultSelected:"input"!==u&&"textarea"!==u||(r.defaultValue=n.defaultValue)}}function p(n,r,f,e){r=lu.apply([],r);var l,o,a,h,w,c,s=0,v=n.length,k=v-1,y=r[0],b=t.isFunction(y);if(b||v>1&&"string"==typeof y&&!i.checkClone&&so.test(y))return n.each(function(t){var i=n.eq(t);b&&(r[0]=y.call(this,t,i.html()));p(i,r,f,e)});if(v&&(c=vr(r,n[0].ownerDocument,!1,n,e),l=c.firstChild,1===c.childNodes.length&&(c=l),l||e)){for(h=t.map(u(c,"script"),wr),a=h.length;s<v;s++)o=c,s!==k&&(o=t.clone(o,!0,!0),a&&t.merge(h,u(o,"script"))),f.call(n[s],o,s);if(a)for(w=h[h.length-1].ownerDocument,t.map(h,br),s=0;s<a;s++)o=h[s],rf.test(o.type||"")&&!t._data(o,"globalEval")&&t.contains(w,o)&&(o.src?t._evalUrl&&t._evalUrl(o.src):t.globalEval((o.text||o.textContent||o.innerHTML||"").replace(co,"")));c=l=null}return n}function dr(n,i,r){for(var f,o=i?t.filter(i,n):n,e=0;null!=(f=o[e]);e++)r||1!==f.nodeType||t.cleanData(u(f)),f.parentNode&&(r&&t.contains(f.ownerDocument,f)&&ri(u(f,"script")),f.parentNode.removeChild(f));return n}function gr(n,i){var r=t(i.createElement(n)).appendTo(i.body),u=t.css(r[0],"display");return r.detach(),u}function lt(n){var u=r,i=hf[n];return i||(i=gr(n,u),"none"!==i&&i||(st=(st||t("<iframe frameborder='0' width='0' height='0'/>")).appendTo(u.documentElement),u=(st[0].contentWindow||st[0].contentDocument).document,u.write(),u.close(),i=gr(n,u),st.detach()),hf[n]=i),i}function fi(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function nu(n){if(n in pf)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),t=yf.length;t--;)if(n=yf[t]+i,n in pf)return n}function tu(n,i){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)r=n[u],r.style&&(e[u]=t._data(r,"olddisplay"),f=r.style.display,i?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ot(r)&&(e[u]=t._data(r,"olddisplay",lt(r.nodeName)))):(o=ot(r),(f&&"none"!==f||!o)&&t._data(r,"olddisplay",o?f:t.css(r,"display"))));for(u=0;u<s;u++)r=n[u],r.style&&(i&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=i?e[u]||"":"none"));return n}function iu(n,t,i){var r=yo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function ru(n,i,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===i?1:0,o=0;e<4;e+=2)"margin"===r&&(o+=t.css(n,r+k[e],!0,f)),u?("content"===r&&(o-=t.css(n,"padding"+k[e],!0,f)),"margin"!==r&&(o-=t.css(n,"border"+k[e]+"Width",!0,f))):(o+=t.css(n,"padding"+k[e],!0,f),"padding"!==r&&(o+=t.css(n,"border"+k[e]+"Width",!0,f)));return o}function uu(u,f,e){var h=!0,o="width"===f?u.offsetWidth:u.offsetHeight,s=d(u),c=i.boxSizing&&"border-box"===t.css(u,"boxSizing",!1,s);if(r.msFullscreenElement&&n.top!==n&&u.getClientRects().length&&(o=Math.round(100*u.getBoundingClientRect()[f])),o<=0||null==o){if(o=y(u,f,s),(o<0||null==o)&&(o=u.style[f]),pt.test(o))return o;h=c&&(i.boxSizingReliable()||o===u.style[f]);o=parseFloat(o)||0}return o+ru(u,f,e||(c?"border":"content"),h,s)+"px"}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function fu(){return n.setTimeout(function(){rt=void 0}),rt=t.now()}function at(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=k[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function eu(n,t,i){for(var u,f=(o.tweeners[t]||[]).concat(o.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ce(n,r,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&ot(n),e=t._data(n,"fxshow");u.queue||(s=t._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;t.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in r||"width"in r)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=t.css(n,"display"),b="none"===h?t._data(n,"olddisplay")||lt(n.nodeName):h,"inline"===b&&"none"===t.css(n,"float")&&(i.inlineBlockNeedsLayout&&"inline"!==lt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",i.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in r)if(a=r[f],wf.exec(a)){if(delete r[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||t.style(n,f)}else h=void 0;if(t.isEmptyObject(y))"inline"===("none"===h?lt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=t._data(n,"fxshow",{});p&&(e.hidden=!c);c?t(n).show():l.done(function(){t(n).hide()});l.done(function(){var i;t._removeData(n,"fxshow");for(i in y)t.style(n,i,y[i])});for(f in y)v=eu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function le(n,i){var r,f,e,u,o;for(r in n)if(f=t.camelCase(r),e=i[f],u=n[r],t.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=t.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],i[r]=e)}else i[f]=e}function o(n,i,r){var e,s,h=0,a=o.prefilters.length,f=t.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=rt||fu(),t=Math.max(0,u.startTime+u.duration-o),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:t.extend({},i),opts:t.extend(!0,{specialEasing:{},easing:t.easing._default},r),originalProperties:i,originalOptions:r,startTime:rt||fu(),duration:r.duration,tweens:[],createTween:function(i,r){var f=t.Tween(n,u.opts,i,r,u.opts.specialEasing[i]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),c=u.props;for(le(c,u.opts.specialEasing);h<a;h++)if(e=o.prefilters[h].call(u,n,c,u.opts))return t.isFunction(e.stop)&&(t._queueHooks(u.elem,u.opts.queue).stop=t.proxy(e.stop,e)),e;return t.map(c,eu,u),t.isFunction(u.opts.start)&&u.opts.start.call(n,u),t.fx.timer(t.extend(l,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function w(n){return t.attr(n,"class")||""}function ou(n){return function(i,r){"string"!=typeof i&&(r=i,i="*");var u,f=0,e=i.toLowerCase().match(s)||[];if(t.isFunction(r))for(;u=e[f++];)"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function su(n,i,r,u){function f(s){var h;return e[s]=!0,t.each(n[s]||[],function(n,t){var s=t(i,r,u);return"string"!=typeof s||o||e[s]?o?!(h=s):void 0:(i.dataTypes.unshift(s),f(s),!1)}),h}var e={},o=n===ir;return f(i.dataTypes[0])||!e["*"]&&f("*")}function ei(n,i){var u,r,f=t.ajaxSettings.flatOptions||{};for(r in i)void 0!==i[r]&&((f[r]?n:u||(u={}))[r]=i[r]);return u&&t.extend(!0,n,u),n}function ae(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return u!==r[0]&&r.unshift(u),i[u]}function ve(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function ye(n){return n.style&&n.style.display||t.css(n,"display")}function pe(n){for(;n&&1===n.nodeType;){if("none"===ye(n)||"hidden"===n.type)return!0;n=n.parentNode}return!1}function oi(n,i,r,u){var f;if(t.isArray(i))t.each(i,function(t,i){r||rs.test(n)?u(n,i):oi(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==t.type(i))u(n,i);else for(f in i)oi(n+"["+f+"]",i[f],r,u)}function si(){try{return new n.XMLHttpRequest}catch(t){}}function hu(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function cu(n){return t.isWindow(n)?n:9===n.nodeType&&(n.defaultView||n.parentWindow)}var h=[],r=n.document,a=h.slice,lu=h.concat,hi=h.push,au=h.indexOf,vt={},we=vt.toString,tt=vt.hasOwnProperty,i={},vu="1.12.3",t=function(n,i){return new t.fn.init(n,i)},be=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ke=/^-ms-/,de=/-([\da-z])/gi,ge=function(n,t){return t.toUpperCase()},b,ci,bu,ku,du,gu,s,yt,nf,e,ff,pi,d,y,af,rt,wt,wf,bf,kf,df,ne,te,kt,ur,gt,fr;t.fn=t.prototype={jquery:vu,constructor:t,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?n<0?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var i=t.merge(this.constructor(),n);return i.prevObject=this,i.context=this.context,i},each:function(n){return t.each(this,n)},map:function(n){return this.pushStack(t.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:hi,sort:h.sort,splice:h.splice};t.extend=t.fn.extend=function(){var r,e,i,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||t.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],i=o[f],n!==i&&(h&&i&&(t.isPlainObject(i)||(e=t.isArray(i)))?(e?(e=!1,s=r&&t.isArray(r)?r:[]):s=r&&t.isPlainObject(r)?r:{},n[f]=t.extend(h,s,i)):void 0!==i&&(n[f]=i));return n};t.extend({expando:"jQuery"+(vu+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===t.type(n)},isArray:Array.isArray||function(n){return"array"===t.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){var i=n&&n.toString();return!t.isArray(n)&&i-parseFloat(i)+1>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var r;if(!n||"object"!==t.type(n)||n.nodeType||t.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(!i.ownFirst)for(r in n)return tt.call(n,r);for(r in n);return void 0===r||tt.call(n,r)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?vt[we.call(n)]||"object":typeof n},globalEval:function(i){i&&t.trim(i)&&(n.execScript||function(t){n.eval.call(n,t)})(i)},camelCase:function(n){return n.replace(ke,"ms-").replace(de,ge)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ni(n))for(r=n.length;i<r&&t.call(n[i],i,n[i])!==!1;i++);else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(be,"")},makeArray:function(n,i){var r=i||[];return null!=n&&(ni(Object(n))?t.merge(r,"string"==typeof n?[n]:n):hi.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(au)return au.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;i<r;)n[u++]=t[i++];if(r!==r)for(;void 0!==t[i];)n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ni(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return lu.apply([],f)},guid:1,proxy:function(n,i){var u,r,f;if("string"==typeof i&&(f=n[i],i=n,n=f),t.isFunction(n))return u=a.call(arguments,2),r=function(){return n.apply(i||this,u.concat(a.call(arguments)))},r.guid=n.guid=n.guid||t.guid++,r},now:function(){return+new Date},support:i});"function"==typeof Symbol&&(t.fn[Symbol.iterator]=h[Symbol.iterator]);t.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(n,t,r,u){var h,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:l)!==i&&b(t),t=t||i,c)){if(11!==v&&(d=ar.exec(n)))if(h=d[1]){if(9===v){if(!(a=t.getElementById(h)))return r;if(a.id===h)return r.push(a),r}else if(p&&(a=p.getElementById(h))&&et(t,a)&&a.id===h)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((h=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(h)),r}if(f.qsa&&!vt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(vr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=wi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+st(y[w]);g=y.join(",");p=ei.test(n)&&kt(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return ci(n.replace(yt,"$1"),t,r,u)}function wt(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function s(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function bt(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function oi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function ki(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function di(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function d(n){return s(function(t){return t=+t,s(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function kt(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function si(){}function st(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function dt(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=tr++;return t.first?function(t,i,f){for(;t=t[r];)if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){for(;t=t[r];)if((1===t.nodeType||u)&&n(t,i,o))return!0}else for(;t=t[r];)if(1===t.nodeType||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}function gt(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function gi(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function ht(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function ni(n,t,i,r,u,f){return r&&!r[e]&&(r=ni(r)),u&&!u[e]&&(u=ni(u,f)),s(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||gi(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:ht(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=ht(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?tt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=ht(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ti(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=dt(function(n){return n===o},c,!0),a=dt(function(n){return tt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==lt)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[dt(gt(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;r<s&&!t.relative[n[r].type];r++);return ni(i>1&&gt(f),i>1&&st(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(yt,"$1"),u,i<r&&ti(n.slice(i,r)),r<s&&ti(n=n.slice(r)),r<s&&st(n))}f.push(u)}return gt(f)}function nr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,h,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=lt,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(lt=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),h=!c);d=n[nt++];)if(d(y,s||i,h)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,h);if(o){if(g>0)for(;p--;)tt[p]||w[p]||(w[p]=rr.call(l));w=ht(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,lt=it),tt};return f?s(o):o}var rt,f,t,ct,hi,ft,ii,ci,lt,w,ut,b,i,h,c,o,g,at,et,e="sizzle"+1*new Date,l=n.document,v=0,tr=0,li=wt(),ai=wt(),vt=wt(),ri=function(n,t){return n===t&&(ut=!0),0},vi=-2147483648,ir={}.hasOwnProperty,nt=[],rr=nt.pop,ur=nt.push,k=nt.push,yi=nt.slice,tt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},ui="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi="\\["+r+"*("+it+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+r+"*\\]",fi=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pi+")*)|.*)\\)|)",fr=new RegExp(r+"+","g"),yt=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),er=new RegExp("^"+r+"*,"+r+"*"),or=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),sr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),hr=new RegExp(fi),wi=new RegExp("^"+it+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+fi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+ui+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ei=/[+~]/,vr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},bi=function(){b()};try{k.apply(nt=yi.call(l.childNodes),l.childNodes);nt[l.childNodes.length].nodeType}catch(yr){k={apply:nt.length?function(n,t){ur.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=u.setDocument=function(n){var v,u,s=n?n.ownerDocument||n:l;return s!==i&&9===s.nodeType&&s.documentElement?(i=s,h=i.documentElement,c=!hi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",bi,!1):u.attachEvent&&u.attachEvent("onunload",bi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return h.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&c){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&c)return t.getElementsByClassName(n)},g=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){h.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+ui+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(at=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&a(function(n){f.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");g.push("!=",fi)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),v=ot.test(h.compareDocumentPosition),et=v||ot.test(h.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},ri=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!f.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===l&&et(l,n)?-1:t===i||t.ownerDocument===l&&et(l,t)?1:w?tt(w,n)-tt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?tt(w,n)-tt(w,t):0;if(o===s)return oi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);for(;f[u]===e[u];)u++;return u?oi(f[u],e[u]):f[u]===l?-1:e[u]===l?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(sr,"='$1']"),f.matchesSelector&&c&&!vt[t+" "]&&(!g||!g.test(t))&&(!o||!o.test(t)))try{var r=at.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&ir.call(t.attrHandle,r.toLowerCase())?e(n,r,!c):void 0;return void 0!==u?u:f.attributes||!c?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(ri),ut){for(;r=n[i++];)r===n[i]&&(t=u.push(i));for(;t--;)n.splice(u[t],1)}return w=null,n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=ct(r);return i};t=u.selectors={cacheLength:50,createPseudo:s,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return pt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&hr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=li[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&li(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(fr," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){for(;k;){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)for(;(c=++a&&c&&c[k]||(l=a=0)||b.pop())&&((f?c.nodeName.toLowerCase()!==nt:1!==c.nodeType)||!++l||(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c!==t)););return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?s(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=tt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:s(function(n){var t=[],r=[],i=ii(n.replace(yt,"$1"));return i[e]?s(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:s(function(n){return function(t){return u(n,t).length>0}}),contains:s(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:s(function(n){return wi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=c?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===h},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:d(function(){return[0]}),last:d(function(n,t){return[t-1]}),eq:d(function(n,t,i){return[i<0?i+t:i]}),even:d(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:d(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:d(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:d(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ki(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=di(rt);return si.prototype=t.filters=t.pseudos,t.setFilters=new si,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ai[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=er.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=or.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(yt," ")}),r=r.slice(e.length));for(o in t.filter)(f=pt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ai(n,h).slice(0)},ii=u.compile=function(n,t){var r,u=[],f=[],i=vt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ti(t[r]),i[e]?u.push(i):f.push(i);i=vt(n,nr(f,u));i.selector=n}return i},ci=u.select=function(n,i,r,u){var s,e,o,a,v,l="function"==typeof n&&n,h=!u&&ft(n=l.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&f.getById&&9===i.nodeType&&c&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;l&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=pt.needsContext.test(n)?0:e.length;s--&&(o=e[s],!t.relative[a=o.type]);)if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),ei.test(e[0].type)&&kt(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&st(e),!n)return k.apply(r,u),r;break}}return(l||ii(n,h))(u,i,!c,r,!i||ei.test(n)&&kt(i.parentNode)||i),r},f.sortStable=e.split("").sort(ri).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("div"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||bt("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||bt("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||bt(ui,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);t.find=b;t.expr=b.selectors;t.expr[":"]=t.expr.pseudos;t.uniqueSort=t.unique=b.uniqueSort;t.text=b.getText;t.isXMLDoc=b.isXML;t.contains=b.contains;var it=function(n,i,r){for(var u=[],f=void 0!==r;(n=n[i])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&t(n).is(r))break;u.push(n)}return u},yu=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},pu=t.expr.match.needsContext,wu=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,no=/^.[^:#\[\.,]*$/;t.filter=function(n,i,r){var u=i[0];return r&&(n=":not("+n+")"),1===i.length&&1===u.nodeType?t.find.matchesSelector(u,n)?[u]:[]:t.find.matches(n,t.grep(i,function(n){return 1===n.nodeType}))};t.fn.extend({find:function(n){var i,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(t(n).filter(function(){for(i=0;i<f;i++)if(t.contains(u[i],this))return!0}));for(i=0;i<f;i++)t.find(n,u[i],r);return r=this.pushStack(f>1?t.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ti(this,n||[],!1))},not:function(n){return this.pushStack(ti(this,n||[],!0))},is:function(n){return!!ti(this,"string"==typeof n&&pu.test(n)?t(n):n||[],!1).length}});bu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;ku=t.fn.init=function(n,i,u){var f,e;if(!n)return this;if(u=u||ci,"string"==typeof n){if(f="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:bu.exec(n),!f||!f[1]&&i)return!i||i.jquery?(i||u).find(n):this.constructor(i).find(n);if(f[1]){if(i=i instanceof t?i[0]:i,t.merge(this,t.parseHTML(f[1],i&&i.nodeType?i.ownerDocument||i:r,!0)),wu.test(f[1])&&t.isPlainObject(i))for(f in i)t.isFunction(this[f])?this[f](i[f]):this.attr(f,i[f]);return this}if(e=r.getElementById(f[2]),e&&e.parentNode){if(e.id!==f[2])return ci.find(n);this.length=1;this[0]=e}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):t.isFunction(n)?"undefined"!=typeof u.ready?u.ready(n):n(t):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),t.makeArray(n,this))};ku.prototype=t.fn;ci=t(r);du=/^(?:parents|prev(?:Until|All))/;gu={children:!0,contents:!0,next:!0,prev:!0};t.fn.extend({has:function(n){var i,r=t(n,this),u=r.length;return this.filter(function(){for(i=0;i<u;i++)if(t.contains(this,r[i]))return!0})},closest:function(n,i){for(var r,f=0,o=this.length,u=[],e=pu.test(n)||"string"!=typeof n?t(n,i||this.context):0;f<o;f++)for(r=this[f];r&&r!==i;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&t.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?t.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?t.inArray(this[0],t(n)):t.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,i){return this.pushStack(t.uniqueSort(t.merge(this.get(),t(n,i))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});t.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return it(n,"parentNode")},parentsUntil:function(n,t,i){return it(n,"parentNode",i)},next:function(n){return er(n,"nextSibling")},prev:function(n){return er(n,"previousSibling")},nextAll:function(n){return it(n,"nextSibling")},prevAll:function(n){return it(n,"previousSibling")},nextUntil:function(n,t,i){return it(n,"nextSibling",i)},prevUntil:function(n,t,i){return it(n,"previousSibling",i)},siblings:function(n){return yu((n.parentNode||{}).firstChild,n)},children:function(n){return yu(n.firstChild)},contents:function(n){return t.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:t.merge([],n.childNodes)}},function(n,i){t.fn[n]=function(r,u){var f=t.map(this,i,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=t.filter(u,f)),this.length>1&&(gu[n]||(f=t.uniqueSort(f)),du.test(n)&&(f=f.reverse())),this.pushStack(f)}});s=/\S+/g;t.Callbacks=function(n){n="string"==typeof n?oe(n):t.extend({},n);var e,r,h,f,i=[],o=[],u=-1,c=function(){for(f=n.once,h=e=!0;o.length;u=-1)for(r=o.shift();++u<i.length;)i[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=i.length,r=!1);n.memory||(r=!1);e=!1;f&&(i=r?[]:"")},s={add:function(){return i&&(r&&!e&&(u=i.length-1,o.push(r)),function f(r){t.each(r,function(r,u){t.isFunction(u)?n.unique&&s.has(u)||i.push(u):u&&u.length&&"string"!==t.type(u)&&f(u)})}(arguments),r&&!e&&c()),this},remove:function(){return t.each(arguments,function(n,r){for(var f;(f=t.inArray(r,i,f))>-1;)i.splice(f,1),f<=u&&u--}),this},has:function(n){return n?t.inArray(n,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return f=o=[],i=r="",this},disabled:function(){return!i},lock:function(){return f=!0,r||s.disable(),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};t.extend({Deferred:function(n){var u=[["resolve","done",t.Callbacks("once memory"),"resolved"],["reject","fail",t.Callbacks("once memory"),"rejected"],["notify","progress",t.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var n=arguments;return t.Deferred(function(f){t.each(u,function(u,e){var o=t.isFunction(n[u])&&n[u];i[e[1]](function(){var n=o&&o.apply(this,arguments);n&&t.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?t.extend(n,r):r}},i={};return r.pipe=r.then,t.each(u,function(n,t){var e=t[2],o=t[3];r[t[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);i[t[0]]=function(){return i[t[0]+"With"](this===i?r:this,arguments),this};i[t[0]+"With"]=e.fireWith}),r.promise(i),n&&n.call(i,i),i},when:function(n){var o,h,s,i=0,u=a.call(arguments),r=u.length,e=1!==r||n&&t.isFunction(n.promise)?r:0,f=1===e?n:t.Deferred(),c=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}};if(r>1)for(o=new Array(r),h=new Array(r),s=new Array(r);i<r;i++)u[i]&&t.isFunction(u[i].promise)?u[i].promise().progress(c(i,h,o)).done(c(i,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});t.fn.ready=function(n){return t.ready.promise().done(n),this};t.extend({isReady:!1,readyWait:1,holdReady:function(n){n?t.readyWait++:t.ready(!0)},ready:function(n){(n===!0?--t.readyWait:t.isReady)||(t.isReady=!0,n!==!0&&--t.readyWait>0||(yt.resolveWith(r,[t]),t.fn.triggerHandler&&(t(r).triggerHandler("ready"),t(r).off("ready"))))}});t.ready.promise=function(i){if(!yt)if(yt=t.Deferred(),"complete"!==r.readyState&&("loading"===r.readyState||r.documentElement.doScroll))if(r.addEventListener)r.addEventListener("DOMContentLoaded",l),n.addEventListener("load",l);else{r.attachEvent("onreadystatechange",l);n.attachEvent("onload",l);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&!function f(){if(!t.isReady){try{u.doScroll("left")}catch(i){return n.setTimeout(f,50)}or();t.ready()}}()}else n.setTimeout(t.ready);return yt.promise(i)};t.ready.promise();for(nf in t(i))break;i.ownFirst="0"===nf;i.inlineBlockNeedsLayout=!1;t(function(){var f,t,n,u;n=r.getElementsByTagName("body")[0];n&&n.style&&(t=r.createElement("div"),u=r.createElement("div"),u.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(u).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",i.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(u))}),function(){var n=r.createElement("div");i.deleteExpando=!0;try{delete n.test}catch(t){i.deleteExpando=!1}n=null}();var et=function(n){var i=t.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return(1===r||9===r)&&(!i||i!==!0&&n.getAttribute("classid")===i)},to=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,io=/([A-Z])/g;t.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?t.cache[n[t.expando]]:n[t.expando],!!n&&!ii(n)},data:function(n,t,i){return hr(n,t,i)},removeData:function(n,t){return cr(n,t)},_data:function(n,t,i){return hr(n,t,i,!0)},_removeData:function(n,t){return cr(n,t,!0)}});t.fn.extend({data:function(n,i){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=t.data(r),1===r.nodeType&&!t._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=t.camelCase(u.slice(5)),sr(r,u,e[u])));t._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){t.data(this,n)}):arguments.length>1?this.each(function(){t.data(this,n,i)}):r?sr(r,n,t.data(r,n)):void 0},removeData:function(n){return this.each(function(){t.removeData(this,n)})}});t.extend({queue:function(n,i,r){var u;if(n)return i=(i||"fx")+"queue",u=t._data(n,i),r&&(!u||t.isArray(r)?u=t._data(n,i,t.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,i){i=i||"fx";var r=t.queue(n,i),e=r.length,u=r.shift(),f=t._queueHooks(n,i),o=function(){t.dequeue(n,i)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===i&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,i){var r=i+"queueHooks";return t._data(n,r)||t._data(n,r,{empty:t.Callbacks("once memory").add(function(){t._removeData(n,i+"queue");t._removeData(n,r)})})}});t.fn.extend({queue:function(n,i){var r=2;return"string"!=typeof n&&(i=n,n="fx",r--),arguments.length<r?t.queue(this[0],n):void 0===i?this:this.each(function(){var r=t.queue(this,n,i);t._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&t.dequeue(this,n)})},dequeue:function(n){return this.each(function(){t.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,i){var r,f=1,e=t.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(i=n,n=void 0),n=n||"fx";o--;)r=t._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(i)}}),function(){var n;i.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,u;return i=r.getElementsByTagName("body")[0],i&&i.style?(t=r.createElement("div"),u=r.createElement("div"),u.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(u).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(r.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(u),n):void 0}}();var li=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ai=new RegExp("^(?:([+-])=|)("+li+")([a-z%]*)$","i"),k=["Top","Right","Bottom","Left"],ot=function(n,i){return n=i||n,"none"===t.css(n,"display")||!t.contains(n.ownerDocument,n)},v=function(n,i,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===t.type(r)){f=!0;for(s in r)v(n,i,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,t.isFunction(u)||(o=!0),h&&(o?(i.call(n,u),i=null):(h=i,i=function(n,i,r){return h.call(t(n),r)})),i))for(;s<c;s++)i(n[s],r,o?u:u.call(n[s],s,i(n[s],r)));return f?n:h?i.call(n):c?i(n[0],r):e},vi=/^(?:checkbox|radio)$/i,tf=/<([\w:-]+)/,rf=/^$|\/(?:java|ecma)script/i,yi=/^\s+/,uf="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var n=r.createElement("div"),f=r.createDocumentFragment(),u=r.createElement("input");n.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i.leadingWhitespace=3===n.firstChild.nodeType;i.tbody=!n.getElementsByTagName("tbody").length;i.htmlSerialize=!!n.getElementsByTagName("link").length;i.html5Clone="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;u.type="checkbox";u.checked=!0;f.appendChild(u);i.appendChecked=u.checked;n.innerHTML="<textarea>x<\/textarea>";i.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue;f.appendChild(n);u=r.createElement("input");u.setAttribute("type","radio");u.setAttribute("checked","checked");u.setAttribute("name","t");n.appendChild(u);i.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;i.noCloneEvent=!!n.addEventListener;n[t.expando]=1;i.attributes=!n.getAttribute(t.expando)}();e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]};e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;ff=/<|&#?\w+;/;pi=/<tbody/i;!function(){var t,u,f=r.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})u="on"+t,(i[t]=u in n)||(f.setAttribute(u,"t"),i[t]=f.attributes[u].expando===!1);f=null}();var wi=/^(?:input|select|textarea)$/i,ro=/^key/,uo=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ef=/^(?:focusinfocus|focusoutblur)$/,of=/^([^.]*)(?:\.(.+)|)/;t.event={global:{},add:function(n,i,r,u,f){var p,v,w,y,o,h,c,l,e,b,k,a=t._data(n);if(a){for(r.handler&&(y=r,r=y.handler,f=y.selector),r.guid||(r.guid=t.guid++),(v=a.events)||(v=a.events={}),(h=a.handle)||(h=a.handle=function(n){if("undefined"!=typeof t&&(!n||t.event.triggered!==n.type))return t.event.dispatch.apply(h.elem,arguments)},h.elem=n),i=(i||"").match(s)||[""],w=i.length;w--;)p=of.exec(i[w])||[],e=k=p[1],b=(p[2]||"").split(".").sort(),e&&(o=t.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=t.event.special[e]||{},c=t.extend({type:e,origType:k,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&t.expr.match.needsContext.test(f),namespace:b.join(".")},y),(l=v[e])||(l=v[e]=[],l.delegateCount=0,o.setup&&o.setup.call(n,u,b,h)!==!1||(n.addEventListener?n.addEventListener(e,h,!1):n.attachEvent&&n.attachEvent("on"+e,h))),o.add&&(o.add.call(n,c),c.handler.guid||(c.handler.guid=r.guid)),f?l.splice(l.delegateCount++,0,c):l.push(c),t.event.global[e]=!0);n=null}},remove:function(n,i,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=t.hasData(n)&&t._data(n);if(v&&(a=v.events)){for(i=(i||"").match(s)||[""],p=i.length;p--;)if(h=of.exec(i[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=t.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||t.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)t.event.remove(n,e+i[p],r,u,!0);t.isEmptyObject(a)&&(delete v.handle,t._removeData(n,"events"))}},trigger:function(i,u,f,e){var l,a,o,p,c,h,w,y=[f||r],s=tt.call(i,"type")?i.type:i,v=tt.call(i,"namespace")?i.namespace.split("."):[];if(o=h=f=f||r,3!==f.nodeType&&8!==f.nodeType&&!ef.test(s+t.event.triggered)&&(s.indexOf(".")>-1&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,i=i[t.expando]?i:new t.Event(s,"object"==typeof i&&i),i.isTrigger=e?2:3,i.namespace=v.join("."),i.rnamespace=i.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,i.result=void 0,i.target||(i.target=f),u=null==u?[i]:t.makeArray(u,[i]),c=t.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,u)!==!1)){if(!e&&!c.noBubble&&!t.isWindow(f)){for(p=c.delegateType||s,ef.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||r)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!i.isPropagationStopped();)i.type=w>1?p:c.bindType||s,l=(t._data(o,"events")||{})[i.type]&&t._data(o,"handle"),l&&l.apply(o,u),l=a&&o[a],l&&l.apply&&et(o)&&(i.result=l.apply(o,u),i.result===!1&&i.preventDefault());if(i.type=s,!e&&!i.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),u)===!1)&&et(f)&&a&&f[s]&&!t.isWindow(f)){h=f[a];h&&(f[a]=null);t.event.triggered=s;try{f[s]()}catch(b){}t.event.triggered=void 0;h&&(f[a]=h)}return i.result}},dispatch:function(n){n=t.event.fix(n);var e,o,f,r,i,s=[],h=a.call(arguments),c=(t._data(this,"events")||{})[n.type]||[],u=t.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=t.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(i=r.handlers[o++])&&!n.isImmediatePropagationStopped();)n.rnamespace&&!n.rnamespace.test(i.namespace)||(n.handleObj=i,n.data=i.data,f=((t.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,i){var e,u,f,o,h=[],s=i.delegateCount,r=n.target;if(s&&r.nodeType&&("click"!==n.type||isNaN(n.button)||n.button<1))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],e=0;e<s;e++)o=i[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?t(f,this).index(r)>-1:t.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<i.length&&h.push({elem:this,handlers:i.slice(s)}),h},fix:function(n){if(n[t.expando])return n;var e,o,s,u=n.type,f=n,i=this.fixHooks[u];for(i||(this.fixHooks[u]=i=uo.test(u)?this.mouseHooks:ro.test(u)?this.keyHooks:{}),s=i.props?this.props.concat(i.props):this.props,n=new t.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,i.filter?i.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,u,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||r,u=e.documentElement,i=e.body,n.pageX=t.clientX+(u&&u.scrollLeft||i&&i.scrollLeft||0)-(u&&u.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(u&&u.scrollTop||i&&i.scrollTop||0)-(u&&u.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==yr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===yr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(t.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(n){return t.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,i,r){var u=t.extend(new t.Event,r,{type:n,isSimulated:!0});t.event.trigger(u,null,i);u.isDefaultPrevented()&&r.preventDefault()}};t.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)}:function(n,t,i){var r="on"+t;n.detachEvent&&("undefined"==typeof n[r]&&(n[r]=null),n.detachEvent(r,i))};t.Event=function(n,i){return this instanceof t.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?ct:nt):this.type=n,i&&t.extend(this,i),this.timeStamp=n&&n.timeStamp||t.now(),void(this[t.expando]=!0)):new t.Event(n,i)};t.Event.prototype={constructor:t.Event,isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&!this.isSimulated&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ct;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};t.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,i){t.event.special[n]={delegateType:i,bindType:i,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||t.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=i),u}}});i.submit||(t.event.special.submit={setup:function(){return!t.nodeName(this,"form")&&void t.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,i=t.nodeName(r,"input")||t.nodeName(r,"button")?t.prop(r,"form"):void 0;i&&!t._data(i,"submit")&&(t.event.add(i,"submit._submit",function(n){n._submitBubble=!0}),t._data(i,"submit",!0))})},postDispatch:function(n){n._submitBubble&&(delete n._submitBubble,this.parentNode&&!n.isTrigger&&t.event.simulate("submit",this.parentNode,n))},teardown:function(){return!t.nodeName(this,"form")&&void t.event.remove(this,"._submit")}});i.change||(t.event.special.change={setup:function(){return wi.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(t.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._justChanged=!0)}),t.event.add(this,"click._change",function(n){this._justChanged&&!n.isTrigger&&(this._justChanged=!1);t.event.simulate("change",this,n)})),!1):void t.event.add(this,"beforeactivate._change",function(n){var i=n.target;wi.test(i.nodeName)&&!t._data(i,"change")&&(t.event.add(i,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||t.event.simulate("change",this.parentNode,n)}),t._data(i,"change",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return t.event.remove(this,"._change"),!wi.test(this.nodeName)}});i.focusin||t.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(n){t.event.simulate(i,n.target,t.event.fix(n))};t.event.special[i]={setup:function(){var u=this.ownerDocument||this,f=t._data(u,i);f||u.addEventListener(n,r,!0);t._data(u,i,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=t._data(u,i)-1;f?t._data(u,i,f):(u.removeEventListener(n,r,!0),t._removeData(u,i))}}});t.fn.extend({on:function(n,t,i,r){return ui(this,n,t,i,r)},one:function(n,t,i,r){return ui(this,n,t,i,r,1)},off:function(n,i,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,t(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,i,n[f]);return this}return i!==!1&&"function"!=typeof i||(r=i,i=void 0),r===!1&&(r=nt),this.each(function(){t.event.remove(this,n,r,i)})},trigger:function(n,i){return this.each(function(){t.event.trigger(n,i,this)})},triggerHandler:function(n,i){var r=this[0];if(r)return t.event.trigger(n,i,r,!0)}});var fo=/ jQuery\d+="(?:null|\d+)"/g,sf=new RegExp("<(?:"+uf+")[\\s/>]","i"),eo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,oo=/<script|<style|<link/i,so=/checked\s*(?:[^=]|=\s*.checked.)/i,ho=/^true\/(.*)/,co=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,lo=ar(r),bi=lo.appendChild(r.createElement("div"));t.extend({htmlPrefilter:function(n){return n.replace(eo,"<$1><\/$2>")},clone:function(n,r,f){var e,c,s,o,h,l=t.contains(n.ownerDocument,n);if(i.html5Clone||t.isXMLDoc(n)||!sf.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(bi.innerHTML=n.outerHTML,bi.removeChild(s=bi.firstChild)),!(i.noCloneEvent&&i.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||t.isXMLDoc(n)))for(e=u(s),h=u(n),o=0;null!=(c=h[o]);++o)e[o]&&he(c,e[o]);if(r)if(f)for(h=h||u(n),e=e||u(s),o=0;null!=(c=h[o]);o++)kr(c,e[o]);else kr(n,s);return e=u(s,"script"),e.length>0&&ri(e,!l&&u(n,"script")),e=h=c=null,s},cleanData:function(n,r){for(var u,e,f,o,l=0,s=t.expando,c=t.cache,a=i.attributes,v=t.event.special;null!=(u=n[l]);l++)if((r||et(u))&&(f=u[s],o=f&&c[f])){if(o.events)for(e in o.events)v[e]?t.event.remove(u,e):t.removeEvent(u,e,o.handle);c[f]&&(delete c[f],a||"undefined"==typeof u.removeAttribute?u[s]=void 0:u.removeAttribute(s),h.push(f))}}});t.fn.extend({domManip:p,detach:function(n){return dr(this,n,!0)},remove:function(n){return dr(this,n)},text:function(n){return v(this,function(n){return void 0===n?t.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return p(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pr(this,n);t.appendChild(n)}})},prepend:function(){return p(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return p(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return p(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,i=0;null!=(n=this[i]);i++){for(1===n.nodeType&&t.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&t.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,i){return n=null!=n&&n,i=null==i?n:i,this.map(function(){return t.clone(this,n,i)})},html:function(n){return v(this,function(n){var r=this[0]||{},f=0,o=this.length;if(void 0===n)return 1===r.nodeType?r.innerHTML.replace(fo,""):void 0;if("string"==typeof n&&!oo.test(n)&&(i.htmlSerialize||!sf.test(n))&&(i.leadingWhitespace||!yi.test(n))&&!e[(tf.exec(n)||["",""])[1].toLowerCase()]){n=t.htmlPrefilter(n);try{for(;f<o;f++)r=this[f]||{},1===r.nodeType&&(t.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return p(this,arguments,function(i){var r=this.parentNode;t.inArray(this,n)<0&&(t.cleanData(u(this)),r&&r.replaceChild(i,this))},n)}});t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,i){t.fn[n]=function(n){for(var u,r=0,f=[],e=t(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),t(e[r])[i](u),hi.apply(f,u.get());return this.pushStack(f)}});var st,hf={HTML:"block",BODY:"block"},cf=/^margin/,pt=new RegExp("^("+li+")(?!px)[a-z%]+$","i"),ki=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f},lf=r.documentElement;!function(){function e(){var t,i,e=r.documentElement;e.appendChild(s);u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";f=c=a=!1;h=l=!0;n.getComputedStyle&&(i=n.getComputedStyle(u),f="1%"!==(i||{}).top,a="2px"===(i||{}).marginLeft,c="4px"===(i||{width:"4px"}).width,u.style.marginRight="50%",h="4px"===(i||{marginRight:"4px"}).marginRight,t=u.appendChild(r.createElement("div")),t.style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",u.style.width="1px",l=!parseFloat((n.getComputedStyle(t)||{}).marginRight),u.removeChild(t));u.style.display="none";o=0===u.getClientRects().length;o&&(u.style.display="",u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t=u.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight));e.removeChild(s)}var f,h,c,o,l,a,s=r.createElement("div"),u=r.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",i.opacity="0.5"===u.style.opacity,i.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",i.clearCloneStyle="content-box"===u.style.backgroundClip,s=r.createElement("div"),s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",s.appendChild(u),i.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,t.extend(i,{reliableHiddenOffsets:function(){return null==f&&e(),o},boxSizingReliable:function(){return null==f&&e(),c},pixelMarginRight:function(){return null==f&&e(),h},pixelPosition:function(){return null==f&&e(),f},reliableMarginRight:function(){return null==f&&e(),l},reliableMarginLeft:function(){return null==f&&e(),a}}))}();af=/^(top|right|bottom|left)$/;n.getComputedStyle?(d=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},y=function(n,r,u){var o,s,h,f,e=n.style;return u=u||d(n),f=u?u.getPropertyValue(r)||u[r]:void 0,""!==f&&void 0!==f||t.contains(n.ownerDocument,n)||(f=t.style(n,r)),u&&!i.pixelMarginRight()&&pt.test(f)&&cf.test(r)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=f,f=u.width,e.width=o,e.minWidth=s,e.maxWidth=h),void 0===f?f:f+""}):lf.currentStyle&&(d=function(n){return n.currentStyle},y=function(n,t,i){var o,f,e,r,u=n.style;return i=i||d(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!af.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});var di=/alpha\([^)]*\)/i,ao=/opacity\s*=\s*([^)]*)/i,vo=/^(none|table(?!-c[ea]).+)/,yo=new RegExp("^("+li+")(.*)$","i"),po={position:"absolute",visibility:"hidden",display:"block"},vf={letterSpacing:"0",fontWeight:"400"},yf=["Webkit","O","Moz","ms"],pf=r.createElement("div").style;t.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,h,o,s=t.camelCase(r),c=n.style;if(r=t.cssProps[s]||(t.cssProps[s]=nu(s)||s),o=t.cssHooks[r]||t.cssHooks[s],void 0===u)return o&&"get"in o&&void 0!==(e=o.get(n,!1,f))?e:c[r];if(h=typeof u,"string"===h&&(e=ai.exec(u))&&e[1]&&(u=lr(n,r,e),h="number"),null!=u&&u===u&&("number"===h&&(u+=e&&e[3]||(t.cssNumber[s]?"":"px")),i.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),!(o&&"set"in o&&void 0===(u=o.set(n,u,f)))))try{c[r]=u}catch(l){}}},css:function(n,i,r,u){var s,f,o,e=t.camelCase(i);return i=t.cssProps[e]||(t.cssProps[e]=nu(e)||e),o=t.cssHooks[i]||t.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=y(n,i,u)),"normal"===f&&i in vf&&(f=vf[i]),""===r||r?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});t.each(["height","width"],function(n,r){t.cssHooks[r]={get:function(n,i,u){if(i)return vo.test(t.css(n,"display"))&&0===n.offsetWidth?ki(n,po,function(){return uu(n,r,u)}):uu(n,r,u)},set:function(n,u,f){var e=f&&d(n);return iu(n,u,f?ru(n,r,f,i.boxSizing&&"border-box"===t.css(n,"boxSizing",!1,e),e):0)}}});i.opacity||(t.cssHooks.opacity={get:function(n,t){return ao.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,i){var r=n.style,u=n.currentStyle,e=t.isNumeric(i)?"alpha(opacity="+100*i+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(i>=1||""===i)&&""===t.trim(f.replace(di,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===i||u&&!u.filter)||(r.filter=di.test(f)?f.replace(di,e):f+" "+e)}});t.cssHooks.marginRight=fi(i.reliableMarginRight,function(n,t){if(t)return ki(n,{display:"inline-block"},y,[n,"marginRight"])});t.cssHooks.marginLeft=fi(i.reliableMarginLeft,function(n,i){if(i)return(parseFloat(y(n,"marginLeft"))||(t.contains(n.ownerDocument,n)?n.getBoundingClientRect().left-ki(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}):0))+"px"});t.each({margin:"",padding:"",border:"Width"},function(n,i){t.cssHooks[n+i]={expand:function(t){for(var r=0,f={},u="string"==typeof t?t.split(" "):[t];r<4;r++)f[n+k[r]+i]=u[r]||u[r-2]||u[0];return f}};cf.test(n)||(t.cssHooks[n+i].set=iu)});t.fn.extend({css:function(n,i){return v(this,function(n,i,r){var f,e,o={},u=0;if(t.isArray(i)){for(f=d(n),e=i.length;u<e;u++)o[i[u]]=t.css(n,i[u],!1,f);return o}return void 0!==r?t.style(n,i,r):t.css(n,i)},n,i,arguments.length>1)},show:function(){return tu(this,!0)},hide:function(){return tu(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ot(this)?t(this).show():t(this).hide()})}});t.Tween=f;f.prototype={constructor:f,init:function(n,i,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||t.easing._default;this.options=i;this.start=this.now=this.cur();this.end=u;this.unit=e||(t.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var i,r=f.propHooks[this.prop];return this.pos=this.options.duration?i=t.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):i=n,this.now=(this.end-this.start)*i+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var i;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(i=t.css(n.elem,n.prop,""),i&&"auto"!==i?i:0)},set:function(n){t.fx.step[n.prop]?t.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[t.cssProps[n.prop]]&&!t.cssHooks[n.prop]?n.elem[n.prop]=n.now:t.style(n.elem,n.prop,n.now+n.unit)}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};t.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};t.fx=f.prototype.init;t.fx.step={};wf=/^(?:toggle|show|hide)$/;bf=/queueHooks$/;t.Animation=t.extend(o,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return lr(i.elem,n,ai.exec(t),i),i}]},tweener:function(n,i){t.isFunction(n)?(i=n,n=["*"]):n=n.match(s);for(var r,u=0,f=n.length;u<f;u++)r=n[u],o.tweeners[r]=o.tweeners[r]||[],o.tweeners[r].unshift(i)},prefilters:[ce],prefilter:function(n,t){t?o.prefilters.unshift(n):o.prefilters.push(n)}});t.speed=function(n,i,r){var u=n&&"object"==typeof n?t.extend({},n):{complete:r||!r&&i||t.isFunction(n)&&n,duration:n,easing:r&&i||i&&!t.isFunction(i)&&i};return u.duration=t.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in t.fx.speeds?t.fx.speeds[u.duration]:t.fx.speeds._default,null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){t.isFunction(u.old)&&u.old.call(this);u.queue&&t.dequeue(this,u.queue)},u};t.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ot).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,i,r,u){var s=t.isEmptyObject(n),e=t.speed(i,r,u),f=function(){var i=o(this,t.extend({},n),e);(s||t._data(this,"finish"))&&i.stop(!0)};return f.finish=f,s||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,i,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=i,i=n,n=void 0),i&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,i=null!=n&&n+"queueHooks",e=t.timers,f=t._data(this);if(i)f[i]&&f[i].stop&&u(f[i]);else for(i in f)f[i]&&f[i].stop&&bf.test(i)&&u(f[i]);for(i=e.length;i--;)e[i].elem!==this||null!=n&&e[i].queue!==n||(e[i].anim.stop(r),o=!1,e.splice(i,1));!o&&r||t.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var i,f=t._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=t.timers,o=r?r.length:0;for(f.finish=!0,t.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),i=u.length;i--;)u[i].elem===this&&u[i].queue===n&&(u[i].anim.stop(!0),u.splice(i,1));for(i=0;i<o;i++)r[i]&&r[i].finish&&r[i].finish.call(this);delete f.finish})}});t.each(["toggle","show","hide"],function(n,i){var r=t.fn[i];t.fn[i]=function(n,t,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(at(i,!0),n,t,u)}});t.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,i){t.fn[n]=function(n,t,r){return this.animate(i,n,t,r)}});t.timers=[];t.fx.tick=function(){var r,n=t.timers,i=0;for(rt=t.now();i<n.length;i++)r=n[i],r()||n[i]!==r||n.splice(i--,1);n.length||t.fx.stop();rt=void 0};t.fx.timer=function(n){t.timers.push(n);n()?t.fx.start():t.timers.pop()};t.fx.interval=13;t.fx.start=function(){wt||(wt=n.setInterval(t.fx.tick,t.fx.interval))};t.fx.stop=function(){n.clearInterval(wt);wt=null};t.fx.speeds={slow:600,fast:200,_default:400};t.fn.delay=function(i,r){return i=t.fx?t.fx.speeds[i]||i:i,r=r||"fx",this.queue(r,function(t,r){var u=n.setTimeout(t,i);r.stop=function(){n.clearTimeout(u)}})},function(){var u,n=r.createElement("input"),t=r.createElement("div"),f=r.createElement("select"),e=f.appendChild(r.createElement("option"));t=r.createElement("div");t.setAttribute("className","t");t.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";u=t.getElementsByTagName("a")[0];n.setAttribute("type","checkbox");t.appendChild(n);u=t.getElementsByTagName("a")[0];u.style.cssText="top:1px";i.getSetAttribute="t"!==t.className;i.style=/top/.test(u.getAttribute("style"));i.hrefNormalized="/a"===u.getAttribute("href");i.checkOn=!!n.value;i.optSelected=e.selected;i.enctype=!!r.createElement("form").enctype;f.disabled=!0;i.optDisabled=!e.disabled;n=r.createElement("input");n.setAttribute("value","");i.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");i.radioValue="t"===n.value}();kf=/\r/g;df=/[\x20\t\r\n\f]+/g;t.fn.extend({val:function(n){var i,r,f,u=this[0];return arguments.length?(f=t.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,t(this).val()):n,null==u?u="":"number"==typeof u?u+="":t.isArray(u)&&(u=t.map(u,function(n){return null==n?"":n+""})),i=t.valHooks[this.type]||t.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&void 0!==i.set(this,u,"value")||(this.value=u))})):u?(i=t.valHooks[u.type]||t.valHooks[u.nodeName.toLowerCase()],i&&"get"in i&&void 0!==(r=i.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(kf,""):null==r?"":r)):void 0}});t.extend({valHooks:{option:{get:function(n){var i=t.find.attr(n,"value");return null!=i?i:t.trim(t.text(n)).replace(df," ")}},select:{get:function(n){for(var o,r,s=n.options,u=n.selectedIndex,f="select-one"===n.type||u<0,h=f?null:[],c=f?u+1:s.length,e=u<0?c:f?u:0;e<c;e++)if(r=s[e],(r.selected||e===u)&&(i.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!t.nodeName(r.parentNode,"optgroup"))){if(o=t(r).val(),f)return o;h.push(o)}return h},set:function(n,i){for(var f,r,u=n.options,o=t.makeArray(i),e=u.length;e--;)if(r=u[e],t.inArray(t.valHooks.option.get(r),o)>-1)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});t.each(["radio","checkbox"],function(){t.valHooks[this]={set:function(n,i){if(t.isArray(i))return n.checked=t.inArray(t(n).val(),i)>-1}};i.checkOn||(t.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,gf,c=t.expr.attrHandle,gi=/^(?:checked|selected)$/i,g=i.getSetAttribute,bt=i.input;t.fn.extend({attr:function(n,i){return v(this,t.attr,n,i,arguments.length>1)},removeAttr:function(n){return this.each(function(){t.removeAttr(this,n)})}});t.extend({attr:function(n,i,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?t.prop(n,i,r):(1===e&&t.isXMLDoc(n)||(i=i.toLowerCase(),f=t.attrHooks[i]||(t.expr.match.bool.test(i)?gf:ut)),void 0!==r?null===r?void t.removeAttr(n,i):f&&"set"in f&&void 0!==(u=f.set(n,r,i))?u:(n.setAttribute(i,r+""),r):f&&"get"in f&&null!==(u=f.get(n,i))?u:(u=t.find.attr(n,i),null==u?void 0:u))},attrHooks:{type:{set:function(n,r){if(!i.radioValue&&"radio"===r&&t.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",r),u&&(n.value=u),r}}}},removeAttr:function(n,i){var r,u,e=0,f=i&&i.match(s);if(f&&1===n.nodeType)for(;r=f[e++];)u=t.propFix[r]||r,t.expr.match.bool.test(r)?bt&&g||!gi.test(r)?n[u]=!1:n[t.camelCase("default-"+r)]=n[u]=!1:t.attr(n,r,""),n.removeAttribute(g?r:u)}});gf={set:function(n,i,r){return i===!1?t.removeAttr(n,r):bt&&g||!gi.test(r)?n.setAttribute(!g&&t.propFix[r]||r,r):n[t.camelCase("default-"+r)]=n[r]=!0,r}};t.each(t.expr.match.bool.source.match(/\w+/g),function(n,i){var r=c[i]||t.find.attr;c[i]=bt&&g||!gi.test(i)?function(n,t,i){var u,f;return i||(f=c[t],c[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,c[t]=f),u}:function(n,i,r){if(!r)return n[t.camelCase("default-"+i)]?i.toLowerCase():null}});bt&&g||(t.attrHooks.value={set:function(n,i,r){return t.nodeName(n,"input")?void(n.defaultValue=i):ut&&ut.set(n,i,r)}});g||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);if(r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i))return t}},c.id=c.name=c.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},t.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},t.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""!==t&&t,i)}},t.each(["width","height"],function(n,i){t.attrHooks[i]={set:function(n,t){if(""===t)return n.setAttribute(i,"auto"),t}}}));i.style||(t.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});ne=/^(?:input|select|textarea|button|object)$/i;te=/^(?:a|area)$/i;t.fn.extend({prop:function(n,i){return v(this,t.prop,n,i,arguments.length>1)},removeProp:function(n){return n=t.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});t.extend({prop:function(n,i,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&t.isXMLDoc(n)||(i=t.propFix[i]||i,u=t.propHooks[i]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,i))?f:n[i]=r:u&&"get"in u&&null!==(f=u.get(n,i))?f:n[i]},propHooks:{tabIndex:{get:function(n){var i=t.find.attr(n,"tabindex");return i?parseInt(i,10):ne.test(n.nodeName)||te.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});i.hrefNormalized||t.each(["href","src"],function(n,i){t.propHooks[i]={get:function(n){return n.getAttribute(i,4)}}});i.optSelected||(t.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});t.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){t.propFix[this.toLowerCase()]=this});i.enctype||(t.propFix.enctype="encoding");kt=/[\t\r\n\f]/g;t.fn.extend({addClass:function(n){var o,i,r,u,f,h,e,c=0;if(t.isFunction(n))return this.each(function(i){t(this).addClass(n.call(this,i,w(this)))});if("string"==typeof n&&n)for(o=n.match(s)||[];i=this[c++];)if(u=w(i),r=1===i.nodeType&&(" "+u+" ").replace(kt," ")){for(h=0;f=o[h++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=t.trim(r);u!==e&&t.attr(i,"class",e)}return this},removeClass:function(n){var o,r,i,u,f,h,e,c=0;if(t.isFunction(n))return this.each(function(i){t(this).removeClass(n.call(this,i,w(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(s)||[];r=this[c++];)if(u=w(r),i=1===r.nodeType&&(" "+u+" ").replace(kt," ")){for(h=0;f=o[h++];)for(;i.indexOf(" "+f+" ")>-1;)i=i.replace(" "+f+" "," ");e=t.trim(i);u!==e&&t.attr(r,"class",e)}return this},toggleClass:function(n,i){var r=typeof n;return"boolean"==typeof i&&"string"===r?i?this.addClass(n):this.removeClass(n):t.isFunction(n)?this.each(function(r){t(this).toggleClass(n.call(this,r,w(this),i),i)}):this.each(function(){var i,f,u,e;if("string"===r)for(f=0,u=t(this),e=n.match(s)||[];i=e[f++];)u.hasClass(i)?u.removeClass(i):u.addClass(i);else void 0!==n&&"boolean"!==r||(i=w(this),i&&t._data(this,"__className__",i),t.attr(this,"class",i||n===!1?"":t._data(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+w(t)+" ").replace(kt," ").indexOf(i)>-1)return!0;return!1}});t.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,i){t.fn[i]=function(n,t){return arguments.length>0?this.on(i,null,n,t):this.trigger(i)}});t.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});var wo=n.location,nr=t.now(),tr=/\?/,bo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;t.parseJSON=function(i){if(n.JSON&&n.JSON.parse)return n.JSON.parse(i+"");var f,r=null,u=t.trim(i+"");return u&&!t.trim(u.replace(bo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():t.error("Invalid JSON: "+i)};t.parseXML=function(i){var r,u;if(!i||"string"!=typeof i)return null;try{n.DOMParser?(u=new n.DOMParser,r=u.parseFromString(i,"text/xml")):(r=new n.ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(i))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||t.error("Invalid XML: "+i),r};var ko=/#.*$/,ie=/([?&])_=[^&]*/,go=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ns=/^(?:GET|HEAD)$/,ts=/^\/\//,re=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ue={},ir={},fe="*/".concat("*"),rr=wo.href,ft=re.exec(rr.toLowerCase())||[];t.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:rr,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ft[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":t.parseJSON,"text xml":t.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,i){return i?ei(ei(n,t.ajaxSettings),i):ei(t.ajaxSettings,n)},ajaxPrefilter:ou(ue),ajaxTransport:ou(ir),ajax:function(i,r){function y(i,r,s,c){var y,rt,it,p,tt,l=r;2!==o&&(o=2,k&&n.clearTimeout(k),v=void 0,b=c||"",f.readyState=i>0?4:0,y=i>=200&&i<300||304===i,s&&(p=ae(u,f,s)),p=ve(u,p,f,y),y?(u.ifModified&&(tt=f.getResponseHeader("Last-Modified"),tt&&(t.lastModified[e]=tt),tt=f.getResponseHeader("etag"),tt&&(t.etag[e]=tt)),204===i||"HEAD"===u.type?l="nocontent":304===i?l="notmodified":(l=p.state,rt=p.data,it=p.error,y=!it)):(it=l,!i&&l||(l="error",i<0&&(i=0))),f.status=i,f.statusText=(r||l)+"",y?g.resolveWith(h,[rt,l,f]):g.rejectWith(h,[f,l,it]),f.statusCode(w),w=void 0,a&&d.trigger(y?"ajaxSuccess":"ajaxError",[f,u,y?rt:it]),nt.fireWith(h,[f,l]),a&&(d.trigger("ajaxComplete",[f,u]),--t.active||t.event.trigger("ajaxStop")))}"object"==typeof i&&(r=i,i=void 0);r=r||{};var c,l,e,b,k,a,v,p,u=t.ajaxSetup({},r),h=u.context||u,d=u.context&&(h.nodeType||h.jquery)?t(h):t.event,g=t.Deferred(),nt=t.Callbacks("once memory"),w=u.statusCode||{},tt={},it={},o=0,rt="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!p)for(p={};t=go.exec(b);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(o<2)for(t in n)w[t]=[w[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||rt;return v&&v.abort(t),y(0,t),this}};if(g.promise(f).complete=nt.add,f.success=f.done,f.error=f.fail,u.url=((i||u.url||rr)+"").replace(ko,"").replace(ts,ft[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=t.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(c=re.exec(u.url.toLowerCase()),u.crossDomain=!(!c||c[1]===ft[1]&&c[2]===ft[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(ft[3]||("http:"===ft[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=t.param(u.data,u.traditional)),su(ue,u,r,f),2===o)return f;a=t.event&&u.global;a&&0==t.active++&&t.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!ns.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(tr.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=ie.test(e)?e.replace(ie,"$1_="+nr++):e+(tr.test(e)?"&":"?")+"_="+nr++));u.ifModified&&(t.lastModified[e]&&f.setRequestHeader("If-Modified-Since",t.lastModified[e]),t.etag[e]&&f.setRequestHeader("If-None-Match",t.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+fe+"; q=0.01":""):u.accepts["*"]);for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();rt="abort";for(l in{success:1,error:1,complete:1})f[l](u[l]);if(v=su(ir,u,r,f)){if(f.readyState=1,a&&d.trigger("ajaxSend",[f,u]),2===o)return f;u.async&&u.timeout>0&&(k=n.setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(tt,y)}catch(ut){if(!(o<2))throw ut;y(-1,ut)}}else y(-1,"No Transport");return f},getJSON:function(n,i,r){return t.get(n,i,r,"json")},getScript:function(n,i){return t.get(n,void 0,i,"script")}});t.each(["get","post"],function(n,i){t[i]=function(n,r,u,f){return t.isFunction(r)&&(f=f||u,u=r,r=void 0),t.ajax(t.extend({url:n,type:i,dataType:f,data:r,success:u},t.isPlainObject(n)&&n))}});t._evalUrl=function(n){return t.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})};t.fn.extend({wrapAll:function(n){if(t.isFunction(n))return this.each(function(i){t(this).wrapAll(n.call(this,i))});if(this[0]){var i=t(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&i.insertBefore(this[0]);i.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return t.isFunction(n)?this.each(function(i){t(this).wrapInner(n.call(this,i))}):this.each(function(){var i=t(this),r=i.contents();r.length?r.wrapAll(n):i.append(n)})},wrap:function(n){var i=t.isFunction(n);return this.each(function(r){t(this).wrapAll(i?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){t.nodeName(this,"body")||t(this).replaceWith(this.childNodes)}).end()}});t.expr.filters.hidden=function(n){return i.reliableHiddenOffsets()?n.offsetWidth<=0&&n.offsetHeight<=0&&!n.getClientRects().length:pe(n)};t.expr.filters.visible=function(n){return!t.expr.filters.hidden(n)};var is=/%20/g,rs=/\[\]$/,ee=/\r?\n/g,us=/^(?:submit|button|image|reset|file)$/i,fs=/^(?:input|select|textarea|keygen)/i;t.param=function(n,i){var r,u=[],f=function(n,i){i=t.isFunction(i)?i():null==i?"":i;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(i)};if(void 0===i&&(i=t.ajaxSettings&&t.ajaxSettings.traditional),t.isArray(n)||n.jquery&&!t.isPlainObject(n))t.each(n,function(){f(this.name,this.value)});else for(r in n)oi(r,n[r],i,f);return u.join("&").replace(is,"+")};t.fn.extend({serialize:function(){return t.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=t.prop(this,"elements");return n?t.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!t(this).is(":disabled")&&fs.test(this.nodeName)&&!us.test(n)&&(this.checked||!vi.test(n))}).map(function(n,i){var r=t(this).val();return null==r?null:t.isArray(r)?t.map(r,function(n){return{name:i.name,value:n.replace(ee,"\r\n")}}):{name:i.name,value:r.replace(ee,"\r\n")}}).get()}});t.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?hu():r.documentMode>8?si():/^(get|post|head|put|delete|options)$/i.test(this.type)&&si()||hu()}:si;var es=0,dt={},ht=t.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in dt)dt[n](void 0,!0)}),i.cors=!!ht&&"withCredentials"in ht,ht=i.ajax=!!ht,ht&&t.ajaxTransport(function(r){if(!r.crossDomain||i.cors){var u;return{send:function(i,f){var o,e=r.xhr(),s=++es;if(e.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(o in r.xhrFields)e[o]=r.xhrFields[o];r.mimeType&&e.overrideMimeType&&e.overrideMimeType(r.mimeType);r.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)void 0!==i[o]&&e.setRequestHeader(o,i[o]+"");e.send(r.hasContent&&r.data||null);u=function(n,i){var o,c,h;if(u&&(i||4===e.readyState))if(delete dt[s],u=void 0,e.onreadystatechange=t.noop,i)4!==e.readyState&&e.abort();else{h={};o=e.status;"string"==typeof e.responseText&&(h.text=e.responseText);try{c=e.statusText}catch(l){c=""}o||!r.isLocal||r.crossDomain?1223===o&&(o=204):o=h.text?200:404}h&&f(o,c,h,e.getAllResponseHeaders())};r.async?4===e.readyState?n.setTimeout(u):e.onreadystatechange=dt[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}}),t.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return t.globalEval(n),n}}}),t.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),t.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||t("head")[0]||r.documentElement;return{send:function(t,f){i=r.createElement("script");i.async=!0;n.scriptCharset&&(i.charset=n.scriptCharset);i.src=n.url;i.onload=i.onreadystatechange=function(n,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||f(200,"success"))};u.insertBefore(i,u.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}}}),ur=[],gt=/(=)\?(?=&|$)|\?\?/,t.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ur.pop()||t.expando+"_"+nr++;return this[n]=!0,n}}),t.ajaxPrefilter("json jsonp",function(i,r,u){var f,e,o,s=i.jsonp!==!1&&(gt.test(i.url)?"url":"string"==typeof i.data&&0===(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&gt.test(i.data)&&"data");if(s||"jsonp"===i.dataTypes[0])return f=i.jsonpCallback=t.isFunction(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,s?i[s]=i[s].replace(gt,"$1"+f):i.jsonp!==!1&&(i.url+=(tr.test(i.url)?"&":"?")+i.jsonp+"="+f),i.converters["script json"]=function(){return o||t.error(f+" was not called"),o[0]},i.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?t(n).removeProp(f):n[f]=e;i[f]&&(i.jsonpCallback=r.jsonpCallback,ur.push(f));o&&t.isFunction(e)&&e(o[0]);o=e=void 0}),"script"}),t.parseHTML=function(n,i,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof i&&(u=i,i=!1);i=i||r;var f=wu.exec(n),e=!u&&[];return f?[i.createElement(f[1])]:(f=vr([n],i,e),e&&e.length&&t(e).remove(),t.merge([],f.childNodes))},fr=t.fn.load,t.fn.load=function(n,i,r){if("string"!=typeof n&&fr)return fr.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=t.trim(n.slice(e,n.length)),n=n.slice(0,e)),t.isFunction(i)?(r=i,i=void 0):i&&"object"==typeof i&&(o="POST"),f.length>0&&t.ajax({url:n,type:o||"GET",dataType:"html",data:i}).done(function(n){s=arguments;f.html(u?t("<div>").append(t.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},t.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,i){t.fn[i]=function(n){return this.on(i,n)}}),t.expr.filters.animated=function(n){return t.grep(t.timers,function(t){return n===t.elem}).length},t.offset={setOffset:function(n,i,r){var e,o,s,h,u,c,v,l=t.css(n,"position"),a=t(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=t.css(n,"top");c=t.css(n,"left");v=("absolute"===l||"fixed"===l)&&t.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);t.isFunction(i)&&(i=i.call(n,r,t.extend({},u)));null!=i.top&&(f.top=i.top-u.top+h);null!=i.left&&(f.left=i.left-u.left+o);"using"in i?i.using.call(n,f):a.css(f)}},t.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(i){t.offset.setOffset(this,n,i)});var i,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return i=e.documentElement,t.contains(i,r)?("undefined"!=typeof r.getBoundingClientRect&&(u=r.getBoundingClientRect()),f=cu(e),{top:u.top+(f.pageYOffset||i.scrollTop)-(i.clientTop||0),left:u.left+(f.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,i={top:0,left:0},u=this[0];return"fixed"===t.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),t.nodeName(n[0],"html")||(i=n.offset()),i.top+=t.css(n[0],"borderTopWidth",!0),i.left+=t.css(n[0],"borderLeftWidth",!0)),{top:r.top-i.top-t.css(u,"marginTop",!0),left:r.left-i.left-t.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&!t.nodeName(n,"html")&&"static"===t.css(n,"position");)n=n.offsetParent;return n||lf})}}),t.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,i){var r=/Y/.test(i);t.fn[n]=function(u){return v(this,function(n,u,f){var e=cu(n);return void 0===f?e?i in e?e[i]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?t(e).scrollLeft():f,r?f:t(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),t.each(["top","left"],function(n,r){t.cssHooks[r]=fi(i.pixelPosition,function(n,i){if(i)return i=y(n,r),pt.test(i)?t(n).position()[r]+"px":i})}),t.each({Height:"height",Width:"width"},function(n,i){t.each({padding:"inner"+n,content:i,"":"outer"+n},function(r,u){t.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return v(this,function(i,r,u){var f;return t.isWindow(i)?i.document.documentElement["client"+n]:9===i.nodeType?(f=i.documentElement,Math.max(i.body["scroll"+n],f["scroll"+n],i.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?t.css(i,r,o):t.style(i,r,u,o)},i,e?u:void 0,e,null)}})}),t.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),t.fn.size=function(){return this.length},t.fn.andSelf=t.fn.addBack,layui.define(function(n){layui.$=t;n("jquery",t)}),t});!function(n,t){"use strict";var u,e,c=n.layui&&layui.define,f={getPath:function(){var n=document.scripts,t=n[n.length-1],i=t.src;if(!t.getAttribute("merge"))return i.substring(0,i.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var r=t.currentStyle?t.currentStyle:n.getComputedStyle(t,null);return r[r.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,r,u){var s,e;if(i.path){s=document.getElementsByTagName("head")[0];e=document.createElement("link");"string"==typeof r&&(u=r);var h=(u||t).replace(/\.|\//g,""),o="layuicss-"+h,c=0;e.rel="stylesheet";e.href=i.path+t;e.id=o;document.getElementById(o)||s.appendChild(e);"function"==typeof r&&!function l(){return++c>80?n.console&&console.error("layer.css: Invalid"):void(1989===parseInt(f.getStyle(document.getElementById(o),"width"))?r():setTimeout(l,100))}()}}},i={v:"3.1.0",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(n.ActiveXObject||"ActiveXObject"in n)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:n.layer&&n.layer.v?1e5:0,path:f.getPath,config:function(n){return n=n||{},i.cache=f.config=u.extend({},f.config,n),i.path=f.config.path||i.path,"string"==typeof n.extend&&(n.extend=[n.extend]),f.config.path&&i.ready(),n.extend?(c?layui.addcss("modules/layer/"+n.extend):f.link("theme/"+n.extend),this):this},ready:function(n){var t="layer",r=(c?"modules/layer/":"theme/")+"default/layer.css?v="+i.v+"";return c?layui.addcss(r,n,t):f.link(r,n,t),this},alert:function(n,t,r){var f="function"==typeof t;return f&&(r=t),i.open(u.extend({content:n,yes:r},f?{}:t))},confirm:function(n,t,r,e){var o="function"==typeof t;return o&&(e=r,r=t),i.open(u.extend({content:n,btn:f.btn,yes:r,btn2:e},o?{}:t))},msg:function(n,e,o){var c="function"==typeof e,s=f.config.skin,h=(s?s+" "+s+"-msg":"")||"layui-layer-msg",l=r.anim.length-1;return c&&(o=e),i.open(u.extend({content:n,time:3e3,shade:!1,skin:h,title:!1,closeBtn:!1,btn:!1,resize:!1,end:o},c&&!f.config.skin?{skin:h+" layui-layer-hui",anim:l}:function(){return e=e||{},(e.icon===-1||e.icon===t&&!f.config.skin)&&(e.skin=h+" "+(e.skin||"layui-layer-hui")),e}()))},load:function(n,t){return i.open(u.extend({type:3,icon:n||0,resize:!1,shade:.01},t))},tips:function(n,t,r){return i.open(u.extend({type:4,content:[n,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},r))}},o=function(n){var t=this;t.index=++i.index;t.config=u.extend({},t.config,f.config,n);document.body?t.creat():setTimeout(function(){t.creat()},30)},r,s,h;o.pt=o.prototype;r=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];r.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"];o.pt.config={type:0,shade:.3,fixed:!0,move:r[1],title:"&#x4FE1;&#x606F;",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2};o.pt.vessel=function(n,t){var o=this,e=o.index,i=o.config,s=i.zIndex+e,h="object"==typeof i.title,l=i.maxmin&&(1===i.type||2===i.type),c=i.title?'<div class="layui-layer-title" style="'+(h?i.title[1]:"")+'">'+(h?i.title[0]:i.title)+"<\/div>":"";return i.zIndex=s,t([i.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+e+'" times="'+e+'" style="'+("z-index:"+(s-1)+"; ")+'"><\/div>':"",'<div class="'+r[0]+(" layui-layer-"+f.type[i.type])+(0!=i.type&&2!=i.type||i.shade?"":" layui-layer-border")+" "+(i.skin||"")+'" id="'+r[0]+e+'" type="'+f.type[i.type]+'" times="'+e+'" showtime="'+i.time+'" conType="'+(n?"object":"string")+'" style="z-index: '+s+"; width:"+i.area[0]+";height:"+i.area[1]+(i.fixed?"":";position:absolute;")+'">'+(n&&2!=i.type?"":c)+'<div id="'+(i.id||"")+'" class="layui-layer-content'+(0==i.type&&i.icon!==-1?" layui-layer-padding":"")+(3==i.type?" layui-layer-loading"+i.icon:"")+'">'+(0==i.type&&i.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+i.icon+'"><\/i>':"")+(1==i.type&&n?"":i.content||"")+'<\/div><span class="layui-layer-setwin">'+function(){var n=l?'<a class="layui-layer-min" href="javascript:;"><cite><\/cite><\/a><a class="layui-layer-ico layui-layer-max" href="javascript:;"><\/a>':"";return i.closeBtn&&(n+='<a class="layui-layer-ico '+r[7]+" "+r[7]+(i.title?i.closeBtn:4==i.type?"1":"2")+'" href="javascript:;"><\/a>'),n}()+"<\/span>"+(i.btn?function(){var t="",n,u;for("string"==typeof i.btn&&(i.btn=[i.btn]),n=0,u=i.btn.length;n<u;n++)t+='<a class="'+r[6]+n+'">'+i.btn[n]+"<\/a>";return'<div class="'+r[6]+" layui-layer-btn-"+(i.btnAlign||"")+'">'+t+"<\/div>"}():"")+(i.resize?'<span class="layui-layer-resize"><\/span>':"")+"<\/div>"],c,u('<div class="layui-layer-move"><\/div>')),o};o.pt.creat=function(){var t=this,n=t.config,o=t.index,s=n.content,h="object"==typeof s,c=u("body"),l;if(!n.id||!u("#"+n.id)[0]){switch("string"==typeof n.area&&(n.area="auto"===n.area?["",""]:[n.area,""]),n.shift&&(n.anim=n.shift),6==i.ie&&(n.fixed=!1),n.type){case 0:n.btn="btn"in n?n.btn:f.btn[0];i.closeAll("dialog");break;case 2:s=n.content=h?n.content:[n.content||"http://layer.layui.com","auto"];n.content='<iframe scrolling="'+(n.content[1]||"auto")+'" allowtransparency="true" id="'+r[4]+o+'" name="'+r[4]+o+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+n.content[0]+'"><\/iframe>';break;case 3:delete n.title;delete n.closeBtn;n.icon===-1&&0===n.icon;i.closeAll("loading");break;case 4:h||(n.content=[n.content,"body"]);n.follow=n.content[1];n.content=n.content[0]+'<i class="layui-layer-TipsG"><\/i>';delete n.title;n.tips="object"==typeof n.tips?n.tips:[n.tips,!0];n.tipsMore||i.closeAll("tips")}if(t.vessel(h,function(i,e,l){c.append(i[0]);h?function(){2==n.type||4==n.type?function(){u("body").append(i[1])}():function(){s.parents("."+r[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(i[1]),u("#"+r[0]+o).find("."+r[5]).before(e))}()}():c.append(i[1]);u(".layui-layer-move")[0]||c.append(f.moveElem=l);t.layero=u("#"+r[0]+o);n.scrollbar||r.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),u("#layui-layer-shade"+t.index).css({"background-color":n.shade[1]||"#000",opacity:n.shade[0]||n.shade}),2==n.type&&6==i.ie&&t.layero.find("iframe").attr("src",s[0]),4==n.type?t.tips():t.offset(),n.fixed&&e.on("resize",function(){t.offset();(/^\d+%$/.test(n.area[0])||/^\d+%$/.test(n.area[1]))&&t.auto(o);4==n.type&&t.tips()}),n.time<=0||setTimeout(function(){i.close(t.index)},n.time),t.move().callback(),r.anim[n.anim]){l="layer-anim "+r.anim[n.anim];t.layero.addClass(l).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){u(this).removeClass(l)})}n.isOutAnim&&t.layero.data("isOutAnim",!0)}};o.pt.auto=function(n){var h=this,t=h.config,f=u("#"+r[0]+n);""===t.area[0]&&t.maxWidth>0&&(i.ie&&i.ie<8&&t.btn&&f.width(f.innerWidth()),f.outerWidth()>t.maxWidth&&f.width(t.maxWidth));var o=[f.innerWidth(),f.innerHeight()],c=f.find(r[1]).outerHeight()||0,l=f.find("."+r[6]).outerHeight()||0,s=function(n){n=f.find(n);n.height(o[1]-c-l-2*(0|parseFloat(n.css("padding-top"))))};switch(t.type){case 2:s("iframe");break;default:""===t.area[1]?t.maxHeight>0&&f.outerHeight()>t.maxHeight?(o[1]=t.maxHeight,s("."+r[5])):t.fixed&&o[1]>=e.height()&&(o[1]=e.height(),s("."+r[5])):s("."+r[5])}return h};o.pt.offset=function(){var n=this,t=n.config,u=n.layero,i=[u.outerWidth(),u.outerHeight()],f="object"==typeof t.offset;n.offsetTop=(e.height()-i[1])/2;n.offsetLeft=(e.width()-i[0])/2;f?(n.offsetTop=t.offset[0],n.offsetLeft=t.offset[1]||n.offsetLeft):"auto"!==t.offset&&("t"===t.offset?n.offsetTop=0:"r"===t.offset?n.offsetLeft=e.width()-i[0]:"b"===t.offset?n.offsetTop=e.height()-i[1]:"l"===t.offset?n.offsetLeft=0:"lt"===t.offset?(n.offsetTop=0,n.offsetLeft=0):"lb"===t.offset?(n.offsetTop=e.height()-i[1],n.offsetLeft=0):"rt"===t.offset?(n.offsetTop=0,n.offsetLeft=e.width()-i[0]):"rb"===t.offset?(n.offsetTop=e.height()-i[1],n.offsetLeft=e.width()-i[0]):n.offsetTop=t.offset);t.fixed||(n.offsetTop=/%$/.test(n.offsetTop)?e.height()*parseFloat(n.offsetTop)/100:parseFloat(n.offsetTop),n.offsetLeft=/%$/.test(n.offsetLeft)?e.width()*parseFloat(n.offsetLeft)/100:parseFloat(n.offsetLeft),n.offsetTop+=e.scrollTop(),n.offsetLeft+=e.scrollLeft());u.attr("minLeft")&&(n.offsetTop=e.height()-(u.find(r[1]).outerHeight()||0),n.offsetLeft=u.css("left"));u.css({top:n.offsetTop,left:n.offsetLeft})};o.pt.tips=function(){var c=this,t=c.config,s=c.layero,i=[s.outerWidth(),s.outerHeight()],f=u(t.follow);f[0]||(f=u("body"));var n={width:f.outerWidth(),height:f.outerHeight(),top:f.offset().top,left:f.offset().left},o=s.find(".layui-layer-TipsG"),h=t.tips[0];t.tips[1]||o.remove();n.autoLeft=function(){n.left+i[0]-e.width()>0?(n.tipLeft=n.left+n.width-i[0],o.css({right:12,left:"auto"})):n.tipLeft=n.left};n.where=[function(){n.autoLeft();n.tipTop=n.top-i[1]-10;o.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){n.tipLeft=n.left+n.width+10;n.tipTop=n.top;o.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){n.autoLeft();n.tipTop=n.top+n.height+10;o.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){n.tipLeft=n.left-i[0]-10;n.tipTop=n.top;o.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}];n.where[h-1]();1===h?n.top-(e.scrollTop()+i[1]+16)<0&&n.where[2]():2===h?e.width()-(n.left+n.width+i[0]+16)>0||n.where[3]():3===h?n.top-e.scrollTop()+n.height+i[1]+16-e.height()>0&&n.where[0]():4===h&&i[0]+16-n.left>0&&n.where[1]();s.find("."+r[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""});s.css({left:n.tipLeft-(t.fixed?e.scrollLeft():0),top:n.tipTop-(t.fixed?e.scrollTop():0)})};o.pt.move=function(){var o=this,r=o.config,h=u(document),t=o.layero,s=t.find(r.move),c=t.find(".layui-layer-resize"),n={};return r.move&&s.css("cursor","move"),s.on("mousedown",function(i){i.preventDefault();r.move&&(n.moveStart=!0,n.offset=[i.clientX-parseFloat(t.css("left")),i.clientY-parseFloat(t.css("top"))],f.moveElem.css("cursor","move").show())}),c.on("mousedown",function(i){i.preventDefault();n.resizeStart=!0;n.offset=[i.clientX,i.clientY];n.area=[t.outerWidth(),t.outerHeight()];f.moveElem.css("cursor","se-resize").show()}),h.on("mousemove",function(u){var h,c,f,s;if(n.moveStart){var f=u.clientX-n.offset[0],s=u.clientY-n.offset[1],l="fixed"===t.css("position");(u.preventDefault(),n.stX=l?0:e.scrollLeft(),n.stY=l?0:e.scrollTop(),r.moveOut)||(h=e.width()-t.outerWidth()+n.stX,c=e.height()-t.outerHeight()+n.stY,f<n.stX&&(f=n.stX),f>h&&(f=h),s<n.stY&&(s=n.stY),s>c&&(s=c));t.css({left:f,top:s})}r.resize&&n.resizeStart&&(f=u.clientX-n.offset[0],s=u.clientY-n.offset[1],u.preventDefault(),i.style(o.index,{width:n.area[0]+f,height:n.area[1]+s}),n.isResize=!0,r.resizing&&r.resizing(t))}).on("mouseup",function(){n.moveStart&&(delete n.moveStart,f.moveElem.hide(),r.moveEnd&&r.moveEnd(t));n.resizeStart&&(delete n.resizeStart,f.moveElem.hide())}),o};o.pt.callback=function(){function o(){var r=n.cancel&&n.cancel(t.index,e);r===!1||i.close(t.index)}var t=this,e=t.layero,n=t.config;t.openLayer();n.success&&(2==n.type?e.find("iframe").on("load",function(){n.success(e,t.index)}):n.success(e,t.index));6==i.ie&&t.IE6(e);e.find("."+r[6]).children("a").on("click",function(){var r=u(this).index(),f;0===r?n.yes?n.yes(t.index,e):n.btn1?n.btn1(t.index,e):i.close(t.index):(f=n["btn"+(r+1)]&&n["btn"+(r+1)](t.index,e),f===!1||i.close(t.index))});e.find("."+r[7]).on("click",o);n.shadeClose&&u("#layui-layer-shade"+t.index).on("click",function(){i.close(t.index)});e.find(".layui-layer-min").on("click",function(){var r=n.min&&n.min(e);r===!1||i.min(t.index,n)});e.find(".layui-layer-max").on("click",function(){u(this).hasClass("layui-layer-maxmin")?(i.restore(t.index),n.restore&&n.restore(e)):(i.full(t.index,n),setTimeout(function(){n.full&&n.full(e)},100))});n.end&&(f.end[t.index]=n.end)};f.reselect=function(){u.each(u("select"),function(){var n=u(this);n.parents("."+r[0])[0]||1==n.attr("layer")&&u("."+r[0]).length<1&&n.removeAttr("layer").show();n=null})};o.pt.IE6=function(){u("select").each(function(){var n=u(this);n.parents("."+r[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide();n=null})};o.pt.openLayer=function(){var n=this;i.zIndex=n.config.zIndex;i.setTop=function(n){var t=function(){i.zIndex++;n.css("z-index",i.zIndex+1)};return i.zIndex=parseInt(n[0].style.zIndex),n.on("mousedown",t),i.zIndex}};f.record=function(n){var t=[n.width(),n.height(),n.position().top,n.position().left+parseFloat(n.css("margin-left"))];n.find(".layui-layer-max").addClass("layui-layer-maxmin");n.attr({area:t})};f.rescollbar=function(n){r.html.attr("layer-full")==n&&(r.html[0].style.removeProperty?r.html[0].style.removeProperty("overflow"):r.html[0].style.removeAttribute("overflow"),r.html.removeAttr("layer-full"))};n.layer=i;i.getChildFrame=function(n,t){return t=t||u("."+r[4]).attr("times"),u("#"+r[0]+t).find("iframe").contents().find(n)};i.getFrameIndex=function(n){return u("#"+n).parents("."+r[4]).attr("times")};i.iframeAuto=function(n){if(n){var f=i.getChildFrame("html",n).outerHeight(),t=u("#"+r[0]+n),e=t.find(r[1]).outerHeight()||0,o=t.find("."+r[6]).outerHeight()||0;t.css({height:f+e+o});t.find("iframe").css({height:f})}};i.iframeSrc=function(n,t){u("#"+r[0]+n).find("iframe").attr("src",t)};i.style=function(n,t,i){var e=u("#"+r[0]+n),h=e.find(".layui-layer-content"),c=e.attr("type"),s=e.find(r[1]).outerHeight()||0,o=e.find("."+r[6]).outerHeight()||0;e.attr("minLeft");c!==f.type[3]&&c!==f.type[4]&&(i||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-s-o<=64&&(t.height=64+s+o)),e.css(t),o=e.find("."+r[6]).outerHeight(),c===f.type[2]?e.find("iframe").css({height:parseFloat(t.height)-s-o}):h.css({height:parseFloat(t.height)-s-o-parseFloat(h.css("padding-top"))-parseFloat(h.css("padding-bottom"))}))};i.min=function(n){var t=u("#"+r[0]+n),s=t.find(r[1]).outerHeight()||0,o=t.attr("minLeft")||181*f.minIndex+"px",h=t.css("position");f.record(t);f.minLeft[0]&&(o=f.minLeft[0],f.minLeft.shift());t.attr("position",h);i.style(n,{width:180,height:s,left:o,top:e.height()-s,position:"fixed",overflow:"hidden"},!0);t.find(".layui-layer-min").hide();"page"===t.attr("type")&&t.find(r[4]).hide();f.rescollbar(n);t.attr("minLeft")||f.minIndex++;t.attr("minLeft",o)};i.restore=function(n){var t=u("#"+r[0]+n),e=t.attr("area").split(",");t.attr("type");i.style(n,{width:parseFloat(e[0]),height:parseFloat(e[1]),top:parseFloat(e[2]),left:parseFloat(e[3]),position:t.attr("position"),overflow:"visible"},!0);t.find(".layui-layer-max").removeClass("layui-layer-maxmin");t.find(".layui-layer-min").show();"page"===t.attr("type")&&t.find(r[4]).show();f.rescollbar(n)};i.full=function(n){var o,t=u("#"+r[0]+n);f.record(t);r.html.attr("layer-full")||r.html.css("overflow","hidden").attr("layer-full",n);clearTimeout(o);o=setTimeout(function(){var r="fixed"===t.css("position");i.style(n,{top:r?0:e.scrollTop(),left:r?0:e.scrollLeft(),width:e.width(),height:e.height()},!0);t.find(".layui-layer-min").hide()},100)};i.title=function(n,t){var f=u("#"+r[0]+(t||i.index)).find(r[1]);f.html(n)};i.close=function(n){var t=u("#"+r[0]+n),s=t.attr("type"),e,o;t[0]&&(e="layui-layer-wrap",o=function(){var i,h,o;if(s===f.type[1]&&"object"===t.attr("conType")){for(t.children(":not(."+r[5]+")").remove(),i=t.find("."+e),h=0;h<2;h++)i.unwrap();i.css("display",i.data("display")).removeClass(e)}else{if(s===f.type[2])try{o=u("#"+r[4]+n)[0];o.contentWindow.document.write("");o.contentWindow.close();t.find("."+r[5])[0].removeChild(o)}catch(c){}t[0].innerHTML="";t.remove()}"function"==typeof f.end[n]&&f.end[n]();delete f.end[n]},t.data("isOutAnim")&&t.addClass("layer-anim layer-anim-close"),u("#layui-layer-moves, #layui-layer-shade"+n).remove(),6==i.ie&&f.reselect(),f.rescollbar(n),t.attr("minLeft")&&(f.minIndex--,f.minLeft.push(t.attr("minLeft"))),i.ie&&i.ie<10||!t.data("isOutAnim")?o():setTimeout(function(){o()},200))};i.closeAll=function(n){u.each(u("."+r[0]),function(){var t=u(this),r=n?t.attr("type")===n:1;r&&i.close(t.attr("times"));r=null})};s=i.cache||{};h=function(n){return s.skin?" "+s.skin+" "+s.skin+"-"+n:""};i.prompt=function(n,t){var s="",f,r,c,o;return(n=n||{},"function"==typeof n&&(t=n),n.area)&&(f=n.area,s='style="width: '+f[0]+"; height: "+f[1]+';"',delete n.area),c=2==n.formType?'<textarea class="layui-layer-input"'+s+">"+(n.value||"")+"<\/textarea>":function(){return'<input type="'+(1==n.formType?"password":"text")+'" class="layui-layer-input" value="'+(n.value||"")+'">'}(),o=n.success,delete n.success,i.open(u.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:c,skin:"layui-layer-prompt"+h("prompt"),maxWidth:e.width(),success:function(n){r=n.find(".layui-layer-input");r.focus();"function"==typeof o&&o(n)},resize:!1,yes:function(u){var f=r.val();""===f?r.focus():f.length>(n.maxlength||500)?i.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(n.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",r,{tips:1}):t&&t(f,u,r)}},n))};i.tab=function(n){n=n||{};var t=n.tab||{},r="layui-this",f=n.success;return delete n.success,i.open(u.extend({type:1,skin:"layui-layer-tab"+h("tab"),resize:!1,title:function(){var u=t.length,n=1,i="";if(u>0)for(i='<span class="'+r+'">'+t[0].title+"<\/span>";n<u;n++)i+="<span>"+t[n].title+"<\/span>";return i}(),content:'<ul class="layui-layer-tabmain">'+function(){var u=t.length,n=1,i="";if(u>0)for(i='<li class="layui-layer-tabli '+r+'">'+(t[0].content||"no content")+"<\/li>";n<u;n++)i+='<li class="layui-layer-tabli">'+(t[n].content||"no content")+"<\/li>";return i}()+"<\/ul>",success:function(t){var i=t.find(".layui-layer-title").children(),e=t.find(".layui-layer-tabmain").children();i.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var i=u(this),f=i.index();i.addClass(r).siblings().removeClass(r);e.eq(f).show().siblings().hide();"function"==typeof n.change&&n.change(f)});"function"==typeof f&&f(t)}},n))};i.photos=function(t,r,f){function p(n,t,i){var r=new Image;return r.src=n,r.complete?t(r):(r.onload=function(){r.onload=null;t(r)},void(r.onerror=function(n){r.onerror=null;i(n)}))}var e={},l,a,v;if(t=t||{},t.photos){var y=t.photos.constructor===Object,c=y?t.photos:{},o=c.data||[],s=c.start||0;if(e.imgIndex=(0|s)+1,t.img=t.img||"img",l=t.success,delete t.success,y){if(0===o.length)return i.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;")}else{if(a=u(t.photos),v=function(){o=[];a.find(t.img).each(function(n){var t=u(this);t.attr("layer-index",n);o.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})},v(),0===o.length)return;if(r||a.on("click",t.img,function(){var n=u(this),r=n.attr("layer-index");i.photos(u.extend(t,{photos:{start:r,data:o,tab:t.tab},full:t.full}),!0);v()}),!r)return}e.imgprev=function(n){e.imgIndex--;e.imgIndex<1&&(e.imgIndex=o.length);e.tabimg(n)};e.imgnext=function(n,t){e.imgIndex++;e.imgIndex>o.length&&(e.imgIndex=1,t)||e.tabimg(n)};e.keyup=function(n){if(!e.end){var t=n.keyCode;n.preventDefault();37===t?e.imgprev(!0):39===t?e.imgnext(!0):27===t&&i.close(e.index)}};e.tabimg=function(n){if(!(o.length<=1))return c.start=e.imgIndex-1,i.close(e.index),i.photos(t,!0,n)};e.event=function(){e.bigimg.hover(function(){e.imgsee.show()},function(){e.imgsee.hide()});e.bigimg.find(".layui-layer-imgprev").on("click",function(n){n.preventDefault();e.imgprev()});e.bigimg.find(".layui-layer-imgnext").on("click",function(n){n.preventDefault();e.imgnext()});u(document).on("keyup",e.keyup)};e.loadi=i.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1});p(o[s].src,function(r){i.close(e.loadi);e.index=i.open(u.extend({type:1,id:"layui-layer-photos",area:function(){var i=[r.width,r.height],e=[u(n).width()-100,u(n).height()-100],f;return!t.full&&(i[0]>e[0]||i[1]>e[1])&&(f=[i[0]/e[0],i[1]/e[1]],f[0]>f[1]?(i[0]=i[0]/f[0],i[1]=i[1]/f[0]):f[0]<f[1]&&(i[0]=i[0]/f[1],i[1]=i[1]/f[1])),[i[0]+"px",i[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+h("photos"),content:'<div class="layui-layer-phimg"><img src="'+o[s].src+'" alt="'+(o[s].alt||"")+'" layer-pid="'+o[s].pid+'"><div class="layui-layer-imgsee">'+(o.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"><\/a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"><\/a><\/span>':"")+'<div class="layui-layer-imgbar" style="display:'+(f?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(o[s].alt||"")+"<\/a><em>"+e.imgIndex+"/"+o.length+"<\/em><\/span><\/div><\/div><\/div>",success:function(n){e.bigimg=n.find(".layui-layer-phimg");e.imgsee=n.find(".layui-layer-imguide,.layui-layer-imgbar");e.event(n);t.tab&&t.tab(o[s],n);"function"==typeof l&&l(n)},end:function(){e.end=!0;u(document).off("keyup",e.keyup)}},t))},function(){i.close(e.loadi);i.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3e4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){o.length>1&&e.imgnext(!0,!0)}})})}};f.run=function(t){u=t;e=u(n);r.html=u("html");i.open=function(n){var t=new o(n);return t.index}};n.layui&&layui.define?(i.ready(),layui.define("jquery",function(t){i.path=layui.cache.dir;f.run(layui.$);n.layer=i;t("layer",i)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return f.run(n.jQuery),i}):function(){f.run(n.jQuery);i.ready()}()}(window);layui.define("jquery",function(n){"use strict";var t=layui.$,l=(layui.hint(),layui.device()),e="element",r="layui-this",f="layui-show",u=function(){this.config={}},a,v,b;u.prototype.set=function(n){var i=this;return t.extend(!0,i.config,n),i};u.prototype.on=function(n,t){return layui.onevent.call(this,e,n,t)};u.prototype.tabAdd=function(n,r){var u=t(".layui-tab[lay-filter="+n+"]"),f=u.children(".layui-tab-title"),e=f.children(".layui-tab-bar"),s=u.children(".layui-tab-content"),o='<li lay-id="'+(r.id||"")+'">'+(r.title||"unnaming")+"<\/li>";return e[0]?e.before(o):f.append(o),s.append('<div class="layui-tab-item">'+(r.content||"")+"<\/div>"),i.hideTabMore(!0),i.tabAuto(),this};u.prototype.tabDelete=function(n,r){var u=t(".layui-tab[lay-filter="+n+"]"),f=u.children(".layui-tab-title"),e=f.find('>li[lay-id="'+r+'"]');return i.tabDelete(null,e),this};u.prototype.tabChange=function(n,r){var u=t(".layui-tab[lay-filter="+n+"]"),f=u.children(".layui-tab-title"),e=f.find('>li[lay-id="'+r+'"]');return i.tabClick(null,null,e),this};u.prototype.progress=function(n,i){var r="layui-progress",f=t("."+r+"[lay-filter="+n+"]"),u=f.find("."+r+"-bar"),e=u.find("."+r+"-text");return u.css("width",i),e.text(i),this};var h=".layui-nav",y="layui-nav-item",p="layui-nav-bar",c="layui-nav-tree",s="layui-nav-child",o="layui-nav-more",w="layui-anim layui-anim-upbit",i={tabClick:function(n,i,u){var o=u||t(this),i=i||o.parent().children("li").index(o),s=o.parents(".layui-tab").eq(0),c=s.children(".layui-tab-content").children(".layui-tab-item"),h=o.find("a"),l=s.attr("lay-filter");"javascript:;"!==h.attr("href")&&"_blank"===h.attr("target")||(o.addClass(r).siblings().removeClass(r),c.eq(i).addClass(f).siblings().removeClass(f));layui.event.call(this,e,"tab("+l+")",{elem:s,index:i})},tabDelete:function(n,u){var f=u||t(this).parent(),e=f.index(),o=f.parents(".layui-tab").eq(0),s=o.children(".layui-tab-content").children(".layui-tab-item");f.hasClass(r)&&(f.next()[0]?i.tabClick.call(f.next()[0],null,e+1):f.prev()[0]&&i.tabClick.call(f.prev()[0],null,e-1));f.remove();s.eq(e).remove();setTimeout(function(){i.tabAuto()},50)},tabAuto:function(){var u="layui-tab-more",n="layui-tab-bar",r="layui-tab-close",f=this;t(".layui-tab").each(function(){var o=t(this),e=o.children(".layui-tab-title"),s=(o.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),h=t('<span class="layui-unselect layui-tab-bar" '+s+"><i "+s+' class="layui-icon">&#xe61a;<\/i><\/span>');if(f===window&&8!=l.ie&&i.hideTabMore(!0),o.attr("lay-allowClose")&&e.find("li").each(function(){var u=t(this),n;u.find("."+r)[0]||(n=t('<i class="layui-icon layui-unselect '+r+'">&#x1006;<\/i>'),n.on("click",i.tabDelete),u.append(n))}),e.prop("scrollWidth")>e.outerWidth()+1){if(e.find("."+n)[0])return;e.append(h);o.attr("overflow","");h.on("click",function(){e[this.title?"removeClass":"addClass"](u);this.title=this.title?"":"收缩"})}else e.find("."+n).remove(),o.removeAttr("overflow")})},hideTabMore:function(n){var i=t(".layui-tab-title");n!==!0&&"tabmore"===t(n.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var n=t(this),i=n.parents(h),f=i.attr("lay-filter"),u=n.find("a");n.find("."+s)[0]||("javascript:;"!==u.attr("href")&&"_blank"===u.attr("target")||(i.find("."+r).removeClass(r),n.addClass(r)),layui.event.call(this,e,"nav("+f+")",n))},clickChild:function(){var n=t(this),i=n.parents(h),u=i.attr("lay-filter");i.find("."+r).removeClass(r);n.addClass(r);layui.event.call(this,e,"nav("+u+")",n)},showChild:function(){var n=t(this),r=n.parents(h),u=n.parent(),i=n.siblings("."+s);r.hasClass(c)&&(i.removeClass(w),u["none"===i.css("display")?"addClass":"removeClass"](y+"ed"))},collapse:function(){var n=t(this),s=n.find(".layui-colla-icon"),i=n.siblings(".layui-colla-content"),r=n.parents(".layui-collapse").eq(0),h=r.attr("lay-filter"),u="none"===i.css("display"),o;"string"==typeof r.attr("lay-accordion")&&(o=r.children(".layui-colla-item").children("."+f),o.siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"),o.removeClass(f));i[u?"addClass":"removeClass"](f);s.html(u?"&#xe61a;":"&#xe602;");layui.event.call(this,e,"collapse("+h+")",{title:n,content:i,show:u})}};u.prototype.init=function(){var n={tab:function(){i.tabAuto.call({})},nav:function(){var r=200,u={},n={},e={},a=function(i,h,a){var v=t(this),y=v.find("."+s);h.hasClass(c)?i.css({top:v.position().top,height:v.children("a").height(),opacity:1}):(y.addClass(w),i.css({left:v.position().left+parseFloat(v.css("marginLeft")),top:v.position().top+v.height()-5}),u[a]=setTimeout(function(){i.css({width:v.width(),opacity:1})},l.ie&&l.ie<10?0:r),clearTimeout(e[a]),"block"===y.css("display")&&clearTimeout(n[a]),n[a]=setTimeout(function(){y.addClass(f);v.find("."+o).addClass(o+"d")},300))};t(h).each(function(h){var l=t(this),v=t('<span class="'+p+'"><\/span>'),w=l.find("."+y);l.find("."+p)[0]||(l.append(v),w.on("mouseenter",function(){a.call(this,v,l,h)}).on("mouseleave",function(){l.hasClass(c)||(clearTimeout(n[h]),n[h]=setTimeout(function(){l.find("."+s).removeClass(f);l.find("."+o).removeClass(o+"d")},300))}),l.on("mouseleave",function(){clearTimeout(u[h]);e[h]=setTimeout(function(){l.hasClass(c)?v.css({height:0,top:v.position().top+v.height()/2,opacity:0}):v.css({width:0,left:v.position().left+v.width()/2,opacity:0})},r)}));w.each(function(){var n=t(this),r=n.find("."+s),u;r[0]&&!n.find("."+o)[0]&&(u=n.children("a"),u.append('<span class="'+o+'"><\/span>'));n.off("click",i.clickThis).on("click",i.clickThis);n.children("a").off("click",i.showChild).on("click",i.showChild);r.children("dd").off("click",i.clickChild).on("click",i.clickChild)})})},breadcrumb:function(){t(".layui-breadcrumb").each(function(){var n=t(this),r=n.attr("lay-separator")||">",i=n.find("a");i.find(".layui-box")[0]||(i.each(function(n){n!==i.length-1&&t(this).append('<span class="layui-box">'+r+"<\/span>")}),n.css("visibility","visible"))})},progress:function(){var n="layui-progress";t("."+n).each(function(){var r=t(this),i=r.find(".layui-progress-bar"),u=i.attr("lay-percent");i.css("width",u);r.attr("lay-showPercent")&&setTimeout(function(){var t=Math.round(i.width()/r.width()*100);t>100&&(t=100);i.html('<span class="'+n+'-text">'+t+"%<\/span>")},350)})},collapse:function(){t(".layui-collapse").each(function(){var n=t(this).find(".layui-colla-item");n.each(function(){var r=t(this),n=r.find(".layui-colla-title"),u=r.find(".layui-colla-content"),f="none"===u.css("display");n.find(".layui-colla-icon").remove();n.append('<i class="layui-icon layui-colla-icon">'+(f?"&#xe602;":"&#xe61a;")+"<\/i>");n.off("click",i.collapse).on("click",i.collapse)})})}};return layui.each(n,function(n,t){t()})};a=new u;v=t(document);a.init();b=".layui-tab-title li";v.on("click",b,i.tabClick);v.on("click",i.hideTabMore);t(window).on("resize",i.tabAuto);n(e,a)});layui.define("layer",function(n){"use strict";var t=layui.$,c=layui.layer,l=layui.hint(),r=layui.device(),f={config:{},set:function(n){var i=this;return i.config=t.extend({},i.config,n),i},on:function(n,t){return layui.onevent.call(this,o,n,t)}},a=function(){var n=this;return{upload:function(t){n.upload.call(n,t)},config:n.config}},o="upload",s="layui-upload-file",h="layui-upload-form",u="layui-upload-iframe",e="layui-upload-choose",i=function(n){var i=this;i.config=t.extend({},i.config,f.config,n);i.render()};i.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,multiple:!1};i.prototype.render=function(n){var i=this,n=i.config;n.elem=t(n.elem);n.bindAction=t(n.bindAction);i.file();i.events()};i.prototype.file=function(){var i=this,n=i.config,f=i.elemFile=t(['<input class="'+s+'" type="file" name="'+n.field+'"',n.multiple?" multiple":"",">"].join("")),u=n.elem.next();(u.hasClass(s)||u.hasClass(h))&&u.remove();r.ie&&r.ie<10&&n.elem.wrap('<div class="layui-upload-wrap"><\/div>');i.isFile()?(i.elemFile=n.elem,n.field=n.elem[0].name):n.elem.after(f);r.ie&&r.ie<10&&i.initIE()};i.prototype.initIE=function(){var i=this,n=i.config,r=t('<iframe id="'+u+'" class="'+u+'" name="'+u+'" frameborder="0"><\/iframe>'),f=t(['<form target="'+u+'" class="'+h+'" method="'+n.method,'" key="set-mine" enctype="multipart/form-data" action="'+n.url+'">',"<\/form>"].join(""));t("#"+u)[0]||t("body").append(r);n.elem.next().hasClass(u)||(i.elemFile.wrap(f),n.elem.next("."+u).append(function(){var t=[];return layui.each(n.data,function(n,i){t.push('<input type="hidden" name="'+n+'" value="'+i+'">')}),t.join("")}()))};i.prototype.msg=function(n){return c.msg(n,{icon:2,shift:6})};i.prototype.isFile=function(){var n=this.config.elem[0];if(n)return"input"===n.tagName.toLocaleLowerCase()&&"file"===n.type};i.prototype.preview=function(n){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var r=new FileReader;r.readAsDataURL(i);r.onload=function(){n&&n(t,i,this.result)}})};i.prototype.upload=function(n,f){var v,o=this,s=o.config,h=o.elemFile[0],y=function(){layui.each(n||o.files||o.chooseFiles||h.files,function(n,i){var r=new FormData;r.append(s.field,i);layui.each(s.data,function(n,t){r.append(n,t)});t.ajax({url:s.url,type:s.method,data:r,contentType:!1,processData:!1,dataType:"json",success:function(t){p(n,t)},error:function(){o.msg("请求上传接口出现异常");w(n)}})})},k=function(){var n=t("#"+u);o.elemFile.parent().submit();clearInterval(i.timer);i.timer=setInterval(function(){var t,r=n.contents().find("body");try{t=r.text()}catch(u){o.msg("获取上传后的响应信息出现异常");clearInterval(i.timer);w()}t&&(clearInterval(i.timer),r.html(""),p(0,t))},30)},p=function(n,t){if(o.elemFile.next("."+e).remove(),h.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},o.msg("请对上传接口返回有效JSON")}"function"==typeof s.done&&s.done(t,n||0,function(n){o.upload(n)})},w=function(n){s.auto&&(h.value="");"function"==typeof s.error&&s.error(n||0,function(n){o.upload(n)})},l=s.exts,c=function(){var t=[];return layui.each(n||o.chooseFiles,function(n,i){t.push(i.name)}),t}(),b={preview:function(n){o.preview(n)},upload:function(n,t){var i={};i[n]=t;o.upload(i)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(n,t){o.files[n]=t}),o.files}},d=function(){return"choose"===f?s.choose&&s.choose(b):(s.before&&s.before(b),r.ie?r.ie>9?y():k():void y())},a;switch(c=0===c.length?h.value.match(/[^\/\\]+\..+/g)||[]||"":c,s.accept){case"file":if(l&&!RegExp("\\w\\.("+l+")$","i").test(escape(c)))return o.msg("选择的文件中包含不支持的格式"),h.value="";break;case"video":if(!RegExp("\\w\\.("+(l||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(c)))return o.msg("选择的视频中包含不支持的格式"),h.value="";break;case"audio":if(!RegExp("\\w\\.("+(l||"mp3|wav|mid")+")$","i").test(escape(c)))return o.msg("选择的音频中包含不支持的格式"),h.value="";break;default:if(layui.each(c,function(n,t){RegExp("\\w\\.("+(l||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(v=!0)}),v)return o.msg("选择的图片中包含不支持的格式"),h.value=""}if(s.size>0&&!(r.ie&&r.ie<10)&&(layui.each(o.chooseFiles,function(n,t){if(t.size>1024*s.size){var i=s.size/1024;i=i>=1?Math.floor(i)+(i%1>0?i.toFixed(1):0)+"MB":s.size+"KB";h.value="";a=i}}),a))return o.msg("文件不能超过"+a);d()};i.prototype.events=function(){var n=this,i=n.config,u=function(t){n.chooseFiles={};layui.each(t,function(t,i){var r=(new Date).getTime();n.chooseFiles[r+"-"+t]=i})},f=function(t){var r=n.elemFile,u=t.length>1?t.length+"个文件":(t[0]||{}).name||r[0].value.match(/[^\/\\]+\..+/g)||[]||"";r.next().hasClass(e)&&r.next().remove();n.upload(null,"choose");n.isFile()||i.choose||r.after('<span class="layui-inline '+e+'">'+u+"<\/span>")};i.elem.off("upload.start").on("upload.start",function(){var u=t(this),r=u.attr("lay-data");if(r)try{r=new Function("return "+r)();n.config=t.extend({},i,r)}catch(f){l.error("Upload element property lay-data configuration item has a syntax error: "+r)}n.config.item=u;n.elemFile[0].click()});r.ie&&r.ie<10||i.elem.off("upload.over").on("upload.over",function(){var n=t(this);n.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var n=t(this);n.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(r,e){var s=t(this),o=e.originalEvent.dataTransfer.files||[];s.removeAttr("lay-over");u(o);i.auto?n.upload(o):f(o)});n.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];u(t);i.auto?n.upload():f(t)});i.bindAction.off("upload.action").on("upload.action",function(){n.upload()});i.elem.data("haveEvents")||(n.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){n.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(n){n.preventDefault();t(this).trigger("upload.over")}).on("dragleave",function(){t(this).trigger("upload.leave")}).on("drop",function(n){n.preventDefault();t(this).trigger("upload.drop",n)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))};f.render=function(n){var t=new i(n);return a.call(t)};n(o,f)});layui.define("layer",function(n){"use strict";var t=layui.$,v=layui.layer,y=layui.hint(),s=layui.device(),i="form",u=".layui-form",f="layui-this",h="layui-hide",r="layui-disabled",e=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(n){if(!n||isNaN(n))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};e.prototype.set=function(n){var i=this;return t.extend(!0,i.config,n),i};e.prototype.verify=function(n){var i=this;return t.extend(!0,i.config.verify,n),i};e.prototype.on=function(n,t){return layui.onevent.call(this,i,n,t)};e.prototype.render=function(n,e){var c=this,o=t(u+function(){return e?'[lay-filter="'+e+'"]':""}()),s={select:function(){var s,c="请选择",n="layui-form-select",l="layui-select-title",e="layui-select-none",u="",y=o.find("select"),v=function(i,r){t(i.target).parent().hasClass(l)&&!r||(t("."+n).removeClass(n+"ed "+n+"up"),s&&u&&s.val(u));s=null},p=function(o,c,y){var g=t(this),nt=o.find("."+l),p=nt.find("input"),w=o.find("dl"),b=w.children("dd"),tt,k,d,it;c||(tt=function(){var t=o.offset().top+o.outerHeight()+5-a.scrollTop(),i=w.outerHeight();o.addClass(n+"ed");b.removeClass(h);t+i>a.height()&&t>=i&&o.addClass(n+"up")},k=function(t){o.removeClass(n+"ed "+n+"up");p.blur();t||d(p.val(),function(n){n&&(u=w.find("."+f).html(),p&&p.val(u))})},nt.on("click",function(t){o.hasClass(n+"ed")?k():(v(t,!0),tt());w.find("."+e).remove()}),nt.find(".layui-edge").on("click",function(){p.focus()}),p.on("keyup",function(n){var t=n.keyCode;9===t&&tt()}).on("keydown",function(n){var t=n.keyCode;9===t?k():13===t&&n.preventDefault()}),d=function(n,i,r){var f=0,u;return layui.each(b,function(){var i=t(this),u=i.text(),e=u.indexOf(n)===-1;(""===n||"blur"===r?n!==u:e)&&f++;"keyup"===r&&i[e?"addClass":"removeClass"](h)}),u=f===b.length,i(u),u},it=function(n){var i=this.value,t=n.keyCode;return 9!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&(d(i,function(n){n?w.find("."+e)[0]||w.append('<p class="'+e+'">无匹配项<\/p>'):w.find("."+e).remove()},"keyup"),void(""===i&&w.find("."+e).remove()))},y&&p.on("keyup",it).on("blur",function(){s=p;u=w.find("."+f).html();setTimeout(function(){d(p.val(),function(n){n&&!u&&p.val("")},"blur")},200)}),b.on("click",function(){var n=t(this),u=n.attr("lay-value"),e=g.attr("lay-filter");return!n.hasClass(r)&&(n.hasClass("layui-select-tips")?p.val(""):(p.val(n.text()),n.addClass(f)),n.siblings().removeClass(f),g.val(u).removeClass("layui-form-danger"),layui.event.call(this,i,"select("+e+")",{elem:g[0],value:u,othis:o}),k(!0),!1)}),o.find("dl>dt").on("click",function(){return!1}),t(document).off("click",v).on("click",v))};y.each(function(i,u){var e=t(this),a=e.next("."+n),s=this.disabled,v=u.value,w=t(u.options[u.selectedIndex]),h=u.options[0];if("string"==typeof e.attr("lay-ignore"))return e.show();var o="string"==typeof e.attr("lay-search"),b=h?h.value?c:h.innerHTML||c:c,y=t(['<div class="'+(o?"":"layui-unselect ")+n+(s?" layui-select-disabled":"")+'">','<div class="'+l+'"><input type="text" placeholder="'+b+'" value="'+(v?w.html():"")+'" '+(o?"":"readonly")+' class="layui-input'+(o?"":" layui-unselect")+(s?" "+r:"")+'">','<i class="layui-edge"><\/i><\/div>','<dl class="layui-anim layui-anim-upbit'+(e.find("optgroup")[0]?" layui-select-group":"")+'">'+function(n){var t=[];return layui.each(n,function(n,i){0!==n||i.value?"optgroup"===i.tagName.toLowerCase()?t.push("<dt>"+i.label+"<\/dt>"):t.push('<dd lay-value="'+i.value+'" class="'+(v===i.value?f:"")+(i.disabled?" "+r:"")+'">'+i.innerHTML+"<\/dd>"):t.push('<dd lay-value="" class="layui-select-tips">'+(i.innerHTML||c)+"<\/dd>")}),0===t.length&&t.push('<dd lay-value="" class="'+r+'">没有选项<\/dd>'),t.join("")}(e.find("*"))+"<\/dl>","<\/div>"].join(""));a[0]&&a.remove();e.after(y);p.call(this,y,s,o)})},checkbox:function(){var n={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},u=o.find("input[type=checkbox]"),f=function(n,r){var u=t(this);n.on("click",function(){var f=u.attr("lay-filter"),t=(u.attr("lay-text")||"").split("|");u[0].disabled||(u[0].checked?(u[0].checked=!1,n.removeClass(r[1]).find("em").text(t[1])):(u[0].checked=!0,n.addClass(r[1]).find("em").text(t[0])),layui.event.call(u[0],i,r[2]+"("+f+")",{elem:u[0],value:u[0].value,othis:n}))})};u.each(function(i,u){var o=t(this),e=o.attr("lay-skin"),l=(o.attr("lay-text")||"").split("|"),a=this.disabled,s,h,c;if("switch"===e&&(e="_"+e),s=n[e]||n.checkbox,"string"==typeof o.attr("lay-ignore"))return o.show();h=o.next("."+s[0]);c=t(['<div class="layui-unselect '+s[0]+(u.checked?" "+s[1]:"")+(a?" layui-checkbox-disbaled "+r:"")+'" lay-skin="'+(e||"")+'">',{_switch:"<em>"+((u.checked?l[0]:l[1])||"")+"<\/em><i><\/i>"}[e]||(u.title.replace(/\s/g,"")?"<span>"+u.title+"<\/span>":"")+'<i class="layui-icon">'+(e?"&#xe605;":"&#xe618;")+"<\/i>","<\/div>"].join(""));h[0]&&h.remove();o.after(c);f.call(this,c,s)})},radio:function(){var n="layui-form-radio",f=["&#xe643;","&#xe63f;"],e=o.find("input[type=radio]"),s=function(r){var e=t(this),o="layui-anim-scaleSpring";r.on("click",function(){var s=e[0].name,h=e.parents(u),c=e.attr("lay-filter"),l=h.find("input[name="+s.replace(/(\.|#|\[|\])/g,"\\$1")+"]");e[0].disabled||(layui.each(l,function(){var i=t(this).next("."+n);this.checked=!1;i.removeClass(n+"ed");i.find(".layui-icon").removeClass(o).html(f[1])}),e[0].checked=!0,r.addClass(n+"ed"),r.find(".layui-icon").addClass(o).html(f[0]),layui.event.call(e[0],i,"radio("+c+")",{elem:e[0],value:e[0].value,othis:r}))})};e.each(function(i,u){var e=t(this),h=e.next("."+n),c=this.disabled,o;if("string"==typeof e.attr("lay-ignore"))return e.show();o=t(['<div class="layui-unselect '+n+(u.checked?" "+n+"ed":"")+(c?" layui-radio-disbaled "+r:"")+'">','<i class="layui-anim layui-icon">'+f[u.checked?0:1]+"<\/i>","<span>"+(u.title||"未命名")+"<\/span>","<\/div>"].join(""));h[0]&&h.remove();e.after(o);s.call(this,o)})}};return n?s[n]?s[n]():y.error("不支持的"+n+"表单渲染"):layui.each(s,function(n,t){t()}),c};var c=function(){var f=t(this),n=o.config.verify,r=null,e="layui-form-danger",h={},c=f.parents(u),l=c.find("*[lay-verify]"),a=f.parents("form")[0],y=c.find("input,select,textarea"),p=f.attr("lay-filter");return layui.each(l,function(i,u){var f=t(this),c=f.attr("lay-verify").split("|"),o="",h=f.val();if(f.removeClass(e),layui.each(c,function(t,i){var c="function"==typeof n[i];if(n[i]&&(c?o=n[i](h,u):!n[i][0].test(h)))return v.msg(o||n[i][1],{icon:5,shift:6}),s.android||s.ios||u.focus(),f.addClass(e),r=!0}),r)return r}),!r&&(layui.each(y,function(n,t){t.name&&(/^checkbox|radio$/.test(t.type)&&!t.checked||(h[t.name]=t.value))}),layui.event.call(this,i,"submit("+p+")",{elem:this,form:a,field:h}))},o=new e,l=t(document),a=t(window);o.render();l.on("reset",u,function(){var n=t(this).attr("lay-filter");setTimeout(function(){o.render(null,n)},50)});l.on("submit",u,c).on("click","*[lay-submit]",c);n(i,o)});layui.define("jquery",function(n){"use strict";var t=layui.$,f=layui.hint(),u="layui-tree-enter",r=function(n){this.options=n},i={arrow:["&#xe623;","&#xe625;"],checkbox:["&#xe626;","&#xe627;"],radio:["&#xe62b;","&#xe62a;"],branch:["&#xe622;","&#xe624;"],leaf:"&#xe621;"};r.prototype.init=function(n){var t=this;n.addClass("layui-box layui-tree");t.options.skin&&n.addClass("layui-tree-skin-"+t.options.skin);t.tree(n);t.on(n)};r.prototype.tree=function(n,r){var f=this,u=f.options,e=r||u.nodes;layui.each(e,function(r,e){var s=e.children&&e.children.length>0,h=t('<ul class="'+(e.spread?"layui-show":"")+'"><\/ul>'),o=t(["<li "+(e.spread?'data-spread="'+e.spread+'"':"")+">",function(){return s?'<i class="layui-icon layui-tree-spread">'+(e.spread?i.arrow[1]:i.arrow[0])+"<\/i>":""}(),function(){return u.check?'<i class="layui-icon layui-tree-check">'+("checkbox"===u.check?i.checkbox[0]:"radio"===u.check?i.radio[0]:"")+"<\/i>":""}(),function(){return'<a href="'+(e.href||"javascript:;")+'" '+(u.target&&e.href?'target="'+u.target+'"':"")+">"+('<i class="layui-icon layui-tree-'+(s?"branch":"leaf")+'">'+(s?e.spread?i.branch[1]:i.branch[0]:i.leaf)+"<\/i>")+("<cite>"+(e.name||"未命名")+"<\/cite><\/a>")}(),"<\/li>"].join(""));s&&(o.append(h),f.tree(h,e.children));n.append(o);"function"==typeof u.click&&f.click(o,e);f.spread(o,e);u.drag&&f.drag(o,e)})};r.prototype.click=function(n,t){var i=this,r=i.options;n.children("a").on("click",function(n){layui.stope(n);r.click(t)})};r.prototype.spread=function(n){var e=this,t=(e.options,n.children(".layui-tree-spread")),r=n.children("ul"),u=n.children("a"),f=function(){n.data("spread")?(n.data("spread",null),r.removeClass("layui-show"),t.html(i.arrow[0]),u.find(".layui-icon").html(i.branch[0])):(n.data("spread",!0),r.addClass("layui-show"),t.html(i.arrow[1]),u.find(".layui-icon").html(i.branch[1]))};r[0]&&(t.on("click",f),u.on("dblclick",f))};r.prototype.on=function(n){var r=this,f=r.options,i="layui-tree-drag";n.find("i").on("selectstart",function(){return!1});f.drag&&t(document).on("mousemove",function(n){var u=r.move,f,e;u.from&&(f=(u.to,t('<div class="layui-box '+i+'"><\/div>')),n.preventDefault(),t("."+i)[0]||t("body").append(f),e=t("."+i)[0]?t("."+i):f,e.addClass("layui-show").html(u.from.elem.children("a").html()),e.css({left:n.pageX+10,top:n.pageY+10}))}).on("mouseup",function(){var n=r.move;n.from&&(n.from.elem.children("a").removeClass(u),n.to&&n.to.elem.children("a").removeClass(u),r.move={},t("."+i).remove())})};r.prototype.move={};r.prototype.drag=function(n,i){var r=this,f=(r.options,n.children("a")),e=function(){var e=t(this),f=r.move;f.from&&(f.to={item:i,elem:n},e.addClass(u))};f.on("mousedown",function(){var t=r.move;t.from={item:i,elem:n}});f.on("mouseenter",e).on("mousemove",e).on("mouseleave",function(){var i=t(this),n=r.move;n.from&&(delete n.to,i.removeClass(u))})};n("tree",function(n){var u=new r(n=n||{}),i=t(n.elem);return i[0]?void u.init(i):f.error("layui.tree 没有找到"+n.elem+"元素")})});layui.define(["laytpl","laypage","layer","form"],function(n){"use strict";var t=layui.$,e=layui.laytpl,g=layui.laypage,u=layui.layer,nt=layui.form,h=layui.hint(),w=layui.device(),i={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(n){var i=this;return i.config=t.extend({},i.config,n),i},on:function(n,t){return layui.onevent.call(this,f,n,t)}},c=function(){var n=this,t=n.config,i=t.id;return i&&(c.config[i]=t),{reload:function(t){n.reload.call(n,t)},config:t}},f="table",tt=".layui-table",it="layui-hide",o="layui-none",b="layui-table-view",k=".layui-table-header",v=".layui-table-body",rt=".layui-table-main",ut=".layui-table-fixed",ft=".layui-table-fixed-l",et=".layui-table-fixed-r",ot=".layui-table-tool",l=".layui-table-sort",a="layui-table-edit",d="layui-table-hover",y=function(n){return n=n||{},['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return n.fixed&&"right"!==n.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===n.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# if(item2.checkbox){ }}",'<th data-field="{{ item2.field||i2 }}" data-type="checkbox" {{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}} unresize="true"><div class="layui-table-cell laytable-cell-checkbox"><input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}><\/div><\/th>',"{{# } else if(item2.space){ }}",'<th data-field="{{ item2.field||i2 }}" {{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}} unresize="true"><div class="layui-table-cell laytable-cell-space"><\/div><\/th>',"{{# } else { }}",'<th data-field="{{ item2.field||i2 }}" {{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}} {{# if(item2.unresize){ }}unresize="true"{{# } }}>',"{{# if(item2.colspan > 1){ }}",'<div class="layui-table-cell laytable-cell-group" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','<span>{{item2.title||""}}<\/span>',"<\/div>","{{# } else { }}",'<div class="layui-table-cell laytable-cell-{{d.index}}-{{item2.field||i2}}" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','<span>{{item2.title||""}}<\/span>',"{{# if(item2.sort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc"><\/i><i class="layui-edge layui-table-sort-desc"><\/i><\/span>',"{{# } }}","<\/div>","{{# } }}","<\/th>","{{# }; }}",n.fixed?"{{# }; }}":"","{{# }); }}","<\/tr>","{{# }); }}","<\/thead>","<\/table>"].join("")},p='<table cellspacing="0" cellpadding="0" border="0" class="layui-table" {{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}><tbody><\/tbody><\/table>',st=['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">',"{{# var left, right; }}",'<div class="layui-table-header">',y(),"<\/div>",'<div class="layui-table-body layui-table-main">',p,"<\/div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',y({fixed:!0}),"<\/div>",'<div class="layui-table-body">',p,"<\/div>","<\/div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r">','<div class="layui-table-header">',y({fixed:"right"}),'<div class="layui-table-mend"><\/div>',"<\/div>",'<div class="layui-table-body">',p,"<\/div>","<\/div>","{{# }; }}","{{# if(d.data.page){ }}",'<div class="layui-table-tool">','<div class="layui-inline layui-table-page" id="layui-table-page{{d.index}}"><\/div>',"<\/div>","{{# } }}","<style>","{{# layui.each(d.data.cols, function(i1, item1){","layui.each(item1, function(i2, item2){ }}",".laytable-cell-{{d.index}}-{{item2.field||i2}}{ width:{{item2.width||50}}px }","{{# });","}); }}","<\/style>","<\/div>"].join(""),s=t(window),ht=t(document),r=function(n){var r=this;r.index=++i.index;r.config=t.extend({},r.config,i.config,n);r.render()};r.prototype.config={limit:30,loading:!0};r.prototype.render=function(n){var r,i=this,o,h,u,f;if(n&&(i.config=n),r=i.config,r.elem=t(r.elem),r.where=r.where||{},r.request=t.extend({pageName:"page",limitName:"limit"},r.request),r.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},r.response),!r.elem[0])return i;o=r.elem;h=o.next("."+b);r.height&&/^full-\d+$/.test(r.height)&&(i.fullHeightGap=r.height.split("-")[1],r.height=s.height()-i.fullHeightGap);u=i.elem=t(e(st).render({VIEW_CLASS:b,data:r,index:i.index}));(r.index=i.index,h[0]&&h.remove(),o.after(u),i.layHeader=u.find(k),i.layMain=u.find(rt),i.layBody=u.find(v),i.layFixed=u.find(ut),i.layFixLeft=u.find(ft),i.layFixRight=u.find(et),i.layTool=u.find(ot),r.height&&i.fullSize(),r.cols.length>1)&&(f=i.layFixed.find(k).find("th"),f.height(i.layHeader.height()-1-parseFloat(f.css("padding-top"))-parseFloat(f.css("padding-bottom"))));i.pullData(1);i.events()};r.prototype.reload=function(n){var i=this;i.config=t.extend({},i.config,n);i.render()};r.prototype.pullData=function(n,i){var f=this,r=f.config,c=r.request,e=r.response,l=function(){"object"==typeof r.initSort&&f.sort(r.initSort.field,r.initSort.type)},h,s,a;r.url?(h={},h[c.pageName]=n,h[c.limitName]=r.limit,t.ajax({type:r.method||"get",url:r.url,data:t.extend(h,r.where),dataType:"json",success:function(t){return t[e.statusName]!=e.statusCode?(f.renderForm(),f.layMain.html('<div class="'+o+'">'+(t[e.msgName]||"返回的数据状态异常")+"<\/div>")):(f.renderData(t,n,t[e.countName]),l(),i&&u.close(i),void("function"==typeof r.done&&r.done(t,n,t[e.countName])))},error:function(){f.layMain.html('<div class="'+o+'">数据接口请求异常<\/div>');f.renderForm();i&&u.close(i)}})):r.data&&r.data.constructor===Array&&(s={},a=n*r.limit-r.limit,s[e.dataName]=r.data.concat().splice(a,r.limit),s[e.countName]=r.data.length,f.renderData(s,n,r.data.length),l(),"function"==typeof r.done&&r.done(s,n,s[e.countName]))};r.prototype.page=1;r.prototype.eachCols=function(n){var r=t.extend(!0,[],this.config.cols),u=[],f=0,i;layui.each(r,function(n,t){layui.each(t,function(t,i){if(i.colspan>1){var e=0;f++;i.CHILD_COLS=[];layui.each(r[n+1],function(n,t){t.PARENT_COL||e==i.colspan||(t.PARENT_COL=f,i.CHILD_COLS.push(t),e+=t.colspan>1?t.colspan:1)})}i.PARENT_COL||u.push(i)})});i=function(t){layui.each(t||u,function(t,r){return r.CHILD_COLS?i(r.CHILD_COLS):void n(t,r)})};i()};r.prototype.renderData=function(n,r,f,s){var h=this,c=h.config,l=n[c.response.dataName]||[],a=[],v=[],y=[],p=function(){return!s&&h.sortKey?h.sort(h.sortKey.field,h.sortKey.sort,!0):(layui.each(l,function(n,r){var u=[],f=[],o=[];0!==r.length&&(s||(r[i.config.indexName]=n),h.eachCols(function(n,s){var h=r[s.field||n],l;(void 0!==h&&null!==h||(h=""),s.colspan>1)||(l=['<td data-field="'+(s.field||n)+'"'+function(){var n=[];return s.edit&&n.push(' data-edit="true"'),s.align&&n.push(' align="'+s.align+'"'),s.templet&&n.push(' data-content="'+h+'"'),s.toolbar&&n.push(' data-off="true"'),s.event&&n.push(' lay-event="'+s.event+'"'),s.style&&n.push(' style="'+s.style+'"'),n.join("")}()+">",'<div class="layui-table-cell laytable-cell-'+function(){return s.checkbox?"checkbox":s.space?"space":c.index+"-"+(s.field||n)}()+'">'+function(){return s.checkbox?'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+function(){var n=i.config.checkName;return s[n]?(r[n]=s[n],s[n]?"checked":""):r[n]?"checked":""}()+">":s.toolbar?e(t(s.toolbar).html()||"").render(r):s.templet?e(t(s.templet).html()||String(h)).render(r):h}(),"<\/div><\/td>"].join(""),u.push(l),s.fixed&&"right"!==s.fixed&&f.push(l),"right"===s.fixed&&o.push(l))}),a.push('<tr data-index="'+n+'">'+u.join("")+"<\/tr>"),v.push('<tr data-index="'+n+'">'+f.join("")+"<\/tr>"),y.push('<tr data-index="'+n+'">'+o.join("")+"<\/tr>"))}),h.layBody.scrollTop(0),h.layMain.find("."+o).remove(),h.layMain.find("tbody").html(a.join("")),h.layFixLeft.find("tbody").html(v.join("")),h.layFixRight.find("tbody").html(y.join("")),h.renderForm(),h.syncCheckAll(),h.haveInit?h.scrollPatch():setTimeout(function(){h.scrollPatch()},50),h.haveInit=!0,void u.close(h.tipsIndex))};return h.key=c.id||c.index,i.cache[h.key]=l,s?p():0===l.length?(h.renderForm(),h.layFixed.remove(),h.layMain.find("tbody").html(""),h.layMain.find("."+o).remove(),h.layMain.append('<div class="'+o+'">无数据<\/div>')):(p(),void(c.page&&(h.page=r,h.count=f,g.render({elem:"layui-table-page"+c.index,count:f,groups:3,limits:c.limits||[10,20,30,40,50,60,70,80,90],limit:c.limit,curr:r,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon">&#xe603;<\/i>',next:'<i class="layui-icon">&#xe602;<\/i>',jump:function(n,t){t||(h.page=n.curr,c.limit=n.limit,h.pullData(n.curr,h.loading()))}}),h.layTool.find(".layui-table-count span").html(f))))};r.prototype.renderForm=function(n){nt.render(n||"checkbox","LAY-table-"+this.index)};r.prototype.sort=function(n,r,e,o){var a,s=this,p={},v=s.config,b=v.elem.attr("lay-filter"),y=i.cache[s.key],c,w;"string"==typeof n&&s.layHeader.find("th").each(function(){var i=t(this),r=i.data("field");if(r===n)return n=i,c=r,!1});try{if(c=c||n.data("field"),s.sortKey&&!e&&c===s.sortKey.field&&r===s.sortKey.sort)return;w=s.layHeader.find("th .laytable-cell-"+v.index+"-"+c).find(l);s.layHeader.find("th").find(l).removeAttr("lay-sort");w.attr("lay-sort",r||null);s.layFixed.find("th")}catch(k){return h.error("Table modules: Did not match to field")}s.sortKey={field:c,sort:r};"asc"===r?a=layui.sort(y,c):"desc"===r?a=layui.sort(y,c,!0):(a=layui.sort(y,i.config.indexName),delete s.sortKey);p[v.response.dataName]=a;s.renderData(p,s.page,s.count,!0);u.close(s.tipsIndex);o&&layui.event.call(n,f,"sort("+b+")",{field:c,type:r})};r.prototype.loading=function(){var n=this,t=n.config;if(t.loading&&t.url)return u.msg("数据请求中",{icon:16,offset:[n.elem.offset().top+n.elem.height()/2-35-s.scrollTop()+"px",n.elem.offset().left+n.elem.width()/2-90-s.scrollLeft()+"px"],anim:-1,fixed:!1})};r.prototype.setCheckData=function(n,t){var r=this,f=r.config,u=i.cache[r.key];u[n]&&(u[n][f.checkName]=t)};r.prototype.syncCheckAll=function(){var n=this,u=n.config,t=n.layHeader.find('input[name="layTableCheckbox"]'),r=function(t){return n.eachCols(function(n,i){i.checkbox&&(i[u.checkName]=t)}),t};t[0]&&(i.checkStatus(n.key).isAll?(t[0].checked||(t.prop("checked",!0),n.renderForm()),r(!0)):(t[0].checked&&(t.prop("checked",!1),n.renderForm()),r(!1)))};r.prototype.getCssRule=function(n,t){var i=this,r=i.elem.find("style")[0],u=r.sheet||r.styleSheet,f=u.cssRules||u.rules;layui.each(f,function(r,u){if(u.selectorText===".laytable-cell-"+i.index+"-"+n)return t(u),!0})};r.prototype.fullSize=function(){var i,n=this,r=n.config,t=r.height;n.fullHeightGap&&(t=s.height()-n.fullHeightGap,t<135&&(t=135),n.elem.css("height",t));i=parseFloat(t)-parseFloat(n.layHeader.height())-1;r.page&&(i-=parseFloat(n.layTool.outerHeight()+1));n.layMain.css("height",i)};r.prototype.scrollPatch=function(){var n=this,f=n.layMain.children("table"),i=n.layMain.width()-n.layMain.prop("clientWidth"),e=n.layMain.height()-n.layMain.prop("clientHeight"),r,o,u;i&&e?n.elem.find(".layui-table-patch")[0]||(r=t('<th class="layui-table-patch"><div class="layui-table-cell"><\/div><\/th>'),r.find("div").css({width:i}),n.layHeader.eq(0).find("thead tr").append(r)):n.layHeader.eq(0).find(".layui-table-patch").remove();o=n.layMain.height();u=o-e;n.layFixed.find(v).css("height",f.height()>u?u:"auto");n.layFixRight[f.width()>n.layMain.width()?"removeClass":"addClass"](it);n.layFixRight.css("right",i-1)};r.prototype.events=function(){var o,n=this,h=n.config,c=t("body"),r={},b=n.layHeader.find("th"),y=".layui-table-cell",p=h.elem.attr("lay-filter");b.on("mousemove",function(n){var i=t(this),u=i.offset().left,f=n.clientX-u;i.attr("colspan")>1||i.attr("unresize")||r.resizeStart||(r.allowResize=i.width()-f<=10,c.css("cursor",r.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);r.resizeStart||c.css("cursor","")}).on("mousedown",function(i){if(r.allowResize){var u=t(this).data("field");i.preventDefault();r.resizeStart=!0;r.offset=[i.clientX,i.clientY];n.getCssRule(u,function(n){r.rule=n;r.ruleWidth=parseFloat(n.style.width)})}});ht.on("mousemove",function(t){if(r.resizeStart){if(t.preventDefault(),r.rule){var i=r.ruleWidth+t.clientX-r.offset[0];r.rule.style.width=i+"px";u.close(n.tipsIndex)}o=1}}).on("mouseup",function(){r.resizeStart&&(r={},c.css("cursor",""),n.scrollPatch());2===o&&(o=null)});b.on("click",function(){var i,r=t(this),u=r.find(l),f=u.attr("lay-sort");return u[0]&&1!==o?(i="asc"===f?"desc":"desc"===f?null:"asc",void n.sort(r,i,null,!0)):o=2}).find(l+" .layui-edge ").on("click",function(i){var r=t(this),f=r.index(),u=r.parents("th").eq(0).data("field");layui.stope(i);0===f?n.sort(u,"asc",null,!0):n.sort(u,"desc",null,!0)});n.elem.on("click",'input[name="layTableCheckbox"]+',function(){var u=t(this).prev(),s=n.layBody.find('input[name="layTableCheckbox"]'),e=u.parents("tr").eq(0).data("index"),r=u[0].checked,o="layTableAllChoose"===u.attr("lay-filter");o?(s.each(function(t,i){i.checked=r;n.setCheckData(t,r)}),n.syncCheckAll(),n.renderForm()):(n.setCheckData(e,r),n.syncCheckAll());layui.event.call(this,f,"checkbox("+p+")",{checked:r,data:i.cache[n.key][e],type:o?"all":"one"})});n.layBody.on("mouseenter","tr",function(){var i=t(this),r=i.index();n.layBody.find("tr:eq("+r+")").addClass(d)}).on("mouseleave","tr",function(){var i=t(this),r=i.index();n.layBody.find("tr:eq("+r+")").removeClass(d)});n.layBody.on("change","."+a,function(){var r=t(this),u=this.value,e=r.parent().data("field"),s=r.parents("tr").eq(0).data("index"),o=i.cache[n.key][s];o[e]=u;layui.event.call(this,f,"edit("+p+")",{value:u,data:o,field:e})}).on("blur","."+a,function(){var u,r=t(this),f=r.parent().data("field"),o=r.parents("tr").eq(0).data("index"),s=i.cache[n.key][o];n.eachCols(function(n,t){t.field==f&&t.templet&&(u=t.templet)});r.siblings(y).html(u?e(t(u).html()||this.value).render(s):this.value);r.parent().data("content",this.value);r.remove()});n.layBody.on("click","td",function(){var i=t(this),r=(i.data("field"),i.children(y)),f;if(!i.data("off")){if(i.data("edit"))return f=t('<input class="'+a+'">'),f[0].value=i.data("content")||r.text(),i.find("."+a)[0]||i.append(f),f.focus();r.prop("scrollWidth")>r.outerWidth()&&(n.tipsIndex=u.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(r.height()+16)+"px;"+function(){return"sm"===h.size?"padding: 4px 15px; font-size: 12px;":"lg"===h.size?"padding: 14px 15px;":""}()+'">',r.html(),"<\/div>",'<i class="layui-icon layui-table-tips-c">&#x1006;<\/i>'].join(""),r[0],{tips:[3,""],time:-1,anim:-1,maxWidth:w.ios||w.android?300:600,isOutAnim:!1,skin:"layui-table-tips",success:function(n,t){n.find(".layui-table-tips-c").on("click",function(){u.close(t)})}}))}});n.layBody.on("click","*[lay-event]",function(){var s=t(this),o=s.parents("tr").eq(0).data("index"),r=n.layBody.find('tr[data-index="'+o+'"]'),h="layui-table-click",u=i.cache[n.key][o];layui.event.call(this,f,"tool("+p+")",{data:i.clearCacheKey(u),event:s.attr("lay-event"),tr:r,del:function(){i.cache[n.key][o]=[];r.remove();n.scrollPatch()},update:function(i){i=i||{};layui.each(i,function(i,f){if(i in u){var o,s=r.children('td[data-field="'+i+'"]');u[i]=f;n.eachCols(function(n,t){t.field==i&&t.templet&&(o=t.templet)});s.children(y).html(o?e(t(o).html()||f).render(u):f);s.data("content",f)}})}});r.addClass(h).siblings("tr").removeClass(h)});n.layMain.on("scroll",function(){var i=t(this),r=i.scrollLeft(),f=i.scrollTop();n.layHeader.scrollLeft(r);n.layFixed.find(v).scrollTop(f);u.close(n.tipsIndex)});s.on("resize",function(){n.fullSize();n.scrollPatch()})};i.init=function(n,r){r=r||{};var f=this,e=t(n?'table[lay-filter="'+n+'"]':tt+"[lay-data]"),u="Table element property lay-data configuration item has a syntax error: ";return e.each(function(){var f=t(this),o=f.attr("lay-data"),s,e;try{o=new Function("return "+o)()}catch(c){h.error(u+o)}s=[];e=t.extend({elem:this,cols:[],data:[],skin:f.attr("lay-skin"),size:f.attr("lay-size"),even:"string"==typeof f.attr("lay-even")},i.config,r,o);n&&f.hide();f.find("thead>tr").each(function(n){e.cols[n]=[];t(this).children().each(function(){var i=t(this),r=i.attr("lay-data"),f;try{r=new Function("return "+r)()}catch(o){return h.error(u+r)}f=t.extend({title:i.text(),colspan:i.attr("colspan")||0,rowspan:i.attr("rowspan")||0},r);f.colspan<2&&s.push(f);e.cols[n].push(f)})});f.find("tbody>tr").each(function(n){var r=t(this),i={};r.children("td").each(function(){var n=t(this),r=n.data("field");if(r)return i[r]=n.html()});layui.each(s,function(n,t){var u=r.children("td").eq(n);i[t.field]=u.html()});e.data[n]=i});i.render(e)}),f};i.checkStatus=function(n){var r=0,u=[],t=i.cache[n];return t?(layui.each(t,function(n,t){t[i.config.checkName]&&(r++,u.push(i.clearCacheKey(t)))}),{data:u,isAll:r===t.length}):{}};c.config={};i.reload=function(n,r){var u=c.config[n];return u?i.render(t.extend({},u,r)):h.error("The ID option was not found in the table instance")};i.render=function(n){var t=new r(n);return c.call(t)};i.clearCacheKey=function(n){return n=t.extend({},n),delete n[i.config.checkName],delete n[i.config.indexName],n};i.init();n(f,i)});layui.define("jquery",function(n){"use strict";var i=layui.$,f=(layui.hint(),layui.device(),{config:{},set:function(n){var t=this;return t.config=i.extend({},t.config,n),t},on:function(n,t){return layui.onevent.call(this,e,n,t)}}),e="carousel",r="layui-this",a=">*[carousel-item]>*",o="layui-carousel-left",s="layui-carousel-right",c="layui-carousel-prev",l="layui-carousel-next",u="layui-carousel-arrow",h="layui-carousel-ind",t=function(n){var t=this;t.config=i.extend({},t.config,f.config,n);t.render()};t.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0};t.prototype.render=function(){var t=this,n=t.config;n.elem=i(n.elem);n.elem[0]&&(t.elemItem=n.elem.find(a),n.index<0&&(n.index=0),n.index>=t.elemItem.length&&(n.index=t.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),t.elemItem.eq(n.index).addClass(r),t.indicator(),t.elemItem.length<=1||(t.arrow(),t.autoplay(),t.events()))};t.prototype.reload=function(n){var t=this;clearInterval(t.timer);t.config=i.extend({},t.config,n);t.render()};t.prototype.prevIndex=function(){var t=this,i=t.config,n=i.index-1;return n<0&&(n=t.elemItem.length-1),n};t.prototype.nextIndex=function(){var t=this,i=t.config,n=i.index+1;return n>=t.elemItem.length&&(n=0),n};t.prototype.addIndex=function(n){var i=this,t=i.config;n=n||1;t.index=t.index+n;t.index>=i.elemItem.length&&(t.index=0)};t.prototype.subIndex=function(n){var i=this,t=i.config;n=n||1;t.index=t.index-n;t.index<0&&(t.index=i.elemItem.length-1)};t.prototype.autoplay=function(){var n=this,t=n.config;t.autoplay&&(n.timer=setInterval(function(){n.slide()},t.interval))};t.prototype.arrow=function(){var t=this,n=t.config,r=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"&#xe619;":"&#xe603;")+"<\/button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"&#xe61a;":"&#xe602;")+"<\/button>"].join(""));n.elem.attr("lay-arrow",n.arrow);n.elem.find("."+u)[0]&&n.elem.find("."+u).remove();n.elem.append(r);r.on("click",function(){var n=i(this),r=n.attr("lay-type");t.slide(r)})};t.prototype.indicator=function(){var t=this,n=t.config,r=t.elemInd=i(['<div class="'+h+'"><ul>',function(){var i=[];return layui.each(t.elemItem,function(t){i.push("<li"+(n.index===t?' class="layui-this"':"")+"><\/li>")}),i.join("")}(),"<\/ul><\/div>"].join(""));n.elem.attr("lay-indicator",n.indicator);n.elem.find("."+h)[0]&&n.elem.find("."+h).remove();n.elem.append(r);"updown"===n.anim&&r.css("margin-top",-(r.height()/2));r.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var u=i(this),r=u.index();r>n.index?t.slide("add",r-n.index):r<n.index&&t.slide("sub",n.index-r)})};t.prototype.slide=function(n,t){var f=this,u=f.elemItem,i=f.config,h=i.index,a=i.elem.attr("lay-filter");f.haveSlide||("sub"===n?(f.subIndex(t),u.eq(i.index).addClass(c),setTimeout(function(){u.eq(h).addClass(s);u.eq(i.index).addClass(s)},50)):(f.addIndex(t),u.eq(i.index).addClass(l),setTimeout(function(){u.eq(h).addClass(o);u.eq(i.index).addClass(o)},50)),setTimeout(function(){u.removeClass(r+" "+c+" "+l+" "+o+" "+s);u.eq(i.index).addClass(r);f.haveSlide=!1},300),f.elemInd.find("li").eq(i.index).addClass(r).siblings().removeClass(r),f.haveSlide=!0,layui.event.call(this,e,"change("+a+")",{index:i.index,prevIndex:h,item:u.eq(i.index)}))};t.prototype.events=function(){var n=this,t=n.config;t.elem.data("haveEvents")||(t.elem.on("mouseenter",function(){clearInterval(n.timer)}).on("mouseleave",function(){n.autoplay()}),t.elem.data("haveEvents",!0))};f.render=function(n){return new t(n)};n(e,f)});layui.define("jquery",function(n){"use strict";var t=layui.$,i={fixbar:function(n){var i,f,e="layui-fixbar",o="layui-fixbar-top",s=t(document),l=t("body");n=t.extend({showHeight:200},n);n.bar1=n.bar1===!0?"&#xe606;":n.bar1;n.bar2=n.bar2===!0?"&#xe607;":n.bar2;n.bgcolor=n.bgcolor?"background-color:"+n.bgcolor:"";var u=[n.bar1,n.bar2,"&#xe604;"],r=t(['<ul class="'+e+'">',n.bar1?'<li class="layui-icon" lay-type="bar1" style="'+n.bgcolor+'">'+u[0]+"<\/li>":"",n.bar2?'<li class="layui-icon" lay-type="bar2" style="'+n.bgcolor+'">'+u[1]+"<\/li>":"",'<li class="layui-icon '+o+'" lay-type="top" style="'+n.bgcolor+'">'+u[2]+"<\/li>","<\/ul>"].join("")),h=r.find("."+o),c=function(){var t=s.scrollTop();t>=n.showHeight?i||(h.show(),i=1):i&&(h.hide(),i=0)};t("."+e)[0]||("object"==typeof n.css&&r.css(n.css),l.append(r),c(),r.find("li").on("click",function(){var r=t(this),i=r.attr("lay-type");"top"===i&&t("html,body").animate({scrollTop:0},200);n.click&&n.click.call(this,i)}),s.on("scroll",function(){clearTimeout(f);f=setTimeout(function(){c()},100)}))},countdown:function(n,t,i){var o=this,f="function"==typeof t,s=new Date(n).getTime(),e=new Date(!t||f?(new Date).getTime():t).getTime(),r=s-e,h=[Math.floor(r/864e5),Math.floor(r/36e5)%24,Math.floor(r/6e4)%60,Math.floor(r/1e3)%60],u;return f&&(i=t),u=setTimeout(function(){o.countdown(n,e+1e3,i)},1e3),i&&i(r>0?h:[0,0,0,0],t,u),r<=0&&clearTimeout(u),u},timeAgo:function(n,t){var i=(new Date).getTime()-new Date(n).getTime();return i>2592e6?(i=new Date(n).toLocaleString(),t&&(i=i.replace(/\s[\S]+$/g,"")),i):i>=864e5?(i/864e5|0)+"天前":i>=36e5?(i/36e5|0)+"小时前":i>=18e4?(i/6e4|0)+"分钟前":i<0?"未来":"刚刚"}};n("util",i)});layui.define("jquery",function(n){"use strict";var t=layui.$,i=function(){},r='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;<\/i>';i.prototype.load=function(n){var u,o,h,c=this,y=0,f,v,e,s;if(n=n||{},f=t(n.elem),f[0]){var p=t(n.scrollElem||document),w=n.mb||50,b=!("isAuto"in n)||n.isAuto,k=n.end||"没有更多了",l=n.scrollElem&&n.scrollElem!==document,a="<cite>加载更多<\/cite>",i=t('<div class="layui-flow-more"><a href="javascript:;">'+a+"<\/a><\/div>");return f.find(".layui-flow-more")[0]||f.append(i),v=function(n,r){n=t(n);i.before(n);r=0==r||null;r?i.html(k):i.find("a").html(a);o=r;u=null;s&&s()},e=function(){u=!0;i.find("a").html(r);"function"==typeof n.done&&n.done(++y,v)},(e(),i.find("a").on("click",function(){t(this);o||u||e()}),n.isLazyimg)&&(s=c.lazyimg({elem:n.elem+" img",scrollElem:n.scrollElem})),b?(p.on("scroll",function(){var n=t(this),i=n.scrollTop();h&&clearTimeout(h);o||(h=setTimeout(function(){var r=l?n.height():t(window).height(),f=l?n.prop("scrollHeight"):document.documentElement.scrollHeight;f-i-r<=w&&(u||e())},100))}),c):c}};i.prototype.lazyimg=function(n){var s,r=this,f=0,o;n=n||{};var i=t(n.scrollElem||document),c=n.elem||"img",e=n.scrollElem&&n.scrollElem!==document,h=function(n,t){var o=i.scrollTop(),c=o+t,h=e?function(){return n.offset().top-i.offset().top+o}():n.offset().top,s;h>=o&&h<=c&&!n.attr("src")&&(s=n.attr("lay-src"),layui.img(s,function(){var t=r.lazyimg.elem.eq(f);n.attr("src",s).removeAttr("lay-src");t[0]&&u(t);f++}))},u=function(n,u){var l=e?(u||i).height():t(window).height(),a=i.scrollTop(),y=a+l,o,s,v;if(r.lazyimg.elem=t(c),n)h(n,l);else for(o=0;o<r.lazyimg.elem.length;o++)if(s=r.lazyimg.elem.eq(o),v=e?function(){return s.offset().top-i.offset().top+a}():s.offset().top,h(s,l),f=o,v>y)break};return(u(),s)||(i.on("scroll",function(){var n=t(this);o&&clearTimeout(o);o=setTimeout(function(){u(null,n)},50)}),s=!0),u};n("flow",new i)});layui.define(["layer","form"],function(n){"use strict";var t=layui.$,i=layui.layer,e=layui.form,o=(layui.hint(),layui.device()),y="layedit",k="layui-show",c="layui-disabled",r=function(){var n=this;n.index=0;n.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};r.prototype.set=function(n){var i=this;return t.extend(!0,i.config,n),i};r.prototype.on=function(n,t){return layui.onevent(y,n,t)};r.prototype.build=function(n,i){i=i||{};var r=this,l=r.config,e="layui-layedit",u=t("#"+n),s="LAY_layedit_"+ ++r.index,h=u.next("."+e),f=t.extend({},l,i),a=function(){var n=[],t={};return layui.each(f.hideTool,function(n,i){t[i]=!0}),layui.each(f.tool,function(i,r){b[r]&&!t[r]&&n.push(b[r])}),n.join("")}(),c=t(['<div class="'+e+'">','<div class="layui-unselect layui-layedit-tool">'+a+"<\/div>",'<div class="layui-layedit-iframe">','<iframe id="'+s+'" name="'+s+'" textarea="'+n+'" frameborder="0"><\/iframe>',"<\/div>","<\/div>"].join(""));return o.ie&&o.ie<8?u.removeClass("layui-hide").addClass(k):(h[0]&&h.remove(),d.call(r,c,u[0],f),u.addClass("layui-hide").after(c),r.index)};r.prototype.getContent=function(n){var t=f(n);if(t[0])return p(t[0].document.body.innerHTML)};r.prototype.getText=function(n){var i=f(n);if(i[0])return t(i[0].document.body).text()};r.prototype.setContent=function(n,i,r){var u=f(n);u[0]&&(r?t(u[0].document.body).append(i):t(u[0].document.body).html(i),layedit.sync(n))};r.prototype.sync=function(n){var i=f(n),r;i[0]&&(r=t("#"+i[1].attr("textarea")),r.val(p(i[0].document.body.innerHTML)))};r.prototype.getSelection=function(n){var i=f(n),t;if(i[0])return t=s(i[0].document),document.selection?t.text:t.toString()};var d=function(n,i,r){var f=this,u=n.find("iframe");u.css({height:r.height}).on("load",function(){var e=u.contents(),o=u.prop("contentWindow"),s=e.find("head"),h=t("<style>*{margin: 0; padding: 0;}body{padding: 10px; line-height: 20px; overflow-x: hidden; word-wrap: break-word; font: 14px Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Tahoma,Arial,sans-serif; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}a{color:#01AAED; text-decoration:none;}a:hover{color:#c00}p{margin-bottom: 10px;}img{display: inline-block; border: none; vertical-align: middle;}pre{margin: 10px 0; padding: 10px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}<\/style>"),c=e.find("body");s.append(h);c.attr("contenteditable","true").css({"min-height":r.height}).html(i.value||"");g.apply(f,[o,u,i,r]);tt.call(f,o,n,r)})},f=function(n){var i=t("#LAY_layedit_"+n),r=i.prop("contentWindow");return[r,i]},p=function(n){return 8==o.ie&&(n=n.replace(/<.+>/g,function(n){return n.toLowerCase()})),n},g=function(n,r,u){var e=n.document,f=t(e.body);f.on("keydown",function(n){var t=n.keyCode;if(13===t){var r=s(e),u=l(r),f=u.parentNode;if("pre"===f.tagName.toLowerCase())return n.shiftKey?void 0:(i.msg("请暂时用shift+enter"),!1);e.execCommand("formatBlock",!1,"<p>")}});t(u).parents("form").on("submit",function(){var n=f.html();8==o.ie&&(n=n.replace(/<.+>/g,function(n){return n.toLowerCase()}));u.value=n});f.on("paste",function(){e.execCommand("formatBlock",!1,"<p>");setTimeout(function(){nt.call(n,f);u.value=f.html()},100)})},nt=function(n){var i=this;i.document;n.find("*[style]").each(function(){var n=this.style.textAlign;this.removeAttribute("style");t(this).css({"text-align":n||""})});n.find("table").addClass("layui-table");n.find("script,link").remove()},s=function(n){return n.selection?n.selection.createRange():n.getSelection().getRangeAt(0)},l=function(n){return n.endContainer||n.parentElement().childNodes[0]},h=function(n,i,r){var o=this.document,f=document.createElement(n),e,u;for(e in i)f.setAttribute(e,i[e]);if(f.removeAttribute("text"),o.selection){if(u=r.text||i.text,"a"===n&&!u)return;u&&(f.innerHTML=u);r.pasteHTML(t(f).prop("outerHTML"));r.select()}else{if(u=r.toString()||i.text,"a"===n&&!u)return;u&&(f.innerHTML=u);r.deleteContents();r.insertNode(f)}},w=function(n,i){var f=this.document,r="layedit-tool-active",e=l(s(f)),u=function(t){return n.find(".layedit-tool-"+t)};i&&i[i.hasClass(r)?"removeClass":"addClass"](r);n.find(">i").removeClass(r);u("unlink").addClass(c);t(e).parents().each(function(){var n=this.tagName.toLowerCase(),t=this.style.textAlign;"b"!==n&&"strong"!==n||u("b").addClass(r);"i"!==n&&"em"!==n||u("i").addClass(r);"u"===n&&u("u").addClass(r);"strike"===n&&u("d").addClass(r);"p"===n&&("center"===t?u("center").addClass(r):"right"===t?u("right").addClass(r):u("left").addClass(r));"a"===n&&(u("link").addClass(r),u("unlink").removeClass(c))})},tt=function(n,r,f){var e=n.document,o=t(e.body),p={link:function(i){var u=l(i),r=t(u).parent();a.call(o,{href:r.attr("href"),target:r.attr("target")},function(t){var u=r[0];"A"===u.tagName?u.href=t.url:h.call(n,"a",{target:t.target,href:t.url,text:t.url},i)})},unlink:function(){e.execCommand("unlink")},face:function(t){u.call(this,function(i){h.call(n,"img",{src:i.src,alt:i.alt},t)})},image:function(r){var u=this;layui.use("upload",function(e){var o=f.uploadImage||{};e.render({url:o.url,method:o.type,elem:t(u).find("input")[0],done:function(t){0==t.code?(t.data=t.data||{},h.call(n,"img",{src:t.data.src,alt:t.data.title},r)):i.msg(t.msg||"上传失败")}})})},code:function(t){v.call(o,function(i){h.call(n,"pre",{text:i.code,"lay-lang":i.lang},t)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},y=r.find(".layui-layedit-tool"),b=function(){var i=t(this),f=i.attr("layedit-event"),r=i.attr("lay-command"),u;i.hasClass(c)||(o.focus(),u=s(e),u.commonAncestorContainer,r?(e.execCommand(r),/justifyLeft|justifyCenter|justifyRight/.test(r)&&e.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){o.focus()},10)):p[f]&&p[f].call(this,u),w.call(n,y,i))},k=/image/;y.find(">i").on("mousedown",function(){var n=t(this),i=n.attr("layedit-event");k.test(i)||b.call(this)}).on("click",function(){var n=t(this),i=n.attr("layedit-event");k.test(i)&&b.call(this)});o.on("click",function(){w.call(n,y);i.close(u.index)})},a=function(n,t){var r=this,u=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['<ul class="layui-form" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">URL<\/label>','<div class="layui-input-block" style="margin-left: 90px">','<input name="url" lay-verify="url" value="'+(n.href||"")+'" autofocus="true" autocomplete="off" class="layui-input">',"<\/div>","<\/li>",'<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">打开方式<\/label>','<div class="layui-input-block" style="margin-left: 90px">','<input type="radio" name="target" value="_self" class="layui-input" title="当前窗口"'+("_self"!==n.target&&n.target?"":"checked")+">",'<input type="radio" name="target" value="_blank" class="layui-input" title="新窗口" '+("_blank"===n.target?"checked":"")+">","<\/div>","<\/li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-link-yes" class="layui-btn"> 确定 <\/button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 <\/button>',"<\/li>","<\/ul>"].join(""),success:function(n,u){e.render("radio");n.find(".layui-btn-primary").on("click",function(){i.close(u);r.focus()});e.on("submit(layedit-link-yes)",function(n){i.close(a.index);t&&t(n.field)})}});a.index=u},u=function(n){var r=function(){var n={};return layui.each(["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],function(t,i){n[i]=layui.cache.dir+"images/face/"+t+".gif"}),n}();return u.hide=u.hide||function(n){"face"!==t(n.target).attr("layedit-event")&&i.close(u.index)},u.index=i.tips(function(){var n=[];return layui.each(r,function(t,i){n.push('<li title="'+t+'"><img src="'+i+'" alt="'+t+'"><\/li>')}),'<ul class="layui-clear">'+n.join("")+"<\/ul>"}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(f,e){f.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){n&&n({src:r[this.title],alt:this.title});i.close(e)});t(document).off("click",u.hide).on("click",u.hide)}})},v=function(n){var t=this,r=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:'<ul class="layui-form layui-form-pane" style="margin: 15px;"><li class="layui-form-item"><label class="layui-form-label">请选择语言<\/label><div class="layui-input-block"><select name="lang"><option value="JavaScript">JavaScript<\/option><option value="HTML">HTML<\/option><option value="CSS">CSS<\/option><option value="Java">Java<\/option><option value="PHP">PHP<\/option><option value="C#">C#<\/option><option value="Python">Python<\/option><option value="Ruby">Ruby<\/option><option value="Go">Go<\/option><\/select><\/div><\/li><li class="layui-form-item layui-form-text"><label class="layui-form-label">代码<\/label><div class="layui-input-block"><textarea name="code" lay-verify="required" autofocus="true" class="layui-textarea" style="height: 200px;"><\/textarea><\/div><\/li><li class="layui-form-item" style="text-align: center;"><button type="button" lay-submit lay-filter="layedit-code-yes" class="layui-btn"> 确定 <\/button><button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 <\/button><\/li><\/ul>',success:function(r,u){e.render("select");r.find(".layui-btn-primary").on("click",function(){i.close(u);t.focus()});e.on("submit(layedit-code-yes)",function(t){i.close(v.index);n&&n(t.field)})}});v.index=r},b={html:'<i class="layui-icon layedit-tool-html" title="HTML源代码" lay-command="html" layedit-event="html"">&#xe64b;<\/i><span class="layedit-tool-mid"><\/span>',strong:'<i class="layui-icon layedit-tool-b" title="加粗" lay-command="Bold" layedit-event="b"">&#xe62b;<\/i>',italic:'<i class="layui-icon layedit-tool-i" title="斜体" lay-command="italic" layedit-event="i"">&#xe644;<\/i>',underline:'<i class="layui-icon layedit-tool-u" title="下划线" lay-command="underline" layedit-event="u"">&#xe646;<\/i>',del:'<i class="layui-icon layedit-tool-d" title="删除线" lay-command="strikeThrough" layedit-event="d"">&#xe64f;<\/i>',"|":'<span class="layedit-tool-mid"><\/span>',left:'<i class="layui-icon layedit-tool-left" title="左对齐" lay-command="justifyLeft" layedit-event="left"">&#xe649;<\/i>',center:'<i class="layui-icon layedit-tool-center" title="居中对齐" lay-command="justifyCenter" layedit-event="center"">&#xe647;<\/i>',right:'<i class="layui-icon layedit-tool-right" title="右对齐" lay-command="justifyRight" layedit-event="right"">&#xe648;<\/i>',link:'<i class="layui-icon layedit-tool-link" title="插入链接" layedit-event="link"">&#xe64c;<\/i>',unlink:'<i class="layui-icon layedit-tool-unlink layui-disabled" title="清除链接" lay-command="unlink" layedit-event="unlink"">&#xe64d;<\/i>',face:'<i class="layui-icon layedit-tool-face" title="表情" layedit-event="face"">&#xe650;<\/i>',image:'<i class="layui-icon layedit-tool-image" title="图片" layedit-event="image">&#xe64a;<input type="file" name="file"><\/i>',code:'<i class="layui-icon layedit-tool-code" title="插入代码" layedit-event="code">&#xe64e;<\/i>',help:'<i class="layui-icon layedit-tool-help" title="帮助" layedit-event="help">&#xe607;<\/i>'},it=new r;n(y,it)});layui.define("jquery",function(n){"use strict";var t=layui.$,i="http://www.layui.com/doc/modules/code.html";n("code",function(n){var r=[];n=n||{};n.elem=t(n.elem||".layui-code");n.about=!("about"in n)||n.about;n.elem.each(function(){r.push(this)});layui.each(r.reverse(),function(r,u){var f=t(u),o=f.html(),e;(f.attr("lay-encode")||n.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;"));f.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"<\/li><li>")+"<\/li><\/ol>");f.find(">.layui-code-h3")[0]||f.prepend('<h3 class="layui-code-h3">'+(f.attr("lay-title")||n.title||"code")+(n.about?'<a href="'+i+'" target="_blank">layui.code<\/a>':"")+"<\/h3>");e=f.find(">.layui-code-ol");f.addClass("layui-box layui-code-view");(f.attr("lay-skin")||n.skin)&&f.addClass("layui-code-"+(f.attr("lay-skin")||n.skin));(e.find("li").length/100|0)>0&&e.css("margin-left",(e.find("li").length/100|0)+"px");(f.attr("lay-height")||n.height)&&e.css("max-height",f.attr("lay-height")||n.height)})})}).addcss("modules/code.css","skincodecss");