//>>built
define("xstyle/load-imports",[],function(){var _1={},_2={"dom-deep-import":!document.createStyleSheet};function _3(_4){return _2[_4];};function _5(_6,_7){var _8=_6.sheet||_6.styleSheet;loadingCount=1;function _9(){if(!--loadingCount){_a(_8);_7&&_7(_8);}};function _a(_b){var _c="";var _d=!_b.disabled&&(_b.imports||_b.rules||_b.cssRules);for(var i=0;i<_d.length;i++){var _e=_d[i];if(_e.href){_c+=_a(_e.styleSheet||_e);}}return _b.source=_c+_b.localSource;};if(!_3("dom-deep-import")){var _f=function(_10,_11){var _12=[];_10.cssText.replace(/@import url\( ([^ ]+) \)/g,function(t,url){_12.push(_2e(_11,url));});return _12;},_13=function(){var _14,_8=_6.styleSheet;if(_8.processed){return;}var _15=_8.correctHref=_2e(location.toString(),_8.href);if(!_8.computedUrls){_8.computedUrls=_f(_8,_15);}for(var i=0;i<_8.imports.length;i++){var _16=_8.imports[i];if(!_16.cssText&&!_16.imports.length){setTimeout(_13,50);return;}var _17=_16.correctHref=_8.computedUrls[i];var _18=_f(_16,_17);for(var j=0;j<_16.imports.length;j++){var _19=_16.imports[j];if(!_19.correctHref){_14=true;_6.onload=_13;var _1a=_18[j]||_16.href;_8.computedUrls.splice(i,0,_1a);try{_8.addImport(_1a,i++);}catch(e){}_19.correctHref=_1a;}}}if(_14){setTimeout(_13,50);}else{_8.processed=true;_1b(_8);}};_13();return _9();}_1b(_8);_9();function _1b(_1c,_1d){var _1e=_2e(_1d,_1c.correctHref||_1c.href);if(!_1c.addRule){_1c.addRule=function(_1f,_20,_21){return this.insertRule(_1f+"{"+_20+"}",_21>=0?_21:this.cssRules.length);};}if(!_1c.deleteRule){_1c.deleteRule=_1c.removeRule;}var _22=_1e&&_1[_1e];if(_22){var _23;if(_22!=_1c){var _24=_1c.parentStyleSheet;var _25=_22.ownerElement;if(_25.compareDocumentPosition?_25.compareDocumentPosition(_6)!=2:_25.sourceIndex<=_6.sourceIndex){_23=_1c;}else{_23=_22;_22=_1[_1e]=_1c;}_23.addRule=function(c,s,i){_22.addRule(c,s,i>-1?i:-1);};_23.deleteRule=function(i){_22.deleteRule(i);};var _26=_23.ownerNode||!_24&&_23.owningElement;if(_26){_26.parentNode.removeChild(_26);}else{_23.disabled=true;if("cssText" in _23){_23.cssText="";}else{_26=_23.ownerRule;if(_26){try{var _24=_26.parentStyleSheet;var _27=_24.cssRules;for(var i=0;i<_27.length;i++){if(_27[i]==_26){_24.deleteRule(i);break;}}return true;}catch(e){console.log(e);}}}}}}if(_23!=_1c){if(_1e){_1[_1e]=_1c;_1c.ownerElement=_6;var _28=_1c;loadingCount++;_33(_1e,function(_29){_28.localSource=_29;_9();});}var _2a=_1c.rules||_1c.cssRules;for(var i=0;i<_2a.length;i++){var _2b=_2a[i];if(_2b.selectorText&&_2b.selectorText.substring(0,2)=="x-"){_1c.needsParsing=true;}}var _2c=_1c.imports||_2a;for(var i=0;i<_2c.length;i++){var _2b=_2c[i];if(_2b.href){var _24=_1c;var _2d=_2b.styleSheet||_2b;if(_1b(_2d,_1e)){i--;}if(_2d.needsParsing){_1c.needsParsing=true;}}}}};};function _2e(_2f,url){if(!url||url.indexOf(":")>0||url.charAt(0)=="/"){return url;}var _30;url=((_2f||location.toString()).replace(/[^\/]*$/,"")+url).replace(/\/\.\//g,"/");while(_30!=url){_30=url;url=url.replace(/\/[^\/]+\/\.\.\//g,"/");}return url;};return _5;var _31=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];function xhr(){if(typeof XMLHttpRequest!=="undefined"){xhr=function(){return new XMLHttpRequest();};}else{var _32=xhr=function(){throw new Error("getXhr(): XMLHttpRequest not available");};while(_31.length>0&&xhr===_32){(function(id){try{new ActiveXObject(id);xhr=function(){return new ActiveXObject(id);};}catch(ex){}}(_31.shift()));}}return xhr();};function _33(url,_34,_35){var x=xhr();x.open("GET",url,true);x.onreadystatechange=function(e){if(x.readyState===4){if(x.status<400){_34(x.responseText);}else{_35(new Error("fetchText() failed. status: "+x.statusText));}}};x.send(null);};});