Socket
Socket
Sign inDemoInstall

styled-variants

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.4.0

2

dist/index.esm.js

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

var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,r){var e=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",y=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,O=g||j||Function("return this")(),w=r&&!r.nodeType&&r,A=w&&n&&!n.nodeType&&n,m=A&&A.exports===w,z=m&&g.process,x=function(){try{var t=A&&A.require&&A.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}var T,U,$,E=Array.prototype,P=Function.prototype,I=Object.prototype,k=O["__core-js_shared__"],B=P.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=m?O.Buffer:void 0,G=O.Symbol,L=O.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=E.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=At(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=At(O,"Map"),rt=At(Object,"create"),et=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function ot(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function it(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ut(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var r=Ut(t),e=!r&&Tt(t),o=!r&&!e&&Et(t),i=!r&&!e&&!o&&Mt(t),u=r||e||o||i,c=u?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||mt(f,a))||c.push(f);return c}function ft(t,n,r){(void 0===r||Ft(t[n],r))&&(void 0!==r||n in t)||pt(t,n,r)}function st(t,n,r){var e=t[n];M.call(t,n)&&Ft(e,r)&&(void 0!==r||n in t)||pt(t,n,r)}function lt(t,n){for(var r=t.length;r--;)if(Ft(t[r][0],n))return r;return-1}function pt(t,n,r){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}ot.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(rt){var r=n[t];return r===o?void 0:r}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return rt?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=rt&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,r=lt(n,t);return!(r<0)&&(r==n.length-1?n.pop():K.call(n,r,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,r=lt(n,t);return r<0?void 0:n[r][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var r=this.__data__,e=lt(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=wt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return wt(this,t).get(t)},ut.prototype.has=function(t){return wt(this,t).has(t)},ut.prototype.set=function(t,n){var r=wt(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var r=this.__data__;if(r instanceof it){var o=r.__data__;if(!nt||o.length<e-1)return o.push([t,n]),this.size=++r.size,this;r=this.__data__=new ut(o)}return r.set(t,n),this.size=r.size,this};var ht,vt=function(t,n,r){for(var e=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[ht?u:++e];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),r=t[Q];try{t[Q]=void 0;var e=!0}catch(t){}var o=R.call(t);e&&(n?t[Q]=r:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function yt(t){return Bt(t)&&_t(t)==a}function dt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Pt(t)?q:y).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}(t);var n=zt(t),r=[];for(var e in t)("constructor"!=e||!n&&M.call(t,e))&&r.push(e);return r}function gt(t,n,r,e,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,r,e,o,i,u){var c=xt(t,r),a=xt(n,r),f=u.get(a);if(f)return void ft(t,r,f);var s=i?i(c,a,r+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Et(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var r=-1,e=t.length;n||(n=Array(e));for(;++r<e;)n[r]=t[r];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var r=t.length,e=N?N(r):new t.constructor(r);return t.copy(e),e}(a,!0)):_?(l=!1,y=a,d=!0?(b=y.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):y.buffer,s=new y.constructor(d,y.byteOffset,y.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var r=M.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,r,e){var o=!r;r||(r={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=e?e(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?pt(r,c,a):st(r,c,a)}return r}(t,Rt(t))}(c):kt(c)&&!Pt(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:et(W(t))}(a))):l=!1}var y,d,b,g;var j;l&&(u.set(a,s),o(s,a,e,i,u),u.delete(a));ft(t,r,s)}(t,n,u,r,gt,e,o);else{var c=e?e(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,r){return n=Z(void 0===n?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=Z(e.length-n,0),u=Array(i);++o<i;)u[o]=e[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=e[o];return c[n]=r(u),F(t,this,c)}}(t,n,Ct),t+"")}function Ot(t,n,r,e,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,Ot,i),i.delete(n)),t}function wt(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function At(t,n){var r=function(t,n){return null==t?void 0:t[n]}(t,n);return dt(r)?r:void 0}function mt(t,n){var r=typeof t;return!!(n=null==n?c:n)&&("number"==r||"symbol"!=r&&d.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,r=0;return function(){var e=tt(),o=u-(e-r);if(r=e,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(r=n,function(){return r}),writable:!0});var r}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=yt(function(){return arguments}())?yt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Pt(t)}var Et=Y||function(){return!1};function Pt(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,Ot),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,r,e){gt(t,n,r,e)},jt((function(t,n){var r=-1,e=n.length,o=e>1?n[e-1]:void 0,i=e>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(t,n,r){if(!kt(r))return!1;var e=typeof n;return!!("number"==e?$t(r)&&mt(n,r.length):"string"==e&&n in r)&&Ft(r[n],t)}(n[0],n[1],i)&&(o=e<3?void 0:o,e=1),t=Object(t);++r<e;){var u=n[r];u&&Vt(t,u,r,o)}return t})));function Ct(t){return t}n.exports=Dt}));function r(t){return null!=t&&"object"==typeof t}function e(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t){return"!"===t.charAt(0)}function u(t){return t.split(",").map(t=>t.trim())}function c(t,c,a){const f=a&&c[a]||{};let s=function t(e,u){let c={...u};for(let[u,a]of Object.entries(c)){const f=i(u);let s=u;if(f&&(s=u.substring(1)),r(a)&&!o(u)){(f?!e[s]:!!e[s])&&(c=n(t(e,c[u]),c)),delete c[u]}}return c}(t,n({...f},c));for(let[n,r]of Object.entries(s))if(e(r))s[n]=r(t);else if(o(n)){let r={};for(let[o,i]of Object.entries(s[n]))r[o]=e(i)?i(t):i;n.includes(",")?(u(n).forEach(t=>{s[t]={...s[t],...r}}),delete s[n]):s[n]=r}return s}export default function(t,r={}){function o(i){const u=c(i,i.theme[t])||{},a=c(i,e(r)?r(i):r);return n(...o.styles.map(t=>t(i)),a,u)}return o.styles=[],o.addVariant=function(t,n){return this.styles.push((function(r){const o=r[t];return c(r,e(n)?n(r):n,o)})),this},o.addGlobalVariant=function(t,n){return this.styles.push((function(r){const o=r.theme[t];return c(r,e(n)?n(r):n,o)})),this},o}
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,r){var e=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",y=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,m=g||j||Function("return this")(),O=r&&!r.nodeType&&r,w=O&&n&&!n.nodeType&&n,A=w&&w.exports===O,z=A&&g.process,x=function(){try{var t=w&&w.require&&w.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}var T,U,$,E=Array.prototype,P=Function.prototype,I=Object.prototype,k=m["__core-js_shared__"],B=P.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A?m.Buffer:void 0,G=m.Symbol,L=m.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=E.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=wt(m,"Map"),rt=wt(Object,"create"),et=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function ot(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function it(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ut(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var r=Ut(t),e=!r&&Tt(t),o=!r&&!e&&Et(t),i=!r&&!e&&!o&&Mt(t),u=r||e||o||i,c=u?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||At(f,a))||c.push(f);return c}function ft(t,n,r){(void 0===r||Ft(t[n],r))&&(void 0!==r||n in t)||pt(t,n,r)}function st(t,n,r){var e=t[n];M.call(t,n)&&Ft(e,r)&&(void 0!==r||n in t)||pt(t,n,r)}function lt(t,n){for(var r=t.length;r--;)if(Ft(t[r][0],n))return r;return-1}function pt(t,n,r){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}ot.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(rt){var r=n[t];return r===o?void 0:r}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return rt?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=rt&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,r=lt(n,t);return!(r<0)&&(r==n.length-1?n.pop():K.call(n,r,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,r=lt(n,t);return r<0?void 0:n[r][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var r=this.__data__,e=lt(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=Ot(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return Ot(this,t).get(t)},ut.prototype.has=function(t){return Ot(this,t).has(t)},ut.prototype.set=function(t,n){var r=Ot(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var r=this.__data__;if(r instanceof it){var o=r.__data__;if(!nt||o.length<e-1)return o.push([t,n]),this.size=++r.size,this;r=this.__data__=new ut(o)}return r.set(t,n),this.size=r.size,this};var ht,vt=function(t,n,r){for(var e=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[ht?u:++e];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),r=t[Q];try{t[Q]=void 0;var e=!0}catch(t){}var o=R.call(t);e&&(n?t[Q]=r:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function yt(t){return Bt(t)&&_t(t)==a}function dt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Pt(t)?q:y).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}(t);var n=zt(t),r=[];for(var e in t)("constructor"!=e||!n&&M.call(t,e))&&r.push(e);return r}function gt(t,n,r,e,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,r,e,o,i,u){var c=xt(t,r),a=xt(n,r),f=u.get(a);if(f)return void ft(t,r,f);var s=i?i(c,a,r+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Et(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var r=-1,e=t.length;n||(n=Array(e));for(;++r<e;)n[r]=t[r];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var r=t.length,e=N?N(r):new t.constructor(r);return t.copy(e),e}(a,!0)):_?(l=!1,y=a,d=!0?(b=y.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):y.buffer,s=new y.constructor(d,y.byteOffset,y.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var r=M.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,r,e){var o=!r;r||(r={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=e?e(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?pt(r,c,a):st(r,c,a)}return r}(t,Rt(t))}(c):kt(c)&&!Pt(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:et(W(t))}(a))):l=!1}var y,d,b,g;var j;l&&(u.set(a,s),o(s,a,e,i,u),u.delete(a));ft(t,r,s)}(t,n,u,r,gt,e,o);else{var c=e?e(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,r){return n=Z(void 0===n?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=Z(e.length-n,0),u=Array(i);++o<i;)u[o]=e[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=e[o];return c[n]=r(u),F(t,this,c)}}(t,n,Ct),t+"")}function mt(t,n,r,e,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,mt,i),i.delete(n)),t}function Ot(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function wt(t,n){var r=function(t,n){return null==t?void 0:t[n]}(t,n);return dt(r)?r:void 0}function At(t,n){var r=typeof t;return!!(n=null==n?c:n)&&("number"==r||"symbol"!=r&&d.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,r=0;return function(){var e=tt(),o=u-(e-r);if(r=e,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(r=n,function(){return r}),writable:!0});var r}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=yt(function(){return arguments}())?yt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Pt(t)}var Et=Y||function(){return!1};function Pt(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,mt),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,r,e){gt(t,n,r,e)},jt((function(t,n){var r=-1,e=n.length,o=e>1?n[e-1]:void 0,i=e>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(t,n,r){if(!kt(r))return!1;var e=typeof n;return!!("number"==e?$t(r)&&At(n,r.length):"string"==e&&n in r)&&Ft(r[n],t)}(n[0],n[1],i)&&(o=e<3?void 0:o,e=1),t=Object(t);++r<e;){var u=n[r];u&&Vt(t,u,r,o)}return t})));function Ct(t){return t}n.exports=Dt}));function r(t){return null!=t&&"object"==typeof t}function e(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t){return"!"===t.charAt(0)}function u(t){return t.split(",").map(t=>t.trim())}function c(t,c,a){const f=a&&c[a]||{};let s=function t(e,u){let c={...u};for(let[u,a]of Object.entries(c)){const f=i(u);let s=u;if(f&&(s=u.substring(1)),r(a)&&!o(u)){(f?!e[s]:!!e[s])&&(c=n(t(e,c[u]),c)),delete c[u]}}return c}(t,n({...f},c));for(let[n,r]of Object.entries(s))if(e(r))s[n]=r(t);else if(o(n)){let r={};for(let[o,i]of Object.entries(s[n]))r[o]=e(i)?i(t):i;n.includes(",")?(u(n).forEach(t=>{s[t]={...s[t],...r}}),delete s[n]):s[n]=r}return s}export default function(t,r={}){function o(i){const u=i.theme&&i.theme.components&&i.theme.components[t]||{},a=c(i,u),f=c(i,e(r)?r(i):r);return n(...o.styles.map(t=>t(i)),f,a)}return o.styles=[],o.addVariant=function(t,n){return this.styles.push((function(r){const o=r[t];return c(r,e(n)?n(r):n,o)})),this},o.addGlobalVariant=function(t,n){return this.styles.push((function(r){const o=r.theme[t];return c(r,e(n)?n(r):n,o)})),this},o}

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

"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var lodash_defaultsdeep=createCommonjsModule((function(t,e){var n=200,r="__lodash_hash_undefined__",o=800,i=16,u=9007199254740991,a="[object Arguments]",c="[object AsyncFunction]",s="[object Function]",f="[object GeneratorFunction]",l="[object Null]",h="[object Object]",p="[object Proxy]",_="[object Undefined]",d=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[a]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[s]=y["[object Map]"]=y["[object Number]"]=y[h]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var b="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,j="object"==typeof self&&self&&self.Object===Object&&self,g=b||j||Function("return this")(),m=e&&!e.nodeType&&e,O=m&&t&&!t.nodeType&&t,z=O&&O.exports===m,w=z&&b.process,A=function(){try{var t=O&&O.require&&O.require("util").types;return t||w&&w.binding&&w.binding("util")}catch(t){}}(),F=A&&A.isTypedArray;function S(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var x,P,B,C=Array.prototype,G=Function.prototype,T=Object.prototype,U=g["__core-js_shared__"],$=G.toString,E=T.hasOwnProperty,M=(x=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",V=T.toString,I=$.call(Object),k=RegExp("^"+$.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=z?g.Buffer:void 0,N=g.Symbol,D=g.Uint8Array,R=L?L.allocUnsafe:void 0,q=(P=Object.getPrototypeOf,B=Object,function(t){return P(B(t))}),W=Object.create,H=T.propertyIsEnumerable,J=C.splice,K=N?N.toStringTag:void 0,Q=function(){try{var t=Ot(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),X=L?L.isBuffer:void 0,Y=Math.max,Z=Date.now,tt=Ot(g,"Map"),et=Ot(Object,"create"),nt=function(){function t(){}return function(e){if(!Ut(e))return{};if(W)return W(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=this.__data__=new ot(t);this.size=e.size}function at(t,e){var n=Pt(t),r=!n&&xt(t),o=!n&&!r&&Ct(t),i=!n&&!r&&!o&&Et(t),u=n||r||o||i,a=u?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var s in t)!e&&!E.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||zt(s,c))||a.push(s);return a}function ct(t,e,n){(void 0===n||St(t[e],n))&&(void 0!==n||e in t)||lt(t,e,n)}function st(t,e,n){var r=t[e];E.call(t,e)&&St(r,n)&&(void 0!==n||e in t)||lt(t,e,n)}function ft(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1}function lt(t,e,n){"__proto__"==e&&Q?Q(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}rt.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(et){var n=e[t];return n===r?void 0:n}return E.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return et?void 0!==e[t]:E.call(e,t)},rt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=et&&void 0===e?r:e,this},ot.prototype.clear=function(){this.__data__=[],this.size=0},ot.prototype.delete=function(t){var e=this.__data__,n=ft(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),--this.size,!0)},ot.prototype.get=function(t){var e=this.__data__,n=ft(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return ft(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,r=ft(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},it.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(tt||ot),string:new rt}},it.prototype.delete=function(t){var e=mt(this,t).delete(t);return this.size-=e?1:0,e},it.prototype.get=function(t){return mt(this,t).get(t)},it.prototype.has=function(t){return mt(this,t).has(t)},it.prototype.set=function(t,e){var n=mt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ut.prototype.clear=function(){this.__data__=new ot,this.size=0},ut.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ot){var o=r.__data__;if(!tt||o.length<n-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new it(o)}return r.set(t,e),this.size=r.size,this};var ht,pt=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),u=i.length;u--;){var a=i[ht?u:++r];if(!1===e(o[a],a,o))break}return t};function _t(t){return null==t?void 0===t?_:l:K&&K in Object(t)?function(t){var e=E.call(t,K),n=t[K];try{t[K]=void 0;var r=!0}catch(t){}var o=V.call(t);r&&(e?t[K]=n:delete t[K]);return o}(t):function(t){return V.call(t)}(t)}function dt(t){return $t(t)&&_t(t)==a}function vt(t){return!(!Ut(t)||function(t){return!!M&&M in t}(t))&&(Gt(t)?k:d).test(function(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function yt(t){if(!Ut(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=wt(t),n=[];for(var r in t)("constructor"!=r||!e&&E.call(t,r))&&n.push(r);return n}function bt(t,e,n,r,o){t!==e&&pt(e,(function(i,u){if(o||(o=new ut),Ut(i))!function(t,e,n,r,o,i,u){var a=At(t,n),c=At(e,n),s=u.get(c);if(s)return void ct(t,n,s);var f=i?i(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var p=Pt(c),_=!p&&Ct(c),d=!p&&!_&&Et(c);f=c,p||_||d?Pt(a)?f=a:$t(g=a)&&Bt(g)?f=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(a):_?(l=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=R?R(n):new t.constructor(n);return t.copy(r),r}(c,!0)):d?(l=!1,v=c,y=!0?(b=v.buffer,j=new b.constructor(b.byteLength),new D(j).set(new D(b)),j):v.buffer,f=new v.constructor(y,v.byteOffset,v.length)):f=[]:function(t){if(!$t(t)||_t(t)!=h)return!1;var e=q(t);if(null===e)return!0;var n=E.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$.call(n)==I}(c)||xt(c)?(f=a,xt(a)?f=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,u=e.length;for(;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?lt(n,a,c):st(n,a,c)}return n}(t,Vt(t))}(a):Ut(a)&&!Gt(a)||(f=function(t){return"function"!=typeof t.constructor||wt(t)?{}:nt(q(t))}(c))):l=!1}var v,y,b,j;var g;l&&(u.set(c,f),o(f,c,r,i,u),u.delete(c));ct(t,n,f)}(t,e,u,n,bt,r,o);else{var a=r?r(At(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),ct(t,u,a)}}),Vt)}function jt(t,e){return Ft(function(t,e,n){return e=Y(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Y(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(u),S(t,this,a)}}(t,e,Lt),t+"")}function gt(t,e,n,r,o,i){return Ut(t)&&Ut(e)&&(i.set(e,t),bt(t,e,void 0,gt,i),i.delete(e)),t}function mt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ot(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return vt(n)?n:void 0}function zt(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&v.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function At(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ft=function(t){var e=0,n=0;return function(){var r=Z(),u=i-(r-n);if(n=r,u>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Q?function(t,e){return Q(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Lt);function St(t,e){return t===e||t!=t&&e!=e}var xt=dt(function(){return arguments}())?dt:function(t){return $t(t)&&E.call(t,"callee")&&!H.call(t,"callee")},Pt=Array.isArray;function Bt(t){return null!=t&&Tt(t.length)&&!Gt(t)}var Ct=X||function(){return!1};function Gt(t){if(!Ut(t))return!1;var e=_t(t);return e==s||e==f||e==c||e==p}function Tt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function $t(t){return null!=t&&"object"==typeof t}var Et=F?function(t){return function(e){return t(e)}}(F):function(t){return $t(t)&&Tt(t.length)&&!!y[_t(t)]};var Mt=jt((function(t){return t.push(void 0,gt),S(kt,void 0,t)}));function Vt(t){return Bt(t)?at(t,!0):yt(t)}var It,kt=(It=function(t,e,n,r){bt(t,e,n,r)},jt((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=It.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!Ut(n))return!1;var r=typeof e;return!!("number"==r?Bt(n)&&zt(e,n.length):"string"==r&&e in n)&&St(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var u=e[n];u&&It(t,u,n,o)}return t})));function Lt(t){return t}t.exports=Mt}));function _isObject(t){return null!=t&&"object"==typeof t}function _isFunction(t){return null!=t&&"function"==typeof t}function _isPseudoClass(t){return t.includes(":")}function _isNegation(t){return"!"===t.charAt(0)}function _getList(t){return t.split(",").map(t=>t.trim())}function parseForBooleanVariants(t,e){let n={...e};for(let[e,r]of Object.entries(n)){const o=_isNegation(e);let i=e;if(o&&(i=e.substring(1)),_isObject(r)&&!_isPseudoClass(e)){(o?!t[i]:!!t[i])&&(n=lodash_defaultsdeep(parseForBooleanVariants(t,n[e]),n)),delete n[e]}}return n}function normalizeStylesheet(t,e,n){const r=n&&e[n]||{};let o=parseForBooleanVariants(t,lodash_defaultsdeep({...r},e));for(let[e,n]of Object.entries(o))if(_isFunction(n))o[e]=n(t);else if(_isPseudoClass(e)){let n={};for(let[r,i]of Object.entries(o[e]))n[r]=_isFunction(i)?i(t):i;e.includes(",")?(_getList(e).forEach(t=>{o[t]={...o[t],...n}}),delete o[e]):o[e]=n}return o}function theme(t,e={}){function n(r){const o=normalizeStylesheet(r,r.theme[t])||{},i=normalizeStylesheet(r,_isFunction(e)?e(r):e);return lodash_defaultsdeep(...n.styles.map(t=>t(r)),i,o)}return n.styles=[],n.addVariant=function(t,e){return this.styles.push((function(n){const r=n[t];return normalizeStylesheet(n,_isFunction(e)?e(n):e,r)})),this},n.addGlobalVariant=function(t,e){return this.styles.push((function(n){const r=n.theme[t];return normalizeStylesheet(n,_isFunction(e)?e(n):e,r)})),this},n}module.exports=theme;
"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var lodash_defaultsdeep=createCommonjsModule((function(t,e){var n=200,r="__lodash_hash_undefined__",o=800,i=16,u=9007199254740991,a="[object Arguments]",c="[object AsyncFunction]",s="[object Function]",f="[object GeneratorFunction]",l="[object Null]",h="[object Object]",p="[object Proxy]",_="[object Undefined]",d=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[a]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[s]=y["[object Map]"]=y["[object Number]"]=y[h]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var b="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,j="object"==typeof self&&self&&self.Object===Object&&self,g=b||j||Function("return this")(),m=e&&!e.nodeType&&e,O=m&&t&&!t.nodeType&&t,z=O&&O.exports===m,w=z&&b.process,A=function(){try{var t=O&&O.require&&O.require("util").types;return t||w&&w.binding&&w.binding("util")}catch(t){}}(),F=A&&A.isTypedArray;function S(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var x,P,B,C=Array.prototype,G=Function.prototype,T=Object.prototype,U=g["__core-js_shared__"],$=G.toString,E=T.hasOwnProperty,M=(x=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",V=T.toString,I=$.call(Object),k=RegExp("^"+$.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=z?g.Buffer:void 0,N=g.Symbol,D=g.Uint8Array,R=L?L.allocUnsafe:void 0,q=(P=Object.getPrototypeOf,B=Object,function(t){return P(B(t))}),W=Object.create,H=T.propertyIsEnumerable,J=C.splice,K=N?N.toStringTag:void 0,Q=function(){try{var t=Ot(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),X=L?L.isBuffer:void 0,Y=Math.max,Z=Date.now,tt=Ot(g,"Map"),et=Ot(Object,"create"),nt=function(){function t(){}return function(e){if(!Ut(e))return{};if(W)return W(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=this.__data__=new ot(t);this.size=e.size}function at(t,e){var n=Pt(t),r=!n&&xt(t),o=!n&&!r&&Ct(t),i=!n&&!r&&!o&&Et(t),u=n||r||o||i,a=u?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var s in t)!e&&!E.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||zt(s,c))||a.push(s);return a}function ct(t,e,n){(void 0===n||St(t[e],n))&&(void 0!==n||e in t)||lt(t,e,n)}function st(t,e,n){var r=t[e];E.call(t,e)&&St(r,n)&&(void 0!==n||e in t)||lt(t,e,n)}function ft(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1}function lt(t,e,n){"__proto__"==e&&Q?Q(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}rt.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(et){var n=e[t];return n===r?void 0:n}return E.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return et?void 0!==e[t]:E.call(e,t)},rt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=et&&void 0===e?r:e,this},ot.prototype.clear=function(){this.__data__=[],this.size=0},ot.prototype.delete=function(t){var e=this.__data__,n=ft(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),--this.size,!0)},ot.prototype.get=function(t){var e=this.__data__,n=ft(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return ft(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,r=ft(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},it.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(tt||ot),string:new rt}},it.prototype.delete=function(t){var e=mt(this,t).delete(t);return this.size-=e?1:0,e},it.prototype.get=function(t){return mt(this,t).get(t)},it.prototype.has=function(t){return mt(this,t).has(t)},it.prototype.set=function(t,e){var n=mt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ut.prototype.clear=function(){this.__data__=new ot,this.size=0},ut.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ot){var o=r.__data__;if(!tt||o.length<n-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new it(o)}return r.set(t,e),this.size=r.size,this};var ht,pt=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),u=i.length;u--;){var a=i[ht?u:++r];if(!1===e(o[a],a,o))break}return t};function _t(t){return null==t?void 0===t?_:l:K&&K in Object(t)?function(t){var e=E.call(t,K),n=t[K];try{t[K]=void 0;var r=!0}catch(t){}var o=V.call(t);r&&(e?t[K]=n:delete t[K]);return o}(t):function(t){return V.call(t)}(t)}function dt(t){return $t(t)&&_t(t)==a}function vt(t){return!(!Ut(t)||function(t){return!!M&&M in t}(t))&&(Gt(t)?k:d).test(function(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function yt(t){if(!Ut(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=wt(t),n=[];for(var r in t)("constructor"!=r||!e&&E.call(t,r))&&n.push(r);return n}function bt(t,e,n,r,o){t!==e&&pt(e,(function(i,u){if(o||(o=new ut),Ut(i))!function(t,e,n,r,o,i,u){var a=At(t,n),c=At(e,n),s=u.get(c);if(s)return void ct(t,n,s);var f=i?i(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var p=Pt(c),_=!p&&Ct(c),d=!p&&!_&&Et(c);f=c,p||_||d?Pt(a)?f=a:$t(g=a)&&Bt(g)?f=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(a):_?(l=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=R?R(n):new t.constructor(n);return t.copy(r),r}(c,!0)):d?(l=!1,v=c,y=!0?(b=v.buffer,j=new b.constructor(b.byteLength),new D(j).set(new D(b)),j):v.buffer,f=new v.constructor(y,v.byteOffset,v.length)):f=[]:function(t){if(!$t(t)||_t(t)!=h)return!1;var e=q(t);if(null===e)return!0;var n=E.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$.call(n)==I}(c)||xt(c)?(f=a,xt(a)?f=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,u=e.length;for(;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?lt(n,a,c):st(n,a,c)}return n}(t,Vt(t))}(a):Ut(a)&&!Gt(a)||(f=function(t){return"function"!=typeof t.constructor||wt(t)?{}:nt(q(t))}(c))):l=!1}var v,y,b,j;var g;l&&(u.set(c,f),o(f,c,r,i,u),u.delete(c));ct(t,n,f)}(t,e,u,n,bt,r,o);else{var a=r?r(At(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),ct(t,u,a)}}),Vt)}function jt(t,e){return Ft(function(t,e,n){return e=Y(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Y(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(u),S(t,this,a)}}(t,e,Lt),t+"")}function gt(t,e,n,r,o,i){return Ut(t)&&Ut(e)&&(i.set(e,t),bt(t,e,void 0,gt,i),i.delete(e)),t}function mt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ot(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return vt(n)?n:void 0}function zt(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&v.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function At(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ft=function(t){var e=0,n=0;return function(){var r=Z(),u=i-(r-n);if(n=r,u>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Q?function(t,e){return Q(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Lt);function St(t,e){return t===e||t!=t&&e!=e}var xt=dt(function(){return arguments}())?dt:function(t){return $t(t)&&E.call(t,"callee")&&!H.call(t,"callee")},Pt=Array.isArray;function Bt(t){return null!=t&&Tt(t.length)&&!Gt(t)}var Ct=X||function(){return!1};function Gt(t){if(!Ut(t))return!1;var e=_t(t);return e==s||e==f||e==c||e==p}function Tt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function $t(t){return null!=t&&"object"==typeof t}var Et=F?function(t){return function(e){return t(e)}}(F):function(t){return $t(t)&&Tt(t.length)&&!!y[_t(t)]};var Mt=jt((function(t){return t.push(void 0,gt),S(kt,void 0,t)}));function Vt(t){return Bt(t)?at(t,!0):yt(t)}var It,kt=(It=function(t,e,n,r){bt(t,e,n,r)},jt((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=It.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!Ut(n))return!1;var r=typeof e;return!!("number"==r?Bt(n)&&zt(e,n.length):"string"==r&&e in n)&&St(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var u=e[n];u&&It(t,u,n,o)}return t})));function Lt(t){return t}t.exports=Mt}));function _isObject(t){return null!=t&&"object"==typeof t}function _isFunction(t){return null!=t&&"function"==typeof t}function _isPseudoClass(t){return t.includes(":")}function _isNegation(t){return"!"===t.charAt(0)}function _getList(t){return t.split(",").map(t=>t.trim())}function parseForBooleanVariants(t,e){let n={...e};for(let[e,r]of Object.entries(n)){const o=_isNegation(e);let i=e;if(o&&(i=e.substring(1)),_isObject(r)&&!_isPseudoClass(e)){(o?!t[i]:!!t[i])&&(n=lodash_defaultsdeep(parseForBooleanVariants(t,n[e]),n)),delete n[e]}}return n}function normalizeStylesheet(t,e,n){const r=n&&e[n]||{};let o=parseForBooleanVariants(t,lodash_defaultsdeep({...r},e));for(let[e,n]of Object.entries(o))if(_isFunction(n))o[e]=n(t);else if(_isPseudoClass(e)){let n={};for(let[r,i]of Object.entries(o[e]))n[r]=_isFunction(i)?i(t):i;e.includes(",")?(_getList(e).forEach(t=>{o[t]={...o[t],...n}}),delete o[e]):o[e]=n}return o}function theme(t,e={}){function n(r){const o=r.theme&&r.theme.components&&r.theme.components[t]||{},i=normalizeStylesheet(r,o),u=normalizeStylesheet(r,_isFunction(e)?e(r):e);return lodash_defaultsdeep(...n.styles.map(t=>t(r)),u,i)}return n.styles=[],n.addVariant=function(t,e){return this.styles.push((function(n){const r=n[t];return normalizeStylesheet(n,_isFunction(e)?e(n):e,r)})),this},n.addGlobalVariant=function(t,e){return this.styles.push((function(n){const r=n.theme[t];return normalizeStylesheet(n,_isFunction(e)?e(n):e,r)})),this},n}module.exports=theme;

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self)["styled-variants"]=n()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,e){var r=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",d=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,O=g||j||Function("return this")(),m=e&&!e.nodeType&&e,w=m&&n&&!n.nodeType&&n,A=w&&w.exports===m,z=A&&g.process,x=function(){try{var t=w&&w.require&&w.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var T,U,$,E=Array.prototype,P=Function.prototype,I=Object.prototype,k=O["__core-js_shared__"],B=P.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A?O.Buffer:void 0,G=O.Symbol,L=O.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=E.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=wt(O,"Map"),et=wt(Object,"create"),rt=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function ot(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function it(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ut(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var e=Ut(t),r=!e&&Tt(t),o=!e&&!r&&Et(t),i=!e&&!r&&!o&&Mt(t),u=e||r||o||i,c=u?function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||At(f,a))||c.push(f);return c}function ft(t,n,e){(void 0===e||Ft(t[n],e))&&(void 0!==e||n in t)||pt(t,n,e)}function st(t,n,e){var r=t[n];M.call(t,n)&&Ft(r,e)&&(void 0!==e||n in t)||pt(t,n,e)}function lt(t,n){for(var e=t.length;e--;)if(Ft(t[e][0],n))return e;return-1}function pt(t,n,e){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}ot.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(et){var e=n[t];return e===o?void 0:e}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return et?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=et&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,e=lt(n,t);return!(e<0)&&(e==n.length-1?n.pop():K.call(n,e,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,e=lt(n,t);return e<0?void 0:n[e][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var e=this.__data__,r=lt(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=mt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return mt(this,t).get(t)},ut.prototype.has=function(t){return mt(this,t).has(t)},ut.prototype.set=function(t,n){var e=mt(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var e=this.__data__;if(e instanceof it){var o=e.__data__;if(!nt||o.length<r-1)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new ut(o)}return e.set(t,n),this.size=e.size,this};var ht,vt=function(t,n,e){for(var r=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[ht?u:++r];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),e=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var o=R.call(t);r&&(n?t[Q]=e:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function dt(t){return Bt(t)&&_t(t)==a}function yt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Pt(t)?q:d).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}(t);var n=zt(t),e=[];for(var r in t)("constructor"!=r||!n&&M.call(t,r))&&e.push(r);return e}function gt(t,n,e,r,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,e,r,o,i,u){var c=xt(t,e),a=xt(n,e),f=u.get(a);if(f)return void ft(t,e,f);var s=i?i(c,a,e+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Et(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var e=-1,r=t.length;n||(n=Array(r));for(;++e<r;)n[e]=t[e];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var e=t.length,r=N?N(e):new t.constructor(e);return t.copy(r),r}(a,!0)):_?(l=!1,d=a,y=!0?(b=d.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):d.buffer,s=new d.constructor(y,d.byteOffset,d.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var e=M.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&B.call(e)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,e,r){var o=!e;e||(e={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=r?r(e[c],t[c],c,e,t):void 0;void 0===a&&(a=t[c]),o?pt(e,c,a):st(e,c,a)}return e}(t,Rt(t))}(c):kt(c)&&!Pt(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:rt(W(t))}(a))):l=!1}var d,y,b,g;var j;l&&(u.set(a,s),o(s,a,r,i,u),u.delete(a));ft(t,e,s)}(t,n,u,e,gt,r,o);else{var c=r?r(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,e){return n=Z(void 0===n?t.length-1:n,0),function(){for(var r=arguments,o=-1,i=Z(r.length-n,0),u=Array(i);++o<i;)u[o]=r[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=r[o];return c[n]=e(u),F(t,this,c)}}(t,n,Ct),t+"")}function Ot(t,n,e,r,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,Ot,i),i.delete(n)),t}function mt(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function wt(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return yt(e)?e:void 0}function At(t,n){var e=typeof t;return!!(n=null==n?c:n)&&("number"==e||"symbol"!=e&&y.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,e=0;return function(){var r=tt(),o=u-(r-e);if(e=r,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=dt(function(){return arguments}())?dt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Pt(t)}var Et=Y||function(){return!1};function Pt(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,Ot),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,e,r){gt(t,n,e,r)},jt((function(t,n){var e=-1,r=n.length,o=r>1?n[r-1]:void 0,i=r>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,n,e){if(!kt(e))return!1;var r=typeof n;return!!("number"==r?$t(e)&&At(n,e.length):"string"==r&&n in e)&&Ft(e[n],t)}(n[0],n[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++e<r;){var u=n[e];u&&Vt(t,u,e,o)}return t})));function Ct(t){return t}n.exports=Dt}));function e(t){return null!=t&&"object"==typeof t}function r(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t){return"!"===t.charAt(0)}function u(t){return t.split(",").map(t=>t.trim())}function c(t,c,a){const f=a&&c[a]||{};let s=function t(r,u){let c={...u};for(let[u,a]of Object.entries(c)){const f=i(u);let s=u;if(f&&(s=u.substring(1)),e(a)&&!o(u)){(f?!r[s]:!!r[s])&&(c=n(t(r,c[u]),c)),delete c[u]}}return c}(t,n({...f},c));for(let[n,e]of Object.entries(s))if(r(e))s[n]=e(t);else if(o(n)){let e={};for(let[o,i]of Object.entries(s[n]))e[o]=r(i)?i(t):i;n.includes(",")?(u(n).forEach(t=>{s[t]={...s[t],...e}}),delete s[n]):s[n]=e}return s}return function(t,e={}){function o(i){const u=c(i,i.theme[t])||{},a=c(i,r(e)?e(i):e);return n(...o.styles.map(t=>t(i)),a,u)}return o.styles=[],o.addVariant=function(t,n){return this.styles.push((function(e){const o=e[t];return c(e,r(n)?n(e):n,o)})),this},o.addGlobalVariant=function(t,n){return this.styles.push((function(e){const o=e.theme[t];return c(e,r(n)?n(e):n,o)})),this},o}}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self)["styled-variants"]=n()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,e){var r=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",d=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,m=g||j||Function("return this")(),O=e&&!e.nodeType&&e,w=O&&n&&!n.nodeType&&n,A=w&&w.exports===O,z=A&&g.process,x=function(){try{var t=w&&w.require&&w.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var T,U,$,E=Array.prototype,P=Function.prototype,I=Object.prototype,k=m["__core-js_shared__"],B=P.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A?m.Buffer:void 0,G=m.Symbol,L=m.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=E.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=wt(m,"Map"),et=wt(Object,"create"),rt=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function ot(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function it(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ut(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var e=Ut(t),r=!e&&Tt(t),o=!e&&!r&&Et(t),i=!e&&!r&&!o&&Mt(t),u=e||r||o||i,c=u?function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||At(f,a))||c.push(f);return c}function ft(t,n,e){(void 0===e||Ft(t[n],e))&&(void 0!==e||n in t)||pt(t,n,e)}function st(t,n,e){var r=t[n];M.call(t,n)&&Ft(r,e)&&(void 0!==e||n in t)||pt(t,n,e)}function lt(t,n){for(var e=t.length;e--;)if(Ft(t[e][0],n))return e;return-1}function pt(t,n,e){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}ot.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(et){var e=n[t];return e===o?void 0:e}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return et?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=et&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,e=lt(n,t);return!(e<0)&&(e==n.length-1?n.pop():K.call(n,e,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,e=lt(n,t);return e<0?void 0:n[e][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var e=this.__data__,r=lt(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=Ot(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return Ot(this,t).get(t)},ut.prototype.has=function(t){return Ot(this,t).has(t)},ut.prototype.set=function(t,n){var e=Ot(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var e=this.__data__;if(e instanceof it){var o=e.__data__;if(!nt||o.length<r-1)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new ut(o)}return e.set(t,n),this.size=e.size,this};var ht,vt=function(t,n,e){for(var r=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[ht?u:++r];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),e=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var o=R.call(t);r&&(n?t[Q]=e:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function dt(t){return Bt(t)&&_t(t)==a}function yt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Pt(t)?q:d).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}(t);var n=zt(t),e=[];for(var r in t)("constructor"!=r||!n&&M.call(t,r))&&e.push(r);return e}function gt(t,n,e,r,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,e,r,o,i,u){var c=xt(t,e),a=xt(n,e),f=u.get(a);if(f)return void ft(t,e,f);var s=i?i(c,a,e+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Et(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var e=-1,r=t.length;n||(n=Array(r));for(;++e<r;)n[e]=t[e];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var e=t.length,r=N?N(e):new t.constructor(e);return t.copy(r),r}(a,!0)):_?(l=!1,d=a,y=!0?(b=d.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):d.buffer,s=new d.constructor(y,d.byteOffset,d.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var e=M.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&B.call(e)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,e,r){var o=!e;e||(e={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=r?r(e[c],t[c],c,e,t):void 0;void 0===a&&(a=t[c]),o?pt(e,c,a):st(e,c,a)}return e}(t,Rt(t))}(c):kt(c)&&!Pt(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:rt(W(t))}(a))):l=!1}var d,y,b,g;var j;l&&(u.set(a,s),o(s,a,r,i,u),u.delete(a));ft(t,e,s)}(t,n,u,e,gt,r,o);else{var c=r?r(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,e){return n=Z(void 0===n?t.length-1:n,0),function(){for(var r=arguments,o=-1,i=Z(r.length-n,0),u=Array(i);++o<i;)u[o]=r[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=r[o];return c[n]=e(u),F(t,this,c)}}(t,n,Ct),t+"")}function mt(t,n,e,r,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,mt,i),i.delete(n)),t}function Ot(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function wt(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return yt(e)?e:void 0}function At(t,n){var e=typeof t;return!!(n=null==n?c:n)&&("number"==e||"symbol"!=e&&y.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,e=0;return function(){var r=tt(),o=u-(r-e);if(e=r,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=dt(function(){return arguments}())?dt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Pt(t)}var Et=Y||function(){return!1};function Pt(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,mt),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,e,r){gt(t,n,e,r)},jt((function(t,n){var e=-1,r=n.length,o=r>1?n[r-1]:void 0,i=r>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,n,e){if(!kt(e))return!1;var r=typeof n;return!!("number"==r?$t(e)&&At(n,e.length):"string"==r&&n in e)&&Ft(e[n],t)}(n[0],n[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++e<r;){var u=n[e];u&&Vt(t,u,e,o)}return t})));function Ct(t){return t}n.exports=Dt}));function e(t){return null!=t&&"object"==typeof t}function r(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t){return"!"===t.charAt(0)}function u(t){return t.split(",").map(t=>t.trim())}function c(t,c,a){const f=a&&c[a]||{};let s=function t(r,u){let c={...u};for(let[u,a]of Object.entries(c)){const f=i(u);let s=u;if(f&&(s=u.substring(1)),e(a)&&!o(u)){(f?!r[s]:!!r[s])&&(c=n(t(r,c[u]),c)),delete c[u]}}return c}(t,n({...f},c));for(let[n,e]of Object.entries(s))if(r(e))s[n]=e(t);else if(o(n)){let e={};for(let[o,i]of Object.entries(s[n]))e[o]=r(i)?i(t):i;n.includes(",")?(u(n).forEach(t=>{s[t]={...s[t],...e}}),delete s[n]):s[n]=e}return s}return function(t,e={}){function o(i){const u=i.theme&&i.theme.components&&i.theme.components[t]||{},a=c(i,u),f=c(i,r(e)?e(i):e);return n(...o.styles.map(t=>t(i)),f,a)}return o.styles=[],o.addVariant=function(t,n){return this.styles.push((function(e){const o=e[t];return c(e,r(n)?n(e):n,o)})),this},o.addGlobalVariant=function(t,n){return this.styles.push((function(e){const o=e.theme[t];return c(e,r(n)?n(e):n,o)})),this},o}}));
{
"name": "styled-variants",
"version": "2.3.0",
"version": "2.4.0",
"description": "A scalable styled-component theming system that fully leverages JavaScript as a language for styles authoring and theming.",

@@ -34,2 +34,3 @@ "author": "Justin Conner <justindconner2@gmail.com> (https://justinconner.dev/)",

"rollup": "^1.20.0",
"rollup-plugin-analyzer": "^3.2.1",
"rollup-plugin-commonjs": "^10.0.0",

@@ -39,3 +40,2 @@ "rollup-plugin-node-resolve": "^5.1.0",

"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-uglify": "^6.0.3",
"tslib": "^1.10.0",

@@ -42,0 +42,0 @@ "typescript": "^2.9.2"

@@ -11,3 +11,3 @@ <h1 align="center" text-align="center">

<img src="https://img.shields.io/github/package-json/v/jdconner/styled-variants">
<img src="https://img.shields.io/github/size/jdconner/styled-variants/src/index.js">
<img src="https://img.shields.io/github/size/jdconner/styled-variants/dist/index.esm.js">
</p>

@@ -179,3 +179,3 @@

```js
const typeVariant = ButtonTheme.addVariant("type", {
const ButtonTheme = createTheme("Button").addVariant("type", {
isDisabled: {

@@ -201,2 +201,4 @@ opacity: 0.5,

});
export const ThemedButton = styled.button(ButtonTheme);
```

@@ -227,3 +229,3 @@

```js
const typeVariant = ButtonTheme.addVariant("type", {
const ButtonTheme = createTheme("Button").addVariant("type", {
isDisabled: {

@@ -437,4 +439,3 @@ opacity: 0.5,

If we'd like to globally style all of our buttons, we can do that by adding a `Button` key and the values we want to the `ThemeProvider` in our app's root:
If we'd like to globally style all of our components that use the `Button` theme, we can do that by adding a `Button` key to `components` in our theme that we pass to the `ThemeProvider`:
```js

@@ -446,6 +447,11 @@ const MyApp = () => {

colors,
Button: {
userSelect: "none",
cursor: "pointer",
isDisabled: { cursor: "default", pointerEvents: "none" },
components: {
Button: {
userSelect: "none",
cursor: "pointer",
isDisabled: {
cursor: "default",
pointerEvents: "none",
},
},
},

@@ -452,0 +458,0 @@ }}>

@@ -5,2 +5,3 @@ import resolve from "rollup-plugin-node-resolve";

import { terser } from "rollup-plugin-terser";
import analyze from "rollup-plugin-analyzer";

@@ -13,3 +14,4 @@ import pkg from "./package.json";

commonjs({ extensions: [".js", ".ts", ".tsx"] }), // so Rollup can convert deps to an ES module
terser(),
terser({ exclude: "node_modules/**" }),
analyze({ summaryOnly: true }),
];

@@ -16,0 +18,0 @@

@@ -97,4 +97,11 @@ import defaultsDeep from "lodash.defaultsdeep";

function self(props) {
const globalComponentStylesheet =
normalizeStylesheet(props, props.theme[componentName]) || {};
const globalValriantValue =
(props.theme &&
props.theme.components &&
props.theme.components[componentName]) ||
{};
const globalComponentStylesheet = normalizeStylesheet(
props,
globalValriantValue
);
const baseStylesheet = normalizeStylesheet(

@@ -101,0 +108,0 @@ props,

@@ -7,1 +7,2 @@ - Add TypeScript types

- Add caching (see styled-system)
- Create Compose function?
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc