text: !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((r=r||self).valueTypes={})}(this,function(r){"use strict";function t(t,e){return function(r){return Math.max(Math.min(r,e),t)}}function c(r){return r%1?Number(r.toFixed(5)):r}function e(t){return{test:function(r){return"string"==typeof r&&r.endsWith(t)&&1===r.split(" ").length},parse:parseFloat,transform:function(r){return""+r+t}}}function n(r){return void 0!==r.red}function a(r){return void 0!==r.hue}var s=function(){return(s=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a]);return r}).apply(this,arguments)},f=/(-)?(\d[\d\.]*)/g,i=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,o=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,u={test:function(r){return"number"==typeof r},parse:parseFloat,transform:function(r){return r}},l=s(s({},u),{transform:t(0,1)}),p=s(s({},u),{default:1}),h=e("deg"),m=e("%"),g=e("px"),d=e("vh"),v=e("vw"),b=s(s({},m),{parse:function(r){return m.parse(r)/100},transform:function(r){return m.transform(100*r)}}),y=t(0,255);function x(s){return function(r){if("string"!=typeof r)return r;for(var t,e={},n=(t=r).substring(t.indexOf("(")+1,t.lastIndexOf(")")).replace(/(,|\/)/g," ").split(/ \s*/),a=0;a<4;a++)e[s[a]]=void 0!==n[a]?parseFloat(n[a]):1;return e}}var O=s(s({},u),{transform:function(r){return Math.round(y(r))}});function M(r,t){return r.startsWith(t)&&o.test(r)}function j(r){return"number"==typeof r?0:r}var F={test:function(r){return"string"==typeof r?M(r,"rgb"):n(r)},parse:x(["red","green","blue","alpha"]),transform:function(r){var t,e,n,a,s,o=r.red,u=r.green,f=r.blue,i=r.alpha,p=void 0===i?1:i;return t={red:O.transform(o),green:O.transform(u),blue:O.transform(f),alpha:c(l.transform(p))},e=t.red,n=t.green,a=t.blue,s=t.alpha,"rgba("+e+", "+n+", "+a+", "+(void 0===s?1:s)+")"}},I={test:function(r){return"string"==typeof r?M(r,"hsl"):a(r)},parse:x(["hue","saturation","lightness","alpha"]),transform:function(r){var t,e,n,a,s,o=r.hue,u=r.saturation,f=r.lightness,i=r.alpha,p=void 0===i?1:i;return t={hue:Math.round(o),saturation:m.transform(c(u)),lightness:m.transform(c(f)),alpha:c(l.transform(p))},e=t.hue,n=t.saturation,a=t.lightness,s=t.alpha,"hsla("+e+", "+n+", "+a+", "+(void 0===s?1:s)+")"}},N=s(s({},F),{test:function(r){return"string"==typeof r&&M(r,"#")},parse:function(r){var t="",e="",n="";return 4<r.length?(t=r.substr(1,2),e=r.substr(3,2),n=r.substr(5,2)):(t=r.substr(1,1),e=r.substr(2,1),n=r.substr(3,1),t+=t,e+=e,n+=n),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(n,16),alpha:1}}}),w={test:function(r){return"string"==typeof r&&o.test(r)||n(r)||a(r)},parse:function(r){return F.test(r)?F.parse(r):I.test(r)?I.parse(r):N.test(r)?N.parse(r):r},transform:function(r){return n(r)?F.transform(r):a(r)?I.transform(r):r}},P="${c}",T="${n}",$={test:function(r){if("string"!=typeof r||!isNaN(r))return!1;var t=0,e=r.match(f),n=r.match(i);return e&&(t+=e.length),n&&(t+=n.length),0<t},parse:function(r){var t=r,e=[],n=t.match(i);n&&(t=t.replace(i,P),e.push.apply(e,n.map(w.parse)));var a=t.match(f);return a&&e.push.apply(e,a.map(u.parse)),e},createTransformer:function(r){var n=r,a=0,t=r.match(i),s=t?t.length:0;if(t)for(var e=0;e<s;e++)n=n.replace(t[e],P),a++;var o=n.match(f),u=o?o.length:0;if(o)for(e=0;e<u;e++)n=n.replace(o[e],T),a++;return function(r){for(var t=n,e=0;e<a;e++)t=t.replace(e<s?P:T,e<s?w.transform(r[e]):c(r[e]));return t}},getAnimatableNone:function(r){var t=$.parse(r);return $.createTransformer(r)(t.map(j))}};r.alpha=l,r.color=w,r.complex=$,r.degrees=h,r.hex=N,r.hsla=I,r.number=u,r.percent=m,r.progressPercentage=b,r.px=g,r.rgbUnit=O,r.rgba=F,r.scale=p,r.vh=d,r.vw=v,Object.defineProperty(r,"__esModule",{value:!0})});
  