text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Stylist=t():e.Stylist=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")}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}}(),i=n(1),s=function(){function e(){r(this,e),this.element=document.createElement("style"),document.head.appendChild(this.element),this.sheet=this.element.sheet}return o(e,[{key:"clear",value:function(){for(var e=this.sheet.cssRules,t=e.length-1;t>=0;--t)this.sheet.deleteRule(t)}},{key:"append",value:function(e,t){if("string"!=typeof e)throw"selector should be string type.";var n=[];for(var r in t){if(!t.hasOwnProperty(r))return;var o=t[r];"number"==typeof o&&(o+="px"),n.push((0,i.dasherize)(r)+":"+o)}n.length&&this.sheet.insertRule(e+"{"+n.join(";")+"}",this.count)}},{key:"replace",value:function(e,t){var n=this.find(e);if(n)for(var r in t){if(!t.hasOwnProperty(r))return;var o=t[r];"number"==typeof o&&(o+="px"),n.style[r]=o}else this.append(e,t)}},{key:"matches",value:function(e,t){return e.selectorText.replace(/,\s*/,",")===t}},{key:"each",value:function(e){for(var t=this.sheet.cssRules,n=t.length,r=n-1;r>=0;--r){var o=t[r];if(e(o,r))return o}}},{key:"find",value:function(e){var t=this;return this.each(function(n,r){return t.matches(n,e)})}},{key:"remove",value:function(e){var t=this;this.each(function(n,r){return t.matches(n,e)?(t.sheet.deleteRule(r),!0):void 0})}},{key:"removeAll",value:function(e){var t=this;this.each(function(n,r){t.matches(n,e)&&t.sheet.deleteRule(r)})}},{key:"count",get:function(){return this.sheet.cssRules.length}}]),e}();t["default"]=new s,e.exports=t["default"]},function(e,t){"use strict";function n(e){return e.replace(/(\b|[a-z])([A-Z])/g,"$1-$2").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.dasherize=n}])});