wix-style-processor
Advanced tools
Comparing version 3.0.74 to 3.0.75
@@ -8,3 +8,3 @@ !function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};if(t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t.p="undefined"!=typeof window&&window.__STATICS_BASE_URL__||t.p,"undefined"!=typeof document){var n=document.getElementById("style-processor.stylable.bundle.css");n||(n=document.createElement("style"),n.id="style-processor.stylable.bundle.css",document.head.appendChild(n)),n.textContent=""}t(t.s=33)}([function(e,t,r){function n(e,t){!0!==e&&(a(t)?t=t():i(t)&&(t='Assert failed (turn on "Pause on exceptions" in your Source panel)'),n.fail(t))}var a=r(1),i=r(7),o=r(38),s=r(21);n.fail=o,n.stringify=s,e.exports=n},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var n=r(4),a=r(15);e.exports=function(e){return n(e)?e.displayName:a(e)}},function(e,t,r){r(0),r(14),r(1),r(13);e.exports=function(e,t){function r(e,t){return e}return r.meta={kind:"irreducible",name:e,predicate:t,identity:!0},r.displayName=e,r.is=t,r}},function(e,t,r){var n=r(1),a=r(10);e.exports=function(e){return n(e)&&a(e.meta)}},function(e,t,r){var n=r(7),a=r(14);e.exports=function(e){return n(e)||a(e)}},function(e,t){e.exports=function(e){return e instanceof Array}},function(e,t){e.exports=function(e){return null===e||void 0===e}},function(e,t,r){var n=r(4),a=r(28);r(15),r(0),r(21);e.exports=function(e,t,r){return n(e)?a(e)?new e(t,r):e(t,r):t}},function(e,t,r){var n=r(4);e.exports=function(e,t){return n(t)?t.is(e):e instanceof t}},function(e,t,r){var n=r(7),a=r(6);e.exports=function(e){return!n(e)&&"object"==typeof e&&!a(e)}},function(e,t,r){var n=(r(0),r(22),r(4));r(2);e.exports=function(e){return!n(e)||e.meta.identity}},function(e,t,r){"use strict";function n(e){return 0===e.indexOf("--")}function a(e){var t=e.split(":"),r=t[0],n=t.slice(1);return{key:r.trim(),value:n.join(":").trim()}}function i(e){return"string"==typeof e&&"{"===e[0]&&"}"===e.slice(-1)}function o(e){return e.slice(1,-1).split(",").reduce(function(e,t){var r=t.split(":"),n=r[0],a=r[1];return e[n.trim()]=a.trim().slice(1,-1),e},{})}function s(e){return"number"==typeof e}function c(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function u(e,t){return Object.keys(e||{}).reduce(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.isCssVar=n,t.splitDeclaration=a,t.isJsonLike=i,t.parseJson=o,t.isNumber=s,t.forEach=c,t.pickBy=u},function(e,t,r){var n=r(0),a=r(2);e.exports=function(e,t){n(!(e instanceof t),function(){return"Cannot use the new operator to instantiate the type "+a(t)})}},function(e,t){e.exports=function(e){return"string"==typeof e}},function(e,t){e.exports=function(e){return e.displayName||e.name||"<function"+e.length+">"}},function(e,t,r){var n=r(7);r(0);e.exports=function(e,t,r){if(n(t))return e;for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e}},function(e,t,r){var n=r(3);e.exports=n("Any",function(){return!0})},function(e,t,r){var n=r(3),a=r(1);e.exports=n("Function",a)},function(e,t,r){"use strict";function n(e){var t="";e.style.italic&&(t="italic "),e.style.bold&&(t+="bold ");var r=e.size||"normal";a.isNumber(r)&&(r+="px");var n=e.lineHeight||"normal";return a.isNumber(n)&&(n+="px"),t+=r+"/"+n+" ",t+=e.cssFontFamily||e.family,i(t)}Object.defineProperty(t,"__esModule",{value:!0});var a=r(12),i=r(37);t.wixStylesFontUtils={getFullFontStyles:function(e){var t=e.fontStyles,r=e.siteTextPresets,o={},s={};a.forEach(t,function(e,t){return s[t.replace(/\./g,"-")]=e});var c={};a.forEach(r,function(e,t){e.displayName?c[t]=Object.assign({},i(e.value),{preset:t,editorKey:e.editorKey,displayName:e.displayName}):c[t]=Object.assign({},i(e.value),{preset:t,editorKey:e.editorKey})});var u={};return a.forEach(s,function(e,t){return u[t]=n(e)}),a.forEach(c,function(e,t){return o[t]=u[t]||e}),o.LIGHT=i("12px HelveticaNeueW01-45Ligh"),o.MEDIUM=i("12px HelveticaNeueW01-55Roma"),o.STRONG=i("12px HelveticaNeueW01-65Medi"),o=Object.assign(o,u),a.forEach(o,function(e,t){o[t]=Object.assign({},e,{supports:{uppercase:!0}}),["snellroundhandw","niconne"].some(function(t){return e.family.indexOf(t)>-1})&&(o[t].supports.uppercase=!1),"normal"===o[t].lineHeight&&(o[t].lineHeight="1.4em"),"normal"===o[t].size&&(o[t].size="17px")}),o},toFontCssValue:function(e){var t=a.isNumber(e.size)?e.size+"px":e.size,r=a.isNumber(e.lineHeight)?e.lineHeight+"px":e.lineHeight;return e.style+" "+e.variant+" "+e.weight+" "+t+"/"+r+" "+e.family.join(",")},isStringHack:function(e){return!1===e.fontStyleParam},isValidFontParam:function(e){return void 0!==e.family}}},function(e,t,r){/*! @preserve | ||
*/ | ||
var n=r(0);n.Any=r(17),n.Array=r(39),n.Boolean=r(22),n.Date=r(40),n.Error=r(41),n.Function=r(18),n.Nil=r(24),n.Number=r(42),n.Object=r(43),n.RegExp=r(44),n.String=r(26),n.Arr=n.Array,n.Bool=n.Boolean,n.Dat=n.Date,n.Err=n.Error,n.Func=n.Function,n.Num=n.Number,n.Obj=n.Object,n.Re=n.RegExp,n.Str=n.String,n.dict=r(27),n.declare=r(45),n.enums=r(46),n.irreducible=r(3),n.list=r(29),n.maybe=r(47),n.refinement=r(49),n.struct=r(50),n.tuple=r(30),n.union=r(51),n.func=r(53),n.intersection=r(54),n.subtype=n.refinement,n.assert=n,n.update=r(55),n.mixin=r(16),n.isType=r(4),n.is=r(9),n.getTypeName=r(2),n.match=r(56),e.exports=n},function(e,t){e.exports=function(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}}},function(e,t,r){var n=r(3),a=r(23);e.exports=n("Boolean",a)},function(e,t){e.exports=function(e){return!0===e||!1===e}},function(e,t,r){var n=r(3),a=r(7);e.exports=n("Nil",a)},function(e,t){e.exports=function(e){return"number"==typeof e&&isFinite(e)&&!isNaN(e)}},function(e,t,r){var n=r(3),a=r(14);e.exports=n("String",a)},function(e,t,r){function n(e,t){return"{[key: "+o(e)+"]: "+o(t)+"}"}function a(e,t,r){function a(r,n){if(h)return r;var a=!0,i={};for(var o in r)if(r.hasOwnProperty(o)){o=u(e,o,null);var s=r[o],c=u(t,s,null);a=a&&s===c,i[o]=c}return a&&(i=r),i}var f=r||n(e,t),h=(o(e),o(t),s(e)&&s(t));return a.meta={kind:"dict",domain:e,codomain:t,name:r,identity:h},a.displayName=f,a.is=function(r){if(!c(r))return!1;for(var n in r)if(r.hasOwnProperty(n)&&(!l(n,e)||!l(r[n],t)))return!1;return!0},a.update=function(e,t){return a(i.update(e,t))},a}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=r(10),u=r(8),l=r(9);a.getDefaultName=n,e.exports=a},function(e,t,r){var n=r(4);e.exports=function(e){return n(e)&&"struct"===e.meta.kind}},function(e,t,r){function n(e){return"Array<"+o(e)+">"}function a(e,t){function r(t,r){if(f)return t;for(var n=!0,a=[],i=0,o=t.length;i<o;i++){var s=t[i],u=c(e,s,null);n=n&&s===u,a.push(u)}return n&&(a=t),a}var a=t||n(e),f=(o(e),s(e));return r.meta={kind:"list",type:e,name:t,identity:f},r.displayName=a,r.is=function(t){return l(t)&&t.every(function(t){return u(t,e)})},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=r(8),u=r(9),l=r(6);a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return"["+e.map(o).join(", ")+"]"}function a(e,t){function r(t,r){if(o)return t;for(var n=!0,a=[],i=0,s=e.length;i<s;i++){var c=e[i],l=t[i],f=u(c,l,null);n=n&&l===f,a.push(f)}return n&&(a=t),a}var a=t||n(e),o=e.every(s);return r.meta={kind:"tuple",types:e,name:t,identity:o},r.displayName=a,r.is=function(t){return c(t)&&t.length===e.length&&e.every(function(e,r){return l(t[r],e)})},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=r(6),u=r(8),l=r(9);a.getDefaultName=n,e.exports=a},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){function n(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}var a=r(31),i={};for(var o in a)a.hasOwnProperty(o)&&(i[a[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var c in s)if(s.hasOwnProperty(c)){if(!("channels"in s[c]))throw new Error("missing channels property: "+c);if(!("labels"in s[c]))throw new Error("missing channel labels property: "+c);if(s[c].labels.length!==s[c].channels)throw new Error("channel and label counts mismatch: "+c);var u=s[c].channels,l=s[c].labels;delete s[c].channels,delete s[c].labels,Object.defineProperty(s[c],"channels",{value:u}),Object.defineProperty(s[c],"labels",{value:l})}s.rgb.hsl=function(e){var t,r,n,a=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(a,i,o),c=Math.max(a,i,o),u=c-s;return c===s?t=0:a===c?t=(i-o)/u:i===c?t=2+(o-a)/u:o===c&&(t=4+(a-i)/u),t=Math.min(60*t,360),t<0&&(t+=360),n=(s+c)/2,r=c===s?0:n<=.5?u/(c+s):u/(2-c-s),[t,100*r,100*n]},s.rgb.hsv=function(e){var t,r,n,a=e[0],i=e[1],o=e[2],s=Math.min(a,i,o),c=Math.max(a,i,o),u=c-s;return r=0===c?0:u/c*1e3/10,c===s?t=0:a===c?t=(i-o)/u:i===c?t=2+(o-a)/u:o===c&&(t=4+(a-i)/u),t=Math.min(60*t,360),t<0&&(t+=360),n=c/255*1e3/10,[t,r,n]},s.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],a=s.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*i,100*n]},s.rgb.cmyk=function(e){var t,r,n,a,i=e[0]/255,o=e[1]/255,s=e[2]/255;return a=Math.min(1-i,1-o,1-s),t=(1-i-a)/(1-a)||0,r=(1-o-a)/(1-a)||0,n=(1-s-a)/(1-a)||0,[100*t,100*r,100*n,100*a]},s.rgb.keyword=function(e){var t=i[e];if(t)return t;var r,o=1/0;for(var s in a)if(a.hasOwnProperty(s)){var c=a[s],u=n(e,c);u<o&&(o=u,r=s)}return r},s.keyword.rgb=function(e){return a[e]},s.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){var t,r,n,a=s.rgb.xyz(e),i=a[0],o=a[1],c=a[2];return i/=95.047,o/=100,c/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,t=116*o-16,r=500*(i-o),n=200*(o-c),[t,r,n]},s.hsl.rgb=function(e){var t,r,n,a,i,o=e[0]/360,s=e[1]/100,c=e[2]/100;if(0===s)return i=255*c,[i,i,i];r=c<.5?c*(1+s):c+s-c*s,t=2*c-r,a=[0,0,0];for(var u=0;u<3;u++)n=o+1/3*-(u-1),n<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[u]=255*i;return a},s.hsl.hsv=function(e){var t,r,n=e[0],a=e[1]/100,i=e[2]/100,o=a,s=Math.max(i,.01);return i*=2,a*=i<=1?i:2-i,o*=s<=1?s:2-s,r=(i+a)/2,t=0===i?2*o/(s+o):2*a/(i+a),[n,100*t,100*r]},s.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,c,o];case 1:return[s,n,o];case 2:return[o,n,c];case 3:return[o,s,n];case 4:return[c,o,n];case 5:return[n,o,s]}},s.hsv.hsl=function(e){var t,r,n,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return n=(2-i)*o,t=(2-i)*s,r=i*s,r/=t<=1?t:2-t,r=r||0,n/=2,[a,100*r,100*n]},s.hwb.rgb=function(e){var t,r,n,a,i=e[0]/360,o=e[1]/100,s=e[2]/100,c=o+s;c>1&&(o/=c,s/=c),t=Math.floor(6*i),r=1-s,n=6*i-t,0!=(1&t)&&(n=1-n),a=o+n*(r-o);var u,l,f;switch(t){default:case 6:case 0:u=r,l=a,f=o;break;case 1:u=a,l=r,f=o;break;case 2:u=o,l=r,f=a;break;case 3:u=o,l=a,f=r;break;case 4:u=a,l=o,f=r;break;case 5:u=r,l=o,f=a}return[255*u,255*l,255*f]},s.cmyk.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100,s=e[3]/100;return t=1-Math.min(1,a*(1-s)+s),r=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),[255*t,255*r,255*n]},s.xyz.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100;return t=3.2406*a+-1.5372*i+-.4986*o,r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,t=Math.min(Math.max(0,t),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*t,255*r,255*n]},s.xyz.lab=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];return a/=95.047,i/=100,o/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,t=116*i-16,r=500*(a-i),n=200*(i-o),[t,r,n]},s.lab.xyz=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];r=(a+16)/116,t=i/500+r,n=r-o/200;var s=Math.pow(r,3),c=Math.pow(t,3),u=Math.pow(n,3);return r=s>.008856?s:(r-16/116)/7.787,t=c>.008856?c:(t-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},s.lab.lch=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];return t=Math.atan2(o,i),r=360*t/2/Math.PI,r<0&&(r+=360),n=Math.sqrt(i*i+o*o),[a,n,r]},s.lch.lab=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];return n=o/360*2*Math.PI,t=i*Math.cos(n),r=i*Math.sin(n),[a,t,r]},s.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}e-=16;var r;return[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,a),i),s=Math.min(Math.min(n,a),i),c=o-s;return t=c<1?s/(1-c):0,r=c<=0?0:o===n?(a-i)/c%6:o===a?2+(i-n)/c:4+(n-a)/c+4,r/=6,r%=1,[360*r,100*c,100*t]},s.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return n=r<.5?2*t*r:2*t*(1-r),n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},s.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},s.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var a=[0,0,0],i=t%1*6,o=i%1,s=1-o,c=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return c=(1-r)*n,[255*(r*a[0]+c),255*(r*a[1]+c),255*(r*a[2]+c)]},s.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,a=n-t,i=0;return a<1&&(i=(n-a)/(1-a)),[e[0],100*a,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34),a=r(69),i=r(70),o=r(71),s=r(72);t.default={styleUpdater:null,plugins:new o.Plugins,init:function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=a.default);var o=i.default(window.Wix);Object.keys(s.defaultPlugins).forEach(function(e){return r.plugins.addCssFunction(e,s.defaultPlugins[e])});var c={};return c.plugins=this.plugins,c.shouldUseCssVars=a.default.isCssVarsSupported()&&(o.isEditorMode()||o.isPreviewMode()),c.shouldApplyCSSFunctions=!o.shouldRunAsStandalone(),e=Object.assign({},c,e),this.styleUpdater=n.default(o,t,e),(o.isEditorMode()||o.isPreviewMode())&&o.listenToStyleParamsChange(function(){return r.styleUpdater.update(!0)}),this.styleUpdater.update()},update:function(e){return this.styleUpdater.update(e)}}},function(e,t,r){"use strict";function n(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function a(e,t){e.declarationReplacers.forEach(function(e){t.use(function(t,r){if(1==t){var n=f.splitDeclaration(r),a=n.key,i=n.value,o=e(a,i);return o.key+": "+o.value}})})}function i(e,t){var r=e.tpaParams,a=e.cacheMap,i=e.options,o=new l.CustomSyntaxHelper;t.use(function(e,t){if(1===e){var s=f.splitDeclaration(t),c=s.key,l=s.value;return o.extractVar(c,l),o.extractCustomSyntax(c,l),c+": "+l}if(-2===e)return o.customSyntaxStrs.reduce(function(e,t){var s=u.processor({part:t,customSyntaxHelper:o,tpaParams:r,cacheMap:a},i);return e.replace(new RegExp(n(t),"g"),s)},t)})}Object.defineProperty(t,"__esModule",{value:!0});var o=r(35),s=r(36),c=r(19),u=r(66),l=r(68),f=r(12);t.default=function(e,t,r){var n={};return{update:function(u){return void 0===u&&(u=!1),e.getStyleParams().then(function(e){var l=e[0],h=e[1],p=e[2],d=p.colors,g=f.pickBy(p.fonts,c.wixStylesFontUtils.isValidFontParam),v=p.numbers||{},b=s.wixStylesColorUtils.getFullColorStyles({colorStyles:d,siteColors:l})||{},m=c.wixStylesFontUtils.getFullFontStyles({fontStyles:g,siteTextPresets:h})||{},y=f.pickBy(p.fonts,c.wixStylesFontUtils.isStringHack),w={colors:b,fonts:m,numbers:v,strings:y};if(u&&r.shouldUseCssVars||Array.prototype.forEach.call(t.getAllStyleTags(),function(e){var s=e.originalTemplate||e.textContent,c=new o({semicolon:!1,compress:!1,preserve:!0});a(r.plugins,c),r.shouldApplyCSSFunctions&&i({tpaParams:w,cacheMap:n,options:r},c);var u=c("",s);t.overrideStyle(e,u)}),r.shouldUseCssVars){var x=Object.keys(n).reduce(function(e,t){return e[t]=n[t](w),e},{});t.updateCssVars(x)}}).catch(function(e){throw console.error("Failed updating styles:",e),e})}}}},function(e,t,r){!function(t){e.exports=t(null)}(function e(t){"use strict";function r(e,t,a,s){for(var l,f,h=0,p=0,v=0,b=0,m=0,y=0,w=0,x=0,k=0,M=0,S=0,A=0,F=0,P=0,N=0,E=0,_=0,$=0,U=0,D=a.length,T=D-1,re="",je="",Fe="",_e="",Ue="",ze="";N<D;){if(w=a.charCodeAt(N),p+b+v+h===0){if(N===T&&(E>0&&(je=je.replace(g,"")),je.trim().length>0)){switch(w){case Z:case Q:case q:case Y:case K:break;default:je+=a.charAt(N)}w=q}if(1===_)switch(w){case I:case ae:_=0;break;case Q:case Y:case K:case Z:break;default:N--,w=q}switch(w){case I:for(je=je.trim(),m=je.charCodeAt(0),S=1,U=++N;N<D;){switch(w=a.charCodeAt(N)){case I:S++;break;case B:S--}if(0===S)break;N++}switch(Fe=a.substring(U,N),m===he&&(m=(je=je.replace(d,"").trim()).charCodeAt(0)),m){case X:switch(E>0&&(je=je.replace(g,"")),y=je.charCodeAt(1)){case ke:case ve:case be:l=t;break;default:l=Ee}if(Fe=r(t,l,Fe,y),U=Fe.length,Ne>0&&0===U&&(U=je.length),$e>0&&(l=n(Ee,je,$),f=u(Ve,Fe,l,t,Se,Me,U,y),je=l.join(""),void 0!==f&&0===(U=(Fe=f.trim()).length)&&(y=0,Fe="")),U>0)switch(y){case be:je=je.replace(z,o);case ke:case ve:Fe=je+"{"+Fe+"}";break;case ge:je=je.replace(C,"$1 $2"+(qe>0?Be:"")),Fe=je+"{"+Fe+"}",Fe="@"+(Oe>0?H+Fe+"@"+Fe:Fe);break;default:Fe=je+Fe}else Fe="";break;default:Fe=r(t,n(t,je,$),Fe,s)}Ue+=Fe,A=0,_=0,P=0,E=0,$=0,F=0,je="",Fe="",w=a.charCodeAt(++N);break;case B:case q:if(je=(E>0?je.replace(g,""):je).trim(),(U=je.length)>1)switch(0===P&&((m=je.charCodeAt(0))===te||m>96&&m<123)&&(U=(je=je.replace(" ",":")).length),$e>0&&void 0!==(f=u(Te,je,t,e,Se,Me,_e.length,s))&&0===(U=(je=f.trim()).length)&&(je="\0\0"),m=je.charCodeAt(0),y=je.charCodeAt(1),m+y){case he:break;case we:case xe:ze+=je+a.charAt(N);break;default:if(je.charCodeAt(U-1)===ie)break;_e+=i(je,m,y,je.charCodeAt(2))}A=0,_=0,P=0,E=0,$=0,je="",w=a.charCodeAt(++N)}}switch(w){case Y:case K:if(p+b+v+h+Pe===0)switch(M){case J:case oe:case se:case X:case fe:case ue:case ne:case le:case ce:case te:case ie:case ae:case q:case I:case B:break;default:P>0&&(_=1)}p===ce&&(p=0),$e*Re>0&&u(De,je,t,e,Se,Me,_e.length,s),Me=1,Se++;break;case q:case B:if(p+b+v+h===0){Me++;break}default:switch(Me++,re=a.charAt(N),w){case Q:case Z:if(b+h===0)switch(x){case ae:case ie:case Q:case Z:re="";break;default:w!==Z&&(re=" ")}break;case he:re="\\0";break;case pe:re="\\f";break;case de:re="\\v";break;case ee:b+p+h===0&&Ce>0&&($=1,E=1,re="\f"+re);break;case 108:if(b+p+h+Ae===0&&P>0)switch(N-P){case 2:x===me&&a.charCodeAt(N-3)===ie&&(Ae=x);case 8:k===ye&&(Ae=k)}break;case ie:b+p+h===0&&(P=N);break;case ae:p+v+b+h===0&&(E=1,re+="\r");break;case se:case oe:0===p&&(b=b===w?0:0===b?w:b,N===T&&(T++,D++));break;case W:b+p+v===0&&h++;break;case G:b+p+v===0&&h--;break;case J:b+p+h===0&&(N===T&&(T++,D++),v--);break;case L:if(b+p+h===0){if(0===A)switch(2*x+3*k){case 533:break;default:S=0,A=1}v++}break;case X:p+v+b+h+P+F===0&&(F=1);break;case ne:case ce:if(b+h+v>0)break;switch(p){case 0:switch(2*w+3*a.charCodeAt(N+1)){case 235:p=ce;break;case 220:p=ne}break;case ne:w===ce&&x===ne&&(re="",p=0)}}if(0===p){if(Ce+b+h+F===0&&s!==ge&&w!==q)switch(w){case ae:case fe:case ue:case le:case J:case L:if(0===A){switch(x){case Q:case Z:case K:case Y:re+="\0";break;default:re="\0"+re+(w===ae?"":"\0")}E=1}else switch(w){case L:A=++S;break;case J:0==(A=--S)&&(E=1,re+="\0")}break;case Z:switch(x){case he:case I:case B:case q:case ae:case pe:case Q:case Z:case K:case Y:break;default:0===A&&(E=1,re+="\0")}}je+=re,w!==Z&&(M=w)}}k=x,x=w,N++}if(U=_e.length,Ne>0&&0===U&&0===Ue.length&&0===t[0].length==!1&&(s!==ve||1===t.length&&(Ce>0?Ie:Le)===t[0])&&(U=t.join(",").length+2),U>0){if(l=0===Ce&&s!==ge?c(t):t,$e>0&&void 0!==(f=u(He,_e,l,e,Se,Me,U,s))&&0===(_e=f).length)return ze+_e+Ue;if(_e=l.join(",")+"{"+_e+"}",Oe*Ae>0){switch(Ae){case ye:_e=_e.replace(j,":"+V+"$1")+_e;break;case me:_e=_e.replace(O,"::"+H+"input-$1")+_e.replace(O,"::"+V+"$1")+_e.replace(O,":"+R+"input-$1")+_e}Ae=0}}return ze+_e+Ue}function n(e,t,r){var n=t.trim().split(k),i=n,o=n.length,s=e.length;switch(s){case 0:case 1:for(var c=0,u=0===s?"":e[0]+" ";c<o;++c)i[c]=a(u,i[c],r,s).trim();break;default:for(var c=0,l=0,i=[];c<o;++c)for(var f=0;f<s;++f)i[l++]=a(e[f]+" ",n[c],r,s).trim()}return i}function a(e,t,r,n){var a=t,i=a.charCodeAt(0);switch(i<33&&(i=(a=a.trim()).charCodeAt(0)),i){case ee:switch(Ce+n){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(M,"$1"+e.trim())}break;case ie:switch(a.charCodeAt(1)){case 103:if(je>0&&Ce>0)return a.replace(S,"$1").replace(M,"$1"+Le);break;default:return e.trim()+a}default:if(r*Ce>0&&a.indexOf("\f")>0)return a.replace(M,(e.charCodeAt(0)===ie?"":"$1")+e.trim())}return e+a}function i(e,t,r,n){var a,i=0,o=e+";",c=2*t+3*r+4*n;if(944===c)o=s(o);else if(Oe>0)switch(c){case 969:o=H+o.replace(U,H+"$1")+o;break;case 951:o=H+o+o;break;case 963:110===o.charCodeAt(5)&&(o=H+o+o);break;case 978:o=H+o+V+o+o;break;case 1019:case 983:o=H+o+V+o+R+o+o;break;case 883:o.charCodeAt(8)===te&&(o=H+o+o);break;case 932:o=H+o+R+o+o;break;case 964:o=H+o+R+"flex-"+o+o;break;case 1023:a=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),o=H+"box-pack"+a+H+o+R+"flex-pack"+a+o;break;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(i=(o=e).length-10,a=(33===o.charCodeAt(i)?o.substring(0,i):o).substring(e.indexOf(":",7)+1).trim(),c=a.charCodeAt(0)+(0|a.charCodeAt(7))){case 203:if(a.charCodeAt(8)<111)break;case 115:o=o.replace(a,H+a)+";"+o;break;case 207:case 102:o=o.replace(a,H+(c>102?"inline-":"")+"box")+";"+o.replace(a,H+a)+";"+o.replace(a,R+a+"box")+";"+o}o+=";";break;case 938:if(o.charCodeAt(5)===te)switch(o.charCodeAt(6)){case 105:a=o.replace("-items",""),o=H+o+H+"box-"+a+R+"flex-"+a+o;break;case 115:o=H+o+R+"flex-item-"+o.replace(T,"")+o;break;default:o=H+o+R+"flex-line-pack"+o.replace("align-content","")+o}break;case 1005:b.test(o)&&(o=o.replace(v,":"+H)+o.replace(v,":"+V)+o);break;case 953:(i=o.indexOf("-content",9))>0&&109===o.charCodeAt(i-3)&&45!==o.charCodeAt(i-4)&&(a=o.substring(i-3),o="width:"+H+a+"width:"+V+a+"width:"+a);break;case 1015:if(e.charCodeAt(9)!==te)break;case 962:o=H+o+(102===o.charCodeAt(5)?R+o:"")+o,r+n===211&&105===o.charCodeAt(13)&&o.indexOf("transform",10)>0&&(o=o.substring(0,o.indexOf(";",27)+1).replace(m,"$1"+H+"$2")+o);break;case 1e3:switch(a=o.substring(13).trim(),i=a.indexOf("-")+1,a.charCodeAt(0)+a.charCodeAt(i)){case 226:a=o.replace($,"tb");break;case 232:a=o.replace($,"tb-rl");break;case 220:a=o.replace($,"lr");break;default:return o}o=H+o+R+a+o}return o}function o(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(D,"or($1)").substring(2):"("+t+")"}function s(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),a=e.substring(r,t-1).trim(),i="";if(e.charCodeAt(9)!==te)for(var o=a.split(y),s=0,r=0,t=o.length;s<t;r=0,++s){for(var c=o[s],u=c.split(w);c=u[r];){var l=c.charCodeAt(0);if(1===qe&&(l>X&&l<90||l>96&&l<123||l===re||l===te&&c.charCodeAt(1)!==te))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Be}}u[r++]=c}i+=(0===s?"":",")+u.join(" ")}else i+=110===e.charCodeAt(10)?a+(1===qe?Be:""):a;return i=n+i+";",Oe>0?H+i+i:i}function c(e){for(var t,r,n=0,a=e.length,i=Array(a);n<a;++n){for(var o=e[n].split(x),s="",c=0,u=0,l=0,f=0,h=o.length;c<h;++c)if(!(0===(u=(r=o[c]).length)&&h>1)){if(l=s.charCodeAt(s.length-1),f=r.charCodeAt(0),t="",0!==c)switch(l){case ne:case fe:case ue:case le:case Z:case L:break;default:t=" "}switch(f){case ee:r=t+Ie;case fe:case ue:case le:case Z:case J:case L:break;case W:r=t+r+Ie;break;case ie:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(je>0){r=t+r.substring(8,u-1);break}default:(c<1||o[c-1].length<1)&&(r=t+Ie+r)}break;case ae:t="";default:r=u>1&&r.indexOf(":")>0?t+r.replace(_,"$1"+Ie+"$2"):t+r+Ie}s+=r}i[n]=s.replace(g,"").trim()}return i}function u(e,t,r,n,a,i,o,s){for(var c,u=0,l=t;u<$e;++u)switch(c=_e[u].call(p,e,l,r,n,a,i,o,s)){case void 0:case!1:case!0:case null:break;default:l=c}switch(l){case void 0:case!1:case!0:case null:case t:break;default:return l}}function l(e){return e.replace(g,"").replace(F,"").replace(P,"$1").replace(N,"$1").replace(E," ")}function f(e){switch(e){case void 0:case null:$e=_e.length=0;break;default:switch(e.constructor){case Array:for(var t=0,r=e.length;t<r;++t)f(e[t]);break;case Function:_e[$e++]=e;break;case Boolean:Re=0|!!e}}return f}function h(e){for(var t in e){var r=e[t];switch(t){case"keyframe":qe=0|r;break;case"global":je=0|r;break;case"cascade":Ce=0|r;break;case"compress":Fe=0|r;break;case"prefix":Oe=0|r;break;case"semicolon":Pe=0|r;break;case"preserve":Ne=0|r}}return h}function p(t,n){if(void 0!==this&&this.constructor===p)return e(t);var a=t,i=a.charCodeAt(0);i<33&&(i=(a=a.trim()).charCodeAt(0)),qe>0&&(Be=a.replace(A,i===W?"":"-")),i=1,1===Ce?Le=a:Ie=a;var o,s=[Le];$e>0&&void 0!==(o=u(ze,n,s,s,Se,Me,0,0))&&"string"==typeof o&&(n=o);var c=r(Ee,s,n,0);return $e>0&&void 0!==(o=u(Ue,c,s,s,Se,Me,c.length,0))&&"string"!=typeof(c=o)&&(i=0),Be="",Le="",Ie="",Ae=0,Se=1,Me=1,Fe*i==0?c:l(c)}var d=/^\0+/g,g=/[\0\r\f]/g,v=/: */g,b=/zoo|gra/,m=/([,: ])(transform)/g,y=/,+\s*(?![^(]*[)])/g,w=/ +\s*(?![^(]*[)])/g,x=/ *[\0] */g,k=/,\r+?/g,M=/([\t\r\n ])*\f?&/g,S=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,A=/\W+/g,C=/@(k\w+)\s*(\S*)\s*/,O=/::(place)/g,j=/:(read-only)/g,F=/\s+(?=[{\];=:>])/g,P=/([[}=:>])\s+/g,N=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,_=/([^\(])(:+) */g,$=/[svh]\w+-[tblr]{2}/,U=/([\w-]+t\()/g,z=/\(\s*([^]*?)\s*\)/g,D=/([^]*?);/g,T=/-self|flex-/g,H="-webkit-",V="-moz-",R="-ms-",q=59,B=125,I=123,L=40,J=41,W=91,G=93,K=10,Y=13,Q=9,X=64,Z=32,ee=38,te=45,re=95,ne=42,ae=44,ie=58,oe=39,se=34,ce=47,ue=62,le=43,fe=126,he=0,pe=12,de=11,ge=107,ve=109,be=115,me=112,ye=111,we=169,xe=163,ke=100,Me=1,Se=1,Ae=0,Ce=1,Oe=1,je=1,Fe=0,Pe=0,Ne=0,Ee=[],_e=[],$e=0,Ue=-2,ze=-1,De=0,Te=1,He=2,Ve=3,Re=0,qe=1,Be="",Ie="",Le="";return p.use=f,p.set=h,void 0!==t&&h(t),p})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.wixStylesColorUtils={getFullColorStyles:function(e){var t=e.colorStyles,r=e.siteColors,a={},i={};for(var o in t)i[o.replace(/\./g,"-")]=t[o].value;return a.white="#FFFFFF",a.black="#000000",n.forEach(r,function(e){var t=e.reference,r=e.value;a[t]=r}),a=Object.assign(a,i),a.background=(i.background||{}).value||"#FFFFFF"===a["color-1"]&&"#F4EFE1"===a["color-2"]?a["color-2"]:a["color-1"],a}}},function(e,t,r){function n(e){return new Error("[parse-css-font] "+e)}function a(e){var t=parseFloat(e);return t.toString()===e?t:e}var i=r(20),o=r(57),s=r(58),c=r(59),u=r(60),l=r(61),f=r(62),h=r(63),p=r(64),d=i.struct({system:i.String}),g=i.struct({style:i.String,variant:i.String,weight:i.String,stretch:i.String,size:i.String,lineHeight:i.union([i.String,i.Number]),family:i.list(i.String)});i.union([g,d]);e.exports=i.func(i.String,i.Object).of(function(e){if(""===e)throw n("Cannot parse an empty string.");if(-1!==c.indexOf(e))return d({system:e});for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal"},r=!1,v=h.splitBySpaces(e),b=v.shift();!i.Nil.is(b);b=v.shift())if("normal"!==b&&-1===s.indexOf(b))if(-1===u.indexOf(b))if(-1===l.indexOf(b))if(-1===f.indexOf(b)){if(p.isSize(b)){var m=h.split(b,["/"]);if(t.size=m[0],i.Nil.is(m[1])||(t.lineHeight=a(m[1])),!v.length)throw n("Missing required font-family.");return t.family=h.splitByCommas(v.join(" ")).map(o),g(t)}if("normal"!==t.variant)throw n("Unknown or unsupported font token: "+t.variant);r||(t.variant=b)}else{if(r)continue;t.stretch=b}else{if(r)continue;t.style=b}else{if(r)continue;t.weight=b}else["style","variant","weight","stretch"].forEach(function(e){t[e]=b}),r=!0;throw n("Missing required font-size.")})},function(e,t){e.exports=function(e){throw new TypeError("[tcomb] "+e)}},function(e,t,r){var n=r(3),a=r(6);e.exports=n("Array",a)},function(e,t,r){var n=r(3);e.exports=n("Date",function(e){return e instanceof Date})},function(e,t,r){var n=r(3);e.exports=n("Error",function(e){return e instanceof Error})},function(e,t,r){var n=r(3),a=r(25);e.exports=n("Number",a)},function(e,t,r){var n=r(3),a=r(10);e.exports=n("Object",a)},function(e,t,r){var n=r(3);e.exports=n("RegExp",function(e){return e instanceof RegExp})},function(e,t,r){var n=(r(0),r(5),r(4),r(7),r(16)),a=r(2),i=1;e.exports=function(e){function t(e,t){return r(e,t)}var r;return t.define=function(a){return r=a,n(t,r,!0),e&&(r.displayName=t.displayName=e,t.meta.name=e),t.meta.identity=!1,t.prototype=r.prototype,t},t.displayName=e||a(t)+"$"+i++,t.meta={identity:!1},t.prototype=null,t}},function(e,t,r){function n(e){return Object.keys(e).map(function(e){return i.stringify(e)}).join(" | ")}function a(e,t){function r(e,t){return e}var a=t||n(e);return r.meta={kind:"enums",map:e,name:t,identity:!0},r.displayName=a,r.is=function(t){return e.hasOwnProperty(t)},r}var i=r(0),o=(r(5),r(13),r(14));r(10);a.of=function(e,t){e=o(e)?e.split(" "):e;var r={};return e.forEach(function(e){r[e]=e}),a(r,t)},a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return"?"+f(e)}function a(e,t){function r(t,r){return u.is(t)?null:c(e,t,r)}if(i(e)||e===s||e===u)return e;var a=t||n(e);return r.meta={kind:"maybe",type:e,name:t,identity:o(e)},r.displayName=a,r.is=function(t){return u.is(t)||l(t,e)},r}var i=(r(0),r(5),r(1),r(48)),o=r(11),s=r(17),c=r(8),u=r(24),l=(r(13),r(9)),f=r(2);a.getDefaultName=n,e.exports=a},function(e,t,r){var n=r(4);e.exports=function(e){return n(e)&&"maybe"===e.meta.kind}},function(e,t,r){function n(e,t){return"{"+u(e)+" | "+l(t)+"}"}function a(e,t,r){function a(t,r){var n=s(e,t,r);return n}var u=r||n(e,t),l=o(e);return a.meta={kind:"subtype",type:e,predicate:t,name:r,identity:l},a.displayName=u,a.is=function(r){return c(r,e)&&t(r)},a.update=function(e,t){return a(i.update(e,t))},a}var i=r(0),o=(r(5),r(1),r(13),r(11)),s=r(8),c=r(9),u=r(2),l=r(15);a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return"{"+Object.keys(e).map(function(t){return t+": "+l(e[t])}).join(", ")+"}"}function a(e,t){var r={},n={};e.forEach(function(e){s(e)?u(r,e):(u(r,e.meta.props),u(n,e.prototype))});var a=i(r,t);return u(a.prototype,n),a}function i(e,t){function r(t,n){if(r.is(t))return t;if(!(this instanceof r))return new r(t,n);for(var a in e)if(e.hasOwnProperty(a)){var i=e[a],o=t[a];this[a]=c(i,o,null)}}var i=t||n(e);return r.meta={kind:"struct",props:e,name:t,identity:!1},r.displayName=i,r.is=function(e){return e instanceof r},r.update=function(e,t){return new r(o.update(e,t))},r.extend=function(e,t){return a([r].concat(e),t)},r}var o=r(0),s=(r(5),r(26),r(18),r(6),r(10)),c=r(8),u=r(16),l=(r(28),r(2));r(27);i.getDefaultName=n,i.extend=a,e.exports=i},function(e,t,r){function n(e){return e.map(o).join(" | ")}function a(e,t){function r(e,t){if(o)return e;var n=r.dispatch(e);return!n&&r.is(e)?e:c(n,e,t)}var a=t||n(e),o=e.every(s);return r.meta={kind:"union",types:e,name:t,identity:o},r.displayName=a,r.is=function(t){return e.some(function(e){return u(t,e)})},r.dispatch=function(t){for(var r=0,n=e.length;r<n;r++){var a=e[r];if(l(a)){var i=a.dispatch(t);if(!f(i))return i}else if(u(t,a))return a}},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=(r(6),r(8)),u=r(9),l=(r(13),r(4),r(52)),f=r(7);a.getDefaultName=n,e.exports=a},function(e,t,r){var n=r(4);e.exports=function(e){return n(e)&&"union"===e.meta.kind}},function(e,t,r){function n(e,t){return"("+e.map(h).join(", ")+") => "+h(t)}function a(e){return o.is(e)&&c(e.instrumentation)}function i(e,t,r){function o(e,t){return a(e)?e:o.of(e,t)}e=s(e)?e:[e];var c=r||n(e,t);return o.meta={kind:"func",domain:e,codomain:t,name:r,identity:!0},o.displayName=c,o.is=function(r){return a(r)&&r.instrumentation.domain.length===e.length&&r.instrumentation.domain.every(function(t,r){return t===e[r]})&&r.instrumentation.codomain===t},o.of=function(r,n){function a(){var a=Array.prototype.slice.call(arguments),o=n?a.length:e.length;if(a=l(e.slice(0,o))(a),o===e.length)return u(t,r.apply(this,a));var s=Function.prototype.bind.apply(r,[this].concat(a));return i(e.slice(o),t).of(s,n)}return o.is(r)?r:(a.instrumentation={domain:e,codomain:t,f:r},a.displayName=f(r),a)},o}var o=(r(0),r(5),r(18)),s=r(6),c=(r(29),r(10)),u=r(8),l=(r(7),r(23),r(30)),f=r(15),h=r(2);i.getDefaultName=n,e.exports=i},function(e,t,r){function n(e){return e.map(s).join(" & ")}function a(e,t){function r(e,t){return e}var a=t||n(e);return r.meta={kind:"intersection",types:e,name:t,identity:!0},r.displayName=a,r.is=function(t){return e.every(function(e){return o(t,e)})},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(6),r(11),r(9)),s=r(2);a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return d(e)?e.concat():e instanceof Date||e instanceof RegExp?e:p(e)?g({},e):e}function a(e,t){var r=n(e),i=!1;for(var o in t)if(t.hasOwnProperty(o))if(a.commands.hasOwnProperty(o))r=a.commands[o](t[o],r),i=!0;else{var s=a(r[o],t[o]);i=i||s!==r[o],r[o]=s}return i?r:e}function i(e,t){return e(t)}function o(e,t){return t.concat(e)}function s(e,t){for(var r=0,n=e.length;r<n;r++)delete t[e[r]];return t}function c(e){return e}function u(e,t){return e.reduce(function(e,t){return e.splice.apply(e,t),e},t)}function l(e,t){var r=t[e.to];return t[e.to]=t[e.from],t[e.from]=r,t}function f(e,t){return e.concat(t)}function h(e,t){return g(g({},t),e,!0)}var p=(r(0),r(10)),d=(r(1),r(6)),g=(r(25),r(16));a.commands={$apply:i,$push:o,$remove:s,$set:c,$splice:u,$swap:l,$unshift:f,$merge:h},e.exports=a},function(e,t,r){var n=r(0),a=r(1),i=r(4),o=r(17);e.exports=function(e){for(var t,r,s,c=1,u=arguments.length;c<u;)if(t=arguments[c],r=arguments[c+1],s=arguments[c+2],a(s)&&!i(s)?c+=3:(s=r,r=o.is,c+=2),t.is(e)&&r(e))return s(e);n.fail("Match error")}},function(e,t){var r=/[\'\"]/;e.exports=function(e){return e?(r.test(e.charAt(0))&&(e=e.substr(1)),r.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}},function(e,t){e.exports=["inherit","initial","unset"]},function(e,t){e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]},function(e,t){e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]},function(e,t){e.exports=["normal","italic","oblique"]},function(e,t){e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]},function(e,t,r){var n=r(20),a=n.struct({last:n.maybe(n.Boolean)}),i={split:function(e,t,r){return o(e,t,r||{})},splitBySpaces:n.func(n.String,n.Array).of(function(e){var t=[" ","\n","\t"];return i.split(e,t)}),splitByCommas:n.func(n.String,n.Array).of(function(e){return i.split(e,[","],{last:!0})})},o=n.func([n.String,n.Array,a],n.Array).of(function(e,t,r){for(var n=[],a="",i=!1,o=0,s=!1,c=!1,u=0;u<e.length;u++){var l=e[u];s?c?c=!1:"\\"===l?c=!0:l===s&&(s=!1):'"'===l||"'"===l?s=l:"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&-1!==t.indexOf(l)&&(i=!0),i?(""!==a&&n.push(a.trim()),a="",i=!1):a+=l}return(r.last||""!==a)&&n.push(a.trim()),n});e.exports=i},function(e,t,r){var n=r(65);e.exports={isSize:function(e){return/^[\d\.]/.test(e)||-1!==e.indexOf("/")||-1!==n.indexOf(e)}}},function(e,t){e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]},function(e,t,r){"use strict";function n(e,t){var r=e.part,n=e.customSyntaxHelper,i=e.tpaParams,o=e.cacheMap,s=t.plugins,u=t.shouldUseCssVars;if(s.isSupportedFunction(r)){var l=a(r,s,n);if(u){var f="--"+c.hash(r);return o[f]=l,"var("+f+")"}return l(i)}return r}function a(e,t,r){var n;return(n=t.getFunctionSignature(e))?(o=t.cssFunctions)[n.funcName].apply(o,n.args.split(u).map(function(e){return a(e.trim(),t,r)})):i(e,t,r);var o}function i(e,t,r){if(s.isCssVar(e)){var n=r.getValue(e),i=void 0;return i=t.isSupportedFunction(n)?a(n,t,r):function(){return n},o(e,i)}return function(){return e}}function o(e,t){return function(r){var n=e.substring(2,e.length);return r.strings[n]&&r.strings[n].value?r.strings[n].value:r.colors[n]?r.colors[n]:r.fonts[n]?r.fonts[n]:s.isNumber(r.numbers[n])?r.numbers[n]:t(r)}}Object.defineProperty(t,"__esModule",{value:!0});var s=r(12),c=r(67),u=/,(?![^(]*(?:\)|}))/g;t.processor=n},function(e,t,r){"use strict";function n(e){return a(e,e.length).toString(36)}function a(e,t){for(var r=1540483477,n=t^e.length,a=e.length,c=0;a>=4;){var u=i(e,c);u=s(u,r),u^=u>>>24,u=s(u,r),n=s(n,r),n^=u,c+=4,a-=4}switch(a){case 3:n^=o(e,c),n^=e.charCodeAt(c+2)<<16,n=s(n,r);break;case 2:n^=o(e,c),n=s(n,r);break;case 1:n^=e.charCodeAt(c),n=s(n,r)}return n^=n>>>13,n=s(n,r),(n^=n>>>15)>>>0}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function s(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}Object.defineProperty(t,"__esModule",{value:!0}),t.hash=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),a=/"\w+\([^"]*\)"/g,i=function(){function e(){this.vars={},this.customSyntaxStrs=[]}return e.prototype.extractVar=function(e,t){n.isCssVar(e)&&(this.vars[e]=t)},e.prototype.extractCustomSyntax=function(e,t){var r;(r=t.match(a))&&(n=this.customSyntaxStrs).push.apply(n,r);var n},e.prototype.getValue=function(e){return this.vars[e]},e}();t.CustomSyntaxHelper=i},function(e,t,r){"use strict";function n(){return/(MSIE|Trident)/i.test(navigator.userAgent)}Object.defineProperty(t,"__esModule",{value:!0}),t.default={getAllStyleTags:function(){return document.querySelectorAll("style:not([wix-style])")},overrideStyle:function(e,t){e.originalTemplate=e.originalTemplate||e.textContent,n()?e.innerHTML=t:e.textContent=t},isCssVarsSupported:function(){return!!(window.CSS&&window.CSS.supports&&window.CSS.supports("--fake-var",0))},updateCssVars:function(e){Object.keys(e).forEach(function(t){document.documentElement.style.setProperty(t,e[t])})}}},function(e,t,r){"use strict";function n(e){return new Promise(function(t,r){return e.Styles.getSiteColors(function(e){return e?t(e):r({})})})}function a(e){return new Promise(function(t,r){return e.Styles.getSiteTextPresets(function(e){return e?t(e):r({})})})}function i(e){return new Promise(function(t,r){return e.Styles.getStyleParams(function(e){return e?t(e):r({})})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{getStyleParams:function(){return this.shouldRunAsStandalone()?Promise.resolve([{},{},{}]):Promise.all([n(e),a(e),i(e)])},listenToStyleParamsChange:function(t){e.addEventListener(e.Events.STYLE_PARAMS_CHANGE,t)},listenToSettingsUpdated:function(t){e.addEventListener(e.Events.SETTINGS_UPDATED,t)},isEditorMode:function(){return"editor"===e.Utils.getViewMode()},isPreviewMode:function(){return"preview"===e.Utils.getViewMode()},shouldRunAsStandalone:function(){return this.isStandaloneMode()||this.withoutStyleCapabilites()},withoutStyleCapabilites:function(){return!e.Styles},isStandaloneMode:function(){return"standalone"===e.Utils.getViewMode()}}}},function(e,t,r){"use strict";function n(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return function(r){return e.apply(void 0,t.map(function(e){return e(r)}).concat([r]))}}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){this.resetPlugins()}return e.prototype.addCssFunction=function(e,t){this.cssFunctions[e]=n(t),this.updateRegex()},e.prototype.addDeclarationReplacer=function(e){this.declarationReplacers.push(e)},e.prototype.resetPlugins=function(){this.cssFunctions={},this.declarationReplacers=[],this.regex=void 0},e.prototype.isSupportedFunction=function(e){return this.regex.test(e)},e.prototype.getFunctionSignature=function(e){var t=this.regex.exec(e);return t?{funcName:t[1],args:t[2]}:null},e.prototype.updateRegex=function(){this.regex=new RegExp("("+Object.keys(this.cssFunctions).join("|")+")\\((.*)\\)")},e}();t.Plugins=a},function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&(r[n[a]]=e[n[a]]);return r};Object.defineProperty(t,"__esModule",{value:!0});var a=r(73),i=r(19),o=r(12),s=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.defaultPlugins={join:function(e,t,r,n){e=new a(e),r=new a(r);var i=255*(e.red()/255+r.red()/255),o=255*(e.green()/255+r.green()/255),s=255*(e.blue()/255+r.blue()/255),c=(e.alpha()+r.alpha())/2;return new a({r:i,g:o,b:s}).alpha(c).rgb().string()},color:function(e,t){if(t.colors[e])return t.colors[e];try{return s.test(e)?e:new a(e).rgb().string()}catch(t){throw"Unparsable color "+e}},font:function(e,t){var r;if("object"==typeof e)r=e;else if(o.isJsonLike(e)){var a=o.parseJson(e),s=a.theme,c=n(a,["theme"]);r=Object.assign({style:"",variant:"",weight:"",stretch:"",size:"",lineHeight:"",family:[]},t.fonts[s],c)}else{if(!t.fonts[e])return e;r=t.fonts[e]}var u=i.wixStylesFontUtils.toFontCssValue(r);return";"===u[u.length-1]&&(u=u.split(";")[0]),u},opacity:function(e,t){return new a(e).fade(1-t).rgb().string()},withoutOpacity:function(e){return new a(e).alpha(1).rgb().string()},string:function(e){return e},darken:function(e,t){return new a(e).darken(t).rgb().string()},number:function(e){return+e},unit:function(e,t){return""+e+t}}},function(e,t,r){"use strict";function n(e,t){if(!(this instanceof n))return new n(e,t);if(t&&t in p&&(t=null),t&&!(t in f))throw new Error("Unknown model: "+t);var r,a;if(e)if(e instanceof n)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var i=l.get(e);if(null===i)throw new Error("Unable to parse color from string: "+e);this.model=i.model,a=f[this.model].channels,this.color=i.value.slice(0,a),this.valpha="number"==typeof i.value[a]?i.value[a]:1}else if(e.length){this.model=t||"rgb",a=f[this.model].channels;var o=h.call(e,0,a);this.color=u(o,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var s=Object.keys(e);"alpha"in e&&(s.splice(s.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var c=s.sort().join("");if(!(c in d))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=d[c];var v=f[this.model].labels,b=[];for(r=0;r<v.length;r++)b.push(e[v[r]]);this.color=u(b)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(g[this.model])for(a=f[this.model].channels,r=0;r<a;r++){var m=g[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function a(e,t){return Number(e.toFixed(t))}function i(e){return function(t){return a(t,e)}}function o(e,t,r){return e=Array.isArray(e)?e:[e],e.forEach(function(e){(g[e]||(g[e]=[]))[t]=r}),e=e[0],function(n){var a;return arguments.length?(r&&(n=r(n)),a=this[e](),a.color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function s(e){return function(t){return Math.max(0,Math.min(e,t))}}function c(e){return Array.isArray(e)?e:[e]}function u(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}var l=r(74),f=r(77),h=[].slice,p=["keyword","gray","hex"],d={};Object.keys(f).forEach(function(e){d[h.call(f[e].labels).sort().join("")]=e});var g={};n.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in l.to?this:this.rgb();t=t.round("number"==typeof e?e:1);var r=1===t.valpha?t.color:t.color.concat(this.valpha);return l.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return l.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=f[this.model].channels,r=f[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new n(this.color.map(i(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new n(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:o("rgb",0,s(255)),green:o("rgb",1,s(255)),blue:o("rgb",2,s(255)),hue:o(["hsl","hsv","hsl","hwb","hcg"],0,function(e){return(e%360+360)%360}),saturationl:o("hsl",1,s(100)),lightness:o("hsl",2,s(100)),saturationv:o("hsv",1,s(100)),value:o("hsv",2,s(100)),chroma:o("hcg",1,s(100)),gray:o("hcg",2,s(100)),white:o("hwb",1,s(100)),wblack:o("hwb",2,s(100)),cyan:o("cmyk",0,s(100)),magenta:o("cmyk",1,s(100)),yellow:o("cmyk",2,s(100)),black:o("cmyk",3,s(100)),x:o("xyz",0,s(100)),y:o("xyz",1,s(100)),z:o("xyz",2,s(100)),l:o("lab",0,s(100)),a:o("lab",1),b:o("lab",2),keyword:function(e){return arguments.length?new n(e):f[this.model].keyword(this.color)},hex:function(e){return arguments.length?new n(e):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return n.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix:function(e,t){var r=this.rgb(),a=e.rgb(),i=void 0===t?.5:t,o=2*i-1,s=r.alpha()-a.alpha(),c=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,u=1-c;return n.rgb(c*r.red()+u*a.red(),c*r.green()+u*a.green(),c*r.blue()+u*a.blue(),r.alpha()*i+a.alpha()*(1-i))}},Object.keys(f).forEach(function(e){if(-1===p.indexOf(e)){var t=f[e].channels;n.prototype[e]=function(){if(this.model===e)return new n(this);if(arguments.length)return new n(arguments,e);var r="number"==typeof arguments[t]?t:this.valpha;return new n(c(f[this.model][e].raw(this.color)).concat(r),e)},n[e]=function(r){return"number"==typeof r&&(r=u(h.call(arguments),t)),new n(r,e)}}}),e.exports=n},function(e,t,r){function n(e,t,r){return Math.min(Math.max(t,e),r)}function a(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var i=r(31),o=r(75),s={};for(var c in i)i.hasOwnProperty(c)&&(s[i[c]]=c);var u=e.exports={to:{}};u.get=function(e){var t,r,n=e.substring(0,3).toLowerCase();switch(n){case"hsl":t=u.get.hsl(e),r="hsl";break;case"hwb":t=u.get.hwb(e),r="hwb";break;default:t=u.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,r,a,o=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,c=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,f=[0,0,0,1];if(t=e.match(s)){for(a=t[2],t=t[1],r=0;r<3;r++){var h=2*r;f[r]=parseInt(t.slice(h,h+2),16)}a&&(f[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(o)){for(t=t[1],a=t[3],r=0;r<3;r++)f[r]=parseInt(t[r]+t[r],16);a&&(f[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(c)){for(r=0;r<3;r++)f[r]=parseInt(t[r+1],0);t[4]&&(f[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(l))?"transparent"===t[1]?[0,0,0,0]:(f=i[t[1]])?(f[3]=1,f):null:null;for(r=0;r<3;r++)f[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(f[3]=parseFloat(t[4]))}for(r=0;r<3;r++)f[r]=n(f[r],0,255);return f[3]=n(f[3],0,1),f},u.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=e.match(t);if(r){var a=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(a)?1:a,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=e.match(t);if(r){var a=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(a)?1:a,0,1)]}return null},u.to.hex=function(){var e=o(arguments);return"#"+a(e[0])+a(e[1])+a(e[2])+(e[3]<1?a(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},u.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return s[e.slice(0,3)]}},function(e,t,r){"use strict";var n=r(76),a=Array.prototype.concat,i=Array.prototype.slice,o=e.exports=function(e){for(var t=[],r=0,o=e.length;r<o;r++){var s=e[r];n(s)?t=a.call(t,i.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,r){function n(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function a(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}var i=r(32),o=r(78),s={};Object.keys(i).forEach(function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:i[e].channels}),Object.defineProperty(s[e],"labels",{value:i[e].labels});var t=o(e);Object.keys(t).forEach(function(r){var i=t[r];s[e][r]=a(i),s[e][r].raw=n(i)})}),e.exports=s},function(e,t,r){function n(){for(var e={},t=c.length,r=0;r<t;r++)e[c[r]]={distance:-1,parent:null};return e}function a(e){var t=n(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(s[a]),o=i.length,c=0;c<o;c++){var u=i[c],l=t[u];-1===l.distance&&(l.distance=t[a].distance+1,l.parent=a,r.unshift(u))}return t}function i(e,t){return function(r){return t(e(r))}}function o(e,t){for(var r=[t[e].parent,e],n=s[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=i(s[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var s=r(32),c=Object.keys(s);e.exports=function(e){for(var t=a(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var c=n[s];null!==t[c].parent&&(r[c]=o(c,t))}return r}}]); | ||
var n=r(0);n.Any=r(17),n.Array=r(39),n.Boolean=r(22),n.Date=r(40),n.Error=r(41),n.Function=r(18),n.Nil=r(24),n.Number=r(42),n.Object=r(43),n.RegExp=r(44),n.String=r(26),n.Arr=n.Array,n.Bool=n.Boolean,n.Dat=n.Date,n.Err=n.Error,n.Func=n.Function,n.Num=n.Number,n.Obj=n.Object,n.Re=n.RegExp,n.Str=n.String,n.dict=r(27),n.declare=r(45),n.enums=r(46),n.irreducible=r(3),n.list=r(29),n.maybe=r(47),n.refinement=r(49),n.struct=r(50),n.tuple=r(30),n.union=r(51),n.func=r(53),n.intersection=r(54),n.subtype=n.refinement,n.assert=n,n.update=r(55),n.mixin=r(16),n.isType=r(4),n.is=r(9),n.getTypeName=r(2),n.match=r(56),e.exports=n},function(e,t){e.exports=function(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}}},function(e,t,r){var n=r(3),a=r(23);e.exports=n("Boolean",a)},function(e,t){e.exports=function(e){return!0===e||!1===e}},function(e,t,r){var n=r(3),a=r(7);e.exports=n("Nil",a)},function(e,t){e.exports=function(e){return"number"==typeof e&&isFinite(e)&&!isNaN(e)}},function(e,t,r){var n=r(3),a=r(14);e.exports=n("String",a)},function(e,t,r){function n(e,t){return"{[key: "+o(e)+"]: "+o(t)+"}"}function a(e,t,r){function a(r,n){if(h)return r;var a=!0,i={};for(var o in r)if(r.hasOwnProperty(o)){o=u(e,o,null);var s=r[o],c=u(t,s,null);a=a&&s===c,i[o]=c}return a&&(i=r),i}var f=r||n(e,t),h=(o(e),o(t),s(e)&&s(t));return a.meta={kind:"dict",domain:e,codomain:t,name:r,identity:h},a.displayName=f,a.is=function(r){if(!c(r))return!1;for(var n in r)if(r.hasOwnProperty(n)&&(!l(n,e)||!l(r[n],t)))return!1;return!0},a.update=function(e,t){return a(i.update(e,t))},a}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=r(10),u=r(8),l=r(9);a.getDefaultName=n,e.exports=a},function(e,t,r){var n=r(4);e.exports=function(e){return n(e)&&"struct"===e.meta.kind}},function(e,t,r){function n(e){return"Array<"+o(e)+">"}function a(e,t){function r(t,r){if(f)return t;for(var n=!0,a=[],i=0,o=t.length;i<o;i++){var s=t[i],u=c(e,s,null);n=n&&s===u,a.push(u)}return n&&(a=t),a}var a=t||n(e),f=(o(e),s(e));return r.meta={kind:"list",type:e,name:t,identity:f},r.displayName=a,r.is=function(t){return l(t)&&t.every(function(t){return u(t,e)})},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=r(8),u=r(9),l=r(6);a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return"["+e.map(o).join(", ")+"]"}function a(e,t){function r(t,r){if(o)return t;for(var n=!0,a=[],i=0,s=e.length;i<s;i++){var c=e[i],l=t[i],f=u(c,l,null);n=n&&l===f,a.push(f)}return n&&(a=t),a}var a=t||n(e),o=e.every(s);return r.meta={kind:"tuple",types:e,name:t,identity:o},r.displayName=a,r.is=function(t){return c(t)&&t.length===e.length&&e.every(function(e,r){return l(t[r],e)})},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=r(6),u=r(8),l=r(9);a.getDefaultName=n,e.exports=a},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){function n(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}var a=r(31),i={};for(var o in a)a.hasOwnProperty(o)&&(i[a[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var c in s)if(s.hasOwnProperty(c)){if(!("channels"in s[c]))throw new Error("missing channels property: "+c);if(!("labels"in s[c]))throw new Error("missing channel labels property: "+c);if(s[c].labels.length!==s[c].channels)throw new Error("channel and label counts mismatch: "+c);var u=s[c].channels,l=s[c].labels;delete s[c].channels,delete s[c].labels,Object.defineProperty(s[c],"channels",{value:u}),Object.defineProperty(s[c],"labels",{value:l})}s.rgb.hsl=function(e){var t,r,n,a=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(a,i,o),c=Math.max(a,i,o),u=c-s;return c===s?t=0:a===c?t=(i-o)/u:i===c?t=2+(o-a)/u:o===c&&(t=4+(a-i)/u),t=Math.min(60*t,360),t<0&&(t+=360),n=(s+c)/2,r=c===s?0:n<=.5?u/(c+s):u/(2-c-s),[t,100*r,100*n]},s.rgb.hsv=function(e){var t,r,n,a=e[0],i=e[1],o=e[2],s=Math.min(a,i,o),c=Math.max(a,i,o),u=c-s;return r=0===c?0:u/c*1e3/10,c===s?t=0:a===c?t=(i-o)/u:i===c?t=2+(o-a)/u:o===c&&(t=4+(a-i)/u),t=Math.min(60*t,360),t<0&&(t+=360),n=c/255*1e3/10,[t,r,n]},s.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],a=s.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,100*i,100*n]},s.rgb.cmyk=function(e){var t,r,n,a,i=e[0]/255,o=e[1]/255,s=e[2]/255;return a=Math.min(1-i,1-o,1-s),t=(1-i-a)/(1-a)||0,r=(1-o-a)/(1-a)||0,n=(1-s-a)/(1-a)||0,[100*t,100*r,100*n,100*a]},s.rgb.keyword=function(e){var t=i[e];if(t)return t;var r,o=1/0;for(var s in a)if(a.hasOwnProperty(s)){var c=a[s],u=n(e,c);u<o&&(o=u,r=s)}return r},s.keyword.rgb=function(e){return a[e]},s.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){var t,r,n,a=s.rgb.xyz(e),i=a[0],o=a[1],c=a[2];return i/=95.047,o/=100,c/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,t=116*o-16,r=500*(i-o),n=200*(o-c),[t,r,n]},s.hsl.rgb=function(e){var t,r,n,a,i,o=e[0]/360,s=e[1]/100,c=e[2]/100;if(0===s)return i=255*c,[i,i,i];r=c<.5?c*(1+s):c+s-c*s,t=2*c-r,a=[0,0,0];for(var u=0;u<3;u++)n=o+1/3*-(u-1),n<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[u]=255*i;return a},s.hsl.hsv=function(e){var t,r,n=e[0],a=e[1]/100,i=e[2]/100,o=a,s=Math.max(i,.01);return i*=2,a*=i<=1?i:2-i,o*=s<=1?s:2-s,r=(i+a)/2,t=0===i?2*o/(s+o):2*a/(i+a),[n,100*t,100*r]},s.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,c,o];case 1:return[s,n,o];case 2:return[o,n,c];case 3:return[o,s,n];case 4:return[c,o,n];case 5:return[n,o,s]}},s.hsv.hsl=function(e){var t,r,n,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return n=(2-i)*o,t=(2-i)*s,r=i*s,r/=t<=1?t:2-t,r=r||0,n/=2,[a,100*r,100*n]},s.hwb.rgb=function(e){var t,r,n,a,i=e[0]/360,o=e[1]/100,s=e[2]/100,c=o+s;c>1&&(o/=c,s/=c),t=Math.floor(6*i),r=1-s,n=6*i-t,0!=(1&t)&&(n=1-n),a=o+n*(r-o);var u,l,f;switch(t){default:case 6:case 0:u=r,l=a,f=o;break;case 1:u=a,l=r,f=o;break;case 2:u=o,l=r,f=a;break;case 3:u=o,l=a,f=r;break;case 4:u=a,l=o,f=r;break;case 5:u=r,l=o,f=a}return[255*u,255*l,255*f]},s.cmyk.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100,s=e[3]/100;return t=1-Math.min(1,a*(1-s)+s),r=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),[255*t,255*r,255*n]},s.xyz.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100;return t=3.2406*a+-1.5372*i+-.4986*o,r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,t=Math.min(Math.max(0,t),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*t,255*r,255*n]},s.xyz.lab=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];return a/=95.047,i/=100,o/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,t=116*i-16,r=500*(a-i),n=200*(i-o),[t,r,n]},s.lab.xyz=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];r=(a+16)/116,t=i/500+r,n=r-o/200;var s=Math.pow(r,3),c=Math.pow(t,3),u=Math.pow(n,3);return r=s>.008856?s:(r-16/116)/7.787,t=c>.008856?c:(t-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},s.lab.lch=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];return t=Math.atan2(o,i),r=360*t/2/Math.PI,r<0&&(r+=360),n=Math.sqrt(i*i+o*o),[a,n,r]},s.lch.lab=function(e){var t,r,n,a=e[0],i=e[1],o=e[2];return n=o/360*2*Math.PI,t=i*Math.cos(n),r=i*Math.sin(n),[a,t,r]},s.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}e-=16;var r;return[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map(function(e){return e+e}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,a),i),s=Math.min(Math.min(n,a),i),c=o-s;return t=c<1?s/(1-c):0,r=c<=0?0:o===n?(a-i)/c%6:o===a?2+(i-n)/c:4+(n-a)/c+4,r/=6,r%=1,[360*r,100*c,100*t]},s.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return n=r<.5?2*t*r:2*t*(1-r),n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},s.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},s.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var a=[0,0,0],i=t%1*6,o=i%1,s=1-o,c=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return c=(1-r)*n,[255*(r*a[0]+c),255*(r*a[1]+c),255*(r*a[2]+c)]},s.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,a=n-t,i=0;return a<1&&(i=(n-a)/(1-a)),[e[0],100*a,100*i]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34),a=r(69),i=r(70),o=r(71),s=r(72);t.default={styleUpdater:null,plugins:new o.Plugins,init:function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=a.default);var o=i.default(window.Wix);Object.keys(s.defaultPlugins).forEach(function(e){return r.plugins.addCssFunction(e,s.defaultPlugins[e])});var c={};return c.plugins=this.plugins,c.shouldUseCssVars=a.default.isCssVarsSupported()&&(o.isEditorMode()||o.isPreviewMode()),c.shouldApplyCSSFunctions=!o.shouldRunAsStandalone(),e=Object.assign({},c,e),this.styleUpdater=n.default(o,t,e),(o.isEditorMode()||o.isPreviewMode())&&o.listenToStyleParamsChange(function(){return r.styleUpdater.update(!0)}),this.styleUpdater.update()},update:function(e){return this.styleUpdater.update(e)}}},function(e,t,r){"use strict";function n(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function a(e,t){e.declarationReplacers.forEach(function(e){t.use(function(t,r){if(1==t){var n=f.splitDeclaration(r),a=n.key,i=n.value,o=e(a,i);return o.key+": "+o.value}})})}function i(e,t){var r=e.tpaParams,a=e.cacheMap,i=e.options,o=new l.CustomSyntaxHelper;t.use(function(e,t){if(1===e){var s=f.splitDeclaration(t),c=s.key,l=s.value;return o.extractVar(c,l),o.extractCustomSyntax(c,l),c+": "+l}if(-2===e)return o.customSyntaxStrs.reduce(function(e,t){var s=u.processor({part:t,customSyntaxHelper:o,tpaParams:r,cacheMap:a},i);return e.replace(new RegExp(n(t),"g"),s)},t)})}Object.defineProperty(t,"__esModule",{value:!0});var o=r(35),s=r(36),c=r(19),u=r(66),l=r(68),f=r(12);t.default=function(e,t,r){var n={};return{update:function(u){return void 0===u&&(u=!1),e.getStyleParams().then(function(e){var l=e[0],h=e[1],p=e[2],d=p.colors,g=f.pickBy(p.fonts,c.wixStylesFontUtils.isValidFontParam),v=p.numbers||{},b=s.wixStylesColorUtils.getFullColorStyles({colorStyles:d,siteColors:l})||{},m=c.wixStylesFontUtils.getFullFontStyles({fontStyles:g,siteTextPresets:h})||{},y=f.pickBy(p.fonts,c.wixStylesFontUtils.isStringHack),w={colors:b,fonts:m,numbers:v,strings:y};if(u&&r.shouldUseCssVars||Array.prototype.forEach.call(t.getAllStyleTags(),function(e){var s=e.originalTemplate||e.textContent,c=new o({semicolon:!1,compress:!1,preserve:!0});a(r.plugins,c),r.shouldApplyCSSFunctions&&i({tpaParams:w,cacheMap:n,options:r},c);var u=c("",s);t.overrideStyle(e,u)}),r.shouldUseCssVars){var x=Object.keys(n).reduce(function(e,t){return e[t]=n[t](w),e},{});t.updateCssVars(x)}}).catch(function(e){throw console.error("Failed updating styles:",e),e})}}}},function(e,t,r){!function(t){e.exports=t(null)}(function e(t){"use strict";function r(e,t,a,s){for(var l,f,h=0,p=0,v=0,b=0,m=0,y=0,w=0,x=0,k=0,M=0,S=0,A=0,F=0,P=0,N=0,E=0,_=0,$=0,U=0,D=a.length,T=D-1,re="",je="",Fe="",_e="",Ue="",ze="";N<D;){if(w=a.charCodeAt(N),p+b+v+h===0){if(N===T&&(E>0&&(je=je.replace(g,"")),je.trim().length>0)){switch(w){case Z:case Q:case q:case Y:case K:break;default:je+=a.charAt(N)}w=q}if(1===_)switch(w){case I:case ae:_=0;break;case Q:case Y:case K:case Z:break;default:N--,w=q}switch(w){case I:for(je=je.trim(),m=je.charCodeAt(0),S=1,U=++N;N<D;){switch(w=a.charCodeAt(N)){case I:S++;break;case B:S--}if(0===S)break;N++}switch(Fe=a.substring(U,N),m===he&&(m=(je=je.replace(d,"").trim()).charCodeAt(0)),m){case X:switch(E>0&&(je=je.replace(g,"")),y=je.charCodeAt(1)){case ke:case ve:case be:l=t;break;default:l=Ee}if(Fe=r(t,l,Fe,y),U=Fe.length,Ne>0&&0===U&&(U=je.length),$e>0&&(l=n(Ee,je,$),f=u(Ve,Fe,l,t,Se,Me,U,y),je=l.join(""),void 0!==f&&0===(U=(Fe=f.trim()).length)&&(y=0,Fe="")),U>0)switch(y){case be:je=je.replace(z,o);case ke:case ve:Fe=je+"{"+Fe+"}";break;case ge:je=je.replace(C,"$1 $2"+(qe>0?Be:"")),Fe=je+"{"+Fe+"}",Fe="@"+(Oe>0?H+Fe+"@"+Fe:Fe);break;default:Fe=je+Fe}else Fe="";break;default:Fe=r(t,n(t,je,$),Fe,s)}Ue+=Fe,A=0,_=0,P=0,E=0,$=0,F=0,je="",Fe="",w=a.charCodeAt(++N);break;case B:case q:if(je=(E>0?je.replace(g,""):je).trim(),(U=je.length)>1)switch(0===P&&((m=je.charCodeAt(0))===te||m>96&&m<123)&&(U=(je=je.replace(" ",":")).length),$e>0&&void 0!==(f=u(Te,je,t,e,Se,Me,_e.length,s))&&0===(U=(je=f.trim()).length)&&(je="\0\0"),m=je.charCodeAt(0),y=je.charCodeAt(1),m+y){case he:break;case we:case xe:ze+=je+a.charAt(N);break;default:if(je.charCodeAt(U-1)===ie)break;_e+=i(je,m,y,je.charCodeAt(2))}A=0,_=0,P=0,E=0,$=0,je="",w=a.charCodeAt(++N)}}switch(w){case Y:case K:if(p+b+v+h+Pe===0)switch(M){case J:case oe:case se:case X:case fe:case ue:case ne:case le:case ce:case te:case ie:case ae:case q:case I:case B:break;default:P>0&&(_=1)}p===ce&&(p=0),$e*Re>0&&u(De,je,t,e,Se,Me,_e.length,s),Me=1,Se++;break;case q:case B:if(p+b+v+h===0){Me++;break}default:switch(Me++,re=a.charAt(N),w){case Q:case Z:if(b+h===0)switch(x){case ae:case ie:case Q:case Z:re="";break;default:w!==Z&&(re=" ")}break;case he:re="\\0";break;case pe:re="\\f";break;case de:re="\\v";break;case ee:b+p+h===0&&Ce>0&&($=1,E=1,re="\f"+re);break;case 108:if(b+p+h+Ae===0&&P>0)switch(N-P){case 2:x===me&&a.charCodeAt(N-3)===ie&&(Ae=x);case 8:k===ye&&(Ae=k)}break;case ie:b+p+h===0&&(P=N);break;case ae:p+v+b+h===0&&(E=1,re+="\r");break;case se:case oe:0===p&&(b=b===w?0:0===b?w:b,N===T&&(T++,D++));break;case W:b+p+v===0&&h++;break;case G:b+p+v===0&&h--;break;case J:b+p+h===0&&(N===T&&(T++,D++),v--);break;case L:if(b+p+h===0){if(0===A)switch(2*x+3*k){case 533:break;default:S=0,A=1}v++}break;case X:p+v+b+h+P+F===0&&(F=1);break;case ne:case ce:if(b+h+v>0)break;switch(p){case 0:switch(2*w+3*a.charCodeAt(N+1)){case 235:p=ce;break;case 220:p=ne}break;case ne:w===ce&&x===ne&&(re="",p=0)}}if(0===p){if(Ce+b+h+F===0&&s!==ge&&w!==q)switch(w){case ae:case fe:case ue:case le:case J:case L:if(0===A){switch(x){case Q:case Z:case K:case Y:re+="\0";break;default:re="\0"+re+(w===ae?"":"\0")}E=1}else switch(w){case L:A=++S;break;case J:0==(A=--S)&&(E=1,re+="\0")}break;case Z:switch(x){case he:case I:case B:case q:case ae:case pe:case Q:case Z:case K:case Y:break;default:0===A&&(E=1,re+="\0")}}je+=re,w!==Z&&(M=w)}}k=x,x=w,N++}if(U=_e.length,Ne>0&&0===U&&0===Ue.length&&0===t[0].length==!1&&(s!==ve||1===t.length&&(Ce>0?Ie:Le)===t[0])&&(U=t.join(",").length+2),U>0){if(l=0===Ce&&s!==ge?c(t):t,$e>0&&void 0!==(f=u(He,_e,l,e,Se,Me,U,s))&&0===(_e=f).length)return ze+_e+Ue;if(_e=l.join(",")+"{"+_e+"}",Oe*Ae>0){switch(Ae){case ye:_e=_e.replace(j,":"+V+"$1")+_e;break;case me:_e=_e.replace(O,"::"+H+"input-$1")+_e.replace(O,"::"+V+"$1")+_e.replace(O,":"+R+"input-$1")+_e}Ae=0}}return ze+_e+Ue}function n(e,t,r){var n=t.trim().split(k),i=n,o=n.length,s=e.length;switch(s){case 0:case 1:for(var c=0,u=0===s?"":e[0]+" ";c<o;++c)i[c]=a(u,i[c],r,s).trim();break;default:for(var c=0,l=0,i=[];c<o;++c)for(var f=0;f<s;++f)i[l++]=a(e[f]+" ",n[c],r,s).trim()}return i}function a(e,t,r,n){var a=t,i=a.charCodeAt(0);switch(i<33&&(i=(a=a.trim()).charCodeAt(0)),i){case ee:switch(Ce+n){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(M,"$1"+e.trim())}break;case ie:switch(a.charCodeAt(1)){case 103:if(je>0&&Ce>0)return a.replace(S,"$1").replace(M,"$1"+Le);break;default:return e.trim()+a}default:if(r*Ce>0&&a.indexOf("\f")>0)return a.replace(M,(e.charCodeAt(0)===ie?"":"$1")+e.trim())}return e+a}function i(e,t,r,n){var a,i=0,o=e+";",c=2*t+3*r+4*n;if(944===c)o=s(o);else if(Oe>0)switch(c){case 969:o=H+o.replace(U,H+"$1")+o;break;case 951:116===o.charCodeAt(3)&&(o=H+o+o);break;case 963:110===o.charCodeAt(5)&&(o=H+o+o);break;case 978:o=H+o+V+o+o;break;case 1019:case 983:o=H+o+V+o+R+o+o;break;case 883:o.charCodeAt(8)===te&&(o=H+o+o);break;case 932:o=H+o+R+o+o;break;case 964:o=H+o+R+"flex-"+o+o;break;case 1023:a=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),o=H+"box-pack"+a+H+o+R+"flex-pack"+a+o;break;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(i=(o=e).length-10,a=(33===o.charCodeAt(i)?o.substring(0,i):o).substring(e.indexOf(":",7)+1).trim(),c=a.charCodeAt(0)+(0|a.charCodeAt(7))){case 203:if(a.charCodeAt(8)<111)break;case 115:o=o.replace(a,H+a)+";"+o;break;case 207:case 102:o=o.replace(a,H+(c>102?"inline-":"")+"box")+";"+o.replace(a,H+a)+";"+o.replace(a,R+a+"box")+";"+o}o+=";";break;case 938:if(o.charCodeAt(5)===te)switch(o.charCodeAt(6)){case 105:a=o.replace("-items",""),o=H+o+H+"box-"+a+R+"flex-"+a+o;break;case 115:o=H+o+R+"flex-item-"+o.replace(T,"")+o;break;default:o=H+o+R+"flex-line-pack"+o.replace("align-content","")+o}break;case 1005:b.test(o)&&(o=o.replace(v,":"+H)+o.replace(v,":"+V)+o);break;case 953:(i=o.indexOf("-content",9))>0&&109===o.charCodeAt(i-3)&&45!==o.charCodeAt(i-4)&&(a=o.substring(i-3),o="width:"+H+a+"width:"+V+a+"width:"+a);break;case 1015:if(e.charCodeAt(9)!==te)break;case 962:o=H+o+(102===o.charCodeAt(5)?R+o:"")+o,r+n===211&&105===o.charCodeAt(13)&&o.indexOf("transform",10)>0&&(o=o.substring(0,o.indexOf(";",27)+1).replace(m,"$1"+H+"$2")+o);break;case 1e3:switch(a=o.substring(13).trim(),i=a.indexOf("-")+1,a.charCodeAt(0)+a.charCodeAt(i)){case 226:a=o.replace($,"tb");break;case 232:a=o.replace($,"tb-rl");break;case 220:a=o.replace($,"lr");break;default:return o}o=H+o+R+a+o}return o}function o(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(D,"or($1)").substring(2):"("+t+")"}function s(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),a=e.substring(r,t-1).trim(),i="";if(e.charCodeAt(9)!==te)for(var o=a.split(y),s=0,r=0,t=o.length;s<t;r=0,++s){for(var c=o[s],u=c.split(w);c=u[r];){var l=c.charCodeAt(0);if(1===qe&&(l>X&&l<90||l>96&&l<123||l===re||l===te&&c.charCodeAt(1)!==te))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Be}}u[r++]=c}i+=(0===s?"":",")+u.join(" ")}else i+=110===e.charCodeAt(10)?a+(1===qe?Be:""):a;return i=n+i+";",Oe>0?H+i+i:i}function c(e){for(var t,r,n=0,a=e.length,i=Array(a);n<a;++n){for(var o=e[n].split(x),s="",c=0,u=0,l=0,f=0,h=o.length;c<h;++c)if(!(0===(u=(r=o[c]).length)&&h>1)){if(l=s.charCodeAt(s.length-1),f=r.charCodeAt(0),t="",0!==c)switch(l){case ne:case fe:case ue:case le:case Z:case L:break;default:t=" "}switch(f){case ee:r=t+Ie;case fe:case ue:case le:case Z:case J:case L:break;case W:r=t+r+Ie;break;case ie:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(je>0){r=t+r.substring(8,u-1);break}default:(c<1||o[c-1].length<1)&&(r=t+Ie+r)}break;case ae:t="";default:r=u>1&&r.indexOf(":")>0?t+r.replace(_,"$1"+Ie+"$2"):t+r+Ie}s+=r}i[n]=s.replace(g,"").trim()}return i}function u(e,t,r,n,a,i,o,s){for(var c,u=0,l=t;u<$e;++u)switch(c=_e[u].call(p,e,l,r,n,a,i,o,s)){case void 0:case!1:case!0:case null:break;default:l=c}switch(l){case void 0:case!1:case!0:case null:case t:break;default:return l}}function l(e){return e.replace(g,"").replace(F,"").replace(P,"$1").replace(N,"$1").replace(E," ")}function f(e){switch(e){case void 0:case null:$e=_e.length=0;break;default:switch(e.constructor){case Array:for(var t=0,r=e.length;t<r;++t)f(e[t]);break;case Function:_e[$e++]=e;break;case Boolean:Re=0|!!e}}return f}function h(e){for(var t in e){var r=e[t];switch(t){case"keyframe":qe=0|r;break;case"global":je=0|r;break;case"cascade":Ce=0|r;break;case"compress":Fe=0|r;break;case"prefix":Oe=0|r;break;case"semicolon":Pe=0|r;break;case"preserve":Ne=0|r}}return h}function p(t,n){if(void 0!==this&&this.constructor===p)return e(t);var a=t,i=a.charCodeAt(0);i<33&&(i=(a=a.trim()).charCodeAt(0)),qe>0&&(Be=a.replace(A,i===W?"":"-")),i=1,1===Ce?Le=a:Ie=a;var o,s=[Le];$e>0&&void 0!==(o=u(ze,n,s,s,Se,Me,0,0))&&"string"==typeof o&&(n=o);var c=r(Ee,s,n,0);return $e>0&&void 0!==(o=u(Ue,c,s,s,Se,Me,c.length,0))&&"string"!=typeof(c=o)&&(i=0),Be="",Le="",Ie="",Ae=0,Se=1,Me=1,Fe*i==0?c:l(c)}var d=/^\0+/g,g=/[\0\r\f]/g,v=/: */g,b=/zoo|gra/,m=/([,: ])(transform)/g,y=/,+\s*(?![^(]*[)])/g,w=/ +\s*(?![^(]*[)])/g,x=/ *[\0] */g,k=/,\r+?/g,M=/([\t\r\n ])*\f?&/g,S=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,A=/\W+/g,C=/@(k\w+)\s*(\S*)\s*/,O=/::(place)/g,j=/:(read-only)/g,F=/\s+(?=[{\];=:>])/g,P=/([[}=:>])\s+/g,N=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,_=/([^\(])(:+) */g,$=/[svh]\w+-[tblr]{2}/,U=/([\w-]+t\()/g,z=/\(\s*([^]*?)\s*\)/g,D=/([^]*?);/g,T=/-self|flex-/g,H="-webkit-",V="-moz-",R="-ms-",q=59,B=125,I=123,L=40,J=41,W=91,G=93,K=10,Y=13,Q=9,X=64,Z=32,ee=38,te=45,re=95,ne=42,ae=44,ie=58,oe=39,se=34,ce=47,ue=62,le=43,fe=126,he=0,pe=12,de=11,ge=107,ve=109,be=115,me=112,ye=111,we=169,xe=163,ke=100,Me=1,Se=1,Ae=0,Ce=1,Oe=1,je=1,Fe=0,Pe=0,Ne=0,Ee=[],_e=[],$e=0,Ue=-2,ze=-1,De=0,Te=1,He=2,Ve=3,Re=0,qe=1,Be="",Ie="",Le="";return p.use=f,p.set=h,void 0!==t&&h(t),p})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.wixStylesColorUtils={getFullColorStyles:function(e){var t=e.colorStyles,r=e.siteColors,a={},i={};for(var o in t)i[o.replace(/\./g,"-")]=t[o].value;return a.white="#FFFFFF",a.black="#000000",n.forEach(r,function(e){var t=e.reference,r=e.value;a[t]=r}),a=Object.assign(a,i),a.background=(i.background||{}).value||"#FFFFFF"===a["color-1"]&&"#F4EFE1"===a["color-2"]?a["color-2"]:a["color-1"],a}}},function(e,t,r){function n(e){return new Error("[parse-css-font] "+e)}function a(e){var t=parseFloat(e);return t.toString()===e?t:e}var i=r(20),o=r(57),s=r(58),c=r(59),u=r(60),l=r(61),f=r(62),h=r(63),p=r(64),d=i.struct({system:i.String}),g=i.struct({style:i.String,variant:i.String,weight:i.String,stretch:i.String,size:i.String,lineHeight:i.union([i.String,i.Number]),family:i.list(i.String)});i.union([g,d]);e.exports=i.func(i.String,i.Object).of(function(e){if(""===e)throw n("Cannot parse an empty string.");if(-1!==c.indexOf(e))return d({system:e});for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal"},r=!1,v=h.splitBySpaces(e),b=v.shift();!i.Nil.is(b);b=v.shift())if("normal"!==b&&-1===s.indexOf(b))if(-1===u.indexOf(b))if(-1===l.indexOf(b))if(-1===f.indexOf(b)){if(p.isSize(b)){var m=h.split(b,["/"]);if(t.size=m[0],i.Nil.is(m[1])||(t.lineHeight=a(m[1])),!v.length)throw n("Missing required font-family.");return t.family=h.splitByCommas(v.join(" ")).map(o),g(t)}if("normal"!==t.variant)throw n("Unknown or unsupported font token: "+t.variant);r||(t.variant=b)}else{if(r)continue;t.stretch=b}else{if(r)continue;t.style=b}else{if(r)continue;t.weight=b}else["style","variant","weight","stretch"].forEach(function(e){t[e]=b}),r=!0;throw n("Missing required font-size.")})},function(e,t){e.exports=function(e){throw new TypeError("[tcomb] "+e)}},function(e,t,r){var n=r(3),a=r(6);e.exports=n("Array",a)},function(e,t,r){var n=r(3);e.exports=n("Date",function(e){return e instanceof Date})},function(e,t,r){var n=r(3);e.exports=n("Error",function(e){return e instanceof Error})},function(e,t,r){var n=r(3),a=r(25);e.exports=n("Number",a)},function(e,t,r){var n=r(3),a=r(10);e.exports=n("Object",a)},function(e,t,r){var n=r(3);e.exports=n("RegExp",function(e){return e instanceof RegExp})},function(e,t,r){var n=(r(0),r(5),r(4),r(7),r(16)),a=r(2),i=1;e.exports=function(e){function t(e,t){return r(e,t)}var r;return t.define=function(a){return r=a,n(t,r,!0),e&&(r.displayName=t.displayName=e,t.meta.name=e),t.meta.identity=!1,t.prototype=r.prototype,t},t.displayName=e||a(t)+"$"+i++,t.meta={identity:!1},t.prototype=null,t}},function(e,t,r){function n(e){return Object.keys(e).map(function(e){return i.stringify(e)}).join(" | ")}function a(e,t){function r(e,t){return e}var a=t||n(e);return r.meta={kind:"enums",map:e,name:t,identity:!0},r.displayName=a,r.is=function(t){return e.hasOwnProperty(t)},r}var i=r(0),o=(r(5),r(13),r(14));r(10);a.of=function(e,t){e=o(e)?e.split(" "):e;var r={};return e.forEach(function(e){r[e]=e}),a(r,t)},a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return"?"+f(e)}function a(e,t){function r(t,r){return u.is(t)?null:c(e,t,r)}if(i(e)||e===s||e===u)return e;var a=t||n(e);return r.meta={kind:"maybe",type:e,name:t,identity:o(e)},r.displayName=a,r.is=function(t){return u.is(t)||l(t,e)},r}var i=(r(0),r(5),r(1),r(48)),o=r(11),s=r(17),c=r(8),u=r(24),l=(r(13),r(9)),f=r(2);a.getDefaultName=n,e.exports=a},function(e,t,r){var n=r(4);e.exports=function(e){return n(e)&&"maybe"===e.meta.kind}},function(e,t,r){function n(e,t){return"{"+u(e)+" | "+l(t)+"}"}function a(e,t,r){function a(t,r){var n=s(e,t,r);return n}var u=r||n(e,t),l=o(e);return a.meta={kind:"subtype",type:e,predicate:t,name:r,identity:l},a.displayName=u,a.is=function(r){return c(r,e)&&t(r)},a.update=function(e,t){return a(i.update(e,t))},a}var i=r(0),o=(r(5),r(1),r(13),r(11)),s=r(8),c=r(9),u=r(2),l=r(15);a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return"{"+Object.keys(e).map(function(t){return t+": "+l(e[t])}).join(", ")+"}"}function a(e,t){var r={},n={};e.forEach(function(e){s(e)?u(r,e):(u(r,e.meta.props),u(n,e.prototype))});var a=i(r,t);return u(a.prototype,n),a}function i(e,t){function r(t,n){if(r.is(t))return t;if(!(this instanceof r))return new r(t,n);for(var a in e)if(e.hasOwnProperty(a)){var i=e[a],o=t[a];this[a]=c(i,o,null)}}var i=t||n(e);return r.meta={kind:"struct",props:e,name:t,identity:!1},r.displayName=i,r.is=function(e){return e instanceof r},r.update=function(e,t){return new r(o.update(e,t))},r.extend=function(e,t){return a([r].concat(e),t)},r}var o=r(0),s=(r(5),r(26),r(18),r(6),r(10)),c=r(8),u=r(16),l=(r(28),r(2));r(27);i.getDefaultName=n,i.extend=a,e.exports=i},function(e,t,r){function n(e){return e.map(o).join(" | ")}function a(e,t){function r(e,t){if(o)return e;var n=r.dispatch(e);return!n&&r.is(e)?e:c(n,e,t)}var a=t||n(e),o=e.every(s);return r.meta={kind:"union",types:e,name:t,identity:o},r.displayName=a,r.is=function(t){return e.some(function(e){return u(t,e)})},r.dispatch=function(t){for(var r=0,n=e.length;r<n;r++){var a=e[r];if(l(a)){var i=a.dispatch(t);if(!f(i))return i}else if(u(t,a))return a}},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(2)),s=r(11),c=(r(6),r(8)),u=r(9),l=(r(13),r(4),r(52)),f=r(7);a.getDefaultName=n,e.exports=a},function(e,t,r){var n=r(4);e.exports=function(e){return n(e)&&"union"===e.meta.kind}},function(e,t,r){function n(e,t){return"("+e.map(h).join(", ")+") => "+h(t)}function a(e){return o.is(e)&&c(e.instrumentation)}function i(e,t,r){function o(e,t){return a(e)?e:o.of(e,t)}e=s(e)?e:[e];var c=r||n(e,t);return o.meta={kind:"func",domain:e,codomain:t,name:r,identity:!0},o.displayName=c,o.is=function(r){return a(r)&&r.instrumentation.domain.length===e.length&&r.instrumentation.domain.every(function(t,r){return t===e[r]})&&r.instrumentation.codomain===t},o.of=function(r,n){function a(){var a=Array.prototype.slice.call(arguments),o=n?a.length:e.length;if(a=l(e.slice(0,o))(a),o===e.length)return u(t,r.apply(this,a));var s=Function.prototype.bind.apply(r,[this].concat(a));return i(e.slice(o),t).of(s,n)}return o.is(r)?r:(a.instrumentation={domain:e,codomain:t,f:r},a.displayName=f(r),a)},o}var o=(r(0),r(5),r(18)),s=r(6),c=(r(29),r(10)),u=r(8),l=(r(7),r(23),r(30)),f=r(15),h=r(2);i.getDefaultName=n,e.exports=i},function(e,t,r){function n(e){return e.map(s).join(" & ")}function a(e,t){function r(e,t){return e}var a=t||n(e);return r.meta={kind:"intersection",types:e,name:t,identity:!0},r.displayName=a,r.is=function(t){return e.every(function(e){return o(t,e)})},r.update=function(e,t){return r(i.update(e,t))},r}var i=r(0),o=(r(5),r(1),r(6),r(11),r(9)),s=r(2);a.getDefaultName=n,e.exports=a},function(e,t,r){function n(e){return d(e)?e.concat():e instanceof Date||e instanceof RegExp?e:p(e)?g({},e):e}function a(e,t){var r=n(e),i=!1;for(var o in t)if(t.hasOwnProperty(o))if(a.commands.hasOwnProperty(o))r=a.commands[o](t[o],r),i=!0;else{var s=a(r[o],t[o]);i=i||s!==r[o],r[o]=s}return i?r:e}function i(e,t){return e(t)}function o(e,t){return t.concat(e)}function s(e,t){for(var r=0,n=e.length;r<n;r++)delete t[e[r]];return t}function c(e){return e}function u(e,t){return e.reduce(function(e,t){return e.splice.apply(e,t),e},t)}function l(e,t){var r=t[e.to];return t[e.to]=t[e.from],t[e.from]=r,t}function f(e,t){return e.concat(t)}function h(e,t){return g(g({},t),e,!0)}var p=(r(0),r(10)),d=(r(1),r(6)),g=(r(25),r(16));a.commands={$apply:i,$push:o,$remove:s,$set:c,$splice:u,$swap:l,$unshift:f,$merge:h},e.exports=a},function(e,t,r){var n=r(0),a=r(1),i=r(4),o=r(17);e.exports=function(e){for(var t,r,s,c=1,u=arguments.length;c<u;)if(t=arguments[c],r=arguments[c+1],s=arguments[c+2],a(s)&&!i(s)?c+=3:(s=r,r=o.is,c+=2),t.is(e)&&r(e))return s(e);n.fail("Match error")}},function(e,t){var r=/[\'\"]/;e.exports=function(e){return e?(r.test(e.charAt(0))&&(e=e.substr(1)),r.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}},function(e,t){e.exports=["inherit","initial","unset"]},function(e,t){e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]},function(e,t){e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]},function(e,t){e.exports=["normal","italic","oblique"]},function(e,t){e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]},function(e,t,r){var n=r(20),a=n.struct({last:n.maybe(n.Boolean)}),i={split:function(e,t,r){return o(e,t,r||{})},splitBySpaces:n.func(n.String,n.Array).of(function(e){var t=[" ","\n","\t"];return i.split(e,t)}),splitByCommas:n.func(n.String,n.Array).of(function(e){return i.split(e,[","],{last:!0})})},o=n.func([n.String,n.Array,a],n.Array).of(function(e,t,r){for(var n=[],a="",i=!1,o=0,s=!1,c=!1,u=0;u<e.length;u++){var l=e[u];s?c?c=!1:"\\"===l?c=!0:l===s&&(s=!1):'"'===l||"'"===l?s=l:"("===l?o+=1:")"===l?o>0&&(o-=1):0===o&&-1!==t.indexOf(l)&&(i=!0),i?(""!==a&&n.push(a.trim()),a="",i=!1):a+=l}return(r.last||""!==a)&&n.push(a.trim()),n});e.exports=i},function(e,t,r){var n=r(65);e.exports={isSize:function(e){return/^[\d\.]/.test(e)||-1!==e.indexOf("/")||-1!==n.indexOf(e)}}},function(e,t){e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]},function(e,t,r){"use strict";function n(e,t){var r=e.part,n=e.customSyntaxHelper,i=e.tpaParams,o=e.cacheMap,s=t.plugins,u=t.shouldUseCssVars;if(s.isSupportedFunction(r)){var l=a(r,s,n);if(u){var f="--"+c.hash(r);return o[f]=l,"var("+f+")"}return l(i)}return r}function a(e,t,r){var n;return(n=t.getFunctionSignature(e))?(o=t.cssFunctions)[n.funcName].apply(o,n.args.split(u).map(function(e){return a(e.trim(),t,r)})):i(e,t,r);var o}function i(e,t,r){if(s.isCssVar(e)){var n=r.getValue(e),i=void 0;return i=t.isSupportedFunction(n)?a(n,t,r):function(){return n},o(e,i)}return function(){return e}}function o(e,t){return function(r){var n=e.substring(2,e.length);return r.strings[n]&&r.strings[n].value?r.strings[n].value:r.colors[n]?r.colors[n]:r.fonts[n]?r.fonts[n]:s.isNumber(r.numbers[n])?r.numbers[n]:t(r)}}Object.defineProperty(t,"__esModule",{value:!0});var s=r(12),c=r(67),u=/,(?![^(]*(?:\)|}))/g;t.processor=n},function(e,t,r){"use strict";function n(e){return a(e,e.length).toString(36)}function a(e,t){for(var r=1540483477,n=t^e.length,a=e.length,c=0;a>=4;){var u=i(e,c);u=s(u,r),u^=u>>>24,u=s(u,r),n=s(n,r),n^=u,c+=4,a-=4}switch(a){case 3:n^=o(e,c),n^=e.charCodeAt(c+2)<<16,n=s(n,r);break;case 2:n^=o(e,c),n=s(n,r);break;case 1:n^=e.charCodeAt(c),n=s(n,r)}return n^=n>>>13,n=s(n,r),(n^=n>>>15)>>>0}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function s(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}Object.defineProperty(t,"__esModule",{value:!0}),t.hash=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),a=/"\w+\([^"]*\)"/g,i=function(){function e(){this.vars={},this.customSyntaxStrs=[]}return e.prototype.extractVar=function(e,t){n.isCssVar(e)&&(this.vars[e]=t)},e.prototype.extractCustomSyntax=function(e,t){var r;(r=t.match(a))&&(n=this.customSyntaxStrs).push.apply(n,r);var n},e.prototype.getValue=function(e){return this.vars[e]},e}();t.CustomSyntaxHelper=i},function(e,t,r){"use strict";function n(){return/(MSIE|Trident)/i.test(navigator.userAgent)}Object.defineProperty(t,"__esModule",{value:!0}),t.default={getAllStyleTags:function(){return document.querySelectorAll("style:not([wix-style])")},overrideStyle:function(e,t){e.originalTemplate=e.originalTemplate||e.textContent,n()?e.innerHTML=t:e.textContent=t},isCssVarsSupported:function(){return!!(window.CSS&&window.CSS.supports&&window.CSS.supports("--fake-var",0))},updateCssVars:function(e){Object.keys(e).forEach(function(t){document.documentElement.style.setProperty(t,e[t])})}}},function(e,t,r){"use strict";function n(e){return new Promise(function(t,r){return e.Styles.getSiteColors(function(e){return e?t(e):r({})})})}function a(e){return new Promise(function(t,r){return e.Styles.getSiteTextPresets(function(e){return e?t(e):r({})})})}function i(e){return new Promise(function(t,r){return e.Styles.getStyleParams(function(e){return e?t(e):r({})})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{getStyleParams:function(){return this.shouldRunAsStandalone()?Promise.resolve([{},{},{}]):Promise.all([n(e),a(e),i(e)])},listenToStyleParamsChange:function(t){e.addEventListener(e.Events.STYLE_PARAMS_CHANGE,t)},listenToSettingsUpdated:function(t){e.addEventListener(e.Events.SETTINGS_UPDATED,t)},isEditorMode:function(){return"editor"===e.Utils.getViewMode()},isPreviewMode:function(){return"preview"===e.Utils.getViewMode()},shouldRunAsStandalone:function(){return this.isStandaloneMode()||this.withoutStyleCapabilites()},withoutStyleCapabilites:function(){return!e.Styles},isStandaloneMode:function(){return"standalone"===e.Utils.getViewMode()}}}},function(e,t,r){"use strict";function n(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return function(r){return e.apply(void 0,t.map(function(e){return e(r)}).concat([r]))}}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){this.resetPlugins()}return e.prototype.addCssFunction=function(e,t){this.cssFunctions[e]=n(t),this.updateRegex()},e.prototype.addDeclarationReplacer=function(e){this.declarationReplacers.push(e)},e.prototype.resetPlugins=function(){this.cssFunctions={},this.declarationReplacers=[],this.regex=void 0},e.prototype.isSupportedFunction=function(e){return this.regex.test(e)},e.prototype.getFunctionSignature=function(e){var t=this.regex.exec(e);return t?{funcName:t[1],args:t[2]}:null},e.prototype.updateRegex=function(){this.regex=new RegExp("("+Object.keys(this.cssFunctions).join("|")+")\\((.*)\\)")},e}();t.Plugins=a},function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&(r[n[a]]=e[n[a]]);return r};Object.defineProperty(t,"__esModule",{value:!0});var a=r(73),i=r(19),o=r(12),s=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.defaultPlugins={join:function(e,t,r,n){e=new a(e),r=new a(r);var i=255*(e.red()/255+r.red()/255),o=255*(e.green()/255+r.green()/255),s=255*(e.blue()/255+r.blue()/255),c=(e.alpha()+r.alpha())/2;return new a({r:i,g:o,b:s}).alpha(c).rgb().string()},color:function(e,t){if(t.colors[e])return t.colors[e];try{return s.test(e)?e:new a(e).rgb().string()}catch(t){throw"Unparsable color "+e}},font:function(e,t){var r;if("object"==typeof e)r=e;else if(o.isJsonLike(e)){var a=o.parseJson(e),s=a.theme,c=n(a,["theme"]);r=Object.assign({style:"",variant:"",weight:"",stretch:"",size:"",lineHeight:"",family:[]},t.fonts[s],c)}else{if(!t.fonts[e])return e;r=t.fonts[e]}var u=i.wixStylesFontUtils.toFontCssValue(r);return";"===u[u.length-1]&&(u=u.split(";")[0]),u},opacity:function(e,t){return new a(e).fade(1-t).rgb().string()},withoutOpacity:function(e){return new a(e).alpha(1).rgb().string()},string:function(e){return e},darken:function(e,t){return new a(e).darken(t).rgb().string()},number:function(e){return+e},unit:function(e,t){return""+e+t}}},function(e,t,r){"use strict";function n(e,t){if(!(this instanceof n))return new n(e,t);if(t&&t in p&&(t=null),t&&!(t in f))throw new Error("Unknown model: "+t);var r,a;if(e)if(e instanceof n)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var i=l.get(e);if(null===i)throw new Error("Unable to parse color from string: "+e);this.model=i.model,a=f[this.model].channels,this.color=i.value.slice(0,a),this.valpha="number"==typeof i.value[a]?i.value[a]:1}else if(e.length){this.model=t||"rgb",a=f[this.model].channels;var o=h.call(e,0,a);this.color=u(o,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var s=Object.keys(e);"alpha"in e&&(s.splice(s.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var c=s.sort().join("");if(!(c in d))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=d[c];var v=f[this.model].labels,b=[];for(r=0;r<v.length;r++)b.push(e[v[r]]);this.color=u(b)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(g[this.model])for(a=f[this.model].channels,r=0;r<a;r++){var m=g[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function a(e,t){return Number(e.toFixed(t))}function i(e){return function(t){return a(t,e)}}function o(e,t,r){return e=Array.isArray(e)?e:[e],e.forEach(function(e){(g[e]||(g[e]=[]))[t]=r}),e=e[0],function(n){var a;return arguments.length?(r&&(n=r(n)),a=this[e](),a.color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function s(e){return function(t){return Math.max(0,Math.min(e,t))}}function c(e){return Array.isArray(e)?e:[e]}function u(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}var l=r(74),f=r(77),h=[].slice,p=["keyword","gray","hex"],d={};Object.keys(f).forEach(function(e){d[h.call(f[e].labels).sort().join("")]=e});var g={};n.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in l.to?this:this.rgb();t=t.round("number"==typeof e?e:1);var r=1===t.valpha?t.color:t.color.concat(this.valpha);return l.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return l.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=f[this.model].channels,r=f[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new n(this.color.map(i(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new n(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:o("rgb",0,s(255)),green:o("rgb",1,s(255)),blue:o("rgb",2,s(255)),hue:o(["hsl","hsv","hsl","hwb","hcg"],0,function(e){return(e%360+360)%360}),saturationl:o("hsl",1,s(100)),lightness:o("hsl",2,s(100)),saturationv:o("hsv",1,s(100)),value:o("hsv",2,s(100)),chroma:o("hcg",1,s(100)),gray:o("hcg",2,s(100)),white:o("hwb",1,s(100)),wblack:o("hwb",2,s(100)),cyan:o("cmyk",0,s(100)),magenta:o("cmyk",1,s(100)),yellow:o("cmyk",2,s(100)),black:o("cmyk",3,s(100)),x:o("xyz",0,s(100)),y:o("xyz",1,s(100)),z:o("xyz",2,s(100)),l:o("lab",0,s(100)),a:o("lab",1),b:o("lab",2),keyword:function(e){return arguments.length?new n(e):f[this.model].keyword(this.color)},hex:function(e){return arguments.length?new n(e):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return n.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix:function(e,t){var r=this.rgb(),a=e.rgb(),i=void 0===t?.5:t,o=2*i-1,s=r.alpha()-a.alpha(),c=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,u=1-c;return n.rgb(c*r.red()+u*a.red(),c*r.green()+u*a.green(),c*r.blue()+u*a.blue(),r.alpha()*i+a.alpha()*(1-i))}},Object.keys(f).forEach(function(e){if(-1===p.indexOf(e)){var t=f[e].channels;n.prototype[e]=function(){if(this.model===e)return new n(this);if(arguments.length)return new n(arguments,e);var r="number"==typeof arguments[t]?t:this.valpha;return new n(c(f[this.model][e].raw(this.color)).concat(r),e)},n[e]=function(r){return"number"==typeof r&&(r=u(h.call(arguments),t)),new n(r,e)}}}),e.exports=n},function(e,t,r){function n(e,t,r){return Math.min(Math.max(t,e),r)}function a(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var i=r(31),o=r(75),s={};for(var c in i)i.hasOwnProperty(c)&&(s[i[c]]=c);var u=e.exports={to:{}};u.get=function(e){var t,r,n=e.substring(0,3).toLowerCase();switch(n){case"hsl":t=u.get.hsl(e),r="hsl";break;case"hwb":t=u.get.hwb(e),r="hwb";break;default:t=u.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,r,a,o=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,c=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,f=[0,0,0,1];if(t=e.match(s)){for(a=t[2],t=t[1],r=0;r<3;r++){var h=2*r;f[r]=parseInt(t.slice(h,h+2),16)}a&&(f[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(o)){for(t=t[1],a=t[3],r=0;r<3;r++)f[r]=parseInt(t[r]+t[r],16);a&&(f[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(c)){for(r=0;r<3;r++)f[r]=parseInt(t[r+1],0);t[4]&&(f[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(l))?"transparent"===t[1]?[0,0,0,0]:(f=i[t[1]])?(f[3]=1,f):null:null;for(r=0;r<3;r++)f[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(f[3]=parseFloat(t[4]))}for(r=0;r<3;r++)f[r]=n(f[r],0,255);return f[3]=n(f[3],0,1),f},u.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=e.match(t);if(r){var a=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(a)?1:a,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=e.match(t);if(r){var a=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(a)?1:a,0,1)]}return null},u.to.hex=function(){var e=o(arguments);return"#"+a(e[0])+a(e[1])+a(e[2])+(e[3]<1?a(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},u.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return s[e.slice(0,3)]}},function(e,t,r){"use strict";var n=r(76),a=Array.prototype.concat,i=Array.prototype.slice,o=e.exports=function(e){for(var t=[],r=0,o=e.length;r<o;r++){var s=e[r];n(s)?t=a.call(t,i.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,r){function n(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function a(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}var i=r(32),o=r(78),s={};Object.keys(i).forEach(function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:i[e].channels}),Object.defineProperty(s[e],"labels",{value:i[e].labels});var t=o(e);Object.keys(t).forEach(function(r){var i=t[r];s[e][r]=a(i),s[e][r].raw=n(i)})}),e.exports=s},function(e,t,r){function n(){for(var e={},t=c.length,r=0;r<t;r++)e[c[r]]={distance:-1,parent:null};return e}function a(e){var t=n(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),i=Object.keys(s[a]),o=i.length,c=0;c<o;c++){var u=i[c],l=t[u];-1===l.distance&&(l.distance=t[a].distance+1,l.parent=a,r.unshift(u))}return t}function i(e,t){return function(r){return t(e(r))}}function o(e,t){for(var r=[t[e].parent,e],n=s[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=i(s[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var s=r(32),c=Object.keys(s);e.exports=function(e){for(var t=a(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var c=n[s];null!==t[c].parent&&(r[c]=o(c,t))}return r}}]); | ||
//# sourceMappingURL=style-processor.bundle.min.js.map |
@@ -5,3 +5,3 @@ { | ||
"description": "An alternative Wix Styles TPA processor", | ||
"version": "3.0.74", | ||
"version": "3.0.75", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "Eran Shabi", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2568959
17877