dispatch.to("Foundry/2.1 Core Plugins").at(function(e,t){e.stylesheet=function(){var t=function(n,r){var i={};return e.extend(i,t.defaultOptions,e.isPlainObject(n)?n:{url:n,attr:r||{}}),i.url===undefined?!1:t.inject(i)},n=31,r=31,i=4095;return e.extend(t,{defaultOptions:{type:"text/css",rel:"stylesheet",media:"all",forceInject:!1,xhr:!1,bleedImports:!1,bleedRules:!1},setup:function(n){e.extend(t.defaultOptions,n)},availability:function(){var i={},s=e('link[rel*="stylesheet"]');return styles=e("style"),i.groups=n-s.length-styles.length,i.slots=i.groups*r,t.currentGroup&&(i.slots+=r-t.currentGroup.imports.length),i},insert:function(){return},inject:function(n){return e.browser.msie&&!n.forceInject?t._import(n):(e("<link>").attr({href:n.url,type:n.type,rel:n.rel,media:n.media}).appendTo("head"),!0)},_import:function(e){var n;if(t.currentGroup===undefined){var r;try{r=document.createStyleSheet(),r.media="all",r.title="jquery_stylesheet"}catch(i){n=!0,e.verbose&&console.error("There is not enough slots left to create a new stylesheet group.")}if(n)return!1;t.currentGroup=r}try{t.currentGroup.addImport(e.url)}catch(i){n=!0,e.verbose&&console.info("Slots exceeded. Creating a new stylesheet group.")}return n?(t.currentGroup=undefined,t._import(e)):!0}}),t}()});