filesbox/web/dist/design/designstatic/home/js/layer/layui/layui.all.js
2024-07-26 14:10:54 +08:00

7 lines
258 KiB
JavaScript

(function(oe){"use strict";var x=document,_={modules:{},status:{},timeout:10,event:{}},O=function(){this.v="2.4.1"},ie=function(){var v=x.currentScript?x.currentScript.src:function(){for(var L,F=x.scripts,y=F.length-1,u=y;u>0;u--)if(F[u].readyState==="interactive"){L=F[u].src;break}return L||F[y].src}();return v.substring(0,v.lastIndexOf("/")+1)}(),G=function(v){oe.console&&console.error&&console.error("Layui hint: "+v)},A=typeof opera!="undefined"&&opera.toString()==="[object Opera]",$={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",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"};O.prototype.cache=_,O.prototype.define=function(v,L){var F=this,y=typeof v=="function",u=function(){var h=function(c,m){layui[c]=m,_.status[c]=!0};return typeof L=="function"&&L(function(c,m){h(c,m),_.callback[c]=function(){L(h)}}),this};return y&&(L=v,v=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?u.call(F):(F.use(v,u),F)},O.prototype.use=function(v,L,F){function y(M,E){var ee=navigator.platform==="PLaySTATION 3"?/^complete$/:/^(complete|loaded)$/;(M.type==="load"||ee.test((M.currentTarget||M.srcElement).readyState))&&(_.modules[D]=E,m.removeChild(q),function s(){return++k>1e3*_.timeout/4?G(D+" is not a valid module"):void(_.status[D]?u():setTimeout(s,4))}())}function u(){F.push(layui[D]),v.length>1?h.use(v.slice(1),L,F):typeof L=="function"&&L.apply(layui,F)}var h=this,c=_.dir=_.dir?_.dir:ie,m=x.getElementsByTagName("head")[0];v=typeof v=="string"?[v]:v,window.jQuery&&jQuery.fn.on&&(h.each(v,function(M,E){E==="jquery"&&v.splice(M,1)}),layui.jquery=layui.$=jQuery);var D=v[0],k=0;if(F=F||[],_.host=_.host||(c.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],v.length===0||layui["layui.all"]&&$[D]||!layui["layui.all"]&&layui["layui.mobile"]&&$[D])return u(),h;if(_.modules[D])(function M(){return++k>1e3*_.timeout/4?G(D+" is not a valid module"):void(typeof _.modules[D]=="string"&&_.status[D]?u():setTimeout(M,4))})();else{var q=x.createElement("script"),z=($[D]?c+"lay/":/^\{\/\}/.test(h.modules[D])?"":_.base||"")+(h.modules[D]||D)+".js";z=z.replace(/^\{\/\}/,""),q.async=!0,q.charset="utf-8",q.src=z+function(){var M=_.version===!0?_.v||new Date().getTime():_.version||"";return M?"?v="+M:""}(),m.appendChild(q),!q.attachEvent||q.attachEvent.toString&&q.attachEvent.toString().indexOf("[native code")<0||A?q.addEventListener("load",function(M){y(M,z)},!1):q.attachEvent("onreadystatechange",function(M){y(M,z)}),_.modules[D]=z}return h},O.prototype.getStyle=function(v,L){var F=v.currentStyle?v.currentStyle:oe.getComputedStyle(v,null);return F[F.getPropertyValue?"getPropertyValue":"getAttribute"](L)},O.prototype.link=function(v,L,F){var y=this,u=x.createElement("link"),h=x.getElementsByTagName("head")[0];typeof L=="string"&&(F=L);var c=(F||v).replace(/\.|\//g,""),m=u.id="layuicss-"+c,D=0;return u.rel="stylesheet",u.href=v+(_.debug?"?v="+new Date().getTime():""),u.media="all",x.getElementById(m)||h.appendChild(u),typeof L!="function"||function k(){return++D>1e3*_.timeout/100?G(v+" timeout"):void(parseInt(y.getStyle(x.getElementById(m),"width"))===1989?function(){L()}():setTimeout(k,100))}(),y},_.callback={},O.prototype.factory=function(v){if(layui[v])return typeof _.callback[v]=="function"?_.callback[v]:null},O.prototype.addcss=function(v,L,F){return layui.link(_.dir+"css/"+v,L,F)},O.prototype.img=function(v,L,F){var y=new Image;return y.src=v,y.complete?L(y):(y.onload=function(){y.onload=null,typeof L=="function"&&L(y)},void(y.onerror=function(u){y.onerror=null,typeof F=="function"&&F(u)}))},O.prototype.config=function(v){v=v||{};for(var L in v)_[L]=v[L];return this},O.prototype.modules=function(){var v={};for(var L in $)v[L]=$[L];return v}(),O.prototype.extend=function(v){var L=this;v=v||{};for(var F in v)L[F]||L.modules[F]?G("\u6A21\u5757\u540D "+F+" \u5DF2\u88AB\u5360\u7528"):L.modules[F]=v[F];return L},O.prototype.router=function(v){var L=this,v=v||location.hash,F={path:[],search:{},hash:(v.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(v)&&(v=v.replace(/^#\//,""),F.href="/"+v,v=v.replace(/([^#])(#.*$)/,"$1").split("/")||[],L.each(v,function(y,u){/^\w+=/.test(u)?function(){u=u.split("="),F.search[u[0]]=u[1]}():F.path.push(u)})),F},O.prototype.data=function(v,L,F){if(v=v||"layui",F=F||localStorage,oe.JSON&&oe.JSON.parse){if(L===null)return delete F[v];L=typeof L=="object"?L:{key:L};try{var y=JSON.parse(F[v])}catch(u){var y={}}return"value"in L&&(y[L.key]=L.value),L.remove&&delete y[L.key],F[v]=JSON.stringify(y),L.key?y[L.key]:y}},O.prototype.sessionData=function(v,L){return this.data(v,L,sessionStorage)},O.prototype.device=function(v){var L=navigator.userAgent.toLowerCase(),F=function(u){var h=new RegExp(u+"/([^\\s\\_\\-]+)");return u=(L.match(h)||[])[1],u||!1},y={os:function(){return/windows/.test(L)?"windows":/linux/.test(L)?"linux":/iphone|ipod|ipad|ios/.test(L)?"ios":/mac/.test(L)?"mac":void 0}(),ie:function(){return!!(oe.ActiveXObject||"ActiveXObject"in oe)&&((L.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:F("micromessenger")};return v&&!y[v]&&(y[v]=F(v)),y.android=/android/.test(L),y.ios=y.os==="ios",y},O.prototype.hint=function(){return{error:G}},O.prototype.each=function(v,L){var F,y=this;if(typeof L!="function")return y;if(v=v||[],v.constructor===Object){for(F in v)if(L.call(v[F],F,v[F]))break}else for(F=0;F<v.length&&!L.call(v[F],F,v[F]);F++);return y},O.prototype.sort=function(v,L,F){var y=JSON.parse(JSON.stringify(v||[]));return L&&(y.sort(function(u,h){var c=/^-?\d+$/,m=u[L],D=h[L];return c.test(m)&&(m=parseFloat(m)),c.test(D)&&(D=parseFloat(D)),m&&!D?1:!m&&D?-1:m>D?1:m<D?-1:0}),F&&y.reverse()),y},O.prototype.stope=function(v){v=v||oe.event;try{v.stopPropagation()}catch(L){v.cancelBubble=!0}},O.prototype.onevent=function(v,L,F){return typeof v!="string"||typeof F!="function"?this:O.event(v,L,null,F)},O.prototype.event=O.event=function(v,L,F,y){var u=this,h=null,c=L.match(/\((.*)\)$/)||[],m=(v+"."+L).replace(c[0],""),D=c[1]||"",k=function(q,z){var M=z&&z.call(u,F);M===!1&&h===null&&(h=!1)};return y?(_.event[m]=_.event[m]||{},_.event[m][D]=[y],this):(layui.each(_.event[m],function(q,z){return D==="{*}"?void layui.each(z,k):(q===""&&layui.each(z,k),void(q===D&&layui.each(z,k)))}),h)},oe.layui=new O})(window),layui.define(function(oe){var x=layui.cache;layui.config({dir:x.dir.replace(/lay\/dest\/$/,"")}),oe("layui.all",layui.v)}),layui.define(function(oe){"use strict";var x={open:"{{",close:"}}"},_={exp:function(A){return new RegExp(A,"g")},query:function(A,$,v){var L=["#([\\s\\S])+?","([^{#}])*?"][A||0];return O(($||"")+x.open+L+x.close+(v||""))},escape:function(A){return String(A||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")},error:function(A,$){var v="Laytpl Error\uFF1A";return typeof console=="object"&&console.error(v+A+`
`+($||"")),v+A}},O=_.exp,ie=function(A){this.tpl=A};ie.pt=ie.prototype,window.errors=0,ie.pt.parse=function(A,$){var v=this,L=A,F=O("^"+x.open+"#",""),y=O(x.close+"$","");A=A.replace(/\s+|\r|\t|\n/g," ").replace(O(x.open+"#"),x.open+"# ").replace(O(x.close+"}"),"} "+x.close).replace(/\\/g,"\\\\").replace(O(x.open+"!(.+?)!"+x.close),function(u){return u=u.replace(O("^"+x.open+"!"),"").replace(O("!"+x.close),"").replace(O(x.open+"|"+x.close),function(h){return h.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(_.query(),function(u){return u=u.replace(F,"").replace(y,""),'";'+u.replace(/\\/g,"")+';view+="'}).replace(_.query(1),function(u){var h='"+(';return u.replace(/\s/g,"")===x.open+x.close?"":(u=u.replace(O(x.open+"|"+x.close),""),/^=/.test(u)&&(u=u.replace(/^=/,""),h='"+_escape_('),h+u.replace(/\\/g,"")+')+"')}),A='"use strict";var view = "'+A+'";return view;';try{return v.cache=A=new Function("d, _escape_",A),A($,_.escape)}catch(u){return delete v.cache,_.error(u,L)}},ie.pt.render=function(A,$){var v,L=this;return A?(v=L.cache?L.cache(A,_.escape):L.parse(L.tpl,A),$?void $(v):v):_.error("no data")};var G=function(A){return typeof A!="string"?_.error("Template not found"):new ie(A)};G.config=function(A){A=A||{};for(var $ in A)x[$]=A[$]},G.v="1.2.0",oe("laytpl",G)}),layui.define(function(oe){"use strict";var x=document,_="getElementById",O="getElementsByTagName",ie="laypage",G="layui-disabled",A=function(v){var L=this;L.config=v||{},L.config.index=++$.index,L.render(!0)};A.prototype.type=function(){var v=this.config;if(typeof v.elem=="object")return v.elem.length===void 0?2:3},A.prototype.view=function(){var v=this,L=v.config,F=L.groups="groups"in L?0|L.groups:5;L.layout=typeof L.layout=="object"?L.layout:["prev","page","next"],L.count=0|L.count,L.curr=0|L.curr||1,L.limits=typeof L.limits=="object"?L.limits:[10,20,30,40,50],L.limit=0|L.limit||10,L.pages=Math.ceil(L.count/L.limit)||1,L.curr>L.pages&&(L.curr=L.pages),F<0?F=1:F>L.pages&&(F=L.pages),L.prev="prev"in L?L.prev:"&#x4E0A;&#x4E00;&#x9875;",L.next="next"in L?L.next:"&#x4E0B;&#x4E00;&#x9875;";var y=L.pages>F?Math.ceil((L.curr+(F>1?1:0))/(F>0?F:1)):1,u={prev:function(){return L.prev?'<a href="javascript:;" class="layui-laypage-prev'+(L.curr==1?" "+G:"")+'" data-page="'+(L.curr-1)+'">'+L.prev+"</a>":""}(),page:function(){var h=[];if(L.count<1)return"";y>1&&L.first!==!1&&F!==0&&h.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="&#x9996;&#x9875;">'+(L.first||1)+"</a>");var c=Math.floor((F-1)/2),m=y>1?L.curr-c:1,D=y>1?function(){var k=L.curr+(F-c-1);return k>L.pages?L.pages:k}():F;for(D-m<F-1&&(m=D-F+1),L.first!==!1&&m>2&&h.push('<span class="layui-laypage-spr">&#x2026;</span>');m<=D;m++)m===L.curr?h.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(L.theme)?'style="background-color:'+L.theme+';"':"")+"></em><em>"+m+"</em></span>"):h.push('<a href="javascript:;" data-page="'+m+'">'+m+"</a>");return L.pages>F&&L.pages>D&&L.last!==!1&&(D+1<L.pages&&h.push('<span class="layui-laypage-spr">&#x2026;</span>'),F!==0&&h.push('<a href="javascript:;" class="layui-laypage-last" title="&#x5C3E;&#x9875;" data-page="'+L.pages+'">'+(L.last||L.pages)+"</a>")),h.join("")}(),next:function(){return L.next?'<a href="javascript:;" class="layui-laypage-next'+(L.curr==L.pages?" "+G:"")+'" data-page="'+(L.curr+1)+'">'+L.next+"</a>":""}(),count:'<span class="layui-laypage-count">\u5171 '+L.count+" \u6761</span>",limit:function(){var h=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(L.limits,function(c,m){h.push('<option value="'+m+'"'+(m===L.limit?"selected":"")+">"+m+" \u6761/\u9875</option>")}),h.join("")+"</select></span>"}(),refresh:['<a href="javascript:;" data-page="'+L.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:function(){return['<span class="layui-laypage-skip">&#x5230;&#x7B2C;','<input type="text" min="1" value="'+L.curr+'" class="layui-input">','&#x9875;<button type="button" class="layui-laypage-btn">&#x786e;&#x5b9a;</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(L.theme?/^#/.test(L.theme)?"molv":L.theme:"default")+'" id="layui-laypage-'+L.index+'">',function(){var h=[];return layui.each(L.layout,function(c,m){u[m]&&h.push(u[m])}),h.join("")}(),"</div>"].join("")},A.prototype.jump=function(v,L){if(v){var F=this,y=F.config,u=v.children,h=v[O]("button")[0],c=v[O]("input")[0],m=v[O]("select")[0],D=function(){var z=0|c.value.replace(/\s|\D/g,"");z&&(y.curr=z,F.render())};if(L)return D();for(var k=0,q=u.length;k<q;k++)u[k].nodeName.toLowerCase()==="a"&&$.on(u[k],"click",function(){var z=0|this.getAttribute("data-page");z<1||z>y.pages||(y.curr=z,F.render())});m&&$.on(m,"change",function(){var z=this.value;y.curr*z>y.count&&(y.curr=Math.ceil(y.count/z)),y.limit=z,F.render()}),h&&$.on(h,"click",function(){D()})}},A.prototype.skip=function(v){if(v){var L=this,F=v[O]("input")[0];F&&$.on(F,"keyup",function(y){var u=this.value,h=y.keyCode;/^(37|38|39|40)$/.test(h)||(/\D/.test(u)&&(this.value=u.replace(/\D/,"")),h===13&&L.jump(v,!0))})}},A.prototype.render=function(v){var L=this,F=L.config,y=L.type(),u=L.view();y===2?F.elem&&(F.elem.innerHTML=u):y===3?F.elem.html(u):x[_](F.elem)&&(x[_](F.elem).innerHTML=u),F.jump&&F.jump(F,v);var h=x[_]("layui-laypage-"+F.index);L.jump(h),F.hash&&!v&&(location.hash="!"+F.hash+"="+F.curr),L.skip(h)};var $={render:function(v){var L=new A(v);return L.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(v,L,F){return v.attachEvent?v.attachEvent("on"+L,function(y){y.target=y.srcElement,F.call(v,y)}):v.addEventListener(L,F,!1),this}};oe(ie,$)}),function(){"use strict";var oe=window.layui&&layui.define,x={getPath:function(){var s=document.currentScript?document.currentScript.src:function(){for(var o,d=document.scripts,g=d.length-1,f=g;f>0;f--)if(d[f].readyState==="interactive"){o=d[f].src;break}return o||d[g].src}();return s.substring(0,s.lastIndexOf("/")+1)}(),getStyle:function(s,o){var d=s.currentStyle?s.currentStyle:window.getComputedStyle(s,null);return d[d.getPropertyValue?"getPropertyValue":"getAttribute"](o)},link:function(s,o,d){if(_.path){var g=document.getElementsByTagName("head")[0],f=document.createElement("link");typeof o=="string"&&(d=o);var w=(d||s).replace(/\.|\//g,""),S="layuicss-"+w,N=0;f.rel="stylesheet",f.href=_.path+s,f.id=S,document.getElementById(S)||g.appendChild(f),typeof o=="function"&&function V(){return++N>80?window.console&&console.error("laydate.css: Invalid"):void(parseInt(x.getStyle(document.getElementById(S),"width"))===1989?o():setTimeout(V,100))}()}}},_={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:x.getPath,set:function(s){var o=this;return o.config=E.extend({},o.config,s),o},ready:function(s){var o="laydate",d="",g=(oe?"modules/laydate/":"theme/")+"default/laydate.css?v="+_.v+d;return oe?layui.addcss(g,s,o):x.link(g,s,o),this}},O=function(){var s=this;return{hint:function(o){s.hint.call(s,o)},config:s.config}},ie="laydate",G=".layui-laydate",A="layui-this",$="laydate-disabled",v="\u5F00\u59CB\u65E5\u671F\u8D85\u51FA\u4E86\u7ED3\u675F\u65E5\u671F<br>\u5EFA\u8BAE\u91CD\u65B0\u9009\u62E9",L=[100,2e5],F="layui-laydate-static",y="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",c="laydate-day-prev",m="laydate-day-next",D="layui-laydate-footer",k=".laydate-btns-confirm",q="laydate-time-text",z=".laydate-btns-time",M=function(s){var o=this;o.index=++_.index,o.config=E.extend({},o.config,_.config,s),_.ready(function(){o.init()})},E=function(s){return new ee(s)},ee=function(s){for(var o=0,d=typeof s=="object"?[s]:(this.selector=s,document.querySelectorAll(s||null));o<d.length;o++)this.push(d[o])};ee.prototype=[],ee.prototype.constructor=ee,E.extend=function(){var s=1,o=arguments,d=function(g,f){g=g||(f.constructor===Array?[]:{});for(var w in f)g[w]=f[w]&&f[w].constructor===Object?d(g[w],f[w]):f[w];return g};for(o[0]=typeof o[0]=="object"?o[0]:{};s<o.length;s++)typeof o[s]=="object"&&d(o[0],o[s]);return o[0]},E.ie=function(){var s=navigator.userAgent.toLowerCase();return!!(window.ActiveXObject||"ActiveXObject"in window)&&((s.match(/msie\s(\d+)/)||[])[1]||"11")}(),E.stope=function(s){s=s||window.event,s.stopPropagation?s.stopPropagation():s.cancelBubble=!0},E.each=function(s,o){var d,g=this;if(typeof o!="function")return g;if(s=s||[],s.constructor===Object){for(d in s)if(o.call(s[d],d,s[d]))break}else for(d=0;d<s.length&&!o.call(s[d],d,s[d]);d++);return g},E.digit=function(s,o,d){var g="";s=String(s),o=o||2;for(var f=s.length;f<o;f++)g+="0";return s<Math.pow(10,o)?g+(0|s):s},E.elem=function(s,o){var d=document.createElement(s);return E.each(o||{},function(g,f){d.setAttribute(g,f)}),d},ee.addStr=function(s,o){return s=s.replace(/\s+/," "),o=o.replace(/\s+/," ").split(" "),E.each(o,function(d,g){new RegExp("\\b"+g+"\\b").test(s)||(s=s+" "+g)}),s.replace(/^\s|\s$/,"")},ee.removeStr=function(s,o){return s=s.replace(/\s+/," "),o=o.replace(/\s+/," ").split(" "),E.each(o,function(d,g){var f=new RegExp("\\b"+g+"\\b");f.test(s)&&(s=s.replace(f,""))}),s.replace(/\s+/," ").replace(/^\s|\s$/,"")},ee.prototype.find=function(s){var o=this,d=0,g=[],f=typeof s=="object";return this.each(function(w,S){for(var N=f?[s]:S.querySelectorAll(s||null);d<N.length;d++)g.push(N[d]);o.shift()}),f||(o.selector=(o.selector?o.selector+" ":"")+s),E.each(g,function(w,S){o.push(S)}),o},ee.prototype.each=function(s){return E.each.call(this,this,s)},ee.prototype.addClass=function(s,o){return this.each(function(d,g){g.className=ee[o?"removeStr":"addStr"](g.className,s)})},ee.prototype.removeClass=function(s){return this.addClass(s,!0)},ee.prototype.hasClass=function(s){var o=!1;return this.each(function(d,g){new RegExp("\\b"+s+"\\b").test(g.className)&&(o=!0)}),o},ee.prototype.attr=function(s,o){var d=this;return o===void 0?function(){if(d.length>0)return d[0].getAttribute(s)}():d.each(function(g,f){f.setAttribute(s,o)})},ee.prototype.removeAttr=function(s){return this.each(function(o,d){d.removeAttribute(s)})},ee.prototype.html=function(s){return this.each(function(o,d){d.innerHTML=s})},ee.prototype.val=function(s){return this.each(function(o,d){d.value=s})},ee.prototype.append=function(s){return this.each(function(o,d){typeof s=="object"?d.appendChild(s):d.innerHTML=d.innerHTML+s})},ee.prototype.remove=function(s){return this.each(function(o,d){s?d.removeChild(s):d.parentNode.removeChild(d)})},ee.prototype.on=function(s,o){return this.each(function(d,g){g.attachEvent?g.attachEvent("on"+s,function(f){f.target=f.srcElement,o.call(g,f)}):g.addEventListener(s,o,!1)})},ee.prototype.off=function(s,o){return this.each(function(d,g){g.detachEvent?g.detachEvent("on"+s,o):g.removeEventListener(s,o,!1)})},M.isLeapYear=function(s){return s%4==0&&s%100!=0||s%400==0},M.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},M.prototype.lang=function(){var s=this,o=s.config,d={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"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return d[o.lang]||d.cn},M.prototype.init=function(){var s=this,o=s.config,d="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",g=o.position==="static",f={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=E(o.elem),o.eventElem=E(o.eventElem),o.elem[0]&&(o.range===!0&&(o.range="-"),o.format===f.date&&(o.format=f[o.type]),s.format=o.format.match(new RegExp(d+"|.","g"))||[],s.EXP_IF="",s.EXP_SPLIT="",E.each(s.format,function(w,S){var N=new RegExp(d).test(S)?"\\d{"+function(){return new RegExp(d).test(s.format[w===0?w+1:w-1]||"")?/^yyyy|y$/.test(S)?4:S.length:/^yyyy$/.test(S)?"1,4":/^y$/.test(S)?"1,308":"1,2"}()+"}":"\\"+S;s.EXP_IF=s.EXP_IF+N,s.EXP_SPLIT=s.EXP_SPLIT+"("+N+")"}),s.EXP_IF=new RegExp("^"+(o.range?s.EXP_IF+"\\s\\"+o.range+"\\s"+s.EXP_IF:s.EXP_IF)+"$"),s.EXP_SPLIT=new RegExp("^"+s.EXP_SPLIT+"$",""),s.isInput(o.elem[0])||o.trigger==="focus"&&(o.trigger="click"),o.elem.attr("lay-key")||(o.elem.attr("lay-key",s.index),o.eventElem.attr("lay-key",s.index)),o.mark=E.extend({},o.calendar&&o.lang==="cn"?{"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"}:{},o.mark),E.each(["min","max"],function(w,S){var N=[],V=[];if(typeof o[S]=="number"){var Z=o[S],X=new Date().getTime(),J=864e5,C=new Date(Z?Z<J?X+Z*J:Z:X);N=[C.getFullYear(),C.getMonth()+1,C.getDate()],Z<J||(V=[C.getHours(),C.getMinutes(),C.getSeconds()])}else N=(o[S].match(/\d+-\d+-\d+/)||[""])[0].split("-"),V=(o[S].match(/\d+:\d+:\d+/)||[""])[0].split(":");o[S]={year:0|N[0]||new Date().getFullYear(),month:N[1]?(0|N[1])-1:new Date().getMonth(),date:0|N[2]||new Date().getDate(),hours:0|V[0],minutes:0|V[1],seconds:0|V[2]}}),s.elemID="layui-laydate"+o.elem.attr("lay-key"),(o.show||g)&&s.render(),g||s.events(),o.value&&o.isInitValue&&(o.value.constructor===Date?s.setValue(s.parse(0,s.systemDate(o.value))):s.setValue(o.value)))},M.prototype.render=function(){var s=this,o=s.config,d=s.lang(),g=o.position==="static",f=s.elem=E.elem("div",{id:s.elemID,class:["layui-laydate",o.range?" layui-laydate-range":"",g?" "+F:"",o.theme&&o.theme!=="default"&&!/^#/.test(o.theme)?" laydate-theme-"+o.theme:""].join("")}),w=s.elemMain=[],S=s.elemHeader=[],N=s.elemCont=[],V=s.table=[],Z=s.footer=E.elem("div",{class:D});if(o.zIndex&&(f.style.zIndex=o.zIndex),E.each(new Array(2),function(C){if(!o.range&&C>0)return!0;var b=E.elem("div",{class:"layui-laydate-header"}),P=[function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-prev-y"});return xe.innerHTML="&#xe65a;",xe}(),function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-prev-m"});return xe.innerHTML="&#xe603;",xe}(),function(){var xe=E.elem("div",{class:"laydate-set-ym"}),he=E.elem("span"),ue=E.elem("span");return xe.appendChild(he),xe.appendChild(ue),xe}(),function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-next-m"});return xe.innerHTML="&#xe602;",xe}(),function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-next-y"});return xe.innerHTML="&#xe65b;",xe}()],te=E.elem("div",{class:"layui-laydate-content"}),H=E.elem("table"),ae=E.elem("thead"),le=E.elem("tr");E.each(P,function(xe,he){b.appendChild(he)}),ae.appendChild(le),E.each(new Array(6),function(xe){var he=H.insertRow(0);E.each(new Array(7),function(ue){if(xe===0){var ye=E.elem("th");ye.innerHTML=d.weeks[ue],le.appendChild(ye)}he.insertCell(ue)})}),H.insertBefore(ae,H.children[0]),te.appendChild(H),w[C]=E.elem("div",{class:"layui-laydate-main laydate-main-list-"+C}),w[C].appendChild(b),w[C].appendChild(te),S.push(P),N.push(te),V.push(H)}),E(Z).html(function(){var C=[],b=[];return o.type==="datetime"&&C.push('<span lay-type="datetime" class="laydate-btns-time">'+d.timeTips+"</span>"),E.each(o.btns,function(P,te){var H=d.tools[te]||"btn";o.range&&te==="now"||(g&&te==="clear"&&(H=o.lang==="cn"?"\u91CD\u7F6E":"Reset"),b.push('<span lay-type="'+te+'" class="laydate-btns-'+te+'">'+H+"</span>"))}),C.push('<div class="laydate-footer-btns">'+b.join("")+"</div>"),C.join("")}()),E.each(w,function(C,b){f.appendChild(b)}),o.showBottom&&f.appendChild(Z),/^#/.test(o.theme)){var X=E.elem("style"),J=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,s.elemID).replace(/{{theme}}/g,o.theme);"styleSheet"in X?(X.setAttribute("type","text/css"),X.styleSheet.cssText=J):X.innerHTML=J,E(f).addClass("laydate-theme-molv"),f.appendChild(X)}s.remove(M.thisElemDate),g?o.elem.append(f):(document.body.appendChild(f),s.position()),s.checkDate().calendar(),s.changeEvent(),M.thisElemDate=s.elemID,typeof o.ready=="function"&&o.ready(E.extend({},o.dateTime,{month:o.dateTime.month+1}))},M.prototype.remove=function(s){var o=this,d=(o.config,E("#"+(s||o.elemID)));return d.hasClass(F)||o.checkDate(function(){d.remove()}),o},M.prototype.position=function(){var s=this,o=s.config,d=s.bindElem||o.elem[0],g=d.getBoundingClientRect(),f=s.elem.offsetWidth,w=s.elem.offsetHeight,S=function(J){return J=J?"scrollLeft":"scrollTop",document.body[J]|document.documentElement[J]},N=function(J){return document.documentElement[J?"clientWidth":"clientHeight"]},V=5,Z=g.left,X=g.bottom;Z+f+V>N("width")&&(Z=N("width")-f-V),X+w+V>N()&&(X=g.top>w?g.top-w:N()-w,X-=2*V),o.position&&(s.elem.style.position=o.position),s.elem.style.left=Z+(o.position==="fixed"?0:S(1))+"px",s.elem.style.top=X+(o.position==="fixed"?0:S())+"px"},M.prototype.hint=function(s){var o=this,d=(o.config,E.elem("div",{class:h}));o.elem&&(d.innerHTML=s||"",E(o.elem).find("."+h).remove(),o.elem.appendChild(d),clearTimeout(o.hinTimer),o.hinTimer=setTimeout(function(){E(o.elem).find("."+h).remove()},3e3))},M.prototype.getAsYM=function(s,o,d){return d?o--:o++,o<0&&(o=11,s--),o>11&&(o=0,s++),[s,o]},M.prototype.systemDate=function(s){var o=s||new Date;return{year:o.getFullYear(),month:o.getMonth(),date:o.getDate(),hours:s?s.getHours():0,minutes:s?s.getMinutes():0,seconds:s?s.getSeconds():0}},M.prototype.checkDate=function(s){var o,d,g=this,f=(new Date,g.config),w=f.dateTime=f.dateTime||g.systemDate(),S=g.bindElem||f.elem[0],N=(g.isInput(S),g.isInput(S)?S.value:f.position==="static"?"":S.innerHTML),V=function(X){X.year>L[1]&&(X.year=L[1],d=!0),X.month>11&&(X.month=11,d=!0),X.hours>23&&(X.hours=0,d=!0),X.minutes>59&&(X.minutes=0,X.hours++,d=!0),X.seconds>59&&(X.seconds=0,X.minutes++,d=!0),o=_.getEndDate(X.month+1,X.year),X.date>o&&(X.date=o,d=!0)},Z=function(X,J,C){var b=["startTime","endTime"];J=(J.match(g.EXP_SPLIT)||[]).slice(1),C=C||0,f.range&&(g[b[C]]=g[b[C]]||{}),E.each(g.format,function(P,te){var H=parseFloat(J[P]);J[P].length<te.length&&(d=!0),/yyyy|y/.test(te)?(H<L[0]&&(H=L[0],d=!0),X.year=H):/MM|M/.test(te)?(H<1&&(H=1,d=!0),X.month=H-1):/dd|d/.test(te)?(H<1&&(H=1,d=!0),X.date=H):/HH|H/.test(te)?(H<1&&(H=0,d=!0),X.hours=H,f.range&&(g[b[C]].hours=H)):/mm|m/.test(te)?(H<1&&(H=0,d=!0),X.minutes=H,f.range&&(g[b[C]].minutes=H)):/ss|s/.test(te)&&(H<1&&(H=0,d=!0),X.seconds=H,f.range&&(g[b[C]].seconds=H))}),V(X)};return s==="limit"?(V(w),g):(N=N||f.value,typeof N=="string"&&(N=N.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),g.startState&&!g.endState&&(delete g.startState,g.endState=!0),typeof N=="string"&&N?g.EXP_IF.test(N)?f.range?(N=N.split(" "+f.range+" "),g.startDate=g.startDate||g.systemDate(),g.endDate=g.endDate||g.systemDate(),f.dateTime=E.extend({},g.startDate),E.each([g.startDate,g.endDate],function(X,J){Z(J,N[X],X)})):Z(w,N):(g.hint("\u65E5\u671F\u683C\u5F0F\u4E0D\u5408\u6CD5<br>\u5FC5\u987B\u9075\u5FAA\u4E0B\u8FF0\u683C\u5F0F\uFF1A<br>"+(f.range?f.format+" "+f.range+" "+f.format:f.format)+"<br>\u5DF2\u4E3A\u4F60\u91CD\u7F6E"),d=!0):N&&N.constructor===Date?f.dateTime=g.systemDate(N):(f.dateTime=g.systemDate(),delete g.startState,delete g.endState,delete g.startDate,delete g.endDate,delete g.startTime,delete g.endTime),V(w),d&&N&&g.setValue(f.range?g.endDate?g.parse():"":g.parse()),s&&s(),g)},M.prototype.mark=function(s,o){var d,g=this,f=g.config;return E.each(f.mark,function(w,S){var N=w.split("-");N[0]!=o[0]&&N[0]!=0||N[1]!=o[1]&&N[1]!=0||N[2]!=o[2]||(d=S||o[2])}),d&&s.html('<span class="laydate-day-mark">'+d+"</span>"),g},M.prototype.limit=function(s,o,d,g){var f,w=this,S=w.config,N={},V=S[d>41?"endDate":"dateTime"],Z=E.extend({},V,o||{});return E.each({now:Z,min:S.min,max:S.max},function(X,J){N[X]=w.newDate(E.extend({year:J.year,month:J.month,date:J.date},function(){var C={};return E.each(g,function(b,P){C[P]=J[P]}),C}())).getTime()}),f=N.now<N.min||N.now>N.max,s&&s[f?"addClass":"removeClass"]($),f},M.prototype.calendar=function(s){var o,d,g,f=this,w=f.config,S=s||w.dateTime,N=new Date,V=f.lang(),Z=w.type!=="date"&&w.type!=="datetime",X=s?1:0,J=E(f.table[X]).find("td"),C=E(f.elemHeader[X][2]).find("span");if(S.year<L[0]&&(S.year=L[0],f.hint("\u6700\u4F4E\u53EA\u80FD\u652F\u6301\u5230\u516C\u5143"+L[0]+"\u5E74")),S.year>L[1]&&(S.year=L[1],f.hint("\u6700\u9AD8\u53EA\u80FD\u652F\u6301\u5230\u516C\u5143"+L[1]+"\u5E74")),f.firstDate||(f.firstDate=E.extend({},S)),N.setFullYear(S.year,S.month,1),o=N.getDay(),d=_.getEndDate(S.month||12,S.year),g=_.getEndDate(S.month+1,S.year),E.each(J,function(P,te){var H=[S.year,S.month],ae=0;te=E(te),te.removeAttr("class"),P<o?(ae=d-o+P,te.addClass("laydate-day-prev"),H=f.getAsYM(S.year,S.month,"sub")):P>=o&&P<g+o?(ae=P-o,w.range||ae+1===S.date&&te.addClass(A)):(ae=P-g-o,te.addClass("laydate-day-next"),H=f.getAsYM(S.year,S.month)),H[1]++,H[2]=ae+1,te.attr("lay-ymd",H.join("-")).html(H[2]),f.mark(te,H).limit(te,{year:H[0],month:H[1]-1,date:H[2]},P)}),E(C[0]).attr("lay-ym",S.year+"-"+(S.month+1)),E(C[1]).attr("lay-ym",S.year+"-"+(S.month+1)),w.lang==="cn"?(E(C[0]).attr("lay-type","year").html(S.year+"\u5E74"),E(C[1]).attr("lay-type","month").html(S.month+1+"\u6708")):(E(C[0]).attr("lay-type","month").html(V.month[S.month]),E(C[1]).attr("lay-type","year").html(S.year)),Z&&(w.range&&(s?f.endDate=f.endDate||{year:S.year+(w.type==="year"?1:0),month:S.month+(w.type==="month"?0:-1)}:f.startDate=f.startDate||{year:S.year,month:S.month},s&&(f.listYM=[[f.startDate.year,f.startDate.month+1],[f.endDate.year,f.endDate.month+1]],f.list(w.type,0).list(w.type,1),w.type==="time"?f.setBtnStatus("\u65F6\u95F4",E.extend({},f.systemDate(),f.startTime),E.extend({},f.systemDate(),f.endTime)):f.setBtnStatus(!0))),w.range||(f.listYM=[[S.year,S.month+1]],f.list(w.type,0))),w.range&&!s){var b=f.getAsYM(S.year,S.month);f.calendar(E.extend({},S,{year:b[0],month:b[1]}))}return w.range||f.limit(E(f.footer).find(k),null,0,["hours","minutes","seconds"]),w.range&&s&&!Z&&f.stampRange(),f},M.prototype.list=function(s,o){var d=this,g=d.config,f=g.dateTime,w=d.lang(),S=g.range&&g.type!=="date"&&g.type!=="datetime",N=E.elem("ul",{class:y+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[s]}),V=d.elemHeader[o],Z=E(V[2]).find("span"),X=d.elemCont[o||0],J=E(X).find("."+y)[0],C=g.lang==="cn",b=C?"\u5E74":"",P=d.listYM[o]||{},te=["hours","minutes","seconds"],H=["startTime","endTime"][o];if(P[0]<1&&(P[0]=1),s==="year"){var ae,le=ae=P[0]-7;le<1&&(le=ae=1),E.each(new Array(15),function(se){var Y=E.elem("li",{"lay-ym":ae}),Q={year:ae};ae==P[0]&&E(Y).addClass(A),Y.innerHTML=ae+b,N.appendChild(Y),ae<d.firstDate.year?(Q.month=g.min.month,Q.date=g.min.date):ae>=d.firstDate.year&&(Q.month=g.max.month,Q.date=g.max.date),d.limit(E(Y),Q,o),ae++}),E(Z[C?0:1]).attr("lay-ym",ae-8+"-"+P[1]).html(le+b+" - "+(ae-1+b))}else if(s==="month")E.each(new Array(12),function(se){var Y=E.elem("li",{"lay-ym":se}),Q={year:P[0],month:se};se+1==P[1]&&E(Y).addClass(A),Y.innerHTML=w.month[se]+(C?"\u6708":""),N.appendChild(Y),P[0]<d.firstDate.year?Q.date=g.min.date:P[0]>=d.firstDate.year&&(Q.date=g.max.date),d.limit(E(Y),Q,o)}),E(Z[C?0:1]).attr("lay-ym",P[0]+"-"+P[1]).html(P[0]+b);else if(s==="time"){var xe=function(){E(N).find("ol").each(function(se,Y){E(Y).find("li").each(function(Q,pe){d.limit(E(pe),[{hours:Q},{hours:d[H].hours,minutes:Q},{hours:d[H].hours,minutes:d[H].minutes,seconds:Q}][se],o,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][se])})}),g.range||d.limit(E(d.footer).find(k),d[H],0,["hours","minutes","seconds"])};g.range?d[H]||(d[H]={hours:0,minutes:0,seconds:0}):d[H]=f,E.each([24,60,60],function(se,Y){var Q=E.elem("li"),pe=["<p>"+w.time[se]+"</p><ol>"];E.each(new Array(Y),function(fe){pe.push("<li"+(d[H][te[se]]===fe?' class="'+A+'"':"")+">"+E.digit(fe,2)+"</li>")}),Q.innerHTML=pe.join("")+"</ol>",N.appendChild(Q)}),xe()}if(J&&X.removeChild(J),X.appendChild(N),s==="year"||s==="month")E(d.elemMain[o]).addClass("laydate-ym-show"),E(N).find("li").on("click",function(){var se=0|E(this).attr("lay-ym");if(!E(this).hasClass($)){if(o===0)f[s]=se,S&&(d.startDate[s]=se),d.limit(E(d.footer).find(k),null,0);else if(S)d.endDate[s]=se;else{var Y=s==="year"?d.getAsYM(se,P[1]-1,"sub"):d.getAsYM(P[0],se,"sub");E.extend(f,{year:Y[0],month:Y[1]})}g.type==="year"||g.type==="month"?(E(N).find("."+A).removeClass(A),E(this).addClass(A),g.type==="month"&&s==="year"&&(d.listYM[o][0]=se,S&&(d[["startDate","endDate"][o]].year=se),d.list("month",o))):(d.checkDate("limit").calendar(),d.closeList()),d.setBtnStatus(),g.range||d.done(null,"change"),E(d.footer).find(z).removeClass($)}});else{var he=E.elem("span",{class:q}),ue=function(){E(N).find("ol").each(function(se){var Y=this,Q=E(Y).find("li");Y.scrollTop=30*(d[H][te[se]]-2),Y.scrollTop<=0&&Q.each(function(pe,fe){if(!E(this).hasClass($))return Y.scrollTop=30*(pe-2),!0})})},ye=E(V[2]).find("."+q);ue(),he.innerHTML=g.range?[w.startTime,w.endTime][o]:w.timeTips,E(d.elemMain[o]).addClass("laydate-time-show"),ye[0]&&ye.remove(),V[2].appendChild(he),E(N).find("ol").each(function(se){var Y=this;E(Y).find("li").on("click",function(){var Q=0|this.innerHTML;E(this).hasClass($)||(g.range?d[H][te[se]]=Q:f[te[se]]=Q,E(Y).find("."+A).removeClass(A),E(this).addClass(A),xe(),ue(),(d.endDate||g.type==="time")&&d.done(null,"change"),d.setBtnStatus())})})}return d},M.prototype.listYM=[],M.prototype.closeList=function(){var s=this;s.config,E.each(s.elemCont,function(o,d){E(this).find("."+y).remove(),E(s.elemMain[o]).removeClass("laydate-ym-show laydate-time-show")}),E(s.elem).find("."+q).remove()},M.prototype.setBtnStatus=function(s,o,d){var g,f=this,w=f.config,S=E(f.footer).find(k),N=w.range&&w.type!=="date"&&w.type!=="time";N&&(o=o||f.startDate,d=d||f.endDate,g=f.newDate(o).getTime()>f.newDate(d).getTime(),f.limit(null,o)||f.limit(null,d)?S.addClass($):S[g?"addClass":"removeClass"]($),s&&g&&f.hint(typeof s=="string"?v.replace(/日期/g,s):v))},M.prototype.parse=function(s,o){var d=this,g=d.config,f=o||(s?E.extend({},d.endDate,d.endTime):g.range?E.extend({},d.startDate,d.startTime):g.dateTime),w=d.format.concat();return E.each(w,function(S,N){/yyyy|y/.test(N)?w[S]=E.digit(f.year,N.length):/MM|M/.test(N)?w[S]=E.digit(f.month+1,N.length):/dd|d/.test(N)?w[S]=E.digit(f.date,N.length):/HH|H/.test(N)?w[S]=E.digit(f.hours,N.length):/mm|m/.test(N)?w[S]=E.digit(f.minutes,N.length):/ss|s/.test(N)&&(w[S]=E.digit(f.seconds,N.length))}),g.range&&!s?w.join("")+" "+g.range+" "+d.parse(1):w.join("")},M.prototype.newDate=function(s){return s=s||{},new Date(s.year||1,s.month||0,s.date||1,s.hours||0,s.minutes||0,s.seconds||0)},M.prototype.setValue=function(s){var o=this,d=o.config,g=o.bindElem||d.elem[0],f=o.isInput(g)?"val":"html";return d.position==="static"||E(g)[f](s||""),this},M.prototype.stampRange=function(){var s,o,d=this,g=d.config,f=E(d.elem).find("td");if(g.range&&!d.endDate&&E(d.footer).find(k).addClass($),d.endDate)return s=d.newDate({year:d.startDate.year,month:d.startDate.month,date:d.startDate.date}).getTime(),o=d.newDate({year:d.endDate.year,month:d.endDate.month,date:d.endDate.date}).getTime(),s>o?d.hint(v):void E.each(f,function(w,S){var N=E(S).attr("lay-ymd").split("-"),V=d.newDate({year:N[0],month:N[1]-1,date:N[2]}).getTime();E(S).removeClass(u+" "+A),V!==s&&V!==o||E(S).addClass(E(S).hasClass(c)||E(S).hasClass(m)?u:A),V>s&&V<o&&E(S).addClass(u)})},M.prototype.done=function(s,o){var d=this,g=d.config,f=E.extend({},d.startDate?E.extend(d.startDate,d.startTime):g.dateTime),w=E.extend({},E.extend(d.endDate,d.endTime));return E.each([f,w],function(S,N){"month"in N&&E.extend(N,{month:N.month+1})}),s=s||[d.parse(),f,w],typeof g[o||"done"]=="function"&&g[o||"done"].apply(g,s),d},M.prototype.choose=function(s){var o=this,d=o.config,g=d.dateTime,f=E(o.elem).find("td"),w=s.attr("lay-ymd").split("-"),S=function(V){new Date,V&&E.extend(g,w),d.range&&(o.startDate?E.extend(o.startDate,w):o.startDate=E.extend({},w,o.startTime),o.startYMD=w)};if(w={year:0|w[0],month:(0|w[1])-1,date:0|w[2]},!s.hasClass($))if(d.range){if(E.each(["startTime","endTime"],function(V,Z){o[Z]=o[Z]||{hours:0,minutes:0,seconds:0}}),o.endState)S(),delete o.endState,delete o.endDate,o.startState=!0,f.removeClass(A+" "+u),s.addClass(A);else if(o.startState){if(s.addClass(A),o.endDate?E.extend(o.endDate,w):o.endDate=E.extend({},w,o.endTime),o.newDate(w).getTime()<o.newDate(o.startYMD).getTime()){var N=E.extend({},o.endDate,{hours:o.startDate.hours,minutes:o.startDate.minutes,seconds:o.startDate.seconds});E.extend(o.endDate,o.startDate,{hours:o.endDate.hours,minutes:o.endDate.minutes,seconds:o.endDate.seconds}),o.startDate=N}d.showBottom||o.done(),o.stampRange(),o.endState=!0,o.done(null,"change")}else s.addClass(A),S(),o.startState=!0;E(o.footer).find(k)[o.endDate?"removeClass":"addClass"]($)}else d.position==="static"?(S(!0),o.calendar().done().done(null,"change")):d.type==="date"?(S(!0),o.setValue(o.parse()).remove().done()):d.type==="datetime"&&(S(!0),o.calendar().done(null,"change"))},M.prototype.tool=function(s,o){var d=this,g=d.config,f=g.dateTime,w=g.position==="static",S={datetime:function(){E(s).hasClass($)||(d.list("time",0),g.range&&d.list("time",1),E(s).attr("lay-type","date").html(d.lang().dateTips))},date:function(){d.closeList(),E(s).attr("lay-type","datetime").html(d.lang().timeTips)},clear:function(){d.setValue("").remove(),w&&(E.extend(f,d.firstDate),d.calendar()),g.range&&(delete d.startState,delete d.endState,delete d.endDate,delete d.startTime,delete d.endTime),d.done(["",{},{}])},now:function(){var N=new Date;E.extend(f,d.systemDate(),{hours:N.getHours(),minutes:N.getMinutes(),seconds:N.getSeconds()}),d.setValue(d.parse()).remove(),w&&d.calendar(),d.done()},confirm:function(){if(g.range){if(!d.endDate)return d.hint("\u8BF7\u5148\u9009\u62E9\u65E5\u671F\u8303\u56F4");if(E(s).hasClass($))return d.hint(g.type==="time"?v.replace(/日期/g,"\u65F6\u95F4"):v)}else if(E(s).hasClass($))return d.hint("\u4E0D\u5728\u6709\u6548\u65E5\u671F\u6216\u65F6\u95F4\u8303\u56F4\u5185");d.done(),d.setValue(d.parse()).remove()}};S[o]&&S[o]()},M.prototype.change=function(s){var o=this,d=o.config,g=d.dateTime,f=d.range&&(d.type==="year"||d.type==="month"),w=o.elemCont[s||0],S=o.listYM[s],N=function(V){var Z=["startDate","endDate"][s],X=E(w).find(".laydate-year-list")[0],J=E(w).find(".laydate-month-list")[0];return X&&(S[0]=V?S[0]-15:S[0]+15,o.list("year",s)),J&&(V?S[0]--:S[0]++,o.list("month",s)),(X||J)&&(E.extend(g,{year:S[0]}),f&&(o[Z].year=S[0]),d.range||o.done(null,"change"),o.setBtnStatus(),d.range||o.limit(E(o.footer).find(k),{year:S[0]})),X||J};return{prevYear:function(){N("sub")||(g.year--,o.checkDate("limit").calendar(),d.range||o.done(null,"change"))},prevMonth:function(){var V=o.getAsYM(g.year,g.month,"sub");E.extend(g,{year:V[0],month:V[1]}),o.checkDate("limit").calendar(),d.range||o.done(null,"change")},nextMonth:function(){var V=o.getAsYM(g.year,g.month);E.extend(g,{year:V[0],month:V[1]}),o.checkDate("limit").calendar(),d.range||o.done(null,"change")},nextYear:function(){N()||(g.year++,o.checkDate("limit").calendar(),d.range||o.done(null,"change"))}}},M.prototype.changeEvent=function(){var s=this;s.config,E(s.elem).on("click",function(o){E.stope(o)}),E.each(s.elemHeader,function(o,d){E(d[0]).on("click",function(g){s.change(o).prevYear()}),E(d[1]).on("click",function(g){s.change(o).prevMonth()}),E(d[2]).find("span").on("click",function(g){var f=E(this),w=f.attr("lay-ym"),S=f.attr("lay-type");w&&(w=w.split("-"),s.listYM[o]=[0|w[0],0|w[1]],s.list(S,o),E(s.footer).find(z).addClass($))}),E(d[3]).on("click",function(g){s.change(o).nextMonth()}),E(d[4]).on("click",function(g){s.change(o).nextYear()})}),E.each(s.table,function(o,d){var g=E(d).find("td");g.on("click",function(){s.choose(E(this))})}),E(s.footer).find("span").on("click",function(){var o=E(this).attr("lay-type");s.tool(this,o)})},M.prototype.isInput=function(s){return/input|textarea/.test(s.tagName.toLocaleLowerCase())},M.prototype.events=function(){var s=this,o=s.config,d=function(g,f){g.on(o.trigger,function(){f&&(s.bindElem=this),s.render()})};o.elem[0]&&!o.elem[0].eventHandler&&(d(o.elem,"bind"),d(o.eventElem),E(document).on("click",function(g){g.target!==o.elem[0]&&g.target!==o.eventElem[0]&&g.target!==E(o.closeStop)[0]&&s.remove()}).on("keydown",function(g){g.keyCode===13&&E("#"+s.elemID)[0]&&s.elemID===M.thisElem&&(g.preventDefault(),E(s.footer).find(k)[0].click())}),E(window).on("resize",function(){return!(!s.elem||!E(G)[0])&&void s.position()}),o.elem[0].eventHandler=!0)},_.render=function(s){var o=new M(s);return O.call(o)},_.getEndDate=function(s,o){var d=new Date;return d.setFullYear(o||d.getFullYear(),s||d.getMonth()+1,1),new Date(d.getTime()-864e5).getDate()},window.lay=window.lay||E,oe?(_.ready(),layui.define(function(s){_.path=layui.cache.dir,s(ie,_)})):typeof define=="function"&&define.amd?define(function(){return _}):function(){_.ready(),window.laydate=_}()}(),function(oe,x){typeof module=="object"&&typeof module.exports=="object"?module.exports=oe.document?x(oe,!0):function(_){if(!_.document)throw new Error("jQuery requires a window with a document");return x(_)}:x(oe)}(typeof window!="undefined"?window:this,function(oe,x){function _(e){var t=!!e&&"length"in e&&e.length,n=i.type(e);return n!=="function"&&!i.isWindow(e)&&(n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e)}function O(e,t,n){if(i.isFunction(t))return i.grep(e,function(a,r){return!!t.call(a,r,a)!==n});if(t.nodeType)return i.grep(e,function(a){return a===t!==n});if(typeof t=="string"){if(ri.test(t))return i.filter(t,e,n);t=i.filter(t,e)}return i.grep(e,function(a){return i.inArray(a,t)>-1!==n})}function ie(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function G(e){var t={};return i.each(e.match(lt)||[],function(n,a){t[a]=!0}),t}function A(){we.addEventListener?(we.removeEventListener("DOMContentLoaded",$),oe.removeEventListener("load",$)):(we.detachEvent("onreadystatechange",$),oe.detachEvent("onload",$))}function $(){(we.addEventListener||oe.event.type==="load"||we.readyState==="complete")&&(A(),i.ready())}function v(e,t,n){if(n===void 0&&e.nodeType===1){var a="data-"+t.replace(fi,"-$1").toLowerCase();if(n=e.getAttribute(a),typeof n=="string"){try{n=n==="true"||n!=="false"&&(n==="null"?null:+n+""===n?+n:di.test(n)?i.parseJSON(n):n)}catch(r){}i.data(e,t,n)}else n=void 0}return n}function L(e){var t;for(t in e)if((t!=="data"||!i.isEmptyObject(e[t]))&&t!=="toJSON")return!1;return!0}function F(e,t,n,a){if(It(e)){var r,l,p=i.expando,j=e.nodeType,B=j?i.cache:e,R=j?e[p]:e[p]&&p;if(R&&B[R]&&(a||B[R].data)||n!==void 0||typeof t!="string")return R||(R=j?e[p]=Fe.pop()||i.guid++:p),B[R]||(B[R]=j?{}:{toJSON:i.noop}),typeof t!="object"&&typeof t!="function"||(a?B[R]=i.extend(B[R],t):B[R].data=i.extend(B[R].data,t)),l=B[R],a||(l.data||(l.data={}),l=l.data),n!==void 0&&(l[i.camelCase(t)]=n),typeof t=="string"?(r=l[t],r==null&&(r=l[i.camelCase(t)])):r=l,r}}function y(e,t,n){if(It(e)){var a,r,l=e.nodeType,p=l?i.cache:e,j=l?e[i.expando]:i.expando;if(p[j]){if(t&&(a=n?p[j]:p[j].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in a)?t=[t]:(t=i.camelCase(t),t=t in a?[t]:t.split(" ")),r=t.length;r--;)delete a[t[r]];if(n?!L(a):!i.isEmptyObject(a))return}(n||(delete p[j].data,L(p[j])))&&(l?i.cleanData([e],!0):ge.deleteExpando||p!=p.window?delete p[j]:p[j]=void 0)}}}function u(e,t,n,a){var r,l=1,p=20,j=a?function(){return a.cur()}:function(){return i.css(e,t,"")},B=j(),R=n&&n[3]||(i.cssNumber[t]?"":"px"),de=(i.cssNumber[t]||R!=="px"&&+B)&&nn.exec(i.css(e,t));if(de&&de[3]!==R){R=R||de[3],n=n||[],de=+B||1;do l=l||".5",de/=l,i.style(e,t,de+R);while(l!==(l=j()/B)&&l!==1&&--p)}return n&&(de=+de||+B||0,r=n[1]?de+(n[1]+1)*n[2]:+n[2],a&&(a.unit=R,a.start=de,a.end=r)),r}function h(e){var t=An.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function c(e,t){var n,a,r=0,l=typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll(t||"*"):void 0;if(!l)for(l=[],n=e.childNodes||e;(a=n[r])!=null;r++)!t||i.nodeName(a,t)?l.push(a):i.merge(l,c(a,t));return t===void 0||t&&i.nodeName(e,t)?i.merge([e],l):l}function m(e,t){for(var n,a=0;(n=e[a])!=null;a++)i._data(n,"globalEval",!t||i._data(t[a],"globalEval"))}function D(e){an.test(e.type)&&(e.defaultChecked=e.checked)}function k(e,t,n,a,r){for(var l,p,j,B,R,de,U,me=e.length,be=h(t),He=[],qe=0;qe<me;qe++)if(p=e[qe],p||p===0)if(i.type(p)==="object")i.merge(He,p.nodeType?[p]:p);else if(pi.test(p)){for(B=B||be.appendChild(t.createElement("div")),R=(Sn.exec(p)||["",""])[1].toLowerCase(),U=tt[R]||tt._default,B.innerHTML=U[1]+i.htmlPrefilter(p)+U[2],l=U[0];l--;)B=B.lastChild;if(!ge.leadingWhitespace&&on.test(p)&&He.push(t.createTextNode(on.exec(p)[0])),!ge.tbody)for(p=R!=="table"||jn.test(p)?U[1]!=="<table>"||jn.test(p)?0:B:B.firstChild,l=p&&p.childNodes.length;l--;)i.nodeName(de=p.childNodes[l],"tbody")&&!de.childNodes.length&&p.removeChild(de);for(i.merge(He,B.childNodes),B.textContent="";B.firstChild;)B.removeChild(B.firstChild);B=be.lastChild}else He.push(t.createTextNode(p));for(B&&be.removeChild(B),ge.appendChecked||i.grep(c(He,"input"),D),qe=0;p=He[qe++];)if(a&&i.inArray(p,a)>-1)r&&r.push(p);else if(j=i.contains(p.ownerDocument,p),B=c(be.appendChild(p),"script"),j&&m(B),n)for(l=0;p=B[l++];)Ln.test(p.type||"")&&n.push(p);return B=null,be}function q(){return!0}function z(){return!1}function M(){try{return we.activeElement}catch(e){}}function E(e,t,n,a,r,l){var p,j;if(typeof t=="object"){typeof n!="string"&&(a=a||n,n=void 0);for(j in t)E(e,j,n,a,t[j],l);return e}if(a==null&&r==null?(r=n,a=n=void 0):r==null&&(typeof n=="string"?(r=a,a=void 0):(r=a,a=n,n=void 0)),r===!1)r=z;else if(!r)return e;return l===1&&(p=r,r=function(B){return i().off(B),p.apply(this,arguments)},r.guid=p.guid||(p.guid=i.guid++)),e.each(function(){i.event.add(this,t,r,a,n)})}function ee(e,t){return i.nodeName(e,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function s(e){return e.type=(i.find.attr(e,"type")!==null)+"/"+e.type,e}function o(e){var t=xi.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function d(e,t){if(t.nodeType===1&&i.hasData(e)){var n,a,r,l=i._data(e),p=i._data(t,l),j=l.events;if(j){delete p.handle,p.events={};for(n in j)for(a=0,r=j[n].length;a<r;a++)i.event.add(t,n,j[n][a])}p.data&&(p.data=i.extend({},p.data))}}function g(e,t){var n,a,r;if(t.nodeType===1){if(n=t.nodeName.toLowerCase(),!ge.noCloneEvent&&t[i.expando]){r=i._data(t);for(a in r.events)i.removeEvent(t,a,r.handle);t.removeAttribute(i.expando)}n==="script"&&t.text!==e.text?(s(t).text=e.text,o(t)):n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),ge.html5Clone&&e.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&an.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.defaultSelected=t.selected=e.defaultSelected:n!=="input"&&n!=="textarea"||(t.defaultValue=e.defaultValue)}}function f(e,t,n,a){t=rt.apply([],t);var r,l,p,j,B,R,de=0,U=e.length,me=U-1,be=t[0],He=i.isFunction(be);if(He||U>1&&typeof be=="string"&&!ge.checkClone&&bi.test(be))return e.each(function(qe){var Be=e.eq(qe);He&&(t[0]=be.call(this,qe,Be.html())),f(Be,t,n,a)});if(U&&(R=k(t,e[0].ownerDocument,!1,e,a),r=R.firstChild,R.childNodes.length===1&&(R=r),r||a)){for(j=i.map(c(R,"script"),s),p=j.length;de<U;de++)l=R,de!==me&&(l=i.clone(l,!0,!0),p&&i.merge(j,c(l,"script"))),n.call(e[de],l,de);if(p)for(B=j[j.length-1].ownerDocument,i.map(j,o),de=0;de<p;de++)l=j[de],Ln.test(l.type||"")&&!i._data(l,"globalEval")&&i.contains(B,l)&&(l.src?i._evalUrl&&i._evalUrl(l.src):i.globalEval((l.text||l.textContent||l.innerHTML||"").replace(wi,"")));R=r=null}return e}function w(e,t,n){for(var a,r=t?i.filter(t,e):e,l=0;(a=r[l])!=null;l++)n||a.nodeType!==1||i.cleanData(c(a)),a.parentNode&&(n&&i.contains(a.ownerDocument,a)&&m(c(a,"script")),a.parentNode.removeChild(a));return e}function S(e,t){var n=i(t.createElement(e)).appendTo(t.body),a=i.css(n[0],"display");return n.detach(),a}function N(e){var t=we,n=Fn[e];return n||(n=S(e,t),n!=="none"&&n||(Pt=(Pt||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write(),t.close(),n=S(e,t),Pt.detach()),Fn[e]=n),n}function V(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function Z(e){if(e in _n)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Bn.length;n--;)if(e=Bn[n]+t,e in _n)return e}function X(e,t){for(var n,a,r,l=[],p=0,j=e.length;p<j;p++)a=e[p],a.style&&(l[p]=i._data(a,"olddisplay"),n=a.style.display,t?(l[p]||n!=="none"||(a.style.display=""),a.style.display===""&&qt(a)&&(l[p]=i._data(a,"olddisplay",N(a.nodeName)))):(r=qt(a),(n&&n!=="none"||!r)&&i._data(a,"olddisplay",r?n:i.css(a,"display"))));for(p=0;p<j;p++)a=e[p],a.style&&(t&&a.style.display!=="none"&&a.style.display!==""||(a.style.display=t?l[p]||"":"none"));return e}function J(e,t,n){var a=Di.exec(t);return a?Math.max(0,a[1]-(n||0))+(a[2]||"px"):t}function C(e,t,n,a,r){for(var l=n===(a?"border":"content")?4:t==="width"?1:0,p=0;l<4;l+=2)n==="margin"&&(p+=i.css(e,n+bt[l],!0,r)),a?(n==="content"&&(p-=i.css(e,"padding"+bt[l],!0,r)),n!=="margin"&&(p-=i.css(e,"border"+bt[l]+"Width",!0,r))):(p+=i.css(e,"padding"+bt[l],!0,r),n!=="padding"&&(p+=i.css(e,"border"+bt[l]+"Width",!0,r)));return p}function b(e,t,n){var a=!0,r=t==="width"?e.offsetWidth:e.offsetHeight,l=xt(e),p=ge.boxSizing&&i.css(e,"boxSizing",!1,l)==="border-box";if(we.msFullscreenElement&&oe.top!==oe&&e.getClientRects().length&&(r=Math.round(100*e.getBoundingClientRect()[t])),r<=0||r==null){if(r=mt(e,t,l),(r<0||r==null)&&(r=e.style[t]),Yt.test(r))return r;a=p&&(ge.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+C(e,t,n||(p?"border":"content"),a,l)+"px"}function P(e,t,n,a,r){return new P.prototype.init(e,t,n,a,r)}function te(){return oe.setTimeout(function(){jt=void 0}),jt=i.now()}function H(e,t){var n,a={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)n=bt[r],a["margin"+n]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function ae(e,t,n){for(var a,r=(he.tweeners[t]||[]).concat(he.tweeners["*"]),l=0,p=r.length;l<p;l++)if(a=r[l].call(n,t,e))return a}function le(e,t,n){var a,r,l,p,j,B,R,de,U=this,me={},be=e.style,He=e.nodeType&&qt(e),qe=i._data(e,"fxshow");n.queue||(j=i._queueHooks(e,"fx"),j.unqueued==null&&(j.unqueued=0,B=j.empty.fire,j.empty.fire=function(){j.unqueued||B()}),j.unqueued++,U.always(function(){U.always(function(){j.unqueued--,i.queue(e,"fx").length||j.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[be.overflow,be.overflowX,be.overflowY],R=i.css(e,"display"),de=R==="none"?i._data(e,"olddisplay")||N(e.nodeName):R,de==="inline"&&i.css(e,"float")==="none"&&(ge.inlineBlockNeedsLayout&&N(e.nodeName)!=="inline"?be.zoom=1:be.display="inline-block")),n.overflow&&(be.overflow="hidden",ge.shrinkWrapBlocks()||U.always(function(){be.overflow=n.overflow[0],be.overflowX=n.overflow[1],be.overflowY=n.overflow[2]}));for(a in t)if(r=t[a],Li.exec(r)){if(delete t[a],l=l||r==="toggle",r===(He?"hide":"show")){if(r!=="show"||!qe||qe[a]===void 0)continue;He=!0}me[a]=qe&&qe[a]||i.style(e,a)}else R=void 0;if(i.isEmptyObject(me))(R==="none"?N(e.nodeName):R)==="inline"&&(be.display=R);else{qe?"hidden"in qe&&(He=qe.hidden):qe=i._data(e,"fxshow",{}),l&&(qe.hidden=!He),He?i(e).show():U.done(function(){i(e).hide()}),U.done(function(){var Be;i._removeData(e,"fxshow");for(Be in me)i.style(e,Be,me[Be])});for(a in me)p=ae(He?qe[a]:0,a,U),a in qe||(qe[a]=p.start,He&&(p.end=p.start,p.start=a==="width"||a==="height"?1:0))}}function xe(e,t){var n,a,r,l,p;for(n in e)if(a=i.camelCase(n),r=t[a],l=e[n],i.isArray(l)&&(r=l[1],l=e[n]=l[0]),n!==a&&(e[a]=l,delete e[n]),p=i.cssHooks[a],p&&"expand"in p){l=p.expand(l),delete e[a];for(n in l)n in e||(e[n]=l[n],t[n]=r)}else t[a]=r}function he(e,t,n){var a,r,l=0,p=he.prefilters.length,j=i.Deferred().always(function(){delete B.elem}),B=function(){if(r)return!1;for(var U=jt||te(),me=Math.max(0,R.startTime+R.duration-U),be=me/R.duration||0,He=1-be,qe=0,Be=R.tweens.length;qe<Be;qe++)R.tweens[qe].run(He);return j.notifyWith(e,[R,He,me]),He<1&&Be?me:(j.resolveWith(e,[R]),!1)},R=j.promise({elem:e,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},n),originalProperties:t,originalOptions:n,startTime:jt||te(),duration:n.duration,tweens:[],createTween:function(U,me){var be=i.Tween(e,R.opts,U,me,R.opts.specialEasing[U]||R.opts.easing);return R.tweens.push(be),be},stop:function(U){var me=0,be=U?R.tweens.length:0;if(r)return this;for(r=!0;me<be;me++)R.tweens[me].run(1);return U?(j.notifyWith(e,[R,1,0]),j.resolveWith(e,[R,U])):j.rejectWith(e,[R,U]),this}}),de=R.props;for(xe(de,R.opts.specialEasing);l<p;l++)if(a=he.prefilters[l].call(R,e,de,R.opts))return i.isFunction(a.stop)&&(i._queueHooks(R.elem,R.opts.queue).stop=i.proxy(a.stop,a)),a;return i.map(de,ae,R),i.isFunction(R.opts.start)&&R.opts.start.call(e,R),i.fx.timer(i.extend(B,{elem:e,anim:R,queue:R.opts.queue})),R.progress(R.opts.progress).done(R.opts.done,R.opts.complete).fail(R.opts.fail).always(R.opts.always)}function ue(e){return i.attr(e,"class")||""}function ye(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var a,r=0,l=t.toLowerCase().match(lt)||[];if(i.isFunction(n))for(;a=l[r++];)a.charAt(0)==="+"?(a=a.slice(1)||"*",(e[a]=e[a]||[]).unshift(n)):(e[a]=e[a]||[]).push(n)}}function se(e,t,n,a){function r(j){var B;return l[j]=!0,i.each(e[j]||[],function(R,de){var U=de(t,n,a);return typeof U!="string"||p||l[U]?p?!(B=U):void 0:(t.dataTypes.unshift(U),r(U),!1)}),B}var l={},p=e===hn;return r(t.dataTypes[0])||!l["*"]&&r("*")}function Y(e,t){var n,a,r=i.ajaxSettings.flatOptions||{};for(a in t)t[a]!==void 0&&((r[a]?e:n||(n={}))[a]=t[a]);return n&&i.extend(!0,e,n),e}function Q(e,t,n){for(var a,r,l,p,j=e.contents,B=e.dataTypes;B[0]==="*";)B.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(p in j)if(j[p]&&j[p].test(r)){B.unshift(p);break}}if(B[0]in n)l=B[0];else{for(p in n){if(!B[0]||e.converters[p+" "+B[0]]){l=p;break}a||(a=p)}l=l||a}if(l)return l!==B[0]&&B.unshift(l),n[l]}function pe(e,t,n,a){var r,l,p,j,B,R={},de=e.dataTypes.slice();if(de[1])for(p in e.converters)R[p.toLowerCase()]=e.converters[p];for(l=de.shift();l;)if(e.responseFields[l]&&(n[e.responseFields[l]]=t),!B&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),B=l,l=de.shift()){if(l==="*")l=B;else if(B!=="*"&&B!==l){if(p=R[B+" "+l]||R["* "+l],!p){for(r in R)if(j=r.split(" "),j[1]===l&&(p=R[B+" "+j[0]]||R["* "+j[0]])){p===!0?p=R[r]:R[r]!==!0&&(l=j[0],de.unshift(j[1]));break}}if(p!==!0)if(p&&e.throws)t=p(t);else try{t=p(t)}catch(U){return{state:"parsererror",error:p?U:"No conversion from "+B+" to "+l}}}}return{state:"success",data:t}}function fe(e){return e.style&&e.style.display||i.css(e,"display")}function ke(e){for(;e&&e.nodeType===1;){if(fe(e)==="none"||e.type==="hidden")return!0;e=e.parentNode}return!1}function je(e,t,n,a){var r;if(i.isArray(t))i.each(t,function(l,p){n||Oi.test(e)?a(e,p):je(e+"["+(typeof p=="object"&&p!=null?l:"")+"]",p,n,a)});else if(n||i.type(t)!=="object")a(e,t);else for(r in t)je(e+"["+r+"]",t[r],n,a)}function Me(){try{return new oe.XMLHttpRequest}catch(e){}}function Ee(){try{return new oe.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function Ye(e){return i.isWindow(e)?e:e.nodeType===9&&(e.defaultView||e.parentWindow)}var Fe=[],we=oe.document,Ie=Fe.slice,rt=Fe.concat,Zt=Fe.push,wn=Fe.indexOf,Rt={},ti=Rt.toString,St=Rt.hasOwnProperty,ge={},kn="1.12.3",i=function(e,t){return new i.fn.init(e,t)},ni=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ii=/^-ms-/,ai=/-([\da-z])/gi,oi=function(e,t){return t.toUpperCase()};i.fn=i.prototype={jquery:kn,constructor:i,selector:"",length:0,toArray:function(){return Ie.call(this)},get:function(e){return e!=null?e<0?this[e+this.length]:this[e]:Ie.call(this)},pushStack:function(e){var t=i.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return i.each(this,e)},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:Zt,sort:Fe.sort,splice:Fe.splice},i.extend=i.fn.extend=function(){var e,t,n,a,r,l,p=arguments[0]||{},j=1,B=arguments.length,R=!1;for(typeof p=="boolean"&&(R=p,p=arguments[j]||{},j++),typeof p=="object"||i.isFunction(p)||(p={}),j===B&&(p=this,j--);j<B;j++)if((r=arguments[j])!=null)for(a in r)e=p[a],n=r[a],p!==n&&(R&&n&&(i.isPlainObject(n)||(t=i.isArray(n)))?(t?(t=!1,l=e&&i.isArray(e)?e:[]):l=e&&i.isPlainObject(e)?e:{},p[a]=i.extend(R,l,n)):n!==void 0&&(p[a]=n));return p},i.extend({expando:"jQuery"+(kn+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return i.type(e)==="function"},isArray:Array.isArray||function(e){return i.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!i.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||i.type(e)!=="object"||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!St.call(e,"constructor")&&!St.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!ge.ownFirst)for(t in e)return St.call(e,t);for(t in e);return t===void 0||St.call(e,t)},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?Rt[ti.call(e)]||"object":typeof e},globalEval:function(e){e&&i.trim(e)&&(oe.execScript||function(t){oe.eval.call(oe,t)})(e)},camelCase:function(e){return e.replace(ii,"ms-").replace(ai,oi)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,a=0;if(_(e))for(n=e.length;a<n&&t.call(e[a],a,e[a])!==!1;a++);else for(a in e)if(t.call(e[a],a,e[a])===!1)break;return e},trim:function(e){return e==null?"":(e+"").replace(ni,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(_(Object(e))?i.merge(n,typeof e=="string"?[e]:e):Zt.call(n,e)),n},inArray:function(e,t,n){var a;if(t){if(wn)return wn.call(t,e,n);for(a=t.length,n=n?n<0?Math.max(0,a+n):n:0;n<a;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;a<n;)e[r++]=t[a++];if(n!==n)for(;t[a]!==void 0;)e[r++]=t[a++];return e.length=r,e},grep:function(e,t,n){for(var a,r=[],l=0,p=e.length,j=!n;l<p;l++)a=!t(e[l],l),a!==j&&r.push(e[l]);return r},map:function(e,t,n){var a,r,l=0,p=[];if(_(e))for(a=e.length;l<a;l++)r=t(e[l],l,n),r!=null&&p.push(r);else for(l in e)r=t(e[l],l,n),r!=null&&p.push(r);return rt.apply([],p)},guid:1,proxy:function(e,t){var n,a,r;if(typeof t=="string"&&(r=e[t],t=e,e=r),i.isFunction(e))return n=Ie.call(arguments,2),a=function(){return e.apply(t||this,n.concat(Ie.call(arguments)))},a.guid=e.guid=e.guid||i.guid++,a},now:function(){return+new Date},support:ge}),typeof Symbol=="function"&&(i.fn[Symbol.iterator]=Fe[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Rt["[object "+t+"]"]=t.toLowerCase()});var Lt=function(e){function t(T,I,W,ne){var K,ce,re,ve,De,Ne,Se,Ae,Pe=I&&I.ownerDocument,ze=I?I.nodeType:9;if(W=W||[],typeof T!="string"||!T||ze!==1&&ze!==9&&ze!==11)return W;if(!ne&&((I?I.ownerDocument||I:ot)!==_e&&Xe(I),I=I||_e,at)){if(ze!==11&&(Ne=ia.exec(T)))if(K=Ne[1]){if(ze===9){if(!(re=I.getElementById(K)))return W;if(re.id===K)return W.push(re),W}else if(Pe&&(re=Pe.getElementById(K))&&_t(I,re)&&re.id===K)return W.push(re),W}else{if(Ne[2])return gt.apply(W,I.getElementsByTagName(T)),W;if((K=Ne[3])&&Te.getElementsByClassName&&I.getElementsByClassName)return gt.apply(W,I.getElementsByClassName(K)),W}if(Te.qsa&&!Ut[T+" "]&&(!Je||!Je.test(T))){if(ze!==1)Pe=I,Ae=T;else if(I.nodeName.toLowerCase()!=="object"){for((ve=I.getAttribute("id"))?ve=ve.replace(aa,"\\$&"):I.setAttribute("id",ve=Oe),Se=kt(T),ce=Se.length,De=Zn.test(ve)?"#"+ve:"[id='"+ve+"']";ce--;)Se[ce]=De+" "+me(Se[ce]);Ae=Se.join(","),Pe=xn.test(T)&&de(I.parentNode)||I}if(Ae)try{return gt.apply(W,Pe.querySelectorAll(Ae)),W}catch(Le){}finally{ve===Oe&&I.removeAttribute("id")}}}return Ft(T.replace(Gt,"$1"),I,W,ne)}function n(){function T(W,ne){return I.push(W+" ")>Ce.cacheLength&&delete T[I.shift()],T[W+" "]=ne}var I=[];return T}function a(T){return T[Oe]=!0,T}function r(T){var I=_e.createElement("div");try{return!!T(I)}catch(W){return!1}finally{I.parentNode&&I.parentNode.removeChild(I),I=null}}function l(T,I){for(var W=T.split("|"),ne=W.length;ne--;)Ce.attrHandle[W[ne]]=I}function p(T,I){var W=I&&T,ne=W&&T.nodeType===1&&I.nodeType===1&&(~I.sourceIndex||Un)-(~T.sourceIndex||Un);if(ne)return ne;if(W){for(;W=W.nextSibling;)if(W===I)return-1}return T?1:-1}function j(T){return function(I){var W=I.nodeName.toLowerCase();return W==="input"&&I.type===T}}function B(T){return function(I){var W=I.nodeName.toLowerCase();return(W==="input"||W==="button")&&I.type===T}}function R(T){return a(function(I){return I=+I,a(function(W,ne){for(var K,ce=T([],W.length,I),re=ce.length;re--;)W[K=ce[re]]&&(W[K]=!(ne[K]=W[K]))})})}function de(T){return T&&typeof T.getElementsByTagName!="undefined"&&T}function U(){}function me(T){for(var I=0,W=T.length,ne="";I<W;I++)ne+=T[I].value;return ne}function be(T,I,W){var ne=I.dir,K=W&&ne==="parentNode",ce=Xi++;return I.first?function(re,ve,De){for(;re=re[ne];)if(re.nodeType===1||K)return T(re,ve,De)}:function(re,ve,De){var Ne,Se,Ae,Pe=[ft,ce];if(De){for(;re=re[ne];)if((re.nodeType===1||K)&&T(re,ve,De))return!0}else for(;re=re[ne];)if(re.nodeType===1||K){if(Ae=re[Oe]||(re[Oe]={}),Se=Ae[re.uniqueID]||(Ae[re.uniqueID]={}),(Ne=Se[ne])&&Ne[0]===ft&&Ne[1]===ce)return Pe[2]=Ne[2];if(Se[ne]=Pe,Pe[2]=T(re,ve,De))return!0}}}function He(T){return T.length>1?function(I,W,ne){for(var K=T.length;K--;)if(!T[K](I,W,ne))return!1;return!0}:T[0]}function qe(T,I,W){for(var ne=0,K=I.length;ne<K;ne++)t(T,I[ne],W);return W}function Be(T,I,W,ne,K){for(var ce,re=[],ve=0,De=T.length,Ne=I!=null;ve<De;ve++)(ce=T[ve])&&(W&&!W(ce,ne,K)||(re.push(ce),Ne&&I.push(ve)));return re}function ut(T,I,W,ne,K,ce){return ne&&!ne[Oe]&&(ne=ut(ne)),K&&!K[Oe]&&(K=ut(K,ce)),a(function(re,ve,De,Ne){var Se,Ae,Pe,ze=[],Le=[],Ve=ve.length,Ke=re||qe(I||"*",De.nodeType?[De]:De,[]),Ze=!T||!re&&I?Ke:Be(Ke,ze,T,De,Ne),$e=W?K||(re?T:Ve||ne)?[]:ve:Ze;if(W&&W(Ze,$e,De,Ne),ne)for(Se=Be($e,Le),ne(Se,[],De,Ne),Ae=Se.length;Ae--;)(Pe=Se[Ae])&&($e[Le[Ae]]=!(Ze[Le[Ae]]=Pe));if(re){if(K||T){if(K){for(Se=[],Ae=$e.length;Ae--;)(Pe=$e[Ae])&&Se.push(Ze[Ae]=Pe);K(null,$e=[],Se,Ne)}for(Ae=$e.length;Ae--;)(Pe=$e[Ae])&&(Se=K?Et(re,Pe):ze[Ae])>-1&&(re[Se]=!(ve[Se]=Pe))}}else $e=Be($e===ve?$e.splice(Ve,$e.length):$e),K?K(null,ve,$e,Ne):gt.apply(ve,$e)})}function Ht(T){for(var I,W,ne,K=T.length,ce=Ce.relative[T[0].type],re=ce||Ce.relative[" "],ve=ce?1:0,De=be(function(Ae){return Ae===I},re,!0),Ne=be(function(Ae){return Et(I,Ae)>-1},re,!0),Se=[function(Ae,Pe,ze){var Le=!ce&&(ze||Pe!==st)||((I=Pe).nodeType?De(Ae,Pe,ze):Ne(Ae,Pe,ze));return I=null,Le}];ve<K;ve++)if(W=Ce.relative[T[ve].type])Se=[be(He(Se),W)];else{if(W=Ce.filter[T[ve].type].apply(null,T[ve].matches),W[Oe]){for(ne=++ve;ne<K&&!Ce.relative[T[ne].type];ne++);return ut(ve>1&&He(Se),ve>1&&me(T.slice(0,ve-1).concat({value:T[ve-2].type===" "?"*":""})).replace(Gt,"$1"),W,ve<ne&&Ht(T.slice(ve,ne)),ne<K&&Ht(T=T.slice(ne)),ne<K&&me(T))}Se.push(W)}return He(Se)}function Ge(T,I){var W=I.length>0,ne=T.length>0,K=function(ce,re,ve,De,Ne){var Se,Ae,Pe,ze=0,Le="0",Ve=ce&&[],Ke=[],Ze=st,$e=ce||ne&&Ce.find.TAG("*",Ne),Wt=ft+=Ze==null?1:Math.random()||.1,Ot=$e.length;for(Ne&&(st=re===_e||re||Ne);Le!==Ot&&(Se=$e[Le])!=null;Le++){if(ne&&Se){for(Ae=0,re||Se.ownerDocument===_e||(Xe(Se),ve=!at);Pe=T[Ae++];)if(Pe(Se,re||_e,ve)){De.push(Se);break}Ne&&(ft=Wt)}W&&((Se=!Pe&&Se)&&ze--,ce&&Ve.push(Se))}if(ze+=Le,W&&Le!==ze){for(Ae=0;Pe=I[Ae++];)Pe(Ve,Ke,re,ve);if(ce){if(ze>0)for(;Le--;)Ve[Le]||Ke[Le]||(Ke[Le]=Ji.call(De));Ke=Be(Ke)}gt.apply(De,Ke),Ne&&!ce&&Ke.length>0&&ze+I.length>1&&t.uniqueSort(De)}return Ne&&(ft=Wt,st=Ze),Ve};return W?a(K):K}var dt,Te,Ce,Re,vt,kt,nt,Ft,st,Ue,Qe,Xe,_e,it,at,Je,Ct,Kt,_t,Oe="sizzle"+1*new Date,ot=e.document,ft=0,Xi=0,Jn=n(),Kn=n(),Ut=n(),vn=function(T,I){return T===I&&(Qe=!0),0},Un=1<<31,Vi={}.hasOwnProperty,Tt=[],Ji=Tt.pop,Ki=Tt.push,gt=Tt.push,Gn=Tt.slice,Et=function(T,I){for(var W=0,ne=T.length;W<ne;W++)if(T[W]===I)return W;return-1},gn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",We="[\\x20\\t\\r\\n\\f]",Dt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Qn="\\["+We+"*("+Dt+")(?:"+We+"*([*^$|!~]?=)"+We+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Dt+"))|)"+We+"*\\]",bn=":("+Dt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Qn+")*)|.*)\\)|)",Ui=new RegExp(We+"+","g"),Gt=new RegExp("^"+We+"+|((?:^|[^\\\\])(?:\\\\.)*)"+We+"+$","g"),Gi=new RegExp("^"+We+"*,"+We+"*"),Qi=new RegExp("^"+We+"*([>+~]|"+We+")"+We+"*"),Zi=new RegExp("="+We+`*([^\\]'"]*?)`+We+"*\\]","g"),ea=new RegExp(bn),Zn=new RegExp("^"+Dt+"$"),Qt={ID:new RegExp("^#("+Dt+")"),CLASS:new RegExp("^\\.("+Dt+")"),TAG:new RegExp("^("+Dt+"|[*])"),ATTR:new RegExp("^"+Qn),PSEUDO:new RegExp("^"+bn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+We+"*(even|odd|(([+-]|)(\\d*)n|)"+We+"*(?:([+-]|)"+We+"*(\\d+)|))"+We+"*\\)|)","i"),bool:new RegExp("^(?:"+gn+")$","i"),needsContext:new RegExp("^"+We+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+We+"*((?:-\\d)?\\d*)"+We+"*\\)|)(?=[^-]|$)","i")},ta=/^(?:input|select|textarea|button)$/i,na=/^h\d$/i,zt=/^[^{]+\{\s*\[native \w/,ia=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xn=/[+~]/,aa=/'|\\/g,pt=new RegExp("\\\\([\\da-f]{1,6}"+We+"?|("+We+")|.)","ig"),ht=function(T,I,W){var ne="0x"+I-65536;return ne!==ne||W?I:ne<0?String.fromCharCode(ne+65536):String.fromCharCode(ne>>10|55296,1023&ne|56320)},ei=function(){Xe()};try{gt.apply(Tt=Gn.call(ot.childNodes),ot.childNodes),Tt[ot.childNodes.length].nodeType}catch(T){gt={apply:Tt.length?function(I,W){Ki.apply(I,Gn.call(W))}:function(I,W){for(var ne=I.length,K=0;I[ne++]=W[K++];);I.length=ne-1}}}Te=t.support={},vt=t.isXML=function(T){var I=T&&(T.ownerDocument||T).documentElement;return!!I&&I.nodeName!=="HTML"},Xe=t.setDocument=function(T){var I,W,ne=T?T.ownerDocument||T:ot;return ne!==_e&&ne.nodeType===9&&ne.documentElement&&(_e=ne,it=_e.documentElement,at=!vt(_e),(W=_e.defaultView)&&W.top!==W&&(W.addEventListener?W.addEventListener("unload",ei,!1):W.attachEvent&&W.attachEvent("onunload",ei)),Te.attributes=r(function(K){return K.className="i",!K.getAttribute("className")}),Te.getElementsByTagName=r(function(K){return K.appendChild(_e.createComment("")),!K.getElementsByTagName("*").length}),Te.getElementsByClassName=zt.test(_e.getElementsByClassName),Te.getById=r(function(K){return it.appendChild(K).id=Oe,!_e.getElementsByName||!_e.getElementsByName(Oe).length}),Te.getById?(Ce.find.ID=function(K,ce){if(typeof ce.getElementById!="undefined"&&at){var re=ce.getElementById(K);return re?[re]:[]}},Ce.filter.ID=function(K){var ce=K.replace(pt,ht);return function(re){return re.getAttribute("id")===ce}}):(delete Ce.find.ID,Ce.filter.ID=function(K){var ce=K.replace(pt,ht);return function(re){var ve=typeof re.getAttributeNode!="undefined"&&re.getAttributeNode("id");return ve&&ve.value===ce}}),Ce.find.TAG=Te.getElementsByTagName?function(K,ce){return typeof ce.getElementsByTagName!="undefined"?ce.getElementsByTagName(K):Te.qsa?ce.querySelectorAll(K):void 0}:function(K,ce){var re,ve=[],De=0,Ne=ce.getElementsByTagName(K);if(K==="*"){for(;re=Ne[De++];)re.nodeType===1&&ve.push(re);return ve}return Ne},Ce.find.CLASS=Te.getElementsByClassName&&function(K,ce){if(typeof ce.getElementsByClassName!="undefined"&&at)return ce.getElementsByClassName(K)},Ct=[],Je=[],(Te.qsa=zt.test(_e.querySelectorAll))&&(r(function(K){it.appendChild(K).innerHTML="<a id='"+Oe+"'></a><select id='"+Oe+"-\r\\' msallowcapture=''><option selected=''></option></select>",K.querySelectorAll("[msallowcapture^='']").length&&Je.push("[*^$]="+We+`*(?:''|"")`),K.querySelectorAll("[selected]").length||Je.push("\\["+We+"*(?:value|"+gn+")"),K.querySelectorAll("[id~="+Oe+"-]").length||Je.push("~="),K.querySelectorAll(":checked").length||Je.push(":checked"),K.querySelectorAll("a#"+Oe+"+*").length||Je.push(".#.+[+~]")}),r(function(K){var ce=_e.createElement("input");ce.setAttribute("type","hidden"),K.appendChild(ce).setAttribute("name","D"),K.querySelectorAll("[name=d]").length&&Je.push("name"+We+"*[*^$|!~]?="),K.querySelectorAll(":enabled").length||Je.push(":enabled",":disabled"),K.querySelectorAll("*,:x"),Je.push(",.*:")})),(Te.matchesSelector=zt.test(Kt=it.matches||it.webkitMatchesSelector||it.mozMatchesSelector||it.oMatchesSelector||it.msMatchesSelector))&&r(function(K){Te.disconnectedMatch=Kt.call(K,"div"),Kt.call(K,"[s!='']:x"),Ct.push("!=",bn)}),Je=Je.length&&new RegExp(Je.join("|")),Ct=Ct.length&&new RegExp(Ct.join("|")),I=zt.test(it.compareDocumentPosition),_t=I||zt.test(it.contains)?function(K,ce){var re=K.nodeType===9?K.documentElement:K,ve=ce&&ce.parentNode;return K===ve||!(!ve||ve.nodeType!==1||!(re.contains?re.contains(ve):K.compareDocumentPosition&&16&K.compareDocumentPosition(ve)))}:function(K,ce){if(ce){for(;ce=ce.parentNode;)if(ce===K)return!0}return!1},vn=I?function(K,ce){if(K===ce)return Qe=!0,0;var re=!K.compareDocumentPosition-!ce.compareDocumentPosition;return re||(re=(K.ownerDocument||K)===(ce.ownerDocument||ce)?K.compareDocumentPosition(ce):1,1&re||!Te.sortDetached&&ce.compareDocumentPosition(K)===re?K===_e||K.ownerDocument===ot&&_t(ot,K)?-1:ce===_e||ce.ownerDocument===ot&&_t(ot,ce)?1:Ue?Et(Ue,K)-Et(Ue,ce):0:4&re?-1:1)}:function(K,ce){if(K===ce)return Qe=!0,0;var re,ve=0,De=K.parentNode,Ne=ce.parentNode,Se=[K],Ae=[ce];if(!De||!Ne)return K===_e?-1:ce===_e?1:De?-1:Ne?1:Ue?Et(Ue,K)-Et(Ue,ce):0;if(De===Ne)return p(K,ce);for(re=K;re=re.parentNode;)Se.unshift(re);for(re=ce;re=re.parentNode;)Ae.unshift(re);for(;Se[ve]===Ae[ve];)ve++;return ve?p(Se[ve],Ae[ve]):Se[ve]===ot?-1:Ae[ve]===ot?1:0}),_e},t.matches=function(T,I){return t(T,null,null,I)},t.matchesSelector=function(T,I){if((T.ownerDocument||T)!==_e&&Xe(T),I=I.replace(Zi,"='$1']"),Te.matchesSelector&&at&&!Ut[I+" "]&&(!Ct||!Ct.test(I))&&(!Je||!Je.test(I)))try{var W=Kt.call(T,I);if(W||Te.disconnectedMatch||T.document&&T.document.nodeType!==11)return W}catch(ne){}return t(I,_e,null,[T]).length>0},t.contains=function(T,I){return(T.ownerDocument||T)!==_e&&Xe(T),_t(T,I)},t.attr=function(T,I){(T.ownerDocument||T)!==_e&&Xe(T);var W=Ce.attrHandle[I.toLowerCase()],ne=W&&Vi.call(Ce.attrHandle,I.toLowerCase())?W(T,I,!at):void 0;return ne!==void 0?ne:Te.attributes||!at?T.getAttribute(I):(ne=T.getAttributeNode(I))&&ne.specified?ne.value:null},t.error=function(T){throw new Error("Syntax error, unrecognized expression: "+T)},t.uniqueSort=function(T){var I,W=[],ne=0,K=0;if(Qe=!Te.detectDuplicates,Ue=!Te.sortStable&&T.slice(0),T.sort(vn),Qe){for(;I=T[K++];)I===T[K]&&(ne=W.push(K));for(;ne--;)T.splice(W[ne],1)}return Ue=null,T},Re=t.getText=function(T){var I,W="",ne=0,K=T.nodeType;if(K){if(K===1||K===9||K===11){if(typeof T.textContent=="string")return T.textContent;for(T=T.firstChild;T;T=T.nextSibling)W+=Re(T)}else if(K===3||K===4)return T.nodeValue}else for(;I=T[ne++];)W+=Re(I);return W},Ce=t.selectors={cacheLength:50,createPseudo:a,match:Qt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(T){return T[1]=T[1].replace(pt,ht),T[3]=(T[3]||T[4]||T[5]||"").replace(pt,ht),T[2]==="~="&&(T[3]=" "+T[3]+" "),T.slice(0,4)},CHILD:function(T){return T[1]=T[1].toLowerCase(),T[1].slice(0,3)==="nth"?(T[3]||t.error(T[0]),T[4]=+(T[4]?T[5]+(T[6]||1):2*(T[3]==="even"||T[3]==="odd")),T[5]=+(T[7]+T[8]||T[3]==="odd")):T[3]&&t.error(T[0]),T},PSEUDO:function(T){var I,W=!T[6]&&T[2];return Qt.CHILD.test(T[0])?null:(T[3]?T[2]=T[4]||T[5]||"":W&&ea.test(W)&&(I=kt(W,!0))&&(I=W.indexOf(")",W.length-I)-W.length)&&(T[0]=T[0].slice(0,I),T[2]=W.slice(0,I)),T.slice(0,3))}},filter:{TAG:function(T){var I=T.replace(pt,ht).toLowerCase();return T==="*"?function(){return!0}:function(W){return W.nodeName&&W.nodeName.toLowerCase()===I}},CLASS:function(T){var I=Jn[T+" "];return I||(I=new RegExp("(^|"+We+")"+T+"("+We+"|$)"))&&Jn(T,function(W){return I.test(typeof W.className=="string"&&W.className||typeof W.getAttribute!="undefined"&&W.getAttribute("class")||"")})},ATTR:function(T,I,W){return function(ne){var K=t.attr(ne,T);return K==null?I==="!=":!I||(K+="",I==="="?K===W:I==="!="?K!==W:I==="^="?W&&K.indexOf(W)===0:I==="*="?W&&K.indexOf(W)>-1:I==="$="?W&&K.slice(-W.length)===W:I==="~="?(" "+K.replace(Ui," ")+" ").indexOf(W)>-1:I==="|="&&(K===W||K.slice(0,W.length+1)===W+"-"))}},CHILD:function(T,I,W,ne,K){var ce=T.slice(0,3)!=="nth",re=T.slice(-4)!=="last",ve=I==="of-type";return ne===1&&K===0?function(De){return!!De.parentNode}:function(De,Ne,Se){var Ae,Pe,ze,Le,Ve,Ke,Ze=ce!==re?"nextSibling":"previousSibling",$e=De.parentNode,Wt=ve&&De.nodeName.toLowerCase(),Ot=!Se&&!ve,et=!1;if($e){if(ce){for(;Ze;){for(Le=De;Le=Le[Ze];)if(ve?Le.nodeName.toLowerCase()===Wt:Le.nodeType===1)return!1;Ke=Ze=T==="only"&&!Ke&&"nextSibling"}return!0}if(Ke=[re?$e.firstChild:$e.lastChild],re&&Ot){for(Le=$e,ze=Le[Oe]||(Le[Oe]={}),Pe=ze[Le.uniqueID]||(ze[Le.uniqueID]={}),Ae=Pe[T]||[],Ve=Ae[0]===ft&&Ae[1],et=Ve&&Ae[2],Le=Ve&&$e.childNodes[Ve];Le=++Ve&&Le&&Le[Ze]||(et=Ve=0)||Ke.pop();)if(Le.nodeType===1&&++et&&Le===De){Pe[T]=[ft,Ve,et];break}}else if(Ot&&(Le=De,ze=Le[Oe]||(Le[Oe]={}),Pe=ze[Le.uniqueID]||(ze[Le.uniqueID]={}),Ae=Pe[T]||[],Ve=Ae[0]===ft&&Ae[1],et=Ve),et===!1)for(;(Le=++Ve&&Le&&Le[Ze]||(et=Ve=0)||Ke.pop())&&((ve?Le.nodeName.toLowerCase()!==Wt:Le.nodeType!==1)||!++et||(Ot&&(ze=Le[Oe]||(Le[Oe]={}),Pe=ze[Le.uniqueID]||(ze[Le.uniqueID]={}),Pe[T]=[ft,et]),Le!==De)););return et-=K,et===ne||et%ne==0&&et/ne>=0}}},PSEUDO:function(T,I){var W,ne=Ce.pseudos[T]||Ce.setFilters[T.toLowerCase()]||t.error("unsupported pseudo: "+T);return ne[Oe]?ne(I):ne.length>1?(W=[T,T,"",I],Ce.setFilters.hasOwnProperty(T.toLowerCase())?a(function(K,ce){for(var re,ve=ne(K,I),De=ve.length;De--;)re=Et(K,ve[De]),K[re]=!(ce[re]=ve[De])}):function(K){return ne(K,0,W)}):ne}},pseudos:{not:a(function(T){var I=[],W=[],ne=nt(T.replace(Gt,"$1"));return ne[Oe]?a(function(K,ce,re,ve){for(var De,Ne=ne(K,null,ve,[]),Se=K.length;Se--;)(De=Ne[Se])&&(K[Se]=!(ce[Se]=De))}):function(K,ce,re){return I[0]=K,ne(I,null,re,W),I[0]=null,!W.pop()}}),has:a(function(T){return function(I){return t(T,I).length>0}}),contains:a(function(T){return T=T.replace(pt,ht),function(I){return(I.textContent||I.innerText||Re(I)).indexOf(T)>-1}}),lang:a(function(T){return Zn.test(T||"")||t.error("unsupported lang: "+T),T=T.replace(pt,ht).toLowerCase(),function(I){var W;do if(W=at?I.lang:I.getAttribute("xml:lang")||I.getAttribute("lang"))return W=W.toLowerCase(),W===T||W.indexOf(T+"-")===0;while((I=I.parentNode)&&I.nodeType===1);return!1}}),target:function(T){var I=e.location&&e.location.hash;return I&&I.slice(1)===T.id},root:function(T){return T===it},focus:function(T){return T===_e.activeElement&&(!_e.hasFocus||_e.hasFocus())&&!!(T.type||T.href||~T.tabIndex)},enabled:function(T){return T.disabled===!1},disabled:function(T){return T.disabled===!0},checked:function(T){var I=T.nodeName.toLowerCase();return I==="input"&&!!T.checked||I==="option"&&!!T.selected},selected:function(T){return T.parentNode&&T.parentNode.selectedIndex,T.selected===!0},empty:function(T){for(T=T.firstChild;T;T=T.nextSibling)if(T.nodeType<6)return!1;return!0},parent:function(T){return!Ce.pseudos.empty(T)},header:function(T){return na.test(T.nodeName)},input:function(T){return ta.test(T.nodeName)},button:function(T){var I=T.nodeName.toLowerCase();return I==="input"&&T.type==="button"||I==="button"},text:function(T){var I;return T.nodeName.toLowerCase()==="input"&&T.type==="text"&&((I=T.getAttribute("type"))==null||I.toLowerCase()==="text")},first:R(function(){return[0]}),last:R(function(T,I){return[I-1]}),eq:R(function(T,I,W){return[W<0?W+I:W]}),even:R(function(T,I){for(var W=0;W<I;W+=2)T.push(W);return T}),odd:R(function(T,I){for(var W=1;W<I;W+=2)T.push(W);return T}),lt:R(function(T,I,W){for(var ne=W<0?W+I:W;--ne>=0;)T.push(ne);return T}),gt:R(function(T,I,W){for(var ne=W<0?W+I:W;++ne<I;)T.push(ne);return T})}},Ce.pseudos.nth=Ce.pseudos.eq;for(dt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Ce.pseudos[dt]=j(dt);for(dt in{submit:!0,reset:!0})Ce.pseudos[dt]=B(dt);return U.prototype=Ce.filters=Ce.pseudos,Ce.setFilters=new U,kt=t.tokenize=function(T,I){var W,ne,K,ce,re,ve,De,Ne=Kn[T+" "];if(Ne)return I?0:Ne.slice(0);for(re=T,ve=[],De=Ce.preFilter;re;){W&&!(ne=Gi.exec(re))||(ne&&(re=re.slice(ne[0].length)||re),ve.push(K=[])),W=!1,(ne=Qi.exec(re))&&(W=ne.shift(),K.push({value:W,type:ne[0].replace(Gt," ")}),re=re.slice(W.length));for(ce in Ce.filter)!(ne=Qt[ce].exec(re))||De[ce]&&!(ne=De[ce](ne))||(W=ne.shift(),K.push({value:W,type:ce,matches:ne}),re=re.slice(W.length));if(!W)break}return I?re.length:re?t.error(T):Kn(T,ve).slice(0)},nt=t.compile=function(T,I){var W,ne=[],K=[],ce=Ut[T+" "];if(!ce){for(I||(I=kt(T)),W=I.length;W--;)ce=Ht(I[W]),ce[Oe]?ne.push(ce):K.push(ce);ce=Ut(T,Ge(K,ne)),ce.selector=T}return ce},Ft=t.select=function(T,I,W,ne){var K,ce,re,ve,De,Ne=typeof T=="function"&&T,Se=!ne&&kt(T=Ne.selector||T);if(W=W||[],Se.length===1){if(ce=Se[0]=Se[0].slice(0),ce.length>2&&(re=ce[0]).type==="ID"&&Te.getById&&I.nodeType===9&&at&&Ce.relative[ce[1].type]){if(I=(Ce.find.ID(re.matches[0].replace(pt,ht),I)||[])[0],!I)return W;Ne&&(I=I.parentNode),T=T.slice(ce.shift().value.length)}for(K=Qt.needsContext.test(T)?0:ce.length;K--&&(re=ce[K],!Ce.relative[ve=re.type]);)if((De=Ce.find[ve])&&(ne=De(re.matches[0].replace(pt,ht),xn.test(ce[0].type)&&de(I.parentNode)||I))){if(ce.splice(K,1),T=ne.length&&me(ce),!T)return gt.apply(W,ne),W;break}}return(Ne||nt(T,Se))(ne,I,!at,W,!I||xn.test(T)&&de(I.parentNode)||I),W},Te.sortStable=Oe.split("").sort(vn).join("")===Oe,Te.detectDuplicates=!!Qe,Xe(),Te.sortDetached=r(function(T){return 1&T.compareDocumentPosition(_e.createElement("div"))}),r(function(T){return T.innerHTML="<a href='#'></a>",T.firstChild.getAttribute("href")==="#"})||l("type|href|height|width",function(T,I,W){if(!W)return T.getAttribute(I,I.toLowerCase()==="type"?1:2)}),Te.attributes&&r(function(T){return T.innerHTML="<input/>",T.firstChild.setAttribute("value",""),T.firstChild.getAttribute("value")===""})||l("value",function(T,I,W){if(!W&&T.nodeName.toLowerCase()==="input")return T.defaultValue}),r(function(T){return T.getAttribute("disabled")==null})||l(gn,function(T,I,W){var ne;if(!W)return T[I]===!0?I.toLowerCase():(ne=T.getAttributeNode(I))&&ne.specified?ne.value:null}),t}(oe);i.find=Lt,i.expr=Lt.selectors,i.expr[":"]=i.expr.pseudos,i.uniqueSort=i.unique=Lt.uniqueSort,i.text=Lt.getText,i.isXMLDoc=Lt.isXML,i.contains=Lt.contains;var At=function(e,t,n){for(var a=[],r=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(r&&i(e).is(n))break;a.push(e)}return a},Cn=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},Tn=i.expr.match.needsContext,En=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ri=/^.[^:#\[\.,]*$/;i.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),t.length===1&&a.nodeType===1?i.find.matchesSelector(a,e)?[a]:[]:i.find.matches(e,i.grep(t,function(r){return r.nodeType===1}))},i.fn.extend({find:function(e){var t,n=[],a=this,r=a.length;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t<r;t++)if(i.contains(a[t],this))return!0}));for(t=0;t<r;t++)i.find(e,a[t],n);return n=this.pushStack(r>1?i.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,typeof e=="string"&&Tn.test(e)?i(e):e||[],!1).length}});var en,li=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,si=i.fn.init=function(e,t,n){var a,r;if(!e)return this;if(n=n||en,typeof e=="string"){if(a=e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?[null,e,null]:li.exec(e),!a||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:we,!0)),En.test(a[1])&&i.isPlainObject(t))for(a in t)i.isFunction(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}if(r=we.getElementById(a[2]),r&&r.parentNode){if(r.id!==a[2])return en.find(e);this.length=1,this[0]=r}return this.context=we,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):i.isFunction(e)?typeof n.ready!="undefined"?n.ready(e):e(i):(e.selector!==void 0&&(this.selector=e.selector,this.context=e.context),i.makeArray(e,this))};si.prototype=i.fn,en=i(we);var ci=/^(?:parents|prev(?:Until|All))/,ui={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t,n=i(e,this),a=n.length;return this.filter(function(){for(t=0;t<a;t++)if(i.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,a=0,r=this.length,l=[],p=Tn.test(e)||typeof e!="string"?i(e,t||this.context):0;a<r;a++)for(n=this[a];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(p?p.index(n)>-1:n.nodeType===1&&i.find.matchesSelector(n,e))){l.push(n);break}return this.pushStack(l.length>1?i.uniqueSort(l):l)},index:function(e){return e?typeof e=="string"?i.inArray(this[0],i(e)):i.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),i.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return At(e,"parentNode")},parentsUntil:function(e,t,n){return At(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return At(e,"nextSibling")},prevAll:function(e){return At(e,"previousSibling")},nextUntil:function(e,t,n){return At(e,"nextSibling",n)},prevUntil:function(e,t,n){return At(e,"previousSibling",n)},siblings:function(e){return Cn((e.parentNode||{}).firstChild,e)},children:function(e){return Cn(e.firstChild)},contents:function(e){return i.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:i.merge([],e.childNodes)}},function(e,t){i.fn[e]=function(n,a){var r=i.map(this,t,n);return e.slice(-5)!=="Until"&&(a=n),a&&typeof a=="string"&&(r=i.filter(a,r)),this.length>1&&(ui[e]||(r=i.uniqueSort(r)),ci.test(e)&&(r=r.reverse())),this.pushStack(r)}});var lt=/\S+/g;i.Callbacks=function(e){e=typeof e=="string"?G(e):i.extend({},e);var t,n,a,r,l=[],p=[],j=-1,B=function(){for(r=e.once,a=t=!0;p.length;j=-1)for(n=p.shift();++j<l.length;)l[j].apply(n[0],n[1])===!1&&e.stopOnFalse&&(j=l.length,n=!1);e.memory||(n=!1),t=!1,r&&(l=n?[]:"")},R={add:function(){return l&&(n&&!t&&(j=l.length-1,p.push(n)),function de(U){i.each(U,function(me,be){i.isFunction(be)?e.unique&&R.has(be)||l.push(be):be&&be.length&&i.type(be)!=="string"&&de(be)})}(arguments),n&&!t&&B()),this},remove:function(){return i.each(arguments,function(de,U){for(var me;(me=i.inArray(U,l,me))>-1;)l.splice(me,1),me<=j&&j--}),this},has:function(de){return de?i.inArray(de,l)>-1:l.length>0},empty:function(){return l&&(l=[]),this},disable:function(){return r=p=[],l=n="",this},disabled:function(){return!l},lock:function(){return r=!0,n||R.disable(),this},locked:function(){return!!r},fireWith:function(de,U){return r||(U=U||[],U=[de,U.slice?U.slice():U],p.push(U),t||B()),this},fire:function(){return R.fireWith(this,arguments),this},fired:function(){return!!a}};return R},i.extend({Deferred:function(e){var t=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var l=arguments;return i.Deferred(function(p){i.each(t,function(j,B){var R=i.isFunction(l[j])&&l[j];r[B[1]](function(){var de=R&&R.apply(this,arguments);de&&i.isFunction(de.promise)?de.promise().progress(p.notify).done(p.resolve).fail(p.reject):p[B[0]+"With"](this===a?p.promise():this,R?[de]:arguments)})}),l=null}).promise()},promise:function(l){return l!=null?i.extend(l,a):a}},r={};return a.pipe=a.then,i.each(t,function(l,p){var j=p[2],B=p[3];a[p[1]]=j.add,B&&j.add(function(){n=B},t[1^l][2].disable,t[2][2].lock),r[p[0]]=function(){return r[p[0]+"With"](this===r?a:this,arguments),this},r[p[0]+"With"]=j.fireWith}),a.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,a,r=0,l=Ie.call(arguments),p=l.length,j=p!==1||e&&i.isFunction(e.promise)?p:0,B=j===1?e:i.Deferred(),R=function(de,U,me){return function(be){U[de]=this,me[de]=arguments.length>1?Ie.call(arguments):be,me===t?B.notifyWith(U,me):--j||B.resolveWith(U,me)}};if(p>1)for(t=new Array(p),n=new Array(p),a=new Array(p);r<p;r++)l[r]&&i.isFunction(l[r].promise)?l[r].promise().progress(R(r,n,t)).done(R(r,a,l)).fail(B.reject):--j;return j||B.resolveWith(a,l),B.promise()}});var $t;i.fn.ready=function(e){return i.ready.promise().done(e),this},i.extend({isReady:!1,readyWait:1,holdReady:function(e){e?i.readyWait++:i.ready(!0)},ready:function(e){(e===!0?--i.readyWait:i.isReady)||(i.isReady=!0,e!==!0&&--i.readyWait>0||($t.resolveWith(we,[i]),i.fn.triggerHandler&&(i(we).triggerHandler("ready"),i(we).off("ready"))))}}),i.ready.promise=function(e){if(!$t)if($t=i.Deferred(),we.readyState==="complete"||we.readyState!=="loading"&&!we.documentElement.doScroll)oe.setTimeout(i.ready);else if(we.addEventListener)we.addEventListener("DOMContentLoaded",$),oe.addEventListener("load",$);else{we.attachEvent("onreadystatechange",$),oe.attachEvent("onload",$);var t=!1;try{t=oe.frameElement==null&&we.documentElement}catch(n){}t&&t.doScroll&&function n(){if(!i.isReady){try{t.doScroll("left")}catch(a){return oe.setTimeout(n,50)}A(),i.ready()}}()}return $t.promise(e)},i.ready.promise();var Dn;for(Dn in i(ge))break;ge.ownFirst=Dn==="0",ge.inlineBlockNeedsLayout=!1,i(function(){var e,t,n,a;n=we.getElementsByTagName("body")[0],n&&n.style&&(t=we.createElement("div"),a=we.createElement("div"),a.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(a).appendChild(t),typeof t.style.zoom!="undefined"&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ge.inlineBlockNeedsLayout=e=t.offsetWidth===3,e&&(n.style.zoom=1)),n.removeChild(a))}),function(){var e=we.createElement("div");ge.deleteExpando=!0;try{delete e.test}catch(t){ge.deleteExpando=!1}e=null}();var It=function(e){var t=i.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(n===1||n===9)&&(!t||t!==!0&&e.getAttribute("classid")===t)},di=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fi=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?i.cache[e[i.expando]]:e[i.expando],!!e&&!L(e)},data:function(e,t,n){return F(e,t,n)},removeData:function(e,t){return y(e,t)},_data:function(e,t,n){return F(e,t,n,!0)},_removeData:function(e,t){return y(e,t,!0)}}),i.fn.extend({data:function(e,t){var n,a,r,l=this[0],p=l&&l.attributes;if(e===void 0){if(this.length&&(r=i.data(l),l.nodeType===1&&!i._data(l,"parsedAttrs"))){for(n=p.length;n--;)p[n]&&(a=p[n].name,a.indexOf("data-")===0&&(a=i.camelCase(a.slice(5)),v(l,a,r[a])));i._data(l,"parsedAttrs",!0)}return r}return typeof e=="object"?this.each(function(){i.data(this,e)}):arguments.length>1?this.each(function(){i.data(this,e,t)}):l?v(l,e,i.data(l,e)):void 0},removeData:function(e){return this.each(function(){i.removeData(this,e)})}}),i.extend({queue:function(e,t,n){var a;if(e)return t=(t||"fx")+"queue",a=i._data(e,t),n&&(!a||i.isArray(n)?a=i._data(e,t,i.makeArray(n)):a.push(n)),a||[]},dequeue:function(e,t){t=t||"fx";var n=i.queue(e,t),a=n.length,r=n.shift(),l=i._queueHooks(e,t),p=function(){i.dequeue(e,t)};r==="inprogress"&&(r=n.shift(),a--),r&&(t==="fx"&&n.unshift("inprogress"),delete l.stop,r.call(e,p,l)),!a&&l&&l.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return i._data(e,n)||i._data(e,n,{empty:i.Callbacks("once memory").add(function(){i._removeData(e,t+"queue"),i._removeData(e,n)})})}}),i.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?i.queue(this[0],e):t===void 0?this:this.each(function(){var a=i.queue(this,e,t);i._queueHooks(this,e),e==="fx"&&a[0]!=="inprogress"&&i.dequeue(this,e)})},dequeue:function(e){return this.each(function(){i.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,a=1,r=i.Deferred(),l=this,p=this.length,j=function(){--a||r.resolveWith(l,[l])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";p--;)n=i._data(l[p],e+"queueHooks"),n&&n.empty&&(a++,n.empty.add(j));return j(),r.promise(t)}}),function(){var e;ge.shrinkWrapBlocks=function(){if(e!=null)return e;e=!1;var t,n,a;return n=we.getElementsByTagName("body")[0],n&&n.style?(t=we.createElement("div"),a=we.createElement("div"),a.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(a).appendChild(t),typeof t.style.zoom!="undefined"&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(we.createElement("div")).style.width="5px",e=t.offsetWidth!==3),n.removeChild(a),e):void 0}}();var tn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nn=new RegExp("^(?:([+-])=|)("+tn+")([a-z%]*)$","i"),bt=["Top","Right","Bottom","Left"],qt=function(e,t){return e=t||e,i.css(e,"display")==="none"||!i.contains(e.ownerDocument,e)},yt=function(e,t,n,a,r,l,p){var j=0,B=e.length,R=n==null;if(i.type(n)==="object"){r=!0;for(j in n)yt(e,t,j,n[j],!0,l,p)}else if(a!==void 0&&(r=!0,i.isFunction(a)||(p=!0),R&&(p?(t.call(e,a),t=null):(R=t,t=function(de,U,me){return R.call(i(de),me)})),t))for(;j<B;j++)t(e[j],n,p?a:a.call(e[j],j,t(e[j],n)));return r?e:R?t.call(e):B?t(e[0],n):l},an=/^(?:checkbox|radio)$/i,Sn=/<([\w:-]+)/,Ln=/^$|\/(?:java|ecma)script/i,on=/^\s+/,An="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";(function(){var e=we.createElement("div"),t=we.createDocumentFragment(),n=we.createElement("input");e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ge.leadingWhitespace=e.firstChild.nodeType===3,ge.tbody=!e.getElementsByTagName("tbody").length,ge.htmlSerialize=!!e.getElementsByTagName("link").length,ge.html5Clone=we.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",n.type="checkbox",n.checked=!0,t.appendChild(n),ge.appendChecked=n.checked,e.innerHTML="<textarea>x</textarea>",ge.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=we.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),ge.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,ge.noCloneEvent=!!e.addEventListener,e[i.expando]=1,ge.attributes=!e.getAttribute(i.expando)})();var tt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ge.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};tt.optgroup=tt.option,tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead,tt.th=tt.td;var pi=/<|&#?\w+;/,jn=/<tbody/i;(function(){var e,t,n=we.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(ge[e]=t in oe)||(n.setAttribute(t,"t"),ge[e]=n.attributes[t].expando===!1);n=null})();var rn=/^(?:input|select|textarea)$/i,hi=/^key/,yi=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Nn=/^(?:focusinfocus|focusoutblur)$/,Mn=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(e,t,n,a,r){var l,p,j,B,R,de,U,me,be,He,qe,Be=i._data(e);if(Be){for(n.handler&&(B=n,n=B.handler,r=B.selector),n.guid||(n.guid=i.guid++),(p=Be.events)||(p=Be.events={}),(de=Be.handle)||(de=Be.handle=function(ut){return typeof i=="undefined"||ut&&i.event.triggered===ut.type?void 0:i.event.dispatch.apply(de.elem,arguments)},de.elem=e),t=(t||"").match(lt)||[""],j=t.length;j--;)l=Mn.exec(t[j])||[],be=qe=l[1],He=(l[2]||"").split(".").sort(),be&&(R=i.event.special[be]||{},be=(r?R.delegateType:R.bindType)||be,R=i.event.special[be]||{},U=i.extend({type:be,origType:qe,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&i.expr.match.needsContext.test(r),namespace:He.join(".")},B),(me=p[be])||(me=p[be]=[],me.delegateCount=0,R.setup&&R.setup.call(e,a,He,de)!==!1||(e.addEventListener?e.addEventListener(be,de,!1):e.attachEvent&&e.attachEvent("on"+be,de))),R.add&&(R.add.call(e,U),U.handler.guid||(U.handler.guid=n.guid)),r?me.splice(me.delegateCount++,0,U):me.push(U),i.event.global[be]=!0);e=null}},remove:function(e,t,n,a,r){var l,p,j,B,R,de,U,me,be,He,qe,Be=i.hasData(e)&&i._data(e);if(Be&&(de=Be.events)){for(t=(t||"").match(lt)||[""],R=t.length;R--;)if(j=Mn.exec(t[R])||[],be=qe=j[1],He=(j[2]||"").split(".").sort(),be){for(U=i.event.special[be]||{},be=(a?U.delegateType:U.bindType)||be,me=de[be]||[],j=j[2]&&new RegExp("(^|\\.)"+He.join("\\.(?:.*\\.|)")+"(\\.|$)"),B=l=me.length;l--;)p=me[l],!r&&qe!==p.origType||n&&n.guid!==p.guid||j&&!j.test(p.namespace)||a&&a!==p.selector&&(a!=="**"||!p.selector)||(me.splice(l,1),p.selector&&me.delegateCount--,U.remove&&U.remove.call(e,p));B&&!me.length&&(U.teardown&&U.teardown.call(e,He,Be.handle)!==!1||i.removeEvent(e,be,Be.handle),delete de[be])}else for(be in de)i.event.remove(e,be+t[R],n,a,!0);i.isEmptyObject(de)&&(delete Be.handle,i._removeData(e,"events"))}},trigger:function(e,t,n,a){var r,l,p,j,B,R,de,U=[n||we],me=St.call(e,"type")?e.type:e,be=St.call(e,"namespace")?e.namespace.split("."):[];if(p=R=n=n||we,n.nodeType!==3&&n.nodeType!==8&&!Nn.test(me+i.event.triggered)&&(me.indexOf(".")>-1&&(be=me.split("."),me=be.shift(),be.sort()),l=me.indexOf(":")<0&&"on"+me,e=e[i.expando]?e:new i.Event(me,typeof e=="object"&&e),e.isTrigger=a?2:3,e.namespace=be.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+be.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:i.makeArray(t,[e]),B=i.event.special[me]||{},a||!B.trigger||B.trigger.apply(n,t)!==!1)){if(!a&&!B.noBubble&&!i.isWindow(n)){for(j=B.delegateType||me,Nn.test(j+me)||(p=p.parentNode);p;p=p.parentNode)U.push(p),R=p;R===(n.ownerDocument||we)&&U.push(R.defaultView||R.parentWindow||oe)}for(de=0;(p=U[de++])&&!e.isPropagationStopped();)e.type=de>1?j:B.bindType||me,r=(i._data(p,"events")||{})[e.type]&&i._data(p,"handle"),r&&r.apply(p,t),r=l&&p[l],r&&r.apply&&It(p)&&(e.result=r.apply(p,t),e.result===!1&&e.preventDefault());if(e.type=me,!a&&!e.isDefaultPrevented()&&(!B._default||B._default.apply(U.pop(),t)===!1)&&It(n)&&l&&n[me]&&!i.isWindow(n)){R=n[l],R&&(n[l]=null),i.event.triggered=me;try{n[me]()}catch(He){}i.event.triggered=void 0,R&&(n[l]=R)}return e.result}},dispatch:function(e){e=i.event.fix(e);var t,n,a,r,l,p=[],j=Ie.call(arguments),B=(i._data(this,"events")||{})[e.type]||[],R=i.event.special[e.type]||{};if(j[0]=e,e.delegateTarget=this,!R.preDispatch||R.preDispatch.call(this,e)!==!1){for(p=i.event.handlers.call(this,e,B),t=0;(r=p[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(l=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(l.namespace)||(e.handleObj=l,e.data=l.data,a=((i.event.special[l.origType]||{}).handle||l.handler).apply(r.elem,j),a!==void 0&&(e.result=a)===!1&&(e.preventDefault(),e.stopPropagation()));return R.postDispatch&&R.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,l,p=[],j=t.delegateCount,B=e.target;if(j&&B.nodeType&&(e.type!=="click"||isNaN(e.button)||e.button<1)){for(;B!=this;B=B.parentNode||this)if(B.nodeType===1&&(B.disabled!==!0||e.type!=="click")){for(a=[],n=0;n<j;n++)l=t[n],r=l.selector+" ",a[r]===void 0&&(a[r]=l.needsContext?i(r,this).index(B)>-1:i.find(r,this,null,[B]).length),a[r]&&a.push(l);a.length&&p.push({elem:B,handlers:a})}}return j<t.length&&p.push({elem:this,handlers:t.slice(j)}),p},fix:function(e){if(e[i.expando])return e;var t,n,a,r=e.type,l=e,p=this.fixHooks[r];for(p||(this.fixHooks[r]=p=yi.test(r)?this.mouseHooks:hi.test(r)?this.keyHooks:{}),a=p.props?this.props.concat(p.props):this.props,e=new i.Event(l),t=a.length;t--;)n=a[t],e[n]=l[n];return e.target||(e.target=l.srcElement||we),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,p.filter?p.filter(e,l):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,a,r,l=t.button,p=t.fromElement;return e.pageX==null&&t.clientX!=null&&(a=e.target.ownerDocument||we,r=a.documentElement,n=a.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&p&&(e.relatedTarget=p===e.target?t.toElement:p),e.which||l===void 0||(e.which=1&l?1:2&l?3:4&l?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==M()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===M()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(e){return i.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var a=i.extend(new i.Event,n,{type:e,isSimulated:!0});i.event.trigger(a,null,t),a.isDefaultPrevented()&&n.preventDefault()}},i.removeEvent=we.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var a="on"+t;e.detachEvent&&(typeof e[a]=="undefined"&&(e[a]=null),e.detachEvent(a,n))},i.Event=function(e,t){return this instanceof i.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?q:z):this.type=e,t&&i.extend(this,t),this.timeStamp=e&&e.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(e,t)},i.Event.prototype={constructor:i.Event,isDefaultPrevented:z,isPropagationStopped:z,isImmediatePropagationStopped:z,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=q,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=q,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=q,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){i.event.special[e]={delegateType:t,bindType:t,handle:function(n){var a,r=this,l=n.relatedTarget,p=n.handleObj;return l&&(l===r||i.contains(r,l))||(n.type=p.origType,a=p.handler.apply(this,arguments),n.type=t),a}}}),ge.submit||(i.event.special.submit={setup:function(){return!i.nodeName(this,"form")&&void i.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=i.nodeName(t,"input")||i.nodeName(t,"button")?i.prop(t,"form"):void 0;n&&!i._data(n,"submit")&&(i.event.add(n,"submit._submit",function(a){a._submitBubble=!0}),i._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&i.event.simulate("submit",this.parentNode,e))},teardown:function(){return!i.nodeName(this,"form")&&void i.event.remove(this,"._submit")}}),ge.change||(i.event.special.change={setup:function(){return rn.test(this.nodeName)?(this.type!=="checkbox"&&this.type!=="radio"||(i.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._justChanged=!0)}),i.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),i.event.simulate("change",this,e)})),!1):void i.event.add(this,"beforeactivate._change",function(e){var t=e.target;rn.test(t.nodeName)&&!i._data(t,"change")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n)}),i._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!rn.test(this.nodeName)}}),ge.focusin||i.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(a){i.event.simulate(t,a.target,i.event.fix(a))};i.event.special[t]={setup:function(){var a=this.ownerDocument||this,r=i._data(a,t);r||a.addEventListener(e,n,!0),i._data(a,t,(r||0)+1)},teardown:function(){var a=this.ownerDocument||this,r=i._data(a,t)-1;r?i._data(a,t,r):(a.removeEventListener(e,n,!0),i._removeData(a,t))}}}),i.fn.extend({on:function(e,t,n,a){return E(this,e,t,n,a)},one:function(e,t,n,a){return E(this,e,t,n,a,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)return a=e.handleObj,i(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler),this;if(typeof e=="object"){for(r in e)this.off(r,t,e[r]);return this}return t!==!1&&typeof t!="function"||(n=t,t=void 0),n===!1&&(n=z),this.each(function(){i.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){i.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return i.event.trigger(e,t,n,!0)}});var mi=/ jQuery\d+="(?:null|\d+)"/g,Hn=new RegExp("<(?:"+An+")[\\s/>]","i"),vi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,gi=/<script|<style|<link/i,bi=/checked\s*(?:[^=]|=\s*.checked.)/i,xi=/^true\/(.*)/,wi=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ki=h(we),ln=ki.appendChild(we.createElement("div"));i.extend({htmlPrefilter:function(e){return e.replace(vi,"<$1></$2>")},clone:function(e,t,n){var a,r,l,p,j,B=i.contains(e.ownerDocument,e);if(ge.html5Clone||i.isXMLDoc(e)||!Hn.test("<"+e.nodeName+">")?l=e.cloneNode(!0):(ln.innerHTML=e.outerHTML,ln.removeChild(l=ln.firstChild)),!(ge.noCloneEvent&&ge.noCloneChecked||e.nodeType!==1&&e.nodeType!==11||i.isXMLDoc(e)))for(a=c(l),j=c(e),p=0;(r=j[p])!=null;++p)a[p]&&g(r,a[p]);if(t)if(n)for(j=j||c(e),a=a||c(l),p=0;(r=j[p])!=null;p++)d(r,a[p]);else d(e,l);return a=c(l,"script"),a.length>0&&m(a,!B&&c(e,"script")),a=j=r=null,l},cleanData:function(e,t){for(var n,a,r,l,p=0,j=i.expando,B=i.cache,R=ge.attributes,de=i.event.special;(n=e[p])!=null;p++)if((t||It(n))&&(r=n[j],l=r&&B[r])){if(l.events)for(a in l.events)de[a]?i.event.remove(n,a):i.removeEvent(n,a,l.handle);B[r]&&(delete B[r],R||typeof n.removeAttribute=="undefined"?n[j]=void 0:n.removeAttribute(j),Fe.push(r))}}}),i.fn.extend({domManip:f,detach:function(e){return w(this,e,!0)},remove:function(e){return w(this,e)},text:function(e){return yt(this,function(t){return t===void 0?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||we).createTextNode(t))},null,e,arguments.length)},append:function(){return f(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=ee(this,e);t.appendChild(e)}})},prepend:function(){return f(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=ee(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return f(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return f(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++){for(e.nodeType===1&&i.cleanData(c(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&i.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e!=null&&e,t=t==null?e:t,this.map(function(){return i.clone(this,e,t)})},html:function(e){return yt(this,function(t){var n=this[0]||{},a=0,r=this.length;if(t===void 0)return n.nodeType===1?n.innerHTML.replace(mi,""):void 0;if(typeof t=="string"&&!gi.test(t)&&(ge.htmlSerialize||!Hn.test(t))&&(ge.leadingWhitespace||!on.test(t))&&!tt[(Sn.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;a<r;a++)n=this[a]||{},n.nodeType===1&&(i.cleanData(c(n,!1)),n.innerHTML=t);n=0}catch(l){}}n&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return f(this,arguments,function(t){var n=this.parentNode;i.inArray(this,e)<0&&(i.cleanData(c(this)),n&&n.replaceChild(t,this))},e)}}),i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){i.fn[e]=function(n){for(var a,r=0,l=[],p=i(n),j=p.length-1;r<=j;r++)a=r===j?this:this.clone(!0),i(p[r])[t](a),Zt.apply(l,a.get());return this.pushStack(l)}});var Pt,Fn={HTML:"block",BODY:"block"},In=/^margin/,Yt=new RegExp("^("+tn+")(?!px)[a-z%]+$","i"),sn=function(e,t,n,a){var r,l,p={};for(l in t)p[l]=e.style[l],e.style[l]=t[l];r=n.apply(e,a||[]);for(l in t)e.style[l]=p[l];return r},qn=we.documentElement;(function(){function e(){var R,de,U=we.documentElement;U.appendChild(j),B.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",t=a=p=!1,n=l=!0,oe.getComputedStyle&&(de=oe.getComputedStyle(B),t=(de||{}).top!=="1%",p=(de||{}).marginLeft==="2px",a=(de||{width:"4px"}).width==="4px",B.style.marginRight="50%",n=(de||{marginRight:"4px"}).marginRight==="4px",R=B.appendChild(we.createElement("div")),R.style.cssText=B.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",R.style.marginRight=R.style.width="0",B.style.width="1px",l=!parseFloat((oe.getComputedStyle(R)||{}).marginRight),B.removeChild(R)),B.style.display="none",r=B.getClientRects().length===0,r&&(B.style.display="",B.innerHTML="<table><tr><td></td><td>t</td></tr></table>",R=B.getElementsByTagName("td"),R[0].style.cssText="margin:0;border:0;padding:0;display:none",r=R[0].offsetHeight===0,r&&(R[0].style.display="",R[1].style.display="none",r=R[0].offsetHeight===0)),U.removeChild(j)}var t,n,a,r,l,p,j=we.createElement("div"),B=we.createElement("div");B.style&&(B.style.cssText="float:left;opacity:.5",ge.opacity=B.style.opacity==="0.5",ge.cssFloat=!!B.style.cssFloat,B.style.backgroundClip="content-box",B.cloneNode(!0).style.backgroundClip="",ge.clearCloneStyle=B.style.backgroundClip==="content-box",j=we.createElement("div"),j.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",B.innerHTML="",j.appendChild(B),ge.boxSizing=B.style.boxSizing===""||B.style.MozBoxSizing===""||B.style.WebkitBoxSizing==="",i.extend(ge,{reliableHiddenOffsets:function(){return t==null&&e(),r},boxSizingReliable:function(){return t==null&&e(),a},pixelMarginRight:function(){return t==null&&e(),n},pixelPosition:function(){return t==null&&e(),t},reliableMarginRight:function(){return t==null&&e(),l},reliableMarginLeft:function(){return t==null&&e(),p}}))})();var xt,mt,Ci=/^(top|right|bottom|left)$/;oe.getComputedStyle?(xt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=oe),t.getComputedStyle(e)},mt=function(e,t,n){var a,r,l,p,j=e.style;return n=n||xt(e),p=n?n.getPropertyValue(t)||n[t]:void 0,p!==""&&p!==void 0||i.contains(e.ownerDocument,e)||(p=i.style(e,t)),n&&!ge.pixelMarginRight()&&Yt.test(p)&&In.test(t)&&(a=j.width,r=j.minWidth,l=j.maxWidth,j.minWidth=j.maxWidth=j.width=p,p=n.width,j.width=a,j.minWidth=r,j.maxWidth=l),p===void 0?p:p+""}):qn.currentStyle&&(xt=function(e){return e.currentStyle},mt=function(e,t,n){var a,r,l,p,j=e.style;return n=n||xt(e),p=n?n[t]:void 0,p==null&&j&&j[t]&&(p=j[t]),Yt.test(p)&&!Ci.test(t)&&(a=j.left,r=e.runtimeStyle,l=r&&r.left,l&&(r.left=e.currentStyle.left),j.left=t==="fontSize"?"1em":p,p=j.pixelLeft+"px",j.left=a,l&&(r.left=l)),p===void 0?p:p+""||"auto"});var cn=/alpha\([^)]*\)/i,Ti=/opacity\s*=\s*([^)]*)/i,Ei=/^(none|table(?!-c[ea]).+)/,Di=new RegExp("^("+tn+")(.*)$","i"),Si={position:"absolute",visibility:"hidden",display:"block"},Pn={letterSpacing:"0",fontWeight:"400"},Bn=["Webkit","O","Moz","ms"],_n=we.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=mt(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:ge.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,a){if(e&&e.nodeType!==3&&e.nodeType!==8&&e.style){var r,l,p,j=i.camelCase(t),B=e.style;if(t=i.cssProps[j]||(i.cssProps[j]=Z(j)||j),p=i.cssHooks[t]||i.cssHooks[j],n===void 0)return p&&"get"in p&&(r=p.get(e,!1,a))!==void 0?r:B[t];if(l=typeof n,l==="string"&&(r=nn.exec(n))&&r[1]&&(n=u(e,t,r),l="number"),n!=null&&n===n&&(l==="number"&&(n+=r&&r[3]||(i.cssNumber[j]?"":"px")),ge.clearCloneStyle||n!==""||t.indexOf("background")!==0||(B[t]="inherit"),!(p&&"set"in p&&(n=p.set(e,n,a))===void 0)))try{B[t]=n}catch(R){}}},css:function(e,t,n,a){var r,l,p,j=i.camelCase(t);return t=i.cssProps[j]||(i.cssProps[j]=Z(j)||j),p=i.cssHooks[t]||i.cssHooks[j],p&&"get"in p&&(l=p.get(e,!0,n)),l===void 0&&(l=mt(e,t,a)),l==="normal"&&t in Pn&&(l=Pn[t]),n===""||n?(r=parseFloat(l),n===!0||isFinite(r)?r||0:l):l}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(n,a,r){if(a)return Ei.test(i.css(n,"display"))&&n.offsetWidth===0?sn(n,Si,function(){return b(n,t,r)}):b(n,t,r)},set:function(n,a,r){var l=r&&xt(n);return J(n,a,r?C(n,t,r,ge.boxSizing&&i.css(n,"boxSizing",!1,l)==="border-box",l):0)}}}),ge.opacity||(i.cssHooks.opacity={get:function(e,t){return Ti.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,a=e.currentStyle,r=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",l=a&&a.filter||n.filter||"";n.zoom=1,(t>=1||t==="")&&i.trim(l.replace(cn,""))===""&&n.removeAttribute&&(n.removeAttribute("filter"),t===""||a&&!a.filter)||(n.filter=cn.test(l)?l.replace(cn,r):l+" "+r)}}),i.cssHooks.marginRight=V(ge.reliableMarginRight,function(e,t){if(t)return sn(e,{display:"inline-block"},mt,[e,"marginRight"])}),i.cssHooks.marginLeft=V(ge.reliableMarginLeft,function(e,t){if(t)return(parseFloat(mt(e,"marginLeft"))||(i.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-sn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(n){for(var a=0,r={},l=typeof n=="string"?n.split(" "):[n];a<4;a++)r[e+bt[a]+t]=l[a]||l[a-2]||l[0];return r}},In.test(e)||(i.cssHooks[e+t].set=J)}),i.fn.extend({css:function(e,t){return yt(this,function(n,a,r){var l,p,j={},B=0;if(i.isArray(a)){for(l=xt(n),p=a.length;B<p;B++)j[a[B]]=i.css(n,a[B],!1,l);return j}return r!==void 0?i.style(n,a,r):i.css(n,a)},e,t,arguments.length>1)},show:function(){return X(this,!0)},hide:function(){return X(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){qt(this)?i(this).show():i(this).hide()})}}),i.Tween=P,P.prototype={constructor:P,init:function(e,t,n,a,r,l){this.elem=e,this.prop=n,this.easing=r||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=l||(i.cssNumber[n]?"":"px")},cur:function(){var e=P.propHooks[this.prop];return e&&e.get?e.get(this):P.propHooks._default.get(this)},run:function(e){var t,n=P.propHooks[this.prop];return this.options.duration?this.pos=t=i.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):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=i.css(e.elem,e.prop,""),t&&t!=="auto"?t:0)},set:function(e){i.fx.step[e.prop]?i.fx.step[e.prop](e):e.elem.nodeType!==1||e.elem.style[i.cssProps[e.prop]]==null&&!i.cssHooks[e.prop]?e.elem[e.prop]=e.now:i.style(e.elem,e.prop,e.now+e.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},i.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},i.fx=P.prototype.init,i.fx.step={};var jt,Xt,Li=/^(?:toggle|show|hide)$/,Ai=/queueHooks$/;i.Animation=i.extend(he,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return u(n.elem,e,nn.exec(t),n),n}]},tweener:function(e,t){i.isFunction(e)?(t=e,e=["*"]):e=e.match(lt);for(var n,a=0,r=e.length;a<r;a++)n=e[a],he.tweeners[n]=he.tweeners[n]||[],he.tweeners[n].unshift(t)},prefilters:[le],prefilter:function(e,t){t?he.prefilters.unshift(e):he.prefilters.push(e)}}),i.speed=function(e,t,n){var a=e&&typeof e=="object"?i.extend({},e):{complete:n||!n&&t||i.isFunction(e)&&e,duration:e,easing:n&&t||t&&!i.isFunction(t)&&t};return a.duration=i.fx.off?0:typeof a.duration=="number"?a.duration:a.duration in i.fx.speeds?i.fx.speeds[a.duration]:i.fx.speeds._default,a.queue!=null&&a.queue!==!0||(a.queue="fx"),a.old=a.complete,a.complete=function(){i.isFunction(a.old)&&a.old.call(this),a.queue&&i.dequeue(this,a.queue)},a},i.fn.extend({fadeTo:function(e,t,n,a){return this.filter(qt).css("opacity",0).show().end().animate({opacity:t},e,n,a)},animate:function(e,t,n,a){var r=i.isEmptyObject(e),l=i.speed(t,n,a),p=function(){var j=he(this,i.extend({},e),l);(r||i._data(this,"finish"))&&j.stop(!0)};return p.finish=p,r||l.queue===!1?this.each(p):this.queue(l.queue,p)},stop:function(e,t,n){var a=function(r){var l=r.stop;delete r.stop,l(n)};return typeof e!="string"&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var r=!0,l=e!=null&&e+"queueHooks",p=i.timers,j=i._data(this);if(l)j[l]&&j[l].stop&&a(j[l]);else for(l in j)j[l]&&j[l].stop&&Ai.test(l)&&a(j[l]);for(l=p.length;l--;)p[l].elem!==this||e!=null&&p[l].queue!==e||(p[l].anim.stop(n),r=!1,p.splice(l,1));!r&&n||i.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=i._data(this),a=n[e+"queue"],r=n[e+"queueHooks"],l=i.timers,p=a?a.length:0;for(n.finish=!0,i.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=l.length;t--;)l[t].elem===this&&l[t].queue===e&&(l[t].anim.stop(!0),l.splice(t,1));for(t=0;t<p;t++)a[t]&&a[t].finish&&a[t].finish.call(this);delete n.finish})}}),i.each(["toggle","show","hide"],function(e,t){var n=i.fn[t];i.fn[t]=function(a,r,l){return a==null||typeof a=="boolean"?n.apply(this,arguments):this.animate(H(t,!0),a,r,l)}}),i.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){i.fn[e]=function(n,a,r){return this.animate(t,n,a,r)}}),i.timers=[],i.fx.tick=function(){var e,t=i.timers,n=0;for(jt=i.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||i.fx.stop(),jt=void 0},i.fx.timer=function(e){i.timers.push(e),e()?i.fx.start():i.timers.pop()},i.fx.interval=13,i.fx.start=function(){Xt||(Xt=oe.setInterval(i.fx.tick,i.fx.interval))},i.fx.stop=function(){oe.clearInterval(Xt),Xt=null},i.fx.speeds={slow:600,fast:200,_default:400},i.fn.delay=function(e,t){return e=i.fx&&i.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(n,a){var r=oe.setTimeout(n,e);a.stop=function(){oe.clearTimeout(r)}})},function(){var e,t=we.createElement("input"),n=we.createElement("div"),a=we.createElement("select"),r=a.appendChild(we.createElement("option"));n=we.createElement("div"),n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",ge.getSetAttribute=n.className!=="t",ge.style=/top/.test(e.getAttribute("style")),ge.hrefNormalized=e.getAttribute("href")==="/a",ge.checkOn=!!t.value,ge.optSelected=r.selected,ge.enctype=!!we.createElement("form").enctype,a.disabled=!0,ge.optDisabled=!r.disabled,t=we.createElement("input"),t.setAttribute("value",""),ge.input=t.getAttribute("value")==="",t.value="t",t.setAttribute("type","radio"),ge.radioValue=t.value==="t"}();var ji=/\r/g,Ni=/[\x20\t\r\n\f]+/g;i.fn.extend({val:function(e){var t,n,a,r=this[0];{if(arguments.length)return a=i.isFunction(e),this.each(function(l){var p;this.nodeType===1&&(p=a?e.call(this,l,i(this).val()):e,p==null?p="":typeof p=="number"?p+="":i.isArray(p)&&(p=i.map(p,function(j){return j==null?"":j+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,p,"value")!==void 0||(this.value=p))});if(r)return t=i.valHooks[r.type]||i.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(r,"value"))!==void 0?n:(n=r.value,typeof n=="string"?n.replace(ji,""):n==null?"":n)}}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t!=null?t:i.trim(i.text(e)).replace(Ni," ")}},select:{get:function(e){for(var t,n,a=e.options,r=e.selectedIndex,l=e.type==="select-one"||r<0,p=l?null:[],j=l?r+1:a.length,B=r<0?j:l?r:0;B<j;B++)if(n=a[B],(n.selected||B===r)&&(ge.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!i.nodeName(n.parentNode,"optgroup"))){if(t=i(n).val(),l)return t;p.push(t)}return p},set:function(e,t){for(var n,a,r=e.options,l=i.makeArray(t),p=r.length;p--;)if(a=r[p],i.inArray(i.valHooks.option.get(a),l)>-1)try{a.selected=n=!0}catch(j){a.scrollHeight}else a.selected=!1;return n||(e.selectedIndex=-1),r}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(e,t){if(i.isArray(t))return e.checked=i.inArray(i(e).val(),t)>-1}},ge.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Nt,zn,ct=i.expr.attrHandle,un=/^(?:checked|selected)$/i,wt=ge.getSetAttribute,Vt=ge.input;i.fn.extend({attr:function(e,t){return yt(this,i.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){i.removeAttr(this,e)})}}),i.extend({attr:function(e,t,n){var a,r,l=e.nodeType;if(l!==3&&l!==8&&l!==2)return typeof e.getAttribute=="undefined"?i.prop(e,t,n):(l===1&&i.isXMLDoc(e)||(t=t.toLowerCase(),r=i.attrHooks[t]||(i.expr.match.bool.test(t)?zn:Nt)),n!==void 0?n===null?void i.removeAttr(e,t):r&&"set"in r&&(a=r.set(e,n,t))!==void 0?a:(e.setAttribute(t,n+""),n):r&&"get"in r&&(a=r.get(e,t))!==null?a:(a=i.find.attr(e,t),a==null?void 0:a))},attrHooks:{type:{set:function(e,t){if(!ge.radioValue&&t==="radio"&&i.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,a,r=0,l=t&&t.match(lt);if(l&&e.nodeType===1)for(;n=l[r++];)a=i.propFix[n]||n,i.expr.match.bool.test(n)?Vt&&wt||!un.test(n)?e[a]=!1:e[i.camelCase("default-"+n)]=e[a]=!1:i.attr(e,n,""),e.removeAttribute(wt?n:a)}}),zn={set:function(e,t,n){return t===!1?i.removeAttr(e,n):Vt&&wt||!un.test(n)?e.setAttribute(!wt&&i.propFix[n]||n,n):e[i.camelCase("default-"+n)]=e[n]=!0,n}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ct[t]||i.find.attr;Vt&&wt||!un.test(t)?ct[t]=function(a,r,l){var p,j;return l||(j=ct[r],ct[r]=p,p=n(a,r,l)!=null?r.toLowerCase():null,ct[r]=j),p}:ct[t]=function(a,r,l){if(!l)return a[i.camelCase("default-"+r)]?r.toLowerCase():null}}),Vt&&wt||(i.attrHooks.value={set:function(e,t,n){return i.nodeName(e,"input")?void(e.defaultValue=t):Nt&&Nt.set(e,t,n)}}),wt||(Nt={set:function(e,t,n){var a=e.getAttributeNode(n);if(a||e.setAttributeNode(a=e.ownerDocument.createAttribute(n)),a.value=t+="",n==="value"||t===e.getAttribute(n))return t}},ct.id=ct.name=ct.coords=function(e,t,n){var a;if(!n)return(a=e.getAttributeNode(t))&&a.value!==""?a.value:null},i.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Nt.set},i.attrHooks.contenteditable={set:function(e,t,n){Nt.set(e,t!==""&&t,n)}},i.each(["width","height"],function(e,t){i.attrHooks[t]={set:function(n,a){if(a==="")return n.setAttribute(t,"auto"),a}}})),ge.style||(i.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Mi=/^(?:input|select|textarea|button|object)$/i,Hi=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return yt(this,i.prop,e,t,arguments.length>1)},removeProp:function(e){return e=i.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),i.extend({prop:function(e,t,n){var a,r,l=e.nodeType;if(l!==3&&l!==8&&l!==2)return l===1&&i.isXMLDoc(e)||(t=i.propFix[t]||t,r=i.propHooks[t]),n!==void 0?r&&"set"in r&&(a=r.set(e,n,t))!==void 0?a:e[t]=n:r&&"get"in r&&(a=r.get(e,t))!==null?a:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):Mi.test(e.nodeName)||Hi.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ge.hrefNormalized||i.each(["href","src"],function(e,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}}),ge.optSelected||(i.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)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this}),ge.enctype||(i.propFix.enctype="encoding");var dn=/[\t\r\n\f]/g;i.fn.extend({addClass:function(e){var t,n,a,r,l,p,j,B=0;if(i.isFunction(e))return this.each(function(R){i(this).addClass(e.call(this,R,ue(this)))});if(typeof e=="string"&&e){for(t=e.match(lt)||[];n=this[B++];)if(r=ue(n),a=n.nodeType===1&&(" "+r+" ").replace(dn," ")){for(p=0;l=t[p++];)a.indexOf(" "+l+" ")<0&&(a+=l+" ");j=i.trim(a),r!==j&&i.attr(n,"class",j)}}return this},removeClass:function(e){var t,n,a,r,l,p,j,B=0;if(i.isFunction(e))return this.each(function(R){i(this).removeClass(e.call(this,R,ue(this)))});if(!arguments.length)return this.attr("class","");if(typeof e=="string"&&e){for(t=e.match(lt)||[];n=this[B++];)if(r=ue(n),a=n.nodeType===1&&(" "+r+" ").replace(dn," ")){for(p=0;l=t[p++];)for(;a.indexOf(" "+l+" ")>-1;)a=a.replace(" "+l+" "," ");j=i.trim(a),r!==j&&i.attr(n,"class",j)}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):i.isFunction(e)?this.each(function(a){i(this).toggleClass(e.call(this,a,ue(this),t),t)}):this.each(function(){var a,r,l,p;if(n==="string")for(r=0,l=i(this),p=e.match(lt)||[];a=p[r++];)l.hasClass(a)?l.removeClass(a):l.addClass(a);else e!==void 0&&n!=="boolean"||(a=ue(this),a&&i._data(this,"__className__",a),i.attr(this,"class",a||e===!1?"":i._data(this,"__className__")||""))})},hasClass:function(e){var t,n,a=0;for(t=" "+e+" ";n=this[a++];)if(n.nodeType===1&&(" "+ue(n)+" ").replace(dn," ").indexOf(t)>-1)return!0;return!1}}),i.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){i.fn[t]=function(n,a){return arguments.length>0?this.on(t,null,n,a):this.trigger(t)}}),i.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Fi=oe.location,fn=i.now(),pn=/\?/,Ii=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(e){if(oe.JSON&&oe.JSON.parse)return oe.JSON.parse(e+"");var t,n=null,a=i.trim(e+"");return a&&!i.trim(a.replace(Ii,function(r,l,p,j){return t&&l&&(n=0),n===0?r:(t=p||l,n+=!j-!p,"")}))?Function("return "+a)():i.error("Invalid JSON: "+e)},i.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{oe.DOMParser?(n=new oe.DOMParser,t=n.parseFromString(e,"text/xml")):(t=new oe.ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch(a){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+e),t};var qi=/#.*$/,Wn=/([?&])_=[^&]*/,Pi=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bi=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,_i=/^(?:GET|HEAD)$/,zi=/^\/\//,On=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Rn={},hn={},$n="*/".concat("*"),yn=Fi.href,Mt=On.exec(yn.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Bi.test(Mt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$n,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":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Y(Y(e,i.ajaxSettings),t):Y(i.ajaxSettings,e)},ajaxPrefilter:ye(Rn),ajaxTransport:ye(hn),ajax:function(e,t){function n(Ce,Re,vt,kt){var nt,Ft,st,Ue,Qe,Xe=Re;Ge!==2&&(Ge=2,j&&oe.clearTimeout(j),R=void 0,p=kt||"",Te.readyState=Ce>0?4:0,nt=Ce>=200&&Ce<300||Ce===304,vt&&(Ue=Q(U,Te,vt)),Ue=pe(U,Ue,Te,nt),nt?(U.ifModified&&(Qe=Te.getResponseHeader("Last-Modified"),Qe&&(i.lastModified[l]=Qe),Qe=Te.getResponseHeader("etag"),Qe&&(i.etag[l]=Qe)),Ce===204||U.type==="HEAD"?Xe="nocontent":Ce===304?Xe="notmodified":(Xe=Ue.state,Ft=Ue.data,st=Ue.error,nt=!st)):(st=Xe,!Ce&&Xe||(Xe="error",Ce<0&&(Ce=0))),Te.status=Ce,Te.statusText=(Re||Xe)+"",nt?He.resolveWith(me,[Ft,Xe,Te]):He.rejectWith(me,[Te,Xe,st]),Te.statusCode(Be),Be=void 0,B&&be.trigger(nt?"ajaxSuccess":"ajaxError",[Te,U,nt?Ft:st]),qe.fireWith(me,[Te,Xe]),B&&(be.trigger("ajaxComplete",[Te,U]),--i.active||i.event.trigger("ajaxStop")))}typeof e=="object"&&(t=e,e=void 0),t=t||{};var a,r,l,p,j,B,R,de,U=i.ajaxSetup({},t),me=U.context||U,be=U.context&&(me.nodeType||me.jquery)?i(me):i.event,He=i.Deferred(),qe=i.Callbacks("once memory"),Be=U.statusCode||{},ut={},Ht={},Ge=0,dt="canceled",Te={readyState:0,getResponseHeader:function(Ce){var Re;if(Ge===2){if(!de)for(de={};Re=Pi.exec(p);)de[Re[1].toLowerCase()]=Re[2];Re=de[Ce.toLowerCase()]}return Re==null?null:Re},getAllResponseHeaders:function(){return Ge===2?p:null},setRequestHeader:function(Ce,Re){var vt=Ce.toLowerCase();return Ge||(Ce=Ht[vt]=Ht[vt]||Ce,ut[Ce]=Re),this},overrideMimeType:function(Ce){return Ge||(U.mimeType=Ce),this},statusCode:function(Ce){var Re;if(Ce)if(Ge<2)for(Re in Ce)Be[Re]=[Be[Re],Ce[Re]];else Te.always(Ce[Te.status]);return this},abort:function(Ce){var Re=Ce||dt;return R&&R.abort(Re),n(0,Re),this}};if(He.promise(Te).complete=qe.add,Te.success=Te.done,Te.error=Te.fail,U.url=((e||U.url||yn)+"").replace(qi,"").replace(zi,Mt[1]+"//"),U.type=t.method||t.type||U.method||U.type,U.dataTypes=i.trim(U.dataType||"*").toLowerCase().match(lt)||[""],U.crossDomain==null&&(a=On.exec(U.url.toLowerCase()),U.crossDomain=!(!a||a[1]===Mt[1]&&a[2]===Mt[2]&&(a[3]||(a[1]==="http:"?"80":"443"))===(Mt[3]||(Mt[1]==="http:"?"80":"443")))),U.data&&U.processData&&typeof U.data!="string"&&(U.data=i.param(U.data,U.traditional)),se(Rn,U,t,Te),Ge===2)return Te;B=i.event&&U.global,B&&i.active++==0&&i.event.trigger("ajaxStart"),U.type=U.type.toUpperCase(),U.hasContent=!_i.test(U.type),l=U.url,U.hasContent||(U.data&&(l=U.url+=(pn.test(l)?"&":"?")+U.data,delete U.data),U.cache===!1&&(U.url=Wn.test(l)?l.replace(Wn,"$1_="+fn++):l+(pn.test(l)?"&":"?")+"_="+fn++)),U.ifModified&&(i.lastModified[l]&&Te.setRequestHeader("If-Modified-Since",i.lastModified[l]),i.etag[l]&&Te.setRequestHeader("If-None-Match",i.etag[l])),(U.data&&U.hasContent&&U.contentType!==!1||t.contentType)&&Te.setRequestHeader("Content-Type",U.contentType),Te.setRequestHeader("Accept",U.dataTypes[0]&&U.accepts[U.dataTypes[0]]?U.accepts[U.dataTypes[0]]+(U.dataTypes[0]!=="*"?", "+$n+"; q=0.01":""):U.accepts["*"]);for(r in U.headers)Te.setRequestHeader(r,U.headers[r]);if(U.beforeSend&&(U.beforeSend.call(me,Te,U)===!1||Ge===2))return Te.abort();dt="abort";for(r in{success:1,error:1,complete:1})Te[r](U[r]);if(R=se(hn,U,t,Te)){if(Te.readyState=1,B&&be.trigger("ajaxSend",[Te,U]),Ge===2)return Te;U.async&&U.timeout>0&&(j=oe.setTimeout(function(){Te.abort("timeout")},U.timeout));try{Ge=1,R.send(ut,n)}catch(Ce){if(!(Ge<2))throw Ce;n(-1,Ce)}}else n(-1,"No Transport");return Te},getJSON:function(e,t,n){return i.get(e,t,n,"json")},getScript:function(e,t){return i.get(e,void 0,t,"script")}}),i.each(["get","post"],function(e,t){i[t]=function(n,a,r,l){return i.isFunction(a)&&(l=l||r,r=a,a=void 0),i.ajax(i.extend({url:n,type:t,dataType:l,data:a,success:r},i.isPlainObject(n)&&n))}}),i._evalUrl=function(e){return i.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(e){if(i.isFunction(e))return this.each(function(n){i(this).wrapAll(e.call(this,n))});if(this[0]){var t=i(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(e){return i.isFunction(e)?this.each(function(t){i(this).wrapInner(e.call(this,t))}):this.each(function(){var t=i(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=i.isFunction(e);return this.each(function(n){i(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}}),i.expr.filters.hidden=function(e){return ge.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:ke(e)},i.expr.filters.visible=function(e){return!i.expr.filters.hidden(e)};var Wi=/%20/g,Oi=/\[\]$/,Yn=/\r?\n/g,Ri=/^(?:submit|button|image|reset|file)$/i,$i=/^(?:input|select|textarea|keygen)/i;i.param=function(e,t){var n,a=[],r=function(l,p){p=i.isFunction(p)?p():p==null?"":p,a[a.length]=encodeURIComponent(l)+"="+encodeURIComponent(p)};if(t===void 0&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){r(this.name,this.value)});else for(n in e)je(n,e[n],t,r);return a.join("&").replace(Wi,"+")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&$i.test(this.nodeName)&&!Ri.test(e)&&(this.checked||!an.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:i.isArray(n)?i.map(n,function(a){return{name:t.name,value:a.replace(Yn,`\r
`)}}):{name:t.name,value:n.replace(Yn,`\r
`)}}).get()}}),i.ajaxSettings.xhr=oe.ActiveXObject!==void 0?function(){return this.isLocal?Ee():we.documentMode>8?Me():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Me()||Ee()}:Me;var Yi=0,Jt={},Bt=i.ajaxSettings.xhr();oe.attachEvent&&oe.attachEvent("onunload",function(){for(var e in Jt)Jt[e](void 0,!0)}),ge.cors=!!Bt&&"withCredentials"in Bt,Bt=ge.ajax=!!Bt,Bt&&i.ajaxTransport(function(e){if(!e.crossDomain||ge.cors){var t;return{send:function(n,a){var r,l=e.xhr(),p=++Yi;if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)l[r]=e.xhrFields[r];e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)n[r]!==void 0&&l.setRequestHeader(r,n[r]+"");l.send(e.hasContent&&e.data||null),t=function(j,B){var R,de,U;if(t&&(B||l.readyState===4))if(delete Jt[p],t=void 0,l.onreadystatechange=i.noop,B)l.readyState!==4&&l.abort();else{U={},R=l.status,typeof l.responseText=="string"&&(U.text=l.responseText);try{de=l.statusText}catch(me){de=""}R||!e.isLocal||e.crossDomain?R===1223&&(R=204):R=U.text?200:404}U&&a(R,de,U,l.getAllResponseHeaders())},e.async?l.readyState===4?oe.setTimeout(t):l.onreadystatechange=Jt[p]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),i.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 i.globalEval(e),e}}}),i.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),i.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=we.head||i("head")[0]||we.documentElement;return{send:function(a,r){t=we.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(l,p){(p||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,p||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Xn=[],mn=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xn.pop()||i.expando+"_"+fn++;return this[e]=!0,e}}),i.ajaxPrefilter("json jsonp",function(e,t,n){var a,r,l,p=e.jsonp!==!1&&(mn.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&mn.test(e.data)&&"data");if(p||e.dataTypes[0]==="jsonp")return a=e.jsonpCallback=i.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,p?e[p]=e[p].replace(mn,"$1"+a):e.jsonp!==!1&&(e.url+=(pn.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return l||i.error(a+" was not called"),l[0]},e.dataTypes[0]="json",r=oe[a],oe[a]=function(){l=arguments},n.always(function(){r===void 0?i(oe).removeProp(a):oe[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Xn.push(a)),l&&i.isFunction(r)&&r(l[0]),l=r=void 0}),"script"}),i.parseHTML=function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||we;var a=En.exec(e),r=!n&&[];return a?[t.createElement(a[1])]:(a=k([e],t,r),r&&r.length&&i(r).remove(),i.merge([],a.childNodes))};var Vn=i.fn.load;return i.fn.load=function(e,t,n){if(typeof e!="string"&&Vn)return Vn.apply(this,arguments);var a,r,l,p=this,j=e.indexOf(" ");return j>-1&&(a=i.trim(e.slice(j,e.length)),e=e.slice(0,j)),i.isFunction(t)?(n=t,t=void 0):t&&typeof t=="object"&&(r="POST"),p.length>0&&i.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(B){l=arguments,p.html(a?i("<div>").append(i.parseHTML(B)).find(a):B)}).always(n&&function(B,R){p.each(function(){n.apply(this,l||[B.responseText,R,B])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(e){return i.grep(i.timers,function(t){return e===t.elem}).length},i.offset={setOffset:function(e,t,n){var a,r,l,p,j,B,R,de=i.css(e,"position"),U=i(e),me={};de==="static"&&(e.style.position="relative"),j=U.offset(),l=i.css(e,"top"),B=i.css(e,"left"),R=(de==="absolute"||de==="fixed")&&i.inArray("auto",[l,B])>-1,R?(a=U.position(),p=a.top,r=a.left):(p=parseFloat(l)||0,r=parseFloat(B)||0),i.isFunction(t)&&(t=t.call(e,n,i.extend({},j))),t.top!=null&&(me.top=t.top-j.top+p),t.left!=null&&(me.left=t.left-j.left+r),"using"in t?t.using.call(e,me):U.css(me)}},i.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(p){i.offset.setOffset(this,e,p)});var t,n,a={top:0,left:0},r=this[0],l=r&&r.ownerDocument;if(l)return t=l.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!="undefined"&&(a=r.getBoundingClientRect()),n=Ye(l),{top:a.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:a.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):a},position:function(){if(this[0]){var e,t,n={top:0,left:0},a=this[0];return i.css(a,"position")==="fixed"?t=a.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i.nodeName(e[0],"html")||(n=e.offset()),n.top+=i.css(e[0],"borderTopWidth",!0),n.left+=i.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-i.css(a,"marginTop",!0),left:t.left-n.left-i.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!i.nodeName(e,"html")&&i.css(e,"position")==="static";)e=e.offsetParent;return e||qn})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);i.fn[e]=function(a){return yt(this,function(r,l,p){var j=Ye(r);return p===void 0?j?t in j?j[t]:j.document.documentElement[l]:r[l]:void(j?j.scrollTo(n?i(j).scrollLeft():p,n?p:i(j).scrollTop()):r[l]=p)},e,a,arguments.length,null)}}),i.each(["top","left"],function(e,t){i.cssHooks[t]=V(ge.pixelPosition,function(n,a){if(a)return a=mt(n,t),Yt.test(a)?i(n).position()[t]+"px":a})}),i.each({Height:"height",Width:"width"},function(e,t){i.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,a){i.fn[a]=function(r,l){var p=arguments.length&&(n||typeof r!="boolean"),j=n||(r===!0||l===!0?"margin":"border");return yt(this,function(B,R,de){var U;return i.isWindow(B)?B.document.documentElement["client"+e]:B.nodeType===9?(U=B.documentElement,Math.max(B.body["scroll"+e],U["scroll"+e],B.body["offset"+e],U["offset"+e],U["client"+e])):de===void 0?i.css(B,R,j):i.style(B,R,de,j)},t,p?r:void 0,p,null)}})}),i.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,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,layui.define(function(e){layui.$=i,e("jquery",i)}),i}),function(oe,x){"use strict";var _,O,ie=oe.layui&&layui.define,G={getPath:function(){var y=document.currentScript?document.currentScript.src:function(){for(var u,h=document.scripts,c=h.length-1,m=c;m>0;m--)if(h[m].readyState==="interactive"){u=h[m].src;break}return u||h[c].src}();return y.substring(0,y.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"],getStyle:function(y,u){var h=y.currentStyle?y.currentStyle:oe.getComputedStyle(y,null);return h[h.getPropertyValue?"getPropertyValue":"getAttribute"](u)},link:function(y,u,h){if(A.path){var c=document.getElementsByTagName("head")[0],m=document.createElement("link");typeof u=="string"&&(h=u);var D=(h||y).replace(/\.|\//g,""),k="layuicss-"+D,q=0;m.rel="stylesheet",m.href=A.path+y,m.id=k,document.getElementById(k)||c.appendChild(m),typeof u=="function"&&function z(){return++q>80?oe.console&&console.error("layer.css: Invalid"):void(parseInt(G.getStyle(document.getElementById(k),"width"))===1989?u():setTimeout(z,100))}()}}},A={v:"3.1.1",ie:function(){var y=navigator.userAgent.toLowerCase();return!!(oe.ActiveXObject||"ActiveXObject"in oe)&&((y.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:oe.layer&&oe.layer.v?1e5:0,path:G.getPath,config:function(y,u){return y=y||{},A.cache=G.config=_.extend({},G.config,y),A.path=G.config.path||A.path,typeof y.extend=="string"&&(y.extend=[y.extend]),G.config.path&&A.ready(),y.extend?(ie?layui.addcss("modules/layer/"+y.extend):G.link("theme/"+y.extend),this):this},ready:function(y){var u="layer",h="",c=(ie?"modules/layer/":"theme/")+"default/layer.css?v="+A.v+h;return ie?layui.addcss(c,y,u):G.link(c,y,u),this},alert:function(y,u,h){var c=typeof u=="function";return c&&(h=u),A.open(_.extend({content:y,yes:h},c?{}:u))},confirm:function(y,u,h,c){var m=typeof u=="function";return m&&(c=h,h=u),A.open(_.extend({content:y,btn:G.btn,yes:h,btn2:c},m?{}:u))},msg:function(y,u,h){var c=typeof u=="function",m=G.config.skin,D=(m?m+" "+m+"-msg":"")||"layui-layer-msg",k=v.anim.length-1;return c&&(h=u),A.open(_.extend({content:y,time:3e3,shade:!1,skin:D,title:!1,closeBtn:!1,btn:!1,resize:!1,end:h},c&&!G.config.skin?{skin:D+" layui-layer-hui",anim:k}:function(){return u=u||{},(u.icon===-1||u.icon===x&&!G.config.skin)&&(u.skin=D+" "+(u.skin||"layui-layer-hui")),u}()))},load:function(y,u){return A.open(_.extend({type:3,icon:y||0,resize:!1,shade:.01},u))},tips:function(y,u,h){return A.open(_.extend({type:4,content:[y,u],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},h))}},$=function(y){var u=this;u.index=++A.index,u.config=_.extend({},u.config,G.config,y),document.body?u.creat():setTimeout(function(){u.creat()},30)};$.pt=$.prototype;var v=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];v.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],$.pt.config={type:0,shade:.3,fixed:!0,move:v[1],title:"&#x4FE1;&#x606F;",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},$.pt.vessel=function(y,u){var h=this,c=h.index,m=h.config,D=m.zIndex+c,k=typeof m.title=="object",q=m.maxmin&&(m.type===1||m.type===2),z=m.title?'<div class="layui-layer-title" style="'+(k?m.title[1]:"")+'">'+(k?m.title[0]:m.title)+"</div>":"";return m.zIndex=D,u([m.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+c+'" times="'+c+'" style="'+("z-index:"+(D-1)+"; ")+'"></div>':"",'<div class="'+v[0]+(" layui-layer-"+G.type[m.type])+(m.type!=0&&m.type!=2||m.shade?"":" layui-layer-border")+" "+(m.skin||"")+'" id="'+v[0]+c+'" type="'+G.type[m.type]+'" times="'+c+'" showtime="'+m.time+'" conType="'+(y?"object":"string")+'" style="z-index: '+D+"; width:"+m.area[0]+";height:"+m.area[1]+(m.fixed?"":";position:absolute;")+'">'+(y&&m.type!=2?"":z)+'<div id="'+(m.id||"")+'" class="layui-layer-content'+(m.type==0&&m.icon!==-1?" layui-layer-padding":"")+(m.type==3?" layui-layer-loading"+m.icon:"")+'">'+(m.type==0&&m.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+m.icon+'"></i>':"")+(m.type==1&&y?"":m.content||"")+'</div><span class="layui-layer-setwin">'+function(){var M=q?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return m.closeBtn&&(M+='<a class="layui-layer-ico '+v[7]+" "+v[7]+(m.title?m.closeBtn:m.type==4?"1":"2")+'" href="javascript:;"></a>'),M}()+"</span>"+(m.btn?function(){var M="";typeof m.btn=="string"&&(m.btn=[m.btn]);for(var E=0,ee=m.btn.length;E<ee;E++)M+='<a class="'+v[6]+E+'">'+m.btn[E]+"</a>";return'<div class="'+v[6]+" layui-layer-btn-"+(m.btnAlign||"")+'">'+M+"</div>"}():"")+(m.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],z,_('<div class="layui-layer-move"></div>')),h},$.pt.creat=function(){var y=this,u=y.config,h=y.index,c=u.content,m=typeof c=="object",D=_("body");if(!u.id||!_("#"+u.id)[0]){switch(typeof u.area=="string"&&(u.area=u.area==="auto"?["",""]:[u.area,""]),u.shift&&(u.anim=u.shift),A.ie==6&&(u.fixed=!1),u.type){case 0:u.btn="btn"in u?u.btn:G.btn[0],A.closeAll("dialog");break;case 2:var c=u.content=m?u.content:[u.content||"","auto"];u.content='<iframe scrolling="'+(u.content[1]||"auto")+'" allowtransparency="true" id="'+v[4]+h+'" name="'+v[4]+h+`" onload="this.className='';" class="layui-layer-load" frameborder="0" src="`+u.content[0]+'"></iframe>';break;case 3:delete u.title,delete u.closeBtn,u.icon===-1&&u.icon,A.closeAll("loading");break;case 4:m||(u.content=[u.content,"body"]),u.follow=u.content[1],u.content=u.content[0]+'<i class="layui-layer-TipsG"></i>',delete u.title,u.tips=typeof u.tips=="object"?u.tips:[u.tips,!0],u.tipsMore||A.closeAll("tips")}if(y.vessel(m,function(q,z,M){D.append(q[0]),m?function(){u.type==2||u.type==4?function(){_("body").append(q[1])}():function(){c.parents("."+v[0])[0]||(c.data("display",c.css("display")).show().addClass("layui-layer-wrap").wrap(q[1]),_("#"+v[0]+h).find("."+v[5]).before(z))}()}():D.append(q[1]),_(".layui-layer-move")[0]||D.append(G.moveElem=M),y.layero=_("#"+v[0]+h),u.scrollbar||v.html.css("overflow","hidden").attr("layer-full",h)}).auto(h),_("#layui-layer-shade"+y.index).css({"background-color":u.shade[1]||"#000",opacity:u.shade[0]||u.shade}),u.type==2&&A.ie==6&&y.layero.find("iframe").attr("src",c[0]),u.type==4?y.tips():y.offset(),u.fixed&&O.on("resize",function(){y.offset(),(/^\d+%$/.test(u.area[0])||/^\d+%$/.test(u.area[1]))&&y.auto(h),u.type==4&&y.tips()}),u.time<=0||setTimeout(function(){A.close(y.index)},u.time),y.move().callback(),v.anim[u.anim]){var k="layer-anim "+v.anim[u.anim];y.layero.addClass(k).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){_(this).removeClass(k)})}u.isOutAnim&&y.layero.data("isOutAnim",!0)}},$.pt.auto=function(y){var u=this,h=u.config,c=_("#"+v[0]+y);h.area[0]===""&&h.maxWidth>0&&(A.ie&&A.ie<8&&h.btn&&c.width(c.innerWidth()),c.outerWidth()>h.maxWidth&&c.width(h.maxWidth));var m=[c.innerWidth(),c.innerHeight()],D=c.find(v[1]).outerHeight()||0,k=c.find("."+v[6]).outerHeight()||0,q=function(z){z=c.find(z),z.height(m[1]-D-k-2*(0|parseFloat(z.css("padding-top"))))};switch(h.type){case 2:q("iframe");break;default:h.area[1]===""?h.maxHeight>0&&c.outerHeight()>h.maxHeight?(m[1]=h.maxHeight,q("."+v[5])):h.fixed&&m[1]>=O.height()&&(m[1]=O.height(),q("."+v[5])):q("."+v[5])}return u},$.pt.offset=function(){var y=this,u=y.config,h=y.layero,c=[h.outerWidth(),h.outerHeight()],m=typeof u.offset=="object";y.offsetTop=(O.height()-c[1])/2,y.offsetLeft=(O.width()-c[0])/2,m?(y.offsetTop=u.offset[0],y.offsetLeft=u.offset[1]||y.offsetLeft):u.offset!=="auto"&&(u.offset==="t"?y.offsetTop=0:u.offset==="r"?y.offsetLeft=O.width()-c[0]:u.offset==="b"?y.offsetTop=O.height()-c[1]:u.offset==="l"?y.offsetLeft=0:u.offset==="lt"?(y.offsetTop=0,y.offsetLeft=0):u.offset==="lb"?(y.offsetTop=O.height()-c[1],y.offsetLeft=0):u.offset==="rt"?(y.offsetTop=0,y.offsetLeft=O.width()-c[0]):u.offset==="rb"?(y.offsetTop=O.height()-c[1],y.offsetLeft=O.width()-c[0]):y.offsetTop=u.offset),u.fixed||(y.offsetTop=/%$/.test(y.offsetTop)?O.height()*parseFloat(y.offsetTop)/100:parseFloat(y.offsetTop),y.offsetLeft=/%$/.test(y.offsetLeft)?O.width()*parseFloat(y.offsetLeft)/100:parseFloat(y.offsetLeft),y.offsetTop+=O.scrollTop(),y.offsetLeft+=O.scrollLeft()),h.attr("minLeft")&&(y.offsetTop=O.height()-(h.find(v[1]).outerHeight()||0),y.offsetLeft=h.css("left")),h.css({top:y.offsetTop,left:y.offsetLeft})},$.pt.tips=function(){var y=this,u=y.config,h=y.layero,c=[h.outerWidth(),h.outerHeight()],m=_(u.follow);m[0]||(m=_("body"));var D={width:m.outerWidth(),height:m.outerHeight(),top:m.offset().top,left:m.offset().left},k=h.find(".layui-layer-TipsG"),q=u.tips[0];u.tips[1]||k.remove(),D.autoLeft=function(){D.left+c[0]-O.width()>0?(D.tipLeft=D.left+D.width-c[0],k.css({right:12,left:"auto"})):D.tipLeft=D.left},D.where=[function(){D.autoLeft(),D.tipTop=D.top-c[1]-10,k.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",u.tips[1])},function(){D.tipLeft=D.left+D.width+10,D.tipTop=D.top,k.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",u.tips[1])},function(){D.autoLeft(),D.tipTop=D.top+D.height+10,k.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",u.tips[1])},function(){D.tipLeft=D.left-c[0]-10,D.tipTop=D.top,k.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",u.tips[1])}],D.where[q-1](),q===1?D.top-(O.scrollTop()+c[1]+16)<0&&D.where[2]():q===2?O.width()-(D.left+D.width+c[0]+16)>0||D.where[3]():q===3?D.top-O.scrollTop()+D.height+c[1]+16-O.height()>0&&D.where[0]():q===4&&c[0]+16-D.left>0&&D.where[1](),h.find("."+v[5]).css({"background-color":u.tips[1],"padding-right":u.closeBtn?"30px":""}),h.css({left:D.tipLeft-(u.fixed?O.scrollLeft():0),top:D.tipTop-(u.fixed?O.scrollTop():0)})},$.pt.move=function(){var y=this,u=y.config,h=_(document),c=y.layero,m=c.find(u.move),D=c.find(".layui-layer-resize"),k={};return u.move&&m.css("cursor","move"),m.on("mousedown",function(q){q.preventDefault(),u.move&&(k.moveStart=!0,k.offset=[q.clientX-parseFloat(c.css("left")),q.clientY-parseFloat(c.css("top"))],G.moveElem.css("cursor","move").show())}),D.on("mousedown",function(q){q.preventDefault(),k.resizeStart=!0,k.offset=[q.clientX,q.clientY],k.area=[c.outerWidth(),c.outerHeight()],G.moveElem.css("cursor","se-resize").show()}),h.on("mousemove",function(q){if(k.moveStart){var z=q.clientX-k.offset[0],M=q.clientY-k.offset[1],E=c.css("position")==="fixed";if(q.preventDefault(),k.stX=E?0:O.scrollLeft(),k.stY=E?0:O.scrollTop(),!u.moveOut){var ee=O.width()-c.outerWidth()+k.stX,s=O.height()-c.outerHeight()+k.stY;z<k.stX&&(z=k.stX),z>ee&&(z=ee),M<k.stY&&(M=k.stY),M>s&&(M=s)}c.css({left:z,top:M})}if(u.resize&&k.resizeStart){var z=q.clientX-k.offset[0],M=q.clientY-k.offset[1];q.preventDefault(),A.style(y.index,{width:k.area[0]+z,height:k.area[1]+M}),k.isResize=!0,u.resizing&&u.resizing(c)}}).on("mouseup",function(q){k.moveStart&&(delete k.moveStart,G.moveElem.hide(),u.moveEnd&&u.moveEnd(c)),k.resizeStart&&(delete k.resizeStart,G.moveElem.hide())}),y},$.pt.callback=function(){function y(){var m=c.cancel&&c.cancel(u.index,h);m===!1||A.close(u.index)}var u=this,h=u.layero,c=u.config;u.openLayer(),c.success&&(c.type==2?h.find("iframe").on("load",function(){c.success(h,u.index)}):c.success(h,u.index)),A.ie==6&&u.IE6(h),h.find("."+v[6]).children("a").on("click",function(){var m=_(this).index();if(m===0)c.yes?c.yes(u.index,h):c.btn1?c.btn1(u.index,h):A.close(u.index);else{var D=c["btn"+(m+1)]&&c["btn"+(m+1)](u.index,h);D===!1||A.close(u.index)}}),h.find("."+v[7]).on("click",y),c.shadeClose&&_("#layui-layer-shade"+u.index).on("click",function(){A.close(u.index)}),h.find(".layui-layer-min").on("click",function(){var m=c.min&&c.min(h);m===!1||A.min(u.index,c)}),h.find(".layui-layer-max").on("click",function(){_(this).hasClass("layui-layer-maxmin")?(A.restore(u.index),c.restore&&c.restore(h)):(A.full(u.index,c),setTimeout(function(){c.full&&c.full(h)},100))}),c.end&&(G.end[u.index]=c.end)},G.reselect=function(){_.each(_("select"),function(y,u){var h=_(this);h.parents("."+v[0])[0]||h.attr("layer")==1&&_("."+v[0]).length<1&&h.removeAttr("layer").show(),h=null})},$.pt.IE6=function(y){_("select").each(function(u,h){var c=_(this);c.parents("."+v[0])[0]||c.css("display")==="none"||c.attr({layer:"1"}).hide(),c=null})},$.pt.openLayer=function(){var y=this;A.zIndex=y.config.zIndex,A.setTop=function(u){var h=function(){A.zIndex++,u.css("z-index",A.zIndex+1)};return A.zIndex=parseInt(u[0].style.zIndex),u.on("mousedown",h),A.zIndex}},G.record=function(y){var u=[y.width(),y.height(),y.position().top,y.position().left+parseFloat(y.css("margin-left"))];y.find(".layui-layer-max").addClass("layui-layer-maxmin"),y.attr({area:u})},G.rescollbar=function(y){v.html.attr("layer-full")==y&&(v.html[0].style.removeProperty?v.html[0].style.removeProperty("overflow"):v.html[0].style.removeAttribute("overflow"),v.html.removeAttr("layer-full"))},oe.layer=A,A.getChildFrame=function(y,u){return u=u||_("."+v[4]).attr("times"),_("#"+v[0]+u).find("iframe").contents().find(y)},A.getFrameIndex=function(y){return _("#"+y).parents("."+v[4]).attr("times")},A.iframeAuto=function(y){if(y){var u=A.getChildFrame("html",y).outerHeight(),h=_("#"+v[0]+y),c=h.find(v[1]).outerHeight()||0,m=h.find("."+v[6]).outerHeight()||0;h.css({height:u+c+m}),h.find("iframe").css({height:u})}},A.iframeSrc=function(y,u){_("#"+v[0]+y).find("iframe").attr("src",u)},A.style=function(y,u,h){var c=_("#"+v[0]+y),m=c.find(".layui-layer-content"),D=c.attr("type"),k=c.find(v[1]).outerHeight()||0,q=c.find("."+v[6]).outerHeight()||0;c.attr("minLeft"),D!==G.type[3]&&D!==G.type[4]&&(h||(parseFloat(u.width)<=260&&(u.width=260),parseFloat(u.height)-k-q<=64&&(u.height=64+k+q)),c.css(u),q=c.find("."+v[6]).outerHeight(),D===G.type[2]?c.find("iframe").css({height:parseFloat(u.height)-k-q}):m.css({height:parseFloat(u.height)-k-q-parseFloat(m.css("padding-top"))-parseFloat(m.css("padding-bottom"))}))},A.min=function(y,u){var h=_("#"+v[0]+y),c=h.find(v[1]).outerHeight()||0,m=h.attr("minLeft")||181*G.minIndex+"px",D=h.css("position");G.record(h),G.minLeft[0]&&(m=G.minLeft[0],G.minLeft.shift()),h.attr("position",D),A.style(y,{width:180,height:c,left:m,top:O.height()-c,position:"fixed",overflow:"hidden"},!0),h.find(".layui-layer-min").hide(),h.attr("type")==="page"&&h.find(v[4]).hide(),G.rescollbar(y),h.attr("minLeft")||G.minIndex++,h.attr("minLeft",m)},A.restore=function(y){var u=_("#"+v[0]+y),h=u.attr("area").split(",");u.attr("type"),A.style(y,{width:parseFloat(h[0]),height:parseFloat(h[1]),top:parseFloat(h[2]),left:parseFloat(h[3]),position:u.attr("position"),overflow:"visible"},!0),u.find(".layui-layer-max").removeClass("layui-layer-maxmin"),u.find(".layui-layer-min").show(),u.attr("type")==="page"&&u.find(v[4]).show(),G.rescollbar(y)},A.full=function(y){var u,h=_("#"+v[0]+y);G.record(h),v.html.attr("layer-full")||v.html.css("overflow","hidden").attr("layer-full",y),clearTimeout(u),u=setTimeout(function(){var c=h.css("position")==="fixed";A.style(y,{top:c?0:O.scrollTop(),left:c?0:O.scrollLeft(),width:O.width(),height:O.height()},!0),h.find(".layui-layer-min").hide()},100)},A.title=function(y,u){var h=_("#"+v[0]+(u||A.index)).find(v[1]);h.html(y)},A.close=function(y){var u=_("#"+v[0]+y),h=u.attr("type"),c="layer-anim-close";if(u[0]){var m="layui-layer-wrap",D=function(){if(h===G.type[1]&&u.attr("conType")==="object"){u.children(":not(."+v[5]+")").remove();for(var k=u.find("."+m),q=0;q<2;q++)k.unwrap();k.css("display",k.data("display")).removeClass(m)}else{if(h===G.type[2])try{var z=_("#"+v[4]+y)[0];z.contentWindow.document.write(""),z.contentWindow.close(),u.find("."+v[5])[0].removeChild(z)}catch(M){}u[0].innerHTML="",u.remove()}typeof G.end[y]=="function"&&G.end[y](),delete G.end[y]};u.data("isOutAnim")&&u.addClass("layer-anim "+c),_("#layui-layer-moves, #layui-layer-shade"+y).remove(),A.ie==6&&G.reselect(),G.rescollbar(y),u.attr("minLeft")&&(G.minIndex--,G.minLeft.push(u.attr("minLeft"))),A.ie&&A.ie<10||!u.data("isOutAnim")?D():setTimeout(function(){D()},200)}},A.closeAll=function(y){_.each(_("."+v[0]),function(){var u=_(this),h=y?u.attr("type")===y:1;h&&A.close(u.attr("times")),h=null})};var L=A.cache||{},F=function(y){return L.skin?" "+L.skin+" "+L.skin+"-"+y:""};A.prompt=function(y,u){var h="";if(y=y||{},typeof y=="function"&&(u=y),y.area){var c=y.area;h='style="width: '+c[0]+"; height: "+c[1]+';"',delete y.area}var m,D=y.formType==2?'<textarea class="layui-layer-input"'+h+"></textarea>":function(){return'<input type="'+(y.formType==1?"password":"text")+'" class="layui-layer-input">'}(),k=y.success;return delete y.success,A.open(_.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:D,skin:"layui-layer-prompt"+F("prompt"),maxWidth:O.width(),success:function(q){m=q.find(".layui-layer-input"),m.val(y.value||"").focus(),typeof k=="function"&&k(q)},resize:!1,yes:function(q){var z=m.val();z===""?m.focus():z.length>(y.maxlength||500)?A.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(y.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",m,{tips:1}):u&&u(z,q,m)}},y))},A.tab=function(y){y=y||{};var u=y.tab||{},h="layui-this",c=y.success;return delete y.success,A.open(_.extend({type:1,skin:"layui-layer-tab"+F("tab"),resize:!1,title:function(){var m=u.length,D=1,k="";if(m>0)for(k='<span class="'+h+'">'+u[0].title+"</span>";D<m;D++)k+="<span>"+u[D].title+"</span>";return k}(),content:'<ul class="layui-layer-tabmain">'+function(){var m=u.length,D=1,k="";if(m>0)for(k='<li class="layui-layer-tabli '+h+'">'+(u[0].content||"no content")+"</li>";D<m;D++)k+='<li class="layui-layer-tabli">'+(u[D].content||"no content")+"</li>";return k}()+"</ul>",success:function(m){var D=m.find(".layui-layer-title").children(),k=m.find(".layui-layer-tabmain").children();D.on("mousedown",function(q){q.stopPropagation?q.stopPropagation():q.cancelBubble=!0;var z=_(this),M=z.index();z.addClass(h).siblings().removeClass(h),k.eq(M).show().siblings().hide(),typeof y.change=="function"&&y.change(M)}),typeof c=="function"&&c(m)}},y))},A.photos=function(y,u,h){function c(s,o,d){var g=new Image;return g.src=s,g.complete?o(g):(g.onload=function(){g.onload=null,o(g)},void(g.onerror=function(f){g.onerror=null,d(f)}))}var m={};if(y=y||{},y.photos){var D=y.photos.constructor===Object,k=D?y.photos:{},q=k.data||[],z=k.start||0;m.imgIndex=(0|z)+1,y.img=y.img||"img";var M=y.success;if(delete y.success,D){if(q.length===0)return A.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;")}else{var E=_(y.photos),ee=function(){q=[],E.find(y.img).each(function(s){var o=_(this);o.attr("layer-index",s),q.push({alt:o.attr("alt"),pid:o.attr("layer-pid"),src:o.attr("layer-src")||o.attr("src"),thumb:o.attr("src")})})};if(ee(),q.length===0||(u||E.on("click",y.img,function(){var s=_(this),o=s.attr("layer-index");A.photos(_.extend(y,{photos:{start:o,data:q,tab:y.tab},full:y.full}),!0),ee()}),!u))return}m.imgprev=function(s){m.imgIndex--,m.imgIndex<1&&(m.imgIndex=q.length),m.tabimg(s)},m.imgnext=function(s,o){m.imgIndex++,m.imgIndex>q.length&&(m.imgIndex=1,o)||m.tabimg(s)},m.keyup=function(s){if(!m.end){var o=s.keyCode;s.preventDefault(),o===37?m.imgprev(!0):o===39?m.imgnext(!0):o===27&&A.close(m.index)}},m.tabimg=function(s){if(!(q.length<=1))return k.start=m.imgIndex-1,A.close(m.index),A.photos(y,!0,s)},m.event=function(){m.bigimg.hover(function(){m.imgsee.show()},function(){m.imgsee.hide()}),m.bigimg.find(".layui-layer-imgprev").on("click",function(s){s.preventDefault(),m.imgprev()}),m.bigimg.find(".layui-layer-imgnext").on("click",function(s){s.preventDefault(),m.imgnext()}),_(document).on("keyup",m.keyup)},m.loadi=A.load(1,{shade:!("shade"in y)&&.9,scrollbar:!1}),c(q[z].src,function(s){A.close(m.loadi),m.index=A.open(_.extend({type:1,id:"layui-layer-photos",area:function(){var o=[s.width,s.height],d=[_(oe).width()-100,_(oe).height()-100];if(!y.full&&(o[0]>d[0]||o[1]>d[1])){var g=[o[0]/d[0],o[1]/d[1]];g[0]>g[1]?(o[0]=o[0]/g[0],o[1]=o[1]/g[0]):g[0]<g[1]&&(o[0]=o[0]/g[1],o[1]=o[1]/g[1])}return[o[0]+"px",o[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+F("photos"),content:'<div class="layui-layer-phimg"><img src="'+q[z].src+'" alt="'+(q[z].alt||"")+'" layer-pid="'+q[z].pid+'"><div class="layui-layer-imgsee">'+(q.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(h?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(q[z].alt||"")+"</a><em>"+m.imgIndex+"/"+q.length+"</em></span></div></div></div>",success:function(o,d){m.bigimg=o.find(".layui-layer-phimg"),m.imgsee=o.find(".layui-layer-imguide,.layui-layer-imgbar"),m.event(o),y.tab&&y.tab(q[z],o),typeof M=="function"&&M(o)},end:function(){m.end=!0,_(document).off("keyup",m.keyup)}},y))},function(){A.close(m.loadi),A.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3e4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){q.length>1&&m.imgnext(!0,!0)}})})}},G.run=function(y){_=y,O=_(oe),v.html=_("html"),A.open=function(u){var h=new $(u);return h.index}},oe.layui&&layui.define?(A.ready(),layui.define("jquery",function(y){A.path=layui.cache.dir,G.run(layui.$),oe.layer=A,y("layer",A)})):typeof define=="function"&&define.amd?define(["jquery"],function(){return G.run(oe.jQuery),A}):function(){G.run(oe.jQuery),A.ready()}()}(window),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=(layui.hint(),layui.device()),O="element",ie="layui-this",G="layui-show",A=function(){this.config={}};A.prototype.set=function(q){var z=this;return x.extend(!0,z.config,q),z},A.prototype.on=function(q,z){return layui.onevent.call(this,O,q,z)},A.prototype.tabAdd=function(q,z){var M=".layui-tab-title",E=x(".layui-tab[lay-filter="+q+"]"),ee=E.children(M),s=ee.children(".layui-tab-bar"),o=E.children(".layui-tab-content"),d='<li lay-id="'+(z.id||"")+'"'+(z.attr?' lay-attr="'+z.attr+'"':"")+">"+(z.title||"unnaming")+"</li>";return s[0]?s.before(d):ee.append(d),o.append('<div class="layui-tab-item">'+(z.content||"")+"</div>"),c.hideTabMore(!0),c.tabAuto(),this},A.prototype.tabDelete=function(q,z){var M=".layui-tab-title",E=x(".layui-tab[lay-filter="+q+"]"),ee=E.children(M),s=ee.find('>li[lay-id="'+z+'"]');return c.tabDelete(null,s),this},A.prototype.tabChange=function(q,z){var M=".layui-tab-title",E=x(".layui-tab[lay-filter="+q+"]"),ee=E.children(M),s=ee.find('>li[lay-id="'+z+'"]');return c.tabClick.call(s[0],null,null,s),this},A.prototype.tab=function(q){q=q||{},D.on("click",q.headerElem,function(z){var M=x(this).index();c.tabClick.call(this,z,M,null,q)})},A.prototype.progress=function(q,z){var M="layui-progress",E=x("."+M+"[lay-filter="+q+"]"),ee=E.find("."+M+"-bar"),s=ee.find("."+M+"-text");return ee.css("width",z),s.text(z),this};var $=".layui-nav",v="layui-nav-item",L="layui-nav-bar",F="layui-nav-tree",y="layui-nav-child",u="layui-nav-more",h="layui-anim layui-anim-upbit",c={tabClick:function(q,z,M,E){E=E||{};var ee=M||x(this),z=z||ee.parent().children("li").index(ee),s=E.headerElem?ee.parent():ee.parents(".layui-tab").eq(0),o=E.bodyElem?x(E.bodyElem):s.children(".layui-tab-content").children(".layui-tab-item"),d=ee.find("a"),g=s.attr("lay-filter");d.attr("href")!=="javascript:;"&&d.attr("target")==="_blank"||(ee.addClass(ie).siblings().removeClass(ie),o.eq(z).addClass(G).siblings().removeClass(G)),layui.event.call(this,O,"tab("+g+")",{elem:s,index:z})},tabDelete:function(q,z){var M=z||x(this).parent(),E=M.index(),ee=M.parents(".layui-tab").eq(0),s=ee.children(".layui-tab-content").children(".layui-tab-item"),o=ee.attr("lay-filter");M.hasClass(ie)&&(M.next()[0]?c.tabClick.call(M.next()[0],null,E+1):M.prev()[0]&&c.tabClick.call(M.prev()[0],null,E-1)),M.remove(),s.eq(E).remove(),setTimeout(function(){c.tabAuto()},50),layui.event.call(this,O,"tabDelete("+o+")",{elem:ee,index:E})},tabAuto:function(){var q="layui-tab-more",z="layui-tab-bar",M="layui-tab-close",E=this;x(".layui-tab").each(function(){var ee=x(this),s=ee.children(".layui-tab-title"),o=(ee.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),d=x('<span class="layui-unselect layui-tab-bar" '+o+"><i "+o+' class="layui-icon">&#xe61a;</i></span>');if(E===window&&_.ie!=8&&c.hideTabMore(!0),ee.attr("lay-allowClose")&&s.find("li").each(function(){var g=x(this);if(!g.find("."+M)[0]){var f=x('<i class="layui-icon layui-unselect '+M+'">&#x1006;</i>');f.on("click",c.tabDelete),g.append(f)}}),typeof ee.attr("lay-unauto")!="string")if(s.prop("scrollWidth")>s.outerWidth()+1){if(s.find("."+z)[0])return;s.append(d),ee.attr("overflow",""),d.on("click",function(g){s[this.title?"removeClass":"addClass"](q),this.title=this.title?"":"\u6536\u7F29"})}else s.find("."+z).remove(),ee.removeAttr("overflow")})},hideTabMore:function(q){var z=x(".layui-tab-title");q!==!0&&x(q.target).attr("lay-stope")==="tabmore"||(z.removeClass("layui-tab-more"),z.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var q=x(this),z=q.parents($),M=z.attr("lay-filter"),E=q.parent(),ee=q.siblings("."+y),s=typeof E.attr("lay-unselect")=="string";q.attr("href")!=="javascript:;"&&q.attr("target")==="_blank"||s||ee[0]||(z.find("."+ie).removeClass(ie),E.addClass(ie)),z.hasClass(F)&&(ee.removeClass(h),ee[0]&&(E[ee.css("display")==="none"?"addClass":"removeClass"](v+"ed"),z.attr("lay-shrink")==="all"&&E.siblings().removeClass(v+"ed"))),layui.event.call(this,O,"nav("+M+")",q)},collapse:function(){var q=x(this),z=q.find(".layui-colla-icon"),M=q.siblings(".layui-colla-content"),E=q.parents(".layui-collapse").eq(0),ee=E.attr("lay-filter"),s=M.css("display")==="none";if(typeof E.attr("lay-accordion")=="string"){var o=E.children(".layui-colla-item").children("."+G);o.siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"),o.removeClass(G)}M[s?"addClass":"removeClass"](G),z.html(s?"&#xe61a;":"&#xe602;"),layui.event.call(this,O,"collapse("+ee+")",{title:q,content:M,show:s})}};A.prototype.init=function(q,z){var M=function(){return z?'[lay-filter="'+z+'"]':""}(),E={tab:function(){c.tabAuto.call({})},nav:function(){var ee=200,s={},o={},d={},g=function(f,w,S){var N=x(this),V=N.find("."+y);w.hasClass(F)?f.css({top:N.position().top,height:N.children("a").outerHeight(),opacity:1}):(V.addClass(h),f.css({left:N.position().left+parseFloat(N.css("marginLeft")),top:N.position().top+N.height()-f.height()}),s[S]=setTimeout(function(){f.css({width:N.width(),opacity:1})},_.ie&&_.ie<10?0:ee),clearTimeout(d[S]),V.css("display")==="block"&&clearTimeout(o[S]),o[S]=setTimeout(function(){V.addClass(G),N.find("."+u).addClass(u+"d")},300))};x($+M).each(function(f){var w=x(this),S=x('<span class="'+L+'"></span>'),N=w.find("."+v);w.find("."+L)[0]||(w.append(S),N.on("mouseenter",function(){g.call(this,S,w,f)}).on("mouseleave",function(){w.hasClass(F)||(clearTimeout(o[f]),o[f]=setTimeout(function(){w.find("."+y).removeClass(G),w.find("."+u).removeClass(u+"d")},300))}),w.on("mouseleave",function(){clearTimeout(s[f]),d[f]=setTimeout(function(){w.hasClass(F)?S.css({height:0,top:S.position().top+S.height()/2,opacity:0}):S.css({width:0,left:S.position().left+S.width()/2,opacity:0})},ee)})),N.find("a").each(function(){var V=x(this),Z=(V.parent(),V.siblings("."+y));Z[0]&&!V.children("."+u)[0]&&V.append('<span class="'+u+'"></span>'),V.off("click",c.clickThis).on("click",c.clickThis)})})},breadcrumb:function(){var ee=".layui-breadcrumb";x(ee+M).each(function(){var s=x(this),o="lay-separator",d=s.attr(o)||"/",g=s.find("a");g.next("span["+o+"]")[0]||(g.each(function(f){f!==g.length-1&&x(this).after("<span "+o+">"+d+"</span>")}),s.css("visibility","visible"))})},progress:function(){var ee="layui-progress";x("."+ee+M).each(function(){var s=x(this),o=s.find(".layui-progress-bar"),d=o.attr("lay-percent");o.css("width",function(){return/^.+\/.+$/.test(d)?100*new Function("return "+d)()+"%":d}()),s.attr("lay-showPercent")&&setTimeout(function(){o.html('<span class="'+ee+'-text">'+d+"</span>")},350)})},collapse:function(){var ee="layui-collapse";x("."+ee+M).each(function(){var s=x(this).find(".layui-colla-item");s.each(function(){var o=x(this),d=o.find(".layui-colla-title"),g=o.find(".layui-colla-content"),f=g.css("display")==="none";d.find(".layui-colla-icon").remove(),d.append('<i class="layui-icon layui-colla-icon">'+(f?"&#xe602;":"&#xe61a;")+"</i>"),d.off("click",c.collapse).on("click",c.collapse)})})}};return E[q]?E[q]():layui.each(E,function(ee,s){s()})},A.prototype.render=A.prototype.init;var m=new A,D=x(document);m.render();var k=".layui-tab-title li";D.on("click",k,c.tabClick),D.on("click",c.hideTabMore),x(window).on("resize",c.tabAuto),oe(O,m)}),layui.define("layer",function(oe){"use strict";var x=layui.$,_=layui.layer,O=layui.hint(),ie=layui.device(),G={config:{},set:function(h){var c=this;return c.config=x.extend({},c.config,h),c},on:function(h,c){return layui.onevent.call(this,$,h,c)}},A=function(){var h=this;return{upload:function(c){h.upload.call(h,c)},config:h.config}},$="upload",v="layui-upload-file",L="layui-upload-form",F="layui-upload-iframe",y="layui-upload-choose",u=function(h){var c=this;c.config=x.extend({},c.config,G.config,h),c.render()};u.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},u.prototype.render=function(h){var c=this,h=c.config;h.elem=x(h.elem),h.bindAction=x(h.bindAction),c.file(),c.events()},u.prototype.file=function(){var h=this,c=h.config,m=h.elemFile=x(['<input class="'+v+'" type="file" accept="'+c.acceptMime+'" name="'+c.field+'"',c.multiple?" multiple":"",">"].join("")),D=c.elem.next();(D.hasClass(v)||D.hasClass(L))&&D.remove(),ie.ie&&ie.ie<10&&c.elem.wrap('<div class="layui-upload-wrap"></div>'),h.isFile()?(h.elemFile=c.elem,c.field=c.elem[0].name):c.elem.after(m),ie.ie&&ie.ie<10&&h.initIE()},u.prototype.initIE=function(){var h=this,c=h.config,m=x('<iframe id="'+F+'" class="'+F+'" name="'+F+'" frameborder="0"></iframe>'),D=x(['<form target="'+F+'" class="'+L+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+c.url+'">',"</form>"].join(""));x("#"+F)[0]||x("body").append(m),c.elem.next().hasClass(L)||(h.elemFile.wrap(D),c.elem.next("."+L).append(function(){var k=[];return layui.each(c.data,function(q,z){z=typeof z=="function"?z():z,k.push('<input type="hidden" name="'+q+'" value="'+z+'">')}),k.join("")}()))},u.prototype.msg=function(h){return _.msg(h,{icon:2,shift:6})},u.prototype.isFile=function(){var h=this.config.elem[0];if(h)return h.tagName.toLocaleLowerCase()==="input"&&h.type==="file"},u.prototype.preview=function(h){var c=this;window.FileReader&&layui.each(c.chooseFiles,function(m,D){var k=new FileReader;k.readAsDataURL(D),k.onload=function(){h&&h(m,D,this.result)}})},u.prototype.upload=function(h,c){var m,D=this,k=D.config,q=D.elemFile[0],z=function(){var w=0,S=0,N=h||D.files||D.chooseFiles||q.files,V=function(){k.multiple&&w+S===D.fileLength&&typeof k.allDone=="function"&&k.allDone({total:D.fileLength,successful:w,aborted:S})};layui.each(N,function(Z,X){var J=new FormData;J.append(k.field,X),layui.each(k.data,function(C,b){b=typeof b=="function"?b():b,J.append(C,b)}),x.ajax({url:k.url,type:"post",data:J,contentType:!1,processData:!1,dataType:"json",headers:k.headers||{},success:function(C){w++,E(Z,C),V()},error:function(){S++,D.msg("\u8BF7\u6C42\u4E0A\u4F20\u63A5\u53E3\u51FA\u73B0\u5F02\u5E38"),ee(Z),V()}})})},M=function(){var w=x("#"+F);D.elemFile.parent().submit(),clearInterval(u.timer),u.timer=setInterval(function(){var S,N=w.contents().find("body");try{S=N.text()}catch(V){D.msg("\u83B7\u53D6\u4E0A\u4F20\u540E\u7684\u54CD\u5E94\u4FE1\u606F\u51FA\u73B0\u5F02\u5E38"),clearInterval(u.timer),ee()}S&&(clearInterval(u.timer),N.html(""),E(0,S))},30)},E=function(w,S){if(D.elemFile.next("."+y).remove(),q.value="",typeof S!="object")try{S=JSON.parse(S)}catch(N){return S={},D.msg("\u8BF7\u5BF9\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u6709\u6548JSON")}typeof k.done=="function"&&k.done(S,w||0,function(N){D.upload(N)})},ee=function(w){k.auto&&(q.value=""),typeof k.error=="function"&&k.error(w||0,function(S){D.upload(S)})},s=k.exts,o=function(){var w=[];return layui.each(h||D.chooseFiles,function(S,N){w.push(N.name)}),w}(),d={preview:function(w){D.preview(w)},upload:function(w,S){var N={};N[w]=S,D.upload(N)},pushFile:function(){return D.files=D.files||{},layui.each(D.chooseFiles,function(w,S){D.files[w]=S}),D.files},resetFile:function(w,S,N){var V=new File([S],N);D.files=D.files||{},D.files[w]=V}},g=function(){if(c!=="choose"&&!k.auto||(k.choose&&k.choose(d),c!=="choose"))return k.before&&k.before(d),ie.ie?ie.ie>9?z():M():void z()};if(o=o.length===0?q.value.match(/[^\/\\]+\..+/g)||[]:o,o.length!==0){switch(k.accept){case"file":if(s&&!RegExp("\\w\\.("+s+")$","i").test(escape(o)))return D.msg("\u9009\u62E9\u7684\u6587\u4EF6\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value="";break;case"video":if(!RegExp("\\w\\.("+(s||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(o)))return D.msg("\u9009\u62E9\u7684\u89C6\u9891\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value="";break;case"audio":if(!RegExp("\\w\\.("+(s||"mp3|wav|mid")+")$","i").test(escape(o)))return D.msg("\u9009\u62E9\u7684\u97F3\u9891\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value="";break;default:if(layui.each(o,function(w,S){RegExp("\\w\\.("+(s||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(S))||(m=!0)}),m)return D.msg("\u9009\u62E9\u7684\u56FE\u7247\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value=""}if(D.fileLength=function(){var w=0,S=h||D.files||D.chooseFiles||q.files;return layui.each(S,function(){w++}),w}(),k.number&&D.fileLength>k.number)return D.msg("\u540C\u65F6\u6700\u591A\u53EA\u80FD\u4E0A\u4F20\u7684\u6570\u91CF\u4E3A\uFF1A"+k.number);if(k.size>0&&!(ie.ie&&ie.ie<10)){var f;if(layui.each(D.chooseFiles,function(w,S){if(S.size>1024*k.size){var N=k.size/1024;N=N>=1?N.toFixed(2)+"MB":k.size+"KB",q.value="",f=N}}),f)return D.msg("\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7"+f)}g()}},u.prototype.events=function(){var h=this,c=h.config,m=function(k){h.chooseFiles={},layui.each(k,function(q,z){var M=new Date().getTime();h.chooseFiles[M+"-"+q]=z})},D=function(k,q){var z=h.elemFile,M=k.length>1?k.length+"\u4E2A\u6587\u4EF6":(k[0]||{}).name||z[0].value.match(/[^\/\\]+\..+/g)||[];z.next().hasClass(y)&&z.next().remove(),h.upload(null,"choose"),h.isFile()||c.choose||z.after('<span class="layui-inline '+y+'">'+M+"</span>")};c.elem.off("upload.start").on("upload.start",function(){var k=x(this),q=k.attr("lay-data");if(q)try{q=new Function("return "+q)(),h.config=x.extend({},c,q)}catch(z){O.error("Upload element property lay-data configuration item has a syntax error: "+q)}h.config.item=k,h.elemFile[0].click()}),ie.ie&&ie.ie<10||c.elem.off("upload.over").on("upload.over",function(){var k=x(this);k.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var k=x(this);k.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(k,q){var z=x(this),M=q.originalEvent.dataTransfer.files||[];z.removeAttr("lay-over"),m(M),c.auto?h.upload(M):D(M)}),h.elemFile.off("upload.change").on("upload.change",function(){var k=this.files||[];m(k),c.auto?h.upload():D(k)}),c.bindAction.off("upload.action").on("upload.action",function(){h.upload()}),c.elem.data("haveEvents")||(h.elemFile.on("change",function(){x(this).trigger("upload.change")}),c.elem.on("click",function(){h.isFile()||x(this).trigger("upload.start")}),c.drag&&c.elem.on("dragover",function(k){k.preventDefault(),x(this).trigger("upload.over")}).on("dragleave",function(k){x(this).trigger("upload.leave")}).on("drop",function(k){k.preventDefault(),x(this).trigger("upload.drop",k)}),c.bindAction.on("click",function(){x(this).trigger("upload.action")}),c.elem.data("haveEvents",!0))},G.render=function(h){var c=new u(h);return A.call(c)},oe($,G)}),layui.define("jquery",function(oe){"use strict";var x=layui.jquery,_={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(D){var k=this;return k.config=x.extend({},k.config,D),k},on:function(D,k){return layui.onevent.call(this,ie,D,k)}},O=function(){var D=this,k=D.config;return{setValue:function(q,z){return D.slide("set",q,z||0)},config:k}},ie="slider",G="layui-disabled",A="layui-slider",$="layui-slider-bar",v="layui-slider-wrap",L="layui-slider-wrap-btn",F="layui-slider-tips",y="layui-slider-input",u="layui-slider-input-txt",h="layui-slider-input-btn",c="layui-slider-hover",m=function(D){var k=this;k.index=++_.index,k.config=x.extend({},k.config,_.config,D),k.render()};m.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"},m.prototype.render=function(){var D=this,k=D.config;if(k.min=k.min<0?0:k.min,k.range){k.value=typeof k.value=="object"?k.value:[k.min,k.value];var q=Math.min(k.value[0],k.value[1]),z=Math.max(k.value[0],k.value[1]);k.value[0]=q>k.min?q:k.min,k.value[1]=z>k.min?z:k.min,k.value[0]=k.value[0]>k.max?k.max:k.value[0],k.value[1]=k.value[1]>k.max?k.max:k.value[1];var M=Math.floor((k.value[0]-k.min)/(k.max-k.min)*100),E=Math.floor((k.value[1]-k.min)/(k.max-k.min)*100),ee=E-M+"%";M+="%",E+="%"}else{k.value=typeof k.value=="object"?Math.min(k.value[0],k.value[1]):k.value,k.value=k.value>k.min?k.value:k.min;var ee=Math.floor((k.value-k.min)/(k.max-k.min)*100)+"%"}var s=k.disabled?"#c2c2c2":k.theme,o='<div class="layui-slider '+(k.type==="vertical"?"layui-slider-vertical":"")+'">'+(k.tips?'<div class="layui-slider-tips"></div><span></span>':"")+'<div class="layui-slider-bar" style="background:'+s+"; "+(k.type==="vertical"?"height":"width")+":"+ee+";"+(k.type==="vertical"?"bottom":"left")+":"+(M||0)+';"></div><div class="layui-slider-wrap" style="'+(k.type==="vertical"?"bottom":"left")+":"+(M||ee)+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+s+';"></div></div>'+(k.range?'<div class="layui-slider-wrap" style="'+(k.type==="vertical"?"bottom":"left")+":"+E+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+s+';"></div></div>':"")+"</div>",d=x(k.elem),g=d.next("."+A);if(g[0]&&g.remove(),D.elemTemp=x(o),k.range?(D.elemTemp.find("."+v).eq(0).data("value",k.value[0]),D.elemTemp.find("."+v).eq(1).data("value",k.value[1])):D.elemTemp.find("."+v).data("value",k.value),d.html(D.elemTemp),k.type==="vertical"&&D.elemTemp.height(k.height+"px"),k.showstep){for(var f=(k.max-k.min)/k.step,w="",S=1;S<f+1;S++){var N=100*S/f;N<100&&(w+='<div class="layui-slider-step" style="'+(k.type==="vertical"?"bottom":"left")+":"+N+'%"></div>')}D.elemTemp.append(w)}if(k.input&&!k.range){var V=x('<div class="layui-slider-input layui-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>');d.css("position","relative"),d.append(V),d.find("."+u).children("input").val(k.value),k.type==="vertical"?V.css({left:0,top:-48}):D.elemTemp.css("margin-right",V.outerWidth()+15)}k.disabled?(D.elemTemp.addClass(G),D.elemTemp.find("."+L).addClass(G)):D.slide(),D.elemTemp.find("."+L).on("mouseover",function(){var Z=k.type==="vertical"?k.height:D.elemTemp[0].offsetWidth,X=D.elemTemp.find("."+v),J=k.type==="vertical"?Z-x(this).parent()[0].offsetTop-X.height():x(this).parent()[0].offsetLeft,C=J/Z*100,b=x(this).parent().data("value"),P=k.setTips?k.setTips(b):b;D.elemTemp.find("."+F).html(P),k.type==="vertical"?(D.elemTemp.find("."+F).css({bottom:C+"%","margin-bottom":"20px",display:"inline-block"}),D.elemTemp.children("span").css({bottom:C+"%","margin-bottom":"8px",display:"inline-block"})):(D.elemTemp.find("."+F).css({left:C+"%",display:"inline-block"}),D.elemTemp.children("span").css({left:C+"%",display:"inline-block"}))}).on("mouseout",function(){D.elemTemp.find("."+F).css("display","none"),D.elemTemp.children("span").css("display","none")})},m.prototype.slide=function(D,k,q){var z=this,M=z.config,E=z.elemTemp,ee=function(){return M.type==="vertical"?M.height:E[0].offsetWidth},s=E.find("."+v),o=E.next("."+y),d=o.children("."+u).children("input").val(),g=100/((M.max-M.min)/Math.ceil(M.step)),f=function(Z,X){Z=Math.ceil(Z)*g>100?Math.ceil(Z)*g:Math.round(Z)*g,Z=Z>100?100:Z,s.eq(X).css(M.type==="vertical"?"bottom":"left",Z+"%");var J=w(s[0].offsetLeft),C=M.range?w(s[1].offsetLeft):0;M.type==="vertical"?(E.find("."+F).css({bottom:Z+"%","margin-bottom":"20px"}),E.children("span").css({bottom:Z+"%","margin-bottom":"8px"}),J=w(ee()-s[0].offsetTop-s.height()),C=M.range?w(ee()-s[1].offsetTop-s.height()):0):(E.find("."+F).css("left",Z+"%"),E.children("span").css("left",Z+"%")),J=J>100?100:J,C=C>100?100:C;var b=Math.min(J,C),P=Math.abs(J-C);M.type==="vertical"?E.find("."+$).css({height:P+"%",bottom:b+"%"}):E.find("."+$).css({width:P+"%",left:b+"%"});var te=M.min+Math.round((M.max-M.min)*Z/100);if(d=te,o.children("."+u).children("input").val(d),s.eq(X).data("value",te),te=M.setTips?M.setTips(te):te,E.find("."+F).html(te),M.range){var H=[s.eq(0).data("value"),s.eq(1).data("value")];H[0]>H[1]&&H.reverse()}M.change&&M.change(M.range?H:te)},w=function(Z){var X=Z/ee()*100/g,J=Math.round(X)*g;return Z==ee()&&(J=Math.ceil(X)*g),J},S=x(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join("")),N=function(Z,X){var J=function(){X&&X(),S.remove()};x("#LAY-slider-moving")[0]||x("body").append(S),S.on("mousemove",Z),S.on("mouseup",J).on("mouseleave",J)};if(D==="set")return f(k,q);E.find("."+L).each(function(Z){var X=x(this);X.on("mousedown",function(J){J=J||window.event;var C=X.parent()[0].offsetLeft,b=J.clientX;M.type==="vertical"&&(C=ee()-X.parent()[0].offsetTop-s.height(),b=J.clientY);var P=function(H){H=H||window.event;var ae=C+(M.type==="vertical"?b-H.clientY:H.clientX-b);ae<0&&(ae=0),ae>ee()&&(ae=ee());var le=ae/ee()*100/g;f(le,Z),X.addClass(c),E.find("."+F).show(),E.children("span").show(),H.preventDefault()},te=function(){X.removeClass(c),E.find("."+F).hide(),E.children("span").hide()};N(P,te)})}),E.on("click",function(Z){var X=x("."+L);if(!X.is(event.target)&&X.has(event.target).length===0&&X.length){var J,C=M.type==="vertical"?ee()-Z.clientY+x(this).offset().top:Z.clientX-x(this).offset().left;C<0&&(C=0),C>ee()&&(C=ee());var b=C/ee()*100/g;J=M.range?M.type==="vertical"?Math.abs(C-parseInt(x(s[0]).css("bottom")))>Math.abs(C-parseInt(x(s[1]).css("bottom")))?1:0:Math.abs(C-s[0].offsetLeft)>Math.abs(C-s[1].offsetLeft)?1:0:0,f(b,J),Z.preventDefault()}}),o.hover(function(){var Z=x(this);Z.children("."+h).fadeIn("fast")},function(){var Z=x(this);Z.children("."+h).fadeOut("fast")}),o.children("."+h).children("i").each(function(Z){x(this).on("click",function(){d=Z==1?d-g<M.min?M.min:d-g:Number(d)+g>M.max?M.max:Number(d)+g;var X=(d-M.min)/(M.max-M.min)*100/g;f(X,0)})});var V=function(){var Z=this.value;Z=isNaN(Z)?0:Z,Z=Z<M.min?M.min:Z,Z=Z>M.max?M.max:Z,this.value=Z;var X=(Z-M.min)/(M.max-M.min)*100/g;f(X,0)};o.children("."+u).children("input").on("keydown",function(Z){Z.keyCode===13&&(Z.preventDefault(),V.call(this))}).on("change",V)},m.prototype.events=function(){var D=this;D.config},_.render=function(D){var k=new m(D);return O.call(k)},oe(ie,_)}),layui.define("jquery",function(oe){"use strict";var x=layui.jquery,_={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(f){var w=this;return w.config=x.extend({},w.config,f),w},on:function(f,w){return layui.onevent.call(this,"colorpicker",f,w)}},O=function(){var f=this,w=f.config;return{config:w}},ie="colorpicker",G="layui-show",A="layui-colorpicker",$=".layui-colorpicker-main",v="layui-icon-down",L="layui-icon-close",F="layui-colorpicker-trigger-span",y="layui-colorpicker-trigger-i",u="layui-colorpicker-side",h="layui-colorpicker-side-slider",c="layui-colorpicker-basis",m="layui-colorpicker-alpha-bgcolor",D="layui-colorpicker-alpha-slider",k="layui-colorpicker-basis-cursor",q="layui-colorpicker-main-input",z=function(f){var w={h:0,s:0,b:0},S=Math.min(f.r,f.g,f.b),N=Math.max(f.r,f.g,f.b),V=N-S;return w.b=N,w.s=N!=0?255*V/N:0,w.s!=0?f.r==N?w.h=(f.g-f.b)/V:f.g==N?w.h=2+(f.b-f.r)/V:w.h=4+(f.r-f.g)/V:w.h=-1,N==S&&(w.h=0),w.h*=60,w.h<0&&(w.h+=360),w.s*=100/255,w.b*=100/255,w},M=function(f){var f=f.indexOf("#")>-1?f.substring(1):f;if(f.length==3){var w=f.split("");f=w[0]+w[0]+w[1]+w[1]+w[2]+w[2]}f=parseInt(f,16);var S={r:f>>16,g:(65280&f)>>8,b:255&f};return z(S)},E=function(f){var w={},S=f.h,N=255*f.s/100,V=255*f.b/100;if(N==0)w.r=w.g=w.b=V;else{var Z=V,X=(255-N)*V/255,J=(Z-X)*(S%60)/60;S==360&&(S=0),S<60?(w.r=Z,w.b=X,w.g=X+J):S<120?(w.g=Z,w.b=X,w.r=Z-J):S<180?(w.g=Z,w.r=X,w.b=X+J):S<240?(w.b=Z,w.r=X,w.g=Z-J):S<300?(w.b=Z,w.g=X,w.r=X+J):S<360?(w.r=Z,w.g=X,w.b=Z-J):(w.r=0,w.g=0,w.b=0)}return{r:Math.round(w.r),g:Math.round(w.g),b:Math.round(w.b)}},ee=function(f){var w=E(f),S=[w.r.toString(16),w.g.toString(16),w.b.toString(16)];return x.each(S,function(N,V){V.length==1&&(S[N]="0"+V)}),S.join("")},s=function(f){var w=/[0-9]{1,3}/g,S=f.match(w)||[];return{r:S[0],g:S[1],b:S[2]}},o=x(window),d=x(document),g=function(f){var w=this;w.index=++_.index,w.config=x.extend({},w.config,_.config,f),w.render()};g.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)"]},g.prototype.render=function(){var f=this,w=f.config,S=x(['<div class="layui-unselect layui-colorpicker">',"<span "+(w.format=="rgb"&&w.alpha?'class="layui-colorpicker-trigger-bgcolor"':"")+">",'<span class="layui-colorpicker-trigger-span" ','lay-type="'+(w.format=="rgb"?w.alpha?"rgba":"torgb":"")+'" ','style="'+function(){var V="";return w.color?(V=w.color,(w.color.match(/[0-9]{1,3}/g)||[]).length>3&&(w.alpha&&w.format=="rgb"||(V="#"+ee(z(s(w.color))))),"background: "+V):V}()+'">','<i class="layui-icon layui-colorpicker-trigger-i '+(w.color?v:L)+'"></i>',"</span>","</span>","</div>"].join("")),N=x(w.elem);w.size&&S.addClass("layui-colorpicker-"+w.size),N.addClass("layui-inline").html(f.elemColorBox=S),f.color=f.elemColorBox.find("."+F)[0].style.background,f.events()},g.prototype.renderPicker=function(){var f=this,w=f.config,S=f.elemColorBox[0],N=f.elemPicker=x(['<div id="layui-colorpicker'+f.index+'" data-index="'+f.index+'" class="layui-anim layui-anim-upbit layui-colorpicker-main">','<div class="layui-colorpicker-main-wrapper">','<div class="layui-colorpicker-basis">','<div class="layui-colorpicker-basis-white"></div>','<div class="layui-colorpicker-basis-black"></div>','<div class="layui-colorpicker-basis-cursor"></div>',"</div>",'<div class="layui-colorpicker-side">','<div class="layui-colorpicker-side-slider"></div>',"</div>","</div>",'<div class="layui-colorpicker-main-alpha '+(w.alpha?G:"")+'">','<div class="layui-colorpicker-alpha-bgcolor">','<div class="layui-colorpicker-alpha-slider"></div>',"</div>","</div>",function(){if(w.predefine){var V=['<div class="layui-colorpicker-main-pre">'];return layui.each(w.colors,function(Z,X){V.push(['<div class="layui-colorpicker-pre'+((X.match(/[0-9]{1,3}/g)||[]).length>3?" layui-colorpicker-pre-isalpha":"")+'">','<div style="background:'+X+'"></div>',"</div>"].join(""))}),V.push("</div>"),V.join("")}return""}(),'<div class="layui-colorpicker-main-input">','<div class="layui-inline">','<input type="text" class="layui-input">',"</div>",'<div class="layui-btn-container">','<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">\u6E05\u7A7A</button>','<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">\u786E\u5B9A</button>',"</div","</div>","</div>"].join(""));f.elemColorBox.find("."+F)[0],x($)[0]&&x($).data("index")==f.index?f.removePicker(g.thisElemInd):(f.removePicker(g.thisElemInd),x("body").append(N)),g.thisElemInd=f.index,g.thisColor=S.style.background,f.position(),f.pickerEvents()},g.prototype.removePicker=function(f){var w=this;return w.config,x("#layui-colorpicker"+(f||w.index)).remove(),w},g.prototype.position=function(){var f=this,w=f.config,S=f.bindElem||f.elemColorBox[0],N=f.elemPicker[0],V=S.getBoundingClientRect(),Z=N.offsetWidth,X=N.offsetHeight,J=function(H){return H=H?"scrollLeft":"scrollTop",document.body[H]|document.documentElement[H]},C=function(H){return document.documentElement[H?"clientWidth":"clientHeight"]},b=5,P=V.left,te=V.bottom;P-=(Z-S.offsetWidth)/2,te+=b,P+Z+b>C("width")?P=C("width")-Z-b:P<b&&(P=b),te+X+b>C()&&(te=V.top>X?V.top-X:C()-X,te-=2*b),w.position&&(N.style.position=w.position),N.style.left=P+(w.position==="fixed"?0:J(1))+"px",N.style.top=te+(w.position==="fixed"?0:J())+"px"},g.prototype.val=function(){var f=this,w=(f.config,f.elemColorBox.find("."+F)),S=f.elemPicker.find("."+q),N=w[0],V=N.style.backgroundColor;if(V){var Z=z(s(V)),X=w.attr("lay-type");if(f.select(Z.h,Z.s,Z.b),X==="torgb"&&S.find("input").val(V),X==="rgba"){var J=s(V);if((V.match(/[0-9]{1,3}/g)||[]).length==3)S.find("input").val("rgba("+J.r+", "+J.g+", "+J.b+", 1)"),f.elemPicker.find("."+D).css("left",280);else{S.find("input").val(V);var C=280*V.slice(V.lastIndexOf(",")+1,V.length-1);f.elemPicker.find("."+D).css("left",C)}f.elemPicker.find("."+m)[0].style.background="linear-gradient(to right, rgba("+J.r+", "+J.g+", "+J.b+", 0), rgb("+J.r+", "+J.g+", "+J.b+"))"}}else f.select(0,100,100),S.find("input").val(""),f.elemPicker.find("."+m)[0].style.background="",f.elemPicker.find("."+D).css("left",280)},g.prototype.side=function(){var f=this,w=f.config,S=f.elemColorBox.find("."+F),N=S.attr("lay-type"),V=f.elemPicker.find("."+u),Z=f.elemPicker.find("."+h),X=f.elemPicker.find("."+c),J=f.elemPicker.find("."+k),C=f.elemPicker.find("."+m),b=f.elemPicker.find("."+D),P=Z[0].offsetTop/180*360,te=100-(J[0].offsetTop+3)/180*100,H=(J[0].offsetLeft+3)/260*100,ae=Math.round(b[0].offsetLeft/280*100)/100,le=f.elemColorBox.find("."+y),xe=f.elemPicker.find(".layui-colorpicker-pre").children("div"),he=function(se,Y,Q,pe){f.select(se,Y,Q);var fe=E({h:se,s:Y,b:Q});if(le.addClass(v).removeClass(L),S[0].style.background="rgb("+fe.r+", "+fe.g+", "+fe.b+")",N==="torgb"&&f.elemPicker.find("."+q).find("input").val("rgb("+fe.r+", "+fe.g+", "+fe.b+")"),N==="rgba"){var ke=0;ke=280*pe,b.css("left",ke),f.elemPicker.find("."+q).find("input").val("rgba("+fe.r+", "+fe.g+", "+fe.b+", "+pe+")"),S[0].style.background="rgba("+fe.r+", "+fe.g+", "+fe.b+", "+pe+")",C[0].style.background="linear-gradient(to right, rgba("+fe.r+", "+fe.g+", "+fe.b+", 0), rgb("+fe.r+", "+fe.g+", "+fe.b+"))"}w.change&&w.change(f.elemPicker.find("."+q).find("input").val())},ue=x(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div'].join("")),ye=function(se){x("#LAY-colorpicker-moving")[0]||x("body").append(ue),ue.on("mousemove",se),ue.on("mouseup",function(){ue.remove()}).on("mouseleave",function(){ue.remove()})};Z.on("mousedown",function(se){var Y=this.offsetTop,Q=se.clientY,pe=function(fe){var ke=Y+(fe.clientY-Q),je=V[0].offsetHeight;ke<0&&(ke=0),ke>je&&(ke=je);var Me=ke/180*360;P=Me,he(Me,H,te,ae),fe.preventDefault()};ye(pe),se.preventDefault()}),V.on("click",function(se){var Y=se.clientY-x(this).offset().top;Y<0&&(Y=0),Y>this.offsetHeight&&(Y=this.offsetHeight);var Q=Y/180*360;P=Q,he(Q,H,te,ae),se.preventDefault()}),J.on("mousedown",function(se){var Y=this.offsetTop,Q=this.offsetLeft,pe=se.clientY,fe=se.clientX,ke=function(je){var Me=Y+(je.clientY-pe),Ee=Q+(je.clientX-fe),Ye=X[0].offsetHeight-3,Fe=X[0].offsetWidth-3;Me<-3&&(Me=-3),Me>Ye&&(Me=Ye),Ee<-3&&(Ee=-3),Ee>Fe&&(Ee=Fe);var we=(Ee+3)/260*100,Ie=100-(Me+3)/180*100;te=Ie,H=we,he(P,we,Ie,ae),je.preventDefault()};ye(ke),se.preventDefault()}),X.on("click",function(se){var Y=se.clientY-x(this).offset().top-3+o.scrollTop(),Q=se.clientX-x(this).offset().left-3+o.scrollLeft();Y<-3&&(Y=-3),Y>this.offsetHeight-3&&(Y=this.offsetHeight-3),Q<-3&&(Q=-3),Q>this.offsetWidth-3&&(Q=this.offsetWidth-3);var pe=(Q+3)/260*100,fe=100-(Y+3)/180*100;te=fe,H=pe,he(P,pe,fe,ae),se.preventDefault()}),b.on("mousedown",function(se){var Y=this.offsetLeft,Q=se.clientX,pe=function(fe){var ke=Y+(fe.clientX-Q),je=C[0].offsetWidth;ke<0&&(ke=0),ke>je&&(ke=je);var Me=Math.round(ke/280*100)/100;ae=Me,he(P,H,te,Me),fe.preventDefault()};ye(pe),se.preventDefault()}),C.on("click",function(se){var Y=se.clientX-x(this).offset().left;Y<0&&(Y=0),Y>this.offsetWidth&&(Y=this.offsetWidth);var Q=Math.round(Y/280*100)/100;ae=Q,he(P,H,te,Q),se.preventDefault()}),xe.each(function(){x(this).on("click",function(){x(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var se,Y=this.style.backgroundColor,Q=z(s(Y)),pe=Y.slice(Y.lastIndexOf(",")+1,Y.length-1);P=Q.h,H=Q.s,te=Q.b,(Y.match(/[0-9]{1,3}/g)||[]).length==3&&(pe=1),ae=pe,se=280*pe,he(Q.h,Q.s,Q.b,pe)})})},g.prototype.select=function(f,w,S,N){var V=this,Z=(V.config,ee({h:f,s:100,b:100})),X=ee({h:f,s:w,b:S}),J=f/360*180,C=180-S/100*180-3,b=w/100*260-3;V.elemPicker.find("."+h).css("top",J),V.elemPicker.find("."+c)[0].style.background="#"+Z,V.elemPicker.find("."+k).css({top:C,left:b}),N!=="change"&&V.elemPicker.find("."+q).find("input").val("#"+X)},g.prototype.pickerEvents=function(){var f=this,w=f.config,S=f.elemColorBox.find("."+F),N=f.elemPicker.find("."+q+" input"),V={clear:function(Z){S[0].style.background="",f.elemColorBox.find("."+y).removeClass(v).addClass(L),f.color="",w.done&&w.done(""),f.removePicker()},confirm:function(Z,X){var J=N.val(),C=J,b={};if(J.indexOf(",")>-1){if(b=z(s(J)),f.select(b.h,b.s,b.b),S[0].style.background=C="#"+ee(b),(J.match(/[0-9]{1,3}/g)||[]).length>3&&S.attr("lay-type")==="rgba"){var P=280*J.slice(J.lastIndexOf(",")+1,J.length-1);f.elemPicker.find("."+D).css("left",P),S[0].style.background=J,C=J}}else b=M(J),S[0].style.background=C="#"+ee(b),f.elemColorBox.find("."+y).removeClass(L).addClass(v);return X==="change"?(f.select(b.h,b.s,b.b,X),void(w.change&&w.change(C))):(f.color=J,w.done&&w.done(J),void f.removePicker())}};f.elemPicker.on("click","*[colorpicker-events]",function(){var Z=x(this),X=Z.attr("colorpicker-events");V[X]&&V[X].call(this,Z)}),N.on("keyup",function(Z){var X=x(this);V.confirm.call(this,X,Z.keyCode===13?null:"change")})},g.prototype.events=function(){var f=this,w=f.config,S=f.elemColorBox.find("."+F);f.elemColorBox.on("click",function(){f.renderPicker(),x($)[0]&&(f.val(),f.side())}),w.elem[0]&&!f.elemColorBox[0].eventHandler&&(d.on("click",function(N){if(!x(N.target).hasClass(A)&&!x(N.target).parents("."+A)[0]&&!x(N.target).hasClass($.replace(/\./g,""))&&!x(N.target).parents($)[0]&&f.elemPicker){if(f.color){var V=z(s(f.color));f.select(V.h,V.s,V.b)}else f.elemColorBox.find("."+y).removeClass(v).addClass(L);S[0].style.background=f.color||"",f.removePicker()}}),o.on("resize",function(){return!(!f.elemPicker||!x($)[0])&&void f.position()}),f.elemColorBox[0].eventHandler=!0)},_.render=function(f){var w=new g(f);return O.call(w)},oe(ie,_)}),layui.define("layer",function(oe){"use strict";var x=layui.$,_=layui.layer,O=layui.hint(),ie=layui.device(),G="form",A=".layui-form",$="layui-this",v="layui-hide",L="layui-disabled",F=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(m){if(!m||isNaN(m))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"]}}};F.prototype.set=function(m){var D=this;return x.extend(!0,D.config,m),D},F.prototype.verify=function(m){var D=this;return x.extend(!0,D.config.verify,m),D},F.prototype.on=function(m,D){return layui.onevent.call(this,G,m,D)},F.prototype.val=function(m,D){var k=x(A+'[lay-filter="'+m+'"]');k.each(function(q,z){var M=x(this);layui.each(D,function(E,ee){var s,o=M.find('[name="'+E+'"]');o[0]&&(s=o[0].type,s==="checkbox"?o[0].checked=ee:s==="radio"?o.each(function(){this.value===ee&&(this.checked=!0)}):o.val(ee))})}),u.render(null,m)},F.prototype.render=function(m,D){var k=this,q=x(A+function(){return D?'[lay-filter="'+D+'"]':""}()),z={select:function(){var M,E="\u8BF7\u9009\u62E9",ee="layui-form-select",s="layui-select-title",o="layui-select-none",d="",g=q.find("select"),f=function(S,N){x(S.target).parent().hasClass(s)&&!N||(x("."+ee).removeClass(ee+"ed "+ee+"up"),M&&d&&M.val(d)),M=null},w=function(S,N,V){var Z,X=x(this),J=S.find("."+s),C=J.find("input"),b=S.find("dl"),P=b.children("dd"),te=this.selectedIndex;if(!N){var H=function(){var ue=S.offset().top+S.outerHeight()+5-c.scrollTop(),ye=b.outerHeight();te=X[0].selectedIndex,S.addClass(ee+"ed"),P.removeClass(v),Z=null,P.eq(te).addClass($).siblings().removeClass($),ue+ye>c.height()&&ue>=ye&&S.addClass(ee+"up"),le()},ae=function(ue){S.removeClass(ee+"ed "+ee+"up"),C.blur(),Z=null,ue||xe(C.val(),function(ye){ye&&(d=b.find("."+$).html(),C&&C.val(d))})},le=function(){var ue=b.children("dd."+$);if(ue[0]){var ye=ue.position().top,se=b.height(),Y=ue.height();ye>se&&b.scrollTop(ye+b.scrollTop()-se+Y-5),ye<0&&b.scrollTop(ye+b.scrollTop()-5)}};J.on("click",function(ue){S.hasClass(ee+"ed")?ae():(f(ue,!0),H()),b.find("."+o).remove()}),J.find(".layui-edge").on("click",function(){C.focus()}),C.on("keyup",function(ue){var ye=ue.keyCode;ye===9&&H()}).on("keydown",function(ue){var ye=ue.keyCode;ye===9&&ae();var se=function(Y,Q){var pe,fe;ue.preventDefault();var ke=function(){var je=b.children("dd."+$);if(b.children("dd."+v)[0]&&Y==="next"){var Me=b.children("dd:not(."+v+",."+L+")"),Ee=Me.eq(0).index();if(Ee>=0&&Ee<je.index()&&!Me.hasClass($))return Me.eq(0).prev()[0]?Me.eq(0).prev():b.children(":last")}return Q&&Q[0]?Q:Z&&Z[0]?Z:je}();return fe=ke[Y](),pe=ke[Y]("dd:not(."+v+")"),fe[0]?(Z=ke[Y](),pe[0]&&!pe.hasClass(L)||!Z[0]?(pe.addClass($).siblings().removeClass($),void le()):se(Y,Z)):Z=null};ye===38&&se("prev"),ye===40&&se("next"),ye===13&&(ue.preventDefault(),b.children("dd."+$).trigger("click"))});var xe=function(ue,ye,se){var Y=0;layui.each(P,function(){var pe=x(this),fe=pe.text(),ke=fe.indexOf(ue)===-1;(ue===""||se==="blur"?ue!==fe:ke)&&Y++,se==="keyup"&&pe[ke?"addClass":"removeClass"](v)});var Q=Y===P.length;return ye(Q),Q},he=function(ue){var ye=this.value,se=ue.keyCode;return se!==9&&se!==13&&se!==37&&se!==38&&se!==39&&se!==40&&(xe(ye,function(Y){Y?b.find("."+o)[0]||b.append('<p class="'+o+'">\u65E0\u5339\u914D\u9879</p>'):b.find("."+o).remove()},"keyup"),ye===""&&b.find("."+o).remove(),void le())};V&&C.on("keyup",he).on("blur",function(ue){var ye=X[0].selectedIndex;M=C,d=x(X[0].options[ye]).html(),setTimeout(function(){xe(C.val(),function(se){d||C.val("")},"blur")},200)}),P.on("click",function(){var ue=x(this),ye=ue.attr("lay-value"),se=X.attr("lay-filter");return!ue.hasClass(L)&&(ue.hasClass("layui-select-tips")?C.val(""):(C.val(ue.text()),ue.addClass($)),ue.siblings().removeClass($),X.val(ye).removeClass("layui-form-danger"),layui.event.call(this,G,"select("+se+")",{elem:X[0],value:ye,othis:S}),ae(!0),!1)}),S.find("dl>dt").on("click",function(ue){return!1}),x(document).off("click",f).on("click",f)}};g.each(function(S,N){var V=x(this),Z=V.next("."+ee),X=this.disabled,J=N.value,C=x(N.options[N.selectedIndex]),b=N.options[0];if(typeof V.attr("lay-ignore")=="string")return V.show();var P=typeof V.attr("lay-search")=="string",te=b?b.value?E:b.innerHTML||E:E,H=x(['<div class="'+(P?"":"layui-unselect ")+ee,(X?" layui-select-disabled":"")+'">','<div class="'+s+'">','<input type="text" placeholder="'+te+'" '+('value="'+(J?C.html():"")+'"')+(P?"":" readonly")+' class="layui-input'+(P?"":" layui-unselect")+(X?" "+L:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(V.find("optgroup")[0]?" layui-select-group":"")+'">',function(ae){var le=[];return layui.each(ae,function(xe,he){xe!==0||he.value?he.tagName.toLowerCase()==="optgroup"?le.push("<dt>"+he.label+"</dt>"):le.push('<dd lay-value="'+he.value+'" class="'+(J===he.value?$:"")+(he.disabled?" "+L:"")+'">'+he.innerHTML+"</dd>"):le.push('<dd lay-value="" class="layui-select-tips">'+(he.innerHTML||E)+"</dd>")}),le.length===0&&le.push('<dd lay-value="" class="'+L+'">\u6CA1\u6709\u9009\u9879</dd>'),le.join("")}(V.find("*"))+"</dl>","</div>"].join(""));Z[0]&&Z.remove(),V.after(H),w.call(this,H,X,P)})},checkbox:function(){var M={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},E=q.find("input[type=checkbox]"),ee=function(s,o){var d=x(this);s.on("click",function(){var g=d.attr("lay-filter"),f=(d.attr("lay-text")||"").split("|");d[0].disabled||(d[0].checked?(d[0].checked=!1,s.removeClass(o[1]).find("em").text(f[1])):(d[0].checked=!0,s.addClass(o[1]).find("em").text(f[0])),layui.event.call(d[0],G,o[2]+"("+g+")",{elem:d[0],value:d[0].value,othis:s}))})};E.each(function(s,o){var d=x(this),g=d.attr("lay-skin"),f=(d.attr("lay-text")||"").split("|"),w=this.disabled;g==="switch"&&(g="_"+g);var S=M[g]||M.checkbox;if(typeof d.attr("lay-ignore")=="string")return d.show();var N=d.next("."+S[0]),V=x(['<div class="layui-unselect '+S[0],o.checked?" "+S[1]:"",w?" layui-checkbox-disbaled "+L:"",'"',g?' lay-skin="'+g+'"':"",">",function(){var Z=o.title.replace(/\s/g,""),X={checkbox:[Z?"<span>"+o.title+"</span>":"",'<i class="layui-icon layui-icon-ok"></i>'].join(""),_switch:"<em>"+((o.checked?f[0]:f[1])||"")+"</em><i></i>"};return X[g]||X.checkbox}(),"</div>"].join(""));N[0]&&N.remove(),d.after(V),ee.call(this,V,S)})},radio:function(){var M="layui-form-radio",E=["&#xe643;","&#xe63f;"],ee=q.find("input[type=radio]"),s=function(o){var d=x(this),g="layui-anim-scaleSpring";o.on("click",function(){var f=d[0].name,w=d.parents(A),S=d.attr("lay-filter"),N=w.find("input[name="+f.replace(/(\.|#|\[|\])/g,"\\$1")+"]");d[0].disabled||(layui.each(N,function(){var V=x(this).next("."+M);this.checked=!1,V.removeClass(M+"ed"),V.find(".layui-icon").removeClass(g).html(E[1])}),d[0].checked=!0,o.addClass(M+"ed"),o.find(".layui-icon").addClass(g).html(E[0]),layui.event.call(d[0],G,"radio("+S+")",{elem:d[0],value:d[0].value,othis:o}))})};ee.each(function(o,d){var g=x(this),f=g.next("."+M),w=this.disabled;if(typeof g.attr("lay-ignore")=="string")return g.show();f[0]&&f.remove();var S=x(['<div class="layui-unselect '+M,d.checked?" "+M+"ed":"",(w?" layui-radio-disbaled "+L:"")+'">','<i class="layui-anim layui-icon">'+E[d.checked?0:1]+"</i>","<div>"+function(){var N=d.title||"";return typeof g.next().attr("lay-radio")=="string"&&(N=g.next().html(),g.next().remove()),N}()+"</div>","</div>"].join(""));g.after(S),s.call(this,S)})}};return m?z[m]?z[m]():O.error("\u4E0D\u652F\u6301\u7684"+m+"\u8868\u5355\u6E32\u67D3"):layui.each(z,function(M,E){E()}),k};var y=function(){var m=x(this),D=u.config.verify,k=null,q="layui-form-danger",z={},M=m.parents(A),E=M.find("*[lay-verify]"),ee=m.parents("form")[0],s=M.find("input,select,textarea"),o=m.attr("lay-filter");if(layui.each(E,function(g,f){var w=x(this),S=w.attr("lay-verify").split("|"),N=w.attr("lay-verType"),V=w.val();if(w.removeClass(q),layui.each(S,function(Z,X){var J,C="",b=typeof D[X]=="function";if(D[X]){var J=b?C=D[X](V,f):!D[X][0].test(V);if(C=C||D[X][1],J)return N==="tips"?_.tips(C,function(){return typeof w.attr("lay-ignore")=="string"||f.tagName.toLowerCase()!=="select"&&!/^checkbox|radio$/.test(f.type)?w:w.next()}(),{tips:1}):N==="alert"?_.alert(C,{title:"\u63D0\u793A",shadeClose:!0}):_.msg(C,{icon:5,shift:6}),ie.android||ie.ios||f.focus(),w.addClass(q),k=!0}}),k)return k}),k)return!1;var d={};return layui.each(s,function(g,f){if(f.name=(f.name||"").replace(/^\s*|\s*&/,""),f.name){if(/^.*\[\]$/.test(f.name)){var w=f.name.match(/^(.*)\[\]$/g)[0];d[w]=0|d[w],f.name=f.name.replace(/^(.*)\[\]$/,"$1["+d[w]+++"]")}/^checkbox|radio$/.test(f.type)&&!f.checked||(z[f.name]=f.value)}}),layui.event.call(this,G,"submit("+o+")",{elem:this,form:ee,field:z})},u=new F,h=x(document),c=x(window);u.render(),h.on("reset",A,function(){var m=x(this).attr("lay-filter");setTimeout(function(){u.render(null,m)},50)}),h.on("submit",A,y).on("click","*[lay-submit]",y),oe(G,u)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=layui.hint(),O="layui-tree-enter",ie=function(A){this.options=A},G={arrow:["&#xe623;","&#xe625;"],checkbox:["&#xe626;","&#xe627;"],radio:["&#xe62b;","&#xe62a;"],branch:["&#xe622;","&#xe624;"],leaf:"&#xe621;"};ie.prototype.init=function(A){var $=this;A.addClass("layui-box layui-tree"),$.options.skin&&A.addClass("layui-tree-skin-"+$.options.skin),$.tree(A),$.on(A)},ie.prototype.tree=function(A,$){var v=this,L=v.options,F=$||L.nodes;layui.each(F,function(y,u){var h=u.children&&u.children.length>0,c=x('<ul class="'+(u.spread?"layui-show":"")+'"></ul>'),m=x(["<li "+(u.spread?'data-spread="'+u.spread+'"':"")+">",function(){return h?'<i class="layui-icon layui-tree-spread">'+(u.spread?G.arrow[1]:G.arrow[0])+"</i>":""}(),function(){return L.check?'<i class="layui-icon layui-tree-check">'+(L.check==="checkbox"?G.checkbox[0]:L.check==="radio"?G.radio[0]:"")+"</i>":""}(),function(){return'<a href="'+(u.href||"javascript:;")+'" '+(L.target&&u.href?'target="'+L.target+'"':"")+">"+('<i class="layui-icon layui-tree-'+(h?"branch":"leaf")+'">'+(h?u.spread?G.branch[1]:G.branch[0]:G.leaf)+"</i>")+("<cite>"+(u.name||"\u672A\u547D\u540D")+"</cite></a>")}(),"</li>"].join(""));h&&(m.append(c),v.tree(c,u.children)),A.append(m),typeof L.click=="function"&&v.click(m,u),v.spread(m,u),L.drag&&v.drag(m,u)})},ie.prototype.click=function(A,$){var v=this,L=v.options;A.children("a").on("click",function(F){layui.stope(F),L.click($)})},ie.prototype.spread=function(A,$){var v=this,L=(v.options,A.children(".layui-tree-spread")),F=A.children("ul"),y=A.children("a"),u=function(){A.data("spread")?(A.data("spread",null),F.removeClass("layui-show"),L.html(G.arrow[0]),y.find(".layui-icon").html(G.branch[0])):(A.data("spread",!0),F.addClass("layui-show"),L.html(G.arrow[1]),y.find(".layui-icon").html(G.branch[1]))};F[0]&&(L.on("click",u),y.on("dblclick",u))},ie.prototype.on=function(A){var $=this,v=$.options,L="layui-tree-drag";A.find("i").on("selectstart",function(F){return!1}),v.drag&&x(document).on("mousemove",function(F){var y=$.move;if(y.from){var u=(y.to,x('<div class="layui-box '+L+'"></div>'));F.preventDefault(),x("."+L)[0]||x("body").append(u);var h=x("."+L)[0]?x("."+L):u;h.addClass("layui-show").html(y.from.elem.children("a").html()),h.css({left:F.pageX+10,top:F.pageY+10})}}).on("mouseup",function(){var F=$.move;F.from&&(F.from.elem.children("a").removeClass(O),F.to&&F.to.elem.children("a").removeClass(O),$.move={},x("."+L).remove())})},ie.prototype.move={},ie.prototype.drag=function(A,$){var v=this,L=(v.options,A.children("a")),F=function(){var y=x(this),u=v.move;u.from&&(u.to={item:$,elem:A},y.addClass(O))};L.on("mousedown",function(){var y=v.move;y.from={item:$,elem:A}}),L.on("mouseenter",F).on("mousemove",F).on("mouseleave",function(){var y=x(this),u=v.move;u.from&&(delete u.to,y.removeClass(O))})},oe("tree",function(A){var $=new ie(A=A||{}),v=x(A.elem);return v[0]?void $.init(v):_.error("layui.tree \u6CA1\u6709\u627E\u5230"+A.elem+"\u5143\u7D20")})}),layui.define(["laytpl","laypage","layer","form","util"],function(oe){"use strict";var x=layui.$,_=layui.laytpl,O=layui.laypage,ie=layui.layer,G=layui.form,A=(layui.util,layui.hint()),$=layui.device(),v={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(C){var b=this;return b.config=x.extend({},b.config,C),b},on:function(C,b){return layui.onevent.call(this,F,C,b)}},L=function(){var C=this,b=C.config,P=b.id;return P&&(L.config[P]=b),{reload:function(te){C.reload.call(C,te)},setColsWidth:function(){C.setColsWidth.call(C)},config:b}},F="table",y=".layui-table",u="layui-hide",h="layui-none",c="layui-table-view",m=".layui-table-tool",D=".layui-table-box",k=".layui-table-init",q=".layui-table-header",z=".layui-table-body",M=".layui-table-main",E=".layui-table-fixed",ee=".layui-table-fixed-l",s=".layui-table-fixed-r",o=".layui-table-total",d=".layui-table-page",g=".layui-table-sort",f="layui-table-edit",w="layui-table-hover",S=function(C){var b='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return C=C||{},['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return C.fixed&&C.fixed!=="right"?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':C.fixed==="right"?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colspan > 1) && item2.sort; }}",'<th data-field="{{ item2.field||i2 }}" {{# if(item2.minWidth){ }}data-minwidth="{{item2.minWidth}}"{{# } }} '+b+' {{# if(item2.unresize){ }}data-unresize="true"{{# } }} {{# if(isSort){ }}class="layui-unselect"{{# } }}>','<div class="layui-table-cell laytable-cell-',"{{# if(item2.colspan > 1){ }}","group","{{# } else { }}","{{d.index}}-{{item2.field || i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="\u5347\u5E8F"></i><i class="layui-edge layui-table-sort-desc" title="\u964D\u5E8F"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",C.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")},N=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),V=['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">',"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">','<div class="layui-table-init" style="background-color: #fff;">','<i class="layui-icon layui-icon-loading layui-icon"></i>',"</div>","{{# var left, right; }}",'<div class="layui-table-header">',S(),"</div>",'<div class="layui-table-body layui-table-main">',N,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',S({fixed:!0}),"</div>",'<div class="layui-table-body">',N,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r">','<div class="layui-table-header">',S({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',N,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}","{{# if(d.data.page){ }}",'<div class="layui-table-page">','<div id="layui-table-page{{d.index}}"></div>',"</div>","{{# } }}","<style>","{{# layui.each(d.data.cols, function(i1, item1){","layui.each(item1, function(i2, item2){ }}",".laytable-cell-{{d.index}}-{{item2.field||i2}}{ ","{{# if(item2.width){ }}","width: {{item2.width}}px;","{{# } }}"," }","{{# });","}); }}","</style>","</div>"].join(""),Z=x(window),X=x(document),J=function(C){var b=this;b.index=++v.index,b.config=x.extend({},b.config,v.config,C),b.render()};J.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],text:{none:"\u65E0\u6570\u636E"}},J.prototype.render=function(){var C=this,b=C.config;if(b.elem=x(b.elem),b.where=b.where||{},b.id=b.id||b.elem.attr("id")||b.index,b.request=x.extend({pageName:"page",limitName:"limit"},b.request),b.response=x.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},b.response),typeof b.page=="object"&&(b.limit=b.page.limit||b.limit,b.limits=b.page.limits||b.limits,C.page=b.page.curr=b.page.curr||1,delete b.page.elem,delete b.page.jump),!b.elem[0])return C;b.height&&/^full-\d+$/.test(b.height)&&(C.fullHeightGap=b.height.split("-")[1],b.height=Z.height()-C.fullHeightGap),b.height&&b.height<248&&(b.height=248),C.setInit();var P=b.elem,te=P.next("."+c),H=C.elem=x(_(V).render({VIEW_CLASS:c,data:b,index:C.index}));if(b.index=C.index,te[0]&&te.remove(),P.after(H),C.layTool=H.find(m),C.layBox=H.find(D),C.layHeader=H.find(q),C.layMain=H.find(M),C.layBody=H.find(z),C.layFixed=H.find(E),C.layFixLeft=H.find(ee),C.layFixRight=H.find(s),C.layTotal=H.find(o),C.layPage=H.find(d),C.renderToolbar(),C.fullSize(),b.cols.length>1){var ae=C.layFixed.find(q).find("th");ae.height(C.layHeader.height()-1-parseFloat(ae.css("padding-top"))-parseFloat(ae.css("padding-bottom")))}C.pullData(C.page),C.events()},J.prototype.initOpts=function(C){var b=this,P=(b.config,{checkbox:48,radio:48,space:15,numbers:40});C.checkbox&&(C.type="checkbox"),C.space&&(C.type="space"),C.type||(C.type="normal"),C.type!=="normal"&&(C.unresize=!0,C.width=C.width||P[C.type])},J.prototype.setInit=function(C){var b=this,P=b.config;return P.clientWidth=P.width||function(){var te=function(H){var ae,le;H=H||P.elem.parent(),ae=H.width();try{le=H.css("display")==="none"}catch(xe){}return!H[0]||ae&&!le?ae:te(H.parent())};return te()}(),C==="width"?P.clientWidth:void layui.each(P.cols,function(te,H){layui.each(H,function(ae,le){return le.minWidth||P.cellMinWidth,le?void b.initOpts(le):void H.splice(ae,1)})})},J.prototype.renderToolbar=function(){var C=this,b=C.config,P=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),te=C.layTool.find(".layui-table-tool-temp");if(b.toolbar==="default")te.html(P);else if(b.toolbar){var H=x(b.toolbar).html()||"";H&&te.html(_(H).render(b))}var ae={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"}},le=[];typeof b.defaultToolbar=="object"&&layui.each(b.defaultToolbar,function(xe,he){var ue=ae[he];ue&&le.push('<div class="layui-inline" title="'+ue.title+'" lay-event="'+ue.layEvent+'"><i class="layui-icon '+ue.icon+'"></i></div>')}),C.layTool.find(".layui-table-tool-self").html(le.join(""))},J.prototype.setColsWidth=function(){var C=this,b=C.config,P=0,te=0,H=0,ae=0,le=C.setInit("width");C.eachCols(function(Y,Q){Q.hide||P++}),le=le-function(){return b.skin==="line"||b.skin==="nob"?2:P+1}()-C.getScrollWidth(C.layMain[0])-1;var xe=function(Y){layui.each(b.cols,function(Q,pe){layui.each(pe,function(fe,ke){var je=0,Me=ke.minWidth||b.cellMinWidth;return ke?void(ke.colspan>1||(Y?H&&H<Me&&(te--,je=Me):(je=ke.width||0,/\d+%$/.test(je)?(je=Math.floor(parseFloat(je)/100*le),je<Me&&(je=Me)):je||(ke.width=je=0,te++)),ke.hide&&(je=0),ae+=je)):void pe.splice(fe,1)})}),le>ae&&te&&(H=(le-ae)/te)};xe(),xe(!0),C.autoColNums=te,C.eachCols(function(Y,Q){var pe=Q.minWidth||b.cellMinWidth,fe=Q.field||Y;Q.colspan>1||(Q.width===0?C.getCssRule(fe,function(ke){ke.style.width=Math.floor(H>=pe?H:pe)+"px"}):/\d+%$/.test(Q.width)&&C.getCssRule(fe,function(ke){ke.style.width=Math.floor(parseFloat(Q.width)/100*le)+"px"}))});var he=C.layMain.width()-C.getScrollWidth(C.layMain[0])-C.layMain.children("table").outerWidth();if(C.autoColNums&&he>=-P&&he<=P){var ue=function(Y){var Q;return Y=Y||C.layHeader.eq(0).find("thead th:last-child"),Q=Y.data("field"),!Q&&Y.prev()[0]?ue(Y.prev()):Y},ye=ue(),se=ye.data("field");C.getCssRule(se,function(Y){var Q=Y.style.width||ye.outerWidth();Y.style.width=parseFloat(Q)+he+"px",C.layMain.height()-C.layMain.prop("clientHeight")>0&&(Y.style.width=parseFloat(Y.style.width)-1+"px")})}C.loading(!0)},J.prototype.reload=function(C){var b=this;b.config.data&&b.config.data.constructor===Array&&delete b.config.data,b.config=x.extend({},b.config,C),b.render()},J.prototype.page=1,J.prototype.pullData=function(C){var b=this,P=b.config,te=P.request,H=P.response,ae=function(){typeof P.initSort=="object"&&b.sort(P.initSort.field,P.initSort.type)};if(b.startTime=new Date().getTime(),P.url){var le={};le[te.pageName]=C,le[te.limitName]=P.limit;var xe=x.extend(le,P.where);P.contentType&&P.contentType.indexOf("application/json")==0&&(xe=JSON.stringify(xe)),x.ajax({type:P.method||"get",url:P.url,contentType:P.contentType,data:xe,dataType:"json",headers:P.headers||{},success:function(ye){typeof P.parseData=="function"&&(ye=P.parseData(ye)||ye),ye[H.statusName]!=H.statusCode?(b.renderForm(),b.layMain.html('<div class="'+h+'">'+(ye[H.msgName]||"\u8FD4\u56DE\u7684\u6570\u636E\u4E0D\u7B26\u5408\u89C4\u8303\uFF0C\u6B63\u786E\u7684\u6210\u529F\u72B6\u6001\u7801 ("+H.statusName+") \u5E94\u4E3A\uFF1A"+H.statusCode)+"</div>")):(b.renderData(ye,C,ye[H.countName]),ae(),P.time=new Date().getTime()-b.startTime+" ms"),b.setColsWidth(),typeof P.done=="function"&&P.done(ye,C,ye[H.countName])},error:function(ye,se){b.layMain.html('<div class="'+h+'">\u6570\u636E\u63A5\u53E3\u8BF7\u6C42\u5F02\u5E38\uFF1A'+se+"</div>"),b.renderForm(),b.setColsWidth()}})}else if(P.data&&P.data.constructor===Array){var he={},ue=C*P.limit-P.limit;he[H.dataName]=P.data.concat().splice(ue,P.limit),he[H.countName]=P.data.length,b.renderData(he,C,P.data.length),ae(),b.setColsWidth(),typeof P.done=="function"&&P.done(he,C,he[H.countName])}},J.prototype.eachCols=function(C){var b=this;return v.eachCols(null,C,b.config.cols),b},J.prototype.renderData=function(C,b,P,te){var H=this,ae=H.config,le=C[ae.response.dataName]||[],xe=[],he=[],ue=[],ye=function(){var se;return!te&&H.sortKey?H.sort(H.sortKey.field,H.sortKey.sort,!0):(layui.each(le,function(Y,Q){var pe=[],fe=[],ke=[],je=Y+ae.limit*(b-1)+1;Q.length!==0&&(te||(Q[v.config.indexName]=Y),H.eachCols(function(Me,Ee){var Ye=Ee.field||Me,Fe=Q[Ye];if(Fe!=null||(Fe=""),!(Ee.colspan>1||Ee.hide)){var we=['<td data-field="'+Ye+'" '+function(){var Ie=[];return Ee.edit&&Ie.push('data-edit="'+Ee.edit+'"'),Ee.align&&Ie.push('align="'+Ee.align+'"'),Ee.templet&&Ie.push('data-content="'+Fe+'"'),Ee.toolbar&&Ie.push('data-off="true"'),Ee.event&&Ie.push('lay-event="'+Ee.event+'"'),Ee.style&&Ie.push('style="'+Ee.style+'"'),Ee.minWidth&&Ie.push('data-minwidth="'+Ee.minWidth+'"'),Ie.join(" ")}()+">",'<div class="layui-table-cell laytable-cell-'+function(){var Ie=ae.index+"-"+Ye;return Ee.type==="normal"?Ie:Ie+" laytable-cell-"+Ee.type}()+'">'+function(){var Ie=x.extend(!0,{LAY_INDEX:je},Q),rt=v.config.checkName;switch(Ee.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+function(){return Ee[rt]?(Q[rt]=Ee[rt],Ee[rt]?"checked":""):Ie[rt]?"checked":""}()+">";case"radio":return Ie[rt]&&(se=Y),'<input type="radio" name="layTableRadio_'+ae.index+'" '+(Ie[rt]?"checked":"")+' lay-type="layTableRadio">';case"numbers":return je}return Ee.toolbar?_(x(Ee.toolbar).html()||"").render(Ie):Ee.templet?function(){return typeof Ee.templet=="function"?Ee.templet(Ie):_(x(Ee.templet).html()||String(Fe)).render(Ie)}():Fe}(),"</div></td>"].join("");pe.push(we),Ee.fixed&&Ee.fixed!=="right"&&fe.push(we),Ee.fixed==="right"&&ke.push(we)}}),xe.push('<tr data-index="'+Y+'">'+pe.join("")+"</tr>"),he.push('<tr data-index="'+Y+'">'+fe.join("")+"</tr>"),ue.push('<tr data-index="'+Y+'">'+ke.join("")+"</tr>"))}),H.layBody.scrollTop(0),H.layMain.find("."+h).remove(),H.layMain.find("tbody").html(xe.join("")),H.layFixLeft.find("tbody").html(he.join("")),H.layFixRight.find("tbody").html(ue.join("")),H.renderForm(),typeof se=="number"&&H.setThisRowChecked(se),H.syncCheckAll(),H.haveInit?H.scrollPatch():setTimeout(function(){H.scrollPatch()},50),H.haveInit=!0,void ie.close(H.tipsIndex))};return H.key=ae.id||ae.index,v.cache[H.key]=le,H.layPage[P==0||le.length===0&&b==1?"addClass":"removeClass"](u),te?ye():le.length===0?(H.renderForm(),H.layFixed.remove(),H.layMain.find("tbody").html(""),H.layMain.find("."+h).remove(),H.layMain.append('<div class="'+h+'">'+ae.text.none+"</div>")):(ye(),H.renderTotal(le),void(ae.page&&(ae.page=x.extend({elem:"layui-table-page"+ae.index,count:P,limit:ae.limit,limits:ae.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon">&#xe603;</i>',next:'<i class="layui-icon">&#xe602;</i>',jump:function(se,Y){Y||(H.page=se.curr,ae.limit=se.limit,H.loading(),H.pullData(se.curr))}},ae.page),ae.page.count=P,O.render(ae.page))))},J.prototype.renderTotal=function(C){var b=this,P=b.config,te={};if(P.totalRow){layui.each(C,function(ae,le){le.length!==0&&b.eachCols(function(xe,he){var ue=he.field||xe,ye=le[ue];he.totalRow&&(te[ue]=(te[ue]||0)+parseFloat(ye))})});var H=[];b.eachCols(function(ae,le){var xe=le.field||ae;if(!le.hide){var he=['<td data-field="'+xe+'" '+function(){var ue=[];return le.align&&ue.push('align="'+le.align+'"'),le.style&&ue.push('style="'+le.style+'"'),le.minWidth&&ue.push('data-minwidth="'+le.minWidth+'"'),ue.join(" ")}()+">",'<div class="layui-table-cell laytable-cell-'+function(){var ue=P.index+"-"+xe;return le.type==="normal"?ue:ue+" laytable-cell-"+le.type}()+'">'+function(){var ue=le.totalRowText||"";return le.totalRow&&te[xe]||ue}(),"</div></td>"].join("");H.push(he)}}),b.layTotal.find("tbody").html("<tr>"+H.join("")+"</tr>")}},J.prototype.getColElem=function(C,b){var P=this,te=P.config;return C.eq(0).find(".laytable-cell-"+(te.index+"-"+b)+":eq(0)")},J.prototype.renderForm=function(C){G.render(C,"LAY-table-"+this.index)},J.prototype.setThisRowChecked=function(C){var b=this,P=(b.config,"layui-table-click"),te=b.layBody.find('tr[data-index="'+C+'"]');te.addClass(P).siblings("tr").removeClass(P)},J.prototype.sort=function(C,b,P,te){var H,ae,le=this,xe={},he=le.config,ue=he.elem.attr("lay-filter"),ye=v.cache[le.key];typeof C=="string"&&le.layHeader.find("th").each(function(Y,Q){var pe=x(this),fe=pe.data("field");if(fe===C)return C=pe,H=fe,!1});try{var H=H||C.data("field");if(le.sortKey&&!P&&H===le.sortKey.field&&b===le.sortKey.sort)return;var se=le.layHeader.find("th .laytable-cell-"+he.index+"-"+H).find(g);le.layHeader.find("th").find(g).removeAttr("lay-sort"),se.attr("lay-sort",b||null),le.layFixed.find("th")}catch(Y){return A.error("Table modules: Did not match to field")}le.sortKey={field:H,sort:b},b==="asc"?ae=layui.sort(ye,H):b==="desc"?ae=layui.sort(ye,H,!0):(ae=layui.sort(ye,v.config.indexName),delete le.sortKey),xe[he.response.dataName]=ae,le.renderData(xe,le.page,le.count,!0),te&&layui.event.call(C,F,"sort("+ue+")",{field:H,type:b})},J.prototype.loading=function(C){var b=this,P=b.config;P.loading&&(C?(b.layInit&&b.layInit.remove(),delete b.layInit,b.layBox.find(k).remove()):(b.layInit=x(['<div class="layui-table-init">','<i class="layui-icon layui-icon-loading layui-icon"></i>',"</div>"].join("")),b.layBox.append(b.layInit)))},J.prototype.setCheckData=function(C,b){var P=this,te=P.config,H=v.cache[P.key];H[C]&&H[C].constructor!==Array&&(H[C][te.checkName]=b)},J.prototype.syncCheckAll=function(){var C=this,b=C.config,P=C.layHeader.find('input[name="layTableCheckbox"]'),te=function(H){return C.eachCols(function(ae,le){le.type==="checkbox"&&(le[b.checkName]=H)}),H};P[0]&&(v.checkStatus(C.key).isAll?(P[0].checked||(P.prop("checked",!0),C.renderForm("checkbox")),te(!0)):(P[0].checked&&(P.prop("checked",!1),C.renderForm("checkbox")),te(!1)))},J.prototype.getCssRule=function(C,b){var P=this,te=P.elem.find("style")[0],H=te.sheet||te.styleSheet||{},ae=H.cssRules||H.rules;layui.each(ae,function(le,xe){if(xe.selectorText===".laytable-cell-"+P.index+"-"+C)return b(xe),!0})},J.prototype.fullSize=function(){var C,b=this,P=b.config,te=P.height;b.fullHeightGap&&(te=Z.height()-b.fullHeightGap,te<135&&(te=135),b.elem.css("height",te)),te&&(C=parseFloat(te)-(b.layHeader.outerHeight()||38),P.toolbar&&(C-=b.layTool.outerHeight()||50),P.totalRow&&(C-=b.layTotal.outerHeight()||40),P.page&&(C=C-(b.layPage.outerHeight()||41)-2),b.layMain.css("height",C))},J.prototype.getScrollWidth=function(C){var b=0;return C?b=C.offsetWidth-C.clientWidth:(C=document.createElement("div"),C.style.width="100px",C.style.height="100px",C.style.overflowY="scroll",document.body.appendChild(C),b=C.offsetWidth-C.clientWidth,document.body.removeChild(C)),b},J.prototype.scrollPatch=function(){var C=this,b=C.layMain.children("table"),P=C.layMain.width()-C.layMain.prop("clientWidth"),te=C.layMain.height()-C.layMain.prop("clientHeight"),H=(C.getScrollWidth(C.layMain[0]),b.outerWidth()-C.layMain.width()),ae=function(he){if(P&&te){if(he=he.eq(0),!he.find(".layui-table-patch")[0]){var ue=x('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>');ue.find("div").css({width:P}),he.find("tr").append(ue)}}else he.find(".layui-table-patch").remove()};ae(C.layHeader),ae(C.layTotal);var le=C.layMain.height(),xe=le-te;C.layFixed.find(z).css("height",b.height()>xe?xe:"auto"),C.layFixRight[H>0?"removeClass":"addClass"](u),C.layFixRight.css("right",P-1)},J.prototype.events=function(){var C,b=this,P=b.config,te=x("body"),H={},ae=b.layHeader.find("th"),le=".layui-table-cell",xe=P.elem.attr("lay-filter");b.layTool.on("click","*[lay-event]",function(Y){var Q=x(this),pe=Q.attr("lay-event"),fe=function(Ee){var Ye=x(Ee.list),Fe=x('<ul class="layui-table-tool-panel"></ul>');Fe.html(Ye),Q.find(".layui-table-tool-panel")[0]||Q.append(Fe),b.renderForm(),Fe.on("click",function(we){layui.stope(we)}),Ee.done&&Ee.done(Fe,Ye)};switch(layui.stope(Y),X.trigger("table.tool.panel.remove"),ie.close(b.tipsIndex),pe){case"LAYTABLE_COLS":fe({list:function(){var Ee=[];return b.eachCols(function(Ye,Fe){Fe.field&&Fe.type=="normal"&&Ee.push('<li><input type="checkbox" name="'+Fe.field+'" lay-skin="primary" '+(Fe.hide?"":"checked")+' title="'+Fe.title+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),Ee.join("")}(),done:function(){G.on("checkbox(LAY_TABLE_TOOL_COLS)",function(Ee){layui.each(P.cols,function(Ye,Fe){layui.each(Fe,function(we,Ie){Ie.field===Ee.elem.name&&(Ie.hide=!Ee.elem.checked,b.elem.find('*[data-field="'+Ee.elem.name+'"]')[Ee.elem.checked?"removeClass":"addClass"](u),b.fullSize(),b.scrollPatch(),b.setColsWidth())})})})}});break;case"LAYTABLE_EXPORT":$.ie?ie.tips("\u5BFC\u51FA\u529F\u80FD\u4E0D\u652F\u6301 IE\uFF0C\u8BF7\u7528 Chrome \u7B49\u9AD8\u7EA7\u6D4F\u89C8\u5668\u5BFC\u51FA",this,{tips:3}):fe({list:function(){return['<li data-type="csv">\u5BFC\u51FA\u5230 Csv \u6587\u4EF6</li>','<li data-type="xls">\u5BFC\u51FA\u5230 Excel \u6587\u4EF6</li>'].join("")}(),done:function(Ee,Ye){Ye.on("click",function(){var Fe=x(this).data("type");v.exportFile(P.id,null,Fe)})}});break;case"LAYTABLE_PRINT":var ke=window.open("\u6253\u5370\u7A97\u53E3","_blank"),je=["<style>","body{font-size: 12px; color: #666;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #666;}","*.layui-hide{display: none}","</style>"].join(""),Me=x(b.layHeader.html());Me.find("th.layui-table-patch").remove(),Me.append(b.layMain.find("table").html()),ke.document.write(je+Me.prop("outerHTML")),ke.document.close(),ke.print(),ke.close()}layui.event.call(this,F,"toolbar("+xe+")",x.extend({event:pe,config:P},{}))}),ae.on("mousemove",function(Y){var Q=x(this),pe=Q.offset().left,fe=Y.clientX-pe;Q.attr("colspan")>1||Q.data("unresize")||H.resizeStart||(H.allowResize=Q.width()-fe<=10,te.css("cursor",H.allowResize?"col-resize":""))}).on("mouseleave",function(){x(this),H.resizeStart||te.css("cursor","")}).on("mousedown",function(Y){var Q=x(this);if(H.allowResize){var pe=Q.data("field");Y.preventDefault(),H.resizeStart=!0,H.offset=[Y.clientX,Y.clientY],b.getCssRule(pe,function(fe){var ke=fe.style.width||Q.outerWidth();H.rule=fe,H.ruleWidth=parseFloat(ke),H.minWidth=Q.data("minwidth")||P.cellMinWidth})}}),X.on("mousemove",function(Y){if(H.resizeStart){if(Y.preventDefault(),H.rule){var Q=H.ruleWidth+Y.clientX-H.offset[0];Q<H.minWidth&&(Q=H.minWidth),H.rule.style.width=Q+"px",ie.close(b.tipsIndex)}C=1}}).on("mouseup",function(Y){H.resizeStart&&(H={},te.css("cursor",""),b.scrollPatch()),C===2&&(C=null)}),ae.on("click",function(Y){var Q,pe=x(this),fe=pe.find(g),ke=fe.attr("lay-sort");return fe[0]&&C!==1?(Q=ke==="asc"?"desc":ke==="desc"?null:"asc",void b.sort(pe,Q,null,!0)):C=2}).find(g+" .layui-edge ").on("click",function(Y){var Q=x(this),pe=Q.index(),fe=Q.parents("th").eq(0).data("field");layui.stope(Y),pe===0?b.sort(fe,"asc",null,!0):b.sort(fe,"desc",null,!0)});var he=function(Y){var Q=x(this),pe=Q.parents("tr").eq(0).data("index"),fe=b.layBody.find('tr[data-index="'+pe+'"]'),ke=v.cache[b.key][pe];return x.extend({tr:fe,data:v.clearCacheKey(ke),del:function(){v.cache[b.key][pe]=[],fe.remove(),b.scrollPatch()},update:function(je){je=je||{},layui.each(je,function(Me,Ee){if(Me in ke){var Ye,Fe=fe.children('td[data-field="'+Me+'"]');ke[Me]=Ee,b.eachCols(function(we,Ie){Ie.field==Me&&Ie.templet&&(Ye=Ie.templet)}),Fe.children(le).html(function(){return Ye?function(){return typeof Ye=="function"?Ye(ke):_(x(Ye).html()||Ee).render(ke)}():Ee}()),Fe.data("content",Ee)}})}},Y)};b.elem.on("click",'input[name="layTableCheckbox"]+',function(){var Y=x(this).prev(),Q=b.layBody.find('input[name="layTableCheckbox"]'),pe=Y.parents("tr").eq(0).data("index"),fe=Y[0].checked,ke=Y.attr("lay-filter")==="layTableAllChoose";ke?(Q.each(function(je,Me){Me.checked=fe,b.setCheckData(je,fe)}),b.syncCheckAll(),b.renderForm("checkbox")):(b.setCheckData(pe,fe),b.syncCheckAll()),layui.event.call(this,F,"checkbox("+xe+")",he.call(this,{checked:fe,type:ke?"all":"one"}))}),b.elem.on("click",'input[lay-type="layTableRadio"]+',function(){var Y=x(this).prev(),Q=Y[0].checked,pe=v.cache[b.key],fe=Y.parents("tr").eq(0).data("index");layui.each(pe,function(ke,je){fe===ke?je.LAY_CHECKED=!0:delete je.LAY_CHECKED}),b.setThisRowChecked(fe),layui.event.call(this,F,"radio("+xe+")",he.call(this,{checked:Q}))}),b.layBody.on("mouseenter","tr",function(){var Y=x(this),Q=Y.index();b.layBody.find("tr:eq("+Q+")").addClass(w)}).on("mouseleave","tr",function(){var Y=x(this),Q=Y.index();b.layBody.find("tr:eq("+Q+")").removeClass(w)}).on("click","tr",function(){ue.call(this,"row")}).on("dblclick","tr",function(){ue.call(this,"rowDouble")});var ue=function(Y){var Q=x(this);layui.event.call(this,F,Y+"("+xe+")",he.call(Q.children("td")[0]))};b.layBody.on("change","."+f,function(){var Y=x(this),Q=this.value,pe=Y.parent().data("field"),fe=Y.parents("tr").eq(0).data("index"),ke=v.cache[b.key][fe];ke[pe]=Q,layui.event.call(this,F,"edit("+xe+")",he.call(this,{value:Q,field:pe}))}).on("blur","."+f,function(){var Y,Q=x(this),pe=Q.parent().data("field"),fe=Q.parents("tr").eq(0).data("index"),ke=v.cache[b.key][fe];b.eachCols(function(je,Me){Me.field==pe&&Me.templet&&(Y=Me.templet)}),Q.siblings(le).html(function(je){return Y?function(){return typeof Y=="function"?Y(ke):_(x(Y).html()||this.value).render(ke)}():je}(this.value)),Q.parent().data("content",this.value),Q.remove()}),b.layBody.on("click","td",function(){var Y=x(this),Q=(Y.data("field"),Y.data("edit")),pe=Y.children(le);if(!Y.data("off")&&Q){var fe=x('<input class="layui-input '+f+'">');return fe[0].value=Y.data("content")||pe.text(),Y.find("."+f)[0]||Y.append(fe),void fe.focus()}}).on("mouseenter","td",function(){se.call(this)}).on("mouseleave","td",function(){se.call(this,"hide")});var ye="layui-table-grid-down",se=function(Y){var Q=x(this),pe=Q.children(le);if(Y)Q.find(".layui-table-grid-down").remove();else if(pe.prop("scrollWidth")>pe.outerWidth()){if(pe.find("."+ye)[0])return;Q.append('<div class="'+ye+'"><i class="layui-icon layui-icon-down"></i></div>')}};b.layBody.on("click","."+ye,function(){var Y=x(this),Q=Y.parent(),pe=Q.children(le);b.tipsIndex=ie.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(pe.height()+16)+"px;"+function(){return P.size==="sm"?"padding: 4px 15px; font-size: 12px;":P.size==="lg"?"padding: 14px 15px;":""}()+'">',pe.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),pe[0],{tips:[3,""],time:-1,anim:-1,maxWidth:$.ios||$.android?300:b.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(fe,ke){fe.find(".layui-table-tips-c").on("click",function(){ie.close(ke)})}})}),b.layBody.on("click","*[lay-event]",function(){var Y=x(this),Q=Y.parents("tr").eq(0).data("index");layui.event.call(this,F,"tool("+xe+")",he.call(this,{event:Y.attr("lay-event")})),b.setThisRowChecked(Q)}),b.layMain.on("scroll",function(){var Y=x(this),Q=Y.scrollLeft(),pe=Y.scrollTop();b.layHeader.scrollLeft(Q),b.layTotal.scrollLeft(Q),b.layFixed.find(z).scrollTop(pe),ie.close(b.tipsIndex)}),X.on("click",function(){X.trigger("table.remove.tool.panel")}),X.on("table.remove.tool.panel",function(){x(".layui-table-tool-panel").remove()}),Z.on("resize",function(){b.fullSize(),b.scrollPatch(),b.setColsWidth()})},v.init=function(C,b){b=b||{};var P=this,te=x(C?'table[lay-filter="'+C+'"]':y+"[lay-data]"),H="Table element property lay-data configuration item has a syntax error: ";return te.each(function(){var ae=x(this),le=ae.attr("lay-data");try{le=new Function("return "+le)()}catch(ue){A.error(H+le)}var xe=[],he=x.extend({elem:this,cols:[],data:[],skin:ae.attr("lay-skin"),size:ae.attr("lay-size"),even:typeof ae.attr("lay-even")=="string"},v.config,b,le);C&&ae.hide(),ae.find("thead>tr").each(function(ue){he.cols[ue]=[],x(this).children().each(function(ye){var se=x(this),Y=se.attr("lay-data");try{Y=new Function("return "+Y)()}catch(pe){return A.error(H+Y)}var Q=x.extend({title:se.text(),colspan:se.attr("colspan")||0,rowspan:se.attr("rowspan")||0},Y);Q.colspan<2&&xe.push(Q),he.cols[ue].push(Q)})}),ae.find("tbody>tr").each(function(ue){var ye=x(this),se={};ye.children("td").each(function(Y,Q){var pe=x(this),fe=pe.data("field");if(fe)return se[fe]=pe.html()}),layui.each(xe,function(Y,Q){var pe=ye.children("td").eq(Y);se[Q.field]=pe.html()}),he.data[ue]=se}),v.render(he)}),P},L.config={},v.eachCols=function(C,b,P){var te=L.config[C]||{},H=[],ae=0;P=x.extend(!0,[],P||te.cols),layui.each(P,function(xe,he){layui.each(he,function(ue,ye){if(ye.colspan>1){var se=0;ae++,ye.CHILD_COLS=[],layui.each(P[xe+1],function(Y,Q){Q.PARENT_COL||se==ye.colspan||(Q.PARENT_COL=ae,ye.CHILD_COLS.push(Q),se+=Q.colspan>1?Q.colspan:1)})}ye.PARENT_COL||H.push(ye)})});var le=function(xe){layui.each(xe||H,function(he,ue){return ue.CHILD_COLS?le(ue.CHILD_COLS):void b(he,ue)})};le()},v.checkStatus=function(C){var b=0,P=0,te=[],H=v.cache[C]||[];return layui.each(H,function(ae,le){return le.constructor===Array?void P++:void(le[v.config.checkName]&&(b++,te.push(v.clearCacheKey(le))))}),{data:te,isAll:!!H.length&&b===H.length-P}},v.exportFile=function(C,b,P){b=b||v.clearCacheKey(v.cache[C]),P=P||"csv";var te=L.config[C]||{},H={csv:"text/csv",xls:"application/vnd.ms-excel"}[P],ae=document.createElement("a");return $.ie?A.error("IE_NOT_SUPPORT_EXPORTS"):(ae.href="data:"+H+";charset=utf-8,\uFEFF"+encodeURIComponent(function(){var le=[],xe=[];return layui.each(b,function(he,ue){var ye=[];typeof C=="object"?(layui.each(C,function(se,Y){he==0&&le.push(Y||"")}),layui.each(v.clearCacheKey(ue),function(se,Y){ye.push(Y)})):v.eachCols(C,function(se,Y){Y.field&&Y.type=="normal"&&!Y.hide&&(he==0&&le.push(Y.title||""),ye.push(ue[Y.field]))}),xe.push(ye.join(","))}),le.join(",")+`\r
`+xe.join(`\r
`)}()),ae.download=(te.title||"table_"+(te.index||""))+"."+P,document.body.appendChild(ae),ae.click(),void document.body.removeChild(ae))},v.reload=function(C,b){var P=L.config[C];return b=b||{},P?(b.data&&b.data.constructor===Array&&delete P.data,v.render(x.extend(!0,{},P,b))):A.error("The ID option was not found in the table instance")},v.render=function(C){var b=new J(C);return L.call(b)},v.clearCacheKey=function(C){return C=x.extend({},C),delete C[v.config.checkName],delete C[v.config.indexName],C},v.init(),oe(F,v)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=(layui.hint(),layui.device(),{config:{},set:function(h){var c=this;return c.config=x.extend({},c.config,h),c},on:function(h,c){return layui.onevent.call(this,O,h,c)}}),O="carousel",ie="layui-this",G=">*[carousel-item]>*",A="layui-carousel-left",$="layui-carousel-right",v="layui-carousel-prev",L="layui-carousel-next",F="layui-carousel-arrow",y="layui-carousel-ind",u=function(h){var c=this;c.config=x.extend({},c.config,_.config,h),c.render()};u.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},u.prototype.render=function(){var h=this,c=h.config;c.elem=x(c.elem),c.elem[0]&&(h.elemItem=c.elem.find(G),c.index<0&&(c.index=0),c.index>=h.elemItem.length&&(c.index=h.elemItem.length-1),c.interval<800&&(c.interval=800),c.full?c.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):c.elem.css({width:c.width,height:c.height}),c.elem.attr("lay-anim",c.anim),h.elemItem.eq(c.index).addClass(ie),h.elemItem.length<=1||(h.indicator(),h.arrow(),h.autoplay(),h.events()))},u.prototype.reload=function(h){var c=this;clearInterval(c.timer),c.config=x.extend({},c.config,h),c.render()},u.prototype.prevIndex=function(){var h=this,c=h.config,m=c.index-1;return m<0&&(m=h.elemItem.length-1),m},u.prototype.nextIndex=function(){var h=this,c=h.config,m=c.index+1;return m>=h.elemItem.length&&(m=0),m},u.prototype.addIndex=function(h){var c=this,m=c.config;h=h||1,m.index=m.index+h,m.index>=c.elemItem.length&&(m.index=0)},u.prototype.subIndex=function(h){var c=this,m=c.config;h=h||1,m.index=m.index-h,m.index<0&&(m.index=c.elemItem.length-1)},u.prototype.autoplay=function(){var h=this,c=h.config;c.autoplay&&(h.timer=setInterval(function(){h.slide()},c.interval))},u.prototype.arrow=function(){var h=this,c=h.config,m=x(['<button class="layui-icon '+F+'" lay-type="sub">'+(c.anim==="updown"?"&#xe619;":"&#xe603;")+"</button>",'<button class="layui-icon '+F+'" lay-type="add">'+(c.anim==="updown"?"&#xe61a;":"&#xe602;")+"</button>"].join(""));c.elem.attr("lay-arrow",c.arrow),c.elem.find("."+F)[0]&&c.elem.find("."+F).remove(),c.elem.append(m),m.on("click",function(){var D=x(this),k=D.attr("lay-type");h.slide(k)})},u.prototype.indicator=function(){var h=this,c=h.config,m=h.elemInd=x(['<div class="'+y+'"><ul>',function(){var D=[];return layui.each(h.elemItem,function(k){D.push("<li"+(c.index===k?' class="layui-this"':"")+"></li>")}),D.join("")}(),"</ul></div>"].join(""));c.elem.attr("lay-indicator",c.indicator),c.elem.find("."+y)[0]&&c.elem.find("."+y).remove(),c.elem.append(m),c.anim==="updown"&&m.css("margin-top",-(m.height()/2)),m.find("li").on(c.trigger==="hover"?"mouseover":c.trigger,function(){var D=x(this),k=D.index();k>c.index?h.slide("add",k-c.index):k<c.index&&h.slide("sub",c.index-k)})},u.prototype.slide=function(h,c){var m=this,D=m.elemItem,k=m.config,q=k.index,z=k.elem.attr("lay-filter");m.haveSlide||(h==="sub"?(m.subIndex(c),D.eq(k.index).addClass(v),setTimeout(function(){D.eq(q).addClass($),D.eq(k.index).addClass($)},50)):(m.addIndex(c),D.eq(k.index).addClass(L),setTimeout(function(){D.eq(q).addClass(A),D.eq(k.index).addClass(A)},50)),setTimeout(function(){D.removeClass(ie+" "+v+" "+L+" "+A+" "+$),D.eq(k.index).addClass(ie),m.haveSlide=!1},300),m.elemInd.find("li").eq(k.index).addClass(ie).siblings().removeClass(ie),m.haveSlide=!0,layui.event.call(this,O,"change("+z+")",{index:k.index,prevIndex:q,item:D.eq(k.index)}))},u.prototype.events=function(){var h=this,c=h.config;c.elem.data("haveEvents")||(c.elem.on("mouseenter",function(){clearInterval(h.timer)}).on("mouseleave",function(){h.autoplay()}),c.elem.data("haveEvents",!0))},_.render=function(h){var c=new u(h);return c},oe(O,_)}),layui.define("jquery",function(oe){"use strict";var x=layui.jquery,_={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(h){var c=this;return c.config=x.extend({},c.config,h),c},on:function(h,c){return layui.onevent.call(this,ie,h,c)}},O=function(){var h=this,c=h.config;return{setvalue:function(m){h.setvalue.call(h,m)},config:c}},ie="rate",G="layui-rate",A="layui-icon-rate",$="layui-icon-rate-solid",v="layui-icon-rate-half",L="layui-icon-rate-solid layui-icon-rate-half",F="layui-icon-rate-solid layui-icon-rate",y="layui-icon-rate layui-icon-rate-half",u=function(h){var c=this;c.index=++_.index,c.config=x.extend({},c.config,_.config,h),c.render()};u.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},u.prototype.render=function(){var h=this,c=h.config,m=c.theme?'style="color: '+c.theme+';"':"";c.elem=x(c.elem),parseInt(c.value)!==c.value&&(c.half||(c.value=Math.ceil(c.value)-c.value<.5?Math.ceil(c.value):Math.floor(c.value)));for(var D='<ul class="layui-rate" '+(c.readonly?"readonly":"")+">",k=1;k<=c.length;k++){var q='<li class="layui-inline"><i class="layui-icon '+(k>Math.floor(c.value)?A:$)+'" '+m+"></i></li>";c.half&&parseInt(c.value)!==c.value&&k==Math.ceil(c.value)?D=D+'<li><i class="layui-icon layui-icon-rate-half" '+m+"></i></li>":D+=q}D+="</ul>"+(c.text?'<span class="layui-inline">'+c.value+"\u661F":"")+"</span>";var z=c.elem,M=z.next("."+G);M[0]&&M.remove(),h.elemTemp=x(D),c.span=h.elemTemp.next("span"),c.setText&&c.setText(c.value),z.html(h.elemTemp),z.addClass("layui-inline"),c.readonly||h.action()},u.prototype.setvalue=function(h){var c=this,m=c.config;m.value=h,c.render()},u.prototype.action=function(){var h=this,c=h.config,m=h.elemTemp,D=m.find("i").width();m.children("li").each(function(k){var q=k+1,z=x(this);z.on("click",function(M){if(c.value=q,c.half){var E=M.pageX-x(this).offset().left;E<=D/2&&(c.value=c.value-.5)}c.text&&m.next("span").text(c.value+"\u661F"),c.choose&&c.choose(c.value),c.setText&&c.setText(c.value)}),z.on("mousemove",function(M){if(m.find("i").each(function(){x(this).addClass(A).removeClass(L)}),m.find("i:lt("+q+")").each(function(){x(this).addClass($).removeClass(y)}),c.half){var E=M.pageX-x(this).offset().left;E<=D/2&&z.children("i").addClass(v).removeClass($)}}),z.on("mouseleave",function(){m.find("i").each(function(){x(this).addClass(A).removeClass(L)}),m.find("i:lt("+Math.floor(c.value)+")").each(function(){x(this).addClass($).removeClass(y)}),c.half&&parseInt(c.value)!==c.value&&m.children("li:eq("+Math.floor(c.value)+")").children("i").addClass(v).removeClass(F)})})},u.prototype.events=function(){var h=this;h.config},_.render=function(h){var c=new u(h);return O.call(c)},oe(ie,_)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_={fixbar:function(O){var ie,G,A="layui-fixbar",$="layui-fixbar-top",v=x(document),L=x("body");O=x.extend({showHeight:200},O),O.bar1=O.bar1===!0?"&#xe606;":O.bar1,O.bar2=O.bar2===!0?"&#xe607;":O.bar2,O.bgcolor=O.bgcolor?"background-color:"+O.bgcolor:"";var F=[O.bar1,O.bar2,"&#xe604;"],y=x(['<ul class="'+A+'">',O.bar1?'<li class="layui-icon" lay-type="bar1" style="'+O.bgcolor+'">'+F[0]+"</li>":"",O.bar2?'<li class="layui-icon" lay-type="bar2" style="'+O.bgcolor+'">'+F[1]+"</li>":"",'<li class="layui-icon '+$+'" lay-type="top" style="'+O.bgcolor+'">'+F[2]+"</li>","</ul>"].join("")),u=y.find("."+$),h=function(){var c=v.scrollTop();c>=O.showHeight?ie||(u.show(),ie=1):ie&&(u.hide(),ie=0)};x("."+A)[0]||(typeof O.css=="object"&&y.css(O.css),L.append(y),h(),y.find("li").on("click",function(){var c=x(this),m=c.attr("lay-type");m==="top"&&x("html,body").animate({scrollTop:0},200),O.click&&O.click.call(this,m)}),v.on("scroll",function(){clearTimeout(G),G=setTimeout(function(){h()},100)}))},countdown:function(O,ie,G){var A=this,$=typeof ie=="function",v=new Date(O).getTime(),L=new Date(!ie||$?new Date().getTime():ie).getTime(),F=v-L,y=[Math.floor(F/864e5),Math.floor(F/36e5)%24,Math.floor(F/6e4)%60,Math.floor(F/1e3)%60];$&&(G=ie);var u=setTimeout(function(){A.countdown(O,L+1e3,G)},1e3);return G&&G(F>0?y:[0,0,0,0],ie,u),F<=0&&clearTimeout(u),u},timeAgo:function(O,ie){var G=this,A=[[],[]],$=new Date().getTime()-new Date(O).getTime();return $>6912e5?($=new Date(O),A[0][0]=G.digit($.getFullYear(),4),A[0][1]=G.digit($.getMonth()+1),A[0][2]=G.digit($.getDate()),ie||(A[1][0]=G.digit($.getHours()),A[1][1]=G.digit($.getMinutes()),A[1][2]=G.digit($.getSeconds())),A[0].join("-")+" "+A[1].join(":")):$>=864e5?($/1e3/60/60/24|0)+"\u5929\u524D":$>=36e5?($/1e3/60/60|0)+"\u5C0F\u65F6\u524D":$>=12e4?($/1e3/60|0)+"\u5206\u949F\u524D":$<0?"\u672A\u6765":"\u521A\u521A"},digit:function(O,ie){var G="";O=String(O),ie=ie||2;for(var A=O.length;A<ie;A++)G+="0";return O<Math.pow(10,ie)?G+(0|O):O},toDateString:function(O,ie){var G=this,A=new Date(O||new Date),$=[G.digit(A.getFullYear(),4),G.digit(A.getMonth()+1),G.digit(A.getDate())],v=[G.digit(A.getHours()),G.digit(A.getMinutes()),G.digit(A.getSeconds())];return ie=ie||"yyyy-MM-dd HH:mm:ss",ie.replace(/yyyy/g,$[0]).replace(/MM/g,$[1]).replace(/dd/g,$[2]).replace(/HH/g,v[0]).replace(/mm/g,v[1]).replace(/ss/g,v[2])},escape:function(O){return String(O||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")}};(function(O,ie,G){function A(){$=ie[F](function(){v.each(function(){var m=O(this),D=m.width(),k=m.height(),q=O.data(this,u);(D!==q.w||k!==q.h)&&m.trigger(y,[q.w=D,q.h=k])}),A()},L[h])}var $,v=O([]),L=O.resize=O.extend(O.resize,{}),F="setTimeout",y="resize",u=y+"-special-event",h="delay",c="throttleWindow";L[h]=250,L[c]=!0,O.event.special[y]={setup:function(){if(!L[c]&&this[F])return!1;var m=O(this);v=v.add(m),O.data(this,u,{w:m.width(),h:m.height()}),v.length===1&&A()},teardown:function(){if(!L[c]&&this[F])return!1;var m=O(this);v=v.not(m),m.removeData(u),v.length||clearTimeout($)},add:function(m){function D(q,z,M){var E=O(this),ee=O.data(this,u)||{};ee.w=z!==G?z:E.width(),ee.h=M!==G?M:E.height(),k.apply(this,arguments)}if(!L[c]&&this[F])return!1;var k;return O.isFunction(m)?(k=m,D):(k=m.handler,void(m.handler=D))}}})(x,window),oe("util",_)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=function(ie){},O='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>';_.prototype.load=function(ie){var G,A,$,v,L=this,F=0;ie=ie||{};var y=x(ie.elem);if(y[0]){var u=x(ie.scrollElem||document),h=ie.mb||50,c=!("isAuto"in ie)||ie.isAuto,m=ie.end||"\u6CA1\u6709\u66F4\u591A\u4E86",D=ie.scrollElem&&ie.scrollElem!==document,k="<cite>\u52A0\u8F7D\u66F4\u591A</cite>",q=x('<div class="layui-flow-more"><a href="javascript:;">'+k+"</a></div>");y.find(".layui-flow-more")[0]||y.append(q);var z=function(ee,s){ee=x(ee),q.before(ee),s=s==0||null,s?q.html(m):q.find("a").html(k),A=s,G=null,$&&$()},M=function(){G=!0,q.find("a").html(O),typeof ie.done=="function"&&ie.done(++F,z)};if(M(),q.find("a").on("click",function(){x(this),A||G||M()}),ie.isLazyimg)var $=L.lazyimg({elem:ie.elem+" img",scrollElem:ie.scrollElem});return c&&u.on("scroll",function(){var ee=x(this),s=ee.scrollTop();v&&clearTimeout(v),A||(v=setTimeout(function(){var o=D?ee.height():x(window).height(),d=D?ee.prop("scrollHeight"):document.documentElement.scrollHeight;d-s-o<=h&&(G||M())},100))}),L}},_.prototype.lazyimg=function(ie){var G,A=this,$=0;ie=ie||{};var v=x(ie.scrollElem||document),L=ie.elem||"img",F=ie.scrollElem&&ie.scrollElem!==document,y=function(c,m){var D=v.scrollTop(),k=D+m,q=F?function(){return c.offset().top-v.offset().top+D}():c.offset().top;if(q>=D&&q<=k&&!c.attr("src")){var z=c.attr("lay-src");layui.img(z,function(){var M=A.lazyimg.elem.eq($);c.attr("src",z).removeAttr("lay-src"),M[0]&&u(M),$++})}},u=function(c,m){var D=F?(m||v).height():x(window).height(),k=v.scrollTop(),q=k+D;if(A.lazyimg.elem=x(L),c)y(c,D);else for(var z=0;z<A.lazyimg.elem.length;z++){var M=A.lazyimg.elem.eq(z),E=F?function(){return M.offset().top-v.offset().top+k}():M.offset().top;if(y(M,D),$=z,E>q)break}};if(u(),!G){var h;v.on("scroll",function(){var c=x(this);h&&clearTimeout(h),h=setTimeout(function(){u(null,c)},50)}),G=!0}return u},oe("flow",new _)}),layui.define(["layer","form"],function(oe){"use strict";var x=layui.$,_=layui.layer,O=layui.form,ie=(layui.hint(),layui.device()),G="layedit",A="layui-show",$="layui-disabled",v=function(){var o=this;o.index=0,o.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};v.prototype.set=function(o){var d=this;return x.extend(!0,d.config,o),d},v.prototype.on=function(o,d){return layui.onevent(G,o,d)},v.prototype.build=function(o,d){d=d||{};var g=this,f=g.config,w="layui-layedit",S=x(typeof o=="string"?"#"+o:o),N="LAY_layedit_"+ ++g.index,V=S.next("."+w),Z=x.extend({},f,d),X=function(){var C=[],b={};return layui.each(Z.hideTool,function(P,te){b[te]=!0}),layui.each(Z.tool,function(P,te){ee[te]&&!b[te]&&C.push(ee[te])}),C.join("")}(),J=x(['<div class="'+w+'">','<div class="layui-unselect layui-layedit-tool">'+X+"</div>",'<div class="layui-layedit-iframe">','<iframe id="'+N+'" name="'+N+'" textarea="'+o+'" frameborder="0"></iframe>',"</div>","</div>"].join(""));return ie.ie&&ie.ie<8?S.removeClass("layui-hide").addClass(A):(V[0]&&V.remove(),L.call(g,J,S[0],Z),S.addClass("layui-hide").after(J),g.index)},v.prototype.getContent=function(o){var d=F(o);if(d[0])return y(d[0].document.body.innerHTML)},v.prototype.getText=function(o){var d=F(o);if(d[0])return x(d[0].document.body).text()},v.prototype.setContent=function(o,d,g){var f=F(o);f[0]&&(g?x(f[0].document.body).append(d):x(f[0].document.body).html(d),layedit.sync(o))},v.prototype.sync=function(o){var d=F(o);if(d[0]){var g=x("#"+d[1].attr("textarea"));g.val(y(d[0].document.body.innerHTML))}},v.prototype.getSelection=function(o){var d=F(o);if(d[0]){var g=c(d[0].document);return document.selection?g.text:g.toString()}};var L=function(o,d,g){var f=this,w=o.find("iframe");w.css({height:g.height}).on("load",function(){var S=w.contents(),N=w.prop("contentWindow"),V=S.find("head"),Z=x(["<style>","*{margin: 0; padding: 0;}","body{padding: 10px; line-height: 20px; overflow-x: hidden; word-wrap: break-word; font: 14px Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Tahoma,Arial,sans-serif; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}","a{color:#01AAED; text-decoration:none;}a:hover{color:#c00}","p{margin-bottom: 10px;}","img{display: inline-block; border: none; vertical-align: middle;}","pre{margin: 10px 0; padding: 10px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}","</style>"].join("")),X=S.find("body");V.append(Z),X.attr("contenteditable","true").css({"min-height":g.height}).html(d.value||""),u.apply(f,[N,w,d,g]),q.call(f,N,o,g)})},F=function(o){var d=x("#LAY_layedit_"+o),g=d.prop("contentWindow");return[g,d]},y=function(o){return ie.ie==8&&(o=o.replace(/<.+>/g,function(d){return d.toLowerCase()})),o},u=function(o,d,g,f){var w=o.document,S=x(w.body);S.on("keydown",function(N){var V=N.keyCode;if(V===13){var Z=c(w),X=m(Z),J=X.parentNode;if(J.tagName.toLowerCase()==="pre")return N.shiftKey?void 0:(_.msg("\u8BF7\u6682\u65F6\u7528shift+enter"),!1);w.execCommand("formatBlock",!1,"<p>")}}),x(g).parents("form").on("submit",function(){var N=S.html();ie.ie==8&&(N=N.replace(/<.+>/g,function(V){return V.toLowerCase()})),g.value=N}),S.on("paste",function(N){w.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){h.call(o,S),g.value=S.html()},100)})},h=function(o){var d=this;d.document,o.find("*[style]").each(function(){var g=this.style.textAlign;this.removeAttribute("style"),x(this).css({"text-align":g||""})}),o.find("table").addClass("layui-table"),o.find("script,link").remove()},c=function(o){return o.selection?o.selection.createRange():o.getSelection().getRangeAt(0)},m=function(o){return o.endContainer||o.parentElement().childNodes[0]},D=function(o,d,g){var f=this.document,w=document.createElement(o);for(var S in d)w.setAttribute(S,d[S]);if(w.removeAttribute("text"),f.selection){var N=g.text||d.text;if(o==="a"&&!N)return;N&&(w.innerHTML=N),g.pasteHTML(x(w).prop("outerHTML")),g.select()}else{var N=g.toString()||d.text;if(o==="a"&&!N)return;N&&(w.innerHTML=N),g.deleteContents(),g.insertNode(w)}},k=function(o,d){var g=this.document,f="layedit-tool-active",w=m(c(g)),S=function(N){return o.find(".layedit-tool-"+N)};d&&d[d.hasClass(f)?"removeClass":"addClass"](f),o.find(">i").removeClass(f),S("unlink").addClass($),x(w).parents().each(function(){var N=this.tagName.toLowerCase(),V=this.style.textAlign;N!=="b"&&N!=="strong"||S("b").addClass(f),N!=="i"&&N!=="em"||S("i").addClass(f),N==="u"&&S("u").addClass(f),N==="strike"&&S("d").addClass(f),N==="p"&&(V==="center"?S("center").addClass(f):V==="right"?S("right").addClass(f):S("left").addClass(f)),N==="a"&&(S("link").addClass(f),S("unlink").removeClass($))})},q=function(o,d,g){var f=o.document,w=x(f.body),S={link:function(X){var J=m(X),C=x(J).parent();z.call(w,{href:C.attr("href"),target:C.attr("target")},function(b){var P=C[0];P.tagName==="A"?P.href=b.url:D.call(o,"a",{target:b.target,href:b.url,text:b.url},X)})},unlink:function(X){f.execCommand("unlink")},face:function(X){M.call(this,function(J){D.call(o,"img",{src:J.src,alt:J.alt},X)})},image:function(X){var J=this;layui.use("upload",function(C){var b=g.uploadImage||{};C.render({url:b.url,method:b.type,elem:x(J).find("input")[0],done:function(P){P.code==0?(P.data=P.data||{},D.call(o,"img",{src:P.data.src,alt:P.data.title},X)):_.msg(P.msg||"\u4E0A\u4F20\u5931\u8D25")}})})},code:function(X){E.call(w,function(J){D.call(o,"pre",{text:J.code,"lay-lang":J.lang},X)})},help:function(){_.open({type:2,title:"\u5E2E\u52A9",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},N=d.find(".layui-layedit-tool"),V=function(){var X=x(this),J=X.attr("layedit-event"),C=X.attr("lay-command");if(!X.hasClass($)){w.focus();var b=c(f);b.commonAncestorContainer,C?(f.execCommand(C),/justifyLeft|justifyCenter|justifyRight/.test(C)&&f.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){w.focus()},10)):S[J]&&S[J].call(this,b),k.call(o,N,X)}},Z=/image/;N.find(">i").on("mousedown",function(){var X=x(this),J=X.attr("layedit-event");Z.test(J)||V.call(this)}).on("click",function(){var X=x(this),J=X.attr("layedit-event");Z.test(J)&&V.call(this)}),w.on("click",function(){k.call(o,N),_.close(M.index)})},z=function(o,d){var g=this,f=_.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"\u8D85\u94FE\u63A5",skin:"layui-layer-msg",content:['<ul class="layui-form" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">URL</label>','<div class="layui-input-block" style="margin-left: 90px">','<input name="url" lay-verify="url" value="'+(o.href||"")+'" autofocus="true" autocomplete="off" class="layui-input">',"</div>","</li>",'<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">\u6253\u5F00\u65B9\u5F0F</label>','<div class="layui-input-block" style="margin-left: 90px">','<input type="radio" name="target" value="_self" class="layui-input" title="\u5F53\u524D\u7A97\u53E3"'+(o.target!=="_self"&&o.target?"":"checked")+">",'<input type="radio" name="target" value="_blank" class="layui-input" title="\u65B0\u7A97\u53E3" '+(o.target==="_blank"?"checked":"")+">","</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-link-yes" class="layui-btn"> \u786E\u5B9A </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> \u53D6\u6D88 </button>',"</li>","</ul>"].join(""),success:function(w,S){var N="submit(layedit-link-yes)";O.render("radio"),w.find(".layui-btn-primary").on("click",function(){_.close(S),g.focus()}),O.on(N,function(V){_.close(z.index),d&&d(V.field)})}});z.index=f},M=function(o){var d=function(){var g=["[\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]"],f={};return layui.each(g,function(w,S){f[S]=layui.cache.dir+"images/face/"+w+".gif"}),f}();return M.hide=M.hide||function(g){x(g.target).attr("layedit-event")!=="face"&&_.close(M.index)},M.index=_.tips(function(){var g=[];return layui.each(d,function(f,w){g.push('<li title="'+f+'"><img src="'+w+'" alt="'+f+'"></li>')}),'<ul class="layui-clear">'+g.join("")+"</ul>"}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(g,f){g.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){o&&o({src:d[this.title],alt:this.title}),_.close(f)}),x(document).off("click",M.hide).on("click",M.hide)}})},E=function(o){var d=this,g=_.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:['<ul class="layui-form layui-form-pane" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label">\u8BF7\u9009\u62E9\u8BED\u8A00</label>','<div class="layui-input-block">','<select name="lang">','<option value="JavaScript">JavaScript</option>','<option value="HTML">HTML</option>','<option value="CSS">CSS</option>','<option value="Java">Java</option>','<option value="PHP">PHP</option>','<option value="C#">C#</option>','<option value="Python">Python</option>','<option value="Ruby">Ruby</option>','<option value="Go">Go</option>',"</select>","</div>","</li>",'<li class="layui-form-item layui-form-text">','<label class="layui-form-label">\u4EE3\u7801</label>','<div class="layui-input-block">','<textarea name="code" lay-verify="required" autofocus="true" class="layui-textarea" style="height: 200px;"></textarea>',"</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-code-yes" class="layui-btn"> \u786E\u5B9A </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> \u53D6\u6D88 </button>',"</li>","</ul>"].join(""),success:function(f,w){var S="submit(layedit-code-yes)";O.render("select"),f.find(".layui-btn-primary").on("click",function(){_.close(w),d.focus()}),O.on(S,function(N){_.close(E.index),o&&o(N.field)})}});E.index=g},ee={html:'<i class="layui-icon layedit-tool-html" title="HTML\u6E90\u4EE3\u7801" lay-command="html" layedit-event="html"">&#xe64b;</i><span class="layedit-tool-mid"></span>',strong:'<i class="layui-icon layedit-tool-b" title="\u52A0\u7C97" lay-command="Bold" layedit-event="b"">&#xe62b;</i>',italic:'<i class="layui-icon layedit-tool-i" title="\u659C\u4F53" lay-command="italic" layedit-event="i"">&#xe644;</i>',underline:'<i class="layui-icon layedit-tool-u" title="\u4E0B\u5212\u7EBF" lay-command="underline" layedit-event="u"">&#xe646;</i>',del:'<i class="layui-icon layedit-tool-d" title="\u5220\u9664\u7EBF" lay-command="strikeThrough" layedit-event="d"">&#xe64f;</i>',"|":'<span class="layedit-tool-mid"></span>',left:'<i class="layui-icon layedit-tool-left" title="\u5DE6\u5BF9\u9F50" lay-command="justifyLeft" layedit-event="left"">&#xe649;</i>',center:'<i class="layui-icon layedit-tool-center" title="\u5C45\u4E2D\u5BF9\u9F50" lay-command="justifyCenter" layedit-event="center"">&#xe647;</i>',right:'<i class="layui-icon layedit-tool-right" title="\u53F3\u5BF9\u9F50" lay-command="justifyRight" layedit-event="right"">&#xe648;</i>',link:'<i class="layui-icon layedit-tool-link" title="\u63D2\u5165\u94FE\u63A5" layedit-event="link"">&#xe64c;</i>',unlink:'<i class="layui-icon layedit-tool-unlink layui-disabled" title="\u6E05\u9664\u94FE\u63A5" lay-command="unlink" layedit-event="unlink"">&#xe64d;</i>',face:'<i class="layui-icon layedit-tool-face" title="\u8868\u60C5" layedit-event="face"">&#xe650;</i>',image:'<i class="layui-icon layedit-tool-image" title="\u56FE\u7247" layedit-event="image">&#xe64a;<input type="file" name="file"></i>',code:'<i class="layui-icon layedit-tool-code" title="\u63D2\u5165\u4EE3\u7801" layedit-event="code">&#xe64e;</i>',help:'<i class="layui-icon layedit-tool-help" title="\u5E2E\u52A9" layedit-event="help">&#xe607;</i>'},s=new v;oe(G,s)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_="http://www.layui.com/doc/modules/code.html";oe("code",function(O){var ie=[];O=O||{},O.elem=x(O.elem||".layui-code"),O.about=!("about"in O)||O.about,O.elem.each(function(){ie.push(this)}),layui.each(ie.reverse(),function(G,A){var $=x(A),v=$.html();($.attr("lay-encode")||O.encode)&&(v=v.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")),$.html('<ol class="layui-code-ol"><li>'+v.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),$.find(">.layui-code-h3")[0]||$.prepend('<h3 class="layui-code-h3">'+($.attr("lay-title")||O.title||"code")+(O.about?'<a href="'+_+'" target="_blank">layui.code</a>':"")+"</h3>");var L=$.find(">.layui-code-ol");$.addClass("layui-box layui-code-view"),($.attr("lay-skin")||O.skin)&&$.addClass("layui-code-"+($.attr("lay-skin")||O.skin)),(L.find("li").length/100|0)>0&&L.css("margin-left",(L.find("li").length/100|0)+"px"),($.attr("lay-height")||O.height)&&L.css("max-height",$.attr("lay-height")||O.height)})})}).addcss("modules/code.css","skincodecss");