/*! mit licensed */;!function(t){"use strict";var e=t.document,n={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.6.8"},o=t.layui_global||{},a=function(){var t=e.currentscript?e.currentscript.src:function(){for(var t,n=e.scripts,r=n.length-1,o=r;o>0;o--)if("interactive"===n[o].readystate){t=n[o].src;break}return t||n[r].src}();return n.dir=o.dir||t.substring(0,t.lastindexof("/")+1)}(),i=function(e,n){n=n||"log",t.console&&console[n]&&console[n]("layui error hint: "+e)},u="undefined"!=typeof opera&&"[object opera]"===opera.tostring(),l=n.builtin={lay:"lay",layer:"layer",laydate:"laydate",laypage:"laypage",laytpl:"laytpl",layedit:"layedit",form:"form",upload:"upload",dropdown:"dropdown",transfer:"transfer",tree:"tree",table:"table",element:"element",rate:"rate",colorpicker:"colorpicker",slider:"slider",carousel:"carousel",flow:"flow",util:"util",code:"code",jquery:"jquery",all:"all","layui.all":"layui.all"};r.prototype.cache=n,r.prototype.define=function(t,e){var r=this,o="function"==typeof t,a=function(){var t=function(t,e){layui[t]=e,n.status[t]=!0};return"function"==typeof e&&e(function(r,o){t(r,o),n.callback[r]=function(){e(t)}}),this};return o&&(e=t,t=[]),r.use(t,a,null,"define"),r},r.prototype.use=function(r,o,c,s){function p(t,e){var r="playstation 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===t.type||r.test((t.currenttarget||t.srcelement).readystate))&&(n.modules[h]=e,v.removechild(b),function o(){return++m>1e3*n.timeout/4?i(h+" is not a valid module","error"):void(n.status[h]?f():settimeout(o,4))}())}function f(){c.push(layui[h]),r.length>1?y.use(r.slice(1),o,c,s):"function"==typeof o&&function(){return layui.jquery&&"function"==typeof layui.jquery&&"define"!==s?layui.jquery(function(){o.apply(layui,c)}):void o.apply(layui,c)}()}var y=this,d=n.dir=n.dir?n.dir:a,v=e.getelementsbytagname("head")[0];r=function(){return"string"==typeof r?[r]:"function"==typeof r?(o=r,["all"]):r}(),t.jquery&&jquery.fn.on&&(y.each(r,function(t,e){"jquery"===e&&r.splice(t,1)}),layui.jquery=layui.$=jquery);var h=r[0],m=0;if(c=c||[],n.host=n.host||(d.match(/\/\/([\s\s]+?)\//)||["//"+location.host+"/"])[0],0===r.length||layui["layui.all"]&&l[h])return f(),y;var g=(l[h]?d+"modules/":/^\{\/\}/.test(y.modules[h])?"":n.base||"")+(y.modules[h]||h)+".js";if(g=g.replace(/^\{\/\}/,""),!n.modules[h]&&layui[h]&&(n.modules[h]=g),n.modules[h])!function s(){return++m>1e3*n.timeout/4?i(h+" is not a valid module","error"):void("string"==typeof n.modules[h]&&n.status[h]?f():settimeout(s,4))}();else{var b=e.createelement("script");b.async=!0,b.charset="utf-8",b.src=g+function(){var t=n.version===!0?n.v||(new date).gettime():n.version||"";return t?"?v="+t:""}(),v.appendchild(b),!b.attachevent||b.attachevent.tostring&&b.attachevent.tostring().indexof("[native code")<0||u?b.addeventlistener("load",function(t){p(t,g)},!1):b.attachevent("onreadystatechange",function(t){p(t,g)}),n.modules[h]=g}return y},r.prototype.getstyle=function(e,n){var r=e.currentstyle?e.currentstyle:t.getcomputedstyle(e,null);return r[r.getpropertyvalue?"getpropertyvalue":"getattribute"](n)},r.prototype.link=function(t,r,o){var a=this,u=e.getelementsbytagname("head")[0],l=e.createelement("link");"string"==typeof r&&(o=r);var c=(o||t).replace(/\.|\//g,""),s=l.id="layuicss-"+c,p="creating",f=0;return l.rel="stylesheet",l.href=t+(n.debug?"?v="+(new date).gettime():""),l.media="all",e.getelementbyid(s)||u.appendchild(l),"function"!=typeof r?a:(function y(o){var u=100,l=e.getelementbyid(s);return++f>1e3*n.timeout/u?i(t+" timeout"):void(1989===parseint(a.getstyle(l,"width"))?(o===p&&l.removeattribute("lay-status"),l.getattribute("lay-status")===p?settimeout(y,u):r()):(l.setattribute("lay-status",p),settimeout(function(){y(p)},u)))}(),a)},r.prototype.addcss=function(t,e,r){return layui.link(n.dir+"css/"+t,e,r)},n.callback={},r.prototype.factory=function(t){if(layui[t])return"function"==typeof n.callback[t]?n.callback[t]:null},r.prototype.img=function(t,e,n){var r=new image;return r.src=t,r.complete?e(r):(r.onload=function(){r.onload=null,"function"==typeof e&&e(r)},void(r.onerror=function(t){r.onerror=null,"function"==typeof n&&n(t)}))},r.prototype.config=function(t){t=t||{};for(var e in t)n[e]=t[e];return this},r.prototype.modules=function(){var t={};for(var e in l)t[e]=l[e];return t}(),r.prototype.extend=function(t){var e=this;t=t||{};for(var n in t)e[n]||e.modules[n]?i(n+" module already exists","error"):e.modules[n]=t[n];return e},r.prototype.router=function(t){var e=this,t=t||location.hash,n={path:[],search:{},hash:(t.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(t)?(t=t.replace(/^#\//,""),n.href="/"+t,t=t.replace(/([^#])(#.*$)/,"$1").split("/")||[],e.each(t,function(t,e){/^\w+=/.test(e)?function(){e=e.split("="),n.search[e[0]]=e[1]}():n.path.push(e)}),n):n},r.prototype.url=function(t){var e=this,n={pathname:function(){var e=t?function(){var e=(t.match(/\.[^.]+?\/.+/)||[])[0]||"";return e.replace(/^[^\/]+/,"").replace(/\?.+/,"")}():location.pathname;return e.replace(/^\//,"").split("/")}(),search:function(){var n={},r=(t?function(){var e=(t.match(/\?.+/)||[])[0]||"";return e.replace(/\#.+/,"")}():location.search).replace(/^\?+/,"").split("&");return e.each(r,function(t,e){var r=e.indexof("="),o=function(){return r<0?e.substr(0,e.length):0!==r&&e.substr(0,r)}();o&&(n[o]=r>0?e.substr(r+1):null)}),n}(),hash:e.router(function(){return t?(t.match(/#.+/)||[])[0]||"/":location.hash}())};return n},r.prototype.data=function(e,n,r){if(e=e||"layui",r=r||localstorage,t.json&&t.json.parse){if(null===n)return delete r[e];n="object"==typeof n?n:{key:n};try{var o=json.parse(r[e])}catch(a){var o={}}return"value"in n&&(o[n.key]=n.value),n.remove&&delete o[n.key],r[e]=json.stringify(o),n.key?o[n.key]:o}},r.prototype.sessiondata=function(t,e){return this.data(t,e,sessionstorage)},r.prototype.device=function(e){var n=navigator.useragent.tolowercase(),r=function(t){var e=new regexp(t+"/([^\\s\\_\\-]+)");return t=(n.match(e)||[])[1],t||!1},o={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!!(t.activexobject||"activexobject"in t)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:r("micromessenger")};return e&&!o[e]&&(o[e]=r(e)),o.android=/android/.test(n),o.ios="ios"===o.os,o.mobile=!(!o.android&&!o.ios),o},r.prototype.hint=function(){return{error:i}},r.prototype._typeof=function(t){return null===t?string(t):"object"==typeof t||"function"==typeof t?function(){var e=object.prototype.tostring.call(t).match(/\s(.+)\]$/)||[],n="function|array|date|regexp|object|error|symbol";return e=e[1]||"object",new regexp("\\b("+n+")\\b").test(e)?e.tolowercase():"object"}():typeof t},r.prototype._isarray=function(e){var n,r=this,o=r._typeof(e);return!(!e||"object"!=typeof e||e===t)&&(n="length"in e&&e.length,"array"===o||0===n||"number"==typeof n&&n>0&&n-1 in e)},r.prototype.each=function(t,e){var n,r=this,o=function(t,n){return e.call(n[t],t,n[t])};if("function"!=typeof e)return r;if(t=t||[],r._isarray(t))for(n=0;no?1:r(t.innerheight||n.documentelement.clientheight)},r.position=function(e,o,i){if(o){i=i||{},e!==n&&e!==r("body")[0]||(i.clicktype="right");var c="right"===i.clicktype?function(){var e=i.e||t.event||{};return{left:e.clientx,top:e.clienty,right:e.clientx,bottom:e.clienty}}():e.getboundingclientrect(),u=o.offsetwidth,a=o.offsetheight,f=function(t){return t=t?"scrollleft":"scrolltop",n.body[t]|n.documentelement[t]},s=function(t){return n.documentelement[t?"clientwidth":"clientheight"]},l=5,h=c.left,p=c.bottom;"center"===i.align?h-=(u-e.offsetwidth)/2:"right"===i.align&&(h=h-u+e.offsetwidth),h+u+l>s("width")&&(h=s("width")-u-l),hs()&&(c.top>a+l?p=c.top-a-2*l:"right"===i.clicktype&&(p=s()-a-2*l,p<0&&(p=0)));var y=i.position;if(y&&(o.style.position=y),o.style.left=h+("fixed"===y?0:f(1))+"px",o.style.top=p+("fixed"===y?0:f())+"px",!r.hasscrollbar()){var d=o.getboundingclientrect();!i.system_reload&&d.bottom+l>s()&&(i.system_reload=!0,settimeout(function(){r.position(e,o,i)},50))}}},r.options=function(t,e){var n=r(t),o=e||"lay-options";try{return new function("return "+(n.attr(o)||"{}"))()}catch(i){return hint.error("parseerror\uff1a"+i,"error"),{}}},r.istopelem=function(t){var e=[n,r("body")[0]],o=!1;return r.each(e,function(e,n){if(n===t)return o=!0}),o},o.addstr=function(t,e){return t=t.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),r.each(e,function(e,n){new regexp("\\b"+n+"\\b").test(t)||(t=t+" "+n)}),t.replace(/^\s|\s$/,"")},o.removestr=function(t,e){return t=t.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),r.each(e,function(e,n){var r=new regexp("\\b"+n+"\\b");r.test(t)&&(t=t.replace(r,""))}),t.replace(/\s+/," ").replace(/^\s|\s$/,"")},o.prototype.find=function(t){var e=this,n=0,o=[],i="object"==typeof t;return this.each(function(r,c){for(var u=i?c.contains(t):c.queryselectorall(t||null);n0)return n[0].style[t]}():n.each(function(n,i){"object"==typeof t?r.each(t,function(t,e){i.style[t]=o(e)}):i.style[t]=o(e)})},o.prototype.width=function(t){var e=this;return void 0===t?function(){if(e.length>0)return e[0].offsetwidth}():e.each(function(n,r){e.css("width",t)})},o.prototype.height=function(t){var e=this;return void 0===t?function(){if(e.length>0)return e[0].offsetheight}():e.each(function(n,r){e.css("height",t)})},o.prototype.attr=function(t,e){var n=this;return void 0===e?function(){if(n.length>0)return n[0].getattribute(t)}():n.each(function(n,r){r.setattribute(t,e)})},o.prototype.removeattr=function(t){return this.each(function(e,n){n.removeattribute(t)})},o.prototype.html=function(t){var e=this;return void 0===t?function(){if(e.length>0)return e[0].innerhtml}():this.each(function(e,n){n.innerhtml=t})},o.prototype.val=function(t){var e=this;return void 0===t?function(){if(e.length>0)return e[0].value}():this.each(function(e,n){n.value=t})},o.prototype.append=function(t){return this.each(function(e,n){"object"==typeof t?n.appendchild(t):n.innerhtml=n.innerhtml+t})},o.prototype.remove=function(t){return this.each(function(e,n){t?n.removechild(t):n.parentnode.removechild(n)})},o.prototype.on=function(t,e){return this.each(function(n,r){r.attachevent?r.attachevent("on"+t,function(t){t.target=t.srcelement,e.call(r,t)}):r.addeventlistener(t,e,!1)})},o.prototype.off=function(t,e){return this.each(function(n,r){r.detachevent?r.detachevent("on"+t,e):r.removeeventlistener(t,e,!1)})},t.lay=r,t.layui&&layui.define&&layui.define(function(t){t(e,r)})}(window,window.document);layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new regexp(e,"g")},query:function(e,c,t){var o=["#([\\s\\s])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return string(e||"").replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//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,"$1")+';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,"$1")+')+"')}),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:'\u5171 '+a.count+" \u6761",limit:function(){var e=['"}(),refresh:['','',""].join(""),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(e,t){"use strict";var a=e.layui&&layui.define,n={getpath:e.lay&&lay.getpath?lay.getpath:"",link:function(t,a,n){l.path&&e.lay&&lay.layui&&lay.layui.link(l.path+t,a,n)}},i=e.layui_global||{},l={v:"5.3.1",config:{},index:e.laydate&&e.laydate.v?1e5:0,path:i.laydate_dir||n.getpath,set:function(e){var t=this;return t.config=lay.extend({},t.config,e),t},ready:function(e){var t="laydate",i="",r=(a?"modules/laydate/":"theme/")+"default/laydate.css?v="+l.v+i;return a?layui.addcss(r,e,t):n.link(r,e,t),this}},r=function(){var e=this,t=e.config,a=t.id;return r.that[a]=e,{hint:function(t){e.hint.call(e,t)},config:e.config}},o="laydate",s=".layui-laydate",y="layui-this",d="laydate-disabled",m=[100,2e5],c="layui-laydate-static",u="layui-laydate-list",h="layui-laydate-hint",f="layui-laydate-footer",p=".laydate-btns-confirm",g="laydate-time-text",v="laydate-btns-time",t="layui-laydate-preview",d=function(e){var t=this;t.index=++l.index,t.config=lay.extend({},t.config,l.config,e),e=t.config,e.id="id"in e?e.id:t.index,l.ready(function(){t.init()})},w="yyyy|y|mm|m|dd|d|hh|h|mm|m|ss|s";r.formatarr=function(e){return(e||"").match(new regexp(w+"|.","g"))||[]},d.isleapyear=function(e){return e%4===0&&e%100!==0||e%400===0},d.prototype.config={type:"date",range:!1,format:"yyyy-mm-dd",value:null,isinitvalue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showbottom:!0,ispreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zindex:null,done:null,change:null},d.prototype.lang=function(){var e=this,t=e.config,a={cn:{weeks:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],time:["\u65f6","\u5206","\u79d2"],timetips:"\u9009\u62e9\u65f6\u95f4",starttime:"\u5f00\u59cb\u65f6\u95f4",endtime:"\u7ed3\u675f\u65f6\u95f4",datetips:"\u8fd4\u56de\u65e5\u671f",month:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],tools:{confirm:"\u786e\u5b9a",clear:"\u6e05\u7a7a",now:"\u73b0\u5728"},timeout:"\u7ed3\u675f\u65f6\u95f4\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65f6\u95f4
\u8bf7\u91cd\u65b0\u9009\u62e9",invaliddate:"\u4e0d\u5728\u6709\u6548\u65e5\u671f\u6216\u65f6\u95f4\u8303\u56f4\u5185",formaterror:["\u65e5\u671f\u683c\u5f0f\u4e0d\u5408\u6cd5
\u5fc5\u987b\u9075\u5faa\u4e0b\u8ff0\u683c\u5f0f\uff1a
","
\u5df2\u4e3a\u4f60\u91cd\u7f6e"],preview:"\u5f53\u524d\u9009\u4e2d\u7684\u7ed3\u679c"},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"},timeout:"end time cannot be less than start time
please re-select",invaliddate:"invalid date",formaterror:["the date format error
must be followed\uff1a
","
it has been reset"],preview:"the selected result"}};return a[t.lang]||a.cn},d.prototype.init=function(){var t=this,a=t.config,n="static"===a.position,i={year:"yyyy",month:"yyyy-mm",date:"yyyy-mm-dd",time:"hh:mm:ss",datetime:"yyyy-mm-dd hh:mm:ss"};a.elem=lay(a.elem),a.eventelem=lay(a.eventelem),a.elem[0]&&(t.rangestr=a.range?"string"==typeof a.range?a.range:"-":"","array"===layui._typeof(a.range)&&(t.rangeelem=[lay(a.range[0]),lay(a.range[1])]),i[a.type]||(e.console&&console.error&&console.error("laydate type error:'"+a.type+"' is not supported"),a.type="date"),a.format===i.date&&(a.format=i[a.type]||i.date),t.format=r.formatarr(a.format),t.exp_if="",t.exp_split="",lay.each(t.format,function(e,a){var n=new regexp(w).test(a)?"\\d{"+function(){return new regexp(w).test(t.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;t.exp_if=t.exp_if+n,t.exp_split=t.exp_split+"("+n+")"}),t.exp_if_one=new regexp("^"+t.exp_if+"$"),t.exp_if=new regexp("^"+(a.range?t.exp_if+"\\s\\"+t.rangestr+"\\s"+t.exp_if:t.exp_if)+"$"),t.exp_split=new regexp("^"+t.exp_split+"$",""),t.isinput(a.elem[0])||"focus"===a.trigger&&(a.trigger="click"),a.elem.attr("lay-key")||(a.elem.attr("lay-key",t.index),a.eventelem.attr("lay-key",t.index)),a.mark=lay.extend({},a.calendar&&"cn"===a.lang?{"0-1-1":"\u5143\u65e6","0-2-14":"\u60c5\u4eba","0-3-8":"\u5987\u5973","0-3-12":"\u690d\u6811","0-4-1":"\u611a\u4eba","0-5-1":"\u52b3\u52a8","0-5-4":"\u9752\u5e74","0-6-1":"\u513f\u7ae5","0-9-10":"\u6559\u5e08","0-9-18":"\u56fd\u803b","0-10-1":"\u56fd\u5e86","0-12-25":"\u5723\u8bde"}:{},a.mark),lay.each(["min","max"],function(e,t){var n=[],i=[];if("number"==typeof a[t]){var l=a[t],r=(new date).gettime(),o=864e5,s=new date(l?l0)return!0;var t=lay.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=lay.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerhtml="",e}(),function(){var e=lay.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerhtml="",e}(),function(){var e=lay.elem("div",{"class":"laydate-set-ym"}),t=lay.elem("span"),a=lay.elem("span");return e.appendchild(t),e.appendchild(a),e}(),function(){var e=lay.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerhtml="",e}(),function(){var e=lay.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerhtml="",e}()],l=lay.elem("div",{"class":"layui-laydate-content"}),r=lay.elem("table"),m=lay.elem("thead"),c=lay.elem("tr");lay.each(i,function(e,a){t.appendchild(a)}),m.appendchild(c),lay.each(new array(6),function(e){var t=r.insertrow(0);lay.each(new array(7),function(a){if(0===e){var i=lay.elem("th");i.innerhtml=n.weeks[a],c.appendchild(i)}t.insertcell(a)})}),r.insertbefore(m,r.children[0]),l.appendchild(r),o[e]=lay.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),o[e].appendchild(t),o[e].appendchild(l),s.push(i),y.push(l),d.push(r)}),lay(m).html(function(){var e=[],t=[];return"datetime"===a.type&&e.push(''+n.timetips+""),(a.range||"datetime"!==a.type)&&e.push(''),lay.each(a.btns,function(e,l){var r=n.tools[l]||"btn";a.range&&"now"===l||(i&&"clear"===l&&(r="cn"===a.lang?"\u91cd\u7f6e":"reset"),t.push(''+r+""))}),e.push('"),e.join("")}()),lay.each(o,function(e,t){r.appendchild(t)}),a.showbottom&&r.appendchild(m),/^#/.test(a.theme)){var u=lay.elem("style"),h=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemid).replace(/{{theme}}/g,a.theme);"stylesheet"in u?(u.setattribute("type","text/css"),u.stylesheet.csstext=h):u.innerhtml=h,lay(r).addclass("laydate-theme-molv"),r.appendchild(u)}l.thisid=a.id,e.remove(d.thiselemdate),i?a.elem.append(r):(t.body.appendchild(r),e.position()),e.checkdate().calendar(null,0,"init"),e.changeevent(),d.thiselemdate=e.elemid,"function"==typeof a.ready&&a.ready(lay.extend({},a.datetime,{month:a.datetime.month+1})),e.preview()},d.prototype.remove=function(e){var t=this,a=(t.config,lay("#"+(e||t.elemid)));return a[0]?(a.hasclass(c)||t.checkdate(function(){a.remove()}),t):t},d.prototype.position=function(){var e=this,t=e.config;return lay.position(e.bindelem||t.elem[0],e.elem,{position:t.position}),e},d.prototype.hint=function(e){var t=this,a=(t.config,lay.elem("div",{"class":h}));t.elem&&(a.innerhtml=e||"",lay(t.elem).find("."+h).remove(),t.elem.appendchild(a),cleartimeout(t.hintimer),t.hintimer=settimeout(function(){lay(t.elem).find("."+h).remove()},3e3))},d.prototype.getasym=function(e,t,a){return a?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},d.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}},d.prototype.checkdate=function(e){var t,a,n=this,i=(new date,n.config),r=n.lang(),o=i.datetime=i.datetime||n.systemdate(),s=n.bindelem||i.elem[0],y=(n.isinput(s)?"val":"html",function(){if(n.rangeelem){var e=[n.rangeelem[0].val(),n.rangeelem[1].val()];if(e[0]&&e[1])return e.join(" "+n.rangestr+" ")}return n.isinput(s)?s.value:"static"===i.position?"":lay(s).attr("lay-date")}()),d=function(e){e.year>m[1]&&(e.year=m[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=l.getenddate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},c=function(e,t,l){var r=["starttime","endtime"];t=(t.match(n.exp_split)||[]).slice(1),l=l||0,i.range&&(n[r[l]]=n[r[l]]||{}),lay.each(n.format,function(o,s){var y=parsefloat(t[o]);t[o].lengthh(i.max)||h(o)h(i.max))&&(n.enddate=lay.extend({},i.max)),e&&e(),n},d.prototype.mark=function(e,t){var a,n=this,i=n.config;return lay.each(i.mark,function(e,n){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(a=n||t[2])}),a&&e.html(''+a+""),n},d.prototype.limit=function(e,t,a,n){var i,l=this,r=l.config,o={},s=r[a>41?"enddate":"datetime"],y=lay.extend({},s,t||{});return lay.each({now:y,min:r.min,max:r.max},function(e,t){o[e]=l.newdate(lay.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return lay.each(n,function(a,n){e[n]=t[n]}),e}())).gettime()}),i=o.nowo.max,e&&e[i?"addclass":"removeclass"](d),i},d.prototype.thisdatetime=function(e){var t=this,a=t.config;return e?t.enddate:a.datetime},d.prototype.calendar=function(e,t,a){var n,i,r,o=this,s=o.config,t=t?1:0,d=e||o.thisdatetime(t),c=new date,u=o.lang(),h="date"!==s.type&&"datetime"!==s.type,f=lay(o.table[t]).find("td"),g=lay(o.elemheader[t][2]).find("span");return d.yearm[1]&&(d.year=m[1],o.hint(u.invaliddate)),o.firstdate||(o.firstdate=lay.extend({},d)),c.setfullyear(d.year,d.month,1),n=c.getday(),i=l.getenddate(d.month||12,d.year),r=l.getenddate(d.month+1,d.year),lay.each(f,function(e,t){var a=[d.year,d.month],l=0;t=lay(t),t.removeattr("class"),e=n&&e=a.firstdate.year&&(l.month=n.max.month,l.date=n.max.date),a.limit(lay(i),l,t),m++}),lay(m[f?0:1]).attr("lay-ym",m-8+"-"+d[1]).html(e+t+" - "+(m-1+t))}else if("month"===e)lay.each(new array(12),function(e){var i=lay.elem("li",{"lay-ym":e}),r={year:d[0],month:e};e+1==d[1]&&lay(i).addclass(y),i.innerhtml=l.month[e]+(f?"\u6708":""),o.appendchild(i),d[0]=a.firstdate.year&&(r.date=n.max.date),a.limit(lay(i),r,t)}),lay(m[f?0:1]).attr("lay-ym",d[0]+"-"+d[1]).html(d[0]+t);else if("time"===e){var c=function(){lay(o).find("ol").each(function(e,n){lay(n).find("li").each(function(n,i){a.limit(lay(i),[{hours:n},{hours:a[x].hours,minutes:n},{hours:a[x].hours,minutes:a[x].minutes,seconds:n}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),n.range||a.limit(lay(a.footer).find(p),a[x],0,["hours","minutes","seconds"])};n.range?a[x]||(a[x]="starttime"===x?i:a.enddate):a[x]=i,lay.each([24,60,60],function(e,t){var n=lay.elem("li"),i=["

"+l.time[e]+"

    "];lay.each(new array(t),function(t){i.push(""+lay.digit(t,2)+"")}),n.innerhtml=i.join("")+"
",o.appendchild(n)}),c()}if(h&&c.removechild(h),c.appendchild(o),"year"===e||"month"===e)lay(a.elemmain[t]).addclass("laydate-ym-show"),lay(o).find("li").on("click",function(){var l=0|lay(this).attr("lay-ym");if(!lay(this).hasclass(d)){0===t?(i[e]=l,a.limit(lay(a.footer).find(p),null,0)):a.enddate[e]=l;var s="year"===n.type||"month"===n.type;s?(lay(o).find("."+y).removeclass(y),lay(this).addclass(y),"month"===n.type&&"year"===e&&(a.listym[t][0]=l,r&&((t?a.enddate:i).year=l),a.list("month",t))):(a.checkdate("limit").calendar(null,t),a.closelist()),a.setbtnstatus(),n.range||("month"===n.type&&"month"===e||"year"===n.type&&"year"===e)&&a.setvalue(a.parse()).remove().done(),a.done(null,"change"),lay(a.footer).find("."+v).removeclass(d)}});else{var i=lay.elem("span",{"class":g}),k=function(){lay(o).find("ol").each(function(e){var t=this,n=lay(t).find("li");t.scrolltop=30*(a[x][w[e]]-2),t.scrolltop<=0&&n.each(function(e,a){if(!lay(this).hasclass(d))return t.scrolltop=30*(e-2),!0})})},b=lay(s[2]).find("."+g);k(),i.innerhtml=n.range?[l.starttime,l.endtime][t]:l.timetips,lay(a.elemmain[t]).addclass("laydate-time-show"),b[0]&&b.remove(),s[2].appendchild(i),lay(o).find("ol").each(function(e){var t=this;lay(t).find("li").on("click",function(){var l=0|this.innerhtml;lay(this).hasclass(d)||(n.range?a[x][w[e]]=l:i[w[e]]=l,lay(t).find("."+y).removeclass(y),lay(this).addclass(y),c(),k(),(a.enddate||"time"===n.type)&&a.done(null,"change"),a.setbtnstatus())})})}return a},d.prototype.listym=[],d.prototype.closelist=function(){var e=this;e.config;lay.each(e.elemcont,function(t,a){lay(this).find("."+u).remove(),lay(e.elemmain[t]).removeclass("laydate-ym-show laydate-time-show")}),lay(e.elem).find("."+g).remove()},d.prototype.setbtnstatus=function(e,t,a){var n,i=this,l=i.config,r=i.lang(),o=lay(i.footer).find(p);l.range&&"time"!==l.type&&(t=t||l.datetime,a=a||i.enddate,n=i.newdate(t).gettime()>i.newdate(a).gettime(),i.limit(null,t)||i.limit(null,a)?o.addclass(d):o[n?"addclass":"removeclass"](d),e&&n&&i.hint("string"==typeof e?r.timeout.replace(/\u65e5\u671f/g,e):r.timeout))},d.prototype.parse=function(e,t){var a=this,n=a.config,i=t||("end"==e?lay.extend({},a.enddate,a.endtime):n.range?lay.extend({},n.datetime,a.starttime):n.datetime),r=l.parse(i,a.format,1);return n.range&&void 0===e?r+" "+a.rangestr+" "+a.parse("end"):r},d.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)},d.prototype.setvalue=function(e){var t=this,a=t.config,n=t.bindelem||a.elem[0];return"static"===a.position?t:(e=e||"",t.isinput(n)?lay(n).val(e):t.rangeelem?(t.rangeelem[0].val(e?t.parse("start"):""),t.rangeelem[1].val(e?t.parse("end"):"")):(0===lay(n).find("*").length&&lay(n).html(e),lay(n).attr("lay-date",e)),t)},d.prototype.preview=function(){var e=this,t=e.config;if(t.ispreview){var a=lay(e.elem).find("."+t),n=t.range?e.enddate?e.parse():"":e.parse();a.html(n).css({color:"#5fb878"}),settimeout(function(){a.css({color:"#666"})},300)}},d.prototype.done=function(e,t){var a=this,n=a.config,i=lay.extend({},lay.extend(n.datetime,a.starttime)),l=lay.extend({},lay.extend(a.enddate,a.endtime));return lay.each([i,l],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),a.preview(),e=e||[a.parse(),i,l],"function"==typeof n[t||"done"]&&n[t||"done"].apply(n,e),a},d.prototype.choose=function(e,t){var a=this,n=a.config,i=a.thisdatetime(t),l=(lay(a.elem).find("td"),e.attr("lay-ymd").split("-"));l={year:0|l[0],month:(0|l[1])-1,date:0|l[2]},e.hasclass(d)||(lay.extend(i,l),n.range?(lay.each(["starttime","endtime"],function(e,t){a[t]=a[t]||{hours:0,minutes:0,seconds:0}}),a.calendar(null,t).done(null,"change")):"static"===n.position?a.calendar().done().done(null,"change"):"date"===n.type?a.setvalue(a.parse()).remove().done():"datetime"===n.type&&a.calendar().done(null,"change"))},d.prototype.tool=function(e,t){var a=this,n=a.config,i=a.lang(),l=n.datetime,r="static"===n.position,o={datetime:function(){lay(e).hasclass(d)||(a.list("time",0),n.range&&a.list("time",1),lay(e).attr("lay-type","date").html(a.lang().datetips))},date:function(){a.closelist(),lay(e).attr("lay-type","datetime").html(a.lang().timetips)},clear:function(){r&&(lay.extend(l,a.firstdate),a.calendar()),n.range&&(delete n.datetime,delete a.enddate,delete a.starttime,delete a.endtime),a.setvalue("").remove(),a.done(["",{},{}])},now:function(){var e=new date;lay.extend(l,a.systemdate(),{hours:e.gethours(),minutes:e.getminutes(),seconds:e.getseconds()}),a.setvalue(a.parse()).remove(),r&&a.calendar(),a.done()},confirm:function(){if(n.range){if(lay(e).hasclass(d))return a.hint("time"===n.type?i.timeout.replace(/\u65e5\u671f/g,"\u65f6\u95f4"):i.timeout)}else if(lay(e).hasclass(d))return a.hint(i.invaliddate);a.done(),a.setvalue(a.parse()).remove()}};o[t]&&o[t]()},d.prototype.change=function(e){var t=this,a=t.config,n=t.thisdatetime(e),i=a.range&&("year"===a.type||"month"===a.type),l=t.elemcont[e||0],r=t.listym[e],o=function(o){var s=lay(l).find(".laydate-year-list")[0],y=lay(l).find(".laydate-month-list")[0];return s&&(r[0]=o?r[0]-15:r[0]+15,t.list("year",e)),y&&(o?r[0]--:r[0]++,t.list("month",e)),(s||y)&&(lay.extend(n,{year:r[0]}),i&&(n.year=r[0]),a.range||t.done(null,"change"),a.range||t.limit(lay(t.footer).find(p),{year:r[0]})),t.setbtnstatus(),s||y};return{prevyear:function(){o("sub")||(n.year--,t.checkdate("limit").calendar(null,e),t.done(null,"change"))},prevmonth:function(){var a=t.getasym(n.year,n.month,"sub");lay.extend(n,{year:a[0],month:a[1]}),t.checkdate("limit").calendar(null,e),t.done(null,"change")},nextmonth:function(){var a=t.getasym(n.year,n.month);lay.extend(n,{year:a[0],month:a[1]}),t.checkdate("limit").calendar(null,e),t.done(null,"change")},nextyear:function(){o()||(n.year++,t.checkdate("limit").calendar(null,e),t.done(null,"change"))}}},d.prototype.changeevent=function(){var e=this;e.config;lay(e.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(e.elemheader,function(t,a){lay(a[0]).on("click",function(a){e.change(t).prevyear()}),lay(a[1]).on("click",function(a){e.change(t).prevmonth()}),lay(a[2]).find("span").on("click",function(a){var n=lay(this),i=n.attr("lay-ym"),l=n.attr("lay-type");i&&(i=i.split("-"),e.listym[t]=[0|i[0],0|i[1]],e.list(l,t),lay(e.footer).find("."+v).addclass(d))}),lay(a[3]).on("click",function(a){e.change(t).nextmonth()}),lay(a[4]).on("click",function(a){e.change(t).nextyear()})}),lay.each(e.table,function(t,a){var n=lay(a).find("td");n.on("click",function(){e.choose(lay(this),t)})}),lay(e.footer).find("span").on("click",function(){var t=lay(this).attr("lay-type");e.tool(this,t)})},d.prototype.isinput=function(e){return/input|textarea/.test(e.tagname.tolocalelowercase())},d.prototype.events=function(){var e=this,t=e.config,a=function(a,n){a.on(t.trigger,function(){n&&(e.bindelem=this),e.render()})};t.elem[0]&&!t.elem[0].eventhandler&&(a(t.elem,"bind"),a(t.eventelem),t.elem[0].eventhandler=!0)},r.that={},r.getthis=function(e){var t=r.that[e];return!t&&a&&layui.hint().error(e?o+" instance with id '"+e+"' not found":"id argument required"),t},n.run=function(a){a(t).on("mousedown",function(e){if(l.thisid){var t=r.getthis(l.thisid);if(t){var n=t.config;e.target!==n.elem[0]&&e.target!==n.eventelem[0]&&e.target!==a(n.closestop)[0]&&t.remove()}}}).on("keydown",function(e){if(l.thisid){var t=r.getthis(l.thisid);t&&13===e.keycode&&a("#"+t.elemid)[0]&&t.elemid===d.thiselemdate&&(e.preventdefault(),a(t.footer).find(p)[0].click())}}),a(e).on("resize",function(){if(l.thisid){var e=r.getthis(l.thisid);if(e)return!(!e.elem||!a(s)[0])&&void e.position()}})},l.render=function(e){var t=new d(e);return r.call(t)},l.parse=function(e,t,a){return e=e||{},"string"==typeof t&&(t=r.formatarr(t)),t=(t||[]).concat(),lay.each(t,function(n,i){/yyyy|y/.test(i)?t[n]=lay.digit(e.year,i.length):/mm|m/.test(i)?t[n]=lay.digit(e.month+(a||0),i.length):/dd|d/.test(i)?t[n]=lay.digit(e.date,i.length):/hh|h/.test(i)?t[n]=lay.digit(e.hours,i.length):/mm|m/.test(i)?t[n]=lay.digit(e.minutes,i.length):/ss|s/.test(i)&&(t[n]=lay.digit(e.seconds,i.length))}),t.join("")},l.getenddate=function(e,t){var a=new date;return a.setfullyear(t||a.getfullyear(),e||a.getmonth()+1,1),new date(a.gettime()-864e5).getdate()},a?(l.ready(),layui.define("lay",function(e){l.path=layui.cache.dir,n.run(lay),e(o,l)})):"function"==typeof define&&define.amd?define(function(){return n.run(lay),l}):function(){l.ready(),n.run(e.lay),e.laydate=l}()}(window,window.document);!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new error("jquery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.iswindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&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",l.childnodes[0].style.bordercollapse="separate",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 t=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}(),i=e.layui_global||{};return i.layer_dir||t.substring(0,t.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="creating",u=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getelementbyid(f)||a.appendchild(s),"function"==typeof i&&!function d(t){var n=100,a=document.getelementbyid(f);return++u>1e4/n?e.console&&console.error(l+".css: invalid"):void(1989===parseint(o.getstyle(a,"width"))?(t===c&&a.removeattribute("lay-status"),a.getattribute("lay-status")===c?settimeout(d,n):i()):(a.setattribute("lay-status",c),settimeout(function(){d(c)},n)))}()}}},r={v:"3.5.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:260},n))}},s=function(e){var t=this,a=function(){t.creat()};t.index=++r.index,t.config.maxwidth=i(n).width()-30,t.config=i.extend({},t.config,o.config,e),document.body?a():settimeout(function(){a()},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"],l.shade="layui-layer-shade",l.move="layui-layer-move",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,minstack:!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||"","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("#"+l.move)[0]||c.append(o.moveelem=u),e.layero=i("#"+l[0]+a),e.shadeo=i("#"+l.shade+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),e.shadeo.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():function(){e.offset(),parseint(o.getstyle(document.getelementbyid(l.move),"z-index"))||function(){e.layero.css("visibility","hidden"),r.ready(function(){e.offset(),e.layero.css("visibility","visible")})}()}(),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,t)}):a.success(n,t.index,t)),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&&t.shadeo.on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n,t.index);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,t.index)):(r.full(t.index,a),settimeout(function(){a.full&&a.full(n,t.index)},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){t=t||{};var a=i("#"+l[0]+e),s=i("#"+l.shade+e),f=a.find(l[1]).outerheight()||0,c=a.attr("minleft")||181*o.minindex+"px",u=a.css("position"),d={width:180,height:f,position:"fixed",overflow:"hidden"};o.record(a),o.minleft[0]&&(c=o.minleft[0],o.minleft.shift()),t.minstack&&(d.left=c,d.top=n.height()-f,a.attr("minleft")||o.minindex++,a.attr("minleft",c)),a.attr("position",u),r.style(e,d,!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),s.hide()},r.restore=function(e){var t=i("#"+l[0]+e),n=i("#"+l.shade+e),a=t.attr("area").split(",");t.attr("type");r.style(e,{width:parsefloat(a[0]),height:parsefloat(a[1]),top:parsefloat(a[2]),left:parsefloat(a[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),n.show()},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,t){var n=i("#"+l[0]+e),a=n.attr("type"),s="layer-anim-close";if(n[0]){var f="layui-layer-wrap",c=function(){if(a===o.type[1]&&"object"===n.attr("contype")){n.children(":not(."+l[5]+")").remove();for(var r=n.find("."+f),s=0;s<2;s++)r.unwrap();r.css("display",r.data("display")).removeclass(f)}else{if(a===o.type[2])try{var c=i("#"+l[4]+e)[0];c.contentwindow.document.write(""),c.contentwindow.close(),n.find("."+l[5])[0].removechild(c)}catch(u){}n[0].innerhtml="",n.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e],"function"==typeof t&&t()};n.data("isoutanim")&&n.addclass("layer-anim "+s),i("#layui-layer-moves, #"+l.shade+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),n.attr("minleft")&&(o.minindex--,o.minleft.push(n.attr("minleft"))),r.ie&&r.ie<10||!n.data("isoutanim")?c():settimeout(function(){c()},200)}},r.closeall=function(e,t){"function"==typeof e&&(t=e,e=null);var n=i("."+l[0]);i.each(n,function(a){var o=i(this),s=e?o.attr("type")===e:1;s&&r.close(o.attr("times"),a===n.length-1?t:null),s=null}),0===n.length&&"function"==typeof t&&t()};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=!("string"==typeof t.photos||t.photos instanceof i),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(){h();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)}),!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.find(".layui-layer-imgprev").on("click",function(e){e.preventdefault(),s.imgprev(!0)}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventdefault(),s.imgnext(!0)}),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),a&&(t.anim=-1),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||'+function(){return 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-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(){r.ready(),o.run(e.jquery)}()}(window);layui.define("jquery",function(e){"use strict";var t=layui.$,i=layui.hint(),n={fixbar:function(e){var i,n,r="layui-fixbar",a="layui-fixbar-top",o=t(document),l=t("body");e=t.extend({showheight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],g=t(['
    ',e.bar1?'
  • '+c[0]+"
  • ":"",e.bar2?'
  • '+c[1]+"
  • ":"",'
  • '+c[2]+"
  • ","
"].join("")),u=g.find("."+a),s=function(){var t=o.scrolltop();t>=e.showheight?i||(u.show(),i=1):i&&(u.hide(),i=0)};t("."+r)[0]||("object"==typeof e.css&&g.css(e.css),l.append(g),s(),g.find("li").on("click",function(){var i=t(this),n=i.attr("lay-type");"top"===n&&t("html,body").animate({scrolltop:0},200),e.click&&e.click.call(this,n)}),o.on("scroll",function(){cleartimeout(n),n=settimeout(function(){s()},100)}))},countdown:function(e,t,i){var n=this,r="function"==typeof t,a=new date(e).gettime(),o=new date(!t||r?(new date).gettime():t).gettime(),l=a-o,c=[math.floor(l/864e5),math.floor(l/36e5)%24,math.floor(l/6e4)%60,math.floor(l/1e3)%60];r&&(i=t);var g=settimeout(function(){n.countdown(e,o+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,n=[[],[]],r=(new date).gettime()-new date(e).gettime();return r>26784e5?(r=new date(e),n[0][0]=i.digit(r.getfullyear(),4),n[0][1]=i.digit(r.getmonth()+1),n[0][2]=i.digit(r.getdate()),t||(n[1][0]=i.digit(r.gethours()),n[1][1]=i.digit(r.getminutes()),n[1][2]=i.digit(r.getseconds())),n[0].join("-")+" "+n[1].join(":")):r>=864e5?(r/1e3/60/60/24|0)+"\u5929\u524d":r>=36e5?(r/1e3/60/60|0)+"\u5c0f\u65f6\u524d":r>=18e4?(r/1e3/60|0)+"\u5206\u949f\u524d":r<0?"\u672a\u6765":"\u521a\u521a"},digit:function(e,t){var i="";e=string(e),t=t||2;for(var n=e.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},unescape:function(e){return string(e||"").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/,"'").replace(/\"/,'"')},tovisiblearea:function(e){if(e=t.extend({margin:160,duration:200,type:"y"},e),e.scrollelem[0]&&e.thiselem[0]){var i=e.scrollelem,n=e.thiselem,r="y"===e.type,a=r?"scrolltop":"scrollleft",o=r?"top":"left",l=i[a](),c=i[r?"height":"width"](),g=i.offset()[o],u=n.offset()[o]-g,s={};(u>c-e.margin||u0&&t.unshift(""),t.join(" ")}()+">"+(a.title||"unnaming")+"";return s[0]?s.before(r):n.append(r),o.append('
'+(a.content||"")+"
"),b.hidetabmore(!0),b.tabauto(),this},s.prototype.tabdelete=function(t,a){var e=".layui-tab-title",l=i(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+a+'"]');return b.tabdelete(null,s),this},s.prototype.tabchange=function(t,a){var e=".layui-tab-title",l=i(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+a+'"]');return b.tabclick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},m.on("click",t.headerelem,function(a){var e=i(this).index();b.tabclick.call(this,a,e,null,t)})},s.prototype.progress=function(t,a){var e="layui-progress",l=i("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",a).attr("lay-percent",a),s.text(a),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",y="layui-nav-child",d="layui-nav-child-c",f="layui-nav-more",h="layui-icon-down",p="layui-anim layui-anim-upbit",b={tabclick:function(t,a,s,o){o=o||{};var r=s||i(this),a=a||r.parent().children("li").index(r),c=o.headerelem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyelem?i(o.bodyelem):c.children(".layui-tab-content").children(".layui-tab-item"),y=r.find("a"),d="javascript:;"!==y.attr("href")&&"_blank"===y.attr("target"),f="string"==typeof r.attr("lay-unselect"),h=c.attr("lay-filter");d||f||(r.addclass(l).siblings().removeclass(l),u.eq(a).addclass(n).siblings().removeclass(n)),layui.event.call(this,e,"tab("+h+")",{elem:c,index:a})},tabdelete:function(t,a){var n=a||i(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasclass(l)&&(n.next()[0]?b.tabclick.call(n.next()[0],null,s+1):n.prev()[0]&&b.tabclick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),settimeout(function(){b.tabauto()},50),layui.event.call(this,e,"tabdelete("+c+")",{elem:o,index:s})},tabauto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;i(".layui-tab").each(function(){var s=i(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=i('');if(n===window&&8!=a.ie&&b.hidetabmore(!0),s.attr("lay-allowclose")&&o.find("li").each(function(){var t=i(this);if(!t.find("."+l)[0]){var a=i('');a.on("click",b.tabdelete),t.append(a)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollwidth")>o.outerwidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(i){o[this.title?"removeclass":"addclass"](t),this.title=this.title?"":"\u6536\u7f29"})}else o.find("."+e).remove(),s.removeattr("overflow")})},hidetabmore:function(t){var a=i(".layui-tab-title");t!==!0&&"tabmore"===i(t.target).attr("lay-stope")||(a.removeclass("layui-tab-more"),a.find(".layui-tab-bar").attr("title",""))},clickthis:function(){var t=i(this),a=t.parents(o),n=a.attr("lay-filter"),s=t.parent(),c=t.siblings("."+y),d="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||d||c[0]||(a.find("."+l).removeclass(l),s.addclass(l)),a.hasclass(u)&&(c.removeclass(p),c[0]&&(s["none"===c.css("display")?"addclass":"removeclass"](r+"ed"),"all"===a.attr("lay-shrink")&&s.siblings().removeclass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=i(this),a=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeclass(n)}l[r?"addclass":"removeclass"](n),a.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){b.tabauto.call({})},nav:function(){var t=200,e={},s={},v={},m="layui-nav-title",c=function(l,o,r){var c=i(this),h=c.find("."+y);if(o.hasclass(u)){if(!h[0]){var b=c.children("."+m);l.css({top:c.offset().top-o.offset().top,height:(b[0]?b:c).outerheight(),opacity:1})}}else h.addclass(p),h.hasclass(d)&&h.css({left:-(h.outerwidth()-c.width())/2}),h[0]?l.css({left:l.position().left+l.width()/2,width:0,opacity:0}):l.css({left:c.position().left+parsefloat(c.css("marginleft")),top:c.position().top+c.height()-l.height()}),e[r]=settimeout(function(){l.css({width:h[0]?0:c.width(),opacity:h[0]?0:1})},a.ie&&a.ie<10?0:t),cleartimeout(v[r]),"block"===h.css("display")&&cleartimeout(s[r]),s[r]=settimeout(function(){h.addclass(n),c.find("."+f).addclass(f+"d")},300)};i(o+l).each(function(a){var l=i(this),o=i(''),d=l.find("."+r);l.find("."+c)[0]||(l.append(o),(l.hasclass(u)?d.find("dd,>."+m):d).on("mouseenter",function(){c.call(this,o,l,a)}).on("mouseleave",function(){l.hasclass(u)?o.css({height:0,opacity:0}):(cleartimeout(s[a]),s[a]=settimeout(function(){l.find("."+y).removeclass(n),l.find("."+f).removeclass(f+"d")},300))}),l.on("mouseleave",function(){cleartimeout(e[a]),v[a]=settimeout(function(){l.hasclass(u)||o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),d.find("a").each(function(){var t=i(this),a=(t.parent(),t.siblings("."+y));a[0]&&!t.children("."+f)[0]&&t.append(''),t.off("click",b.clickthis).on("click",b.clickthis)})})},breadcrumb:function(){var t=".layui-breadcrumb";i(t+l).each(function(){var t=i(this),a="lay-separator",e=t.attr(a)||"/",l=t.find("a");l.next("span["+a+"]")[0]||(l.each(function(t){t!==l.length-1&&i(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";i("."+t+l).each(function(){var a=i(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 t="layui-collapse";i("."+t+l).each(function(){var t=i(this).find(".layui-colla-item");t.each(function(){var t=i(this),a=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");a.find(".layui-colla-icon").remove(),a.append(''+(l?"":"")+""),a.off("click",b.collapse).on("click",b.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,i){i()})},s.prototype.render=s.prototype.init;var v=new s,m=i(document);i(function(){v.render()});var c=".layui-tab-title li";m.on("click",c,b.tabclick),m.on("click",b.hidetabmore),i(window).on("resize",b.tabauto),t(e,v)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),o=layui.device(),a={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},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 i=this;i.config=t.extend({},i.config,a.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindaction:"",url:"",field:"file",acceptmime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindaction=t(e.bindaction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemfile=t(['"].join("")),a=i.elem.next();(a.hasclass(u)||a.hasclass(c))&&a.remove(),o.ie&&o.ie<10&&i.elem.wrap('
'),e.isfile()?(e.elemfile=i.elem,i.field=i.elem[0].name):i.elem.after(n),o.ie&&o.ie<10&&e.initie()},p.prototype.initie=function(){var e=this,i=e.config,n=t(''),o=t(['
',"
"].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasclass(c)||(e.elemfile.wrap(o),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.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 t=this;window.filereader&&layui.each(t.choosefiles,function(t,i){var n=new filereader;n.readasdataurl(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,a=this,l=a.config,r=a.elemfile[0],u=function(){var i=0,n=0,o=e||a.files||a.choosefiles||r.files,u=function(){l.multiple&&i+n===a.filelength&&"function"==typeof l.alldone&&l.alldone({total:a.filelength,successful:i,aborted:n})};layui.each(o,function(e,o){var r=new formdata;r.append(l.field,o),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)});var c={url:l.url,type:"post",data:r,contenttype:!1,processdata:!1,datatype:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,a.msg("\u8bf7\u6c42\u4e0a\u4f20\u63a5\u53e3\u51fa\u73b0\u5f02\u5e38"),m(e),u()}};"function"==typeof l.progress&&(c.xhr=function(){var i=t.ajaxsettings.xhr();return i.upload.addeventlistener("progress",function(t){if(t.lengthcomputable){var i=math.floor(t.loaded/t.total*100);l.progress(i,l.item?l.item[0]:l.elem[0],t,e)}}),i}),t.ajax(c)})},c=function(){var e=t("#"+f);a.elemfile.parent().submit(),clearinterval(p.timer),p.timer=setinterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){a.msg("\u83b7\u53d6\u4e0a\u4f20\u540e\u7684\u54cd\u5e94\u4fe1\u606f\u51fa\u73b0\u5f02\u5e38"),clearinterval(p.timer),m()}t&&(clearinterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(a.elemfile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=json.parse(t)}catch(i){return t={},a.msg("\u8bf7\u5bf9\u4e0a\u4f20\u63a5\u53e3\u8fd4\u56de\u6709\u6548json")}"function"==typeof l.done&&l.done(t,e||0,function(e){a.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){a.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||a.choosefiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){a.preview(e)},upload:function(e,t){var i={};i[e]=t,a.upload(i)},pushfile:function(){return a.files=a.files||{},layui.each(a.choosefiles,function(e,t){a.files[e]=t}),a.files},resetfile:function(e,t,i){var n=new file([t],i);a.files=a.files||{},a.files[e]=n}},y=function(){if(!(("choose"===i||l.auto)&&(l.choose&&l.choose(g),"choose"===i)||l.before&&l.before(g)===!1))return o.ie?o.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 a.msg("\u9009\u62e9\u7684\u6587\u4ef6\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),r.value="";break;case"video":if(!regexp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return a.msg("\u9009\u62e9\u7684\u89c6\u9891\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),r.value="";break;case"audio":if(!regexp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return a.msg("\u9009\u62e9\u7684\u97f3\u9891\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),r.value="";break;default:if(layui.each(v,function(e,t){regexp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return a.msg("\u9009\u62e9\u7684\u56fe\u7247\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),r.value=""}if(a.filelength=function(){var t=0,i=e||a.files||a.choosefiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&a.filelength>l.number)return a.msg("\u540c\u65f6\u6700\u591a\u53ea\u80fd\u4e0a\u4f20\u7684\u6570\u91cf\u4e3a\uff1a"+l.number);if(l.size>0&&!(o.ie&&o.ie<10)){var f;if(layui.each(a.choosefiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.tofixed(2)+"mb":l.size+"kb",r.value="",f=i}}),f)return a.msg("\u6587\u4ef6\u4e0d\u80fd\u8d85\u8fc7"+f)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindaction;var i=this,e=i.config=t.extend({},i.config,a.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptmime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,a=function(t){e.choosefiles={},layui.each(t,function(t,i){var n=(new date).gettime();e.choosefiles[n+"-"+t]=i})},l=function(t,n){var o=e.elemfile,a=(i.item?i.item:i.elem,t.length>1?t.length+"\u4e2a\u6587\u4ef6":(t[0]||{}).name||o[0].value.match(/[^\/\\]+\..+/g)||[]||"");o.next().hasclass(s)&&o.next().remove(),e.upload(null,"choose"),e.isfile()||i.choose||o.after(''+a+"")};i.elem.off("upload.start").on("upload.start",function(){var o=t(this),a=o.attr("lay-data");if(a)try{a=new function("return "+a)(),e.config=t.extend({},i,a)}catch(l){n.error("upload element property lay-data configuration item has a syntax error: "+a)}e.config.item=o,e.elemfile[0].click()}),o.ie&&o.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeattr("lay-over")}).off("upload.drop").on("upload.drop",function(n,o){var r=t(this),u=o.originalevent.datatransfer.files||[];r.removeattr("lay-over"),a(u),i.auto?e.upload(u):l(u)}),e.elemfile.off("upload.change").on("upload.change",function(){var t=this.files||[];a(t),i.auto?e.upload():l(t)}),i.bindaction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveevents")||(e.elemfile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isfile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventdefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventdefault(),t(this).trigger("upload.drop",e)}),i.bindaction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveevents",!0))},a.render=function(e){var t=new p(e);return l.call(t)},e(r,a)});layui.define(["jquery","laytpl","lay"],function(e){"use strict";var i=layui.$,n=layui.laytpl,t=layui.hint(),a=layui.device(),l=a.mobile?"click":"mousedown",r="dropdown",o="layui_"+r+"_index",u={config:{},index:layui[r]?layui[r].index+1e4:0,set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,r,e,i)}},d=function(){var e=this,i=e.config,n=i.id;return d.that[n]=e,{config:i,reload:function(i){e.reload.call(e,i)}}},s="layui-dropdown",m="layui-menu-item-up",c="layui-menu-item-down",p="layui-menu-body-title",y="layui-menu-item-group",f="layui-menu-item-parent",v="layui-menu-item-divider",g="layui-menu-item-checked",h="layui-menu-item-checked2",w="layui-menu-body-panel",c="layui-menu-body-panel-left",v="."+y+">."+p,k=function(e){var n=this;n.index=++u.index,n.config=i.extend({},n.config,u.config,e),n.init()};k.prototype.config={trigger:"click",content:"",classname:"",style:"",show:!1,isallowspread:!0,isspreaditem:!0,data:[],delay:300},k.prototype.reload=function(e){var n=this;n.config=i.extend({},n.config,e),n.init(!0)},k.prototype.init=function(e){var n=this,t=n.config,a=t.elem=i(t.elem);if(a.length>1)return layui.each(a,function(){u.render(i.extend({},t,{elem:this}))}),n;if(!e&&a[0]&&a.data(o)){var l=d.getthis(a.data(o));if(!l)return;return l.reload(t)}t.id="id"in t?t.id:n.index,t.show&&n.render(e),n.events()},k.prototype.render=function(e){var t=this,a=t.config,r=i("body"),s=function(){var e=i('
    ');return a.data.length>0?m(e,a.data):e.html('
  • no menu
  • '),e},m=function(e,t){return layui.each(t,function(t,l){var r=l.child&&l.child.length>0,o="isspreaditem"in l?l.isspreaditem:a.isspreaditem,u=l.templet?n(l.templet).render(l):a.templet?n(a.templet).render(l):l.title,d=function(){return r&&(l.type=l.type||"parent"),l.type?{group:"group",parent:"parent","-":"-"}[l.type]||"parent":""}();if("-"===d||l.title||l.id||r){var s=i(["",function(){var e="href"in l?''+u+"":u;return r?'
    '+e+function(){return"parent"===d?'':"group"===d&&a.isallowspread?'':""}()+"
    ":'
    '+e+"
    "}(),""].join(""));if(s.data("item",l),r){var c=i('
    '),y=i("
      ");"parent"===d?(c.append(m(y,l.child)),s.append(c)):s.append(m(y,l.child))}e.append(s)}}),e},c=['
      ',"
      "].join("");("contextmenu"===a.trigger||lay.istopelem(a.elem[0]))&&(e=!0),!e&&a.elem.data(o+"_opened")||(t.elemview=i(c),t.elemview.append(a.content||s()),a.classname&&t.elemview.addclass(a.classname),a.style&&t.elemview.attr("style",a.style),u.thisid=a.id,t.remove(),r.append(t.elemview),a.elem.data(o+"_opened",!0),t.position(),d.prevelem=t.elemview,d.prevelem.data("prevelem",a.elem),t.elemview.find(".layui-menu").on(l,function(e){layui.stope(e)}),t.elemview.find(".layui-menu li").on("click",function(e){var n=i(this),l=n.data("item")||{},r=l.child&&l.child.length>0;r||"-"===l.type||(t.remove(),"function"==typeof a.click&&a.click(l,n))}),t.elemview.find(v).on("click",function(e){var n=i(this),t=n.parent(),l=t.data("item")||{};"group"===l.type&&a.isallowspread&&d.spread(t)}),"mouseenter"===a.trigger&&t.elemview.on("mouseenter",function(){cleartimeout(d.timer)}).on("mouseleave",function(){t.delayremove()}))},k.prototype.position=function(e){var i=this,n=i.config;lay.position(n.elem[0],i.elemview[0],{position:n.position,e:i.e,clicktype:"contextmenu"===n.trigger?"right":null,align:n.align||null})},k.prototype.remove=function(){var e=this,i=(e.config,d.prevelem);i&&(i.data("prevelem")&&i.data("prevelem").data(o+"_opened",!1),i.remove())},k.prototype.delayremove=function(){var e=this,i=e.config;cleartimeout(d.timer),d.timer=settimeout(function(){e.remove()},i.delay)},k.prototype.events=function(){var e=this,i=e.config;"hover"===i.trigger&&(i.trigger="mouseenter"),e.prevelem&&e.prevelem.off(i.trigger,e.prevelemcallback),e.prevelem=i.elem,e.prevelemcallback=function(n){cleartimeout(d.timer),e.e=n,e.render(),n.preventdefault(),"function"==typeof i.ready&&i.ready(e.elemview,i.elem,e.e.target)},i.elem.on(i.trigger,e.prevelemcallback),"mouseenter"===i.trigger&&i.elem.on("mouseleave",function(){e.delayremove()})},d.that={},d.getthis=function(e){var i=d.that[e];return i||t.error(e?r+" instance with id '"+e+"' not found":"id argument required"),i},d.spread=function(e){var i=e.children("."+p).find(".layui-icon");e.hasclass(m)?(e.removeclass(m).addclass(c),i.removeclass("layui-icon-down").addclass("layui-icon-up")):(e.removeclass(c).addclass(m),i.removeclass("layui-icon-up").addclass("layui-icon-down"))},!function(){var e=i(window),n=i(document);e.on("resize",function(){if(u.thisid){var e=d.getthis(u.thisid);if(e){if(!e.elemview[0]||!i("."+s)[0])return!1;var n=e.config;"contextmenu"===n.trigger?e.remove():e.position()}}}),n.on(l,function(e){if(u.thisid){var i=d.getthis(u.thisid);if(i){var n=i.config;!lay.istopelem(n.elem[0])&&"contextmenu"!==n.trigger&&(e.target===n.elem[0]||n.elem.find(e.target)[0]||e.target===i.elemview[0]||i.elemview&&i.elemview.find(e.target)[0])||i.remove()}}});var t=".layui-menu:not(.layui-dropdown-menu) li";n.on("click",t,function(e){var n=i(this),t=n.parents(".layui-menu").eq(0),a=n.hasclass(y)||n.hasclass(f),l=t.attr("lay-filter")||t.attr("id"),o=lay.options(this);n.hasclass(v)||a||(t.find("."+g).removeclass(g),t.find("."+h).removeclass(h),n.addclass(g),n.parents("."+f).addclass(h),layui.event.call(this,r,"click("+l+")",o))}),n.on("click",t+v,function(e){var n=i(this),t=n.parents("."+y+":eq(0)"),a=lay.options(t[0]);"isallowspread"in a&&!a.isallowspread||d.spread(t)});var a=".layui-menu ."+f;n.on("mouseenter",a,function(n){var t=i(this),a=t.find("."+w);if(a[0]){var l=a[0].getboundingclientrect();l.right>e.width()&&(a.addclass(c),l=a[0].getboundingclientrect(),l.left<0&&a.removeclass(c)),l.bottom>e.height()&&a.eq(0).css("margin-top",-(l.bottom-e.height()))}}).on("mouseleave",a,function(e){var n=i(this),t=n.children("."+w);t.removeclass(c),t.css("margin-top",0)})}(),u.reload=function(e,i){var n=d.getthis(e);return n?(n.reload(i),d.call(n)):this},u.render=function(e){var i=new k(e);return d.call(i)},e(r,u)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setvalue:function(t,a){return i.value=t,e.slide("set",t,a||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",p="layui-slider-input-btn",m="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.maxt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=math.floor((t.value[1]-t.min)/(t.max-t.min)*100),p=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var p=math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var m=t.disabled?"#c2c2c2":t.theme,f='
      '+(t.tips?'
      ':"")+'
      '+(t.range?'
      ':"")+"
      ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemtemp=i(f),t.range?(e.elemtemp.find("."+o).eq(0).data("value",t.value[0]),e.elemtemp.find("."+o).eq(1).data("value",t.value[1])):e.elemtemp.find("."+o).data("value",t.value),h.html(e.elemtemp),"vertical"===t.type&&e.elemtemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x')}e.elemtemp.append(b)}if(t.input&&!t.range){var w=i('
      ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemtemp.css("margin-right",w.outerwidth()+15)}t.disabled?(e.elemtemp.addclass(l),e.elemtemp.find("."+u).addclass(l)):e.slide(),e.elemtemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemtemp[0].offsetwidth,n=e.elemtemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsettop-n.height():i(this).parent()[0].offsetleft,s=l/a*100,r=i(this).parent().data("value"),u=t.settips?t.settips(r):r;e.elemtemp.find("."+d).html(u),"vertical"===t.type?e.elemtemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemtemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemtemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemtemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetwidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/math.ceil(l.step)),x=function(e,i){e=math.ceil(e)*b>100?math.ceil(e)*b:math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=t(h[0].offsetleft),a=l.range?t(h[1].offsetleft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=t(f()-h[0].offsettop-h.height()),a=l.range?t(f()-h[1].offsettop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=math.min(t,a),o=math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),s.find("."+d).html(l.settips?l.settips(u):u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},t=function(e){var i=e/f()*100/b,t=math.round(i)*b;return e==f()&&(t=math.ceil(i)*b),t},w=i(['
      f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addclass(m),s.find("."+d).show(),i.preventdefault()},o=function(){t.removeclass(m),s.find("."+d).hide()};m(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clienty+i(this).offset().top:e.clientx-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?math.abs(n-parseint(i(h[0]).css("bottom")))>math.abs(n-parseint(i(h[1]).css("bottom")))?1:0:math.abs(n-h[0].offsetleft)>math.abs(n-h[1].offsetleft)?1:0:0,x(s,a),e.preventdefault()}}),y.children("."+p).children("i").each(function(e){i(this).on("click",function(){g=y.children("."+c).children("input").val(),g=1==e?g-l.stepl.max?l.max:number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isnan(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keycode&&(e.preventdefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)});layui.define(["jquery","lay"],function(e){"use strict";var i=layui.jquery,r=layui.lay,o=layui.device(),n=o.mobile?"click":"mousedown",l={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var r=this;return r.config=i.extend({},r.config,e),r},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},t=function(){var e=this,i=e.config;return{config:i}},c="colorpicker",a="layui-show",s="layui-colorpicker",f=".layui-colorpicker-main",d="layui-icon-down",u="layui-icon-close",p="layui-colorpicker-trigger-span",g="layui-colorpicker-trigger-i",v="layui-colorpicker-side",h="layui-colorpicker-side-slider",b="layui-colorpicker-basis",k="layui-colorpicker-alpha-bgcolor",y="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",x="layui-colorpicker-main-input",p=function(e){var i={h:0,s:0,b:0},r=math.min(e.r,e.g,e.b),o=math.max(e.r,e.g,e.b),n=o-r;return i.b=o,i.s=0!=o?255*n/o:0,0!=i.s?e.r==o?i.h=(e.g-e.b)/n:e.g==o?i.h=2+(e.b-e.r)/n:i.h=4+(e.r-e.g)/n:i.h=-1,o==r&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},c=function(e){var e=e.indexof("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseint(e,16);var r={r:e>>16,g:(65280&e)>>8,b:255&e};return p(r)},b=function(e){var i={},r=e.h,o=255*e.s/100,n=255*e.b/100;if(0==o)i.r=i.g=i.b=n;else{var l=n,t=(255-o)*n/255,c=(l-t)*(r%60)/60;360==r&&(r=0),r<60?(i.r=l,i.b=t,i.g=t+c):r<120?(i.g=l,i.b=t,i.r=l-c):r<180?(i.g=l,i.r=t,i.b=t+c):r<240?(i.b=l,i.r=t,i.g=l-c):r<300?(i.b=l,i.g=t,i.r=t+c):r<360?(i.r=l,i.g=t,i.b=l-c):(i.r=0,i.g=0,i.b=0)}return{r:math.round(i.r),g:math.round(i.g),b:math.round(i.b)}},w=function(e){var r=b(e),o=[r.r.tostring(16),r.g.tostring(16),r.b.tostring(16)];return i.each(o,function(e,i){1==i.length&&(o[e]="0"+i)}),o.join("")},d=function(e){var i=/[0-9]{1,3}/g,r=e.match(i)||[];return{r:r[0],g:r[1],b:r[2]}},j=i(window),e=i(document),f=function(e){var r=this;r.index=++l.index,r.config=i.extend({},r.config,l.config,e),r.render()};f.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5fb878","#1e9fff","#ff5722","#ffb800","#01aaed","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393d49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},f.prototype.render=function(){var e=this,r=e.config,o=i(['
      ',"",'3&&(r.alpha&&"rgb"==r.format||(e="#"+w(p(d(r.color))))),"background: "+e):e}()+'">','',"","","
      "].join("")),n=i(r.elem);r.size&&o.addclass("layui-colorpicker-"+r.size),n.addclass("layui-inline").html(e.elemcolorbox=o),e.color=e.elemcolorbox.find("."+p)[0].style.background,e.events()},f.prototype.renderpicker=function(){var e=this,r=e.config,o=e.elemcolorbox[0],n=e.elempicker=i(['
      ','
      ','
      ','
      ','
      ','
      ',"
      ",'
      ','
      ',"
      ","
      ",'
      ','
      ','
      ',"
      ","
      ",function(){if(r.predefine){var e=['
      '];return layui.each(r.colors,function(i,r){e.push(['
      ','
      ',"
      "].join(""))}),e.push("
      "),e.join("")}return""}(),'
      ','
      ','',"
      ",'
      ','','',"","
      "].join(""));e.elemcolorbox.find("."+p)[0];i(f)[0]&&i(f).data("index")==e.index?e.removepicker(f.thiselemind):(e.removepicker(f.thiselemind),i("body").append(n)),f.thiselemind=e.index,f.thiscolor=o.style.background,e.position(),e.pickerevents()},f.prototype.removepicker=function(e){var r=this;r.config;return i("#layui-colorpicker"+(e||r.index)).remove(),r},f.prototype.position=function(){var e=this,i=e.config;return r.position(e.bindelem||e.elemcolorbox[0],e.elempicker[0],{position:i.position,align:"center"}),e},f.prototype.val=function(){var e=this,i=(e.config,e.elemcolorbox.find("."+p)),r=e.elempicker.find("."+x),o=i[0],n=o.style.backgroundcolor;if(n){var l=p(d(n)),t=i.attr("lay-type");if(e.select(l.h,l.s,l.b),"torgb"===t&&r.find("input").val(n),"rgba"===t){var c=d(n);if(3==(n.match(/[0-9]{1,3}/g)||[]).length)r.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elempicker.find("."+y).css("left",280);else{r.find("input").val(n);var a=280*n.slice(n.lastindexof(",")+1,n.length-1);e.elempicker.find("."+y).css("left",a)}e.elempicker.find("."+k)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),r.find("input").val(""),e.elempicker.find("."+k)[0].style.background="",e.elempicker.find("."+y).css("left",280)},f.prototype.side=function(){var e=this,r=e.config,o=e.elemcolorbox.find("."+p),n=o.attr("lay-type"),l=e.elempicker.find("."+v),t=e.elempicker.find("."+h),c=e.elempicker.find("."+b),a=e.elempicker.find("."+m),s=e.elempicker.find("."+k),f=e.elempicker.find("."+y),c=t[0].offsettop/180*360,w=100-(a[0].offsettop+3)/180*100,e=(a[0].offsetleft+3)/260*100,f=math.round(f[0].offsetleft/280*100)/100,h=e.elemcolorbox.find("."+g),m=e.elempicker.find(".layui-colorpicker-pre").children("div"),y=function(i,l,t,c){e.select(i,l,t);var a=b({h:i,s:l,b:t});if(h.addclass(d).removeclass(u),o[0].style.background="rgb("+a.r+", "+a.g+", "+a.b+")","torgb"===n&&e.elempicker.find("."+x).find("input").val("rgb("+a.r+", "+a.g+", "+a.b+")"),"rgba"===n){var p=0;p=280*c,f.css("left",p),e.elempicker.find("."+x).find("input").val("rgba("+a.r+", "+a.g+", "+a.b+", "+c+")"),o[0].style.background="rgba("+a.r+", "+a.g+", "+a.b+", "+c+")",s[0].style.background="linear-gradient(to right, rgba("+a.r+", "+a.g+", "+a.b+", 0), rgb("+a.r+", "+a.g+", "+a.b+"))"}r.change&&r.change(e.elempicker.find("."+x).find("input").val())},i=i(['
      '].join("")),l=function(e){i("#lay-colorpicker-moving")[0]||i("body").append(i),i.on("mousemove",e),i.on("mouseup",function(){i.remove()}).on("mouseleave",function(){i.remove()})};t.on("mousedown",function(e){var i=this.offsettop,r=e.clienty,o=function(e){var o=i+(e.clienty-r),n=l[0].offsetheight;o<0&&(o=0),o>n&&(o=n);var t=o/180*360;c=t,y(t,e,w,f),e.preventdefault()};l(o),e.preventdefault()}),l.on("click",function(e){var r=e.clienty-i(this).offset().top;r<0&&(r=0),r>this.offsetheight&&(r=this.offsetheight);var o=r/180*360;c=o,y(o,e,w,f),e.preventdefault()}),a.on("mousedown",function(e){var i=this.offsettop,r=this.offsetleft,o=e.clienty,n=e.clientx,l=function(e){var l=i+(e.clienty-o),t=r+(e.clientx-n),a=c[0].offsetheight-3,s=c[0].offsetwidth-3;l<-3&&(l=-3),l>a&&(l=a),t<-3&&(t=-3),t>s&&(t=s);var f=(t+3)/260*100,d=100-(l+3)/180*100;w=d,e=f,y(c,f,d,f),e.preventdefault()};layui.stope(e),l(l),e.preventdefault()}),c.on("mousedown",function(e){var r=e.clienty-i(this).offset().top-3+j.scrolltop(),o=e.clientx-i(this).offset().left-3+j.scrollleft();r<-3&&(r=-3),r>this.offsetheight-3&&(r=this.offsetheight-3),o<-3&&(o=-3),o>this.offsetwidth-3&&(o=this.offsetwidth-3);var n=(o+3)/260*100,l=100-(r+3)/180*100;w=l,e=n,y(c,n,l,f),layui.stope(e),e.preventdefault(),a.trigger(e,"mousedown")}),f.on("mousedown",function(e){var i=this.offsetleft,r=e.clientx,o=function(e){var o=i+(e.clientx-r),n=s[0].offsetwidth;o<0&&(o=0),o>n&&(o=n);var l=math.round(o/280*100)/100;f=l,y(c,e,w,l),e.preventdefault()};l(o),e.preventdefault()}),s.on("click",function(e){var r=e.clientx-i(this).offset().left;r<0&&(r=0),r>this.offsetwidth&&(r=this.offsetwidth);var o=math.round(r/280*100)/100;f=o,y(c,e,w,o),e.preventdefault()}),m.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addclass("selected").siblings().removeclass("selected");var e,r=this.style.backgroundcolor,o=p(d(r)),n=r.slice(r.lastindexof(",")+1,r.length-1);c=o.h,e=o.s,w=o.b,3==(r.match(/[0-9]{1,3}/g)||[]).length&&(n=1),f=n,e=280*n,y(o.h,o.s,o.b,n)})})},f.prototype.select=function(e,i,r,o){var n=this,l=(n.config,w({h:e,s:100,b:100})),t=w({h:e,s:i,b:r}),c=e/360*180,a=180-r/100*180-3,s=i/100*260-3;n.elempicker.find("."+h).css("top",c),n.elempicker.find("."+b)[0].style.background="#"+l,n.elempicker.find("."+m).css({top:a,left:s}),"change"!==o&&n.elempicker.find("."+x).find("input").val("#"+t)},f.prototype.pickerevents=function(){var e=this,r=e.config,o=e.elemcolorbox.find("."+p),n=e.elempicker.find("."+x+" input"),l={clear:function(i){o[0].style.background="",e.elemcolorbox.find("."+g).removeclass(d).addclass(u),e.color="",r.done&&r.done(""),e.removepicker()},confirm:function(i,l){var t=n.val(),c=t,a={};if(t.indexof(",")>-1){if(a=p(d(t)),e.select(a.h,a.s,a.b),o[0].style.background=c="#"+w(a),(t.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===o.attr("lay-type")){var s=280*t.slice(t.lastindexof(",")+1,t.length-1);e.elempicker.find("."+y).css("left",s),o[0].style.background=t,c=t}}else a=c(t),o[0].style.background=c="#"+w(a),e.elemcolorbox.find("."+g).removeclass(u).addclass(d);return"change"===l?(e.select(a.h,a.s,a.b,l),void(r.change&&r.change(c))):(e.color=t,r.done&&r.done(t),void e.removepicker())}};e.elempicker.on("click","*[colorpicker-events]",function(){var e=i(this),r=e.attr("colorpicker-events");l[r]&&l[r].call(this,e)}),n.on("keyup",function(e){var r=i(this);l.confirm.call(this,r,13===e.keycode?null:"change")})},f.prototype.events=function(){var e=this,r=e.config,o=e.elemcolorbox.find("."+p);e.elemcolorbox.on("click",function(){e.renderpicker(),i(f)[0]&&(e.val(),e.side())}),r.elem[0]&&!e.elemcolorbox[0].eventhandler&&(e.on(n,function(r){if(!i(r.target).hasclass(s)&&!i(r.target).parents("."+s)[0]&&!i(r.target).hasclass(f.replace(/\./g,""))&&!i(r.target).parents(f)[0]&&e.elempicker){if(e.color){var n=p(d(e.color));e.select(n.h,n.s,n.b)}else e.elemcolorbox.find("."+g).removeclass(d).addclass(u);o[0].style.background=e.color||"",e.removepicker()}}),j.on("resize",function(){return!(!e.elempicker||!i(f)[0])&&void e.position()}),e.elemcolorbox[0].eventhandler=!0)},l.render=function(e){var i=new f(e);return t.call(i)},e(c,l)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",o="layui-this",s="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\s]+/,"\u5fc5\u586b\u9879\u4e0d\u80fd\u4e3a\u7a7a"],phone:[/^1\d{10}$/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7"],email:[/^([a-za-z0-9_\.\-])+\@(([a-za-z0-9\-])+\.)+([a-za-z0-9]{2,4})+$/,"\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"],url:[/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/,"\u94fe\u63a5\u683c\u5f0f\u4e0d\u6b63\u786e"],number:function(e){if(!e||isnan(e))return"\u53ea\u80fd\u586b\u5199\u6570\u5b57"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e"],identity:[/(^\d{15}$)|(^\d{17}(x|x|\d)$)/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7"]},autocomplete:null}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=this,n=t(r+'[lay-filter="'+e+'"]');return n.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e),a.getvalue(e)},u.prototype.getvalue=function(e,i){i=i||t(r+'[lay-filter="'+e+'"]').eq(0);var a={},n={},l=i.find("input,select,textarea");return layui.each(l,function(e,i){var l;t(this);if(i.name=(i.name||"").replace(/^\s*|\s*&/,""),i.name){if(/^.*\[\]$/.test(i.name)){var r=i.name.match(/^(.*)\[\]$/g)[0];a[r]=0|a[r],l=i.name.replace(/^(.*)\[\]$/,"$1["+a[r]++ +"]")}/^checkbox|radio$/.test(i.type)&&!i.checked||(n[l||i.name]=i.value)}}),n},u.prototype.render=function(e,i){var n=this,u=n.config,d=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),f={input:function(){var e=d.find("input,textarea");u.autocomplete&&e.attr("autocomplete",u.autocomplete)},select:function(){var e,i="\u8bf7\u9009\u62e9",a="layui-form-select",n="layui-select-title",r="layui-select-none",u="",f=d.find("select"),v=function(i,l){t(i.target).parent().hasclass(n)&&!l||(t("."+a).removeclass(a+"ed "+a+"up"),e&&u&&e.val(u)),e=null},y=function(i,d,f){var y,p=t(this),m=i.find("."+n),g=m.find("input"),k=i.find("dl"),x=k.children("dd"),b=this.selectedindex;if(!d){var c=function(){var e=i.offset().top+i.outerheight()+5-h.scrolltop(),t=k.outerheight();b=p[0].selectedindex,i.addclass(a+"ed"),x.removeclass(s),y=null,x.eq(b).addclass(o).siblings().removeclass(o),e+t>h.height()&&e>=t&&i.addclass(a+"up"),t()},w=function(e){i.removeclass(a+"ed "+a+"up"),g.blur(),y=null,e||$(g.val(),function(e){var i=p[0].selectedindex;e&&(u=t(p[0].options[i]).html(),0===i&&u===g.attr("placeholder")&&(u=""),g.val(u||""))})},t=function(){var e=k.children("dd."+o);if(e[0]){var t=e.position().top,i=k.height(),a=e.height();t>i&&k.scrolltop(t+k.scrolltop()-i+a-5),t<0&&k.scrolltop(t+k.scrolltop()-5)}};m.on("click",function(e){i.hasclass(a+"ed")?w():(v(e,!0),c()),k.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){g.focus()}),g.on("keyup",function(e){var t=e.keycode;9===t&&c()}).on("keydown",function(e){var t=e.keycode;9===t&&w();var i=function(t,a){var n,l;e.preventdefault();var r=function(){var e=k.children("dd."+o);if(k.children("dd."+s)[0]&&"next"===t){var i=k.children("dd:not(."+s+",."+c+")"),n=i.eq(0).index();if(n>=0&&n\u65e0\u5339\u914d\u9879

      '):k.find("."+r).remove()},"keyup"),""===t&&k.find("."+r).remove(),void t())};f&&g.on("keyup",q).on("blur",function(i){var a=p[0].selectedindex;e=g,u=t(p[0].options[a]).html(),0===a&&u===g.attr("placeholder")&&(u=""),settimeout(function(){$(g.val(),function(e){u||g.val("")},"blur")},200)}),x.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasclass(c)&&(e.hasclass("layui-select-tips")?g.val(""):(g.val(e.text()),e.addclass(o)),e.siblings().removeclass(o),p.val(a).removeclass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),s=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedindex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerhtml||i:i,m=t(['
      ','
      ','','
      ','
      ',function(e){var a=[];return layui.each(e,function(e,n){0!==e||n.value?"optgroup"===n.tagname.tolowercase()?a.push("
      "+n.label+"
      "):a.push('
      '+t.trim(n.innerhtml)+"
      "):a.push('
      '+t.trim(n.innerhtml||i)+"
      ")}),0===a.length&&a.push('
      \u6ca1\u6709\u9009\u9879
      '),a.join("")}(r.find("*"))+"
      ","
      "].join(""));s[0]&&s.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=d.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"),o=(l.attr("lay-text")||"").split("|"),s=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
      ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?o[0]:o[1])||"")+""};return t[r]||t.checkbox}(),"
      "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=d.find("input[type=radio]"),n=function(a){var n=t(this),o="layui-anim-scalespring";a.on("click",function(){var s=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+s.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(o).html(i[1])}),n[0].checked=!0,a.addclass(e+"ed"),a.find(".layui-icon").addclass(o).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),o=r.next("."+e),s=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();o[0]&&o.remove();var u=t(['
      ',''+i[l.checked?0:1]+"","
      "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html()),e}()+"
      ","
      "].join(""));r.after(u),n.call(this,u)})}};return e?f[e]?f[e]():a.error('\u4e0d\u652f\u6301\u7684 "'+e+'" \u8868\u5355\u6e32\u67d3'):layui.each(f,function(e,t){t()}),n};var d=function(){var e=null,a=f.config.verify,o="layui-form-danger",s={},c=t(this),u=c.parents(r).eq(0),d=u.find("*[lay-verify]"),h=c.parents("form")[0],y=c.attr("lay-filter");return layui.each(d,function(l,r){var s=t(this),c=s.attr("lay-verify").split("|"),u=s.attr("lay-vertype"),d=s.val();if(s.removeclass(o),layui.each(c,function(t,l){var c,f="",h="function"==typeof a[l];if(a[l]){var c=h?f=a[l](d,r):!a[l][0].test(d),y="select"===r.tagname.tolowercase()||/^checkbox|radio$/.test(r.type);if(f=f||a[l][1],"required"===l&&(f=s.attr("lay-reqtext")||f),c)return"tips"===u?i.tips(f,function(){return"string"!=typeof s.attr("lay-ignore")&&y?s.next():s}(),{tips:1}):"alert"===u?i.alert(f,{title:"\u63d0\u793a",shadeclose:!0}):/\bstring|number\b/.test(typeof f)&&i.msg(f,{icon:5,shift:6}),n.mobile?v.scrolltop(function(){try{return(y?s.next():s).offset().top-15}catch(e){return 0}}()):settimeout(function(){(y?s.next().find("input"):r).focus()},7),s.addclass(o),e=!0}}),e)return e}),!e&&(s=f.getvalue(null,u),layui.event.call(this,l,"submit("+y+")",{elem:this,form:h,field:s}))},f=new u,v=t(document),h=t(window);t(function(){f.render()}),v.on("reset",r,function(){var e=t(this).attr("lay-filter");settimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n=layui.layer,t="tree",r={config:{},index:layui[t]?layui[t].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,t,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getchecked:function(){return e.getchecked.call(e)},setchecked:function(i){return e.setchecked.call(e,i)}}},c="layui-hide",d="layui-disabled",s="layui-tree-set",o="layui-tree-iconclick",h="layui-icon-addition",u="layui-icon-subtraction",p="layui-tree-entry",f="layui-tree-main",y="layui-tree-txt",v="layui-tree-pack",c="layui-tree-spread",k="layui-tree-setlineshort",m="layui-tree-showline",x="layui-tree-lineextend",b=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};b.prototype.config={data:[],showcheckbox:!1,showline:!0,accordion:!1,onlyiconcontrol:!1,isjump:!1,edit:!1,text:{defaultnodename:"\u672a\u547d\u540d",none:"\u65e0\u6570\u636e"}},b.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){"array"===layui._typeof(i)&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},b.prototype.render=function(){var e=this,a=e.config;e.checkids=[];var n=i('
      ');e.tree(n);var t=a.elem=i(a.elem);if(t[0]){if(e.key=a.id||e.index,e.elem=n,e.elemnone=i('
      '+a.text.none+"
      "),t.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemnone);a.showcheckbox&&e.renderform("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addclass("layui-tree-sethide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasclass("layui-tree-lineextend")&&e.addclass(k),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addclass(k)}),e.events()}},b.prototype.renderform=function(e){a.render(e,"lay-tree-"+this.index)},b.prototype.tree=function(e,a){var n=this,t=n.config,r=a||t.data;layui.each(r,function(a,r){var l=r.children&&r.children.length>0,o=i('
      "),h=i(['
      ','
      ','
      ',function(){return t.showline?l?'':'':''}(),function(){return t.showcheckbox?'':""}(),function(){return t.isjump&&r.href?''+(r.title||r.label||t.text.defaultnodename)+"":''+(r.title||r.label||t.text.defaultnodename)+""}(),"
      ",function(){if(!t.edit)return"";var e={add:'',update:'',del:''},i=['
      '];return t.edit===!0&&(t.edit=["update","del"]),"object"==typeof t.edit?(layui.each(t.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"
      "):void 0}(),"
      "].join(""));l&&(h.append(o),n.tree(o,r.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addclass("layui-tree-showline"),l||h.parent(".layui-tree-pack").addclass("layui-tree-lineextend"),n.spread(h,r),t.showcheckbox&&(r.checked&&n.checkids.push(r.id),n.checkclick(h,r)),t.edit&&n.operate(h,r)})},b.prototype.spread=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f),c=r.find("."+o),k=r.find("."+y),m=t.onlyiconcontrol?c:l,x="";m.on("click",function(i){var a=e.children("."+v),n=m.children(".layui-icon")[0]?m.children(".layui-icon"):m.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasclass(c))e.removeclass(c),a.slideup(200),n.removeclass(u).addclass(h);else if(e.addclass(c),a.slidedown(200),n.addclass(u).removeclass(h),t.accordion){var r=e.siblings("."+s);r.removeclass(c),r.children("."+v).slideup(200),r.find(".layui-tree-icon").children(".layui-icon").removeclass(u).addclass(h)}}else x="normal"}),k.on("click",function(){var n=i(this);n.hasclass(d)||(x=e.hasclass(c)?t.onlyiconcontrol?"open":"close":t.onlyiconcontrol?"close":"open",t.click&&t.click({elem:e,state:x,data:a}))})},b.prototype.setcheckbox=function(e,i,a){var n=this,t=(n.config,a.prop("checked"));if(!a.prop("disabled")){if("object"==typeof i.children||e.find("."+v)[0]){var r=e.find("."+v).find('input[same="layuitreecheck"]');r.each(function(){this.disabled||(this.checked=t)})}var l=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+v),n=a.parent(),r=a.prev().find('input[same="layuitreecheck"]');t?r.prop("checked",t):(a.find('input[same="layuitreecheck"]').each(function(){this.checked&&(i=!0)}),i||r.prop("checked",!1)),l(n)}};l(e),n.renderform("checkbox")}},b.prototype.checkclick=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f);l.on("click",'input[same="layuitreecheck"]+',function(r){layui.stope(r);var l=i(this).prev(),c=l.prop("checked");l.prop("disabled")||(n.setcheckbox(e,a,l),t.oncheck&&t.oncheck({elem:e,checked:c,data:a}))})},b.prototype.operate=function(e,a){var t=this,r=t.config,l=e.children("."+p),d=l.children("."+f);l.children(".layui-tree-btngroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),b=e.children("."+v),g={data:a,type:f,elem:e};if("add"==f){b[0]||(r.showline?(d.find("."+o).addclass("layui-tree-icon"),d.find("."+o).children(".layui-icon").addclass(h).removeclass("layui-icon-file")):d.find(".layui-tree-iconarrow").removeclass(c),e.append('
      '));var w=r.operate&&r.operate(g),n={};if(n.title=r.text.defaultnodename,n.id=w,t.tree(e.children("."+v),[n]),r.showline)if(b[0])b.hasclass(x)||b.addclass(x),e.find("."+v).each(function(){i(this).children("."+s).last().addclass(k)}),b.children("."+s).last().prev().hasclass(k)?b.children("."+s).last().prev().removeclass(k):b.children("."+s).last().removeclass(k),!e.parent("."+v)[0]&&e.next()[0]&&b.children("."+s).last().removeclass(k);else{var t=e.siblings("."+s),l=1,i=e.parent("."+v);layui.each(t,function(e,a){i(a).children("."+v)[0]||(l=0)}),1==l?(t.children("."+v).addclass(m),t.children("."+v).children("."+s).removeclass(k),e.children("."+v).addclass(m),i.removeclass(x),i.children("."+s).last().children("."+v).children("."+s).last().addclass(k)):e.children("."+v).children("."+s).addclass(k)}if(!r.showcheckbox)return;if(d.find('input[same="layuitreecheck"]')[0].checked){var a=e.children("."+v).children("."+s).last();a.find('input[same="layuitreecheck"]')[0].checked=!0}t.renderform("checkbox")}else if("update"==f){var f=d.children("."+y).html();d.children("."+y).html(""),d.append(''),d.children(".layui-tree-editinput").val(f).focus();var j=function(e){var i=e.val().trim();i=i?i:r.text.defaultnodename,e.remove(),d.children("."+y).html(i),g.data.title=i,r.operate&&r.operate(g)};d.children(".layui-tree-editinput").blur(function(){j(i(this))}),d.children(".layui-tree-editinput").on("keydown",function(e){13===e.keycode&&(e.preventdefault(),j(i(this)))})}else n.confirm('\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9 "'+(a.title||"")+'" \u5417\uff1f',function(a){if(r.operate&&r.operate(g),g.status="remove",n.close(a),!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+v)[0])return e.remove(),void t.elem.append(t.elemnone);if(e.siblings("."+s).children("."+p)[0]){if(r.showcheckbox){var l=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+p),n=e.parent("."+v).prev(),r=n.find('input[same="layuitreecheck"]')[0],c=1,d=0;0==r.checked&&(a.each(function(e,a){var n=i(a).find('input[same="layuitreecheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(d=1)}),1==c&&1==d&&(r.checked=!0,t.renderform("checkbox"),l(n.parent("."+s))))}};l(e)}if(r.showline){var d=e.siblings("."+s),h=1,f=e.parent("."+v);layui.each(d,function(e,a){i(a).children("."+v)[0]||(h=0)}),1==h?(b[0]||(f.removeclass(x),d.children("."+v).addclass(m),d.children("."+v).children("."+s).removeclass(k)),e.next()[0]?f.children("."+s).last().children("."+v).children("."+s).last().addclass(k):e.prev().children("."+v).children("."+s).last().addclass(k),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addclass(k)):!e.next()[0]&&e.hasclass(k)&&e.prev().addclass(k)}}else{var y=e.parent("."+v).prev();if(r.showline){y.find("."+o).removeclass("layui-tree-icon"),y.find("."+o).children(".layui-icon").removeclass(u).addclass("layui-icon-file");var w=y.parents("."+v).eq(0);w.addclass(x),w.children("."+s).each(function(){i(this).children("."+v).children("."+s).last().addclass(k)})}else y.find(".layui-tree-iconarrow").addclass(c);e.parents("."+s).eq(0).removeclass(c),e.parent("."+v).remove()}e.remove()})})},b.prototype.events=function(){var e=this,a=e.config;e.elem.find(".layui-tree-checkedfirst");e.setchecked(e.checkids),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),t=n.val(),r=n.nextall(),l=[];r.find("."+y).each(function(){var e=i(this).parents("."+p);if(i(this).html().indexof(t)!=-1){l.push(i(this).parent());var a=function(e){e.addclass("layui-tree-searchshow"),e.parent("."+v)[0]&&a(e.parent("."+v).parent("."+s))};a(e.parent("."+s))}}),r.find("."+p).each(function(){var e=i(this).parent("."+s);e.hasclass("layui-tree-searchshow")||e.addclass(c)}),0==r.find(".layui-tree-searchshow").length&&e.elem.append(e.elemnone),a.onsearch&&a.onsearch({elem:l})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextall().find("."+p).each(function(){var e=i(this).parent("."+s);e.removeclass("layui-tree-searchshow "+c)}),i(".layui-tree-emptytext")[0]&&i(".layui-tree-emptytext").remove()})},b.prototype.getchecked=function(){var e=this,a=e.config,n=[],t=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var r=function(e,a){layui.each(e,function(e,t){layui.each(n,function(e,n){if(t.id==n){var l=i.extend({},t);return delete l.children,a.push(l),t.children&&(l.children=[],r(t.children,l.children)),!0}})})};return r(i.extend({},a.data),t),t},b.prototype.setchecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var t=i(this).data("id"),r=i(n).children("."+p).find('input[same="layuitreecheck"]'),l=r.next();if("number"==typeof e){if(t==e)return r[0].checked||l.click(),!1}else"object"==typeof e&&layui.each(e,function(e,i){if(i==t&&!r[0].checked)return l.click(),!0})})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getchecked=function(e){var i=l.that[e];return i.getchecked()},r.setchecked=function(e,i){var a=l.that[e];return a.setchecked(i)},r.render=function(e){var i=new b(e);return l.call(i)},e(t,r)});layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,i=layui.form,n="transfer",l={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,n,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getdata:function(){return e.getdata.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
      ','
      ','","
      ","{{# if(d.data.showsearch){ }}",'","{{# } }}",'
        ',"
        "].join("")},v=['
        ',p({index:0,checkallname:"laytransferleftcheckall"}),'
        ','",'","
        ",p({index:1,checkallname:"laytransferrightcheckall"}),"
        "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["\u5217\u8868\u4e00","\u5217\u8868\u4e8c"],width:200,height:360,data:[],value:[],showsearch:!1,id:"",text:{none:"\u65e0\u6570\u636e",searchnone:"\u65e0\u5339\u914d\u6570\u636e"}},x.prototype.reload=function(e){var t=this;t.config=a.extend({},t.config,e),t.render()},x.prototype.render=function(){var e=this,i=e.config,n=e.elem=a(t(v).render({data:i,index:e.index})),l=i.elem=a(i.elem);l[0]&&(i.data=i.data||[],i.value=i.value||[],e.key=i.id||e.index,l.html(e.elem),e.laybox=e.elem.find("."+s),e.layheader=e.elem.find("."+u),e.laysearch=e.elem.find("."+h),e.laydata=n.find("."+y),e.laybtn=n.find("."+f+" .layui-btn"),e.laybox.css({width:i.width,height:i.height}),e.laydata.css({height:function(){return i.height-e.layheader.outerheight()-e.laysearch.outerheight()-2}()}),e.renderdata(),e.events())},x.prototype.renderdata=function(){var e=this,a=(e.config,[{checkname:"laytransferleftcheck",views:[]},{checkname:"laytransferrightcheck",views:[]}]);e.parsedata(function(e){var t=e.selected?1:0,i=["
      • ",'',"
      • "].join("");a[t].views.push(i),delete e.selected}),e.laydata.eq(0).html(a[0].views.join("")),e.laydata.eq(1).html(a[1].views.join("")),e.rendercheckbtn()},x.prototype.renderform=function(e){i.render(e,"lay-transfer-"+this.index)},x.prototype.rendercheckbtn=function(e){var t=this,i=t.config;e=e||{},t.laybox.each(function(n){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.laybtn.eq(n)[f?"removeclass":"addclass"](o),!e.stopnone){var p=r.children("li:not(."+c+")").length;t.noneview(r,p?"":i.text.none)}}),t.renderform("checkbox")},x.prototype.noneview=function(e,t){var i=a('

        '+(t||"")+"

        ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(i)},x.prototype.setvalue=function(){var e=this,t=e.config,i=[];return e.laybox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||i.push(this.value)}),t.value=i,e},x.prototype.parsedata=function(e){var t=this,i=t.config,n=[];return layui.each(i.data,function(t,l){l=("function"==typeof i.parsedata?i.parsedata(l):l)||l,n.push(l=a.extend({},l)),layui.each(i.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),i.data=n,t},x.prototype.getdata=function(e){var a=this,t=a.config,i=[];return a.setvalue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&i.push(t)})}),i},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="laytransfercheckbox"]+',function(){var t=a(this).prev(),i=t[0].checked,n=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&n.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=i)}),e.rendercheckbtn({stopnone:!0}))}),e.laybtn.on("click",function(){var i=a(this),n=i.data("index"),l=e.laybox.eq(n),r=[];if(!i.hasclass(o)){e.laybox.eq(n).each(function(t){var i=a(this),n=i.find("."+y);n.children("li").each(function(){var t=a(this),i=t.find('input[type="checkbox"]'),n=i.data("hide");i[0].checked&&!n&&(i[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(i[0].value)),e.setvalue()})}),e.rendercheckbtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getdata(r),n)}}),e.laysearch.find("input").on("keyup",function(){var i=this.value,n=a(this).parents("."+h).eq(0).siblings("."+y),l=n.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),n=t[0].title.indexof(i)!==-1;e[n?"removeclass":"addclass"](c),t.data("hide",!n)}),e.rendercheckbtn();var r=l.length===n.children("li."+c).length;e.noneview(n,r?t.text.searchnone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getdata=function(e){var a=r.that[e];return a.getdata()},l.render=function(e){var a=new x(e);return r.call(a)},e(n,l)});layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=layui.util,r=layui.hint(),c=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,h,e,t)}},s=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(s.that[i]=e,s.config[i]=t),{config:t,reload:function(t,i){e.reload.call(e,t,i)},setcolswidth:function(){e.setcolswidth.call(e)},resize:function(){e.resize.call(e)}}},u=function(e){var t=s.config[e];return t||r.error(e?"the table instance with id '"+e+"' not found":"id argument required"),t||null},y=function(e,a,l,n){var r=this.config||{};r.escape&&(a=o.escape(a));var c=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||string(a)).render(l)}():a;return n?t("
        "+c+"
        ").text():c},h="table",f=".layui-table",p="layui-hide",v="layui-none",m="layui-table-view",g=".layui-table-tool",b=".layui-table-box",x=".layui-table-init",k=".layui-table-header",c=".layui-table-body",w=".layui-table-main",t=".layui-table-fixed",n=".layui-table-fixed-l",l=".layui-table-fixed-r",_=".layui-table-total",s=".layui-table-page",a=".layui-table-sort",r="layui-table-edit",w="layui-table-hover",z=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"){ }}':""}(),"{{# var issort = !(item2.colgroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
        ','
        ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(issort){ }}",'',"{{# } }}","{{# } }}","
        ","
        "].join("")},e=['',"","
        "].join(""),j=['
        ',"{{# if(d.data.toolbar){ }}",'
        ','
        ','
        ',"
        ","{{# } }}",'
        ',"{{# if(d.data.loading){ }}",'
        ','',"
        ","{{# } }}","{{# var left, right; }}",'
        ',z(),"
        ",'
        ',e,"
        ","{{# if(left){ }}",'
        ','
        ',z({fixed:!0}),"
        ",'
        ',e,"
        ","
        ","{{# }; }}","{{# if(right){ }}",'
        ','
        ',z({fixed:"right"}),'
        ',"
        ",'
        ',e,"
        ","
        ","{{# }; }}","
        ","{{# if(d.data.totalrow){ }}",'
        ','','',"
        ","
        ","{{# } }}","{{# if(d.data.page){ }}",'
        ','
        ',"
        ","{{# } }}","","
        "].join(""),f=t(window),i=t(document),h=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};h.prototype.config={limit:10,loading:!0,cellminwidth:60,defaulttoolbar:["filter","exports","print"],autosort:!0,text:{none:"\u65e0\u6570\u636e"}},h.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")||e.index,a.request=t.extend({pagename:"page",limitname:"limit"},a.request),a.response=t.extend({statusname:"code",statuscode:0,msgname:"msg",dataname:"data",totalrowname:"totalrow",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;a.height&&/^full-\d+$/.test(a.height)&&(e.fullheightgap=a.height.split("-")[1],a.height=f.height()-e.fullheightgap),e.setinit();var l=a.elem,n=l.next("."+m),o=e.elem=t(i(j).render({view_class:m,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.laytool=o.find(g),e.laybox=o.find(b),e.layheader=o.find(k),e.laymain=o.find(w),e.laybody=o.find(c),e.layfixed=o.find(t),e.layfixleft=o.find(n),e.layfixright=o.find(l),e.laytotal=o.find(_),e.laypage=o.find(s),e.rendertoolbar(),e.fullsize(),a.cols.length>1){var r=e.layfixed.find(k).find("th");r.height(e.layheader.height()-1-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom")))}e.pulldata(e.page),e.events()},h.prototype.initopts=function(e){var t=this,i=(t.config,{checkbox:48,radio: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])},h.prototype.setinit=function(e){var t=this,i=t.config;return i.clientwidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientwidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colgroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.has_parent||o>1&&o==n.colspan||(i.has_parent=!0,i.parentkey=e+"-"+l,o+=parseint(i.colspan>1?i.colspan:1))}),n.colgroup=!0}t.initopts(n)})})},h.prototype.rendertoolbar=function(){var e=this,a=e.config,l=['
        ','
        ','
        '].join(""),n=e.laytool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"\u7b5b\u9009\u5217",layevent:"laytable_cols",icon:"layui-icon-cols"},exports:{title:"\u5bfc\u51fa",layevent:"laytable_export",icon:"layui-icon-export"},print:{title:"\u6253\u5370",layevent:"laytable_print",icon:"layui-icon-print"}},c=[];"object"==typeof a.defaulttoolbar&&layui.each(a.defaulttoolbar,function(e,t){var i="string"==typeof t?r[t]:t;i&&c.push('
        ')}),e.laytool.find(".layui-table-tool-self").html(c.join(""))},h.prototype.setparentcol=function(e,t){var i=this,a=i.config,l=i.layheader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseint(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addclass":"removeclass"](p),r.colspan=n,r.hide=n<1;var c=l.data("parentkey");c&&i.setparentcol(e,c)}},h.prototype.setcolspatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setparentcol(i.hide,i.parentkey)})})},h.prototype.setcolswidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setinit("width");e.eachcols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getscrollwidth(e.laymain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,c){var d=0,s=c.minwidth||t.cellminwidth;return c?void(c.colgroup||c.hide||(e?l&&ln&&a&&(l=(o-n)/a)};r(),r(!0),e.autocolnums=a,e.eachcols(function(i,a){var n=a.minwidth||t.cellminwidth;a.colgroup||a.hide||(0===a.width?e.getcssrule(t.index+"-"+a.key,function(e){e.style.width=math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getcssrule(t.index+"-"+a.key,function(e){e.style.width=math.floor(parsefloat(a.width)/100*o)+"px"}))});var c=e.laymain.width()-e.getscrollwidth(e.laymain[0])-e.laymain.children("table").outerwidth();if(e.autocolnums&&c>=-i&&c<=i){var d=function(t){var i;return t=t||e.layheader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?d(t.prev()):t},s=d(),u=s.data("key");e.getcssrule(u,function(t){var i=t.style.width||s.outerwidth();t.style.width=parsefloat(i)+c+"px",e.laymain.height()-e.laymain.prop("clientheight")>0&&(t.style.width=parsefloat(t.style.width)-1+"px")})}e.loading(!0)},h.prototype.resize=function(){var e=this;e.fullsize(),e.setcolswidth(),e.scrollpatch()},h.prototype.reload=function(e,i){var a=this;e=e||{},delete a.haveinit,layui.each(e,function(e,t){"array"===layui._typeof(t)&&delete a.config[e]}),a.config=t.extend(i,{},a.config,e),a.render()},h.prototype.errorview=function(e){var i=this,a=i.laymain.find("."+v),l=t('
        '+(e||"error")+"
        ");a[0]&&(i.laynone.remove(),a.remove()),i.layfixed.addclass(p),i.laymain.find("tbody").html(""),i.laymain.append(i.laynone=l),d.cache[i.key]=[]},h.prototype.page=1,h.prototype.pulldata=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initsort&&i.sort(a.initsort.field,a.initsort.type)};if(i.starttime=(new date).gettime(),a.url){var r={};r[l.pagename]=e,r[l.limitname]=a.limit;var c=t.extend(r,a.where);a.contenttype&&0==a.contenttype.indexof("application/json")&&(c=json.stringify(c)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contenttype:a.contenttype,data:c,datatype:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parsedata&&(t=a.parsedata(t)||t),t[n.statusname]!=n.statuscode?(i.renderform(),i.errorview(t[n.msgname]||'\u8fd4\u56de\u7684\u6570\u636e\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u6b63\u786e\u7684\u6210\u529f\u72b6\u6001\u7801\u5e94\u4e3a\uff1a"'+n.statusname+'": '+n.statuscode)):(i.renderdata(t,e,t[n.countname]),o(),a.time=(new date).gettime()-i.starttime+" ms"),i.setcolswidth(),"function"==typeof a.done&&a.done(t,e,t[n.countname])},error:function(e,t){i.errorview("\u8bf7\u6c42\u5f02\u5e38\uff0c\u9519\u8bef\u63d0\u793a\uff1a"+t),i.renderform(),i.setcolswidth(),"function"==typeof a.error&&a.error(e,t)}})}else if("array"===layui._typeof(a.data)){var d={},s=e*a.limit-a.limit;d[n.dataname]=a.data.concat().splice(s,a.limit),d[n.countname]=a.data.length,"object"==typeof a.totalrow&&(d[n.totalrowname]=t.extend({},a.totalrow)),i.renderdata(d,e,d[n.countname]),o(),i.setcolswidth(),"function"==typeof a.done&&a.done(d,e,d[n.countname])}},h.prototype.eachcols=function(e){var t=this;return d.eachcols(null,e,t.config.cols),t},h.prototype.renderdata=function(e,n,o,r){var c=this,s=c.config,u=e[s.response.dataname]||[],h=e[s.response.totalrowname],f=[],m=[],g=[],b=function(){var e;return!r&&c.sortkey?c.sort(c.sortkey.field,c.sortkey.sort,!0):(layui.each(u,function(a,l){var o=[],u=[],h=[],v=a+s.limit*(n-1)+1;"array"===layui._typeof(l)&&0===l.length||(r||(l[d.config.indexname]=a),c.eachcols(function(n,r){var f=r.field||n,m=s.index+"-"+r.key,g=l[f];if(void 0!==g&&null!==g||(g=""),!r.colgroup){var b=['','
        '+function(){var n=t.extend(!0,{lay_index:v,lay_col:r},l),o=d.config.checkname;switch(r.type){case"checkbox":return'";case"radio":return n[o]&&(e=a),'';case"numbers":return v}return r.toolbar?i(t(r.toolbar).html()||"").render(n):y.call(c,r,g,n)}(),"
        "].join("");o.push(b),r.fixed&&"right"!==r.fixed&&u.push(b),"right"===r.fixed&&h.push(b)}}),f.push(''+o.join("")+""),m.push(''+u.join("")+""),g.push(''+h.join("")+""))}),c.laybody.scrolltop(0),c.laymain.find("."+v).remove(),c.laymain.find("tbody").html(f.join("")),c.layfixleft.find("tbody").html(m.join("")),c.layfixright.find("tbody").html(g.join("")),c.renderform(),"number"==typeof e&&c.setthisrowchecked(e),c.synccheckall(),c.haveinit?c.scrollpatch():settimeout(function(){c.scrollpatch()},50),c.haveinit=!0,l.close(c.tipsindex),s.has_set_cols_patch||c.setcolspatch(),void(s.has_set_cols_patch=!0))};return d.cache[c.key]=u,c.laypage[0==o||0===u.length&&1==n?"addclass":"removeclass"](p),0===u.length?(c.renderform(),c.errorview(s.text.none)):(c.layfixed.removeclass(p),r?b():(b(),c.rendertotal(u,h),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))}},s.page),s.page.count=o,a.render(s.page)))))},h.prototype.rendertotal=function(e,a){var l=this,n=l.config,o={};if(n.totalrow){layui.each(e,function(e,t){"array"===layui._typeof(t)&&0===t.length||l.eachcols(function(e,i){var a=i.field||e,l=t[a];i.totalrow&&(o[a]=(o[a]||0)+(parsefloat(l)||0))})}),l.datatotal={};var r=[];l.eachcols(function(e,c){var d=c.field||e,s=function(){var e,t=c.totalrowtext||"",i=parsefloat(o[d]).tofixed(2),n={};return n[d]=i,e=c.totalrow?y.call(l,c,i,n)||t:t,a?a[c.field]||e:e}(),u=['','
        '+function(){var e=c.totalrow||n.totalrow;return"string"==typeof e?i(e).render(t.extend({total_nums:s},c)):s}(),"
        "].join("");c.field&&(l.datatotal[d]=s),r.push(u)}),l.laytotal.find("tbody").html(""+r.join("")+"")}},h.prototype.getcolelem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},h.prototype.renderform=function(e){n.render(e,"lay-table-"+this.index)},h.prototype.setthisrowchecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.laybody.find('tr[data-index="'+e+'"]');a.addclass(i).siblings("tr").removeclass(i)},h.prototype.sort=function(e,i,a,l){var n,o,c=this,s={},u=c.config,y=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&(n=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"),p=e.data("key");if(c.sortkey&&!a&&n===c.sortkey.field&&i===c.sortkey.sort)return;var v=c.layheader.find("th .laytable-cell-"+p).find(a);c.layheader.find("th").find(a).removeattr("lay-sort"),v.attr("lay-sort",i||null),c.layfixed.find("th")}catch(m){r.error("table modules: sort field '"+n+"' not matched")}c.sortkey={field:n,sort:i},u.autosort&&("asc"===i?o=layui.sort(f,n):"desc"===i?o=layui.sort(f,n,!0):(o=layui.sort(f,d.config.indexname),delete c.sortkey)),s[u.response.dataname]=o||f,c.renderdata(s,c.page,c.count,!0),l&&layui.event.call(e,h,"sort("+y+")",{field:n,type:i})},h.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layinit&&i.layinit.remove(),delete i.layinit,i.laybox.find(x).remove()):(i.layinit=t(['
        ','',"
        "].join("")),i.laybox.append(i.layinit)))},h.prototype.setcheckdata=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&"array"!==layui._typeof(l[e])&&(l[e][a.checkname]=t)},h.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)))},h.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(i,a){if(a.selectortext===".laytable-cell-"+e)return t(a),!0})},h.prototype.fullsize=function(){var e,t=this,i=t.config,a=i.height;t.fullheightgap&&(a=f.height()-t.fullheightgap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parsefloat(a)-(t.layheader.outerheight()||38),i.toolbar&&(e-=t.laytool.outerheight()||50),i.totalrow&&(e-=t.laytotal.outerheight()||40),i.page&&(e-=t.laypage.outerheight()||41),t.laymain.css("height",e-2))},h.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},h.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]),i.outerwidth()-e.laymain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('
        ');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layheader),o(e.laytotal);var r=e.laymain.height(),c=r-l;e.layfixed.find(c).css("height",i.height()>=c?c:"auto"),e.layfixright[n>0?"removeclass":"addclass"](p),e.layfixright.css("right",a-1)},h.prototype.events=function(){var e,i=this,a=i.config,o=t("body"),r={},s=i.layheader.find("th"),u=".layui-table-cell",f=a.elem.attr("lay-filter");i.laytool.on("click","*[lay-event]",function(e){var o=t(this),r=o.attr("lay-event"),s=function(e){var l=t(e.list),n=t('
          ');n.html(l),a.height&&n.css("max-height",a.height-(i.laytool.outerheight()||50)),o.find(".layui-table-tool-panel")[0]||o.append(n),i.renderform(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),i.trigger("table.tool.panel.remove"),l.close(i.tipsindex),r){case"laytable_cols":s({list:function(){var e=[];return i.eachcols(function(t,i){i.field&&"normal"==i.type&&e.push('
        • ')}),e.join("")}(),done:function(){n.on("checkbox(lay_table_tool_cols)",function(e){var l=t(e.elem),n=this.checked,o=l.data("key"),r=l.data("parentkey");layui.each(a.cols,function(e,t){layui.each(t,function(t,l){if(e+"-"+t===o){var c=l.hide;l.hide=!n,i.elem.find('*[data-key="'+a.index+"-"+o+'"]')[n?"removeclass":"addclass"](p),c!=l.hide&&i.setparentcol(!n,r),i.resize()}})})})}});break;case"laytable_export":c.ie?l.tips("\u5bfc\u51fa\u529f\u80fd\u4e0d\u652f\u6301 ie\uff0c\u8bf7\u7528 chrome \u7b49\u9ad8\u7ea7\u6d4f\u89c8\u5668\u5bfc\u51fa",this,{tips:3}):s({list:function(){return['
        • \u5bfc\u51fa\u5230 csv \u6587\u4ef6
        • ','
        • \u5bfc\u51fa\u5230 excel \u6587\u4ef6
        • '].join("")}(),done:function(e,l){l.on("click",function(){var e=t(this).data("type");d.exportfile.call(i,a.id,null,e)})}});break;case"laytable_print":var u=window.open("\u6253\u5370\u7a97\u53e3","_blank"),y=[""].join(""),v=t(i.layheader.html());v.append(i.laymain.find("table").html()),v.append(i.laytotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(y+v.prop("outerhtml")),u.document.close(),u.print(),u.close()}layui.event.call(this,h,"toolbar("+f+")",t.extend({event:r,config:a},{}))}),s.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientx-a;i.data("unresize")||r.resizestart||(r.allowresize=i.width()-l<=10,o.css("cursor",r.allowresize?"col-resize":""))}).on("mouseleave",function(){t(this);r.resizestart||o.css("cursor","")}).on("mousedown",function(e){var l=t(this);if(r.allowresize){var n=l.data("key");e.preventdefault(),r.resizestart=!0,r.offset=[e.clientx,e.clienty],i.getcssrule(n,function(e){var t=e.style.width||l.outerwidth();r.rule=e,r.rulewidth=parsefloat(t),r.minwidth=l.data("minwidth")||a.cellminwidth})}}),i.on("mousemove",function(t){if(r.resizestart){if(t.preventdefault(),r.rule){var a=r.rulewidth+t.clientx-r.offset[0];a');return n[0].value=i.data("content")||l.text(),i.find("."+r)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(u);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollwidth")>a.outerwidth()){if(a.find("."+g)[0])return;i.append('
          ')}};i.laybody.on("click","."+g,function(e){var n=t(this),o=n.parent(),r=o.children(u);i.tipsindex=l.tips(['
          ',r.html(),"
          ",''].join(""),r[0],{tips:[3,""],time:-1,anim:-1,maxwidth:c.ios||c.android?300:i.elem.width()/2,isoutanim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),i.laybody.on("click","*[lay-event]",function(){var e=t(this),a=e.parents("tr").eq(0).data("index");layui.event.call(this,h,"tool("+f+")",v.call(this,{event:e.attr("lay-event")})),i.setthisrowchecked(a)}),i.laymain.on("scroll",function(){var e=t(this),a=e.scrollleft(),n=e.scrolltop();i.layheader.scrollleft(a),i.laytotal.scrollleft(a),i.layfixed.find(c).scrolltop(n),l.close(i.tipsindex)}),f.on("resize",function(){i.resize()})},function(){i.on("click",function(){i.trigger("table.remove.tool.panel")}),i.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()})}(),d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':f+"[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(o){r.error(n+l,"error")}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(o){return r.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},s.that={},s.config={},d.eachcols=function(e,i,a){var l=s.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colgroup){var l=0;o++,i.child_cols=[],layui.each(a[e+1],function(e,t){t.parent_col_index||l>1&&l==i.colspan||(t.parent_col_index=o,i.child_cols.push(t),l+=parseint(t.colspan>1?t.colspan:1))})}i.parent_col_index||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.child_cols?r(t.child_cols):void("function"==typeof i&&i(e,t))})};r()},d.checkstatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return"array"===layui._typeof(l)?void i++:void(l[d.config.checkname]&&(t++,a.push(d.clearcachekey(l))))}),{data:a,isall:!!l.length&&t===l.length-i}},d.getdata=function(e){var t=[],i=d.cache[e]||[];return layui.each(i,function(e,i){"array"!==layui._typeof(i)&&t.push(d.clearcachekey(i))}),t},d.exportfile=function(e,t,i){var a=this;t=t||d.clearcachekey(d.cache[e]),i=i||"csv";var l=s.that[e],n=s.config[e]||{},o={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],u=document.createelement("a");return c.ie?r.error("ie_not_support_exports"):(u.href="data:"+o+";charset=utf-8,\ufeff"+encodeuricomponent(function(){var i=[],n=[],o=[];return layui.each(t,function(t,a){var o=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearcachekey(a),function(e,t){o.push('"'+(t||"")+'"')})):d.eachcols(e,function(e,n){if(n.field&&"normal"==n.type&&!n.hide){var r=a[n.field];void 0!==r&&null!==r||(r=""),0==t&&i.push(n.title||""),o.push('"'+y.call(l,n,r,a,"text")+'"')}}),n.push(o.join(","))}),layui.each(a.datatotal,function(e,t){o.push(t)}),i.join(",")+"\r\n"+n.join("\r\n")+"\r\n"+o.join(",")}()),u.download=(n.title||"table_"+(n.index||""))+"."+i,document.body.appendchild(u),u.click(),void document.body.removechild(u))},d.resize=function(e){if(e){var t=u(e);if(!t)return;s.that[e].resize()}else layui.each(s.that,function(){ this.resize()})},d.reload=function(e,t,i){var a=u(e);if(a){var l=s.that[e];return l.reload(t,i),s.call(l)}},d.render=function(e){var t=new h(e);return s.call(t)},d.clearcachekey=function(e){return e=t.extend({},e),delete e[d.config.checkname],delete e[d.config.indexname],e},t(function(){d.init()}),e(h,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&&(clearinterval(e.timer),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):al.length&&(l.value=l.length),parseint(l.value)!==l.value&&(l.half||(l.value=math.ceil(l.value)-l.value<.5?math.ceil(l.value):math.floor(l.value)));for(var n='
            ",s=1;s<=l.length;s++){var r='
          • ";l.half&&parseint(l.value)!==l.value&&s==math.ceil(l.value)?n=n+'
          • ":n+=r}n+="
          "+(l.text?''+l.value+"\u661f":"")+"";var c=l.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemtemp=a(n),l.span=e.elemtemp.next("span"),l.settext&&l.settext(l.value),c.html(e.elemtemp),c.addclass("layui-inline"),l.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,l=a.config;l.value=e,a.render()},v.prototype.action=function(){var e=this,l=e.config,i=e.elemtemp,n=i.find("i").width();i.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(l.value=t,l.half){var o=e.pagex-a(this).offset().left;o<=n/2&&(l.value=l.value-.5)}l.text&&i.next("span").text(l.value+"\u661f"),l.choose&&l.choose(l.value),l.settext&&l.settext(l.value)}),v.on("mousemove",function(e){if(i.find("i").each(function(){a(this).addclass(o).removeclass(r)}),i.find("i:lt("+t+")").each(function(){a(this).addclass(u).removeclass(f)}),l.half){var c=e.pagex-a(this).offset().left;c<=n/2&&v.children("i").addclass(s).removeclass(u)}}),v.on("mouseleave",function(){i.find("i").each(function(){a(this).addclass(o).removeclass(r)}),i.find("i:lt("+math.floor(l.value)+")").each(function(){a(this).addclass(u).removeclass(f)}),l.half&&parseint(l.value)!==l.value&&i.children("li:eq("+math.floor(l.value)+")").children("i").addclass(s).removeclass(c)})})},v.prototype.events=function(){var e=this;e.config},l.render=function(e){var a=new v(e);return i.call(a)},e(n,l)});layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var m=l(e.elem);if(m[0]){var f=l(e.scrollelem||document),u=e.mb||50,s=!("isauto"in e)||e.isauto,y=e.end||"\u6ca1\u6709\u66f4\u591a\u4e86",v=e.scrollelem&&e.scrollelem!==document,d="\u52a0\u8f7d\u66f4\u591a",h=l('");m.find(".layui-flow-more")[0]||m.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(y):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?(f.on("scroll",function(){var e=l(this),t=e.scrolltop();r&&cleartimeout(r),!i&&m.width()&&(r=settimeout(function(){var i=v?e.height():l(window).height(),n=v?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("lay-src")){var f=e.attr("lay-src");layui.img(f,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",f).removeattr("lay-src"),l[0]&&m(l),i++},function(){t.lazyimg.elem.eq(i);e.removeattr("lay-src")})}},m=function(e,o){var m=a?(o||n).height():l(window).height(),f=n.scrolltop(),u=f+m;if(t.lazyimg.elem=l(r),e)c(e,m);else for(var s=0;su)break}};if(m(),!o){var f;n.on("scroll",function(){var e=l(this);f&&cleartimeout(f),f=settimeout(function(){m(null,e)},50)}),o=!0}return m},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("string"==typeof t?"#"+t: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("\u8bf7\u6682\u65f6\u7528shift+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||"\u4e0a\u4f20\u5931\u8d25")}})})},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:"\u5e2e\u52a9",area:["600px","380px"],shadeclose:!0,shade:.1,skin:"layui-layer-msg",content:["","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:"\u8d85\u94fe\u63a5",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=["[\u5fae\u7b11]","[\u563b\u563b]","[\u54c8\u54c8]","[\u53ef\u7231]","[\u53ef\u601c]","[\u6316\u9f3b]","[\u5403\u60ca]","[\u5bb3\u7f9e]","[\u6324\u773c]","[\u95ed\u5634]","[\u9119\u89c6]","[\u7231\u4f60]","[\u6cea]","[\u5077\u7b11]","[\u4eb2\u4eb2]","[\u751f\u75c5]","[\u592a\u5f00\u5fc3]","[\u767d\u773c]","[\u53f3\u54fc\u54fc]","[\u5de6\u54fc\u54fc]","[\u5618]","[\u8870]","[\u59d4\u5c48]","[\u5410]","[\u54c8\u6b20]","[\u62b1\u62b1]","[\u6012]","[\u7591\u95ee]","[\u998b\u5634]","[\u62dc\u62dc]","[\u601d\u8003]","[\u6c57]","[\u56f0]","[\u7761]","[\u94b1]","[\u5931\u671b]","[\u9177]","[\u8272]","[\u54fc]","[\u9f13\u638c]","[\u6655]","[\u60b2\u4f24]","[\u6293\u72c2]","[\u9ed1\u7ebf]","[\u9634\u9669]","[\u6012\u9a82]","[\u4e92\u7c89]","[\u5fc3]","[\u4f24\u5fc3]","[\u732a\u5934]","[\u718a\u732b]","[\u5154\u5b50]","[ok]","[\u8036]","[good]","[no]","[\u8d5e]","[\u6765]","[\u5f31]","[\u8349\u6ce5\u9a6c]","[\u795e\u9a6c]","[\u56e7]","[\u6d6e\u4e91]","[\u7ed9\u529b]","[\u56f4\u89c2]","[\u5a01\u6b66]","[\u5965\u7279\u66fc]","[\u793c\u7269]","[\u949f]","[\u8bdd\u7b52]","[\u8721\u70db]","[\u86cb\u7cd5]"],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:"\u63d2\u5165\u4ee3\u7801",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:''},l=new c;t(n,l)});layui.define("jquery",function(a){"use strict";var e=layui.$;a("code",function(a){var l=[];a=a||{},a.elem=e(a.elem||".layui-code"),a.lang="lang"in a?a.lang:"code",a.elem.each(function(){l.push(this)}),layui.each(l.reverse(),function(l,i){var t=e(i),c=t.html();(t.attr("lay-encode")||a.encode)&&(c=c.replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),t.html('
          1. '+c.replace(/[\r\t\n]+/g,"
          2. ")+"
          "),t.find(">.layui-code-h3")[0]||t.prepend('

          '+(t.attr("lay-title")||a.title||"</>")+''+(t.attr("lay-lang")||a.lang||"")+"

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