Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-global

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-global - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

readme.md

4

changelog.md

@@ -0,1 +1,5 @@

## 0.4.1 / 2017-01-14
- Fixed comma separated scoped selectors (cssinjs/jss#400)
## 0.4.0 / 2016-12-23

@@ -2,0 +6,0 @@

6

dist/jss-global.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssGlobal=t():e.jssGlobal=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){var t=e.options,n=e.style,r=n[f];if(r){for(var u in r){var i=e.selector+" "+u;t.sheet.addRule(u,r[u],s({},t,{selector:i,generateClassName:null}))}delete n[f]}}function i(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,f.length)===f){var u=r.substr(f.length).trim(),i=e.selector+" "+u;t.sheet.addRule(i,n[r],s({},t,{selector:i,generateClassName:null})),delete n[r]}}function o(){function e(e,t,n){if(e===f)return new d(e,t,n);if("@"===e[0]&&e.substr(0,c.length)===c)return new h(e,t,n);var r=n.parent;return r&&("global"!==r.type&&"global"!==r.options.parent.type||(n.global=!0)),n.global&&(n.selector=e,n.generateClassName=null),null}function t(e){"regular"===e.type&&e.style&&(u(e),i(e))}return{onCreateRule:e,onProcessRule:t}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var l=n(1),f="@global",c="@global ",d=function(){function e(t,n,u){r(this,e),this.type="global",this.name=t,this.options=u,this.rules=new l.RulesContainer(s({},u,{parent:this}));for(var i in n)this.rules.add(i,n[i],{generateClassName:null,selector:i});this.rules.process()}return a(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,s({},n,{generateClassName:null}));return this.options.jss.plugins.onProcessRule(r),r}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(){return this.rules.toString()}}]),e}(),h=function(){function e(t,n,u){r(this,e),this.name=t,this.options=u;var i=t.substr(c.length);this.rule=u.jss.createRule(i,n,s({},u,{parent:this,selector:i,generateClassName:null}))}return a(e,[{key:"toString",value:function(e){return this.rule.toString(e)}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.sheets=t.RulesContainer=t.SheetsRegistry=void 0;var u=n(2),i=r(u),o=n(87),s=r(o),a=n(89),l=r(a),f=n(86),c=r(f);/**
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssGlobal=t():e.jssGlobal=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=e.split(v),r="",u=0;u<n.length;u++)r+=t+" "+n[u].trim(),n[u+1]&&(r+=", ");return r}function i(e){var t=e.options,n=e.style,r=n[c];if(r){for(var i in r)t.sheet.addRule(i,r[i],a({},t,{selector:u(i,e.selector),generateClassName:null}));delete n[c]}}function o(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,c.length)===c){var i=u(r.substr(c.length),e.selector);t.sheet.addRule(i,n[r],a({},t,{selector:i,generateClassName:null})),delete n[r]}}function s(){function e(e,t,n){if(e===c)return new h(e,t,n);if("@"===e[0]&&e.substr(0,d.length)===d)return new p(e,t,n);var r=n.parent;return r&&("global"!==r.type&&"global"!==r.options.parent.type||(n.global=!0)),n.global&&(n.selector=e,n.generateClassName=null),null}function t(e){"regular"===e.type&&e.style&&(i(e),o(e))}return{onCreateRule:e,onProcessRule:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var f=n(1),c="@global",d="@global ",h=function(){function e(t,n,u){r(this,e),this.type="global",this.name=t,this.options=u,this.rules=new f.RulesContainer(a({},u,{parent:this}));for(var i in n)this.rules.add(i,n[i],{generateClassName:null,selector:i});this.rules.process()}return l(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,a({},n,{generateClassName:null}));return this.options.jss.plugins.onProcessRule(r),r}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(){return this.rules.toString()}}]),e}(),p=function(){function e(t,n,u){r(this,e),this.name=t,this.options=u;var i=t.substr(d.length);this.rule=u.jss.createRule(i,n,a({},u,{parent:this,selector:i,generateClassName:null}))}return l(e,[{key:"toString",value:function(e){return this.rule.toString(e)}}]),e}(),v=/\s*,\s*/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.sheets=t.RulesContainer=t.SheetsRegistry=void 0;var u=n(2),i=r(u),o=n(87),s=r(o),a=n(89),l=r(a),f=n(86),c=r(f);/**
* A better abstraction over CSS.

@@ -8,4 +8,4 @@ *

*/
t.SheetsRegistry=s.default,t.RulesContainer=l.default,t.sheets=c.default;var d=t.create=function(e){return new i.default(e)};t.default=d()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),i=r(u),o=n(71),s=r(o),a=n(76),l=r(a),f=n(77),c=r(f),d=n(81),h=r(d),p=n(95),v=r(p),y=n(96),g=r(y),m=n(86),b=r(m),_=n(101),x=r(_),O=n(90),S=r(O),j=n(82),k=r(j),w=function(){function e(t){(0,l.default)(this,e),this.version="6.0.2",this.plugins=new v.default,this.use.apply(this,g.default),this.setup(t)}return(0,c.default)(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=(0,s.default)({},e,{generateClassName:e.generateClassName||x.default});var t=this.options.plugins;return t&&this.use.apply(this,t),this}},{key:"createStyleSheet",value:function(e,t){return new h.default(e,(0,s.default)({jss:this,generateClassName:this.options.generateClassName},t))}},{key:"removeStyleSheet",value:function(e){return e.detach(),b.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===("undefined"==typeof e?"undefined":(0,i.default)(e))&&(n=t,t=e,e=void 0),n.classes||(n.classes={}),n.jss||(n.jss=this),n.Renderer||(n.Renderer=(0,k.default)(n)),n.generateClassName||(n.generateClassName=this.options.generateClassName||x.default);var r=(0,S.default)(e,t,n);return this.plugins.onProcessRule(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.plugins.use(t)}),this}}]),e}();t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=n(4),i=r(u),o=n(55),s=r(o),a="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===a(i.default)?function(e){return"undefined"==typeof e?"undefined":a(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":a(e)}},function(e,t,n){e.exports={default:n(5),__esModule:!0}},function(e,t,n){n(6),n(50),e.exports=n(54).f("iterator")},function(e,t,n){"use strict";var r=n(7)(!0);n(10)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(8),u=n(9);e.exports=function(e){return function(t,n){var i,o,s=String(u(t)),a=r(n),l=s.length;return a<0||a>=l?e?"":void 0:(i=s.charCodeAt(a),i<55296||i>56319||a+1===l||(o=s.charCodeAt(a+1))<56320||o>57343?e?s.charAt(a):i:e?s.slice(a,a+2):(i-55296<<10)+(o-56320)+65536)}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(11),u=n(12),i=n(27),o=n(17),s=n(28),a=n(29),l=n(30),f=n(46),c=n(48),d=n(47)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",y="values",g=function(){return this};e.exports=function(e,t,n,m,b,_,x){l(n,t,m);var O,S,j,k=function(e){if(!h&&e in R)return R[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",P=b==y,M=!1,R=e.prototype,N=R[d]||R[p]||b&&R[b],C=N||k(b),E=b?P?k("entries"):C:void 0,A="Array"==t?R.entries||N:N;if(A&&(j=c(A.call(new e)),j!==Object.prototype&&(f(j,w,!0),r||s(j,d)||o(j,d,g))),P&&N&&N.name!==y&&(M=!0,C=function(){return N.call(this)}),r&&!x||!h&&!M&&R[d]||o(R,d,C),a[t]=C,a[w]=g,b)if(O={values:P?C:k(y),keys:_?C:k(v),entries:E},x)for(S in O)S in R||i(R,S,O[S]);else u(u.P+u.F*(h||M),t,O);return O}},function(e,t){e.exports=!0},function(e,t,n){var r=n(13),u=n(14),i=n(15),o=n(17),s="prototype",a=function(e,t,n){var l,f,c,d=e&a.F,h=e&a.G,p=e&a.S,v=e&a.P,y=e&a.B,g=e&a.W,m=h?u:u[t]||(u[t]={}),b=m[s],_=h?r:p?r[t]:(r[t]||{})[s];h&&(n=t);for(l in n)f=!d&&_&&void 0!==_[l],f&&l in m||(c=f?_[l]:n[l],m[l]=h&&"function"!=typeof _[l]?n[l]:y&&f?i(c,r):g&&_[l]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(c):v&&"function"==typeof c?i(Function.call,c):c,v&&((m.virtual||(m.virtual={}))[l]=c,e&a.R&&b&&!b[l]&&o(b,l,c)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(16);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,u){return e.call(t,n,r,u)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(18),u=n(26);e.exports=n(22)?function(e,t,n){return r.f(e,t,u(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(19),u=n(21),i=n(25),o=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),u)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(20);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(22)&&!n(23)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(20),u=n(13).document,i=r(u)&&r(u.createElement);e.exports=function(e){return i?u.createElement(e):{}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(!r(e))return e;var n,u;if(t&&"function"==typeof(n=e.toString)&&!r(u=n.call(e)))return u;if("function"==typeof(n=e.valueOf)&&!r(u=n.call(e)))return u;if(!t&&"function"==typeof(n=e.toString)&&!r(u=n.call(e)))return u;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports=n(17)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(31),u=n(26),i=n(46),o={};n(17)(o,n(47)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:u(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(19),u=n(32),i=n(44),o=n(41)("IE_PROTO"),s=function(){},a="prototype",l=function(){var e,t=n(24)("iframe"),r=i.length,u="<",o=">";for(t.style.display="none",n(45).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(u+"script"+o+"document.F=Object"+u+"/script"+o),e.close(),l=e.F;r--;)delete l[a][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[a]=r(e),n=new s,s[a]=null,n[o]=e):n=l(),void 0===t?n:u(n,t)}},function(e,t,n){var r=n(18),u=n(19),i=n(33);e.exports=n(22)?Object.defineProperties:function(e,t){u(e);for(var n,o=i(t),s=o.length,a=0;s>a;)r.f(e,n=o[a++],t[n]);return e}},function(e,t,n){var r=n(34),u=n(44);e.exports=Object.keys||function(e){return r(e,u)}},function(e,t,n){var r=n(28),u=n(35),i=n(38)(!1),o=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=u(e),a=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>a;)r(s,n=t[a++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(36),u=n(9);e.exports=function(e){return r(u(e))}},function(e,t,n){var r=n(37);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(35),u=n(39),i=n(40);e.exports=function(e){return function(t,n,o){var s,a=r(t),l=u(a.length),f=i(o,l);if(e&&n!=n){for(;l>f;)if(s=a[f++],s!=s)return!0}else for(;l>f;f++)if((e||f in a)&&a[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var r=n(8),u=Math.min;e.exports=function(e){return e>0?u(r(e),9007199254740991):0}},function(e,t,n){var r=n(8),u=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?u(e+t,0):i(e,t)}},function(e,t,n){var r=n(42)("keys"),u=n(43);e.exports=function(e){return r[e]||(r[e]=u(e))}},function(e,t,n){var r=n(13),u="__core-js_shared__",i=r[u]||(r[u]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){e.exports=n(13).document&&document.documentElement},function(e,t,n){var r=n(18).f,u=n(28),i=n(47)("toStringTag");e.exports=function(e,t,n){e&&!u(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(42)("wks"),u=n(43),i=n(13).Symbol,o="function"==typeof i,s=e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:u)("Symbol."+e))};s.store=r},function(e,t,n){var r=n(28),u=n(49),i=n(41)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=u(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(9);e.exports=function(e){return Object(r(e))}},function(e,t,n){n(51);for(var r=n(13),u=n(17),i=n(29),o=n(47)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var l=s[a],f=r[l],c=f&&f.prototype;c&&!c[o]&&u(c,o,l),i[l]=i.Array}},function(e,t,n){"use strict";var r=n(52),u=n(53),i=n(29),o=n(35);e.exports=n(10)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,u(1)):"keys"==t?u(0,n):"values"==t?u(0,e[n]):u(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){t.f=n(47)},function(e,t,n){e.exports={default:n(56),__esModule:!0}},function(e,t,n){n(57),n(68),n(69),n(70),e.exports=n(14).Symbol},function(e,t,n){"use strict";var r=n(13),u=n(28),i=n(22),o=n(12),s=n(27),a=n(58).KEY,l=n(23),f=n(42),c=n(46),d=n(43),h=n(47),p=n(54),v=n(59),y=n(60),g=n(61),m=n(64),b=n(19),_=n(35),x=n(25),O=n(26),S=n(31),j=n(65),k=n(67),w=n(18),P=n(33),M=k.f,R=w.f,N=j.f,C=r.Symbol,E=r.JSON,A=E&&E.stringify,T="prototype",F=h("_hidden"),I=h("toPrimitive"),J={}.propertyIsEnumerable,q=f("symbol-registry"),L=f("symbols"),W=f("op-symbols"),B=Object[T],D="function"==typeof C,G=r.QObject,K=!G||!G[T]||!G[T].findChild,z=i&&l(function(){return 7!=S(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(B,t);r&&delete B[t],R(e,t,n),r&&e!==B&&R(B,t,r)}:R,U=function(e){var t=L[e]=S(C[T]);return t._k=e,t},V=D&&"symbol"==typeof C.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof C},Y=function(e,t,n){return e===B&&Y(W,t,n),b(e),t=x(t,!0),b(n),u(L,t)?(n.enumerable?(u(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:O(0,!1)})):(u(e,F)||R(e,F,O(1,{})),e[F][t]=!0),z(e,t,n)):R(e,t,n)},Q=function(e,t){b(e);for(var n,r=g(t=_(t)),u=0,i=r.length;i>u;)Y(e,n=r[u++],t[n]);return e},H=function(e,t){return void 0===t?S(e):Q(S(e),t)},X=function(e){var t=J.call(this,e=x(e,!0));return!(this===B&&u(L,e)&&!u(W,e))&&(!(t||!u(this,e)||!u(L,e)||u(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=_(e),t=x(t,!0),e!==B||!u(L,t)||u(W,t)){var n=M(e,t);return!n||!u(L,t)||u(e,F)&&e[F][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=N(_(e)),r=[],i=0;n.length>i;)u(L,t=n[i++])||t==F||t==a||r.push(t);return r},ee=function(e){for(var t,n=e===B,r=N(n?W:_(e)),i=[],o=0;r.length>o;)!u(L,t=r[o++])||n&&!u(B,t)||i.push(L[t]);return i};D||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(W,n),u(this,F)&&u(this[F],e)&&(this[F][e]=!1),z(this,e,O(1,n))};return i&&K&&z(B,e,{configurable:!0,set:t}),U(e)},s(C[T],"toString",function(){return this._k}),k.f=Z,w.f=Y,n(66).f=j.f=$,n(63).f=X,n(62).f=ee,i&&!n(11)&&s(B,"propertyIsEnumerable",X,!0),p.f=function(e){return U(h(e))}),o(o.G+o.W+o.F*!D,{Symbol:C});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var te=P(h.store),ne=0;te.length>ne;)v(te[ne++]);o(o.S+o.F*!D,"Symbol",{for:function(e){return u(q,e+="")?q[e]:q[e]=C(e)},keyFor:function(e){if(V(e))return y(q,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){K=!0},useSimple:function(){K=!1}}),o(o.S+o.F*!D,"Object",{create:H,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:ee}),E&&o(o.S+o.F*(!D||l(function(){var e=C();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!V(e)){for(var t,n,r=[e],u=1;arguments.length>u;)r.push(arguments[u++]);return t=r[1],"function"==typeof t&&(n=t),!n&&m(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,A.apply(E,r)}}}),C[T][I]||n(17)(C[T],I,C[T].valueOf),c(C,"Symbol"),c(Math,"Math",!0),c(r.JSON,"JSON",!0)},function(e,t,n){var r=n(43)("meta"),u=n(20),i=n(28),o=n(18).f,s=0,a=Object.isExtensible||function(){return!0},l=!n(23)(function(){return a(Object.preventExtensions({}))}),f=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},c=function(e,t){if(!u(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!a(e))return"F";if(!t)return"E";f(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!a(e))return!0;if(!t)return!1;f(e)}return e[r].w},h=function(e){return l&&p.NEED&&a(e)&&!i(e,r)&&f(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:c,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(13),u=n(14),i=n(11),o=n(54),s=n(18).f;e.exports=function(e){var t=u.Symbol||(u.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(33),u=n(35);e.exports=function(e,t){for(var n,i=u(e),o=r(i),s=o.length,a=0;s>a;)if(i[n=o[a++]]===t)return n}},function(e,t,n){var r=n(33),u=n(62),i=n(63);e.exports=function(e){var t=r(e),n=u.f;if(n)for(var o,s=n(e),a=i.f,l=0;s.length>l;)a.call(e,o=s[l++])&&t.push(o);return t}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(37);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(35),u=n(66).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return u(e)}catch(e){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?s(e):u(r(e))}},function(e,t,n){var r=n(34),u=n(44).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,u)}},function(e,t,n){var r=n(63),u=n(26),i=n(35),o=n(25),s=n(28),a=n(21),l=Object.getOwnPropertyDescriptor;t.f=n(22)?l:function(e,t){if(e=i(e),t=o(t,!0),a)try{return l(e,t)}catch(e){}if(s(e,t))return u(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(59)("asyncIterator")},function(e,t,n){n(59)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=n(72),i=r(u);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){e.exports={default:n(73),__esModule:!0}},function(e,t,n){n(74),e.exports=n(14).Object.assign},function(e,t,n){var r=n(12);r(r.S+r.F,"Object",{assign:n(75)})},function(e,t,n){"use strict";var r=n(33),u=n(62),i=n(63),o=n(49),s=n(36),a=Object.assign;e.exports=!a||n(23)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=a({},e)[n]||Object.keys(a({},t)).join("")!=r})?function(e,t){for(var n=o(e),a=arguments.length,l=1,f=u.f,c=i.f;a>l;)for(var d,h=s(arguments[l++]),p=f?r(h).concat(f(h)):r(h),v=p.length,y=0;v>y;)c.call(h,d=p[y++])&&(n[d]=h[d]);return n}:a},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=n(78),i=r(u);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(79),__esModule:!0}},function(e,t,n){n(80);var r=n(14).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(12);r(r.S+r.F*!n(22),"Object",{defineProperty:n(18).f})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(82),c=r(f),d=n(89),h=r(d),p=function(){function e(t,n){(0,s.default)(this,e);var r=(0,c.default)(n),u="number"==typeof n.index?n.index:0;this.attached=!1,this.deployed=!1,this.linked=!1,this.classes=Object.create(null),this.options=(0,i.default)({sheet:this,parent:this,classes:this.classes,index:u,Renderer:r},n),this.renderer=new r(this),this.renderer.createElement(),this.rules=new h.default(this.options);for(var o in t)this.rules.add(o,t[o]);this.rules.process()}return(0,l.default)(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var u=this.rules.add(e,t,n);if(this.options.jss.plugins.onProcessRule(u),this.attached){if(!this.deployed)return u;if(r)r.push(u);else{var i=this.renderer.insertRule(u);i&&this.options.link&&(u.renderable=i),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=void 0)}return u}return this.deployed=!1,u}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){for(var e=this.renderer.getRules(),t=0;t<e.length;t++){var n=e[t],r=this.rules.get(n.selectorText);r&&(r.renderable=n)}return this.linked=!0,this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.Renderer)return e.Renderer;var t=e.virtual||!o.default;return t?f.default:a.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(83),o=r(i),s=n(84),a=r(s),l=n(88),f=r(l)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=t.isBrowser="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType;t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function i(e,t,n){try{e.style.setProperty(t,n)}catch(e){return!1}return!0}function o(e){return e.selectorText}function s(e,t){return e.selectorText=t,e.selectorText===t}function a(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t)return r}return null}function l(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if(n.attached)return n}return null}function f(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(8===n.nodeType&&"jss"===n.nodeValue.trim())return n}return null}function c(e,t){var n=b.default.registry;if(n.length>1){var r=a(n,t);if(r)return r.renderer.element;if(r=l(n))return r.renderer.element.nextElementSibling}var u=f(e);return u?u.nextSibling:null}Object.defineProperty(t,"__esModule",{value:!0});var d=n(76),h=r(d),p=n(77),v=r(p),y=n(85),g=r(y),m=n(86),b=r(m),_=function(){function e(t){(0,h.default)(this,e),this.getStyle=u,this.setStyle=i,this.setSelector=s,this.getSelector=o,this.sheet=t,t&&b.default.add(t)}return(0,v.default)(e,[{key:"createElement",value:function(){var e=this.sheet?this.sheet.options:{},t=e.media,n=e.meta,r=e.element;this.head=document.head||document.getElementsByTagName("head")[0],this.element=r||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),t&&this.element.setAttribute("media",t),n&&this.element.setAttribute("data-meta",n)}},{key:"attach",value:function(){if(!this.element.parentNode&&this.sheet){var e=c(this.head,this.sheet.options.index);this.head.insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(e){this.element.textContent="\n"+e.toString()+"\n"}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length,u=e.toString();if(!u)return!1;try{t.insertRule(u,r)}catch(t){return(0,g.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return n[r]}},{key:"deleteRule",value:function(e){for(var t=this.element.sheet,n=t.cssRules,r=0;r<n.length;r++)if(e===n[r])return t.deleteRule(r),!0;return!1}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),e}();t.default=_},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(87),i=r(u);t.default=new i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(){(0,i.default)(this,e),this.registry=[]}return(0,s.default)(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(!t.length||n>=t[t.length-1].options.index)return void t.push(e);for(var r=0;r<t.length;r++){var u=t[r].options;if(u.index>n)return void t.splice(r,0,e)}}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter(function(e){return e.attached}).map(function(t){return t.toString(e)}).join("\n")}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(){(0,i.default)(this,e)}return(0,s.default)(e,[{key:"createElement",value:function(){}},{key:"setStyle",value:function(){}},{key:"getStyle",value:function(){}},{key:"setSelector",value:function(){}},{key:"getSelector",value:function(){}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){}},{key:"deleteRule",value:function(){}},{key:"getRules",value:function(){}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(90),c=r(f),d=function(){function e(t){(0,s.default)(this,e),this.map=Object.create(null),this.index=[],this.options=t,this.classes=t.classes}return(0,l.default)(e,[{key:"add",value:function(e,t,n){var r=this.options,u=r.parent,o=r.sheet,s=r.jss,a=r.Renderer,l=r.generateClassName;n=(0,i.default)({classes:this.classes,parent:u,sheet:o,jss:s,Renderer:a,generateClassName:l},n),n.className||(n.className=this.classes[e]);var f=(0,c.default)(e,t,n);this.register(f);var d=void 0===n.index?this.index.length:n.index;return this.index.splice(d,0,f),f}},{key:"get",value:function(e){return this.map[e]}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e){e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e)}},{key:"unregister",value:function(e){delete this.map[e.name],delete this.map[e.selector],delete this.classes[e.name]}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],u=r.toString(e);u&&(t&&(t+="\n"),t+=u)}return t}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=n.jss;if(r){var u=r.plugins.onCreateRule(e,t,n);if(u)return u}return e&&"@"===e[0]&&(0,o.default)(!1,"[JSS] Unknown at-rule %s",e),new a.default(e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(85),o=r(i),s=n(91),a=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(92),c=r(f),d=n(93),h=r(d),p=n(94),v=r(p),y=JSON.parse,g=JSON.stringify,m=function(){function e(t,n,r){(0,s.default)(this,e),this.type="regular";var u=r.generateClassName,i=r.sheet,o=r.Renderer,a=g(n);this.style=y(a),this.name=t,this.options=r,this.originalStyle=n,this.className="",r.className?this.className=r.className:u&&(this.className=u(a,this,r.sheet)),this.selectorText=r.selector||"."+this.className,i?this.renderer=i.renderer:o&&(this.renderer=new o)}return(0,l.default)(e,[{key:"prop",value:function(e,t){return null!=t?(this.style[e]=t,this.renderable&&this.renderer.setStyle(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=this.renderer.getStyle(this.renderable,e)),this.style[e])}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setStyle(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e=Object.create(null);for(var t in this.style){var n=this.style[t];"object"!==("undefined"==typeof n?"undefined":(0,i.default)(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,h.default)(n))}return e}},{key:"toString",value:function(e){return(0,c.default)(this.selector,this.style,e)}},{key:"selector",set:function(e){var t=this.options.sheet;if(t&&t.rules.unregister(this),this.selectorText=e,this.className=(0,v.default)(e),!this.renderable)return void(t&&t.rules.register(this));var n=this.renderer.setSelector(this.renderable,e);return n&&t?void t.rules.register(this):(delete this.renderable,void(t&&(t.rules.register(this),t.deploy().link())))},get:function(){if(this.renderable){var e=this.renderer.getSelector(this.renderable);return e}return this.selectorText}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.indent,i=void 0===r?0:r,o=t.fallbacks,a="";if(i++,o)if(Array.isArray(o))for(var l=0;l<o.length;l++){var f=o[l];for(var c in f){var d=f[c];null!=d&&(a+="\n"+u(c+": "+(0,s.default)(d)+";",i))}}else for(var h in o){var p=o[h];null!=p&&(a+="\n"+u(h+": "+(0,s.default)(p)+";",i))}for(var v in t){var y=t[v];null!=y&&"fallbacks"!==v&&(a+="\n"+u(v+": "+(0,s.default)(y)+";",i))}return a?(i--,a=u(e+" {"+a+"\n",i)+u("}",i)):a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(93),s=r(o)},function(e,t){"use strict";function n(e){return Array.isArray(e)?Array.isArray(e[0])?n(e.map(r)):e.join(", "):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=function(e){return e.join(" ")}},function(e,t){"use strict";function n(e){var t=e.match(u);return t?t.join(" ").replace(r,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=/[.]/g,u=/[.][^ ,]+/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(){(0,i.default)(this,e),this.creators=[],this.processors=[]}return(0,s.default)(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.creators.length;r++){var u=this.creators[r](e,t,n);if(u)return u}return null}},{key:"onProcessRule",value:function(e){for(var t=0;t<this.processors.length;t++)this.processors[t](e)}},{key:"use",value:function(e){return"function"==typeof e?void this.processors.push(e):(e.onCreateRule&&this.creators.push(e.onCreateRule),void(e.onProcessRule&&this.processors.push(e.onProcessRule)))}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(97),i=r(u),o=n(98),s=r(o),a=n(99),l=r(a),f=n(100),c=r(f),d={"@charset":i.default,"@import":i.default,"@namespace":i.default,"@keyframes":s.default,"@media":l.default,"@supports":l.default,"@font-face":c.default};t.default=Object.keys(d).map(function(e){var t=new RegExp("^"+e),n=function(n,r,u){return t.test(n)?new d[e](n,r,u):null};return{onCreateRule:n}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(t,n,r){(0,i.default)(this,e),this.type="simple",this.name=t,this.value=n,this.options=r}return(0,s.default)(e,[{key:"toString",value:function(){if(Array.isArray(this.value)){for(var e="",t=0;t<this.value.length;t++)e+=this.name+" "+this.value[t]+";",this.value[t+1]&&(e+="\n");return e}return this.name+" "+this.value+";"}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(90),c=r(f),d={indent:1},h=function(){function e(t,n,r){(0,s.default)(this,e),this.type="keyframe",this.selector=t,this.options=r,this.frames=this.formatFrames(n)}return(0,l.default)(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var r=(0,i.default)({},this.options,{parent:this,className:n,selector:n}),u=(0,c.default)(n,e[n],r);r.jss.plugins.onProcessRule(u),
t[n]=u}return t}},{key:"toString",value:function(){var e=this.selector+" {\n";for(var t in this.frames)e+=this.frames[t].toString(d)+"\n";return e+="}"}}]),e}();t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(89),c=r(f),d=function(){function e(t,n,r){(0,s.default)(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new c.default((0,i.default)({},r,{parent:this}));for(var u in n)this.rules.add(u,n[u]);this.rules.process()}return(0,l.default)(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"toString",value:function(){var e=this.rules.toString({indent:1});return e?this.selector+" {\n"+e+"\n}":""}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=n(92),l=r(a),f=function(){function e(t,n,r){(0,i.default)(this,e),this.type="font-face",this.selector=t,this.style=n,this.options=r}return(0,s.default)(e,[{key:"toString",value:function(){if(Array.isArray(this.style)){for(var e="",t=0;t<this.style.length;t++)e+=(0,l.default)(this.selector,this.style[t]),this.style[t+1]&&(e+="\n");return e}return(0,l.default)(this.selector,this.style)}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){n&&n.options.meta&&(e+=n.options.meta);var r=(0,o.default)(e);return t.name?t.name+"-"+r:r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(102),o=r(i)},function(e,t,n){function r(e,t){var n,r,u,i,o,s,a,l;for(n=3&e.length,r=e.length-n,u=t,o=3432918353,s=461845907,l=0;l<r;)a=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,a=(65535&a)*o+(((a>>>16)*o&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,u^=a,u=u<<13|u>>>19,i=5*(65535&u)+((5*(u>>>16)&65535)<<16)&4294967295,u=(65535&i)+27492+(((i>>>16)+58964&65535)<<16);switch(a=0,n){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a^=255&e.charCodeAt(l),a=(65535&a)*o+(((a>>>16)*o&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,u^=a}return u^=e.length,u^=u>>>16,u=2246822507*(65535&u)+((2246822507*(u>>>16)&65535)<<16)&4294967295,u^=u>>>13,u=3266489909*(65535&u)+((3266489909*(u>>>16)&65535)<<16)&4294967295,u^=u>>>16,u>>>0}e.exports=r}])});
t.SheetsRegistry=s.default,t.RulesContainer=l.default,t.sheets=c.default;var d=t.create=function(e){return new i.default(e)};t.default=d()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),i=r(u),o=n(71),s=r(o),a=n(76),l=r(a),f=n(77),c=r(f),d=n(81),h=r(d),p=n(95),v=r(p),y=n(96),g=r(y),m=n(86),b=r(m),_=n(101),x=r(_),O=n(90),S=r(O),j=n(82),k=r(j),w=function(){function e(t){(0,l.default)(this,e),this.version="6.1.1",this.plugins=new v.default,this.use.apply(this,g.default),this.setup(t)}return(0,c.default)(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=(0,s.default)({},e,{generateClassName:e.generateClassName||x.default});var t=this.options.plugins;return t&&this.use.apply(this,t),this}},{key:"createStyleSheet",value:function(e,t){return new h.default(e,(0,s.default)({jss:this,generateClassName:this.options.generateClassName},t))}},{key:"removeStyleSheet",value:function(e){return e.detach(),b.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===("undefined"==typeof e?"undefined":(0,i.default)(e))&&(n=t,t=e,e=void 0),n.classes||(n.classes={}),n.jss||(n.jss=this),n.Renderer||(n.Renderer=(0,k.default)(n)),n.generateClassName||(n.generateClassName=this.options.generateClassName||x.default);var r=(0,S.default)(e,t,n);return this.plugins.onProcessRule(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.plugins.use(t)}),this}}]),e}();t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=n(4),i=r(u),o=n(55),s=r(o),a="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===a(i.default)?function(e){return"undefined"==typeof e?"undefined":a(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":a(e)}},function(e,t,n){e.exports={default:n(5),__esModule:!0}},function(e,t,n){n(6),n(50),e.exports=n(54).f("iterator")},function(e,t,n){"use strict";var r=n(7)(!0);n(10)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(8),u=n(9);e.exports=function(e){return function(t,n){var i,o,s=String(u(t)),a=r(n),l=s.length;return a<0||a>=l?e?"":void 0:(i=s.charCodeAt(a),i<55296||i>56319||a+1===l||(o=s.charCodeAt(a+1))<56320||o>57343?e?s.charAt(a):i:e?s.slice(a,a+2):(i-55296<<10)+(o-56320)+65536)}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(11),u=n(12),i=n(27),o=n(17),s=n(28),a=n(29),l=n(30),f=n(46),c=n(48),d=n(47)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",y="values",g=function(){return this};e.exports=function(e,t,n,m,b,_,x){l(n,t,m);var O,S,j,k=function(e){if(!h&&e in R)return R[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",P=b==y,M=!1,R=e.prototype,N=R[d]||R[p]||b&&R[b],C=N||k(b),E=b?P?k("entries"):C:void 0,A="Array"==t?R.entries||N:N;if(A&&(j=c(A.call(new e)),j!==Object.prototype&&(f(j,w,!0),r||s(j,d)||o(j,d,g))),P&&N&&N.name!==y&&(M=!0,C=function(){return N.call(this)}),r&&!x||!h&&!M&&R[d]||o(R,d,C),a[t]=C,a[w]=g,b)if(O={values:P?C:k(y),keys:_?C:k(v),entries:E},x)for(S in O)S in R||i(R,S,O[S]);else u(u.P+u.F*(h||M),t,O);return O}},function(e,t){e.exports=!0},function(e,t,n){var r=n(13),u=n(14),i=n(15),o=n(17),s="prototype",a=function(e,t,n){var l,f,c,d=e&a.F,h=e&a.G,p=e&a.S,v=e&a.P,y=e&a.B,g=e&a.W,m=h?u:u[t]||(u[t]={}),b=m[s],_=h?r:p?r[t]:(r[t]||{})[s];h&&(n=t);for(l in n)f=!d&&_&&void 0!==_[l],f&&l in m||(c=f?_[l]:n[l],m[l]=h&&"function"!=typeof _[l]?n[l]:y&&f?i(c,r):g&&_[l]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(c):v&&"function"==typeof c?i(Function.call,c):c,v&&((m.virtual||(m.virtual={}))[l]=c,e&a.R&&b&&!b[l]&&o(b,l,c)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(16);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,u){return e.call(t,n,r,u)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(18),u=n(26);e.exports=n(22)?function(e,t,n){return r.f(e,t,u(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(19),u=n(21),i=n(25),o=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),u)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(20);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(22)&&!n(23)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(20),u=n(13).document,i=r(u)&&r(u.createElement);e.exports=function(e){return i?u.createElement(e):{}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(!r(e))return e;var n,u;if(t&&"function"==typeof(n=e.toString)&&!r(u=n.call(e)))return u;if("function"==typeof(n=e.valueOf)&&!r(u=n.call(e)))return u;if(!t&&"function"==typeof(n=e.toString)&&!r(u=n.call(e)))return u;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports=n(17)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(31),u=n(26),i=n(46),o={};n(17)(o,n(47)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:u(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(19),u=n(32),i=n(44),o=n(41)("IE_PROTO"),s=function(){},a="prototype",l=function(){var e,t=n(24)("iframe"),r=i.length,u="<",o=">";for(t.style.display="none",n(45).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(u+"script"+o+"document.F=Object"+u+"/script"+o),e.close(),l=e.F;r--;)delete l[a][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[a]=r(e),n=new s,s[a]=null,n[o]=e):n=l(),void 0===t?n:u(n,t)}},function(e,t,n){var r=n(18),u=n(19),i=n(33);e.exports=n(22)?Object.defineProperties:function(e,t){u(e);for(var n,o=i(t),s=o.length,a=0;s>a;)r.f(e,n=o[a++],t[n]);return e}},function(e,t,n){var r=n(34),u=n(44);e.exports=Object.keys||function(e){return r(e,u)}},function(e,t,n){var r=n(28),u=n(35),i=n(38)(!1),o=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=u(e),a=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>a;)r(s,n=t[a++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(36),u=n(9);e.exports=function(e){return r(u(e))}},function(e,t,n){var r=n(37);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(35),u=n(39),i=n(40);e.exports=function(e){return function(t,n,o){var s,a=r(t),l=u(a.length),f=i(o,l);if(e&&n!=n){for(;l>f;)if(s=a[f++],s!=s)return!0}else for(;l>f;f++)if((e||f in a)&&a[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var r=n(8),u=Math.min;e.exports=function(e){return e>0?u(r(e),9007199254740991):0}},function(e,t,n){var r=n(8),u=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?u(e+t,0):i(e,t)}},function(e,t,n){var r=n(42)("keys"),u=n(43);e.exports=function(e){return r[e]||(r[e]=u(e))}},function(e,t,n){var r=n(13),u="__core-js_shared__",i=r[u]||(r[u]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){e.exports=n(13).document&&document.documentElement},function(e,t,n){var r=n(18).f,u=n(28),i=n(47)("toStringTag");e.exports=function(e,t,n){e&&!u(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(42)("wks"),u=n(43),i=n(13).Symbol,o="function"==typeof i,s=e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:u)("Symbol."+e))};s.store=r},function(e,t,n){var r=n(28),u=n(49),i=n(41)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=u(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(9);e.exports=function(e){return Object(r(e))}},function(e,t,n){n(51);for(var r=n(13),u=n(17),i=n(29),o=n(47)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var l=s[a],f=r[l],c=f&&f.prototype;c&&!c[o]&&u(c,o,l),i[l]=i.Array}},function(e,t,n){"use strict";var r=n(52),u=n(53),i=n(29),o=n(35);e.exports=n(10)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,u(1)):"keys"==t?u(0,n):"values"==t?u(0,e[n]):u(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){t.f=n(47)},function(e,t,n){e.exports={default:n(56),__esModule:!0}},function(e,t,n){n(57),n(68),n(69),n(70),e.exports=n(14).Symbol},function(e,t,n){"use strict";var r=n(13),u=n(28),i=n(22),o=n(12),s=n(27),a=n(58).KEY,l=n(23),f=n(42),c=n(46),d=n(43),h=n(47),p=n(54),v=n(59),y=n(60),g=n(61),m=n(64),b=n(19),_=n(35),x=n(25),O=n(26),S=n(31),j=n(65),k=n(67),w=n(18),P=n(33),M=k.f,R=w.f,N=j.f,C=r.Symbol,E=r.JSON,A=E&&E.stringify,T="prototype",F=h("_hidden"),I=h("toPrimitive"),J={}.propertyIsEnumerable,q=f("symbol-registry"),L=f("symbols"),W=f("op-symbols"),B=Object[T],D="function"==typeof C,G=r.QObject,K=!G||!G[T]||!G[T].findChild,z=i&&l(function(){return 7!=S(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(B,t);r&&delete B[t],R(e,t,n),r&&e!==B&&R(B,t,r)}:R,U=function(e){var t=L[e]=S(C[T]);return t._k=e,t},V=D&&"symbol"==typeof C.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof C},Y=function(e,t,n){return e===B&&Y(W,t,n),b(e),t=x(t,!0),b(n),u(L,t)?(n.enumerable?(u(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:O(0,!1)})):(u(e,F)||R(e,F,O(1,{})),e[F][t]=!0),z(e,t,n)):R(e,t,n)},Q=function(e,t){b(e);for(var n,r=g(t=_(t)),u=0,i=r.length;i>u;)Y(e,n=r[u++],t[n]);return e},H=function(e,t){return void 0===t?S(e):Q(S(e),t)},X=function(e){var t=J.call(this,e=x(e,!0));return!(this===B&&u(L,e)&&!u(W,e))&&(!(t||!u(this,e)||!u(L,e)||u(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=_(e),t=x(t,!0),e!==B||!u(L,t)||u(W,t)){var n=M(e,t);return!n||!u(L,t)||u(e,F)&&e[F][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=N(_(e)),r=[],i=0;n.length>i;)u(L,t=n[i++])||t==F||t==a||r.push(t);return r},ee=function(e){for(var t,n=e===B,r=N(n?W:_(e)),i=[],o=0;r.length>o;)!u(L,t=r[o++])||n&&!u(B,t)||i.push(L[t]);return i};D||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(W,n),u(this,F)&&u(this[F],e)&&(this[F][e]=!1),z(this,e,O(1,n))};return i&&K&&z(B,e,{configurable:!0,set:t}),U(e)},s(C[T],"toString",function(){return this._k}),k.f=Z,w.f=Y,n(66).f=j.f=$,n(63).f=X,n(62).f=ee,i&&!n(11)&&s(B,"propertyIsEnumerable",X,!0),p.f=function(e){return U(h(e))}),o(o.G+o.W+o.F*!D,{Symbol:C});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var te=P(h.store),ne=0;te.length>ne;)v(te[ne++]);o(o.S+o.F*!D,"Symbol",{for:function(e){return u(q,e+="")?q[e]:q[e]=C(e)},keyFor:function(e){if(V(e))return y(q,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){K=!0},useSimple:function(){K=!1}}),o(o.S+o.F*!D,"Object",{create:H,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:ee}),E&&o(o.S+o.F*(!D||l(function(){var e=C();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!V(e)){for(var t,n,r=[e],u=1;arguments.length>u;)r.push(arguments[u++]);return t=r[1],"function"==typeof t&&(n=t),!n&&m(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,A.apply(E,r)}}}),C[T][I]||n(17)(C[T],I,C[T].valueOf),c(C,"Symbol"),c(Math,"Math",!0),c(r.JSON,"JSON",!0)},function(e,t,n){var r=n(43)("meta"),u=n(20),i=n(28),o=n(18).f,s=0,a=Object.isExtensible||function(){return!0},l=!n(23)(function(){return a(Object.preventExtensions({}))}),f=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},c=function(e,t){if(!u(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!a(e))return"F";if(!t)return"E";f(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!a(e))return!0;if(!t)return!1;f(e)}return e[r].w},h=function(e){return l&&p.NEED&&a(e)&&!i(e,r)&&f(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:c,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(13),u=n(14),i=n(11),o=n(54),s=n(18).f;e.exports=function(e){var t=u.Symbol||(u.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(33),u=n(35);e.exports=function(e,t){for(var n,i=u(e),o=r(i),s=o.length,a=0;s>a;)if(i[n=o[a++]]===t)return n}},function(e,t,n){var r=n(33),u=n(62),i=n(63);e.exports=function(e){var t=r(e),n=u.f;if(n)for(var o,s=n(e),a=i.f,l=0;s.length>l;)a.call(e,o=s[l++])&&t.push(o);return t}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(37);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(35),u=n(66).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return u(e)}catch(e){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?s(e):u(r(e))}},function(e,t,n){var r=n(34),u=n(44).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,u)}},function(e,t,n){var r=n(63),u=n(26),i=n(35),o=n(25),s=n(28),a=n(21),l=Object.getOwnPropertyDescriptor;t.f=n(22)?l:function(e,t){if(e=i(e),t=o(t,!0),a)try{return l(e,t)}catch(e){}if(s(e,t))return u(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(59)("asyncIterator")},function(e,t,n){n(59)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=n(72),i=r(u);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){e.exports={default:n(73),__esModule:!0}},function(e,t,n){n(74),e.exports=n(14).Object.assign},function(e,t,n){var r=n(12);r(r.S+r.F,"Object",{assign:n(75)})},function(e,t,n){"use strict";var r=n(33),u=n(62),i=n(63),o=n(49),s=n(36),a=Object.assign;e.exports=!a||n(23)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=a({},e)[n]||Object.keys(a({},t)).join("")!=r})?function(e,t){for(var n=o(e),a=arguments.length,l=1,f=u.f,c=i.f;a>l;)for(var d,h=s(arguments[l++]),p=f?r(h).concat(f(h)):r(h),v=p.length,y=0;v>y;)c.call(h,d=p[y++])&&(n[d]=h[d]);return n}:a},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var u=n(78),i=r(u);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(79),__esModule:!0}},function(e,t,n){n(80);var r=n(14).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(12);r(r.S+r.F*!n(22),"Object",{defineProperty:n(18).f})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(82),c=r(f),d=n(89),h=r(d),p=function(){function e(t,n){(0,s.default)(this,e);var r=(0,c.default)(n),u="number"==typeof n.index?n.index:0;this.attached=!1,this.deployed=!1,this.linked=!1,this.classes=Object.create(null),this.options=(0,i.default)({sheet:this,parent:this,classes:this.classes,index:u,Renderer:r},n),this.renderer=new r(this),this.renderer.createElement(),this.rules=new h.default(this.options);for(var o in t)this.rules.add(o,t[o]);this.rules.process()}return(0,l.default)(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var u=this.rules.add(e,t,n);if(this.options.jss.plugins.onProcessRule(u),this.attached){if(!this.deployed)return u;if(r)r.push(u);else{var i=this.renderer.insertRule(u);i&&this.options.link&&(u.renderable=i),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=void 0)}return u}return this.deployed=!1,u}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();if(e)for(var t=0;t<e.length;t++){var n=e[t],r=this.rules.get(n.selectorText);r&&(r.renderable=n)}return this.linked=!0,this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.Renderer)return e.Renderer;var t=e.virtual||!o.default;return t?f.default:a.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(83),o=r(i),s=n(84),a=r(s),l=n(88),f=r(l)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=t.isBrowser="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType;t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function i(e,t,n){try{e.style.setProperty(t,n)}catch(e){return!1}return!0}function o(e){return e.selectorText}function s(e,t){return e.selectorText=t,e.selectorText===t}function a(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t)return r}return null}function l(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if(n.attached)return n}return null}function f(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(8===n.nodeType&&"jss"===n.nodeValue.trim())return n}return null}function c(e,t){var n=b.default.registry;if(n.length>1){var r=a(n,t);if(r)return r.renderer.element;if(r=l(n))return r.renderer.element.nextElementSibling}var u=f(e);return u?u.nextSibling:null}Object.defineProperty(t,"__esModule",{value:!0});var d=n(76),h=r(d),p=n(77),v=r(p),y=n(85),g=r(y),m=n(86),b=r(m),_=function(){function e(t){(0,h.default)(this,e),this.getStyle=u,this.setStyle=i,this.setSelector=s,this.getSelector=o,this.sheet=t,t&&b.default.add(t)}return(0,v.default)(e,[{key:"createElement",value:function(){var e=this.sheet?this.sheet.options:{},t=e.media,n=e.meta,r=e.element;this.head=document.head||document.getElementsByTagName("head")[0],this.element=r||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),t&&this.element.setAttribute("media",t),n&&this.element.setAttribute("data-meta",n)}},{key:"attach",value:function(){if(!this.element.parentNode&&this.sheet){var e=c(this.head,this.sheet.options.index);this.head.insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(e){this.element.textContent="\n"+e.toString()+"\n"}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length,u=e.toString();if(!u)return!1;try{t.insertRule(u,r)}catch(t){return(0,g.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return n[r]}},{key:"deleteRule",value:function(e){for(var t=this.element.sheet,n=t.cssRules,r=0;r<n.length;r++)if(e===n[r])return t.deleteRule(r),!0;return!1}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),e}();t.default=_},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(87),i=r(u);t.default=new i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(){(0,i.default)(this,e),this.registry=[]}return(0,s.default)(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(!t.length||n>=t[t.length-1].options.index)return void t.push(e);for(var r=0;r<t.length;r++){var u=t[r].options;if(u.index>n)return void t.splice(r,0,e)}}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter(function(e){return e.attached}).map(function(t){return t.toString(e)}).join("\n")}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(){(0,i.default)(this,e)}return(0,s.default)(e,[{key:"createElement",value:function(){}},{key:"setStyle",value:function(){return!0}},{key:"getStyle",value:function(){return""}},{key:"setSelector",value:function(){return!0}},{key:"getSelector",value:function(){return""}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){return!0}},{key:"deleteRule",value:function(){return!0}},{key:"getRules",value:function(){}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(90),c=r(f),d=function(){function e(t){(0,s.default)(this,e),this.map=Object.create(null),this.index=[],this.options=t,this.classes=t.classes}return(0,l.default)(e,[{key:"add",value:function(e,t,n){var r=this.options,u=r.parent,o=r.sheet,s=r.jss,a=r.Renderer,l=r.generateClassName;n=(0,i.default)({classes:this.classes,parent:u,sheet:o,jss:s,Renderer:a,generateClassName:l},n),n.className||(n.className=this.classes[e]);var f=(0,c.default)(e,t,n);this.register(f);var d=void 0===n.index?this.index.length:n.index;return this.index.splice(d,0,f),f}},{key:"get",value:function(e){return this.map[e]}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e){e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e)}},{key:"unregister",value:function(e){delete this.map[e.name],delete this.map[e.selector],delete this.classes[e.name]}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],u=r.toString(e);u&&(t&&(t+="\n"),t+=u)}return t}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=n.jss;if(r){var u=r.plugins.onCreateRule(e,t,n);if(u)return u}return e&&"@"===e[0]&&(0,o.default)(!1,"[JSS] Unknown at-rule %s",e),new a.default(e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(85),o=r(i),s=n(91),a=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(92),c=r(f),d=n(93),h=r(d),p=n(94),v=r(p),y=JSON.parse,g=JSON.stringify,m=function(){function e(t,n,r){(0,s.default)(this,e),this.type="regular";var u=r.generateClassName,i=r.sheet,o=r.Renderer,a=g(n);this.style=y(a),this.name=t,this.options=r,this.originalStyle=n,this.className="",r.className?this.className=r.className:u&&(this.className=u(a,this,r.sheet)),this.selectorText=r.selector||"."+this.className,i?this.renderer=i.renderer:o&&(this.renderer=new o)}return(0,l.default)(e,[{key:"prop",value:function(e,t){return null!=t?(this.style[e]=t,this.renderable&&this.renderer.setStyle(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=this.renderer.getStyle(this.renderable,e)),this.style[e])}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setStyle(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e=Object.create(null);for(var t in this.style){var n=this.style[t];"object"!==("undefined"==typeof n?"undefined":(0,i.default)(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,h.default)(n))}return e}},{key:"toString",value:function(e){return(0,c.default)(this.selector,this.style,e)}},{key:"selector",set:function(e){var t=this.options.sheet;if(t&&t.rules.unregister(this),this.selectorText=e,this.className=(0,v.default)(e),!this.renderable)return void(t&&t.rules.register(this));var n=this.renderer.setSelector(this.renderable,e);return n&&t?void t.rules.register(this):(delete this.renderable,void(t&&(t.rules.register(this),t.deploy().link())))},get:function(){return this.renderable?this.renderer.getSelector(this.renderable):this.selectorText}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.indent,i=void 0===r?0:r,o=t.fallbacks,a="";if(i++,o)if(Array.isArray(o))for(var l=0;l<o.length;l++){var f=o[l];for(var c in f){var d=f[c];null!=d&&(a+="\n"+u(c+": "+(0,s.default)(d)+";",i))}}else for(var h in o){var p=o[h];null!=p&&(a+="\n"+u(h+": "+(0,s.default)(p)+";",i))}for(var v in t){var y=t[v];null!=y&&"fallbacks"!==v&&(a+="\n"+u(v+": "+(0,s.default)(y)+";",i))}return a?(i--,a=u(e+" {"+a+"\n",i)+u("}",i)):a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(93),s=r(o)},function(e,t){"use strict";function n(e){return Array.isArray(e)?Array.isArray(e[0])?n(e.map(r)):e.join(", "):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=function(e){return e.join(" ")}},function(e,t){"use strict";function n(e){var t=e.match(u);return t?t.join(" ").replace(r,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=/[.]/g,u=/[.][^ ,]+/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(){(0,i.default)(this,e),this.creators=[],this.processors=[]}return(0,s.default)(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.creators.length;r++){var u=this.creators[r](e,t,n);if(u)return u}return null}},{key:"onProcessRule",value:function(e){if(!e.isProcessed){for(var t=0;t<this.processors.length;t++)this.processors[t](e,e.options.sheet);e.isProcessed=!0}}},{key:"use",value:function(e){return"function"==typeof e?void this.processors.push(e):(e.onCreateRule&&this.creators.push(e.onCreateRule),void(e.onProcessRule&&this.processors.push(e.onProcessRule)))}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(97),i=r(u),o=n(98),s=r(o),a=n(99),l=r(a),f=n(100),c=r(f),d={"@charset":i.default,"@import":i.default,"@namespace":i.default,"@keyframes":s.default,"@media":l.default,"@supports":l.default,"@font-face":c.default};t.default=Object.keys(d).map(function(e){var t=new RegExp("^"+e),n=function(n,r,u){return t.test(n)?new d[e](n,r,u):null};return{onCreateRule:n}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=function(){function e(t,n,r){(0,i.default)(this,e),this.type="simple",this.name=t,this.value=n,this.options=r}return(0,s.default)(e,[{key:"toString",value:function(){if(Array.isArray(this.value)){for(var e="",t=0;t<this.value.length;t++)e+=this.name+" "+this.value[t]+";",this.value[t+1]&&(e+="\n");return e}return this.name+" "+this.value+";"}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(90),c=r(f),d={indent:1},h=function(){function e(t,n,r){(0,s.default)(this,e),this.type="keyframe",this.selector=t,this.options=r,this.frames=this.formatFrames(n)}return(0,l.default)(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var r=(0,i.default)({},this.options,{
parent:this,className:n,selector:n}),u=(0,c.default)(n,e[n],r);r.jss.plugins.onProcessRule(u),t[n]=u}return t}},{key:"toString",value:function(){var e=this.selector+" {\n";for(var t in this.frames)e+=this.frames[t].toString(d)+"\n";return e+="}"}}]),e}();t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),i=r(u),o=n(76),s=r(o),a=n(77),l=r(a),f=n(89),c=r(f),d=function(){function e(t,n,r){(0,s.default)(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new c.default((0,i.default)({},r,{parent:this}));for(var u in n)this.rules.add(u,n[u]);this.rules.process()}return(0,l.default)(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"toString",value:function(){var e=this.rules.toString({indent:1});return e?this.selector+" {\n"+e+"\n}":""}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(76),i=r(u),o=n(77),s=r(o),a=n(92),l=r(a),f=function(){function e(t,n,r){(0,i.default)(this,e),this.type="font-face",this.selector=t,this.style=n,this.options=r}return(0,s.default)(e,[{key:"toString",value:function(){if(Array.isArray(this.style)){for(var e="",t=0;t<this.style.length;t++)e+=(0,l.default)(this.selector,this.style[t]),this.style[t+1]&&(e+="\n");return e}return(0,l.default)(this.selector,this.style)}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){n&&n.options.meta&&(e+=n.options.meta);var r=(0,o.default)(e);return t.name?t.name+"-"+r:r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(102),o=r(i)},function(e,t,n){function r(e,t){var n,r,u,i,o,s,a,l;for(n=3&e.length,r=e.length-n,u=t,o=3432918353,s=461845907,l=0;l<r;)a=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,a=(65535&a)*o+(((a>>>16)*o&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,u^=a,u=u<<13|u>>>19,i=5*(65535&u)+((5*(u>>>16)&65535)<<16)&4294967295,u=(65535&i)+27492+(((i>>>16)+58964&65535)<<16);switch(a=0,n){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a^=255&e.charCodeAt(l),a=(65535&a)*o+(((a>>>16)*o&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,u^=a}return u^=e.length,u^=u>>>16,u=2246822507*(65535&u)+((2246822507*(u>>>16)&65535)<<16)&4294967295,u^=u>>>13,u=3266489909*(65535&u)+((3266489909*(u>>>16)&65535)<<16)&4294967295,u^=u>>>16,u>>>0}e.exports=r}])});
//# sourceMappingURL=jss-global.min.js.map

@@ -115,2 +115,14 @@ 'use strict';

var separatorRegExp = /\s*,\s*/g;
function addScope(selector, scope) {
var parts = selector.split(separatorRegExp);
var scoped = '';
for (var i = 0; i < parts.length; i++) {
scoped += scope + ' ' + parts[i].trim();
if (parts[i + 1]) scoped += ', ';
}
return scoped;
}
function handleNestedGlobalContainerRule(rule) {

@@ -125,5 +137,4 @@ var options = rule.options,

for (var name in rules) {
var selector = rule.selector + ' ' + name;
options.sheet.addRule(name, rules[name], _extends({}, options, {
selector: selector,
selector: addScope(name, rule.selector),
generateClassName: null

@@ -143,6 +154,5 @@ }));

var selector = prop.substr(key.length).trim();
var scopedSelector = rule.selector + ' ' + selector;
options.sheet.addRule(scopedSelector, style[prop], _extends({}, options, {
selector: scopedSelector,
var selector = addScope(prop.substr(key.length), rule.selector);
options.sheet.addRule(selector, style[prop], _extends({}, options, {
selector: selector,
generateClassName: null

@@ -149,0 +159,0 @@ }));

@@ -75,3 +75,3 @@ 'use strict';

describe('@global container inside of a regular rule', function () {
describe('@global scoped container', function () {
var sheet = void 0;

@@ -100,3 +100,3 @@

describe('@global prefix inside of a regular rule', function () {
describe('@global scoped container with comma separate selectors', function () {
var sheet = void 0;

@@ -108,2 +108,26 @@

float: 'left',
'@global': {
'a, b': { color: 'red' }
}
}
});
});
it('should add rules', function () {
(0, _expect2['default'])(sheet.getRule('button')).to.not.be(undefined);
(0, _expect2['default'])(sheet.getRule('.button-id a, .button-id b')).to.not.be(undefined);
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('.button-id {\n' + ' float: left;\n' + '}\n' + '.button-id a, .button-id b {\n' + ' color: red;\n' + '}');
});
});
describe('@global prefixed scoped rule', function () {
var sheet = void 0;
beforeEach(function () {
sheet = jss.createStyleSheet({
button: {
float: 'left',
'@global span': {

@@ -126,2 +150,26 @@ color: 'red'

describe('@global prefixed scoped rule with comma separate selectors', function () {
var sheet = void 0;
beforeEach(function () {
sheet = jss.createStyleSheet({
button: {
float: 'left',
'@global a, b': {
color: 'red'
}
}
});
});
it('should add rules', function () {
(0, _expect2['default'])(sheet.getRule('button')).to.not.be(undefined);
(0, _expect2['default'])(sheet.getRule('.button-id a, .button-id b')).to.not.be(undefined);
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('.button-id {\n' + ' float: left;\n' + '}\n' + '.button-id a, .button-id b {\n' + ' color: red;\n' + '}');
});
});
describe('@global with nested rules inside', function () {

@@ -148,2 +196,17 @@ var jss2 = void 0;

it('should handle nested rules inside of a rule with comma separated selector', function () {
var sheet = jss2.createStyleSheet({
'@global': {
'button, a': {
color: 'red',
'& span': {
color: 'green'
}
}
}
});
(0, _expect2['default'])(sheet.toString()).to.be('button, a {\n' + ' color: red;\n' + '}\n' + 'button span, a span {\n' + ' color: green;\n' + '}');
});
it('should handle regular deep nested rules', function () {

@@ -150,0 +213,0 @@ var sheet = jss2.createStyleSheet({

{
"name": "jss-global",
"version": "0.4.0",
"version": "0.4.1",
"description": "Global styles for JSS",

@@ -28,3 +28,3 @@ "main": "lib/index.js",

"keywords": [
"cssinnjs",
"cssinjs",
"css-in-js",

@@ -31,0 +31,0 @@ "css in js",

@@ -115,2 +115,14 @@ 'use strict';

var separatorRegExp = /\s*,\s*/g;
function addScope(selector, scope) {
var parts = selector.split(separatorRegExp);
var scoped = '';
for (var i = 0; i < parts.length; i++) {
scoped += scope + ' ' + parts[i].trim();
if (parts[i + 1]) scoped += ', ';
}
return scoped;
}
function handleNestedGlobalContainerRule(rule) {

@@ -125,5 +137,4 @@ var options = rule.options,

for (var name in rules) {
var selector = rule.selector + ' ' + name;
options.sheet.addRule(name, rules[name], _extends({}, options, {
selector: selector,
selector: addScope(name, rule.selector),
generateClassName: null

@@ -143,6 +154,5 @@ }));

var selector = prop.substr(key.length).trim();
var scopedSelector = rule.selector + ' ' + selector;
options.sheet.addRule(scopedSelector, style[prop], _extends({}, options, {
selector: scopedSelector,
var selector = addScope(prop.substr(key.length), rule.selector);
options.sheet.addRule(selector, style[prop], _extends({}, options, {
selector: selector,
generateClassName: null

@@ -149,0 +159,0 @@ }));

@@ -75,3 +75,3 @@ 'use strict';

describe('@global container inside of a regular rule', function () {
describe('@global scoped container', function () {
var sheet = void 0;

@@ -100,3 +100,3 @@

describe('@global prefix inside of a regular rule', function () {
describe('@global scoped container with comma separate selectors', function () {
var sheet = void 0;

@@ -108,2 +108,26 @@

float: 'left',
'@global': {
'a, b': { color: 'red' }
}
}
});
});
it('should add rules', function () {
(0, _expect2['default'])(sheet.getRule('button')).to.not.be(undefined);
(0, _expect2['default'])(sheet.getRule('.button-id a, .button-id b')).to.not.be(undefined);
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('.button-id {\n' + ' float: left;\n' + '}\n' + '.button-id a, .button-id b {\n' + ' color: red;\n' + '}');
});
});
describe('@global prefixed scoped rule', function () {
var sheet = void 0;
beforeEach(function () {
sheet = jss.createStyleSheet({
button: {
float: 'left',
'@global span': {

@@ -126,2 +150,26 @@ color: 'red'

describe('@global prefixed scoped rule with comma separate selectors', function () {
var sheet = void 0;
beforeEach(function () {
sheet = jss.createStyleSheet({
button: {
float: 'left',
'@global a, b': {
color: 'red'
}
}
});
});
it('should add rules', function () {
(0, _expect2['default'])(sheet.getRule('button')).to.not.be(undefined);
(0, _expect2['default'])(sheet.getRule('.button-id a, .button-id b')).to.not.be(undefined);
});
it('should generate correct CSS', function () {
(0, _expect2['default'])(sheet.toString()).to.be('.button-id {\n' + ' float: left;\n' + '}\n' + '.button-id a, .button-id b {\n' + ' color: red;\n' + '}');
});
});
describe('@global with nested rules inside', function () {

@@ -148,2 +196,17 @@ var jss2 = void 0;

it('should handle nested rules inside of a rule with comma separated selector', function () {
var sheet = jss2.createStyleSheet({
'@global': {
'button, a': {
color: 'red',
'& span': {
color: 'green'
}
}
}
});
(0, _expect2['default'])(sheet.toString()).to.be('button, a {\n' + ' color: red;\n' + '}\n' + 'button span, a span {\n' + ' color: green;\n' + '}');
});
it('should handle regular deep nested rules', function () {

@@ -150,0 +213,0 @@ var sheet = jss2.createStyleSheet({

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc