css.min_wev8.js 1.36 KB
define("css",function(){if("undefined"==typeof window)return{load:function(e,t,n){n()}};var o=document.getElementsByTagName("head")[0],e=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,r=!1,s=!0;e[1]||e[7]?r=parseInt(e[1])<6||parseInt(e[7])<=9:e[2]||e[8]?s=!1:e[4]&&(r=parseInt(e[4])<18);var i,a,l,t={pluginBuilder:"./css-builder"},u=function(){i=document.createElement("style"),o.appendChild(i),a=i.styleSheet||i.sheet},n=0,c=[],d=function(e){32==++n&&(u(),n=0),a.addImport(e),i.onload=function(){f()}},f=function(){l();var e=c.shift();return e?(l=e[1],void d(e[0])):void(l=null)};return t.normalize=function(e,t){return".css"==e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),t(e)},t.load=function(e,t,n){(r?function(e,t){if(a&&a.addImport||u(),a&&a.addImport)l?c.push([e,t]):(d(e),l=t);else{i.textContent='@import "'+e+'";';var n=setInterval(function(){try{i.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}}:function(e,t){var n=document.createElement("link");if(n.type="text/css",n.rel="stylesheet",s)n.onload=function(){n.onload=function(){},setTimeout(t,7)};else var r=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].href==n.href)return clearInterval(r),t()},10);n.href=e,o.appendChild(n)})(t.toUrl(e+".css"),n)},t});