(function(){var j=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],k=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,p=typeof location!=="undefined"&&location.href,m=p&&location.protocol&&location.protocol.replace(/\:/,""),n=p&&location.hostname,o=p&&(location.port||void 0),i=[];define(function(){var a,b,c;typeof window!=="undefined"&&window.navigator&&window.document?b=function(d,f){var e=a.createXhr();e.open("GET",d,!0);e.onreadystatechange=function(){e.readyState===4&&f(e.responseText)};e.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(c=require.nodeRequire("fs"),b=function(d,f){var e=c.readFileSync(d,"utf8");e.indexOf("\ufeff")===0&&(e=e.substring(1));f(e)}):typeof Packages!=="undefined"&&(b=function(d,f){var e=new java.io.File(d),h=java.lang.System.getProperty("line.separator"),e=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(e),"utf-8")),g,s,t="";try{g=new java.lang.StringBuffer;(s=e.readLine())&&s.length()&&s.charAt(0)===65279&&(s=s.substring(1));for(g.append(s);(s=e.readLine())!==null;){g.append(h),g.append(s)}t=String(g.toString())}finally{e.close()}f(t)});return a={version:"0.0.0",strip:function(e){if(e){var e=e.replace(k,""),d=e.match(l);d&&(e=d[1])}else{e=""}return e},jsEscape:function(d){return d.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var d,f,e;if(typeof XMLHttpRequest!=="undefined"){return new XMLHttpRequest}else{for(f=0;f<3;f++){e=j[f];try{d=new ActiveXObject(e)}catch(g){}if(d){j=[e];break}}}if(!d){throw Error("createXhr(): XMLHttpRequest not available")}return d},get:b,parseName:function(d){var f=!1,e=d.indexOf("."),g=d.substring(0,e),d=d.substring(e+1,d.length),e=d.indexOf("!");e!==-1&&(f=d.substring(e+1,d.length),f=f==="strip",d=d.substring(0,e));return{moduleName:g,ext:d,strip:f}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(d,f,e,h){var g=a.xdRegExp.exec(d),r;if(!g){return !0}d=g[2];g=g[3];g=g.split(":");r=g[1];g=g[0];return(!d||d===f)&&(!g||g===e)&&(!r&&!g||r===h)},finishLoad:function(d,f,e,h,g){e=f?a.strip(e):e;g.isBuild&&(i[d]=e);h(e)},load:function(v,e,w,g){if(g.isBuild&&!g.inlineText){w()}else{var f=a.parseName(v),h=f.moduleName+"."+f.ext,d=e.toUrl(h),u=g&&g.text&&g.text.useXhr||a.useXhr;!p||u(d,m,n,o)?a.get(d,function(q){a.finishLoad(v,f.strip,q,w,g)}):e([h],function(q){a.finishLoad(f.moduleName+"."+f.ext,f.strip,q,w,g)})}},write:function(d,f,e){if(f in i){var g=a.jsEscape(i[f]);e.asModule(d+"!"+f,"define(function () { return '"+g+"';});\n")}},writeFile:function(d,f,e,h,g){var f=a.parseName(f),s=f.moduleName+"."+f.ext,t=e.toUrl(f.moduleName+"."+f.ext)+".js";a.load(s,e,function(){var q=function(r){return h(t,r)};q.asModule=function(r,v){return h.asModule(r,t,v)};a.write(d,s,q,g)},g)}}})})();