;!function(e){"use strict";vart=function(){this.v="1.0.3"};t.fn=t.prototype;varn=document,o=t.fn.cache={},i=function(){vare=n.scripts,t=e[e.length-1].src;returnt.substring(0,t.lastIndexOf("/")+1)}(),r=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},u="undefined"!=typeofopera&&"[object Opera]"===opera.toString(),l={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",slide:"modules/slide",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",code:"modules/code",single:"modules/single",mobile:"modules/mobile",jquery:"lib/jquery","layui.mod":"dest/layui.mod"};o.modules={},o.status={},o.timeout=10,o.event={},t.fn.define=function(e,t){varn=this,i="function"==typeofe,r=function(){return"function"==typeoft&&t(function(e,t){layui[e]=t,o.status[e]=!0}),this};returni&&(t=e,e=[]),layui["layui.all"]?r.call(n):(n.use(e,r),n)},t.fn.use=function(e,t,a){functions(e,t){varn="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[y]=t,m.removeChild(p),functioni(){return++v>1e3*o.timeout/4?r(y+" is not a valid module"):void(o.status[y]?c():setTimeout(i,4))}())}functionc(){a.push(layui[y]),e.length>1?d.use(e.slice(1),t,a):"function"==typeoft&&t.apply(layui,a)}vard=this,f=o.dir=o.dir?o.dir:i,m=n.getElementsByTagName("head")[0];e="string"==typeofe?[e]:e,window.jQuery&&jQuery.fn.on&&(d.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=jQuery);vary=e[0],v=0;if(a=a||[],o.host=o.host||(f.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length)returnt();varp=n.createElement("script"),h=(l[y]?f+"lay/":o.base||"")+(d.modules[y]||y)+".js";returnp.async=!0,p.charset="utf-8",p.src=h+function(){vare=o.version===!0?o.v||(newDate).getTime():o.version||"";returne?"?v="+e:""}(),o.modules[y]?!functiong(){return++v>1e3*o.timeout/4?r(y+" is not a valid module"):void("string"==typeofo.modules[y]&&o.status[y]?c():setTimeout(g,4))}():(m.appendChild(p),!p.attachEvent||p.attachEvent.toString&&p.attachEvent.toString().indexOf("[native code")<0||u?p.addEventListener("load",function(e){s(e,h)},!1):p.attachEvent("onreadystatechange",function(e){s(e,h)})),o.modules[y]=h,d},t.fn.all=function(e){returnthis.use("layui.mod",e),this},t.fn.getStyle=function(t,n){varo=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);returno[o.getPropertyValue?"getPropertyValue":"getAttribute"](n)},t.fn.link=function(e,t,i){varu=this,l=n.createElement("link"),a=n.getElementsByTagName("head")[0];"string"==typeoft&&(i=t);vars=(i||e).replace(/\.|\//g,""),c=l.id="layuicss-"+s,d=0;l.rel="stylesheet",l.href=e+(o.debug?"?v="+(newDate).getTime():""),l.media="all",n.getElementById(c)||a.appendChild(l),"function"==typeoft&&!functionf(){return++d>1e3*o.timeout/100?r(e+" timeout"):void(1989===parseInt(u.getStyle(n.getElementById(c),"width"))?function(){t()}():setTimeout(f,100))}()},t.fn.addcss=function(e,t,n){layui.link(o.dir+"css/"+e,t,n)},t.fn.img=function(e,t,n){varo=newImage;returno.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},t.fn.config=function(e){e=e||{};for(vartine)o[t]=e[t];returnthis},t.fn.modules=function(){vare={};for(vartinl)e[t]=l[t];returne}(),t.fn.extend=function(e){vart=this;e=e||{};for(varnine)t[n]||t.modules[n]?r("模块名 "+n+" 已被占用"):t.modules[n]=e[n];returnt},t.fn.router=function(e){for(vart,n=(e||location.hash).replace(/^#/,"").split("/")||[],o={dir:[]},i=0;i<n.length;i++)t=n[i].split("="),/^\w+=/.test(n[i])?function(){"dir"!==t[0]&&(o[t[0]]=t[1])}():o.dir.push(n[i]),t=null;returno},t.fn.data=function(t,n){if(t=t||"layui",e.JSON&&e.JSON.parse){if(null===n)returndeletelocalStorage[t];n="object"==typeofn?n:{key:n};try{varo=JSON.parse(localStorage[t])}catch(i){varo={}}returnn.value&&(o[n.key]=n.value),n.remov