!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.5.6"},n=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,r=o.length-1,n=r;n>0;n--)if("interactive"===o[n].readyState){e=o[n].src;break}return e||o[r].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),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",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};r.prototype.cache=o,r.prototype.define=function(e,t){var r=this,n=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t((function(r,n){e(r,n),o.callback[r]=function(){t(e)}})),this};return"function"==typeof e&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?n.call(r):(r.use(e,n),r)},r.prototype.use=function(e,r,u){function s(e,t){var r="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||r.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function e(){return++m>1e3*o.timeout/4?a(f+" is not a valid module"):void(o.status[f]?c():setTimeout(e,4))}())}function c(){u.push(layui[f]),e.length>1?p.use(e.slice(1),r,u):"function"==typeof r&&r.apply(layui,u)}var p=this,y=o.dir=o.dir?o.dir:n,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(p.each(e,(function(t,o){"jquery"===o&&e.splice(t,1)})),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(u=u||[],o.host=o.host||(y.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&l[f]||!layui["layui.all"]&&layui["layui.mobile"]&&l[f])return c(),p;var h=(l[f]?y+"lay/":/^\{\/\}/.test(p.modules[f])?"":o.base||"")+(p.modules[f]||f)+".js";if(h=h.replace(/^\{\/\}/,""),!o.modules[f]&&layui[f]&&(o.modules[f]=h),o.modules[f])!function e(){return++m>1e3*o.timeout/4?a(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(e,4))}();else{var v=t.createElement("script");v.async=!0,v.charset="utf-8",v.src=h+function(){var e=!0===o.version?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||i?v.addEventListener("load",(function(e){s(e,h)}),!1):v.attachEvent("onreadystatechange",(function(e){s(e,h)})),o.modules[f]=h}return p},r.prototype.getStyle=function(t,o){var r=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return r[r.getPropertyValue?"getPropertyValue":"getAttribute"](o)},r.prototype.link=function(e,r,n){var i=this,l=t.createElement("link"),u=t.getElementsByTagName("head")[0];"string"==typeof r&&(n=r);var s=(n||e).replace(/\.|\//g,""),c=l.id="layuicss-"+s,p=0;return l.rel="stylesheet",l.href=e+(o.debug?"?v="+(new Date).getTime():""),l.media="all",t.getElementById(c)||u.appendChild(l),"function"!=typeof r||function n(){return++p>1e3*o.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(c),"width"))?r():setTimeout(n,100))}(),i},o.callback={},r.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},r.prototype.addcss=function(e,t,r){return layui.link(o.dir+"css/"+e,t,r)},r.prototype.img=function(e,t,o){var r=new Image;return r.src=e,r.complete?t(r):(r.onload=function(){r.onload=null,"function"==typeof t&&t(r)},void(r.onerror=function(e){r.onerror=null,"function"==typeof o&&o(e)}))},r.prototype.config=function(e){for(var t in e=e||{})o[t]=e[t];return this},r.prototype.modules=function(){var e={};for(var t in l)e[t]=l[t];return e}(),r.prototype.extend=function(e){var t=this;for(var o in e=e||{})t[o]||t.modules[o]?a("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},r.prototype.router=function(e){var t={path:[],search:{},hash:((e=e||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),t.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(e,(function(e,o){/^\w+=/.test(o)?(o=o.split("="),t.search[o[0]]=o[1]):t.path.push(o)})),t):t},r.prototype.url=function(e){var t=this,o={pathname:(e?((e.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:function(){var o={},r=(e?((e.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&");return t.each(r,(function(e,t){var r=t.indexOf("="),n=r<0?t.substr(0,t.length):0!==r&&t.substr(0,r);n&&(o[n]=r>0?t.substr(r+1):null)})),o}(),hash:t.router(e?(e.match(/#.+/)||[])[0]||"":location.hash)};return o},r.prototype.data=function(t,o,r){if(t=t||"layui",r=r||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete r[t];o="object"==typeof o?o:{key:o};try{var n=JSON.parse(r[t])}catch(e){n={}}return"value"in o&&(n[o.key]=o.value),o.remove&&delete n[o.key],r[t]=JSON.stringify(n),o.key?n[o.key]:n}},r.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},r.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),r=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return(e=(o.match(t)||[])[1])||!1},n={os:/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0,ie:!(!e.ActiveXObject&&!("ActiveXObject"in e))&&((o.match(/msie\s(\d+)/)||[])[1]||"11"),weixin:r("micromessenger")};return t&&!n[t]&&(n[t]=r(t)),n.android=/android/.test(o),n.ios="ios"===n.os,n.mobile=!(!n.android&&!n.ios),n},r.prototype.hint=function(){return{error:a}},r.prototype.each=function(e,t){var o;if("function"!=typeof t)return this;if((e=e||[]).constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;o<e.length&&!t.call(e[o],o,e[o]);o++);return this},r.prototype.sort=function(e,t,o){var r=JSON.parse(JSON.stringify(e||[]));return t?(r.sort((function(e,o){var r=/^-?\d+$/,n=e[t],a=o[t];return r.test(n)&&(n=parseFloat(n)),r.test(a)&&(a=parseFloat(a)),n&&!a?1:!n&&a?-1:n>a?1:n<a?-1:0})),o&&r.reverse(),r):r},r.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(e){t.cancelBubble=!0}},r.prototype.onevent=function(e,t,o){return"string"!=typeof e||"function"!=typeof o?this:r.event(e,t,null,o)},r.prototype.event=r.event=function(e,t,r,n){var a=this,i=null,l=t.match(/\((.*)\)$/)||[],u=(e+"."+t).replace(l[0],""),s=l[1]||"",c=function(e,t){!1===(t&&t.call(a,r))&&null===i&&(i=!1)};return n?(o.event[u]=o.event[u]||{},o.event[u][s]=[n],this):(layui.each(o.event[u],(function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(s&&e===s&&layui.each(t,c)))})),i)},e.layui=new r}(window);