-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss.min.js
1 lines (1 loc) · 19.1 KB
/
css.min.js
1
(function(){"use strict";var t,e,n,r,i,o,u,s,c,f,a,p,h,l,g,m,d,y,v,b,w=[].slice,S=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},j=function(t,e){function n(){this.constructor=t}for(var r in e)x.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},x={}.hasOwnProperty;d=function(t,e){return e instanceof t},b=function(t,e){return null==e&&(e="object"),typeof t===e},r={Boolean:!1,String:"",Object:{},Array:[],Function:function(){},Number:function(){var t;return t=new Number,t["void"]=!0,t}()},s={Undefined:function(t){return void 0===t},Null:function(t){return null===t},Function:function(t){return b(t,"function")},Boolean:function(t){return b(t,"boolean")},String:function(t){return b(t,"string")},Array:function(t){return b(t)&&d(Array,t)},RegExp:function(t){return b(t)&&d(RegExp,t)},Date:function(t){return b(t)&&d(Date,t)},Number:function(t){return b(t,"number")&&t===t||b(t)&&d(Number,t)},Object:function(t){return!(!b(t)||null===t||d(Boolean,t)||d(Number,t)||d(Array,t)||d(RegExp,t)||d(Date,t))},NaN:function(t){return b(t,"number")&&t!==t},Defined:function(t){return void 0!==t}},s.StringOrNumber=function(t){return s.String(t)||s.Number(t)},f=l={parseIntBase:10},m=function(t){var e;return e=function(e){switch(t){case"Number":if(l.isNumber(e=parseInt(e,l.parseIntBase))&&!e["void"])return e;break;case"String":if(l.isStringOrNumber(e))return e+"";break;default:if(f["is"+t](e))return e}},function(n,i){return null!=n&&void 0!==(n=e(n))?n:null!=i&&void 0!==(i=e(i))?i:r[t]}},v=function(t,e,n){var r,i,o;if(null==n&&(n=[]),n.length<1)return t===s.Undefined;for(r=0,i=n.length;i>r;r++)if(o=n[r],t(o)===e)return e;return!e},g=!0,function(){var t,e,n;n=[];for(t in s)e=s[t],n.push(function(t,e){return f["is"+t]=e,f["not"+t]=function(t){return!e(t)},f["has"+t]=function(){return v(e,g,arguments)},f["all"+t]=function(){return v(e,!g,arguments)},t in r?f["force"+t]=m(t):void 0}(t,e));return n}(),f.intoArray=function(){var t;return t=1<=arguments.length?w.call(arguments,0):[],t.length<2&&(l.isString(t[0])?t=t.join("").replace(/^\s+|\s+$/g,"").replace(/\s+/g," ").split(" "):l.isArray(t[0])&&(t=t[0])),t},f["typeof"]=function(t){var e,n;for(e in s)if(n=s[e],n(t)===!0)return e.toLowerCase()},c=function(){function t(){}return t.positiveIndex=function(t,e){return 0===(t=l.forceNumber(t,0))?!1:(e=Math.abs(l.forceNumber(e)),Math.abs(t)<=e?t>0?t-1:e+t:!1)},t.noDupAndReverse=function(t){var e,n,r,i,o;for(r=t.length-1,i=[],n=e=o=r;0>=o?0>=e:e>=0;n=0>=o?++e:--e)i[i.length-1]!==t[n]&&i.push(t[n]);return i},t.insertSort=function(){var t,e,n,r,i,o,u;if(t=l.intoArray.apply(this,arguments),t.length>1)for(i=t.length-1,r=n=1,u=i;u>=1?u>=n:n>=u;r=u>=1?++n:--n){for(e=t[r],o=r-1;o>=0&&t[o]>e;)t[o+1]=t[o],--o;t[+o+1]=e}return t},t}(),o=function(){function t(){}return t.create=function(){var t,e,n,r;for(r="",e=0,n=arguments.length;n>e;e++)t=arguments[e],r+=l.forceString(t);return r},t.find=function(e,n,r){var i,o;if(i=[],""===(e=l.forceString(e)))return i;if(r=l.forceString(r,"g"),l.isStringOrNumber(n))n=new RegExp(t.regEscape(n+""),r);else{if(!l.isRegExp(n))return i;n=new RegExp(n.source,r)}if(n.global)for(;o=n.exec(e);)i.push(o.index+1);else(o=n.exec(e))&&i.push(o.index+1);return i},t.trim=function(t){return null==t&&(t=""),(t+"").replace(/^\s+|\s+$/g,"")},t.oneSpace=function(t){return null==t&&(t=""),(t+"").replace(/\s+/g," ")},t.oneSpaceAndTrim=function(e){return t.oneSpace(t.trim(e))},t.split=function(e,n){var r,i,o,u,s;if(e=t.oneSpaceAndTrim(e),u=[],e.length<1)return u;for(n=l.forceString(n," "),r=e.split(n[0]||""),i=0,o=r.length;o>i;i++)s=r[i],s.match(/^\s$/)||u.push(t.trim(s));return u},t.xs=function(t,e){var n,r,i,o,u,s;if(null==t&&(t=""),t=l.forceString(t),-1===(i=t.length-1))return"";for(e=l.forceFunction(e,function(t){return t}),s="",r=n=0,o=i;o>=0?o>=n:n>=o;r=o>=0?++n:--n)(u=e(t[r],r))&&(u===!0?s+=t[r]:l.isStringOrNumber(u)&&(s+=u));return s},t.times=function(t,e){var n;if(""===(t=l.forceString(t)))return"";for(e=l.forceNumber(e,1),n="";e-->0;)n+=t;return n},t.hasUpper=function(t){return/[A-Z]+/g.test(t)},t.REGEXP_SPECIAL_CHARS=["?","\\","[","]","(",")","*","+",".","/","|","^","$","<",">","-","&"],t.regEscape=function(e){return""===(e=l.forceString(e))?e:t.xs(e,function(e){return S.call(t.REGEXP_SPECIAL_CHARS,e)>=0?"\\"+e:!0})},t.replace=function(e,n,r,i){var o;return null==e&&(e=""),null==n&&(n=""),null==r&&(r=""),null==i&&(i="g"),!l.isStringOrNumber(e)||"string"!==(o=l["typeof"](n))&&"number"!==o&&"regexp"!==o?l.forceString(e):(l.notRegExp(n)&&(n=t.regEscape(n+""),n=new RegExp(n,i)),(e+"").replace(n,r))},t.toCamel=function(e,n){var r;return e=l.forceString(e),n=l.forceString(n,"-"),r=new RegExp(t.regEscape(n)+"([a-z])","ig"),t.replace(e,r,function(t,e){return e.toUpperCase()})},t.unCamel=function(e,n){return e=l.forceString(e),n=l.forceString(n,"-"),t.replace(e,/([A-Z])/g,n+"$1").toLowerCase()},t.remove=function(){var e,n,r,i,o;if(i=arguments[0],o=2<=arguments.length?w.call(arguments,1):[],null==i&&(i=""),""===(i=l.forceString(i))||o.length<1)return i;for(e=0,n=o.length;n>e;e++)r=o[e],i=t.replace(i,r);return i},t.count=function(e,n){return t.find(e,n).length},t.contains=function(e,n){return t.count(e,n)>0},t}(),p=function(){function t(){this.set.apply(this,arguments)}return t.delimiter=" ",t.prototype.get=function(){var e,n,r,i;if(arguments.length<1)return this.words.join(t.delimiter);for(i="",e=0,r=arguments.length;r>e;e++)n=arguments[e],n=c.positiveIndex(n,this.count),n!==!1&&(i+=this.words[n]+t.delimiter);return o.trim(i)},t.prototype.set=function(){var e,n,r,i,u,s,c,f;if(n=1<=arguments.length?w.call(arguments,0):[],this.words=[],n=l.intoArray.apply(this,n),n.length<1)return this;for(r=0,u=n.length;u>r;r++)for(e=n[r],c=o.split(o.create(e),t.delimiter),i=0,s=c.length;s>i;i++)f=c[i],this.words.push(f);return this},t.prototype.xs=function(t){var e,n,r,i,o,u,s;if(null==t&&(t=function(){return!0}),l.notFunction(t)||this.count<1)return this;for(u=[],i=this.words,n=e=0,r=i.length;r>e;n=++e)s=i[n],(o=t(s,n))&&(o===!0?u.push(s):l.isStringOrNumber(o)&&u.push(o+""));return this.words=u,this},t.prototype.pop=function(t){var e,n,r,i,o;for(t=Math.abs(l.forceNumber(t,1)),i="",n=e=1,o=t;o>=1?o>=e:e>=o;n=o>=1?++e:--e)r=this.words.pop(),void 0!==r&&(i=r+" "+i);return i.trim()},t.prototype.startsWith=function(e){var n;return""===(e=l.forceString(e))?!1:(n=!0,e=new t(e),e.xs(function(t){return function(e,r){return e!==t.words[r]?n=!1:void 0}}(this)),n)},t.prototype.remove=function(){var t,e,n,r,i,o,u;if(arguments.length<1)return this;for(e=[],n=0,o=arguments.length;o>n;n++)t=arguments[n],l.isString(t)?e.unshift(t):l.isNumber(t)&&e.push(c.positiveIndex(t,this.count));for(e=c.noDupAndReverse(c.insertSort(e)),r=i=0,u=e.length;u>i;r=++i)t=e[r],l.isNumber(t)?this.xs(function(){return function(e,n){return n!==t?!0:void 0}}(this)):l.isString(t)&&this.xs(function(e){return e!==t?!0:void 0});return this},t}(),Object.defineProperty(p.prototype,"$",{get:function(){return this.get()}}),Object.defineProperty(p.prototype,"count",{get:function(){return this.words.length}}),h=function(){function t(e,n){this.object={},e&&t.add(this.object,e,n)}var e,n,r,u;return e=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},n=function(t,e,r){var i,o;null==t&&(t={});for(i in e)o=e[i],l.isObject(o)&&n(t[i],o,r),r&&t.hasOwnProperty(i)||(t[i]=o);return t},r=function(t,e){var n,r,i;return e=l.forceFunction(e,function(){return!0}),i=function(t){var o,u,s,c;for(o in t)if(c=t[o],!l.notObject(t)){if(n.push(o),u=e(o,c,n)){if(l.isObject(u))if(u.remove===!0)delete t[o];else{if(l.isDefined(u.value)){c=t[o]=u.value;continue}l.isDefined(u.key)&&""!==(s=l.forceString(u.key))&&(t.hasOwnProperty(s)||(t[s]=c,delete t[o]))}if(r.push({key:o,value:c,path:n.join(" ")}),(null!=u?u.stop:void 0)===!0)return}i(c),n.pop()}},r=[],n=[],i(t),r},u=function(t,e,n){var r,i,u,s,c,f,a;if(c=o.oneSpaceAndTrim(l.forceString(e)).split(" "),""!==c[0]){if(s=c.length-2,s>-1){for(i=r=0,f=s;f>=0?f>=r:r>=f;i=f>=0?++r:--r)if(void 0===(t=t[c[i]]))return}else i=0;if(u=c[i],l.isDefined(n)&&t.hasOwnProperty(u)){if(n.remove)return delete t[u];n.key&&!t.hasOwnProperty(n.key)&&(t[n.key]=t[u],delete t[u],u=n.key),n.value&&t.hasOwnProperty(u)&&(t[u]=n.value)}return a=t[u]}},t.Types=f,t.Tools=c,t.Strings=o,t.Words=p,t.empty=function(t){return l.notObject(t)||t instanceof Number?!1:e(t)},t.extend=function(t,e){return n(l.forceObject(t),l.forceObject(e))},t.append=function(t,e){return n(l.forceObject(t),l.forceObject(e),!0)},t.add=function(t,e,r){var i,o,u,s,c,f,a;if(null==t&&(t={}),l.isObject(e))return n(t,e,!0);for(e=new p(e),a=l.isObject(r),f=t,c=e.words,o=i=0,u=c.length;u>i;o=++i)s=c[o],(o<e.count-1||a)&&null==f[s]&&(f[s]={}),o<e.count-1?f.hasOwnProperty(s)&&(f=f[s]):a?n(f[s],r,!0):null==f[s]&&(f[s]=r);return t},t.xs=function(t,e){return l.notObject(t)?[]:r(t,e)},t.copy=function(t){var e;return l.notObject(t)?{}:(e=function(t,n){var r,i;for(r in n)i=n[r],l.isObject(n)?t[r]=i:e(i);return t})({},t)},t.get=function(t,e,n){return l.isObject(t)?u(t,e,n):""},t.getn=function(e,n,r){return l.forceNumber(t.get(e,n),r)},t.gets=function(e,n){return l.forceString(t.get(e,n))},t.geta=function(e,n){return l.forceArray(t.get(e,n))},t.geto=function(e,n){return l.forceObject(t.get(e,n))},t.keys=function(e,n){var r,i;if(i=[],l.isObject(n=t.get(e,n)))for(r in n)i.push(r);return i},t.values=function(e,n){var r,i,o;if(o=[],l.isObject(n=t.get(e,n)))for(r in n)i=n[r],o.push(i);return o},t.prototype.xs=function(e){return t.xs(this.object,e)},t.prototype.empty=function(){return e(this.object)},t.prototype.copy=function(){return t.copy(this.object)},t.prototype.add=function(e,n){return t.add(this.object,e,n)},t.prototype.remove=function(t){return u(this.object,t,{remove:!0})},t.prototype.removeAll=function(e){return""!==(e=o.trim(e))&&t.xs(this.object,function(t){return t===e?{remove:!0}:void 0}),this},t.prototype.set=function(e,n){var r,i,o,s;if(""===(e=l.forceString(e)))return"";if(n=u(this.object,e,{value:n}))if(l.isObject(n))for(o=new t(n).search(),r=0,s=o.length;s>r;r++)i=o[r],this.triggerListener(e+" "+i.path,n);else this.triggerListener(e,n);return n},t.prototype.setAll=function(e,n){var r,i,u,s;if(""!==(e=o.trim(e)))for(t.xs(this.object,function(t){return t===e?{value:n}:void 0}),u=this.search(e),r=0,i=u.length;i>r;r++)s=u[r],this.triggerListener(s.path,n);return this},t.prototype.setKey=function(t,e){return u(this.object,t,{key:e})},t.prototype.setAllKeys=function(e,n){return""!==(e=o.trim(e))&&t.xs(this.object,function(t){return t===e?{key:n}:void 0}),this},t.prototype.search=function(t){var e,n;return l.isDefined(t)&&""===(t=o.trim(t))?[]:(e=t?function(e){return e===t?!0:void 0}:function(){return!0},n=this.xs(e))},t.prototype.list=function(t){var e;return""===(t=o.oneSpaceAndTrim(t))?[]:(e=t?function(e){return new p(e.join(" ")).startsWith(t)?!0:void 0}:function(){return!0},this.xs(function(t,n,r){return e(r)}))},t.prototype.get=function(t){return void 0===t?this.object:u(this.object,t)},t.prototype.getn=function(e,n){return t.getn(this.object,e,n)},t.prototype.gets=function(e){return t.gets(this.object,e)},t.prototype.geta=function(e){return t.geta(this.object,e)},t.prototype.geto=function(e){return t.geto(this.object,e)},t.prototype.keys=function(t){var e,n;if(n=[],l.isObject(t=u(this.object,t)))for(e in t)n.push(e);return n},t.prototype.values=function(t){var e,n,r;if(r=[],l.isObject(t=u(this.object,t)))for(e in t)n=t[e],r.push(n);return r},t.prototype.paths=function(t){var e,n,r,i,o;for(i=[],o=this.search(t),n=0,r=o.length;r>n;n++)e=o[n],i.push(e.path);return i},t.prototype.addListener=function(t,e){return this.listeners||(this.listeners=new i),this.listeners.add(t,e)},t.prototype.triggerListener=function(t,e){return this.listeners&&this.listeners.trigger(t,e),this},t.prototype.removeListener=function(){var t,e,n,r;if(r=1<=arguments.length?w.call(arguments,0):[],this.listeners)for(t=0,e=r.length;e>t;t++)n=r[t],this.listeners.remove(n);return this},t}(),h.prototype.ls=h.prototype.list,h.prototype.find=h.prototype.search,i=function(){function t(t){this.listeners=null!=t?t:new h}return t.count=0,t.newName=function(){return""+ ++t.count},t.prototype.add=function(e,n){var r,i,u,s;return e=o.oneSpaceAndTrim(e),i=t.newName(),(r=this.listeners.get(e))?r[i]=n:(u={},u[i]=n,this.listeners.add(e,u)),s=this.listeners.get(e),{trigger:function(t){return null==t&&(t=""),"function"==typeof s[i]?s[i](e,t):void 0},remove:function(){return delete s[i]}}},t.prototype.trigger=function(t,e){var n,r,i,u,s,c,f,a,h,l;for(null==e&&(e=""),l=this.listeners.search("*"),i=0,s=l.length;s>i;i++)if(h=l[i],r=h.value,new p(t).startsWith(new p(h.path).remove(-1).$))for(a in r)n=r[a],"function"==typeof n&&n(t,e);f=this.listeners.get(o.oneSpaceAndTrim(t));for(u in f)c=f[u],"function"==typeof c&&c(t,e);return this},t.prototype.remove=function(t){return this.listeners.remove(o.oneSpaceAndTrim(t)),this},t}(),y=function(t){var e,n,r,i,u,s,c,f;for(f=function(){return o.times(" ",f.count)},f.count=0,e=function(t){var e;return e=o.hasUpper(t)?1:0,o.times(" ",y.valuePosition-e-t.length)},c="",u="",i=r=0,s=t.length;s>r;i=++r)switch(n=t[i]){case"{":f.count++,c+="{\n"+f(),u="";break;case"}":f.count--,c+="\n"+f()+"}\n"+f();break;case":":c+=f.count>0?e(u)+n+" ":n;break;case";":c+="}"===t[i+1]?n:";\n"+f(),u="";break;default:c+=n,u+=n}return c},y.valuePosition=18,t=function(){function t(){}return t.prefixes=["-webkit-","-moz-","-o-","-ms-",""],t.specific=[],t.each=function(e,n){var r,i,o,u,s;for(n=l.intoArray(n),void 0===n[0]&&(n=t.prefixes),s=[],o=i=0,u=n.length;u>i;o=++i)r=n[o],s.push(e(r,o));return s},t}(),a=function(){function t(){this.unit={}}var e,n;return n=function(t,e,n){var r,i,u,s;for(s=[],r=0,u=n.length;u>r;r++)i=n[r],s.push(t.unit[o.toCamel(i)]=e);return s},e=function(t,e){var n,r,i,u;for(u=[],n=0,i=e.length;i>n;n++)r=e[n],u.push(delete t.unit[o.toCamel(r)]);return u},t.all=["%","px","pt","em","pc","ex","deg","cm","mm","ms","s","ch","rem","vw","vh","vmin","vmax","in","grad","rad","turn","Hz","kHz","dpi","dpcm","dppx"],t.unit={},t.hasUnit=function(e){var n,r,i,o,u,s;for(o=t.all,r=n=0,i=o.length;i>n;r=++n)if(s=o[r],u=new RegExp("^[0-9]+"+s+"$"),u.exec(e))return t.all[r];return!1},t.strip=function(e){var n;return(n=t.hasUnit(e))?o.remove(e,n):e},t.set=function(){var e,r;return r=arguments[0],e=2<=arguments.length?w.call(arguments,1):[],n(t,r,l.intoArray.apply(this,e)),t},t.remove=function(){var n;return n=1<=arguments.length?w.call(arguments,0):[],e(t,l.intoArray.apply(this,n)),t},t.prototype.get=function(){var e,n,r,i,u,s,c;if(n=arguments[0],c=arguments[1],u=3<=arguments.length?w.call(arguments,2):[],!t.hasUnit(c)){if(s=this.unit[o.toCamel(n)])return s;for(u.push(t),e=0,r=u.length;r>e;e++)if(i=u[e],""!==(s=l.forceString(i.unit[o.toCamel(n)])))return s}return""},t.prototype.set=function(){var t,e;return e=arguments[0],t=2<=arguments.length?w.call(arguments,1):[],n(this,e,l.intoArray.apply(this,t)),this},t.prototype.remove=function(){var t;return t=1<=arguments.length?w.call(arguments,0):[],e(this,l.intoArray.apply(this,t)),this},t}(),n=function(){function e(t){this.parent=t,this.keyframes={},this.units=new a,this.unit=this.units.unit}return e.prototype.add=function(t,e,n){var r,i,u;if(!this.keyframes[t]||n){this.keyframes[t]={};for(r in e)i=e[r],r=o.trim(r),u=o.contains(r,"%")?"":"%",this.keyframes[t][r+u]=i;return this}},e.prototype.remove=function(t){return delete this.keyframes[t],this},e.prototype.set=function(t,e){return this.add(t,e,!0)},e.prototype.get=function(t){var e,n,r,i,o,u,s;if(!this.keyframes[t])return"";n=t+"{",o=this.keyframes[t];for(e in o){i=o[e],n+=e+"{";for(r in i)s=i[r],u=this.units.get(r,s,this.parent.units),n+=r+":"+s+u+";";n+="}"}return n+="}"},e.prototype.get_=function(t){return y(this.get(t))},e.prototype.dump=function(e){var n,r,i,o;n="",o=this.keyframes;for(r in o)i=o[r],t.each(function(t){return function(e){return n+="@"+e+"keyframes "+t.get(r)}}(this),e);return n},e.prototype.dump_=function(){return y(this.dump)},e}(),u=function(){function t(e){this.parent=e,"undefined"!=typeof window&&null!==window&&(this.sheet=t.createSheet())}return t.createSheet=function(){var t;return t=document.createElement("style"),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t},t.remove=function(t){var e;return"undefined"!=typeof window&&null!==window?(e=document.querySelector(t),e.remove()):void 0},t.prototype.setSheet=function(t){return this.sheet.innerHTML=l.forceString(t),this},t.prototype.set=function(t,e){var n,r,i;return n=function(t){return function(e,n,r){var i;if(e)return r+=t.parent.units.get(n,r),i=document.querySelector(e),i?i.style[n]=r:void 0}}(this),"undefined"!=typeof window&&null!==window?l.isObject(e)?this.parent.xs(function(e,r,i){return i=new p(i),i.startsWith(t)&&l.notObject(r)?(i=i.remove(-1).$,n(i,e,r)):void 0}):(i=new p(t),r=i.pop(),n(i.$,r,e)):void 0},t}(),e=function(e){function r(t,e){r.__super__.constructor.call(this,t,e),this.style=new u(this),this.stylesheet=this.style.sheet,this.keyframes=new n(this),this.units=new a,this.unit=this.units.unit,this.prefixes=[],this.specific=[]}return j(r,e),r.Types=f,r.Tools=c,r.Strings=o,r.Words=p,r.Xs=h,r.Units=a,r.unit=a.unit,r.Keyframes=n,r.Browser=t,r.valuePosition=y.valuePosition,r.prototype.keyVal=function(e,n){var r,i,u,s;return s=this.units.get(e,n),i=o.unCamel(e),r="",u=this.specific.length<1?t.specific:this.specific,S.call(u,e)>=0?(t.each(function(t){return r+=t+i+":"+n+s+";"},this.prefixes),r):i+":"+n+s+";"},r.prototype.remove=function(t,e){return null==e&&(e=!0),r.__super__.remove.call(this,t),e&&u.remove(t),this},r.prototype.add=function(t,e,n){return r.__super__.add.call(this,t,e),n&&this.style.set(t,e),this},r.prototype.set=function(t,e,n){return null==n&&(n=!0),r.__super__.set.call(this,t,e),n&&this.style.set(t,e),this},r.prototype.get=function(t){var e;return l.isStringOrNumber(e=r.__super__.get.call(this,t))?e:""},r.prototype.gets=function(t){return l.forceString(r.__super__.gets.call(this,o.toCamel(t)))},r.prototype.getn=function(t,e){return null==e&&(e=0),l.forceNumber(this.get(t),e)},r.prototype.getu=function(t){var e;return e=this.gets(t),e+this.units.get(new p(t).get(-1),e)},r.prototype.getRule=function(t){var e,n,r,i;if(t=o.oneSpaceAndTrim(t),h.empty(n=this.geto(t)))return"";r="";for(e in n)i=n[e],l.isStringOrNumber(i)&&(r+=this.keyVal(e,i));return r?t+"{"+r+"}":""},r.prototype.getRule_=function(t){return y(this.getRule(t))},r.prototype.getRules=function(t){var e,n,r,i,u,s,c;if(t=o.oneSpaceAndTrim(t),i=this.list(t),i.length<1)return"";for(u="",s="",c=new p(t).get(-1),e=0,n=i.length;n>e;e++)r=i[e],r.key!==c&&l.isStringOrNumber(r.value)&&(r.path=new p(r.path).remove(-1).$,r.path=o.xs(r.path,function(t,e){return" "!==r.path[e]||":"!==r.path[e+1]?t:void 0}),r.path!==u&&(""!==s&&(s+="}"),u=r.path,s+=u+"{"),s+=this.keyVal(r.key,r.value));return s?s+"}":""},r.prototype.getRules_=function(t){return y(this.getRules(t))},r.prototype.dump=function(t){var e,n,r,i,o,u;null==t&&(t=!0),e=this.keyframes.dump(this.prefixes),o=[];for(r in this.object)o.push(r);for(n=0,i=o.length;i>n;n++)u=o[n],e+=this.getRules(u);return t&&this.style.setSheet(e),e},r.prototype.dump_=function(t){return y(this.dump(t))},r}(h),"undefined"!=typeof define&&null!==define&&"function"==typeof define&&define.amd?define("css",[],function(){return e}):"undefined"!=typeof module&&null!==module?module.exports=e:"undefined"!=typeof window&&null!==window&&(window.Css=e)}).call(this);