/** layui-v2.2.5 mit license by https://www.layui.com */ ;!function(e){"use strict";var t=document,n={modules:{},status:{},timeout:10,event:{}},o=function(){this.v="2.2.5"},r=function(){var e=t.currentscript?t.currentscript.src:function(){for(var e,n=t.scripts,o=n.length-1,r=o;r>0;r--)if("interactive"===n[r].readystate){e=n[r].src;break}return e||n[o].src}();return e.substring(0,e.lastindexof("/")+1)}(),a=function(t){e.console&&console.error&&console.error("layui hint: "+t)},i="undefined"!=typeof opera&&"[object opera]"===opera.tostring(),u={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"};o.prototype.cache=n,o.prototype.define=function(e,t){var o=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(o,r){e(o,r),n.callback[o]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?a.call(o):(o.use(e,a),o)},o.prototype.use=function(e,o,l){function s(e,t){var o="playstation 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||o.test((e.currenttarget||e.srcelement).readystate))&&(n.modules[f]=t,d.removechild(v),function r(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void(n.status[f]?c():settimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),o,l):"function"==typeof o&&o.apply(layui,l)}var y=this,p=n.dir=n.dir?n.dir:r,d=t.getelementsbytagname("head")[0];e="string"==typeof e?[e]:e,window.jquery&&jquery.fn.on&&(y.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jquery);var f=e[0],m=0;if(l=l||[],n.host=n.host||(p.match(/\/\/([\s\s]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(n.modules[f])!function g(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void("string"==typeof n.modules[f]&&n.status[f]?c():settimeout(g,4))}();else{var v=t.createelement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":n.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=n.version===!0?n.v||(new date).gettime():n.version||"";return e?"?v="+e:""}(),d.appendchild(v),!v.attachevent||v.attachevent.tostring&&v.attachevent.tostring().indexof("[native code")<0||i?v.addeventlistener("load",function(e){s(e,h)},!1):v.attachevent("onreadystatechange",function(e){s(e,h)}),n.modules[f]=h}return y},o.prototype.getstyle=function(t,n){var o=t.currentstyle?t.currentstyle:e.getcomputedstyle(t,null);return o[o.getpropertyvalue?"getpropertyvalue":"getattribute"](n)},o.prototype.link=function(e,o,r){var i=this,u=t.createelement("link"),l=t.getelementsbytagname("head")[0];"string"==typeof o&&(r=o);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new date).gettime():""),u.media="all",t.getelementbyid(c)||l.appendchild(u),"function"!=typeof o?i:(function p(){return++y>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseint(i.getstyle(t.getelementbyid(c),"width"))?function(){o()}():settimeout(p,100))}(),i)},n.callback={},o.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},o.prototype.addcss=function(e,t,o){return layui.link(n.dir+"css/"+e,t,o)},o.prototype.img=function(e,t,n){var o=new image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},o.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},o.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),o.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},o.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(n.href=e=e.replace(/^#\//,""),e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},o.prototype.data=function(t,n,o){if(t=t||"layui",o=o||localstorage,e.json&&e.json.parse){if(null===n)return delete o[t];n="object"==typeof n?n:{key:n};try{var r=json.parse(o[t])}catch(a){var r={}}return"value"in n&&(r[n.key]=n.value),n.remove&&delete r[n.key],o[t]=json.stringify(r),n.key?r[n.key]:r}},o.prototype.sessiondata=function(e,t){return this.data(e,t,sessionstorage)},o.prototype.device=function(t){var n=navigator.useragent.tolowercase(),o=function(e){var t=new regexp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.activexobject||"activexobject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:o("micromessenger")};return t&&!r[t]&&(r[t]=o(t)),r.android=/android/.test(n),r.ios="ios"===r.os,r},o.prototype.hint=function(){return{error:a}},o.prototype.each=function(e,t){var n,o=this;if("function"!=typeof t)return o;if(e=e||[],e.constructor===object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;na?1:r/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="laytpl error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var a=document,t="getelementbyid",n="getelementsbytagname",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\d/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keycode;/^(37|38|39|40)$/.test(i)||(/\d/.test(n)&&(this.value=n.replace(/\d/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerhtml=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerhtml=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachevent?e.attachevent("on"+a,function(a){a.target=a.srcelement,t.call(e,a)}):e.addeventlistener(a,t,!1),this}};e(i,s)});!function(){"use strict";var e=window.layui&&layui.define,t={getpath:function(){var e=document.currentscript?document.currentscript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readystate){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastindexof("/")+1)}(),getstyle:function(e,t){var n=e.currentstyle?e.currentstyle:window.getcomputedstyle(e,null);return n[n.getpropertyvalue?"getpropertyvalue":"getattribute"](t)},link:function(e,a,i){if(n.path){var r=document.getelementsbytagname("head")[0],o=document.createelement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getelementbyid(l)||r.appendchild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: invalid"):void(1989===parseint(t.getstyle(document.getelementbyid(l),"width"))?a():settimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getpath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期
建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",d=".laydate-btns-time",t=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new c(e)},c=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.queryselectorall(e||null));t0)return n[0].getattribute(e)}():n.each(function(n,a){a.setattribute(e,t)})},c.prototype.removeattr=function(e){return this.each(function(t,n){n.removeattribute(e)})},c.prototype.html=function(e){return this.each(function(t,n){n.innerhtml=e})},c.prototype.val=function(e){return this.each(function(t,n){n.value=e})},c.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendchild(e):n.innerhtml=n.innerhtml+e})},c.prototype.remove=function(e){return this.each(function(t,n){e?n.removechild(e):n.parentnode.removechild(n)})},c.prototype.on=function(e,t){return this.each(function(n,a){a.attachevent?a.attachevent("on"+e,function(e){e.target=e.srcelement,t.call(a,e)}):a.addeventlistener(e,t,!1)})},c.prototype.off=function(e,t){return this.each(function(n,a){a.detachevent?a.detachevent("on"+e,t):a.removeeventlistener(e,t,!1)})},t.isleapyear=function(e){return e%4===0&&e%100!==0||e%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 e=this,t=e.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[t.lang]||n.cn},t.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|mm|m|dd|d|hh|h|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-mm",date:"yyyy-mm-dd",time:"hh:mm:ss",datetime:"yyyy-mm-dd hh:mm:ss"};t.elem=w(t.elem),t.eventelem=w(t.eventelem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new regexp(n+"|.","g"))||[],e.exp_if="",e.exp_split="",w.each(e.format,function(t,a){var i=new regexp(n).test(a)?"\\d{"+function(){return new regexp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.exp_if=e.exp_if+i,e.exp_split=e.exp_split+"("+i+")"}),e.exp_if=new regexp("^"+(t.range?e.exp_if+"\\s\\"+t.range+"\\s"+e.exp_if:e.exp_if)+"$"),e.exp_split=new regexp("^"+e.exp_split+"$",""),e.isinput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventelem.attr("lay-key",e.index)),t.mark=w.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),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new date).gettime(),s=864e5,l=new date(r?r0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerhtml="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerhtml="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendchild(t),e.appendchild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerhtml="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerhtml="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendchild(t)}),m.appendchild(u),w.each(new array(6),function(e){var t=c.insertrow(0);w.each(new array(7),function(a){if(0===e){var i=w.elem("th");i.innerhtml=n.weeks[a],u.appendchild(i)}t.insertcell(a)})}),c.insertbefore(m,c.children[0]),d.appendchild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendchild(a),r[e].appendchild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push(''+n.timetips+""),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"reset"),i.push(''+o+""))}),e.push('"),e.join("")}()),w.each(r,function(e,t){i.appendchild(t)}),t.showbottom&&i.appendchild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemid).replace(/{{theme}}/g,t.theme);"stylesheet"in m?(m.setattribute("type","text/css"),m.stylesheet.csstext=u):m.innerhtml=u,w(i).addclass("laydate-theme-molv"),i.appendchild(m)}e.remove(t.thiselemdate),a?t.elem.append(i):(document.body.appendchild(i),e.position()),e.checkdate().calendar(),e.changeevent(),t.thiselemdate=e.elemid,"function"==typeof t.ready&&t.ready(w.extend({},t.datetime,{month:t.datetime.month+1}))},t.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemid)));return n.hasclass(c)||t.checkdate(function(){n.remove()}),t},t.prototype.position=function(){var e=this,t=e.config,n=e.bindelem||t.elem[0],a=n.getboundingclientrect(),i=e.elem.offsetwidth,r=e.elem.offsetheight,o=function(e){return e=e?"scrollleft":"scrolltop",document.body[e]|document.documentelement[e]},s=function(e){return document.documentelement[e?"clientwidth":"clientheight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},t.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));n.innerhtml=e||"",w(t.elem).find("."+h).remove(),t.elem.appendchild(n),cleartimeout(t.hintimer),t.hintimer=settimeout(function(){w(t.elem).find("."+h).remove()},3e3)},t.prototype.getasym=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},t.prototype.systemdate=function(e){var t=e||new date;return{year:t.getfullyear(),month:t.getmonth(),date:t.getdate(),hours:e?e.gethours():0,minutes:e?e.getminutes():0,seconds:e?e.getseconds():0}},t.prototype.checkdate=function(e){var t,a,i=this,r=(new date,i.config),o=r.datetime=r.datetime||i.systemdate(),s=i.bindelem||r.elem[0],l=(i.isinput(s)?"val":"html",i.isinput(s)?s.value:"static"===r.position?"":s.innerhtml),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getenddate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["starttime","endtime"];t=(t.match(i.exp_split)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parsefloat(t[s]);t[s].length必须遵循下述格式:
"+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"
已为你重置"),a=!0):l&&l.constructor===date?r.datetime=i.systemdate(l):(r.datetime=i.systemdate(),delete i.startstate,delete i.endstate,delete i.startdate,delete i.enddate,delete i.starttime,delete i.endtime),c(o),a&&l&&i.setvalue(r.range?i.enddate?i.parse():"":i.parse()),e&&e(),i)},t.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html(''+n+""),a},t.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"enddate":"datetime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newdate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).gettime()}),i=l.nowl.max,e&&e[i?"addclass":"removeclass"](s),i},t.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.datetime,c=new date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemheader[h][2]).find("span");if(l.yeard[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstdate||(r.firstdate=w.extend({},l)),c.setfullyear(l.year,l.month,1),t=c.getday(),a=n.getenddate(l.month||12,l.year),i=n.getenddate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeattr("class"),e=t&&e=n.firstdate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),m++}),w(u[f?0:1]).attr("lay-ym",m-8+"-"+t[1]).html(b+p+" - "+(m-1+p))}else if("month"===e)w.each(new array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:t[0],month:e};e+1==t[1]&&w(i).addclass(o),i.innerhtml=r.month[e]+(f?"月":""),d.appendchild(i),t[0]=n.firstdate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",t[0]+"-"+t[1]).html(t[0]+p);else if("time"===e){var e=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["

"+r.time[e]+"

    "];w.each(new array(t),function(t){i.push(""+w.digit(t,2)+"")}),a.innerhtml=i.join("")+"
",d.appendchild(a)}),e()}if(y&&h.removechild(y),h.appendchild(d),"year"===e||"month"===e)w(n.elemmain[t]).addclass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasclass(s)){if(0===t)i[e]=r,l&&(n.startdate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.enddate[e]=r;else{var c="year"===e?n.getasym(r,t[1]-1,"sub"):n.getasym(t[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeclass(o),w(this).addclass(o),"month"===a.type&&"year"===e&&(n.listym[t][0]=r,l&&(n[["startdate","enddate"][t]].year=r),n.list("month",t))):(n.checkdate("limit").calendar(),n.closelist()),n.setbtnstatus(),a.range||n.done(null,"change"),w(n.footer).find(d).removeclass(s)}});else{var s=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrolltop=30*(n[x][c[e]]-2),t.scrolltop<=0&&a.each(function(e,n){if(!w(this).hasclass(s))return t.scrolltop=30*(e-2),!0})})},h=w(c[2]).find("."+v);k(),s.innerhtml=a.range?[r.starttime,r.endtime][t]:r.timetips,w(n.elemmain[t]).addclass("laydate-time-show"),h[0]&&h.remove(),c[2].appendchild(s),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerhtml;w(this).hasclass(s)||(a.range?n[x][c[e]]=r:i[c[e]]=r,w(t).find("."+o).removeclass(o),w(this).addclass(o),e(),k(),(n.enddate||"time"===a.type)&&n.done(null,"change"),n.setbtnstatus())})})}return n},t.prototype.listym=[],t.prototype.closelist=function(){var e=this;e.config;w.each(e.elemcont,function(t,n){w(this).find("."+m).remove(),w(e.elemmain[t]).removeclass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},t.prototype.setbtnstatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startdate,n=n||i.enddate,a=i.newdate(t).gettime()>i.newdate(n).gettime(),i.limit(null,t)||i.limit(null,n)?o.addclass(s):o[a?"addclass":"removeclass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},t.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.enddate,n.endtime):a.range?w.extend({},n.startdate,n.starttime):a.datetime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/mm|m/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/hh|h/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},t.prototype.newdate=function(e){return e=e||{},new date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},t.prototype.setvalue=function(e){var t=this,n=t.config,a=t.bindelem||n.elem[0],i=t.isinput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},t.prototype.stamprange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.enddate&&w(n.footer).find(g).addclass(s),n.enddate)return e=n.newdate({year:n.startdate.year,month:n.startdate.month,date:n.startdate.date}).gettime(),t=n.newdate({year:n.enddate.year,month:n.enddate.month,date:n.enddate.date}).gettime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newdate({year:r[0],month:r[1]-1,date:r[2]}).gettime();w(i).removeclass(u+" "+o),s!==e&&s!==t||w(i).addclass(w(i).hasclass(y)||w(i).hasclass(f)?u:o),s>e&&s0&&t-1 in e)}function r(e,t,n){if(pe.isfunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodetype)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inarray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodetype);return e}function o(e){var t={};return pe.each(e.match(de)||[],function(e,n){t[n]=!0}),t}function a(){re.addeventlistener?(re.removeeventlistener("domcontentloaded",s),e.removeeventlistener("load",s)):(re.detachevent("onreadystatechange",s),e.detachevent("onload",s))}function s(){(re.addeventlistener||"load"===e.event.type||"complete"===re.readystate)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodetype){var r="data-"+t.replace(_e,"-$1").tolowercase();if(n=e.getattribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parsejson(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isemptyobject(e[t]))&&"tojson"!==t)return!1;return!0}function c(e,t,n,r){if(he(e)){var i,o,a=pe.expando,s=e.nodetype,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{tojson:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelcase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelcase(t)])):i=o,i}}function f(e,t,n){if(he(e)){var r,i,o=e.nodetype,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isarray(t)?t=t.concat(pe.map(t,pe.camelcase)):t in r?t=[t]:(t=pe.camelcase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isemptyobject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleandata([e],!0):fe.deleteexpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssnumber[t]?"":"px"),c=(pe.cssnumber[t]||"px"!==l&&+u)&&me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createdocumentfragment();if(n.createelement)for(;t.length;)n.createelement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getelementsbytagname?e.getelementsbytagname(t||"*"):"undefined"!=typeof e.queryselectorall?e.queryselectorall(t||"*"):void 0;if(!o)for(o=[],n=e.childnodes||e;null!=(r=n[i]);i++)!t||pe.nodename(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodename(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globaleval",!t||pe._data(t[r],"globaleval"))}function m(e){be.test(e.type)&&(e.defaultchecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x"!==f[1]||ve.test(a)?0:u:u.firstchild,o=a&&a.childnodes.length;o--;)pe.nodename(c=a.childnodes[o],"tbody")&&!c.childnodes.length&&a.removechild(c);for(pe.merge(v,u.childnodes),u.textcontent="";u.firstchild;)u.removechild(u.firstchild);u=y.lastchild}else v.push(t.createtextnode(a));for(u&&y.removechild(u),fe.appendchecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inarray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerdocument,a),u=h(y.appendchild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeelement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function t(e,t){return pe.nodename(e,"table")&&pe.nodename(11!==t.nodetype?t:t.firstchild,"tr")?e.getelementsbytagname("tbody")[0]||e.appendchild(e.ownerdocument.createelement("tbody")):e}function c(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function e(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeattribute("type"),e}function n(e,t){if(1===t.nodetype&&pe.hasdata(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r1&&"string"==typeof p&&!fe.checkclone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),s(o,t,n,r)});if(f&&(l=y(t,e[0].ownerdocument,!1,e,r),i=l.firstchild,1===l.childnodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),c),a=s.length;c")).appendto(t.documentelement),t=(ut[0].contentwindow||ut[0].contentdocument).document,t.write(),t.close(),n=d(e,t),ut.detach()),lt[e]=n),n}function l(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function h(e){if(e in et)return e;for(var t=e.charat(0).touppercase()+e.slice(1),n=ct.length;n--;)if(e=ct[n]+t,e in et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isemptyobject:function(e){var t;for(t in e)return!1;return!0},isplainobject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodetype||pe.iswindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isprototypeof"))return!1}catch(n){return!1}if(!fe.ownfirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globaleval:function(t){t&&pe.trim(t)&&(e.execscript||function(t){e.eval.call(e,t)})(t)},camelcase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodename:function(e,t){return e.nodename&&e.nodename.tolowercase()===t.tolowercase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;it.cachelength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[p]=!0,e}function i(e){var t=h.createelement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentnode&&t.parentnode.removechild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)t.attrhandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodetype&&1===t.nodetype&&(~t.sourceindex||v)-(~e.sourceindex||v);if(r)return r;if(n)for(;n=n.nextsibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodename.tolowercase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodename.tolowercase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getelementsbytagname&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=t.relative[e[0].type],a=o||t.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==a)||((t=n).nodetype?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=a,x=r||o&&t.find.tag("*",l),b=w+=null==v?1:math.random()||.1,w=x.length;for(l&&(a=a===h||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerdocument===h||(l(c),s=!_);d=e[f++];)if(d(c,a||h,s)){u.push(c);break}l&&(w=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=g.call(u));y=m(y)}q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniquesort(u)}return l&&(w=b,a=v),g};return i?r(a):a}var b,w,t,c,e,n,k,s,a,d,j,l,h,q,_,f,m,o,r,p="sizzle"+1*new date,b=e.document,w=0,i=0,$=n(),z=n(),x=n(),u=function(e,t){return e===t&&(j=!0),0},v=1<<31,y={}.hasownproperty,j=[],g=j.pop,k=j.push,q=j.push,z=j.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new regexp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new regexp(oe),de=new regexp("^"+re+"$"),pe={id:new regexp("^#("+re+")"),class:new regexp("^\\.("+re+")"),tag:new regexp("^("+re+"|[*])"),attr:new regexp("^"+ie),pseudo:new regexp("^"+oe),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new regexp("^(?:"+te+")$","i"),needscontext:new regexp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new regexp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?string.fromcharcode(r+65536):string.fromcharcode(r>>10|55296,1023&r|56320)},te=function(){l()};try{q.apply(j=z.call(b.childnodes),b.childnodes),j[b.childnodes.length].nodetype}catch(ce){q={apply:j.length?function(e,t){k.apply(e,z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},e=t.isxml=function(e){var t=e&&(e.ownerdocument||e).documentelement;return!!t&&"html"!==t.nodename},l=t.setdocument=function(e){var t,n,r=e?e.ownerdocument||e:b;return r!==h&&9===r.nodetype&&r.documentelement?(h=r,q=h.documentelement,_=!e(h),(n=h.defaultview)&&n.top!==n&&(n.addeventlistener?n.addeventlistener("unload",te,!1):n.attachevent&&n.attachevent("onunload",te)),w.attributes=i(function(e){return e.classname="i",!e.getattribute("classname")}),w.getelementsbytagname=i(function(e){return e.appendchild(h.createcomment("")),!e.getelementsbytagname("*").length}),w.getelementsbyclassname=me.test(h.getelementsbyclassname),w.getbyid=i(function(e){return q.appendchild(e).id=p,!h.getelementsbyname||!h.getelementsbyname(p).length}),w.getbyid?(t.find.id=function(e,t){if("undefined"!=typeof t.getelementbyid&&_){var n=t.getelementbyid(e);return n?[n]:[]}},t.filter.id=function(e){var t=e.replace(be,we);return function(e){return e.getattribute("id")===t}}):(delete t.find.id,t.filter.id=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getattributenode&&e.getattributenode("id");return n&&n.value===t}}),t.find.tag=w.getelementsbytagname?function(e,t){return"undefined"!=typeof t.getelementsbytagname?t.getelementsbytagname(e):w.qsa?t.queryselectorall(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getelementsbytagname(e);if("*"===e){for(;n=o[i++];)1===n.nodetype&&r.push(n);return r}return o},t.find.class=w.getelementsbyclassname&&function(e,t){if("undefined"!=typeof t.getelementsbyclassname&&_)return t.getelementsbyclassname(e)},m=[],f=[],(w.qsa=me.test(h.queryselectorall))&&(i(function(e){q.appendchild(e).innerhtml="",e.queryselectorall("[msallowcapture^='']").length&&f.push("[*^$]="+ne+"*(?:''|\"\")"),e.queryselectorall("[selected]").length||f.push("\\["+ne+"*(?:value|"+te+")"),e.queryselectorall("[id~="+p+"-]").length||f.push("~="),e.queryselectorall(":checked").length||f.push(":checked"),e.queryselectorall("a#"+p+"+*").length||f.push(".#.+[+~]")}),i(function(e){var t=h.createelement("input");t.setattribute("type","hidden"),e.appendchild(t).setattribute("name","d"),e.queryselectorall("[name=d]").length&&f.push("name"+ne+"*[*^$|!~]?="),e.queryselectorall(":enabled").length||f.push(":enabled",":disabled"),e.queryselectorall("*,:x"),f.push(",.*:")})),(w.matchesselector=me.test(o=q.matches||q.webkitmatchesselector||q.mozmatchesselector||q.omatchesselector||q.msmatchesselector))&&i(function(e){w.disconnectedmatch=o.call(e,"div"),o.call(e,"[s!='']:x"),m.push("!=",oe)}),f=f.length&&new regexp(f.join("|")),m=m.length&&new regexp(m.join("|")),t=me.test(q.comparedocumentposition),r=t||me.test(q.contains)?function(e,t){var n=9===e.nodetype?e.documentelement:e,r=t&&t.parentnode;return e===r||!(!r||1!==r.nodetype||!(n.contains?n.contains(r):e.comparedocumentposition&&16&e.comparedocumentposition(r)))}:function(e,t){if(t)for(;t=t.parentnode;)if(t===e)return!0;return!1},u=t?function(e,t){if(e===t)return j=!0,0;var n=!e.comparedocumentposition-!t.comparedocumentposition;return n?n:(n=(e.ownerdocument||e)===(t.ownerdocument||t)?e.comparedocumentposition(t):1,1&n||!w.sortdetached&&t.comparedocumentposition(e)===n?e===h||e.ownerdocument===b&&r(b,e)?-1:t===h||t.ownerdocument===b&&r(b,t)?1:d?ee(d,e)-ee(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentnode,o=t.parentnode,s=[e],u=[t];if(!i||!o)return e===h?-1:t===h?1:i?-1:o?1:d?ee(d,e)-ee(d,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentnode;)s.unshift(n);for(n=t;n=n.parentnode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===b?-1:u[r]===b?1:0},h):h},t.matches=function(e,n){return t(e,null,null,n)},t.matchesselector=function(e,n){if((e.ownerdocument||e)!==h&&l(e),n=n.replace(ce,"='$1']"),w.matchesselector&&_&&!x[n+" "]&&(!m||!m.test(n))&&(!f||!f.test(n)))try{var r=o.call(e,n);if(r||w.disconnectedmatch||e.document&&11!==e.document.nodetype)return r}catch(i){}return t(n,h,null,[e]).length>0},t.contains=function(e,t){return(e.ownerdocument||e)!==h&&l(e),r(e,t)},t.attr=function(e,t){(e.ownerdocument||e)!==h&&l(e);var n=t.attrhandle[t.tolowercase()],r=n&&y.call(t.attrhandle,t.tolowercase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getattribute(t):(r=e.getattributenode(t))&&r.specified?r.value:null},t.error=function(e){throw new error("syntax error, unrecognized expression: "+e)},t.uniquesort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectduplicates,d=!w.sortstable&&e.slice(0),e.sort(u),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return d=null,e},c=t.gettext=function(e){var t,n="",r=0,i=e.nodetype;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textcontent)return e.textcontent;for(e=e.firstchild;e;e=e.nextsibling)n+=c(e)}else if(3===i||4===i)return e.nodevalue}else for(;t=e[r++];)n+=c(t);return n},t=t.selectors={cachelength:50,createpseudo:r,match:pe,attrhandle:{},find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},child:function(e){return e[1]=e[1].tolowercase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},pseudo:function(e){var t,n=!e[6]&&e[2];return pe.child.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=n(n,!0))&&(t=n.indexof(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{tag:function(e){var t=e.replace(be,we).tolowercase();return"*"===e?function(){return!0}:function(e){return e.nodename&&e.nodename.tolowercase()===t}},class:function(e){var t=$[e+" "];return t||(t=new regexp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.classname&&e.classname||"undefined"!=typeof e.getattribute&&e.getattribute("class")||"")})},attr:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexof(r):"*="===n?r&&o.indexof(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexof(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},child:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentnode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextsibling":"previoussibling",m=t.parentnode,y=s&&t.nodename.tolowercase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodename.tolowercase()===y:1===d.nodetype)return!1;h=g="only"===e&&!h&&"nextsibling"}return!0}if(h=[a?m.firstchild:m.lastchild],a&&v){for(d=m,f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}), l=c[e]||[],p=l[0]===w&&l[1],x=p&&l[2],d=p&&m.childnodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodetype&&++x&&d===t){c[e]=[w,p,x];break}}else if(v&&(d=t,f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}),l=c[e]||[],p=l[0]===w&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodename.tolowercase()!==y:1!==d.nodetype)||!++x||(v&&(f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}),c[e]=[w,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},pseudo:function(e,n){var i,o=t.pseudos[e]||t.setfilters[e.tolowercase()]||t.error("unsupported pseudo: "+e);return o[p]?o(n):o.length>1?(i=[e,e,"",n],t.setfilters.hasownproperty(e.tolowercase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[p]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textcontent||t.innertext||c(t)).indexof(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).tolowercase(),function(t){var n;do if(n=_?t.lang:t.getattribute("xml:lang")||t.getattribute("lang"))return n=n.tolowercase(),n===e||0===n.indexof(e+"-");while((t=t.parentnode)&&1===t.nodetype);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===h.activeelement&&(!h.hasfocus||h.hasfocus())&&!!(e.type||e.href||~e.tabindex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodename.tolowercase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentnode&&e.parentnode.selectedindex,e.selected===!0},empty:function(e){for(e=e.firstchild;e;e=e.nextsibling)if(e.nodetype<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return ge.test(e.nodename)},input:function(e){return he.test(e.nodename)},button:function(e){var t=e.nodename.tolowercase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodename.tolowercase()&&"text"===e.type&&(null==(t=e.getattribute("type"))||"text"===t.tolowercase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"id"===(a=o[0]).type&&w.getbyid&&9===t.nodetype&&_&&t.relative[o[1].type]){if(t=(t.find.id(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentnode),e=e.slice(o.shift().value.length)}for(i=pe.needscontext.test(e)?0:o.length;i--&&(a=o[i],!t.relative[s=a.type]);)if((u=t.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentnode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentnode)||t),n},w.sortstable=p.split("").sort(u).join("")===p,w.detectduplicates=!!j,l(),w.sortdetached=i(function(e){return 1&e.comparedocumentposition(h.createelement("div"))}),i(function(e){return e.innerhtml="","#"===e.firstchild.getattribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getattribute(t,"type"===t.tolowercase()?1:2)}),w.attributes&&i(function(e){return e.innerhtml="",e.firstchild.setattribute("value",""),""===e.firstchild.getattribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodename.tolowercase())return e.defaultvalue}),i(function(e){return null==e.getattribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.tolowercase():(r=e.getattributenode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniquesort=pe.unique=ve.uniquesort,pe.text=ve.gettext,pe.isxmldoc=ve.isxml,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodetype;)if(1===e.nodetype){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextsibling)1===e.nodetype&&e!==t&&n.push(e);return n},we=pe.expr.match.needscontext,te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodetype?pe.find.matchesselector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodetype}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushstack(pe(e).filter(function(){for(t=0;t1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushstack(r(this,e||[],!1))},not:function(e){return this.pushstack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var ee,ne=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ee,"string"==typeof e){if(r="<"===e.charat(0)&&">"===e.charat(e.length-1)&&e.length>=3?[null,e,null]:ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parsehtml(r[1],t&&t.nodetype?t.ownerdocument||t:re,!0)),te.test(r[1])&&pe.isplainobject(t))for(r in t)pe.isfunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getelementbyid(r[2]),i&&i.parentnode){if(i.id!==r[2])return ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodetype?(this.context=this[0]=e,this.length=1,this):pe.isfunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makearray(e,this))};ke.prototype=pe.fn,ee=pe(re);var se=/^(?:parents|prev(?:until|all))/,ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodetype&&pe.find.matchesselector(n,e))){o.push(n);break}return this.pushstack(o.length>1?pe.uniquesort(o):o)},index:function(e){return e?"string"==typeof e?pe.inarray(this[0],pe(e)):pe.inarray(e.jquery?e[0]:e,this):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(e,t){return this.pushstack(pe.uniquesort(pe.merge(this.get(),pe(e,t))))},addback:function(e){return this.add(null==e?this.prevobject:this.prevobject.filter(e))}}),pe.each({parent:function(e){var t=e.parentnode;return t&&11!==t.nodetype?t:null},parents:function(e){return xe(e,"parentnode")},parentsuntil:function(e,t,n){return xe(e,"parentnode",n)},next:function(e){return i(e,"nextsibling")},prev:function(e){return i(e,"previoussibling")},nextall:function(e){return xe(e,"nextsibling")},prevall:function(e){return xe(e,"previoussibling")},nextuntil:function(e,t,n){return xe(e,"nextsibling",n)},prevuntil:function(e,t,n){return xe(e,"previoussibling",n)},siblings:function(e){return be((e.parentnode||{}).firstchild,e)},children:function(e){return be(e.firstchild)},contents:function(e){return pe.nodename(e,"iframe")?e.contentdocument||e.contentwindow.document:pe.merge([],e.childnodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(ae[e]||(i=pe.uniquesort(i)),se.test(e)&&(i=i.reverse())),this.pushstack(i)}});var de=/\s+/g;pe.callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inarray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},firewith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.firewith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({deferred:function(e){var t=[["resolve","done",pe.callbacks("once memory"),"resolved"],["reject","fail",pe.callbacks("once memory"),"rejected"],["notify","progress",pe.callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.deferred(function(n){pe.each(t,function(t,o){var a=pe.isfunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isfunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"with"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"with"](this===i?r:this,arguments),this},i[o[0]+"with"]=a.firewith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isfunction(e.promise)?a:0,u=1===s?e:pe.deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifywith(n,r):--s||u.resolvewith(n,r)}};if(a>1)for(t=new array(a),n=new array(a),r=new array(a);i0||(je.resolvewith(re,[pe]),pe.fn.triggerhandler&&(pe(re).triggerhandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.deferred(),"complete"===re.readystate||"loading"!==re.readystate&&!re.documentelement.doscroll)e.settimeout(pe.ready);else if(re.addeventlistener)re.addeventlistener("domcontentloaded",s),e.addeventlistener("load",s);else{re.attachevent("onreadystatechange",s),e.attachevent("onload",s);var n=!1;try{n=null==e.frameelement&&re.documentelement}catch(r){}n&&n.doscroll&&!function i(){if(!pe.isready){try{n.doscroll("left")}catch(t){return e.settimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var le;for(le in pe(fe))break;fe.ownfirst="0"===le,fe.inlineblockneedslayout=!1,pe(function(){var e,t,n,r;n=re.getelementsbytagname("body")[0],n&&n.style&&(t=re.createelement("div"),r=re.createelement("div"),r.style.csstext="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendchild(r).appendchild(t),"undefined"!=typeof t.style.zoom&&(t.style.csstext="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineblockneedslayout=e=3===t.offsetwidth,e&&(n.style.zoom=1)),n.removechild(r))}),function(){var e=re.createelement("div");fe.deleteexpando=!0;try{delete e.test}catch(t){fe.deleteexpando=!1}e=null}();var he=function(e){var t=pe.nodata[(e.nodename+" ").tolowercase()],n=+e.nodetype||1;return(1===n||9===n)&&(!t||t!==!0&&e.getattribute("classid")===t)},qe=/^(?:\{[\w\w]*\}|\[[\w\w]*\])$/,_e=/([a-z])/g;pe.extend({cache:{},nodata:{"applet ":!0,"embed ":!0,"object ":"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},hasdata:function(e){return e=e.nodetype?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removedata:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removedata:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodetype&&!pe._data(o,"parsedattrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexof("data-")&&(r=pe.camelcase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedattrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removedata:function(e){return this.each(function(){pe.removedata(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isarray(n)?r=pe._data(e,t,pe.makearray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queuehooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queuehooks:function(e,t){var n=t+"queuehooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.callbacks("once memory").add(function(){pe._removedata(e,t+"queue"),pe._removedata(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
a",fe.leadingwhitespace=3===e.firstchild.nodetype,fe.tbody=!e.getelementsbytagname("tbody").length,fe.htmlserialize=!!e.getelementsbytagname("link").length,fe.html5clone="<:nav>"!==re.createelement("nav").clonenode(!0).outerhtml,n.type="checkbox",n.checked=!0,t.appendchild(n),fe.appendchecked=n.checked,e.innerhtml="",fe.noclonechecked=!!e.clonenode(!0).lastchild.defaultvalue,t.appendchild(e),n=re.createelement("input"),n.setattribute("type","radio"),n.setattribute("checked","checked"),n.setattribute("name","t"),e.appendchild(n),fe.checkclone=e.clonenode(!0).clonenode(!0).lastchild.checked,fe.nocloneevent=!!e.addeventlistener,e[pe.expando]=1,fe.attributes=!e.getattribute(pe.expando)}();var xe={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:fe.htmlserialize?[0,"",""]:[1,"x
","
"]};xe.optgroup=xe.option,xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td;var ue=/<|&#?\w+;/,ve=/-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexof(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.event(p,"object"==typeof t&&t),t.istrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new regexp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makearray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.nobubble&&!pe.iswindow(r)){for(u=l.delegatetype||p,ke.test(u+p)||(s=s.parentnode);s;s=s.parentnode)d.push(s),c=s;c===(r.ownerdocument||re)&&d.push(c.defaultview||c.parentwindow||e)}for(f=0;(s=d[f++])&&!t.ispropagationstopped();)t.type=f>1?u:l.bindtype||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&he(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventdefault());if(t.type=p,!i&&!t.isdefaultprevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&he(r)&&a&&r[p]&&!pe.iswindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegatetarget=this,!l.predispatch||l.predispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.ispropagationstopped();)for(e.currenttarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isimmediatepropagationstopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleobj=o,e.data=o.data,r=((pe.event.special[o.origtype]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventdefault(),e.stoppropagation()));return l.postdispatch&&l.postdispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegatecount,u=e.target;if(s&&u.nodetype&&("click"!==e.type||isnan(e.button)||e.button<1))for(;u!=this;u=u.parentnode||this)if(1===u.nodetype&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/\s*$/g,at=p(re),st=at.appendchild(re.createelement("div"));pe.extend({htmlprefilter:function(e){return e.replace(tt,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerdocument,e);if(fe.html5clone||pe.isxmldoc(e)||!et.test("<"+e.nodename+">")?o=e.clonenode(!0):(st.innerhtml=e.outerhtml,st.removechild(o=st.firstchild)),!(fe.nocloneevent&&fe.noclonechecked||1!==e.nodetype&&11!==e.nodetype||pe.isxmldoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)n(i,r[a]);else n(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleandata:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||he(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeevent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeattribute?n[s]=void 0:n.removeattribute(s),ne.push(i))}}}),pe.fn.extend({dommanip:s,detach:function(e){return a(this,e,!0)},remove:function(e){return a(this,e)},text:function(e){return pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerdocument||re).createtextnode(e))},null,e,arguments.length)},append:function(){return s(this,arguments,function(e){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var t=t(this,e);t.appendchild(e)}})},prepend:function(){return s(this,arguments,function(e){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var t=t(this,e);t.insertbefore(e,t.firstchild)}})},before:function(){return s(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this)})},after:function(){return s(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this.nextsibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodetype&&pe.cleandata(h(e,!1));e.firstchild;)e.removechild(e.firstchild);e.options&&pe.nodename(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodetype?t.innerhtml.replace(ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlserialize||!et.test(e))&&(fe.leadingwhitespace||!$e.test(e))&&!xe[(we.exec(e)||["",""])[1].tolowercase()]){e=pe.htmlprefilter(e);try{for(;nt",t=l.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)),f.removechild(u)}var n,r,i,o,a,s,u=re.createelement("div"),l=re.createelement("div");l.style&&(l.style.csstext="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssfloat=!!l.style.cssfloat,l.style.backgroundclip="content-box",l.clonenode(!0).style.backgroundclip="",fe.clearclonestyle="content-box"===l.style.backgroundclip,u=re.createelement("div"),u.style.csstext="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerhtml="",u.appendchild(l),fe.boxsizing=""===l.style.boxsizing||""===l.style.mozboxsizing||""===l.style.webkitboxsizing,pe.extend(fe,{reliablehiddenoffsets:function(){return null==n&&t(),o},boxsizingreliable:function(){return null==n&&t(),i},pixelmarginright:function(){return null==n&&t(),r},pixelposition:function(){return null==n&&t(),n},reliablemarginright:function(){return null==n&&t(),a},reliablemarginleft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getcomputedstyle?(ht=function(t){var n=t.ownerdocument.defaultview;return n&&n.opener||(n=e),n.getcomputedstyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getpropertyvalue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerdocument,e)||(a=pe.style(e,t)),n&&!fe.pixelmarginright()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minwidth,o=s.maxwidth,s.minwidth=s.maxwidth=s.width=a,a=n.width,s.width=r,s.minwidth=i,s.maxwidth=o),void 0===a?a:a+""}):pt.currentstyle&&(ht=function(e){return e.currentstyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimestyle,o=i&&i.left,o&&(i.left=e.currentstyle.left),s.left="fontsize"===t?"1em":a,a=s.pixelleft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new regexp("^("+fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},tt={letterspacing:"0",fontweight:"400"},ct=["webkit","o","moz","ms"],et=re.createelement("div").style;pe.extend({csshooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssnumber:{animationiterationcount:!0,columncount:!0,fillopacity:!0,flexgrow:!0,flexshrink:!0,fontweight:!0,lineheight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zindex:!0,zoom:!0},cssprops:{"float":fe.cssfloat?"cssfloat":"stylefloat"},style:function(e,t,n,r){if(e&&3!==e.nodetype&&8!==e.nodetype&&e.style){var i,o,a,s=pe.camelcase(t),u=e.style;if(t=pe.cssprops[s]||(pe.cssprops[s]=h(s)||s),a=pe.csshooks[t]||pe.csshooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssnumber[s]?"":"px")),fe.clearclonestyle||""!==n||0!==t.indexof("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelcase(t);return t=pe.cssprops[s]||(pe.cssprops[s]=h(s)||s),a=pe.csshooks[t]||pe.csshooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(i=parsefloat(o),n===!0||isfinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.csshooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetwidth?dt(e,wt,function(){return m(e,t,r)}):m(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?f(e,t,r,fe.boxsizing&&"border-box"===pe.css(e,"boxsizing",!1,i),i):0)}}}),fe.opacity||(pe.csshooks.opacity={get:function(e,t){return vt.test((t&&e.currentstyle?e.currentstyle.filter:e.style.filter)||"")?.01*parsefloat(regexp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentstyle,i=pe.isnumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeattribute&&(n.removeattribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.csshooks.marginright=l(fe.reliablemarginright,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginright"])}),pe.csshooks.marginleft=l(fe.reliablemarginleft,function(e,t){if(t)return(parsefloat(gt(e,"marginleft"))||(pe.contains(e.ownerdocument,e)?e.getboundingclientrect().left-dt(e,{marginleft:0},function(){return e.getboundingclientrect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"width"},function(e,t){pe.csshooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.csshooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isarray(t)){for(r=ht(e),i=t.length;a1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?pe(this).show():pe(this).hide()})}}),pe.tween=o,o.prototype={constructor:o,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssnumber[n]?"":"px")},cur:function(){var e=o.prophooks[this.prop];return e&&e.get?e.get(this):o.prophooks._default.get(this)},run:function(e){var t,n=o.prophooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):o.prophooks._default.set(this),this}},o.prototype.init.prototype=o.prototype,o.prophooks={_default:{get:function(e){var t;return 1!==e.elem.nodetype||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodetype||null==e.elem.style[pe.cssprops[e.prop]]&&!pe.csshooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},o.prophooks.scrolltop=o.prophooks.scrollleft={set:function(e){e.elem.nodetype&&e.elem.parentnode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-math.cos(e*math.pi)/2},_default:"swing"},pe.fx=o.prototype.init,pe.fx.step={};var nt,kt,st=/^(?:toggle|show|hide)$/,at=/queuehooks$/;pe.animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createtween(e,t);return d(n.elem,e,me.exec(t),n),n}]},tweener:function(e,t){pe.isfunction(e)?(t=e,e=["*"]):e=e.match(de);for(var n,r=0,i=e.length;r
a",e=n.getelementsbytagname("a")[0],t.setattribute("type","checkbox"),n.appendchild(t),e=n.getelementsbytagname("a")[0],e.style.csstext="top:1px",fe.getsetattribute="t"!==n.classname,fe.style=/top/.test(e.getattribute("style")),fe.hrefnormalized="/a"===e.getattribute("href"),fe.checkon=!!t.value,fe.optselected=i.selected,fe.enctype=!!re.createelement("form").enctype,r.disabled=!0,fe.optdisabled=!i.disabled,t=re.createelement("input"),t.setattribute("value",""),fe.input=""===t.getattribute("value"),t.value="t",t.setattribute("type","radio"),fe.radiovalue="t"===t.value}();var dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isfunction(e),this.each(function(n){var i;1===this.nodetype&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isarray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valhooks[this.type]||pe.valhooks[this.nodename.tolowercase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valhooks[i.type]||pe.valhooks[i.nodename.tolowercase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(dt,""):null==n?"":n)}}}),pe.extend({valhooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedindex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)try{r.selected=n=!0}catch(s){r.scrollheight}else r.selected=!1;return n||(e.selectedindex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valhooks[this]={set:function(e,t){if(pe.isarray(t))return e.checked=pe.inarray(pe(e).val(),t)>-1}},fe.checkon||(pe.valhooks[this].get=function(e){return null===e.getattribute("value")?"on":e.value})});var lt,ht,qt=pe.expr.attrhandle,_t=/^(?:checked|selected)$/i,ft=fe.getsetattribute,mt=fe.input;pe.fn.extend({attr:function(e,t){return pe(this,pe.attr,e,t,arguments.length>1)},removeattr:function(e){return this.each(function(){pe.removeattr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodetype;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getattribute?pe.prop(e,t,n):(1===o&&pe.isxmldoc(e)||(t=t.tolowercase(),i=pe.attrhooks[t]||(pe.expr.match.bool.test(t)?ht:lt)),void 0!==n?null===n?void pe.removeattr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setattribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrhooks:{type:{set:function(e,t){if(!fe.radiovalue&&"radio"===t&&pe.nodename(e,"input")){var n=e.value;return e.setattribute("type",t),n&&(e.value=n),t}}}},removeattr:function(e,t){var n,r,i=0,o=t&&t.match(de);if(o&&1===e.nodetype)for(;n=o[i++];)r=pe.propfix[n]||n,pe.expr.match.bool.test(n)?mt&&ft||!_t.test(n)?e[r]=!1:e[pe.camelcase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeattribute(ft?n:r)}}),ht={set:function(e,t,n){return t===!1?pe.removeattr(e,n):mt&&ft||!_t.test(n)?e.setattribute(!ft&&pe.propfix[n]||n,n):e[pe.camelcase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;mt&&ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.tolowercase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelcase("default-"+t)]?t.tolowercase():null}}),mt&&ft||(pe.attrhooks.value={set:function(e,t,n){return pe.nodename(e,"input")?void(e.defaultvalue=t):lt&<.set(e,t,n)}}),ft||(lt={set:function(e,t,n){var r=e.getattributenode(n);if(r||e.setattributenode(r=e.ownerdocument.createattribute(n)),r.value=t+="","value"===n||t===e.getattribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getattributenode(t))&&""!==r.value?r.value:null},pe.valhooks.button={get:function(e,t){var n=e.getattributenode(t);if(n&&n.specified)return n.value},set:lt.set},pe.attrhooks.contenteditable={set:function(e,t,n){lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrhooks[t]={set:function(e,n){if(""===n)return e.setattribute(t,"auto"),n}}})),fe.style||(pe.attrhooks.style={get:function(e){return e.style.csstext||void 0},set:function(e,t){return e.style.csstext=t+""}});var ot=/^(?:input|select|textarea|button|object)$/i,rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return pe(this,pe.prop,e,t,arguments.length>1)},removeprop:function(e){return e=pe.propfix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodetype;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isxmldoc(e)||(t=pe.propfix[t]||t,i=pe.prophooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},prophooks:{tabindex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseint(t,10):ot.test(e.nodename)||rt.test(e.nodename)&&e.href?0:-1}}},propfix:{"for":"htmlfor","class":"classname"}}),fe.hrefnormalized||pe.each(["href","src"],function(e,t){pe.prophooks[t]={get:function(e){return e.getattribute(t,4)}}}),fe.optselected||(pe.prophooks.selected={get:function(e){var t=e.parentnode;return t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex),null},set:function(e){var t=e.parentnode;t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex)}}),pe.each(["tabindex","readonly","maxlength","cellspacing","cellpadding","rowspan","colspan","usemap","frameborder","contenteditable"],function(){pe.propfix[this.tolowercase()]=this}),fe.enctype||(pe.propfix.enctype="encoding");var pt=/[\t\r\n\f]/g;pe.fn.extend({addclass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isfunction(e))return this.each(function(t){pe(this).addclass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(de)||[];n=this[u++];)if(i=z(n),r=1===n.nodetype&&(" "+i+" ").replace(pt," ")){for(a=0;o=t[a++];)r.indexof(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeclass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isfunction(e))return this.each(function(t){pe(this).removeclass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(de)||[];n=this[u++];)if(i=z(n),r=1===n.nodetype&&(" "+i+" ").replace(pt," ")){for(a=0;o=t[a++];)for(;r.indexof(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleclass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addclass(e):this.removeclass(e):pe.isfunction(e)?this.each(function(n){pe(this).toggleclass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(de)||[];t=o[r++];)i.hasclass(t)?i.removeclass(t):i.addclass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__classname__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__classname__")||""))})},hasclass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodetype&&(" "+z(n)+" ").replace(pt," ").indexof(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var bt=e.location,wt=pe.now(),it=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fa-f]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[ee][+-]?\d+|)/g;pe.parsejson=function(t){if(e.json&&e.json.parse)return e.json.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?function("return "+i)():pe.error("invalid json: "+t)},pe.parsexml=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.domparser?(r=new e.domparser,n=r.parsefromstring(t,"text/xml")):(n=new e.activexobject("microsoft.xmldom"),n.async="false",n.loadxml(t))}catch(i){n=void 0}return n&&n.documentelement&&!n.getelementsbytagname("parsererror").length||pe.error("invalid xml: "+t),n};var zt=/#.*$/,xt=/([?&])_=[^&]*/,ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yt=/^(?:get|head)$/,jt=/^\/\//,gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,kt={},qt={},zt="*/".concat("*"),en=bt.href,tn=gt.exec(en.tolowercase())||[];pe.extend({active:0,lastmodified:{},etag:{},ajaxsettings:{url:en,type:"get",islocal:vt.test(tn[1]),global:!0,processdata:!0,async:!0,contenttype:"application/x-www-form-urlencoded; charset=utf-8",accepts:{"*":zt,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":pe.parsejson,"text xml":pe.parsexml},flatoptions:{url:!0,context:!0}},ajaxsetup:function(e,t){return t?v(v(e,pe.ajaxsettings),t):v(pe.ajaxsettings,e)},ajaxprefilter:x(kt),ajaxtransport:x(qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,c=n;2!==b&&(b=2,u&&e.cleartimeout(u),c=void 0,s=i||"",t.readystate=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=y(d,t,r)),x=j(d,x,t,o),o?(d.ifmodified&&(w=t.getresponseheader("last-modified"),w&&(pe.lastmodified[a]=w),w=t.getresponseheader("etag"),w&&(pe.etag[a]=w)),204===t||"head"===d.type?c="nocontent":304===t?c="notmodified":(c=x.state,f=x.data,v=x.error,o=!v)):(v=c,!t&&c||(c="error",t<0&&(t=0))),t.status=t,t.statustext=(n||c)+"",o?g.resolvewith(p,[f,c,t]):g.rejectwith(p,[t,c,v]),t.statuscode(y),y=void 0,l&&h.trigger(o?"ajaxsuccess":"ajaxerror",[t,d,o?f:v]),m.firewith(p,[t,c]),l&&(h.trigger("ajaxcomplete",[t,d]),--pe.active||pe.event.trigger("ajaxstop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxsetup({},n),p=d.context||d,h=d.context&&(p.nodetype||p.jquery)?pe(p):pe.event,g=pe.deferred(),m=pe.callbacks("once memory"),y=d.statuscode||{},v={},x={},b=0,w="canceled",t={readystate:0,getresponseheader:function(e){var t;if(2===b){if(!f)for(f={};t=ut.exec(s);)f[t[1].tolowercase()]=t[2];t=f[e.tolowercase()]}return null==t?null:t},getallresponseheaders:function(){return 2===b?s:null},setrequestheader:function(e,t){var n=e.tolowercase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overridemimetype:function(e){return b||(d.mimetype=e),this},statuscode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else t.always(e[t.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(t).complete=m.add,t.success=t.done,t.error=t.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.datatypes=pe.trim(d.datatype||"*").tolowercase().match(de)||[""],null==d.crossdomain&&(i=gt.exec(d.url.tolowercase()),d.crossdomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processdata&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),u(kt,d,n,t),2===b)return t;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxstart"),d.type=d.type.touppercase(),d.hascontent=!yt.test(d.type),a=d.url,d.hascontent||(d.data&&(a=d.url+=(it.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=xt.test(a)?a.replace(xt,"$1_="+wt++):a+(it.test(a)?"&":"?")+"_="+wt++)),d.ifmodified&&(pe.lastmodified[a]&&t.setrequestheader("if-modified-since",pe.lastmodified[a]),pe.etag[a]&&t.setrequestheader("if-none-match",pe.etag[a])),(d.data&&d.hascontent&&d.contenttype!==!1||n.contenttype)&&t.setrequestheader("content-type",d.contenttype),t.setrequestheader("accept",d.datatypes[0]&&d.accepts[d.datatypes[0]]?d.accepts[d.datatypes[0]]+("*"!==d.datatypes[0]?", "+zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)t.setrequestheader(o,d.headers[o]);if(d.beforesend&&(d.beforesend.call(p,t,d)===!1||2===b))return t.abort();w="abort";for(o in{success:1,error:1,complete:1})t[o](d[o]);if(c=u(qt,d,n,t)){if(t.readystate=1,l&&h.trigger("ajaxsend",[t,d]),2===b)return t;d.async&&d.timeout>0&&(u=e.settimeout(function(){t.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(c){if(!(b<2))throw c;r(-1,c)}}else r(-1,"no transport");return t},getjson:function(e,t,n){return pe.get(e,t,n,"json")},getscript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isfunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,datatype:i,data:n,success:r},pe.isplainobject(e)&&e))}}),pe._evalurl=function(e){return pe.ajax({url:e,type:"get",datatype:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapall:function(e){if(pe.isfunction(e))return this.each(function(t){pe(this).wrapall(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerdocument).eq(0).clone(!0);this[0].parentnode&&t.insertbefore(this[0]),t.map(function(){for(var e=this;e.firstchild&&1===e.firstchild.nodetype;)e=e.firstchild;return e}).append(this)}return this},wrapinner:function(e){return pe.isfunction(e)?this.each(function(t){pe(this).wrapinner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapall(e):t.append(e)})},wrap:function(e){var t=pe.isfunction(e);return this.each(function(n){pe(this).wrapall(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodename(this,"body")||pe(this).replacewith(this.childnodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliablehiddenoffsets()?e.offsetwidth<=0&&e.offsetheight<=0&&!e.getclientrects().length:k(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isfunction(t)?t():null==t?"":t,r[r.length]=encodeuricomponent(e)+"="+encodeuricomponent(t)};if(void 0===t&&(t=pe.ajaxsettings&&pe.ajaxsettings.traditional),pe.isarray(e)||e.jquery&&!pe.isplainobject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializearray())},serializearray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makearray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodename)&&!an.test(e)&&(this.checked||!be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isarray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxsettings.xhr=void 0!==e.activexobject?function(){return this.islocal?ee():re.documentmode>8?z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&z()||ee()}:z;var un=0,ln={},cn=pe.ajaxsettings.xhr();e.attachevent&&e.attachevent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withcredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxtransport(function(t){if(!t.crossdomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrfields)for(o in t.xhrfields)a[o]=t.xhrfields[o];t.mimetype&&a.overridemimetype&&a.overridemimetype(t.mimetype),t.crossdomain||r["x-requested-with"]||(r["x-requested-with"]="xmlhttprequest");for(o in r)void 0!==r[o]&&a.setrequestheader(o,r[o]+"");a.send(t.hascontent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readystate))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readystate&&a.abort();else{l={},o=a.status,"string"==typeof a.responsetext&&(l.text=a.responsetext);try{u=a.statustext}catch(c){u=""}o||!t.islocal||t.crossdomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getallresponseheaders())},t.async?4===a.readystate?e.settimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxsetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globaleval(e),e}}}),pe.ajaxprefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossdomain&&(e.type="get",e.global=!1)}),pe.ajaxtransport("script",function(e){if(e.crossdomain){var t,n=re.head||pe("head")[0]||re.documentelement;return{send:function(r,i){t=re.createelement("script"),t.async=!0,e.scriptcharset&&(t.charset=e.scriptcharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readystate||/loaded|complete/.test(t.readystate))&&(t.onload=t.onreadystatechange=null,t.parentnode&&t.parentnode.removechild(t),t=null,n||i(200,"success"))},n.insertbefore(t,n.firstchild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxsetup({jsonp:"callback",jsonpcallback:function(){var e=fn.pop()||pe.expando+"_"+wt++;return this[e]=!0,e}}),pe.ajaxprefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contenttype||"").indexof("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.datatypes[0])return i=t.jsonpcallback=pe.isfunction(t.jsonpcallback)?t.jsonpcallback():t.jsonpcallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(it.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.datatypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeprop(i):e[i]=o,t[i]&&(t.jsonpcallback=n.jsonpcallback,fn.push(i)),a&&pe.isfunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parsehtml=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=te.exec(e),i=!n&&[];return r?[t.createelement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childnodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexof(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isfunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="post"),a.length>0&&pe.ajax({url:e,type:i||"get",datatype:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("
").append(pe.parsehtml(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responsetext,t,e])})}),this},pe.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setoffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inarray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parsefloat(o)||0,i=parsefloat(u)||0),pe.isfunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setoffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerdocument;if(o)return t=o.documentelement,pe.contains(t,i)?("undefined"!=typeof i.getboundingclientrect&&(r=i.getboundingclientrect()),n=te(o),{top:r.top+(n.pageyoffset||t.scrolltop)-(t.clienttop||0),left:r.left+(n.pagexoffset||t.scrollleft)-(t.clientleft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getboundingclientrect():(e=this.offsetparent(),t=this.offset(),pe.nodename(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"bordertopwidth",!0),n.left+=pe.css(e[0],"borderleftwidth",!0)),{top:t.top-n.top-pe.css(r,"margintop",!0),left:t.left-n.left-pe.css(r,"marginleft",!0)}}},offsetparent:function(){return this.map(function(){ for(var e=this.offsetparent;e&&!pe.nodename(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetparent;return e||pt})}}),pe.each({scrollleft:"pagexoffset",scrolltop:"pageyoffset"},function(e,t){var n=/y/.test(t);pe.fn[e]=function(r){return pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentelement[r]:e[r]:void(o?o.scrollto(n?pe(o).scrollleft():i,n?i:pe(o).scrolltop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.csshooks[t]=l(fe.pixelposition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({height:"height",width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return pe(this,function(t,n,r){var i;return pe.iswindow(t)?t.document.documentelement["client"+e]:9===t.nodetype?(i=t.documentelement,math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andself=pe.fn.addback,layui.define(function(e){layui.$=pe,e("jquery",pe)}),pe});!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getpath:function(){var e=document.currentscript?document.currentscript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readystate){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastindexof("/")+1)}(),config:{},end:{},minindex:0,minleft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getstyle:function(t,i){var n=t.currentstyle?t.currentstyle:e.getcomputedstyle(t,null);return n[n.getpropertyvalue?"getpropertyvalue":"getattribute"](i)},link:function(t,i,n){if(r.path){var a=document.getelementsbytagname("head")[0],s=document.createelement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getelementbyid(f)||a.appendchild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: invalid"):void(1989===parseint(o.getstyle(document.getelementbyid(f),"width"))?i():settimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.useragent.tolowercase();return!!(e.activexobject||"activexobject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getpath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closebtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closebtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxwidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():settimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",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},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zindex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
'+(f?r.title[0]:r.title)+"
":"";return r.zindex=s,t([r.shade?'
':"",'
'+(e&&2!=r.type?"":u)+'
'+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
'+function(){var e=c?'':"";return r.closebtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
'+e+"
"}():"")+(r.resize?'':"")+"
"],u,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeall("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"http://layer.layui.com","auto"];t.content='';break;case 3:delete t.title,delete t.closebtn,t.icon===-1&&0===t.icon,r.closeall("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsmore||r.closeall("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addclass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveelem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||settimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addclass(u).one("webkitanimationend mozanimationend msanimationend oanimationend animationend",function(){i(this).removeclass(u)})}t.isoutanim&&e.layero.data("isoutanim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxwidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerwidth()),o.outerwidth()>a.maxwidth&&o.width(a.maxwidth));var s=[o.innerwidth(),o.innerheight()],f=o.find(l[1]).outerheight()||0,c=o.find("."+l[6]).outerheight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parsefloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxheight>0&&o.outerheight()>a.maxheight?(s[1]=a.maxheight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerwidth(),i.outerheight()],o="object"==typeof t.offset;e.offsettop=(n.height()-a[1])/2,e.offsetleft=(n.width()-a[0])/2,o?(e.offsettop=t.offset[0],e.offsetleft=t.offset[1]||e.offsetleft):"auto"!==t.offset&&("t"===t.offset?e.offsettop=0:"r"===t.offset?e.offsetleft=n.width()-a[0]:"b"===t.offset?e.offsettop=n.height()-a[1]:"l"===t.offset?e.offsetleft=0:"lt"===t.offset?(e.offsettop=0,e.offsetleft=0):"lb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=0):"rt"===t.offset?(e.offsettop=0,e.offsetleft=n.width()-a[0]):"rb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=n.width()-a[0]):e.offsettop=t.offset),t.fixed||(e.offsettop=/%$/.test(e.offsettop)?n.height()*parsefloat(e.offsettop)/100:parsefloat(e.offsettop),e.offsetleft=/%$/.test(e.offsetleft)?n.width()*parsefloat(e.offsetleft)/100:parsefloat(e.offsetleft),e.offsettop+=n.scrolltop(),e.offsetleft+=n.scrollleft()),i.attr("minleft")&&(e.offsettop=n.height()-(i.find(l[1]).outerheight()||0),e.offsetleft=i.css("left")),i.css({top:e.offsettop,left:e.offsetleft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerwidth(),a.outerheight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerwidth(),height:r.outerheight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-tipsg"),c=t.tips[0];t.tips[1]||f.remove(),s.autoleft=function(){s.left+o[0]-n.width()>0?(s.tipleft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipleft=s.left},s.where=[function(){s.autoleft(),s.tiptop=s.top-o[1]-10,f.removeclass("layui-layer-tipsb").addclass("layui-layer-tipst").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left+s.width+10,s.tiptop=s.top,f.removeclass("layui-layer-tipsl").addclass("layui-layer-tipsr").css("border-bottom-color",t.tips[1])},function(){s.autoleft(),s.tiptop=s.top+s.height+10,f.removeclass("layui-layer-tipst").addclass("layui-layer-tipsb").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left-o[0]-10,s.tiptop=s.top,f.removeclass("layui-layer-tipsr").addclass("layui-layer-tipsl").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrolltop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrolltop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closebtn?"30px":""}),a.css({left:s.tipleft-(t.fixed?n.scrollleft():0),top:s.tiptop-(t.fixed?n.scrolltop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventdefault(),t.move&&(c.movestart=!0,c.offset=[e.clientx-parsefloat(s.css("left")),e.clienty-parsefloat(s.css("top"))],o.moveelem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventdefault(),c.resizestart=!0,c.offset=[e.clientx,e.clienty],c.area=[s.outerwidth(),s.outerheight()],o.moveelem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.movestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1],l="fixed"===s.css("position");if(i.preventdefault(),c.stx=l?0:n.scrollleft(),c.sty=l?0:n.scrolltop(),!t.moveout){var f=n.width()-s.outerwidth()+c.stx,u=n.height()-s.outerheight()+c.sty;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1];i.preventdefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isresize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.movestart&&(delete c.movestart,o.moveelem.hide(),t.moveend&&t.moveend(s)),c.resizestart&&(delete c.resizestart,o.moveelem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openlayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.ie6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeclose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasclass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),settimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeattr("layer").show(),n=null})},s.pt.ie6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openlayer=function(){var e=this;r.zindex=e.config.zindex,r.settop=function(e){var t=function(){r.zindex++,e.css("z-index",r.zindex+1)};return r.zindex=parseint(e[0].style.zindex),e.on("mousedown",t),r.zindex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parsefloat(e.css("margin-left"))];e.find(".layui-layer-max").addclass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeproperty?l.html[0].style.removeproperty("overflow"):l.html[0].style.removeattribute("overflow"),l.html.removeattr("layer-full"))},e.layer=r,r.getchildframe=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getframeindex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeauto=function(e){if(e){var t=r.getchildframe("html",e).outerheight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerheight()||0,o=n.find("."+l[6]).outerheight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframesrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerheight()||0,c=a.find("."+l[6]).outerheight()||0;a.attr("minleft");s!==o.type[3]&&s!==o.type[4]&&(n||(parsefloat(t.width)<=260&&(t.width=260),parsefloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerheight(),s===o.type[2]?a.find("iframe").css({height:parsefloat(t.height)-f-c}):r.css({height:parsefloat(t.height)-f-c-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerheight()||0,f=a.attr("minleft")||181*o.minindex+"px",c=a.css("position");o.record(a),o.minleft[0]&&(f=o.minleft[0],o.minleft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minleft")||o.minindex++,a.attr("minleft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parsefloat(n[0]),height:parsefloat(n[1]),top:parsefloat(n[2]),left:parsefloat(n[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(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),cleartimeout(t),t=settimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrolltop(),left:t?0:n.scrollleft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("contype")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeclass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentwindow.document.write(""),f.contentwindow.close(),t.find("."+l[5])[0].removechild(f)}catch(c){}t[0].innerhtml="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isoutanim")&&t.addclass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minleft")&&(o.minindex--,o.minleft.push(t.attr("minleft"))),r.ie&&r.ie<10||!t.data("isoutanim")?f():settimeout(function(){f()},200)}},r.closeall=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formtype?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxwidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
    '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return a}()+"
",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0;var a=i(this),o=a.index();a.addclass(n).siblings().removeclass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgindex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgindex--,s.imgindex<1&&(s.imgindex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgindex++,s.imgindex>u.length&&(s.imgindex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keycode;e.preventdefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgindex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventdefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventdefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
'+(u.length>1?'':"")+'
'+(u[d].alt||"")+""+s.imgindex+"/"+u.length+"
",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jquery),r}):function(){o.run(e.jquery),r.ready()}()}(window);layui.define("jquery",function(i){"use strict";var t=layui.$,a=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(i){var a=this;return t.extend(!0,a.config,i),a},s.prototype.on=function(i,t){return layui.onevent.call(this,e,i,t)},s.prototype.tabadd=function(i,a){var e=".layui-tab-title",l=t(".layui-tab[lay-filter="+i+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),c='
  • '+(a.title||"unnaming")+"
  • ";return s[0]?s.before(c):n.append(c),o.append('
    '+(a.content||"")+"
    "),y.hidetabmore(!0),y.tabauto(),this},s.prototype.tabdelete=function(i,a){var e=".layui-tab-title",l=t(".layui-tab[lay-filter="+i+"]"),n=l.children(e),s=n.find('>li[lay-id="'+a+'"]');return y.tabdelete(null,s),this},s.prototype.tabchange=function(i,a){var e=".layui-tab-title",l=t(".layui-tab[lay-filter="+i+"]"),n=l.children(e),s=n.find('>li[lay-id="'+a+'"]');return y.tabclick.call(s[0],null,null,s),this},s.prototype.tab=function(i){i=i||{},v.on("click",i.headerelem,function(a){var e=t(this).index();y.tabclick.call(this,a,e,null,i)})},s.prototype.progress=function(i,a){var e="layui-progress",l=t("."+e+"[lay-filter="+i+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",a),s.text(a),this};var o=".layui-nav",c="layui-nav-item",r="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",h="layui-nav-more",f="layui-anim layui-anim-upbit",y={tabclick:function(i,a,s,o){o=o||{};var c=s||t(this),a=a||c.parent().children("li").index(c),r=o.headerelem?c.parent():c.parents(".layui-tab").eq(0),u=o.bodyelem?t(o.bodyelem):r.children(".layui-tab-content").children(".layui-tab-item"),d=c.find("a"),h=r.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(c.addclass(l).siblings().removeclass(l),u.eq(a).addclass(n).siblings().removeclass(n)),layui.event.call(this,e,"tab("+h+")",{elem:r,index:a})},tabdelete:function(i,a){var n=a||t(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),c=o.children(".layui-tab-content").children(".layui-tab-item"),r=o.attr("lay-filter");n.hasclass(l)&&(n.next()[0]?y.tabclick.call(n.next()[0],null,s+1):n.prev()[0]&&y.tabclick.call(n.prev()[0],null,s-1)),n.remove(),c.eq(s).remove(),settimeout(function(){y.tabauto()},50),layui.event.call(this,e,"tabdelete("+r+")",{elem:o,index:s})},tabauto:function(){var i="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;t(".layui-tab").each(function(){var s=t(this),o=s.children(".layui-tab-title"),c=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),r=t('');if(n===window&&8!=a.ie&&y.hidetabmore(!0),s.attr("lay-allowclose")&&o.find("li").each(function(){var i=t(this);if(!i.find("."+l)[0]){var a=t('');a.on("click",y.tabdelete),i.append(a)}}),o.prop("scrollwidth")>o.outerwidth()+1){if(o.find("."+e)[0])return;o.append(r),s.attr("overflow",""),r.on("click",function(t){o[this.title?"removeclass":"addclass"](i),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeattr("overflow")})},hidetabmore:function(i){var a=t(".layui-tab-title");i!==!0&&"tabmore"===t(i.target).attr("lay-stope")||(a.removeclass("layui-tab-more"),a.find(".layui-tab-bar").attr("title",""))},clickthis:function(){var i=t(this),a=i.parents(o),n=a.attr("lay-filter"),s=i.find("a"),c="string"==typeof i.attr("lay-unselect");i.find("."+d)[0]||("javascript:;"!==s.attr("href")&&"_blank"===s.attr("target")||c||(a.find("."+l).removeclass(l),i.addclass(l)),layui.event.call(this,e,"nav("+n+")",i))},clickchild:function(){var i=t(this),a=i.parents(o),n=a.attr("lay-filter");a.find("."+l).removeclass(l),i.addclass(l),layui.event.call(this,e,"nav("+n+")",i)},showchild:function(){var i=t(this),a=i.parents(o),e=i.parent(),l=i.siblings("."+d);a.hasclass(u)&&(l.removeclass(f),e["none"===l.css("display")?"addclass":"removeclass"](c+"ed"))},collapse:function(){var i=t(this),a=i.find(".layui-colla-icon"),l=i.siblings(".layui-colla-content"),s=i.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),c="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var r=s.children(".layui-colla-item").children("."+n);r.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),r.removeclass(n)}l[c?"addclass":"removeclass"](n),a.html(c?"":""),layui.event.call(this,e,"collapse("+o+")",{title:i,content:l,show:c})}};s.prototype.init=function(i,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){y.tabauto.call({})},nav:function(){var i=200,e={},s={},p={},v=function(l,o,c){var r=t(this),y=r.find("."+d);o.hasclass(u)?l.css({top:r.position().top,height:r.children("a").height(),opacity:1}):(y.addclass(f),l.css({left:r.position().left+parsefloat(r.css("marginleft")),top:r.position().top+r.height()-l.height()}),e[c]=settimeout(function(){l.css({width:r.width(),opacity:1})},a.ie&&a.ie<10?0:i),cleartimeout(p[c]),"block"===y.css("display")&&cleartimeout(s[c]),s[c]=settimeout(function(){y.addclass(n),r.find("."+h).addclass(h+"d")},300))};t(o+l).each(function(a){var l=t(this),o=t(''),f=l.find("."+c);l.find("."+r)[0]||(l.append(o),f.on("mouseenter",function(){v.call(this,o,l,a)}).on("mouseleave",function(){l.hasclass(u)||(cleartimeout(s[a]),s[a]=settimeout(function(){l.find("."+d).removeclass(n),l.find("."+h).removeclass(h+"d")},300))}),l.on("mouseleave",function(){cleartimeout(e[a]),p[a]=settimeout(function(){l.hasclass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},i)})),f.each(function(){var i=t(this),a=i.find("."+d);if(a[0]&&!i.find("."+h)[0]){var e=i.children("a");e.append('')}i.off("click",y.clickthis).on("click",y.clickthis),i.children("a").off("click",y.showchild).on("click",y.showchild),a.children("dd").off("click",y.clickchild).on("click",y.clickchild)})})},breadcrumb:function(){var i=".layui-breadcrumb";t(i+l).each(function(){var i=t(this),a="lay-separator",e=i.attr(a)||"/",l=i.find("a");l.next("span["+a+"]")[0]||(l.each(function(i){i!==l.length-1&&t(this).after(""+e+"")}),i.css("visibility","visible"))})},progress:function(){var i="layui-progress";t("."+i+l).each(function(){var a=t(this),e=a.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new function("return "+l)()+"%":l}()),a.attr("lay-showpercent")&&settimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var i="layui-collapse";t("."+i+l).each(function(){var i=t(this).find(".layui-colla-item");i.each(function(){var i=t(this),a=i.find(".layui-colla-title"),e=i.find(".layui-colla-content"),l="none"===e.css("display");a.find(".layui-colla-icon").remove(),a.append(''+(l?"":"")+""),a.off("click",y.collapse).on("click",y.collapse)})})}};return s[i]?s[i]():layui.each(s,function(i,t){t()})},s.prototype.render=s.prototype.init;var p=new s,v=t(document);p.render();var b=".layui-tab-title li";v.on("click",b,y.tabclick),v.on("click",y.hidetabmore),t(window).on("resize",y.tabauto),i(e,p)});layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,r,e,i)}},l=function(){var e=this;return{upload:function(i){e.upload.call(e,i)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var t=this;t.config=i.extend({},t.config,o.config,e),t.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindaction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var t=this,e=t.config;e.elem=i(e.elem),e.bindaction=i(e.bindaction),t.file(),t.events()},p.prototype.file=function(){var e=this,t=e.config,n=e.elemfile=i(['"].join("")),o=t.elem.next();(o.hasclass(u)||o.hasclass(c))&&o.remove(),a.ie&&a.ie<10&&t.elem.wrap('
    '),e.isfile()?(e.elemfile=t.elem,t.field=t.elem[0].name):t.elem.after(n),a.ie&&a.ie<10&&e.initie()},p.prototype.initie=function(){var e=this,t=e.config,n=i(''),a=i(['
    ',"
    "].join(""));i("#"+f)[0]||i("body").append(n),t.elem.next().hasclass(f)||(e.elemfile.wrap(a),t.elem.next("."+f).append(function(){var e=[];return layui.each(t.data,function(i,t){e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},p.prototype.isfile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagname.tolocalelowercase()&&"file"===e.type},p.prototype.preview=function(e){var i=this;window.filereader&&layui.each(i.choosefiles,function(i,t){var n=new filereader;n.readasdataurl(t),n.onload=function(){e&&e(i,t,this.result)}})},p.prototype.upload=function(e,t){var n,o=this,l=o.config,r=o.elemfile[0],u=function(){var t=0,n=0,a=e||o.files||o.choosefiles||r.files,u=function(){l.multiple&&t+n===o.filelength&&"function"==typeof l.alldone&&l.alldone({total:o.filelength,successful:t,aborted:n})};layui.each(a,function(e,a){var r=new formdata;r.append(l.field,a),layui.each(l.data,function(e,i){r.append(e,i)}),i.ajax({url:l.url,type:l.method,data:r,contenttype:!1,processdata:!1,datatype:"json",success:function(i){t++,d(e,i),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=i("#"+f);o.elemfile.parent().submit(),clearinterval(p.timer),p.timer=setinterval(function(){var i,t=e.contents().find("body");try{i=t.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearinterval(p.timer),m()}i&&(clearinterval(p.timer),t.html(""),d(0,i))},30)},d=function(e,i){if(o.elemfile.next("."+s).remove(),r.value="","object"!=typeof i)try{i=json.parse(i)}catch(t){return i={},o.msg("请对上传接口返回有效json")}"function"==typeof l.done&&l.done(i,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var i=[];return layui.each(e||o.choosefiles,function(e,t){i.push(t.name)}),i}(),g={preview:function(e){o.preview(e)},upload:function(e,i){var t={};t[e]=i,o.upload(t)},pushfile:function(){return o.files=o.files||{},layui.each(o.choosefiles,function(e,i){o.files[e]=i}),o.files}},y=function(){return"choose"===t?l.choose&&l.choose(g):(l.before&&l.before(g),a.ie?a.ie>9?u():c():void u())};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!regexp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!regexp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!regexp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,i){regexp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(i))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.filelength=function(){var i=0,t=e||o.files||o.choosefiles||r.files;return layui.each(t,function(){i++}),i}(),l.number&&o.filelength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var f;if(layui.each(o.choosefiles,function(e,i){if(i.size>1024*l.size){var t=l.size/1024;t=t>=1?math.floor(t)+(t%1>0?t.tofixed(1):0)+"mb":l.size+"kb",r.value="",f=t}}),f)return o.msg("文件不能超过"+f)}y()}},p.prototype.events=function(){var e=this,t=e.config,o=function(i){e.choosefiles={},layui.each(i,function(i,t){var n=(new date).gettime();e.choosefiles[n+"-"+i]=t})},l=function(i,n){var a=e.elemfile,o=i.length>1?i.length+"个文件":(i[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasclass(s)&&a.next().remove(),e.upload(null,"choose"),e.isfile()||t.choose||a.after(''+o+"")};t.elem.off("upload.start").on("upload.start",function(){var a=i(this),o=a.attr("lay-data");if(o)try{o=new function("return "+o)(),e.config=i.extend({},t,o)}catch(l){n.error("upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemfile[0].click()}),a.ie&&a.ie<10||t.elem.off("upload.over").on("upload.over",function(){var e=i(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=i(this);e.removeattr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=i(this),u=a.originalevent.datatransfer.files||[];r.removeattr("lay-over"),o(u),t.auto?e.upload(u):l(u)}),e.elemfile.off("upload.change").on("upload.change",function(){var i=this.files||[];o(i),t.auto?e.upload():l(i)}),t.bindaction.off("upload.action").on("upload.action",function(){e.upload()}),t.elem.data("haveevents")||(e.elemfile.on("change",function(){i(this).trigger("upload.change")}),t.elem.on("click",function(){e.isfile()||i(this).trigger("upload.start")}),t.drag&&t.elem.on("dragover",function(e){e.preventdefault(),i(this).trigger("upload.over")}).on("dragleave",function(e){i(this).trigger("upload.leave")}).on("drop",function(e){e.preventdefault(),i(this).trigger("upload.drop",e)}),t.bindaction.on("click",function(){i(this).trigger("upload.action")}),t.elem.data("haveevents",!0))},o.render=function(e){var i=new p(e);return l.call(i)},e(r,o)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",u="layui-disabled",c=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(e){if(!e||isnan(e))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)$)/,"请输入正确的身份证号"]}}};c.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},c.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},c.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},c.prototype.render=function(e,i){var n=this,c=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=c.find("select"),y=function(i,l){t(i.target).parent().hasclass(n)&&!l||(t("."+a).removeclass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},h=function(i,c,f){var h=t(this),p=i.find("."+n),m=p.find("input"),k=i.find("dl"),g=k.children("dd");if(!c){var x=function(){var e=i.offset().top+i.outerheight()+5-v.scrolltop(),t=k.outerheight();i.addclass(a+"ed"),g.removeclass(o),e+t>v.height()&&e>=t&&i.addclass(a+"up")},b=function(e){i.removeclass(a+"ed "+a+"up"),m.blur(),e||c(m.val(),function(e){e&&(d=k.find("."+s).html(),m&&m.val(d))})};p.on("click",function(e){i.hasclass(a+"ed")?b():(y(e,!0),x()),k.find("."+r).remove()}),p.find(".layui-edge").on("click",function(){m.focus()}),m.on("keyup",function(e){var t=e.keycode;9===t&&x()}).on("keydown",function(e){var t=e.keycode;9===t?b():13===t&&e.preventdefault()});var c=function(e,i,a){var n=0;layui.each(g,function(){var i=t(this),l=i.text(),r=l.indexof(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&i[r?"addclass":"removeclass"](o)});var l=n===g.length;return i(l),l},w=function(e){var t=this.value,i=e.keycode;return 9!==i&&13!==i&&37!==i&&38!==i&&39!==i&&40!==i&&(c(t,function(e){e?k.find("."+r)[0]||k.append('

    无匹配项

    '):k.find("."+r).remove()},"keyup"),void(""===t&&k.find("."+r).remove()))};f&&m.on("keyup",w).on("blur",function(t){e=m,d=k.find("."+s).html(),settimeout(function(){c(m.val(),function(e){d||m.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=h.attr("lay-filter");return!e.hasclass(u)&&(e.hasclass("layui-select-tips")?m.val(""):(m.val(e.text()),e.addclass(s)),e.siblings().removeclass(s),h.val(a).removeclass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:h[0],value:a,othis:i}),b(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",y).on("click",y)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),c=this.disabled,d=l.value,f=t(l.options[l.selectedindex]),y=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var v="string"==typeof r.attr("lay-search"),p=y?y.value?i:y.innerhtml||i:i,m=t(['
    ','
    ','
    ','
    '+function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagname.tolowercase()?t.push("
    "+a.label+"
    "):t.push('
    '+a.innerhtml+"
    "):t.push('
    '+(a.innerhtml||i)+"
    ")}),0===t.length&&t.push('
    没有选项
    '),t.join("")}(r.find("*"))+"
    ","
    "].join(""));o[0]&&o.remove(),r.after(m),h.call(this,m,c,v)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=c.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeclass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addclass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var c=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+c[0]),f=t(['
    ',{_switch:""+((n.checked?s[0]:s[1])||"")+""}[r]||(n.title.replace(/\s/g,"")?""+n.title+"":"")+''+(r?"":"")+"","
    "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,c)})},radio:function(){var e="layui-form-radio",i=["",""],a=c.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scalespring";a.on("click",function(){var o=n[0].name,u=n.parents(r),c=n.attr("lay-filter"),d=u.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeclass(e+"ed"),a.find(".layui-icon").removeclass(s).html(i[1])}),n[0].checked=!0,a.addclass(e+"ed"),a.find(".layui-icon").addclass(s).html(i[0]),layui.event.call(n[0],l,"radio("+c+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var c=t(['
    ',''+i[l.checked?0:1]+"","
    "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
    ","
    "].join(""));r.after(c),n.call(this,c)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",u={},c=e.parents(r),d=c.find("*[lay-verify]"),y=e.parents("form")[0],v=c.find("input,select,textarea"),h=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),u=r.attr("lay-verify").split("|"),c=r.attr("lay-vertype"),d=r.val();if(r.removeclass(o),layui.each(u,function(e,t){var u,f="",y="function"==typeof a[t];if(a[t]){var u=y?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],u)return"tips"===c?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagname.tolowercase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===c?i.alert(f,{title:"提示",shadeclose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||l.focus(),r.addclass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(v,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(u[t.name]=t.value)}}),layui.event.call(this,l,"submit("+h+")",{elem:this,form:y,field:u})},f=new c,y=t(document),v=t(window);f.render(),y.on("reset",r,function(){var e=t(this).attr("lay-filter");settimeout(function(){f.render(null,e)},50)}),y.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addclass("layui-box layui-tree"),o.options.skin&&e.addclass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
      '),s=o(["
    • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return r.check?''+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
    • "].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeclass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addclass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('
      '));e.preventdefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addclass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pagex+10,top:e.pagey+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeclass(i),e.to&&e.to.elem.children("a").removeclass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addclass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeclass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})});layui.define(["laytpl","laypage","layer","form"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=layui.hint(),r=layui.device(),d={config:{checkname:"lay_checked",indexname:"lay_table_index"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,s,e,t)}},c=function(){var e=this,t=e.config,i=t.id;return i&&(c.config[i]=t),{reload:function(t){e.reload.call(e,t)},config:t}},s="table",u=".layui-table",h="layui-hide",f="layui-none",y="layui-table-view",p=".layui-table-header",m=".layui-table-body",v=".layui-table-main",g=".layui-table-fixed",x=".layui-table-fixed-l",b=".layui-table-fixed-r",k=".layui-table-tool",c=".layui-table-page",w=".layui-table-sort",n="layui-table-edit",f="layui-table-hover",w=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
      ','
      1){ }}","group","{{# } else { }}","{{d.index}}-{{item2.field || i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(!(item2.colspan > 1) && item2.sort){ }}",'',"{{# } }}","{{# } }}","
      ","
      "].join("")},z=['',"","
      "].join(""),a=['
      ',"{{# if(d.data.toolbar){ }}",'
      ',"{{# } }}",'
      ',"{{# var left, right; }}",'
      ',w(),"
      ",'
      ',z,"
      ","{{# if(left){ }}",'
      ','
      ',w({fixed:!0}),"
      ",'
      ',z,"
      ","
      ","{{# }; }}","{{# if(right){ }}",'
      ','
      ',w({fixed:"right"}),'
      ',"
      ",'
      ',z,"
      ","
      ","{{# }; }}","
      ","{{# if(d.data.page){ }}",'
      ','
      ',"
      ","{{# } }}","","
      "].join(""),t=t(window),m=t(document),s=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};s.prototype.config={limit:10,loading:!0,cellminwidth:60,text:{none:"无数据"}},s.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id"),a.request=t.extend({pagename:"page",limitname:"limit"},a.request),a.response=t.extend({statusname:"code",statuscode:0,msgname:"msg",dataname:"data",countname:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;e.setarea();var l=a.elem,n=l.next("."+y),o=e.elem=t(i(a).render({view_class:y,data:a,index:e.index}));if(a.index=e.index,n[0]&&n.remove(),l.after(o),e.layheader=o.find(p),e.laymain=o.find(v),e.laybody=o.find(m),e.layfixed=o.find(g),e.layfixleft=o.find(x),e.layfixright=o.find(b),e.laytool=o.find(k),e.laypage=o.find(c),e.laytool.html(i(t(a.toolbar).html()||"").render(a)),a.height&&e.fullsize(),a.cols.length>1){var r=e.layfixed.find(p).find("th");r.height(e.layheader.height()-1-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom")))}e.pulldata(e.page),e.events()},s.prototype.initopts=function(e){var t=this,i=(t.config,{checkbox:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},s.prototype.setarea=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=t.width||function(){var e=function(i){var a,l;i=i||t.elem.parent(),a=i.width();try{l="none"===i.css("display")}catch(n){}return!i[0]||a&&!l?a:e(i.parent())};return e()}();e.eachcols(function(){i++}),o-=function(){return"line"===t.skin||"nob"===t.skin?2:i+1}(),layui.each(t.cols,function(t,i){layui.each(i,function(t,l){var r;return l?(e.initopts(l),r=l.width||0,void(l.colspan>1||(/\d+%$/.test(r)?l.width=r=math.floor(parsefloat(r)/100*o):r||(l.width=r=0,a++),n+=r))):void i.splice(t,1)})}),e.autocolnums=a,o>n&&a&&(l=(o-n)/a),layui.each(t.cols,function(e,i){layui.each(i,function(e,i){var a=i.minwidth||t.cellminwidth;i.colspan>1||0===i.width&&(i.width=math.floor(l>=a?l:a))})}),t.height&&/^full-\d+$/.test(t.height)&&(e.fullheightgap=t.height.split("-")[1],t.height=t.height()-e.fullheightgap)},s.prototype.reload=function(e){var i=this;i.config.data&&i.config.data.constructor===array&&delete i.config.data,i.config=t.extend({},i.config,e),i.render()},s.prototype.page=1,s.prototype.pulldata=function(e,i){var a=this,n=a.config,o=n.request,r=n.response,d=function(){"object"==typeof n.initsort&&a.sort(n.initsort.field,n.initsort.type)};if(a.starttime=(new date).gettime(),n.url){var c={};c[o.pagename]=e,c[o.limitname]=n.limit,t.ajax({type:n.method||"get",url:n.url,data:t.extend(c,n.where),datatype:"json",success:function(t){t[r.statusname]!=r.statuscode?(a.renderform(),a.laymain.html('
      '+(t[r.msgname]||"返回的数据状态异常")+"
      ")):(a.renderdata(t,e,t[r.countname]),d(),n.time=(new date).gettime()-a.starttime+" ms"),i&&l.close(i),"function"==typeof n.done&&n.done(t,e,t[r.countname])},error:function(e,t){a.laymain.html('
      数据接口请求异常
      '),a.renderform(),i&&l.close(i)}})}else if(n.data&&n.data.constructor===array){var s={},u=e*n.limit-n.limit;s[r.dataname]=n.data.concat().splice(u,n.limit),s[r.countname]=n.data.length,a.renderdata(s,e,n.data.length),d(),"function"==typeof n.done&&n.done(s,e,s[r.countname])}},s.prototype.eachcols=function(e){var i=t.extend(!0,[],this.config.cols),a=[],l=0;layui.each(i,function(e,t){layui.each(t,function(t,n){if(n.colspan>1){var o=0;l++,n.child_cols=[],layui.each(i[e+1],function(e,t){t.parent_col||o==n.colspan||(t.parent_col=l,n.child_cols.push(t),o+=t.colspan>1?t.colspan:1)})}n.parent_col||a.push(n)})});var n=function(t){layui.each(t||a,function(t,i){return i.child_cols?n(i.child_cols):void e(t,i)})};n()},s.prototype.renderdata=function(e,n,o,r){var c=this,s=c.config,u=e[s.response.dataname]||[],y=[],p=[],m=[],v=function(){return!r&&c.sortkey?c.sort(c.sortkey.field,c.sortkey.sort,!0):(layui.each(u,function(e,a){var l=[],o=[],u=[],h=e+s.limit*(n-1)+1;0!==a.length&&(r||(a[d.config.indexname]=e),c.eachcols(function(e,n){var r=n.field||e,f=a[r];c.getcolelem(c.layheader,r);if(void 0!==f&&null!==f||(f=""),!(n.colspan>1)){var y=['",'
      '+function(){var e=t.extend(!0,{lay_index:h},a);return"checkbox"===n.type?'":"numbers"===n.type?h:n.toolbar?i(t(n.toolbar).html()||"").render(e):n.templet?function(){return"function"==typeof n.templet?n.templet(e):i(t(n.templet).html()||string(f)).render(e)}():f}(),"
      "].join("");l.push(y),n.fixed&&"right"!==n.fixed&&o.push(y),"right"===n.fixed&&u.push(y)}}),y.push(''+l.join("")+""),p.push(''+o.join("")+""),m.push(''+u.join("")+""))}),c.laybody.scrolltop(0),c.laymain.find("."+f).remove(),c.laymain.find("tbody").html(y.join("")),c.layfixleft.find("tbody").html(p.join("")),c.layfixright.find("tbody").html(m.join("")),c.renderform(),c.synccheckall(),c.haveinit?c.scrollpatch():settimeout(function(){c.scrollpatch()},50),c.haveinit=!0,void l.close(c.tipsindex))};return c.key=s.id||s.index,d.cache[c.key]=u,c.laypage[0===u.length&&1==n?"addclass":"removeclass"](h),r?v():0===u.length?(c.renderform(),c.layfixed.remove(),c.laymain.find("tbody").html(""),c.laymain.find("."+f).remove(),c.laymain.append('
      '+s.text.none+"
      ")):(v(),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pulldata(e.curr,c.loading()))}},s.page),s.page.count=o,a.render(s.page))))},s.prototype.getcolelem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},s.prototype.renderform=function(e){n.render(e,"lay-table-"+this.index)},s.prototype.sort=function(e,i,a,l){var n,r,c=this,u={},h=c.config,f=h.elem.attr("lay-filter"),y=d.cache[c.key];"string"==typeof e&&c.layheader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field");if(c.sortkey&&!a&&n===c.sortkey.field&&i===c.sortkey.sort)return;var p=c.layheader.find("th .laytable-cell-"+h.index+"-"+n).find(w);c.layheader.find("th").find(w).removeattr("lay-sort"),p.attr("lay-sort",i||null),c.layfixed.find("th")}catch(m){return o.error("table modules: did not match to field")}c.sortkey={field:n,sort:i},"asc"===i?r=layui.sort(y,n):"desc"===i?r=layui.sort(y,n,!0):(r=layui.sort(y,d.config.indexname),delete c.sortkey),u[h.response.dataname]=r,c.renderdata(u,c.page,c.count,!0),l&&layui.event.call(e,s,"sort("+f+")",{field:n,type:i})},s.prototype.loading=function(){var e=this,t=e.config;if(t.loading&&t.url)return l.msg("数据请求中",{icon:16,offset:[e.elem.offset().top+e.elem.height()/2-35-t.scrolltop()+"px",e.elem.offset().left+e.elem.width()/2-90-t.scrollleft()+"px"],time:-1,anim:-1,fixed:!1})},s.prototype.setcheckdata=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==array&&(l[e][a.checkname]=t)},s.prototype.synccheckall=function(){var e=this,t=e.config,i=e.layheader.find('input[name="laytablecheckbox"]'),a=function(i){return e.eachcols(function(e,a){"checkbox"===a.type&&(a[t.checkname]=i)}),i};i[0]&&(d.checkstatus(e.key).isall?(i[0].checked||(i.prop("checked",!0),e.renderform("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderform("checkbox")),a(!1)))},s.prototype.getcssrule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.stylesheet||{},n=l.cssrules||l.rules;layui.each(n,function(a,l){if(l.selectortext===".laytable-cell-"+i.index+"-"+e)return t(l),!0})},s.prototype.fullsize=function(){var e,t=this,i=t.config,a=i.height;t.fullheightgap&&(a=t.height()-t.fullheightgap,a<135&&(a=135),t.elem.css("height",a)),e=parsefloat(a)-parsefloat(t.layheader.height())-1,i.toolbar&&(e-=t.laytool.outerheight()),i.page&&(e=e-t.laypage.outerheight()-1),t.laymain.css("height",e)},s.prototype.getscrollwidth=function(e){var t=0;return e?t=e.offsetwidth-e.clientwidth:(e=document.createelement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowy="scroll",document.body.appendchild(e),t=e.offsetwidth-e.clientwidth,document.body.removechild(e)),t},s.prototype.scrollpatch=function(){var e=this,i=e.laymain.children("table"),a=e.laymain.width()-e.laymain.prop("clientwidth"),l=e.laymain.height()-e.laymain.prop("clientheight"),n=e.getscrollwidth(e.laymain[0]),o=i.outerwidth()-e.laymain.width();if(e.autocolnums&&o<5&&!e.scrollpatchwstatus){var r=e.layheader.eq(0).find("thead th:last-child"),d=r.data("field");e.getcssrule(d,function(t){var i=t.style.width||r.outerwidth();t.style.width=parsefloat(i)-n-o+"px",e.laymain.height()-e.laymain.prop("clientheight")>0&&(t.style.width=parsefloat(t.style.width)-1+"px"),e.scrollpatchwstatus=!0})}if(a&&l){if(!e.elem.find(".layui-table-patch")[0]){var c=t('
      ');c.find("div").css({width:a}),e.layheader.eq(0).find("thead tr").append(c)}}else e.layheader.eq(0).find(".layui-table-patch").remove();var s=e.laymain.height(),u=s-l;e.layfixed.find(m).css("height",i.height()>u?u:"auto"),e.layfixright[o>0?"removeclass":"addclass"](h),e.layfixright.css("right",a-1)},s.prototype.events=function(){var e,a=this,n=a.config,o=t("body"),c={},u=a.layheader.find("th"),h=".layui-table-cell",f=n.elem.attr("lay-filter");u.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientx-a;i.attr("colspan")>1||i.data("unresize")||c.resizestart||(c.allowresize=i.width()-l<=10,o.css("cursor",c.allowresize?"col-resize":""))}).on("mouseleave",function(){t(this);c.resizestart||o.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(c.allowresize){var l=i.data("field");e.preventdefault(),c.resizestart=!0,c.offset=[e.clientx,e.clienty],a.getcssrule(l,function(e){var t=e.style.width||i.outerwidth();c.rule=e,c.rulewidth=parsefloat(t),c.minwidth=i.data("minwidth")||n.cellminwidth})}}),m.on("mousemove",function(t){if(c.resizestart){if(t.preventdefault(),c.rule){var i=c.rulewidth+t.clientx-c.offset[0];i');d[0].value=e.data("content")||o.text(),e.find("."+n)[0]||e.append(d),d.focus()}else o.find(".layui-form-switch,.layui-form-checkbox")[0]||math.round(o.prop("scrollwidth"))>math.round(o.outerwidth())&&(a.tipsindex=l.tips(['
      ',o.html(),"
      ",''].join(""),o[0],{tips:[3,""],time:-1,anim:-1,maxwidth:r.ios||r.android?300:600,isoutanim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}))}),a.laybody.on("click","*[lay-event]",function(){var e=t(this),l=e.parents("tr").eq(0).data("index"),n=a.laybody.find('tr[data-index="'+l+'"]'),o="layui-table-click",r=d.cache[a.key][l];layui.event.call(this,s,"tool("+f+")",{data:d.clearcachekey(r),event:e.attr("lay-event"),tr:n,del:function(){d.cache[a.key][l]=[],n.remove(),a.scrollpatch()},update:function(e){e=e||{},layui.each(e,function(e,l){if(e in r){var o,d=n.children('td[data-field="'+e+'"]');r[e]=l,a.eachcols(function(t,i){i.field==e&&i.templet&&(o=i.templet)}),d.children(h).html(o?i(t(o).html()||l).render(r):l),d.data("content",l)}})}}),n.addclass(o).siblings("tr").removeclass(o)}),a.laymain.on("scroll",function(){var e=t(this),i=e.scrollleft(),n=e.scrolltop();a.layheader.scrollleft(i),a.layfixed.find(m).scrolltop(n),l.close(a.tipsindex)}),t.on("resize",function(){a.fullsize(),a.scrollpatch()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':u+"[lay-data]"),n="table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},d.checkstatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===array?void i++:void(l[d.config.checkname]&&(t++,a.push(d.clearcachekey(l))))}),{data:a,isall:!!l.length&&t===l.length-i}},c.config={},d.reload=function(e,i){var a=c.config[e];return i=i||{},a?(i.data&&i.data.constructor===array&&delete a.data,d.render(t.extend(!0,{},a,i))):o.error("the id option was not found in the table instance")},d.render=function(e){var t=new s(e);return c.call(t)},d.clearcachekey=function(e){return e=t.extend({},e),delete e[d.config.checkname],delete e[d.config.indexname],e},d.init(),e(s,d)});layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemitem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemitem.length&&(n.index=e.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),e.elemitem.eq(n.index).addclass(a),e.elemitem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearinterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.previndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemitem.length-1),n},m.prototype.nextindex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemitem.length&&(n=0),n},m.prototype.addindex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemitem.length&&(n.index=0)},m.prototype.subindex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemitem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setinterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemind=i(['
        ',function(){var i=[];return layui.each(e.elemitem,function(e){i.push("")}),i.join("")}(),"
      "].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a',e.bar1?'
    • '+c[0]+"
    • ":"",e.bar2?'
    • '+c[1]+"
    • ":"",'
    • '+c[2]+"
    • ",""].join("")),s=g.find("."+r),u=function(){var t=n.scrolltop();t>=e.showheight?i||(s.show(),i=1):i&&(s.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&g.css(e.css),l.append(g),u(),g.find("li").on("click",function(){var i=t(this),o=i.attr("lay-type");"top"===o&&t("html,body").animate({scrolltop:0},200),e.click&&e.click.call(this,o)}),n.on("scroll",function(){cleartimeout(o),o=settimeout(function(){u()},100)}))},countdown:function(e,t,i){var o=this,a="function"==typeof t,r=new date(e).gettime(),n=new date(!t||a?(new date).gettime():t).gettime(),l=r-n,c=[math.floor(l/864e5),math.floor(l/36e5)%24,math.floor(l/6e4)%60,math.floor(l/1e3)%60];a&&(i=t);var g=settimeout(function(){o.countdown(e,n+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,g),l<=0&&cleartimeout(g),g},timeago:function(e,t){var i=this,o=[[],[]],a=(new date).gettime()-new date(e).gettime();return a>6912e5?(a=new date(e),o[0][0]=i.digit(a.getfullyear(),4),o[0][1]=i.digit(a.getmonth()+1),o[0][2]=i.digit(a.getdate()),t||(o[1][0]=i.digit(a.gethours()),o[1][1]=i.digit(a.getminutes()),o[1][2]=i.digit(a.getseconds())),o[0].join("-")+" "+o[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=string(e),t=t||2;for(var o=e.length;o';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollelem||document),u=e.mb||50,s=!("isauto"in e)||e.isauto,v=e.end||"没有更多了",y=e.scrollelem&&e.scrollelem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.islazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollelem:e.scrollelem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrolltop();r&&cleartimeout(r),i||(r=settimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollheight"):document.documentelement.scrollheight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollelem||document),r=e.elem||"img",a=e.scrollelem&&e.scrollelem!==document,c=function(e,l){var o=n.scrolltop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeattr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrolltop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&cleartimeout(m),m=settimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hidetool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("#"+t),u="lay_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hidetool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){c[a]&&!e[a]&&t.push(c[a])}),t.join("")}(),m=e(['
      ','
      '+f+"
      ",'
      ','',"
      ","
      "].join(""));return l.ie&&l.ie<8?c.removeclass("layui-hide").addclass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addclass("layui-hide").after(m),a.index)},c.prototype.getcontent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerhtml)},c.prototype.gettext=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setcontent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerhtml))}},c.prototype.getselection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.tostring()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentwindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#lay_layedit_"+t),a=i.prop("contentwindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.tolowercase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keycode;if(13===e){var a=m(r),l=p(a),n=l.parentnode;if("pre"===n.tagname.tolowercase()){if(t.shiftkey)return;return i.msg("请暂时用shift+enter"),!1}r.execcommand("formatblock",!1,"

      ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.tolowercase()})),n.value=t}),c.on("paste",function(e){r.execcommand("formatblock",!1,"

      "),settimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textalign;this.removeattribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addclass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createrange():t.getselection().getrangeat(0)},p=function(t){return t.endcontainer||t.parentelement().childnodes[0]},v=function(t,i,a){var l=this.document,n=document.createelement(t);for(var o in i)n.setattribute(o,i[o]);if(n.removeattribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerhtml=r),a.pastehtml(e(n).prop("outerhtml")),a.select()}else{var r=a.tostring()||i.text;if("a"===t&&!r)return;r&&(n.innerhtml=r),a.deletecontents(),a.insertnode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasclass(l)?"removeclass":"addclass"](l),t.find(">i").removeclass(l),o("unlink").addclass(r),e(n).parents().each(function(){var t=this.tagname.tolowercase(),e=this.style.textalign;"b"!==t&&"strong"!==t||o("b").addclass(l),"i"!==t&&"em"!==t||o("i").addclass(l),"u"===t&&o("u").addclass(l),"strike"===t&&o("d").addclass(l),"p"===t&&("center"===e?o("center").addclass(l):"right"===e?o("right").addclass(l):o("left").addclass(l)),"a"===t&&(o("link").addclass(l),o("unlink").removeclass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"a"===a.tagname?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execcommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadimage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},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"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasclass(r)){o.focus();var u=m(n);u.commonancestorcontainer;l?(n.execcommand(l),/justifyleft|justifycenter|justifyright/.test(l)&&n.execcommand("formatblock",!1,"

      "),settimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"lay_layedit_link",area:"350px",shade:.05,shadeclose:!0,movetype:1,title:"超链接",skin:"layui-layer-msg",content:['

        ','
      • ','','
        ','',"
        ","
      • ",'
      • ','','
        ','",'","
        ","
      • ",'
      • ','','',"
      • ","
      "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[no]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
    • '+e+'
    • ')}),'
        '+t.join("")+"
      "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxwidth:500,success:function(l,n){l.css({margintop:-4,marginleft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"lay_layedit_code",area:"550px",shade:.05,shadeclose:!0,movetype:1,title:"插入代码",skin:"layui-layer-msg",content:['
        ','
      • ','','
        ','","
        ","
      • ",'
      • ','','
        ','',"
        ","
      • ",'
      • ','','',"
      • ","
      "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},c={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
      1. '+o.replace(/[\r\t\n]+/g,"
      2. ")+"
      "),c.find(">.layui-code-h3")[0]||c.prepend('

      '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

      ");var d=c.find(">.layui-code-ol");c.addclass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addclass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");