Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,5 @@ | ||
## 1.0.1 / 2017-04-18 | ||
- Use latest jss-nested in devDeps | ||
## 1.0.0 / 2017-04-10 | ||
@@ -2,0 +6,0 @@ |
@@ -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 o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.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 o(e,t){for(var n=e.split(v),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+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:o(i,e.selector),generateClassName:null}));delete n[c]}}function u(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,c.length)===c){var i=o(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 y(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),u(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,o){r(this,e),this.type="global",this.name=t,this.options=o,this.rules=new f.RulesContainer(a({},o,{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}(),y=function(){function e(t,n,o){r(this,e),this.name=t,this.options=o;var i=t.substr(d.length);this.rule=o.jss.createRule(i,n,a({},o,{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=t.getDynamicStyles=void 0;var o=n(2),i=r(o),u=n(9),s=r(u),a=n(11),l=r(a),f=n(8),c=r(f),d=n(26),h=r(d);t.getDynamicStyles=h.default,/** | ||
!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 i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.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 i(e,t){for(var n=e.split(v),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function o(e){var t=e.options,n=e.style,r=n[c];if(r){for(var o in r)t.sheet.addRule(o,r[o],a({},t,{selector:i(o,e.selector),generateClassName:null}));delete n[c]}}function u(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,c.length)===c){var o=i(r.substr(c.length),e.selector);t.sheet.addRule(o,n[r],a({},t,{selector:o,generateClassName:null})),delete n[r]}}function s(){function e(e,t,n){if(e===c)return new d(e,t,n);if("@"===e[0]&&e.substr(0,h.length)===h)return new y(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&&(o(e),u(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",h="@global ",d=function(){function e(t,n,i){r(this,e),this.type="global",this.name=t,this.options=i,this.rules=new f.RulesContainer(a({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o],{generateClassName:null,selector:o});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}(),y=function(){function e(t,n,i){r(this,e),this.name=t,this.options=i;var o=t.substr(h.length);this.rule=i.jss.createRule(o,n,a({},i,{parent:this,selector:o,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=t.getDynamicStyles=void 0;var i=n(2),o=r(i),u=n(9),s=r(u),a=n(11),l=r(a),f=n(8),c=r(f),h=n(26),d=r(h);t.getDynamicStyles=d.default,/** | ||
* A better abstraction over CSS. | ||
@@ -8,3 +8,3 @@ * | ||
*/ | ||
t.SheetsRegistry=s.default,t.RulesContainer=l.default,t.sheets=c.default;var y=t.create=function(e){return new i.default(e)};t.default=y()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i="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};Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":i(e)},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}}(),l=n(3),f=r(l),c=n(18),d=r(c),h=n(19),y=r(h),v=n(8),p=r(v),b=n(25),m=r(b),g=n(12),k=r(g),S=n(4),j=r(S),_=function(){function e(t){o(this,e),this.version="7.0.0",this.plugins=new d.default,this.use.apply(this,y.default),this.setup(t)}return a(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=s({generateClassName:e.generateClassName||m.default,insertionPoint:e.insertionPoint||"jss"},e),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e,t){var n=new f.default(e,s({jss:this,generateClassName:this.options.generateClassName,insertionPoint:this.options.insertionPoint},t));return this.plugins.onProcessSheet(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),p.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":u(e))&&(n=t,t=e,e=void 0),n.classes||(n.classes={}),n.jss||(n.jss=this),n.Renderer||(n.Renderer=(0,j.default)(n)),n.generateClassName||(n.generateClassName=this.options.generateClassName||m.default);var r=(0,k.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=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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},u=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}}(),s=n(4),a=r(s),l=n(11),f=r(l),c=function(){function e(t,n){o(this,e);var r=(0,a.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=i({sheet:this,parent:this,classes:this.classes,index:u,Renderer:r},n),this.renderer=new r(this),this.renderer.createElement(),this.rules=new f.default(this.options);for(var s in t)this.rules.add(s,t[s]);this.rules.process()}return u(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 o=this.rules.add(e,t,n);if(this.options.jss.plugins.onProcessRule(o),this.attached){if(!this.deployed)return o;if(r)r.push(o);else{var i=this.renderer.insertRule(o);i&&this.options.link&&(o.renderable=i),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=void 0)}return o}return this.deployed=!1,o}},{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:"update",value:function(e){return this.rules.update(e),this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.Renderer)return e.Renderer;var t=e.virtual||!u.default;return t?f.default:a.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(5),u=r(i),s=n(6),a=r(s),l=n(10),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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function u(e,t,n){try{e.style.setProperty(t,n)}catch(e){return!1}return!0}function s(e){return e.selectorText}function a(e,t){return e.selectorText=t,e.selectorText===t}function l(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function f(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function c(e){for(var t=m(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}function d(e){var t=b.default.registry;if(t.length>0){var n=l(t,e);if(n)return n.renderer.element;if(n=f(t,e))return n.renderer.element.nextElementSibling}var r=c(e.insertionPoint);return r?r.nextSibling:null}Object.defineProperty(t,"__esModule",{value:!0});var h=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}}(),y=n(7),v=r(y),p=n(8),b=r(p),m=function(){var e=void 0;return function(){return e||(e=document.head||document.getElementsByTagName("head")[0]),e}}(),g=function(){function e(t){o(this,e),this.getStyle=i,this.setStyle=u,this.setSelector=a,this.getSelector=s,this.sheet=t,t&&b.default.add(t)}return h(e,[{key:"createElement",value:function(){var e=this.sheet?this.sheet.options:{},t=e.media,n=e.meta,r=e.element;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=d(this.sheet.options);m().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,o=e.toString();if(!o)return!1;try{t.insertRule(o,r)}catch(t){return(0,v.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=g},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 o=n(9),i=r(o);t.default=new i.default},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(){n(this,e),this.registry=[]}return r(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 o=t[r].options;if(o.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=o},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(){n(this,e)}return r(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=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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},u=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}}(),s=n(12),a=r(s),l=function(){function e(t){o(this,e),this.map=Object.create(null),this.raw=Object.create(null),this.index=[],this.options=t,this.classes=t.classes}return u(e,[{key:"add",value:function(e,t,n){var r=this.options,o=r.parent,u=r.sheet,s=r.jss,l=r.Renderer,f=r.generateClassName;n=i({classes:this.classes,parent:o,sheet:u,jss:s,Renderer:l,generateClassName:f},n),n.className||(n.className=this.classes[e]),this.raw[e]=t;var c=(0,a.default)(e,t,n);this.register(c);var d=void 0===n.index?this.index.length:n.index;return this.index.splice(d,0,c),c}},{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){e.name&&(delete this.map[e.name],delete this.classes[e.name]),delete this.map[e.selector]}},{key:"update",value:function(t){this.index.forEach(function(n){if("regular"===n.type)for(var r in n.style){var o=n.style[r];if("function"==typeof o){var i=o(t);n.prop(r,i)}}else n.rules instanceof e&&n.rules.update(t)})}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],o=r.toString(e);o&&(t&&(t+="\n"),t+=o)}return t}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=n.jss,o=(0,f.default)(t);if(r){var i=r.plugins.onCreateRule(e,o,n);if(i)return i}return e&&"@"===e[0]&&(0,u.default)(!1,"[JSS] Unknown at-rule %s",e),new a.default(e,o,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(7),u=r(i),s=n(13),a=r(s),l=n(17),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i="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};Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":i(e)},s=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}}(),a=n(14),l=r(a),f=n(15),c=r(f),d=n(16),h=r(d),y=function(){function e(t,n,r){o(this,e),this.type="regular";var i=r.generateClassName,u=r.sheet,s=r.Renderer;this.name=t,this.className="",this.options=r,this.style=n,r.className?this.className=r.className:i&&(this.className=i(this,r.sheet)),this.selectorText=r.selector||"."+this.className,u?this.renderer=u.renderer:s&&(this.renderer=new s)}return s(e,[{key:"prop",value:function(e,t){var n="function"==typeof this.style[e]?"$"+e:e,r=this.style[n];if(null!=t){if(r!==t){var o=this.options.jss,i=o?o.plugins.onChangeValue(t,e,this):t;Object.defineProperty(this.style,n,{value:i,writable:!0}),this.renderable&&this.renderer.setStyle(this.renderable,e,i)}return this}return this.renderable&&null==r&&(r=this.renderer.getStyle(this.renderable,e),this.prop(e,r)),this.style[n]}},{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],r="undefined"==typeof n?"undefined":u(n);"function"===r?e[t]=this.style["$"+t]:"object"!==r?e[t]=n:Array.isArray(n)&&(e[t]=(0,c.default)(n))}return e}},{key:"toString",value:function(e){return(0,l.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,h.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=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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,u=t.fallbacks,a="";if(i++,u)if(Array.isArray(u))for(var l=0;l<u.length;l++){var f=u[l];for(var c in f){var d=f[c];null!=d&&(a+="\n"+o(c+": "+(0,s.default)(d)+";",i))}}else for(var h in u){var y=u[h];null!=y&&(a+="\n"+o(h+": "+(0,s.default)(y)+";",i))}for(var v in t){var p=t[v];"function"==typeof p&&(p=t["$"+v]),null!=p&&"fallbacks"!==v&&(a+="\n"+o(v+": "+(0,s.default)(p)+";",i))}return a?(i--,a=o(e+" {"+a+"\n",i)+o("}",i)):a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(15),s=r(u)},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(o);return t?t.join(" ").replace(r,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=/[.]/g,o=/[.][^ ,]+/g},function(e,t){"use strict";function n(e){if(null==e)return e;var t="undefined"==typeof e?"undefined":o(e);if("string"===t||"number"===t)return e;if(i(e))return e.map(n);var r={};for(var u in e){var s=e[u];"object"!==("undefined"==typeof s?"undefined":o(s))?r[u]=s:r[u]=n(s)}return r}var r="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};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":r(e)};t.default=n;var i=Array.isArray},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),u=n(7),s=r(u),a=function(){function e(){o(this,e),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}}return i(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.hooks.onCreateRule.length;r++){var o=this.hooks.onCreateRule[r](e,t,n);if(o)return o}return null}},{key:"onProcessRule",value:function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}}},{key:"onProcessStyle",value:function(e,t,n){for(var r=0;r<this.hooks.onProcessStyle.length;r++)t.style=e=this.hooks.onProcessStyle[r](e,t,n)}},{key:"onProcessSheet",value:function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)}},{key:"onChangeValue",value:function(e,t,n){for(var r=e,o=0;o<this.hooks.onChangeValue.length;o++)r=this.hooks.onChangeValue[o](r,t,n);return r}},{key:"use",value:function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):(0,s.default)(!1,'[JSS] Unknown hook "%s".',t)}}]),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 o=n(20),i=r(o),u=n(21),s=r(u),a=n(22),l=r(a),f=n(23),c=r(f),d=n(24),h=r(d),y={"@charset":i.default,"@import":i.default,"@namespace":i.default,"@keyframes":s.default,"@media":l.default,"@supports":l.default,"@font-face":c.default,"@viewport":h.default,"@-ms-viewport":h.default};t.default=Object.keys(y).map(function(e){var t=new RegExp("^"+e),n=function(n,r,o){return t.test(n)?new y[e](n,r,o):null};return{onCreateRule:n}})},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(t,r,o){n(this,e),this.type="simple",this.name=t,this.value=r,this.options=o}return r(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=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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},u=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}}(),s=n(12),a=r(s),l={indent:1},f=function(){function e(t,n,r){o(this,e),this.type="keyframe",this.selector=t,this.options=r,this.frames=this.formatFrames(n)}return u(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var r=i({},this.options,{parent:this,className:n,selector:n}),o=(0,a.default)(n,e[n],r);r.jss.plugins.onProcessRule(o),t[n]=o}return t}},{key:"toString",value:function(){var e=this.selector+" {\n";for(var t in this.frames)e+=this.frames[t].toString(l)+"\n";return e+="}"}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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},u=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}}(),s=n(11),a=r(s),l=function(){function e(t,n,r){o(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new a.default(i({},r,{parent:this}));for(var u in n)this.rules.add(u,n[u]);this.rules.process()}return u(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=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),u=n(14),s=r(u),a=function(){function e(t,n,r){o(this,e),this.type="font-face",this.selector=t,this.style=n,this.options=r}return i(e,[{key:"toString",value:function(){if(Array.isArray(this.style)){for(var e="",t=0;t<this.style.length;t++)e+=(0,s.default)(this.selector,this.style[t]),this.style[t+1]&&(e+="\n");return e}return(0,s.default)(this.selector,this.style)}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),u=n(14),s=r(u),a=function(){function e(t,n,r){o(this,e),this.type="viewport",this.name=t,this.style=n,this.options=r}return i(e,[{key:"toString",value:function(){return(0,s.default)(this.name,this.style)}}]),e}();t.default=a},function(e,t){(function(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof window?e:window,r="__JSS_VERSION_COUNTER__";null==n[r]&&(n[r]=0);var o=n[r]++,i=0;t.default=function(e){return(e.name||"jss")+"-"+o+"-"+i++}}).call(t,function(){return this}())},function(e,t){"use strict";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};Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":"undefined"==typeof e?"undefined":n(e)};t.default=function(e){function t(e){var o=void 0;for(var i in e){var u=e[i],s="undefined"==typeof u?"undefined":r(u);if("function"===s)o||(o={}),o[i]=u,n++;else if("object"===s&&null!==u&&!Array.isArray(u)){o||(o={});var a=t(u);a&&(o[i]=a)}}return o}var n=0,o=t(e);return n?o:null}}])}); | ||
t.SheetsRegistry=s.default,t.RulesContainer=l.default,t.sheets=c.default;var y=t.create=function(e){return new o.default(e)};t.default=y()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="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},u=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},s=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}}(),a=n(3),l=r(a),f=n(18),c=r(f),h=n(19),d=r(h),y=n(8),v=r(y),p=n(25),b=r(p),g=n(12),m=r(g),k=n(4),j=r(k),_=function(){function e(t){i(this,e),this.version="7.0.3",this.plugins=new c.default,this.use.apply(this,d.default),this.setup(t)}return s(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=u({generateClassName:e.generateClassName||b.default,insertionPoint:e.insertionPoint||"jss"},e),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e,t){var n=new l.default(e,u({jss:this,generateClassName:this.options.generateClassName,insertionPoint:this.options.insertionPoint},t));return this.plugins.onProcessSheet(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),v.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":o(e))&&(n=t,t=e,e=void 0),n.classes||(n.classes={}),n.jss||(n.jss=this),n.Renderer||(n.Renderer=(0,j.default)(n)),n.generateClassName||(n.generateClassName=this.options.generateClassName||b.default);var r=(0,m.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=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),s=n(4),a=r(s),l=n(11),f=r(l),c=function(){function e(t,n){i(this,e);var r=(0,a.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=o({sheet:this,parent:this,classes:this.classes,index:u,Renderer:r},n),this.renderer=new r(this),this.renderer.createElement(),this.rules=new f.default(this.options);for(var s in t)this.rules.add(s,t[s]);this.rules.process()}return u(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 i=this.rules.add(e,t,n);if(this.options.jss.plugins.onProcessRule(i),this.attached){if(!this.deployed)return i;if(r)r.push(i);else{var o=this.renderer.insertRule(i);o&&this.options.link&&(i.renderable=o),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=void 0)}return i}return this.deployed=!1,i}},{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.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:"update",value:function(e){return this.rules.update(e),this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.Renderer)return e.Renderer;var t=e.virtual||!u.default;return t?f.default:a.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(5),u=r(o),s=n(6),a=r(s),l=n(10),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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function u(e,t,n){try{e.style.setProperty(t,n)}catch(e){return!1}return!0}function s(e){return e.selectorText}function a(e,t){return e.selectorText=t,e.selectorText===t}function l(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function f(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function c(e){for(var t=g(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}function h(e){var t=b.default.registry;if(t.length>0){var n=l(t,e);if(n)return n.renderer.element;if(n=f(t,e))return n.renderer.element.nextElementSibling}var r=c(e.insertionPoint);return r?r.nextSibling:null}Object.defineProperty(t,"__esModule",{value:!0});var d=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}}(),y=n(7),v=r(y),p=n(8),b=r(p),g=function(){var e=void 0;return function(){return e||(e=document.head||document.getElementsByTagName("head")[0]),e}}(),m=function(){function e(t){i(this,e),this.getStyle=o,this.setStyle=u,this.setSelector=a,this.getSelector=s,this.hasInsertedRules=!1,this.sheet=t,t&&b.default.add(t)}return d(e,[{key:"createElement",value:function(){var e=this.sheet?this.sheet.options:{},t=e.media,n=e.meta,r=e.element;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){this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1);var e=h(this.sheet.options);g().insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length,i=e.toString();if(!i)return!1;try{t.insertRule(i,r)}catch(t){return(0,v.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return this.hasInsertedRules=!0,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=m},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 i=n(9),o=r(i);t.default=new o.default},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(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 i=t[r].options;if(i.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=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function(){function e(){n(this,e)}return r(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=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),s=n(12),a=r(s),l=function(){function e(t){i(this,e),this.map=Object.create(null),this.raw=Object.create(null),this.index=[],this.options=t,this.classes=t.classes}return u(e,[{key:"add",value:function(e,t,n){var r=this.options,i=r.parent,u=r.sheet,s=r.jss,l=r.Renderer,f=r.generateClassName;n=o({classes:this.classes,parent:i,sheet:u,jss:s,Renderer:l,generateClassName:f},n),n.className||(n.className=this.classes[e]),this.raw[e]=t;var c=(0,a.default)(e,t,n);this.register(c);var h=void 0===n.index?this.index.length:n.index;return this.index.splice(h,0,c),c}},{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){e.name&&(delete this.map[e.name],delete this.classes[e.name]),delete this.map[e.selector]}},{key:"update",value:function(t){this.index.forEach(function(n){if("regular"===n.type)for(var r in n.style){var i=n.style[r];if("function"==typeof i){var o=i(t);n.prop(r,o)}}else n.rules instanceof e&&n.rules.update(t)})}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],i=r.toString(e);i&&(t&&(t+="\n"),t+=i)}return t}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=n.jss,i=(0,f.default)(t);if(r){var o=r.plugins.onCreateRule(e,i,n);if(o)return o}return e&&"@"===e[0]&&(0,u.default)(!1,"[JSS] Unknown at-rule %s",e),new a.default(e,i,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(7),u=r(o),s=n(13),a=r(s),l=n(17),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="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},u=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}}(),s=n(14),a=r(s),l=n(15),f=r(l),c=n(16),h=r(c),d=function(){function e(t,n,r){i(this,e),this.type="regular";var o=r.generateClassName,u=r.sheet,s=r.Renderer;this.name=t,this.className="",this.options=r,this.style=n,r.className?this.className=r.className:o&&(this.className=o(this,r.sheet)),this.selectorText=r.selector||"."+this.className,u?this.renderer=u.renderer:s&&(this.renderer=new s)}return u(e,[{key:"prop",value:function(e,t){var n="function"==typeof this.style[e]?"$"+e:e,r=this.style[n];if(null!=t){if(r!==t){var i=this.options.jss,o=i?i.plugins.onChangeValue(t,e,this):t;Object.defineProperty(this.style,n,{value:o,writable:!0}),this.renderable&&this.renderer.setStyle(this.renderable,e,o)}return this}return this.renderable&&null==r&&(r=this.renderer.getStyle(this.renderable,e),this.prop(e,r)),this.style[n]}},{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],r="undefined"==typeof n?"undefined":o(n);"function"===r?e[t]=this.style["$"+t]:"object"!==r?e[t]=n:Array.isArray(n)&&(e[t]=(0,f.default)(n))}return e}},{key:"toString",value:function(e){return(0,a.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,h.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=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.indent,o=void 0===r?0:r,u=t.fallbacks,a="";if(o++,u)if(Array.isArray(u))for(var l=0;l<u.length;l++){var f=u[l];for(var c in f){var h=f[c];null!=h&&(a+="\n"+i(c+": "+(0,s.default)(h)+";",o))}}else for(var d in u){var y=u[d];null!=y&&(a+="\n"+i(d+": "+(0,s.default)(y)+";",o))}for(var v in t){var p=t[v];"function"==typeof p&&(p=t["$"+v]),null!=p&&"fallbacks"!==v&&(a+="\n"+i(v+": "+(0,s.default)(p)+";",o))}return a?(o--,a=i(e+" {"+a+"\n",o)+i("}",o)):a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=n(15),s=r(u)},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(i);return t?t.join(" ").replace(r,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=/[.]/g,i=/[.][^ ,]+/g},function(e,t){"use strict";function n(e){if(null==e)return e;var t="undefined"==typeof e?"undefined":r(e);if("string"===t||"number"===t)return e;if(i(e))return e.map(n);var o={};for(var u in e){var s=e[u];"object"!==("undefined"==typeof s?"undefined":r(s))?o[u]=s:o[u]=n(s)}return o}Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=n;var i=Array.isArray},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),u=n(7),s=r(u),a=function(){function e(){i(this,e),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}}return o(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.hooks.onCreateRule.length;r++){var i=this.hooks.onCreateRule[r](e,t,n);if(i)return i}return null}},{key:"onProcessRule",value:function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}}},{key:"onProcessStyle",value:function(e,t,n){for(var r=0;r<this.hooks.onProcessStyle.length;r++)t.style=e=this.hooks.onProcessStyle[r](e,t,n)}},{key:"onProcessSheet",value:function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)}},{key:"onChangeValue",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onChangeValue.length;i++)r=this.hooks.onChangeValue[i](r,t,n);return r}},{key:"use",value:function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):(0,s.default)(!1,'[JSS] Unknown hook "%s".',t)}}]),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 i=n(20),o=r(i),u=n(21),s=r(u),a=n(22),l=r(a),f=n(23),c=r(f),h=n(24),d=r(h),y={"@charset":o.default,"@import":o.default,"@namespace":o.default,"@keyframes":s.default,"@media":l.default,"@supports":l.default,"@font-face":c.default,"@viewport":d.default,"@-ms-viewport":d.default};t.default=Object.keys(y).map(function(e){var t=new RegExp("^"+e),n=function(n,r,i){return t.test(n)?new y[e](n,r,i):null};return{onCreateRule:n}})},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function(){function e(t,r,i){n(this,e),this.type="simple",this.name=t,this.value=r,this.options=i}return r(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=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),s=n(12),a=r(s),l={indent:1},f=function(){function e(t,n,r){i(this,e),this.type="keyframe",this.selector=t,this.options=r,this.frames=this.formatFrames(n)}return u(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var r=o({},this.options,{parent:this,className:n,selector:n}),i=(0,a.default)(n,e[n],r);r.jss.plugins.onProcessRule(i),t[n]=i}return t}},{key:"toString",value:function(){var e=this.selector+" {\n";for(var t in this.frames)e+=this.frames[t].toString(l)+"\n";return e+="}"}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),s=n(11),a=r(s),l=function(){function e(t,n,r){i(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new a.default(o({},r,{parent:this}));for(var u in n)this.rules.add(u,n[u]);this.rules.process()}return u(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=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),u=n(14),s=r(u),a=function(){function e(t,n,r){i(this,e),this.type="font-face",this.selector=t,this.style=n,this.options=r}return o(e,[{key:"toString",value:function(){if(Array.isArray(this.style)){for(var e="",t=0;t<this.style.length;t++)e+=(0,s.default)(this.selector,this.style[t]),this.style[t+1]&&(e+="\n");return e}return(0,s.default)(this.selector,this.style)}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),u=n(14),s=r(u),a=function(){function e(t,n,r){i(this,e),this.type="viewport",this.name=t,this.style=n,this.options=r}return o(e,[{key:"toString",value:function(){return(0,s.default)(this.name,this.style)}}]),e}();t.default=a},function(e,t){(function(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof window?e:window,r="__JSS_VERSION_COUNTER__";null==n[r]&&(n[r]=0);var i=n[r]++,o=0;t.default=function(e){return(e.name||"jss")+"-"+i+"-"+o++}}).call(t,function(){return this}())},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};t.default=function(e){function t(e){var r=null;for(var i in e){var o=e[i],u="undefined"==typeof o?"undefined":n(o);if("function"===u)r||(r={}),r[i]=o;else if("object"===u&&null!==o&&!Array.isArray(o)){var s=t(o);s&&(r||(r={}),r[i]=s)}}return r}return t(e)}}])}); | ||
//# sourceMappingURL=jss-global.min.js.map |
{ | ||
"name": "jss-global", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Global styles for JSS", | ||
@@ -68,3 +68,3 @@ "main": "lib/index.js", | ||
"jss": "^7.0.0", | ||
"jss-nested": "^3.0.0", | ||
"jss-nested": "^4.0.1", | ||
"karma": "^1.3.0", | ||
@@ -71,0 +71,0 @@ "karma-chrome-launcher": "^2.0.0", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
414973
2871