(function(e){var I={data:{},libs:{},staticURL:"",siteURL:"",assetsURL:ASSETS_URL,fixFileName:null};if(typeof BUILD_TIME!="undefined"){I.fixFileName=function(e){if(e.length>1){return e.join("?")+"&t="+BUILD_TIME}return e[0]+"?t="+BUILD_TIME}}I.getValue=function(e,n){var t=e.split(".");var i=n[t.shift()];if(i===null)return"";for(var a=0,l=t.length;a<l;a++){i=i[t[a]];if(i===null)return""}return typeof i!=="undefined"&&i!==null?i:""};I.parseTmpl=function(e,t){return e.replace(/\{=([\w\.]*)=\}/g,function(e,n){return I.getValue(n,t)})};function R(e){e=Array.isArray(e)?e[0]:String(e).split("?")[0];var n=String(e).lastIndexOf(".");if(n==-1)return"";return e.substring(n).toLowerCase()}I.include=function(e,n,t,i,a){if(n==null)n="head";if(t==null)t=true;if(n=="head"&&typeof I.data["include"]=="undefined"){var l=$("#js-lazyload-begin"),r=$("#css-lazyload-begin");I.data.include={before:{},after:{}};if(l.length>0){I.data.include.after.script=l}else{var f=$("#js-lazyload-end");if(f.length>0)I.data.include.before.script=f}if(r.length>0){I.data.include.after.link=r}else{var s=$("#css-lazyload-end");if(s.length>0)I.data.include.before.link=s}}$.ajaxSetup({cache:true});var u=typeof e=="string"?[e]:e;var c={success:0,failure:0,total:u.length};if(i||a){var d=setInterval(function(){if(c.success+c.failure<u.length)return;clearInterval(d);if(c.success>=u.length){i&&i()}else{a&&a()}},200)}for(var o=0;o<u.length;o++){var p=u[o].replace(/^\s|\s$/g,""),g=p.split("?"),y=R(g),h=y==".css";if(I.fixFileName)p=I.fixFileName(g);var v=(h?"href":"src")+"='"+p+"'";if(t&&$(b+"["+v+"]").length>0){c.success++;continue}var b,L,U;if(h){b="link";U="/>";L=' type="text/css" rel="stylesheet"'}else{b="script";U="></"+b+">";L=' type="text/javascript"'}L+=' charset="utf-8" ';var S=$("<"+b+L+v+U);var x=S[0];if(x.readyState){x.onreadystatechange=function(){if(x.readyState==="loaded"||x.readyState==="complete"){x.onreadystatechange=null;c.success++}}}else{x.onload=function(){c.success++}}if(n=="head"){if(typeof I.data.include.after[b]!="undefined"){I.data.include.after[b].after(S);c.success++;continue}if(typeof I.data.include.before[b]!="undefined"){I.data.include.before[b].before(S);c.success++;continue}}try{$(n).append(S);c.success++}catch(e){c.failure++;console.error(e.message);console.log(p)}}$.ajaxSetup({cache:false})};I.defined=function(e,n,t,i,a){if(e!="undefined"||n==null){if(n!=null&&t!=null)return t();return}if(typeof n=="string"&&typeof I.libs[n]!="undefined")n=I.libs[n];var l=i;if(t!=null){if($.isPlainObject(t)){if(typeof t["success"]!="undefined")l=t["success"];if(typeof t["error"]!="undefined")a=t["error"];else if(typeof t["failure"]!="undefined")a=t["failure"]}else if(i!=null){l=function(){i();t()}}else{l=t}}I.includes(n,true,l,a)};I.fullURL=function(e){var n=I.staticURL;if(e.substring(0,1)=="#"){n=I.assetsURL+"/js/";e=e.substring(1)}return n+e};I.includes=function(e,n,t,i){if(!e)return;switch(typeof e){case"string":I.include(I.fullURL(e),null,n,t,i);break;default:if(typeof e.length=="undefined")return;var a=[];for(var l=0;l<e.length;l++){a.push(I.fullURL(e[l]))}I.include(a,null,n,t,i)}};e.loader=I})(App);