"use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[]).push([[1406],{29012:(t,e,r)=>{function n(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");const r=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function s(t){return Math.min(1,Math.max(0,t))}function a(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function i(t){return Number(t)<=1?100*Number(t)+"%":t}function o(t){return 1===t.length?"0"+t:String(t)}function h(t,e,r){t=n(t,255),e=n(e,255),r=n(r,255);const s=Math.max(t,e,r),a=Math.min(t,e,r);let i=0,o=0;const h=(s+a)/2;if(s===a)o=0,i=0;else{const n=s-a;switch(o=h>.5?n/(2-s-a):n/(s+a),s){case t:i=(e-r)/n+(e1&&(r-=1),r<1/6?t+6*r*(e-t):r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function l(t,e,r){t=n(t,255),e=n(e,255),r=n(r,255);const s=Math.max(t,e,r),a=Math.min(t,e,r);let i=0;const o=s,h=s-a,c=0===s?0:h/s;if(s===a)i=0;else{switch(s){case t:i=(e-r)/h+(eS});const m={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function p(t){let e={r:0,g:0,b:0},r=1,s=null,o=null,h=null,l=!1,f=!1;var d,u,p;return"string"==typeof t&&(t=function(t){if(t=t.trim().toLowerCase(),0===t.length)return!1;let e=!1;if(m[t])t=m[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};let r=k.rgb.exec(t);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=k.rgba.exec(t),r)return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=k.hsl.exec(t),r)return{h:r[1],s:r[2],l:r[3]};if(r=k.hsla.exec(t),r)return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=k.hsv.exec(t),r)return{h:r[1],s:r[2],v:r[3]};if(r=k.hsva.exec(t),r)return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=k.cmyk.exec(t),r)return{c:r[1],m:r[2],y:r[3],k:r[4]};if(r=k.hex8.exec(t),r)return{r:b(r[1]),g:b(r[2]),b:b(r[3]),a:g(r[4]),format:e?"name":"hex8"};if(r=k.hex6.exec(t),r)return{r:b(r[1]),g:b(r[2]),b:b(r[3]),format:e?"name":"hex"};if(r=k.hex4.exec(t),r)return{r:b(r[1]+r[1]),g:b(r[2]+r[2]),b:b(r[3]+r[3]),a:g(r[4]+r[4]),format:e?"name":"hex8"};if(r=k.hex3.exec(t),r)return{r:b(r[1]+r[1]),g:b(r[2]+r[2]),b:b(r[3]+r[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(M(t.r)&&M(t.g)&&M(t.b)?(d=t.r,u=t.g,p=t.b,e={r:255*n(d,255),g:255*n(u,255),b:255*n(p,255)},l=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):M(t.h)&&M(t.s)&&M(t.v)?(s=i(t.s),o=i(t.v),e=function(t,e,r){t=6*n(t,360),e=n(e,100),r=n(r,100);const s=Math.floor(t),a=t-s,i=r*(1-e),o=r*(1-a*e),h=r*(1-(1-a)*e),c=s%6;return{r:255*[r,o,i,i,h,r][c],g:255*[h,r,r,o,i,i][c],b:255*[i,i,h,r,r,o][c]}}(t.h,s,o),l=!0,f="hsv"):M(t.h)&&M(t.s)&&M(t.l)?(s=i(t.s),h=i(t.l),e=function(t,e,r){let s,a,i;if(t=n(t,360),e=n(e,100),r=n(r,100),0===e)a=r,i=r,s=r;else{const n=r<.5?r*(1+e):r+e-r*e,o=2*r-n;s=c(o,n,t+1/3),a=c(o,n,t),i=c(o,n,t-1/3)}return{r:255*s,g:255*a,b:255*i}}(t.h,s,h),l=!0,f="hsl"):M(t.c)&&M(t.m)&&M(t.y)&&M(t.k)&&(e=function(t,e,r,n){const s=n/100;return{r:255*(1-t/100)*(1-s),g:255*(1-e/100)*(1-s),b:255*(1-r/100)*(1-s)}}(t.c,t.m,t.y,t.k),l=!0,f="cmyk"),Object.prototype.hasOwnProperty.call(t,"a")&&(r=t.a)),r=a(r),{ok:l,format:t.format||f,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}const x="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",w="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",y="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",k={CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+w),rgba:new RegExp("rgba"+y),hsl:new RegExp("hsl"+w),hsla:new RegExp("hsla"+y),hsv:new RegExp("hsv"+w),hsva:new RegExp("hsva"+y),cmyk:new RegExp("cmyk"+y),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function M(t){return"number"==typeof t?!Number.isNaN(t):k.CSS_UNIT.test(t)}class S{constructor(t="",e={}){if(t instanceof S)return t;"number"==typeof t&&(t=function(t){return{r:t>>16,g:(65280&t)>>8,b:255&t}}(t)),this.originalInput=t;const r=p(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=e.format??r.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3}getLuminance(){const t=this.toRgb();let e,r,n;const s=t.r/255,a=t.g/255,i=t.b/255;return e=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),n=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*e+.7152*r+.0722*n}getAlpha(){return this.a}setAlpha(t){return this.a=a(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return 0===t}toHsv(){const t=l(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=l(this.r,this.g,this.b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1===this.a?`hsv(${e}, ${r}%, ${n}%)`:`hsva(${e}, ${r}%, ${n}%, ${this.roundA})`}toHsl(){const t=h(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}}toHslString(){const t=h(this.r,this.g,this.b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1===this.a?`hsl(${e}, ${r}%, ${n}%)`:`hsla(${e}, ${r}%, ${n}%, ${this.roundA})`}toHex(t=!1){return f(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return function(t,e,r,n,s){const a=[o(Math.round(t).toString(16)),o(Math.round(e).toString(16)),o(Math.round(r).toString(16)),o(u(n))];return s&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return 1===this.a?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),e=Math.round(this.g),r=Math.round(this.b);return 1===this.a?`rgb(${t}, ${e}, ${r})`:`rgba(${t}, ${e}, ${r}, ${this.roundA})`}toPercentageRgb(){const t=t=>`${Math.round(100*n(t,255))}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=t=>Math.round(100*n(t,255));return 1===this.a?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...d(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:e,y:r,k:n}=d(this.r,this.g,this.b);return`cmyk(${t}, ${e}, ${r}, ${n})`}toName(){if(0===this.a)return"transparent";if(this.a<1)return!1;const t="#"+f(this.r,this.g,this.b,!1);for(const[e,r]of Object.entries(m))if(t===r)return e;return!1}toString(t){const e=Boolean(t);t=t??this.format;let r=!1;const n=this.a<1&&this.a>=0;return e||!n||!t.startsWith("hex")&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),"cmyk"===t&&(r=this.toCmykString()),r||this.toHexString()):"name"===t&&0===this.a?this.toName():this.toRgbString()}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new S(this.toString())}lighten(t=10){const e=this.toHsl();return e.l+=t/100,e.l=s(e.l),new S(e)}brighten(t=10){const e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-t/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-t/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-t/100*255))),new S(e)}darken(t=10){const e=this.toHsl();return e.l-=t/100,e.l=s(e.l),new S(e)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const e=this.toHsl();return e.s-=t/100,e.s=s(e.s),new S(e)}saturate(t=10){const e=this.toHsl();return e.s+=t/100,e.s=s(e.s),new S(e)}greyscale(){return this.desaturate(100)}spin(t){const e=this.toHsl(),r=(e.h+t)%360;return e.h=r<0?360+r:r,new S(e)}mix(t,e=50){const r=this.toRgb(),n=new S(t).toRgb(),s=e/100,a={r:(n.r-r.r)*s+r.r,g:(n.g-r.g)*s+r.g,b:(n.b-r.b)*s+r.b,a:(n.a-r.a)*s+r.a};return new S(a)}analogous(t=6,e=30){const r=this.toHsl(),n=360/e,s=[this];for(r.h=(r.h-(n*t>>1)+720)%360;--t;)r.h=(r.h+n)%360,s.push(new S(r));return s}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new S(t)}monochromatic(t=6){const e=this.toHsv(),{h:r}=e,{s:n}=e;let{v:s}=e;const a=[],i=1/t;for(;t--;)a.push(new S({h:r,s:n,v:s})),s=(s+i)%1;return a}splitcomplement(){const t=this.toHsl(),{h:e}=t;return[this,new S({h:(e+72)%360,s:t.s,l:t.l}),new S({h:(e+216)%360,s:t.s,l:t.l})]}onBackground(t){const e=this.toRgb(),r=new S(t).toRgb(),n=e.a+r.a*(1-e.a);return new S({r:(e.r*e.a+r.r*r.a*(1-e.a))/n,g:(e.g*e.a+r.g*r.a*(1-e.a))/n,b:(e.b*e.a+r.b*r.a*(1-e.a))/n,a:n})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const e=this.toHsl(),{h:r}=e,n=[this],s=360/t;for(let a=1;a{r.d(e,{GG:()=>s,Ii:()=>d,L9:()=>f,SZ:()=>u,U0:()=>g,Yh:()=>i,ec:()=>o,fw:()=>c,g_:()=>h,kg:()=>n,rU:()=>l,tF:()=>a});const n="html",s="url",a="widget",i=35,o=350,h=940,c=35,l=550,f=1200,d={alignment:"center"},u={html:"html",adsense:"adsense"},g={}},70850:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(23184),s="ad2a41d1";(()=>{var t=".Oq1nj{background-color:#fff;border:1px solid #ededed;border-radius:6px;box-shadow:0 4px 8px 0 rgba(0,0,0,.07);display:flex;height:43px;overflow:hidden;position:absolute;transform:translate(-50%,-100%);transition:all .5s ease-out}.WqJkJ{align-items:center;background:#fff;border:none;cursor:pointer;display:flex;justify-content:center;width:43px}";if(!(void 0!==n&&n.env,"undefined"==typeof document||document.querySelector('style[data-ricos-style-hash="'+s+'"]'))){var e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.setAttribute("data-ricos-style-hash",s),r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}})();var a={toolbar:"Oq1nj",button:"WqJkJ"}},98569:(t,e,r)=>{r.d(e,{t:()=>h});var n=r(16252),s=r(60751),a=r(70850);const i=t=>{const e=t.getRangeAt(0),r=(t=>{const e=document.createNodeIterator(t.commonAncestorContainer,NodeFilter.SHOW_ALL),r=[];for(;e.nextNode()&&e.referenceNode!==t.startContainer;);for(;e.nextNode()&&e.referenceNode!==t.endContainer;)e.referenceNode.nodeType===Node.TEXT_NODE&&r.push(e.referenceNode);return r})(e),n=r.map((t=>{const e=document.createRange();return e.selectNodeContents(t),e.getBoundingClientRect()})),s=e.getClientRects();return[s[0],...n,s[s.length-1]]};function o(t,e){const r=()=>{const r=document.getSelection(),n=r?.anchorNode,s=r?.focusNode;let a,o;r&&r.rangeCount>0&&!r.isCollapsed&&t.contains(n)&&t.contains(s)&&(a=(t=>t.toString().replace(/(\r\n|\r|\n){2,}/g," "))(r),o=(t=>{const e=i(t);let r=999999,n=0;e.forEach((t=>{r=Math.min(r,t.left),n=Math.max(n,t.right)}));const s=e[0].top+window.scrollY;return{x:(r+n)/2+window.scrollX,y:s}})(r)),e(a,o)};return document.addEventListener("selectionchange",r),()=>document.removeEventListener("selectionchange",r)}class h extends s.Component{constructor(t){super(t),this.addTextSelectionListener=t=>{t&&!this.removeTextSelectionListener&&(this.removeTextSelectionListener=o(t,this.setSelectedText))},this.setSelectedText=n.debounce(((t,e)=>this.setState({selectedText:t,selectedTextPosition:e})),50),this.state={selectedText:""}}componentDidMount(){this.addTextSelectionListener(this.props.container)}componentWillUnmount(){this.removeTextSelectionListener&&this.removeTextSelectionListener()}componentWillReceiveProps(t){this.addTextSelectionListener(t.container)}render(){const{selectedText:t,selectedTextPosition:e}=this.state,{container:r,children:n}=this.props;if(!t||!e)return null;const{left:i}=r.getBoundingClientRect(),o=this.props.container.getBoundingClientRect().top,h={top:e.y-o-5-window.scrollY,left:e.x-i};return s.createElement("div",{className:a.A.toolbar,style:h},n(t))}}},48462:(t,e,r)=>{r.d(e,{_:()=>i});var n=r(60751);const s=t=>n.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...t},n.createElement("path",{d:"M4.09856 4.06761L8.70069 10.6118L4.06915 15.9324H5.1118L9.16634 11.2744L12.4429 15.9324H15.9905L11.1293 9.02057L15.4405 4.06846H14.3979L10.6635 8.35888L7.64608 4.06846H4.09856V4.06761ZM5.63154 4.88395H7.26145L14.4575 15.1152H12.8275L5.63154 4.88395Z",fillRule:"evenodd"}),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_1_2"},n.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(4 4)"}))));var a=r(70850);const i=({selectedText:t,onClick:e})=>{const r=t=>{e?.(t),function(t){let e="\u201c"+t+"\u201c\u2014";const r=window.location.href;e.length+r.length>279&&(e=function(t,e){let r=t.substring(0,e-2);return r=r.slice(0,r.lastIndexOf(" ")),r+="\u2026\u201c\u2014",r}(e,279-r.length));const n=`https://twitter.com/intent/tweet?text=${encodeURI(e)}&url=${encodeURI(r)}`;window.open(n)}(t)};return n.createElement("button",{"data-hook":"twitter-button",className:a.A.button,onClick:()=>r(t),type:"button"},n.createElement(s,null))}},88974:(t,e,r)=>{r.d(e,{Eg:()=>o,J_:()=>i,VI:()=>a,fd:()=>n,ym:()=>s});const n=t=>/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(t),s=(t,e)=>{if(!t)return;if(100===e)return t.slice(0,7);const r=Math.round(e/100*255).toString(16).padStart(2,"0").toUpperCase();return`${t.slice(0,7)}${r}`},a=t=>{if(!t||7===t.length||!n(t))return 100;const e=t.replace("#","").slice(6,8),r=parseInt(e,16);return Math.round(r/255*100)},i=t=>t&&7!==t.length&&n(t)?t.slice(0,7):t,o=t=>{let e=t;"#"===e.slice(0,1)&&(e=e.slice(1)),3!==e.length&&4!==e.length||(e=e.split("").map((t=>t+t)).join(""));const r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),s=parseInt(e.substring(4,6),16),a=e.substring(6,8)??"FF",i=parseInt(a,16);return(299*r+587*n+114*s)/1e3>=128||i<127?"black":"white"}}}]); //# sourceMappingURL=1406.chunk.min.js.map