import e from"../../node_modules/@emotion/cache/dist/emotion-cache.esm.js";import{serializeStyles as r}from"../../../serialize/dist/emotion-serialize.esm.js";import{getRegisteredStyles as t,insertStyles as n}from"../../../utils/dist/emotion-utils.esm.js";function i(e,r){if(void 0===e.inserted[r.name])return e.insert("",r,e.sheet,!0)}function s(e,r,n){var i=[],s=t(e,i,n);return i.length<2?n:s+r(i)}var o=function e(r){for(var t="",n=0;n<r.length;n++){var i=r[n];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=e(i);else for(var o in s="",i)i[o]&&o&&(s&&(s+=" "),s+=o);break;default:s=i}s&&(t&&(t+=" "),t+=s)}}return t};export default function(a){var f=e(a);f.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},f.compat=!0;var u=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=r(t,f.registered,void 0);return n(f,s,!1),f.key+"-"+s.name};return{css:u,cx:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return s(f.registered,u,o(r))},injectGlobal:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=r(t,f.registered);i(f,s)},keyframes:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=r(t,f.registered),o="animation-"+s.name;return i(f,{name:s.name,styles:"@keyframes "+o+"{"+s.styles+"}"}),o},hydrate:function(e){e.forEach((function(e){f.inserted[e]=!0}))},flush:function(){f.registered={},f.inserted={},f.sheet.flush()},sheet:f.sheet,cache:f,getRegisteredStyles:t.bind(null,f.registered),merge:s.bind(null,f.registered,u)}}
//# sourceMappingURL=emotion-css-create-instance.esm.js.map
